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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var bH,zQQ,v5p,Mp,x5,MxQ,p75,tG,B7,Dpk,xpY,Ouf,qp,NfG,E5x,Q$,Huk,RQx,tx$,X7Q,FQk,Q1Y,Tf1,dp$,o5Y,hQH,Mz,$pH,x0,eQ$,Oj,w7f,G_,fn,WQS,n5$,T_,c_,Up7,zIp,l4$,hp,v0S,MMf,rw,p_f,DzS,xzf,eM,I4Q,ww,g0t,E0t,f45,g4,CuY,k_G,RIQ,mzk,KAp,O8,Znp,pl,Hnf,ypk,Yj7,cpu,Sjx,RC,Pu1,o0G,hIH,s_5,rpu,eIu,w_Q,n0H,LA7,VMH,Jpx,lF$,pXf,xKS,DK$,d4,OlQ,uqu,s8,Hl1,R17,fFp,mKQ,CKx,r4,$z5,eW,w4,Ay,K0f,nl,XXt,tWY,B4x,Vs,q81,ilG,F0Q,QCp,T45,Y85,cy7,S8p,dKk,U8,PK5,sCt,$K5,wXQ,vQ,W0S,UKH,pD,jCt,laQ,L0G,Ia5,vRY,MAQ,N0Q,xZ$,ur$,HDt,yT5,
C8k,kTk,tA1,B0$,iDQ,Yvu,cT5,Sv7,oRu,su1,W7x,i8,L7G,aaH,VAQ,d0,ou,sv,nD,au,VR,MYQ,xef,O41,NH1,uPf,Z4H,Gg,H4u,Eu,ut,Z1,H0,f1Q,Ct$,kgk,RPG,mex,tYG,BHt,X0u,qu$,FX5,kd,C4,QLG,Yut,THS,SuH,ct7,deH,od7,PtQ,QZ,Yd,Tg,c0,oL,sLk,P0,$ex,ndQ,su,LXf,Ue$,a1x,$d,VYH,jL$,Jt$,eY,ICt,At,M6x,pRu,n4,xj$,Dj5,O7S,gq7,Ghp,Nsk,aL,Eqt,u5u,VZ,Z7x,H7$,jY,Jt,zh,Ix,y7G,ClS,fCY,bl,Rx$,mju,KHQ,Mj,DC,xq,O7,gs,Gh,t61,Bsu,q7k,i71,FHY,QxQ,Y7p,Tsu,c7f,S7$,djf,oqS,Plk,hxY,ul,sxf,r7t,C7,$j7,Rx,mH,exH,WHQ,nqQ,LHf,aC$,V6f,jxQ,Ivt,b0H,vNu,
MNp,plp,D4G,x4$,N1k,BR,ENH,u7u,Z0Y,H0G,yAS,fvG,kzG,T17,cAx,SAS,PWS,h75,S6,sQQ,e7k,WsQ,nN5,Lst,U4H,av7,VN7,jQk,JAY,l_7,I_Y,wlQ,bot,vzH,M3H,pbQ,DMf,xMx,Oo1,gzQ,Ge5,Zot,EzG,f_H,HoQ,yXQ,Ret,mMG,Kyf,CEQ,B2$,keH,qfQ,j6,ioQ,J7,lW,Fyt,YfG,T2f,dMu,Wy$,PEu,ozQ,sjQ,$Mk,he1,jjH,UMY,JXQ,zbf,lJ5,IJx,bPQ,Mm1,vP$,p8Y,DyG,xy1,OP5,G31,EP1,u0u,ZP$,yrt,HPk,FFp,M4,QYQ,TrY,crt,SZY,dyp,oP$,hb$,sYx,rr7,N4,EA,$yQ,LFp,Hl,y9,jYS,zM5,gsQ,ms,Es7,umu,fQt,HGu,yE5,q4,CfS,kof,mBk,KZY,tcG,BkY,XVS,qIY,iG$,Q3S,YIS,cEf,TkY,osG,oQ,sA,
hMp,s3u,rEQ,$BG,eMf,DWk,Opp,G65,g8x,JA,lE,RnG,MM,q5S,ipf,po,Qwp,F5G,swp,rWQ,$WS,wdS,L5Q,arH,V8Q,jw$,JWp,lx$,b2G,v7x,g2,pWQ,O2u,g7H,Gu7,NEf,uL5,xAG,MXQ,E71,NM,yK1,Rq5,C_S,uE,KgH,BEk,XW$,qN7,i2t,fo,Fgk,YN7,Qyx,TE5,SNH,Rj,rKf,n7Q,ax$,UAt,JK$,Bb,IAt,iE,Yz,Q3,pCk,lAu,DhH,S3,G1Q,Pb,hX,uYH,yeG,Cqt,k1G,Rtt,sf,mhY,r2,KIS,BSS,XCQ,qd1,is7,QKH,AX,YdY,TSY,no,j3,dh7,oF7,Pqt,htG,$ht,et5,Aeu,WIQ,JeS,z4Y,aAY,IVY,bQp,Mnt,OZ,G3,Ny,OQ1,gO1,us,GR1,Nmu,EOt,ugQ,HQY,y8Y,fVQ,CMH,ZQu,kRQ,fP,mr$,tnf,CP,KGu,Bm$,R4p,XPG,mF,iQ5,
FGH,YU$,Tmf,SU1,c8Q,drQ,h4$,oOH,r8u,nOQ,UrY,Vnp,zcQ,J8$,jR7,lEk,bMf,M_Y,vB5,Dut,YP,OM$,gBf,GbG,NCu,yHf,CJG,fEQ,kbu,RcG,dr,mu1,KYH,BCS,qKY,QmQ,TCf,YK$,bf,cH$,Xu$,rHG,ec$,wuH,AHQ,xs,WYt,LY5,V_5,zv5,JHf,vwQ,MSQ,pg1,DFH,Ock,usQ,gwx,NgY,Ewk,Zcf,Hcu,fpG,ymp,kZ$,Cik,R3,Rv7,KMY,tS5,icf,QI,Ys,FMY,QhY,To,Sp$,o3,PV,hE,hvf,sI,$F5,wk,evu,wgQ,Amu,WM7,nG,nwf,LMY,UFt,VSt,JmH,Ik5,vWS,bR,Mbx,pFG,Do5,xoQ,OrH,gWu,GNt,NDQ,pp,ZrQ,Hr$,yYS,fkY,Cct,kN$,RWf,mo1,Ka5,tb7,BD$,XFu,qrY,uR,sDG,rYf,Zr,Hd,y1,$ou,eWY,wF7,AYH,WaY,nW5,
LaH,JYk,zHG,lP1,IP5,bJ$,Rw,Kp,tW,Bd,iR,Fh,Q1,MgQ,T6,DX5,cd,xX1,OJ5,S8,gEY,G9Y,NcQ,RHG,K2x,iJ1,TcG,Yxf,mXk,cPk,oEG,Vgp,eHt,Ifx,AP5,lf5,bES,ri,MZS,e8,D85,x8$,gCG,G4Q,NZG,uax,Wd,HE$,yxt,ffx,CYG,k45,RKY,m8u,ZES,BZt,XhQ,qiH,Lp,cxQ,Sit,TZ$,oC5,PYx,seS,rx5,hKf,Lhu,afu,jeH,zS5,vW,prx,MOp,GHu,ElG,uVf,ZK7,HKG,yNx,fYt,u_,qWx,F9x,Bou,tO7,iKx,kHf,YW1,eS$,SWt,dtS,olY,JNH,lXf,j27,DvG,VOf,CO$,pU$,cNk,$tQ,zyS,Q2G,mtH,RS1,K9f,Xr1,aYH,Y7,RyG,KEt,t9t,B5Q,XUQ,dvp,$vS,ey$,$7,ARQ,LEf,j0H,V9G,zL7,l61,bjf,M2Q,vMQ,pt5,lq,
Daf,xaG,gMH,OjG,IK,HjG,Zjt,uo7,kDp,yQS,RLu,C7Q,vC,max,Xtx,t2t,Bn5,ij1,YcS,Tnp,dau,oMt,P7Y,sFQ,DA,$af,AQG,eLt,WnY,a6Y,V2H,zVp,Iq$,Nh,Ed,pJk,DNS,uq,ZA,xNu,HC,yd,OI$,Cs,g1S,kF,GYS,NxH,mI,E1$,uIt,ZI7,HIQ,yfu,C9H,fqY,RVQ,tKQ,KO7,Bxx,XJG,kY$,q21,QU7,FOu,mNf,Y2Q,Txu,qh,cf1,dNt,S2k,o1$,P9x,sUQ,hV1,rfH,Qd,eVx,wJH,$N$,WOQ,n17,LOx,jUx,lsu,pxp,gxu,YF,ExG,ul1,T1,ZOS,oK,sd,RhQ,Sj,ej,m5$,Kxx,BGQ,Xxu,iOS,QXQ,Y9Q,TGt,cOY,oxt,$5f,sXY,d5Y,ehp,wx7,ns,rOt,AOQ,aK,Wxt,nxp,Lxp,U57,JOY,as7,jX1,bNx,vA$,ONx,xiQ,NyS,fbY,C2S,
R3k,KTp,t1x,XcQ,qzt,iNH,QqQ,Yzp,TyY,dix,sqx,r5H,oAu,e3f,A5H,wc1,$iH,WTt,LTk,UiY,abQ,V1x,jq7,xO,OU,Nr,uM,lIk,IIk,Mip,xg7,ZV,HP,OdS,y0,NO5,E9k,uSu,CQ,CTY,KJH,BOf,Xn1,qb1,idu,FJY,TOY,RR,czH,o9$,mG,PTH,rzY,$g1,eoS,sWk,Ug5,jWQ,aI7,Jz1,I95,vZQ,pHf,gZf,Om5,uEY,qr,Zmt,HmQ,iM,yJQ,Fg,f9G,CCQ,kpp,mRf,RNk,K3x,t7Q,BTu,XHY,cJ7,dR$,PC5,oZt,QlY,imf,sl5,$RG,nZt,L3H,V7Q,b95,MGQ,cP,pGS,xx$,O9$,GF1,Z9Q,f0Q,RJ1,mx$,KfQ,tGu,Ff1,Bpu,cgt,SXY,dxp,Pot,oR,hJu,rgx,$xt,eJt,wGS,Ag1,WfQ,nIx,Ux$,a0Y,rm,VGt,jr5,zCY,en,JgY,IjG,pKf,
WP,Dlx,xlQ,Okx,N7Q,E4k,g4$,Zkk,Cgu,kCH,RCx,jn,mlp,XK5,qlt,Im,Q5f,ik7,F1Y,cvt,SlQ,dl7,s5x,eCx,$l$,rvt,wK$,W1G,n4u,j5p,L1k,Jv7,li7,zUt,DYf,gbx,NBt,uZk,fiH,BBu,Pu,qep,YeG,cix,dC,Wu,spx,wof,eUx,Wj7,nbH,UYt,Ljx,aiQ,VFQ,nM,F27,rik,Aif,$Y$,wC,zmf,ltk,Itp,bw1,vKk,MoQ,pTt,Dk7,vg,xku,Owf,gKu,GJp,NLu,Op,EK1,Hwk,ft7,CAk,XT5,iwQ,FqQ,QPQ,TLY,cdH,kw,dku,oKp,PAQ,hmQ,sP5,rdf,emQ,Adx,nKp,Lq1,zXt,jP1,lZG,vmG,MaY,qF,pf1,D1u,x1x,GWk,EmH,Nbk,Zt7,yMQ,Yw,CS$,kWS,fZk,RXf,m1x,ta1,XfQ,Bbt,qEH,KtH,itH,Ftt,Qck,YE$,Tbp,cMS,SEY,
d15,omQ,sc$,hXY,rMS,eX7,$11,TZ,wf5,nmt,VaH,AMH,z55,lLt,ILp,bqx,p2$,ET$,uXk,Hqt,yCt,Wg,R5$,B3H,iqu,nc,T3t,FvH,QEY,YD7,cCQ,h5$,VA,sE7,rCQ,$GS,w25,ACx,Wvf,nTY,UG1,aLQ,MD$,lhf,b1k,Dwx,pZY,xw5,O1G,G$$,E$Q,Z1$,LBx,Uwk,VDQ,DQQ,gY7,NI$,EYS,uDH,ZeY,Hex,f$f,Crk,mQQ,K6t,t$k,BI$,XLQ,qMQ,iep,F6t,TIt,oYQ,Or,gD,GN,PrG,hsY,uc,rof,a$p,IWS,zFG,fWQ,C0H,kqQ,es$,UQp,W6u,mdY,KWx,tTY,BUf,jVS,XEk,if1,QJY,c$u,S3S,qo,QX,YW,$d5,r$H,WWf,njS,IRS,vJ1,pD$,Dm1,gJS,NP5,GMu,ZyQ,ynf,t5p,mmx,CLp,Krk,kMQ,BPQ,FrQ,VX,hGY,dmt,rnY,$mS,wDp,
An$,JY,Wrt,UmH,aRQ,V5t,JnQ,jnf,I8,MqQ,xE,Db$,xb$,G9,O5u,gQY,G2S,NA5,EQQ,uJf,Z51,H5H,yZt,fz1,CPY,k2Y,RBk,mbQ,K8Y,NX,tqu,BAx,Xmu,qq7,i5t,F8x,Qtk,Yq$,TAS,cZQ,SqQ,dbQ,u5,PPS,stH,$b7,AZ7,L85,UbQ,az1,jtp,zpG,luS,Iu1,m2,DnQ,Mp1,xn$,O6H,gHu,EHt,ufQ,Z6$,yUk,Sg,CvH,T9,Rpx,mnt,dc,KL7,tpk,BK1,X6Q,Py,Q6Q,TKY,PvQ,oH7,s65,rUH,nJ,$nk,ep7,AU5,nHH,LL5,aux,Vp1,WLf,j6H,bzu,DOp,xOG,LJ,OzG,gyS,Zzp,GXx,Ey5,uwQ,RaQ,yqS,mOu,tsQ,Xe$,q$5,izQ,FuQ,QaH,Y$1,cqH,S$t,dO$,oyt,PzQ,saG,$O7,AqS,UOG,jaS,zR5,bgp,lY,vV5,MzG,p9H,D_Y,x_1,
gVt,G5t,NNY,EVk,uvQ,ZgQ,Hg7,ywQ,f7H,Cd$,k57,m_G,RRf,BNk,qHS,vh,igu,YHp,Q75,SHp,d_Q,oV5,hR$,$_Q,Awx,w9$,rw1,LdH,nVf,Jwp,U_H,Oi,VzQ,pAu,I8$,bUx,vrQ,Mex,D9Y,OUt,x9$,gZ,G4,HUG,Gwx,ZUf,uF5,Nju,ErG,C4Y,Rk7,KlG,m9H,qLY,XAQ,FlH,YL$,Tj1,QBf,cl$,d9u,SL$,P4Q,rl5,fE,$9$,eku,Wlu,VeY,bA1,kC,Mu1,OA$,E6G,Nak,g6x,GAQ,Bh,y9u,uM7,ZAt,fN5,kAf,CpQ,KU1,tuS,XiG,q_5,iAY,FU$,QvG,TaH,c9Q,hx,dSu,o6Y,r9Q,$S1,wZ,eYp,A9Q,zjS,Ui,USt,J9k,aN7,Vuk,vp$,bxQ,xTf,Mlt,Oxk,gpY,VP,NWt,EpQ,u9x,Gyu,lO,Zx$,jZ,Cax,Xpt,qCf,ixf,F$H,Qgp,YCY,dTH,
c3t,SCx,TW5,PaH,r37,wpS,A3$,np5,ay7,L$5,UTY,Vlx,J3G,zi1,lgk,IgS,bTY,vX$,pzt,OW,x$7,G0$,gXx,EXt,NJG,uRf,ZTx,go,yVu,qy$,BJu,Q$5,Yyp,PeQ,hif,s$5,rVY,$$5,eiu,WS1,nX1,LSS,ag5,VI$,j$H,tN,Id5,ldk,zEk,JVY,vfu,DVp,MUp,O3Q,gf7,Gd7,NhS,EfY,uO5,Z3G,H31,REG,ySt,fdk,CF7,mVQ,KmS,tUt,kdx,iO,qV7,FmQ,i37,Qe,YVQ,ThG,cS5,QoQ,SVS,dVQ,ofQ,PFt,hEQ,rSt,$VQ,eEp,wwQ,nfH,WmQ,joG,ASH,Yl,JSf,LmQ,VUQ,I3f,bhS,vGx,M4Q,psf,DfQ,xfQ,Ohf,gGf,Gm$,N87,ujH,Zhu,HhY,f3Y,km$,mfQ,t4Q,FRp,q6H,ih1,Xsp,B8p,QsQ,Y65,LK,S6x,df5,oGY,P$1,hlG,ss1,
rLY,WRH,el$,$fG,wsG,bv$,lDH,AL1,zzG,gDH,Gax,NvS,ED$,u8k,yc5,CxQ,RzY,Kz1,td$,Bvu,Fzf,ivS,QHt,TvH,ZX,d0k,oDk,PxQ,hz$,yo,fY,$0k,ezY,Ac7,Lzp,zOY,va5,MVt,pj7,D3S,x3k,OX5,GUS,Eau,Nu1,uCQ,HX5,yj$,fw$,CDf,kUG,ROS,tR,m3Y,FNH,QzS,XjH,Bu$,iXQ,q1x,d3$,oau,PDp,hOu,szQ,rj$,wjQ,$3H,eOf,jz7,Jj5,zrt,b8k,v3G,lOQ,IOY,N6Y,uc1,H8f,fO5,kiY,mUY,X5t,qTQ,i8x,YTx,QG7,FP7,T6S,c11,dUf,o3k,Pjx,hr5,sGG,r1f,erS,w5Q,A1S,WP1,n35,LP7,Vhx,jG7,zD7,Il$,llf,bSQ,hR,vuQ,MLk,pvp,DIS,Gtp,gu1,NFx,Euu,uyp,ZSk,fl$,ktx,RD$,mIk,KkG,tLH,BFu,XvQ,
qtk,iSG,Fk$,Ytf,QdQ,TFf,cau,StQ,dIH,ou5,PwH,hDS,sdG,nY,$IQ,eDk,Aa5,Wku,nuS,Lk1,UI7,alH,jdH,JaG,lmx,bBH,MJp,OBQ,DJY,pOp,xJk,g_t,G7x,NMx,ZB$,HBY,y2k,fmH,k7f,R$1,mJk,tJQ,KDS,BM7,XOk,qo5,QZt,Yo1,TM1,c2x,SoQ,dJx,h$Q,sZH,pj,WD1,n_$,UJp,jZ$,VJp,J2Y,z9t,D6,Oc,IUY,baQ,Na,Ec,DEH,vgY,MEY,ggS,GVp,N_t,Egk,y_f,CkH,kVt,R9u,mEY,K_5,B_1,XSt,qPp,iaf,F_x,QTt,YPQ,Ht,T_1,c_7,fj,SPQ,dE5,og5,Pk1,h95,sTk,RF,mn,r_$,$Eu,Kj,e9u,wSx,A_f,W_1,L_p,UEY,VE5,IGY,lGY,zfG,bVp,vkY,gkQ,Dq1,xqG,pMH,OVH,Bt,Eku,uWf,ZVG,HVH,y67,CGk,Rf1,t0Q,
iV5,XMG,Xo,B9k,c67,dqu,qa,ok5,PGH,hf1,r6Y,$qx,efG,wMQ,WVf,nkf,LVt,aGS,V0x,J6f,zdx,MRu,vvG,DHu,xHQ,OLu,gvY,ZLf,HLY,y0t,fKp,Rdk,tRk,S2,dn,Btp,XNG,qax,iLH,Fpt,Yax,TtG,c0k,SaQ,ovu,Pmx,hdS,oF,s91,r05,wN5,A0$,Pt,hQ,Lp$,WpH,VR$,UHQ,j91,zA5,e2,lT$,ITu,Mwt,DLk,wn,OHY,gn7,Gfx,NQG,En5,uUp,ZHk,HHk,kfY,RAQ,twQ,mL5,KbY,BQY,Fbk,X47,iHG,Q4f,YRY,TQQ,dLG,onf,PBQ,s4u,rup,nnS,WbQ,JuH,IBp,JQ,bb7,YZS,vep,MkQ,DD7,get,GI1,fBx,C6x,kIu,R2Y,mDt,Kox,BXu,XBY,ibx,QOH,qnG,FoH,TXQ,YnQ,Sn$,P6Q,dDk,h2Q,sOQ,rBf,$DS,e2H,wBH,Wot,ABk,
aBQ,JBu,VkY,z0p,leQ,IeY,Dq,bCp,vo$,O2,p3Q,Mfp,DCt,xCH,got,GPQ,Eop,ukt,ZCY,HC5,CZt,R0p,tfp,KwY,Bdu,X3Q,Fwx,sN7,cb7,$CG,e01,AbQ,WwS,aet,VfG,jN$,JbH,z85,lcf,bix,v21,Mrp,Ds$,pY7,g2$,G8t,NVS,E2x,uBG,ZiH,HiY,fcu,R81,ms7,KKu,tr1,BVx,XYt,FK1,iiH,ck$,Swt,ds$,o2$,PQf,sAS,h8Q,$s1,n2Y,VrQ,ac1,jAQ,Jk1,zuH,Iok,FI,vhk,cJ,p$x,xck,OZ$,u3H,HZt,CU5,Ruu,mcf,tBf,BzG,X$5,iZH,QIQ,Yg$,csf,ohk,dcu,Sg5,eK,huY,PUG,sIQ,rsY,$cH,eu5,w$k,Asx,Wi7,Lix,UcG,aox,VB$,jI$,Js$,zwQ,lnu,In1,vif,MvQ,Ei7,up5,ZFu,yF7,fn$,Cbu,mP5,aU,iFx,FeH,
Qi5,YkQ,Tek,VF,jK,ze,Jf,lI,rFu,$Pf,AF7,niu,WeS,bI,Lex,UP7,anp;_.I1=function(z,l){if(Error.captureStackTrace)Error.captureStackTrace(this,_.I1);else{var I=Error().stack;I&&(this.stack=I)}z&&(this.message=String(z));l!==void 0&&(this.cause=l)};
bH=function(){throw Error("E");};
zQQ=function(z,l){l=String.fromCharCode.apply(null,l);return z==null?l:z+l};
v5p=function(z){var l=!1;l=l===void 0?!1:l;if(lSG){if(l&&(IS5?!z.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(z)))throw Error("F");z=(bu$||(bu$=new TextEncoder)).encode(z)}else{for(var I=0,b=new Uint8Array(3*z.length),v=0;v<z.length;v++){var M=z.charCodeAt(v);if(M<128)b[I++]=M;else{if(M<2048)b[I++]=M>>6|192;else{if(M>=55296&&M<=57343){if(M<=56319&&v<z.length){var x=z.charCodeAt(++v);if(x>=56320&&x<=57343){M=(M-55296)*1024+x-56320+65536;b[I++]=M>>18|
240;b[I++]=M>>12&63|128;b[I++]=M>>6&63|128;b[I++]=M&63|128;continue}else v--}if(l)throw Error("F");M=65533}b[I++]=M>>12|224;b[I++]=M>>6&63|128}b[I++]=M&63|128}}z=I===b.length?b:b.subarray(0,I)}return z};
Mp=function(z){_.v7.setTimeout(function(){throw z;},0)};
_.DS=function(z,l){return z.lastIndexOf(l,0)==0};
x5=function(z,l){var I=z.length-l.length;return I>=0&&z.indexOf(l,I)==I};
_.gf=function(z){return/^[\s\xa0]*$/.test(z)};
_.Np=function(z,l){return z.indexOf(l)!=-1};
_.EY=function(z,l){return _.Np(z.toLowerCase(),l.toLowerCase())};
_.y$=function(z,l){var I=0;z=ZS(String(z)).split(".");l=ZS(String(l)).split(".");for(var b=Math.max(z.length,l.length),v=0;I==0&&v<b;v++){var M=z[v]||"",x=l[v]||"";do{M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];x=/(\d*)(\D*)(.*)/.exec(x)||["","","",""];if(M[0].length==0&&x[0].length==0)break;I=MxQ(M[1].length==0?0:parseInt(M[1],10),x[1].length==0?0:parseInt(x[1],10))||MxQ(M[2].length==0,x[2].length==0)||MxQ(M[2],x[2]);M=M[3];x=x[3]}while(I==0)}return I};
MxQ=function(z,l){return z<l?-1:z>l?1:0};
_.Cu=function(){var z=_.v7.navigator;return z&&(z=z.userAgent)?z:""};
p75=function(z){if(!k5||!mQ)return!1;for(var l=0;l<mQ.brands.length;l++){var I=mQ.brands[l].brand;if(I&&_.Np(I,z))return!0}return!1};
tG=function(z){return _.Np(_.Cu(),z)};
B7=function(){return k5?!!mQ&&mQ.brands.length>0:!1};
Dpk=function(){return B7()?!1:tG("Opera")};
xpY=function(){return B7()?!1:tG("Trident")||tG("MSIE")};
Ouf=function(){return B7()?p75("Microsoft Edge"):tG("Edg/")};
qp=function(){return tG("Firefox")||tG("FxiOS")};
_.g5t=function(){return tG("Safari")&&!(_.iH()||(B7()?0:tG("Coast"))||Dpk()||(B7()?0:tG("Edge"))||Ouf()||(B7()?p75("Opera"):tG("OPR"))||qp()||tG("Silk")||tG("Android"))};
_.iH=function(){return B7()?p75("Chromium"):(tG("Chrome")||tG("CriOS"))&&!(B7()?0:tG("Edge"))||tG("Silk")};
_.Gkp=function(){return tG("Android")&&!(_.iH()||qp()||Dpk()||tG("Silk"))};
NfG=function(z){var l={};z.forEach(function(I){l[I[0]]=I[1]});
return function(I){return l[I.find(function(b){return b in l})]||""}};
E5x=function(z){var l=_.Cu();if(z==="Internet Explorer"){if(xpY())if((z=/rv: *([\d\.]*)/.exec(l))&&z[1])l=z[1];else{z="";var I=/MSIE +([\d\.]+)/.exec(l);if(I&&I[1])if(l=/Trident\/(\d.\d)/.exec(l),I[1]=="7.0")if(l&&l[1])switch(l[1]){case "4.0":z="8.0";break;case "5.0":z="9.0";break;case "6.0":z="10.0";break;case "7.0":z="11.0"}else z="7.0";else z=I[1];l=z}else l="";return l}var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var v;v=b.exec(l);)I.push([v[1],v[2],v[3]||void 0]);
l=NfG(I);switch(z){case "Opera":if(Dpk())return l(["Version","Opera"]);if(B7()?p75("Opera"):tG("OPR"))return l(["OPR"]);break;case "Microsoft Edge":if(B7()?0:tG("Edge"))return l(["Edge"]);if(Ouf())return l(["Edg"]);break;case "Chromium":if(_.iH())return l(["Chrome","CriOS","HeadlessChrome"])}return z==="Firefox"&&qp()||z==="Safari"&&_.g5t()||z==="Android Browser"&&_.Gkp()||z==="Silk"&&tG("Silk")?(l=I[2])&&l[1]||"":""};
_.ut5=function(z){if(B7()&&z!=="Silk"){var l=mQ.brands.find(function(I){return I.brand===z});
if(!l||!l.version)return NaN;l=l.version.split(".")}else{l=E5x(z);if(l==="")return NaN;l=l.split(".")}return l.length===0?NaN:Number(l[0])};
Q$=function(){return k5?!!mQ&&!!mQ.platform:!1};
_.Zuu=function(){return Q$()?mQ.platform==="Android":tG("Android")};
Huk=function(){return tG("iPhone")&&!tG("iPod")&&!tG("iPad")};
_.Y5=function(){return Huk()||tG("iPad")||tG("iPod")};
_.yG1=function(){return Q$()?mQ.platform==="macOS":tG("Macintosh")};
_.fSS=function(){return Q$()?mQ.platform==="Windows":tG("Windows")};
_.CHt=function(){return Q$()?mQ.platform==="Chrome OS":tG("CrOS")};
_.c7=function(z){return z[z.length-1]};
_.Sx=function(z,l,I){l=_.kkY(z,l,I);return l<0?null:typeof z==="string"?z.charAt(l):z[l]};
_.kkY=function(z,l,I){for(var b=z.length,v=typeof z==="string"?z.split(""):z,M=0;M<b;M++)if(M in v&&l.call(I,v[M],M,z))return M;return-1};
RQx=function(z){for(var l=_.df,I=typeof z==="string"?z.split(""):z,b=z.length-1;b>=0;b--)if(b in I&&l.call(void 0,I[b],b,z))return b;return-1};
_.rf=function(z,l){return _.sY(z,l)>=0};
_.mp$=function(z,l){_.rf(z,l)||z.push(l)};
_.$5=function(z,l){l=_.sY(z,l);var I;(I=l>=0)&&_.KQ5(z,l);return I};
_.KQ5=function(z,l){Array.prototype.splice.call(z,l,1)};
_.ex=function(z){var l=z.length;if(l>0){for(var I=Array(l),b=0;b<l;b++)I[b]=z[b];return I}return[]};
_.AG=function(z,l){for(var I=1;I<arguments.length;I++){var b=arguments[I];if(_.wf(b)){var v=z.length||0,M=b.length||0;z.length=v+M;for(var x=0;x<M;x++)z[v+x]=b[x]}else z.push(b)}};
_.Bf5=function(z,l,I,b){Array.prototype.splice.apply(z,tx$(arguments,1))};
tx$=function(z,l,I){return arguments.length<=2?Array.prototype.slice.call(z,l):Array.prototype.slice.call(z,l,I)};
X7Q=function(z,l){l=l||z;for(var I=0,b=0,v={};b<z.length;){var M=z[b++],x=_.Lu(M)?"o"+_.UY(M):(typeof M).charAt(0)+M;Object.prototype.hasOwnProperty.call(v,x)||(v[x]=!0,l[I++]=M)}l.length=I};
_.iuk=function(z,l,I){I=I||_.qYQ;for(var b=0,v=z.length,M;b<v;){var x=b+(v-b>>>1);var g=I(l,z[x]);g>0?b=x+1:(v=x,M=!g)}return M?b:-b-1};
_.a1=function(z,l,I){if(!_.wf(z)||!_.wf(l)||z.length!=l.length)return!1;var b=z.length;I=I||FQk;for(var v=0;v<b;v++)if(!I(z[v],l[v]))return!1;return!0};
_.qYQ=function(z,l){return z>l?1:z<l?-1:0};
FQk=function(z,l){return z===l};
Q1Y=function(z,l,I){l=Array.prototype.splice.call(z,l,1);Array.prototype.splice.call(z,I,0,l[0])};
Tf1=function(z){return YYf[z]||""};
dp$=function(z){if(!cGQ)return _.jx(z);z=SYY.test(z)?z.replace(SYY,Tf1):z;z=atob(z);for(var l=new Uint8Array(z.length),I=0;I<z.length;I++)l[I]=z.charCodeAt(I);return l};
o5Y=function(z,l){z.__closure__error__context__984382||(z.__closure__error__context__984382={});z.__closure__error__context__984382.severity=l};
_.I_=function(z){z=Error(z);o5Y(z,"warning");return z};
hQH=function(z,l){if(z!=null){var I;var b=(I=PH$)!=null?I:PH$={};I=b[z]||0;I>=l||(b[z]=I+1,z=Error(),o5Y(z,"incident"),Mp(z))}};
Mz=function(z,l,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&z?Symbol.for(z):z!=null?Symbol(z):Symbol():l};
$pH=function(z,l){pn||_.D4 in z||s1f(z,rG5);z[_.D4]|=l};
x0=function(z,l){pn||_.D4 in z||s1f(z,rG5);z[_.D4]=l};
eQ$=function(z){if(4&z)return 512&z?512:1024&z?1024:0};
Oj=function(z){$pH(z,34);return z};
w7f=function(z){$pH(z,32);return z};
G_=function(){return typeof BigInt==="function"};
fn=function(z,l){return l===void 0?z.copyOnWrite!==Nz&&!!(2&(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.D4]|0)):!!(2&l)&&z.copyOnWrite!==Nz};
_.iu=function(z,l){if(z!=null)if(typeof z==="string")z=z?new B_(z,XA):_.qz();else if(z.constructor!==B_)if(AGt&&z!=null&&z instanceof Uint8Array)z=z.length?new B_(new Uint8Array(z),XA):_.qz();else{if(!l)throw Error();z=void 0}return z};
WQS=function(z,l){if(typeof l!=="number"||l<0||l>=z.length)throw Error();};
n5$=function(z,l,I){var b=l&128?0:-1,v=z.length,M;if(M=!!v)M=z[v-1],M=M!=null&&typeof M==="object"&&M.constructor===Object;var x=v+(M?-1:0);for(l=l&128?1:0;l<x;l++)I(l-b,z[l]);if(M){z=z[v-1];for(var g in z)!isNaN(g)&&I(+g,z[g])}};
T_=function(z){return z&128?Qu:void 0};
c_=function(z){z.isGuard_doNotManuallySetPrettyPlease=!0;return z};
Up7=function(){var z=LQ5;return c_(function(l){for(var I in z)if(l===z[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.SM=function(z){var l=z;if(aSQ(l)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(l))throw Error(String(l));}else if(Vxk(l)&&!Number.isSafeInteger(l))throw Error(String(l));return j1G?BigInt(z):z=JGH(z)?z?"1":"0":aSQ(z)?z.trim()||"0":String(z)};
zIp=function(z,l){if(z.length>l.length)return!1;if(z.length<l.length||z===l)return!0;for(var I=0;I<z.length;I++){var b=z[I],v=l[I];if(b>v)return!1;if(b<v)return!0}};
l4$=function(z){var l=z>>>0;o_=l;P_=(z-l)/4294967296>>>0};
hp=function(z){if(z<0){l4$(-z);var l=_.D(I4Q(o_,P_));z=l.next().value;l=l.next().value;o_=z>>>0;P_=l>>>0}else l4$(z)};
v0S=function(z){var l=bn5||(bn5=new DataView(new ArrayBuffer(8)));l.setFloat32(0,+z,!0);P_=0;o_=l.getUint32(0,!0)};
MMf=function(z,l){var I=l*4294967296+(z>>>0);return Number.isSafeInteger(I)?I:_.sj(z,l)};
rw=function(z,l){var I=l&2147483648;I&&(z=~z+1>>>0,l=~l>>>0,z==0&&(l=l+1>>>0));z=MMf(z,l);return typeof z==="number"?I?-z:z:I?"-"+z:z};
p_f=function(z){var l=o_,I=P_,b=I>>31;I=(I<<1|l>>>31)^b;z(l<<1^b,I)};
DzS=function(z,l){var I=-(z&1);z=(z>>>1|l<<31)^I;return rw(z,l>>>1^I)};
_.sj=function(z,l){l>>>=0;z>>>=0;if(l<=2097151)var I=""+(4294967296*l+z);else G_()?I=""+(BigInt(l)<<BigInt(32)|BigInt(z)):(I=(z>>>24|l<<8)&16777215,l=l>>16&65535,z=(z&16777215)+I*6777216+l*6710656,I+=l*8147497,l*=2,z>=1E7&&(I+=z/1E7>>>0,z%=1E7),I>=1E7&&(l+=I/1E7>>>0,I%=1E7),I=l+xzf(I)+xzf(z));return I};
xzf=function(z){z=String(z);return"0000000".slice(z.length)+z};
_.Onu=function(z,l){l&2147483648?G_()?z=""+(BigInt(l|0)<<BigInt(32)|BigInt(z>>>0)):(l=_.D(I4Q(z,l)),z=l.next().value,l=l.next().value,z="-"+_.sj(z,l)):z=_.sj(z,l);return z};
eM=function(z){if(z.length<16)hp(Number(z));else if(G_())z=BigInt(z),o_=Number(z&BigInt(4294967295))>>>0,P_=Number(z>>BigInt(32)&BigInt(4294967295));else{var l=+(z[0]==="-");P_=o_=0;for(var I=z.length,b=l,v=(I-l)%6+l;v<=I;b=v,v+=6)b=Number(z.slice(b,v)),P_*=1E6,o_=o_*1E6+b,o_>=4294967296&&(P_+=Math.trunc(o_/4294967296),P_>>>=0,o_>>>=0);l&&(l=_.D(I4Q(o_,P_)),z=l.next().value,l=l.next().value,o_=z,P_=l)}};
I4Q=function(z,l){l=~l;z?z=~z+1:l+=1;return[z,l]};
ww=function(z){return Array.prototype.slice.call(z)};
_.Ap=function(z,l){throw Error(l===void 0?"unexpected value "+z+"!":l);};
_.W_=function(z){if(z!=null&&typeof z!=="number")throw Error("L`"+typeof z+"`"+z);return z};
_.nn=function(z){if(z==null||typeof z==="number")return z;if(z==="NaN"||z==="Infinity"||z==="-Infinity")return Number(z)};
g0t=function(z){if(z!=null&&typeof z!=="boolean")throw Error("M`"+_.Vu(z)+"`"+z);return z};
_.G_f=function(z){if(z==null||typeof z==="boolean")return z;if(typeof z==="number")return!!z};
_.Jp=function(z){switch(typeof z){case "bigint":return!0;case "number":return jM(z);case "string":return Nw$.test(z);default:return!1}};
_.zc=function(z){if(!jM(z))throw _.I_("enum");return z|0};
_.IC=function(z){return z==null?z:jM(z)?z|0:void 0};
E0t=function(z){if(typeof z!=="number")throw _.I_("int32");if(!jM(z))throw _.I_("int32");return z|0};
_.vX=function(z){return z==null?z:E0t(z)};
_.MK=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return jM(z)?z|0:void 0};
_.uAu=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return jM(z)?z>>>0:void 0};
f45=function(z){var l=0;l=l===void 0?0:l;if(!_.Jp(z))throw _.I_("int64");var I=typeof z;switch(l){case 512:switch(I){case "string":return pl(z);case "bigint":return String(xS(64,z));default:return Znp(z)}case 1024:switch(I){case "string":return Hnf(z);case "bigint":return _.SM(xS(64,z));default:return ypk(z)}case 0:switch(I){case "string":return pl(z);case "bigint":return _.SM(xS(64,z));default:return O8(z)}default:return _.Ap(l,"Unknown format requested type for int64")}};
g4=function(z){return z==null?z:f45(z)};
CuY=function(z){if(z[0]==="-")return!1;var l=z.length;return l<20?!0:l===20&&Number(z.substring(0,6))<184467};
k_G=function(z){var l=z.length;return z[0]==="-"?l<20?!0:l===20&&Number(z.substring(0,7))>-922337:l<19?!0:l===19&&Number(z.substring(0,6))<922337};
RIQ=function(z){if(z<0){hp(z);var l=_.sj(o_,P_);z=Number(l);return Gc(z)?z:l}l=String(z);if(CuY(l))return l;hp(z);return MMf(o_,P_)};
mzk=function(z){if(k_G(z))return z;eM(z);return _.Onu(o_,P_)};
KAp=function(z){if(CuY(z))return z;eM(z);return _.sj(o_,P_)};
O8=function(z){z=NK(z);Gc(z)||(hp(z),z=rw(o_,P_));return z};
_.tMt=function(z){z=NK(z);return z>=0&&Gc(z)?z:RIQ(z)};
Znp=function(z){z=NK(z);if(Gc(z))z=String(z);else{var l=String(z);k_G(l)?z=l:(hp(z),z=_.Onu(o_,P_))}return z};
_.Bw1=function(z){z=NK(z);if(z>=0&&Gc(z))z=String(z);else{var l=String(z);CuY(l)?z=l:(hp(z),z=_.sj(o_,P_))}return z};
pl=function(z){var l=NK(Number(z));if(Gc(l))return String(l);l=z.indexOf(".");l!==-1&&(z=z.substring(0,l));return mzk(z)};
Hnf=function(z){var l=NK(Number(z));if(Gc(l))return _.SM(l);l=z.indexOf(".");l!==-1&&(z=z.substring(0,l));return G_()?_.SM(xS(64,BigInt(z))):_.SM(mzk(z))};
ypk=function(z){return Gc(z)?_.SM(O8(z)):_.SM(Znp(z))};
_.X_Q=function(z){return Gc(z)?_.SM(_.tMt(z)):_.SM(_.Bw1(z))};
_.qjt=function(z){var l=NK(Number(z));if(Gc(l)&&l>=0)return String(l);l=z.indexOf(".");l!==-1&&(z=z.substring(0,l));return KAp(z)};
_.inY=function(z){var l=NK(Number(z));if(Gc(l)&&l>=0)return _.SM(l);l=z.indexOf(".");l!==-1&&(z=z.substring(0,l));return G_()?_.SM((0,_.HX)(64,BigInt(z))):_.SM(KAp(z))};
_.Q_S=function(z){if(z==null)return z;if(typeof z==="bigint")return FAY(z)?z=Number(z):(z=xS(64,z),z=FAY(z)?Number(z):String(z)),z;if(_.Jp(z))return typeof z==="number"?O8(z):pl(z)};
Yj7=function(z,l){l=l===void 0?!1:l;var I=typeof z;if(z==null)return z;if(I==="bigint")return String(xS(64,z));if(_.Jp(z))return I==="string"?pl(z):l?Znp(z):O8(z)};
_.Twp=function(z){var l=typeof z;if(z==null)return z;if(l==="bigint")return _.SM(xS(64,z));if(_.Jp(z))return l==="string"?Hnf(z):ypk(z)};
cpu=function(z){if(z==null)return z;var l=typeof z;if(l==="bigint")return String(xS(64,z));if(_.Jp(z)){if(l==="string")return pl(z);if(l==="number")return O8(z)}};
Sjx=function(z){if(z==null)return z;var l=typeof z;if(l==="bigint")return String((0,_.HX)(64,z));if(_.Jp(z)){if(l==="string")return _.qjt(z);if(l==="number")return _.tMt(z)}};
_.fl=function(z){if(typeof z!=="string")throw Error();return z};
RC=function(z){if(z!=null&&typeof z!=="string")throw Error();return z};
_.m0=function(z){return z==null||typeof z==="string"?z:void 0};
Pu1=function(z,l,I,b){if(z!=null&&z[ty]===BX)return z;if(!Array.isArray(z))return I?b&2?l[dzG]||(l[dzG]=o0G(l)):new l:void 0;I=z[_.D4]|0;b=I|b&32|b&2;b!==I&&x0(z,b);return new l(z)};
o0G=function(z){z=new z;Oj(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return z};
hIH=function(z,l,I){z=l?E0t(z):_.MK(z);return z==null?I?0:void 0:z|0};
s_5=function(z){return z};
rpu=function(z){return z};
eIu=function(z,l,I,b,v,M){z=Pu1(z,b,I,M);v&&(z=$z5(z));return z};
w_Q=function(z){return[z,this.get(z)]};
n0H=function(){return Ap$||(Ap$=new qK(Oj([]),void 0,void 0,void 0,WAk))};
LA7=function(z){var l=Fq(YS);return l?z[l]:void 0};
VMH=function(z,l){var I=I===void 0?!1:I;if(Fq(UzH)&&Fq(YS)&&void 0===UzH){var b=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=b[YS];if(!v)return;if(v=v.reviveUnknownFields)try{v(b,l,a4$);return}catch(M){Mp(M)}}I&&(z=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=Fq(YS))&&I in z&&(z=z[I])&&delete z[l])};
Jpx=function(z,l){var I=Fq(YS),b;pn&&I&&((b=z[I])==null?void 0:b[l])!=null&&hQH(j_x,3)};
lF$=function(z,l){l<100||hQH(z1u,1)};
pXf=function(z,l,I,b){var v=b!==void 0;b=!!b;var M=Fq(YS),x;!v&&pn&&M&&(x=z[M])&&IFY(x,lF$);M=[];var g=z.length;x=4294967295;var G=!1,u=!!(l&64),Z=u?l&128?0:-1:void 0;if(!(l&1)){var H=g&&z[g-1];H!=null&&typeof H==="object"&&H.constructor===Object?(g--,x=g):H=void 0;if(u&&!(l&128)&&!v){G=!0;var y;x=((y=bl7)!=null?y:s_5)(x-Z,Z,z,H,void 0)+Z}}l=void 0;for(y=0;y<g;y++){var f=z[y];if(f!=null&&(f=I(f,b))!=null)if(u&&y>=x){var R=y-Z,F=void 0;((F=l)!=null?F:l={})[R]=f}else M[y]=f}if(H)for(var Y in H)g=H[Y],
g!=null&&(g=I(g,b))!=null&&(y=+Y,f=void 0,u&&!Number.isNaN(y)&&(f=y+Z)<x?M[f]=g:(y=void 0,((y=l)!=null?y:l={})[Y]=g));l&&(G?M.push(l):M[x]=l);v&&Fq(YS)&&(z=LA7(z))&&z instanceof vSu&&(M[YS]=MWY(z));return M};
xKS=function(z){z[0]=DK$(z[0]);z[1]=DK$(z[1]);return z};
DK$=function(z){switch(typeof z){case "number":return Number.isFinite(z)?z:""+z;case "bigint":return FAY(z)?Number(z):""+z;case "boolean":return z?1:0;case "object":if(Array.isArray(z)){var l=z[_.D4]|0;return z.length===0&&l&1?void 0:pXf(z,l,DK$)}if(z!=null&&z[ty]===BX)return OlQ(z);if(z instanceof B_){l=z.JSC$8820_value_;if(l==null)z="";else if(typeof l==="string")z=l;else{if(cGQ){for(var I="",b=0,v=l.length-10240;b<v;)I+=String.fromCharCode.apply(null,l.subarray(b,b+=10240));I+=String.fromCharCode.apply(null,
b?l.subarray(b):l);l=btoa(I)}else l=_.Tc(l);z=z.JSC$8820_value_=l}return z}if(z instanceof qK)return z=z.size!==0?Array.from(SW.prototype.entries.call(z),xKS):void 0,z;return}return z};
d4=function(z,l){if(l){bl7=l==null||l===s_5||l[gSY]!==Gc1?s_5:l;try{return OlQ(z)}finally{bl7=void 0}}return OlQ(z)};
OlQ=function(z){z=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return pXf(z,z[_.D4]|0,DK$)};
uqu=function(z){switch(typeof z){case "boolean":return N4t||(N4t=[0,void 0,!0]);case "number":return z>0?void 0:z===0?ES$||(ES$=[0,void 0]):[-z,void 0];case "string":return[0,z];case "object":return z}};
s8=function(z,l,I){return z=_.PX(z,l[0],l[1],I?1:2)};
_.PX=function(z,l,I,b){b=b===void 0?0:b;if(z==null){var v=32;I?(z=[I],v|=128):z=[];l&&(v=v&-8380417|(l&1023)<<13)}else{if(!Array.isArray(z))throw Error("O");v=z[_.D4]|0;if(ZlG&&1&v)throw Error("P");2048&v&&!(2&v)&&Hl1();if(v&256)throw Error("Q");if(v&64)return b!==0||v&2048||x0(z,v|2048),z;if(I&&(v|=128,I!==z[0]))throw Error("R");a:{I=z;v|=64;var M=I.length;if(M){var x=M-1,g=I[x];if(g!=null&&typeof g==="object"&&g.constructor===Object){l=v&128?0:-1;x-=l;if(x>=1024)throw Error("T");for(var G in g)M=
+G,M<x&&(I[M+l]=g[G],delete g[G]);v=v&-8380417|(x&1023)<<13;break a}}if(l){G=Math.max(l,M-(v&128?0:-1));if(G>1024)throw Error("U");v=v&-8380417|(G&1023)<<13}}}v|=64;b===0&&(v|=2048);x0(z,v);return z};
Hl1=function(){if(ZlG)throw Error("S");hQH(yyH,5)};
R17=function(z,l){if(typeof z!=="object")return z;if(Array.isArray(z)){var I=z[_.D4]|0;return z.length===0&&I&1?void 0:fFp(z,I,l)}if(z!=null&&z[ty]===BX)return CKx(z);if(z instanceof qK){l=z.arrayState;if(l&2)return z;if(!z.size)return;I=Oj(kct(z));if(z.valueCtor)for(z=0;z<I.length;z++){var b=I[z],v=b[1];v==null||typeof v!=="object"?v=void 0:v!=null&&v[ty]===BX?v=CKx(v):Array.isArray(v)?v=fFp(v,v[_.D4]|0,!!(l&32)):v=void 0;b[1]=v}return I}if(z instanceof B_)return z};
fFp=function(z,l,I){if(l&2)return z;!I||4096&l||16&l?z=r4(z,l,!1,I&&!(l&16)):($pH(z,34),l&4&&Object.freeze(z));return z};
mKQ=function(z,l,I){z=new z.constructor(l);I&&(z.copyOnWrite=Nz);z.noLegacyNull=Nz;return z};
CKx=function(z){var l=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=l[_.D4]|0;return fn(z,I)?z:K0f(z,l,I)?mKQ(z,l):r4(l,I)};
r4=function(z,l,I,b){b!=null||(b=!!(34&l));z=pXf(z,l,R17,b);b=32;I&&(b|=2);l=l&8380609|b;x0(z,l);return z};
$z5=function(z){var l=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=l[_.D4]|0;return fn(z,I)?K0f(z,l,I)?mKQ(z,l,!0):new z.constructor(r4(l,I,!1)):z};
eW=function(z){if(z.copyOnWrite!==Nz)return!1;var l=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=r4(l,l[_.D4]|0);$pH(l,2048);z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=l;z.copyOnWrite=void 0;z.noLegacyNull=void 0;return!0};
w4=function(z){if(!eW(z)&&fn(z,z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.D4]|0))throw Error();};
Ay=function(z,l){l===void 0&&(l=z[_.D4]|0);l&32&&!(l&4096)&&x0(z,l|4096)};
K0f=function(z,l,I){return I&2?!0:I&32&&!(I&4096)?(x0(l,I|2),z.copyOnWrite=Nz,!0):!1};
nl=function(z,l,I,b,v){var M=I+(v?0:-1),x=z.length-1;if(x>=1+(v?0:-1)&&M>=x){var g=z[x];if(g!=null&&typeof g==="object"&&g.constructor===Object)return g[I]=b,l}if(M<=x)return z[M]=b,l;if(b!==void 0){var G;x=((G=l)!=null?G:l=z[_.D4]|0)>>13&1023||536870912;I>=x?b!=null&&(M={},z[x+(v?0:-1)]=(M[I]=b,M)):z[M]=b}return l};
_.aC=function(z,l,I,b,v){var M=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=M[_.D4]|0;b=fn(z,x)?1:b;v=!!v||b===3;b===2&&eW(z)&&(M=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=M[_.D4]|0);z=tWY(M,l);var g=z===Ll?7:z[_.D4]|0,G=B4x(g,x);var u=4&G?!1:!0;if(u){4&G&&(z=ww(z),g=0,G=U8(G,x),x=nl(M,x,l,z));for(var Z=0,H=0;Z<z.length;Z++){var y=I(z[Z]);y!=null&&(z[H++]=y)}H<Z&&(z.length=H);I=(G|4)&-513;G=I&=-1025;G&=-4097}G!==g&&(x0(z,G),2&G&&Object.freeze(z));return z=XXt(z,G,M,
x,l,b,u,v)};
XXt=function(z,l,I,b,v,M,x,g){var G=l;M===1||(M!==4?0:2&l||!(16&l)&&32&b)?Vs(l)||(l|=!z.length||x&&!(4096&l)||32&b&&!(4096&l||16&l)?2:256,l!==G&&x0(z,l),Object.freeze(z)):(M===2&&Vs(l)&&(z=ww(z),G=0,l=U8(l,b),b=nl(I,b,v,z)),Vs(l)||(g||(l|=16),l!==G&&x0(z,l)));2&l||!(4096&l||16&l)||Ay(I,b);return z};
tWY=function(z,l,I){z=jW(z,l,I);return Array.isArray(z)?z:Ll};
B4x=function(z,l){2&l&&(z|=2);return z|1};
Vs=function(z){return!!(2&z)&&!!(4&z)||!!(256&z)};
q81=function(z){return _.iu(z,!0)};
ilG=function(z){z=ww(z);for(var l=0;l<z.length;l++){var I=z[l]=ww(z[l]);Array.isArray(I[1])&&(I[1]=Oj(I[1]))}return z};
F0Q=function(z,l){var I=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=I[_.D4]|0;a:{var v=b;b=fn(z,b);!b&&eW(z)&&(I=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=I[_.D4]|0);var M=jW(I,l);z=!1;if(M==null){if(b){l=n0H();break a}M=[]}else if(M.constructor===qK)if(M.arrayState&2&&!b)M=kct(M);else{l=M;break a}else Array.isArray(M)?z=!!((M[_.D4]|0)&2):M=[];if(b){if(!M.length){l=n0H();break a}z||(z=!0,Oj(M))}else z&&(z=!1,M=ilG(M));!z&&v&32&&w7f(M);b=new qK(M,void 0,hIH,hIH);v=nl(I,
v,l,b);z||Ay(I,v);l=b}return l};
_.Jy=function(z,l,I,b){w4(z);var v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=v[_.D4]|0;if(I==null)return nl(v,M,l),z;var x=I===Ll?7:I[_.D4]|0,g=x,G=Vs(x),u=G||Object.isFrozen(I);G||(x=0);u||(I=ww(I),g=0,x=U8(x,M),u=!1);x|=5;var Z;G=(Z=eQ$(x))!=null?Z:0;for(Z=0;Z<I.length;Z++){var H=I[Z],y=b(H,G);Object.is(H,y)||(u&&(I=ww(I),g=0,x=U8(x,M),u=!1),I[Z]=y)}x!==g&&(u&&(I=ww(I),x=U8(x,M)),x0(I,x));nl(v,M,l,I);return z};
_.zT=function(z,l,I,b,v){w4(z);var M=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nl(M,M[_.D4]|0,l,(b==="0"?Number(I)===0:I===b)?void 0:I,v);return z};
_.l8=function(z,l,I){if(l&2)throw Error();var b=T_(l),v=tWY(z,I,b),M=v===Ll?7:v[_.D4]|0,x=B4x(M,l);if(2&x||Vs(x)||16&x)v=ww(v),M=0,x=U8(x,l),nl(z,l,I,v,b);x&=-13;x!==M&&x0(v,x);return v};
QCp=function(z){if(pn){var l;return(l=z[Iu])!=null?l:z[Iu]=new Map}if(Iu in z)return z[Iu];l=new Map;Object.defineProperty(z,Iu,{value:l});return l};
T45=function(z,l,I,b,v){var M=QCp(z),x=Y85(M,z,l,I,v);x!==b&&(x&&(l=nl(z,l,x,void 0,v)),M.set(I,b));return l};
Y85=function(z,l,I,b,v){var M=z.get(b);if(M!=null)return M;for(var x=M=0;x<b.length;x++){var g=b[x];jW(l,g,v)!=null&&(M!==0&&(I=nl(l,I,M,void 0,v)),M=g)}z.set(b,M);return M};
cy7=function(z,l,I,b,v){var M=!1;b=jW(z,b,v,function(x){var g=Pu1(x,I,!1,l);M=g!==x&&g!=null;return g});
if(b!=null)return M&&!fn(b)&&Ay(z,l),b};
S8p=function(z,l,I,b,v,M,x,g){var G=fn(z,I);M=G?1:M;x=!!x||M===3;G=g&&!G;(M===2||G)&&eW(z)&&(l=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=l[_.D4]|0);z=tWY(l,v);var u=z===Ll?7:z[_.D4]|0,Z=B4x(u,I);if(g=!(4&Z)){var H=z,y=I,f=!!(2&Z);f&&(y|=2);for(var R=!f,F=!0,Y=0,c=0;Y<H.length;Y++){var d=Pu1(H[Y],b,!1,y);if(d instanceof b){if(!f){var V=fn(d);R&&(R=!V);F&&(F=V)}H[c++]=d}}c<Y&&(H.length=c);Z|=4;Z=F?Z&-4097:Z|4096;Z=R?Z|8:Z&-9}Z!==u&&(x0(z,Z),2&Z&&Object.freeze(z));if(G&&!(8&Z||!z.length&&
(M===1||(M!==4?0:2&Z||!(16&Z)&&32&I)))){Vs(Z)&&(z=ww(z),Z=U8(Z,I),I=nl(l,I,v,z));b=z;G=Z;for(u=0;u<b.length;u++)H=b[u],Z=$z5(H),H!==Z&&(b[u]=Z);G|=8;Z=G=b.length?G|4096:G&-4097;x0(z,Z)}return z=XXt(z,Z,l,I,v,M,g,x)};
dKk=function(z){z==null&&(z=void 0);return z};
U8=function(z,l){return z=(2&l?z|2:z&-3)&-273};
_.oSt=function(z,l,I,b,v){w4(z);l=_.aC(z,l,v,2,!0);var M;v=(M=eQ$(l===Ll?7:l[_.D4]|0))!=null?M:0;l.push(I(b,v));return z};
PK5=function(z,l,I,b,v,M,x){w4(z);var g=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=S8p(z,g,g[_.D4]|0,I,l,2,!0);if(M&&x)v!=null||(v=z.length-1),WQS(z,v),z.splice(v,M),z.length||(z[_.D4]&=-4097);else{if(M){if(typeof v!=="number"||v<0||v>z.length)throw Error();}else b=b!=null?b:new I;v!=void 0?z.splice(v,M,b):z.push(b);v=I=z===Ll?7:z[_.D4]|0;(b=fn(b))?(I&=-9,z.length===1&&(I&=-4097)):I|=4096;I!==v&&x0(z,I);b||Ay(g)}};
sCt=function(z,l){if(typeof z==="string")return new b8(dp$(z),l);if(Array.isArray(z))return new b8(new Uint8Array(z),l);if(z.constructor===Uint8Array)return new b8(z,!1);if(z.constructor===ArrayBuffer)return z=new Uint8Array(z),new b8(z,!1);if(z.constructor===B_)return l=h1H(z)||new Uint8Array(0),new b8(l,!0,z);if(z instanceof Uint8Array)return z=z.constructor===Uint8Array?z:new Uint8Array(z.buffer,z.byteOffset,z.byteLength),new b8(z,!1);throw Error();};
$K5=function(z){switch(typeof z){case "string":ry1(z)}};
wXQ=function(z){switch(typeof z){case "string":e11(z)}};
vQ=function(){var z=function(){throw Error();};
Object.setPrototypeOf(z,z.prototype);return z};
W0S=function(z,l){var I=I===void 0?Ay7:I;return new MZ(z,l,I)};
UKH=function(z,l,I,b,v){nSf(z,I,L0G(l,b),v)};
pD=function(z,l,I,b){var v=b[z];if(v)return v;v={};v.binaryFields=b;v.messageMetadata=uqu(b[0]);var M=b[1],x=1;M&&M.constructor===Object&&(v.extensions=M,M=b[++x],typeof M==="function"&&(v.isMessageSet=!0,aFk!=null||(aFk=M),VWH!=null||(VWH=b[x+1]),M=b[x+=2]));for(var g={};M&&jCt(M);){for(var G=0;G<M.length;G++)g[M[G]]=M;M=b[++x]}for(G=1;M!==void 0;){typeof M==="number"&&(G+=M,M=b[++x]);var u=void 0;if(M instanceof MZ)var Z=M;else Z=Jyp,x--;M=void 0;if((M=Z)==null?0:M.$$isMsg){M=b[++x];u=b;var H=x;
typeof M==="function"&&(M=M(),u[H]=M);u=M}M=b[++x];H=G+1;typeof M==="number"&&M<0&&(H-=M,M=b[++x]);for(;G<H;G++){var y=g[G];u?I(v,G,Z,u,y):l(v,G,Z,y)}}return b[z]=v};
jCt=function(z){return Array.isArray(z)&&!!z.length&&typeof z[0]==="number"&&z[0]>0};
laQ=function(z){return Array.isArray(z)?z[0]instanceof MZ?z:[zZ$,z]:[z,void 0]};
L0G=function(z,l){if(z instanceof _.Da)return z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(z))return s8(z,l,!1)};
Ia5=function(z,l,I,b){var v=I.$$binaryReaderFn;z[l]=b?function(M,x,g){return v(M,x,g,b)}:v};
vRY=function(z,l,I,b,v){var M=I.$$binaryReaderFn,x,g;z[l]=function(G,u,Z){return M(G,u,Z,g||(g=pD(bD1,Ia5,vRY,b).messageMetadata),x||(x=MAQ(b)),v)}};
MAQ=function(z){var l=z[pQ$];if(l!=null)return l;var I=pD(bD1,Ia5,vRY,z);l=I.isMessageSet?function(b,v){return aFk(b,v,I)}:function(b,v){for(;DZ1(v)&&v.nextWireType_!=4;){var M=v.nextField_,x=I[M];
if(x==null){var g=I.extensions;g&&(g=g[M])&&(g=xZ$(g),g!=null&&(x=I[M]=g))}if(x==null||!x(v,b,M)){g=v;x=g.fieldCursor_;ODH(g);if(g.discardUnknownFields)var G=void 0;else{var u=g.decoder_.cursor_-x;g.decoder_.cursor_=x;G=gRk(g.decoder_,u)}u=g=x=void 0;var Z=b;G&&((x=(g=(u=Z[YS])!=null?u:Z[YS]=new vSu)[M])!=null?x:g[M]=[]).push(G)}}if(b=LA7(b))b.reviveUnknownFields=I.binaryFields[GTQ];return!0};
z[pQ$]=l;z[GTQ]=N0Q.bind(z);return l};
N0Q=function(z,l,I,b){var v=this[bD1],M=this[pQ$],x=s8(void 0,v.messageMetadata,!1),g=LA7(z);if(g){var G=!1,u=v.extensions;if(u){v=function(R,F,Y){if(Y.length!==0)if(u[F])for(R=_.D(Y),F=R.next();!F.done;F=R.next()){F=ERQ(F.value);try{G=!0,M(x,F)}finally{F.free()}}else b==null||b(z,F,Y)};
if(l==null)IFY(g,v);else if(g!=null){var Z=g[l];Z&&v(g,l,Z)}if(G){var H=z[_.D4]|0;if(H&2&&H&2048&&(I==null||!I.reviveIntoImmutable))throw Error();var y=T_(H),f=function(R,F){if(jW(z,R,y)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}F!=null&&(H=nl(z,H,R,F,y));delete g[R]};
l==null?n5$(x,x[_.D4]|0,function(R,F){f(R,F)}):f(l,jW(x,l,y))}}}};
xZ$=function(z){z=laQ(z);var l=z[0].$$binaryReaderFn;if(z=z[1]){var I=MAQ(z),b=pD(bD1,Ia5,vRY,z).messageMetadata;return function(v,M,x){return l(v,M,x,b,I)}}return l};
ur$=function(z,l,I){z[l]=I.$$binaryWriterFn};
HDt=function(z,l,I,b){var v,M,x=I.$$binaryWriterFn;z[l]=function(g,G,u){return x(g,G,u,M||(M=pD(ZDQ,ur$,HDt,b).messageMetadata),v||(v=yT5(b)))}};
yT5=function(z){var l=z[faG];if(!l){var I=pD(ZDQ,ur$,HDt,z);l=function(b,v){return C8k(b,v,I)};
z[faG]=l}return l};
C8k=function(z,l,I){n5$(z,z[_.D4]|0,function(b,v){if(v!=null){var M=kTk(I,b);M?M(l,v,b):b<500||hQH(RZt,3)}});
(z=LA7(z))&&IFY(z,function(b,v,M){xR(l,l.encoder_.end());for(b=0;b<M.length;b++)xR(l,h1H(M[b])||new Uint8Array(0))})};
kTk=function(z,l){var I=z[l];if(I)return I;if(I=z.extensions)if(I=I[l]){I=laQ(I);var b=I[0].$$binaryWriterFn;if(I=I[1]){var v=yT5(I),M=pD(ZDQ,ur$,HDt,I).messageMetadata;I=z.isMessageSet?VWH(M,v):function(x,g,G){return b(x,g,G,M,v)}}else I=b;
return z[l]=I}};
_.mZk=function(z,l,I){if(Array.isArray(l)){var b=l[_.D4]|0;if(b&4)return l;for(var v=0,M=0;v<l.length;v++){var x=z(l[v]);x!=null&&(l[M++]=x)}M<v&&(l.length=M);I&&(x0(l,(b|5)&-1537),b&2&&Object.freeze(l));return l}};
_.g0=function(z,l,I){return new MZ(z,l,I)};
_.K7p=function(z,l,I){return new MZ(z,l,I)};
_.GT=function(z,l,I){nl(z,z[_.D4]|0,l,I,T_(z[_.D4]|0))};
tA1=function(z,l,I){l=_.nn(l);l!=null&&(_.NZ(z,I,1),z=z.encoder_,I=bn5||(bn5=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+l,!0),o_=I.getUint32(0,!0),P_=I.getUint32(4,!0),_.Ev(z,o_),_.Ev(z,P_))};
B0$=function(z,l,I){l=_.nn(l);l!=null&&(_.NZ(z,I,5),z=z.encoder_,v0S(l),_.Ev(z,o_))};
_.Za=function(z,l,I){l=cpu(l);if(l!=null&&($K5(l),l!=null))switch(_.NZ(z,I,0),typeof l){case "number":z=z.encoder_;hp(l);u8(z,o_,P_);break;case "bigint":I=BigInt.asUintN(64,l);I=new XQH(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));u8(z.encoder_,I.JSC$8863_lo,I.JSC$8863_hi);break;default:I=ry1(l),u8(z.encoder_,I.JSC$8863_lo,I.JSC$8863_hi)}};
iDQ=function(z,l,I){l=_.MK(l);l!=null&&l!=null&&(_.NZ(z,I,0),_.qv1(z.encoder_,l))};
_.Qu$=function(z,l,I){F7p(z,I,Sjx(l))};
Yvu=function(z,l,I){l=_.G_f(l);l!=null&&(_.NZ(z,I,0),z.encoder_.JSC$8865_buffer_.push(l?1:0))};
cT5=function(z,l,I){l=_.m0(l);l!=null&&T0x(z,I,v5p(l))};
Sv7=function(z,l,I,b,v){nSf(z,I,L0G(l,b),v)};
_.dZS=function(z,l,I){l=l==null||typeof l=="string"||l instanceof B_?l:void 0;l!=null&&T0x(z,I,sCt(l,!0).buffer)};
oRu=function(z,l,I){l=_.uAu(l);l!=null&&l!=null&&(_.NZ(z,I,0),HQ(z.encoder_,l))};
_.P8Y=function(z,l,I){l=_.MK(l);l!=null&&(l=parseInt(l,10),_.NZ(z,I,0),_.qv1(z.encoder_,l))};
_.yR=function(z,l){return function(I,b){var v={treatNewDataAsImmutable:!0};b&&Object.assign(v,b);I=ERQ(I,void 0,void 0,v);try{var M=new z,x=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;MAQ(l)(x,I);var g=M}finally{I.free()}return g}};
_.fD=function(z){return function(l){return hZf(l,z)}};
su1=function(z){return function(){return hZf(this,z)}};
_.rT$=function(z){return c_(function(l){return l instanceof z&&!fn(l)})};
_.kR=function(z){return function(l){return $ZQ(z,l)}};
W7x=function(z,l){return eZu({child:z,origin:l||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:wQf,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var b=new KD,v=new AT7;I=_.tT(v,1,I);return _.Xr(b,5,qZ,I)}})};
i8=function(z){return{valueOf:z}.valueOf()};
L7G=function(){var z=null;if(!nRu)return z;try{var l=function(I){return I};
z=nRu.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(I){}return z};
aaH=function(){UZ1===void 0&&(UZ1=L7G());return UZ1};
_.QR=function(z){var l=aaH();z=l?l.createScriptURL(z):z;return new Fr(z)};
_.YR=function(z){if(z instanceof Fr)return z.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.cQ=function(z){return Object.isFrozen(z)&&Object.isFrozen(z.raw)};
VAQ=function(z){return z.toString().indexOf("`")===-1};
d0=function(z){return new _.SA(juQ,z)};
ou=function(z){return z instanceof _.SA};
_.hT=function(z){if(ou(z))return z.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
sv=function(z){return new JTH(function(l){return l.substr(0,z.length+1).toLowerCase()===z+":"})};
_.r0=function(z,l){l=l===void 0?zPx:l;if(ou(z))return z;for(var I=0;I<l.length;++I){var b=l[I];if(b instanceof JTH&&b.isValid(z))return d0(z)}};
_.eA=function(z,l){l=l===void 0?zPx:l;return _.r0(z,l)||$R};
_.w0=function(z){var l=window;if(typeof MediaSource!=="undefined"&&z instanceof MediaSource||typeof l.ManagedMediaSource!=="undefined"&&z instanceof l.ManagedMediaSource)return d0(URL.createObjectURL(z));l=z.type;l.toLowerCase()==="application/octet-stream"?l=!0:(l=l.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),l=(l==null?void 0:l.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(l[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(l[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(l[1])||/^font\/[\w-]+$/i.test(l[1])));if(!l)throw Error("Z");return d0(URL.createObjectURL(z))};
_.l15=function(z){for(var l=_.AT.apply(1,arguments),I=[z[0]],b=0;b<l.length;b++)I.push(String(l[b])),I.push(z[b+1]);return d0(I.join(""))};
_.b4u=function(z){if(!I1G){a:{var l=document.createElement("a");try{l.href=z}catch(I){z=void 0;break a}z=l.protocol;z=z===":"||z===""?"https:":z}return z}try{l=new URL(z)}catch(I){return"https:"}return l.protocol};
_.WQ=function(z){z instanceof _.SA?z=_.hT(z):z=vdk.test(z)?z:void 0;return z};
nD=function(z,l){l=_.WQ(l);l!==void 0&&(z.href=l)};
au=function(z){var l=aaH();z=l?l.createHTML(z):z;return new LD(z)};
VR=function(z){if(z instanceof LD)return z.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.JT=function(z,l){z.src=_.YR(l).toString()};
MYQ=function(z,l){z.setAttribute("sandbox","");for(var I=0;I<l.length;I++)z.sandbox.supports&&!z.sandbox.supports(l[I])||z.sandbox.add(l[I])};
_.Dek=function(z,l,I){z.removeAttribute("srcdoc");switch(l){case 0:if(I instanceof Fr)throw new p0k("TrustedResourceUrl",0);MYQ(z,[]);l=_.WQ(I);l!==void 0&&(z.src=l);break;case 1:if(!(I instanceof Fr))throw new p0k(typeof I,1);MYQ(z,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.JT(z,I);break;case 2:if(I instanceof Fr)throw new p0k("TrustedResourceUrl",2);MYQ(z,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
l=_.WQ(I);l!==void 0&&(z.src=l);break;default:_.Ap(l)}};
_.zg=function(z,l,I,b){l=_.WQ(l);return l!==void 0?z.open(l,I,b):null};
_.lt=function(z){z=z===void 0?document:z;var l,I;z=(I=(l=z).querySelector)==null?void 0:I.call(l,"script[nonce]");return z==null?"":z.nonce||z.getAttribute("nonce")||""};
_.bt=function(z){var l=aaH();z=l?l.createScript(z):z;return new _.IL(z)};
xef=function(z){if(z instanceof _.IL)return z.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
O41=function(z){var l=_.lt(z.ownerDocument);l&&z.setAttribute("nonce",l)};
_.v0=function(z,l){z.textContent=xef(l);O41(z)};
_.Me=function(z,l){z.src=_.YR(l);O41(z)};
_.p4=function(z,l){if(z.nodeType===1&&/^(script|style)$/i.test(z.tagName))throw Error("Z");z.innerHTML=VR(l)};
_.D1=function(z,l,I,b){if(z.length===0)throw Error("Z");z=z.map(function(M){if(M instanceof gdu)M=M.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return M});
var v=I.toLowerCase();if(z.every(function(M){return v.indexOf(M)!==0}))throw Error("aa`"+I);
l.setAttribute(I,b)};
_.xd=function(z,l,I){if(l instanceof Fr)z.href=_.YR(l).toString(),z.rel=I;else{if(GgQ.indexOf(I)===-1)throw Error("ba`"+I);l=_.WQ(l);l!==void 0&&(z.href=l,z.rel=I)}};
NH1=function(z){if(z instanceof gH)return z.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.EdG=function(z,l){l=_.WQ(l);l!==void 0&&(z.href=l)};
uPf=function(z){return _.QR(z)};
Z4H=function(z,l){z&&(l=z.indexOf(l),0<=l&&z.splice(l,1))};
Gg=function(z){return typeof z==="function"};
H4u=function(z){return z instanceof Ne||z&&"closed"in z&&Gg(z.remove)&&Gg(z.add)&&Gg(z.unsubscribe)};
Eu=function(){};
ut=function(z){ytt(function(){throw z;})};
Z1=function(z){return z};
H0=function(){return f1Q(_.AT.apply(0,arguments))};
f1Q=function(z){return z.length===0?Z1:z.length===1?z[0]:function(l){return z.reduce(function(I,b){return b(I)},l)}};
Ct$=function(z){var l;return(l=z!=null?z:void 0)!=null?l:Promise};
kgk=function(z,l){return new yZ(function(I){var b=0;return l.schedule(function(){b===z.length?I.complete():(I.next(z[b++]),I.closed||this.schedule())})})};
RPG=function(z,l){if(!z)throw Error("ca");return new yZ(function(I){var b=new Ne;b.add(l.schedule(function(){var v=z[Symbol.asyncIterator]();b.add(l.schedule(function(){var M=this;v.next().then(function(x){x.done?I.complete():(I.next(x.value),M.schedule())})}))}));
return b})};
mex=function(z,l,I){l=l.schedule(function(){try{I.call(this)}catch(b){z.error(b)}},0);
z.add(l)};
tYG=function(z,l){return new yZ(function(I){var b;I.add(l.schedule(function(){b=z[KX7]();mex(I,l,function(){var v=b.next(),M=v.value;v.done?I.complete():(I.next(M),this.schedule())})}));
return function(){var v;return Gg((v=b)==null?void 0:v.return)&&b.return()}})};
BHt=function(z,l){return new yZ(function(I){var b=new Ne;b.add(l.schedule(function(){var v=z[f4]();b.add(v.subscribe({next:function(M){b.add(l.schedule(function(){return I.next(M)}))},
error:function(M){b.add(l.schedule(function(){return I.error(M)}))},
complete:function(){b.add(l.schedule(function(){return I.complete()}))}}))}));
return b})};
X0u=function(z,l){return new yZ(function(I){return l.schedule(function(){return z.then(function(b){I.add(l.schedule(function(){I.next(b);I.add(l.schedule(function(){return I.complete()}))}))},function(b){I.add(l.schedule(function(){return I.error(b)}))})})})};
qu$=function(z){return new TypeError("da`"+(z!==null&&typeof z==="object"?"an invalid object":"'"+z+"'"))};
FX5=function(z,l){if(z!=null){if(Gg(z[f4]))return BHt(z,l);if(i4x(z))return kgk(z,l);if(Gg(z==null?void 0:z.then))return X0u(z,l);if(Symbol.asyncIterator&&Gg(z==null?void 0:z[Symbol.asyncIterator]))return RPG(z,l);if(Gg(z==null?void 0:z[KX7]))return tYG(z,l)}throw qu$(z);};
kd=function(z,l){return l?FX5(z,l):C4(z)};
C4=function(z){if(z instanceof yZ)return z;if(z!=null){if(Gg(z[f4]))return QLG(z);if(i4x(z))return Yut(z);if(Gg(z==null?void 0:z.then))return THS(z);if(Symbol.asyncIterator&&Gg(z==null?void 0:z[Symbol.asyncIterator]))return ct7(z);if(Gg(z==null?void 0:z[KX7]))return SuH(z)}throw qu$(z);};
QLG=function(z){return new yZ(function(l){var I=z[f4]();if(Gg(I.subscribe))return I.subscribe(l);throw new TypeError("ea");})};
Yut=function(z){return new yZ(function(l){for(var I=0;I<z.length&&!l.closed;I++)l.next(z[I]);l.complete()})};
THS=function(z){return new yZ(function(l){z.then(function(I){l.closed||(l.next(I),l.complete())},function(I){return l.error(I)}).then(null,ut)})};
SuH=function(z){return new yZ(function(l){for(var I=z[KX7]();!l.closed;){var b=I.next(),v=b.value;b.done?l.complete():l.next(v)}return function(){return Gg(I==null?void 0:I.return)&&I.return()}})};
ct7=function(z){return new yZ(function(l){deH(z,l).catch(function(I){return l.error(I)})})};
deH=function(z,l){var I,b,v,M,x,g;return _.O(function(G){switch(G.nextAddress){case 1:_.RL(G,2,3),M=_.mX(z);case 5:return G.yield(M.next(),8);case 8:b=G.yieldResult;if(b.done){G.jumpTo(3);break}x=b.value;l.next(x);G.jumpTo(5);break;case 3:_.K4(G);_.tt(G,9);if(!b||b.done||!(v=M.return)){G.jumpTo(9);break}return G.yield(v.call(M),9);case 9:_.K4(G,0,0,1);if(I)throw I.error;_.B0(G,10,1);break;case 10:_.B0(G,4);break;case 2:g=_.XP(G);I={error:g};G.jumpTo(3);break;case 4:l.complete(),_.qe(G)}})};
od7=function(z,l){return l?kgk(z,l):Yut(z)};
PtQ=function(z){return Gg(z[z.length-1])?z.pop():void 0};
QZ=function(z){var l=z[z.length-1];return l&&Gg(l.schedule)?z.pop():void 0};
Yd=function(){var z=_.AT.apply(0,arguments),l=QZ(z);return l?kgk(z,l):od7(z)};
Tg=function(z){var l=Gg(z)?z:function(){return z};
return new yZ(function(I){return I.error(l())})};
c0=function(z){return function(l){if(Gg(l==null?void 0:l.lift))return l.lift(function(I){try{return z(I,this)}catch(b){this.error(b)}});
throw new TypeError("fa");}};
oL=function(){return c0(function(z,l){var I=null;z._refCount++;var b=new SY(l,void 0,void 0,void 0,function(){if(!z||z._refCount<=0||0<--z._refCount)I=null;else{var v=z._connection,M=I;I=null;!v||M&&v!==M||v.unsubscribe();l.unsubscribe()}});
z.subscribe(b);b.closed||(I=z.connect())})};
sLk=function(){var z=hP$;var l=l===void 0?0:l;return c0(function(I,b){b.add(z.schedule(function(){return I.subscribe(b)},l))})};
P0=function(z){return c0(function(l,I){var b=0;l.subscribe(new SY(I,function(v){I.next(z.call(void 0,v,b++))}))})};
$ex=function(z){return P0(function(l){return rtx(l)?z.apply(null,_.ht(l)):z(l)})};
ndQ=function(z){if(z.length===1){var l=z[0];if(ePp(l))return{args:l,keys:null};if(l&&typeof l==="object"&&w0k(l)===AtQ)return z=WXt(l),{args:z.map(function(I){return l[I]}),
keys:z}}return{args:z,keys:null}};
su=function(){var z=_.AT.apply(0,arguments),l=QZ(z),I=PtQ(z);z=ndQ(z);var b=z.args,v=z.keys;if(b.length===0)return kd([],l);l=new yZ(LXf(b,l,v?function(M){for(var x={},g=0;g<M.length;g++)x[v[g]]=M[g];return x}:Z1));
return I?l.pipe($ex(I)):l};
LXf=function(z,l,I){I=I===void 0?Z1:I;return function(b){Ue$(l,function(){for(var v=z.length,M=Array(v),x=v,g=z.map(function(){return!1}),G=!0,u={i$jscomp$217:0};u.i$jscomp$217<v;u={i$jscomp$217:u.i$jscomp$217},u.i$jscomp$217++)Ue$(l,function(Z){return function(){kd(z[Z.i$jscomp$217],l).subscribe(new rH(b,function(H){M[Z.i$jscomp$217]=H;
G&&(g[Z.i$jscomp$217]=!0,G=!g.every(Z1));G||b.next(I(M.slice()))},function(){return--x===0}))}}(u),b)},b)}};
Ue$=function(z,l,I){z?I.add(z.schedule(l)):l()};
a1x=function(z,l,I,b){var v=[],M=0,x=0,g=!1,G=function(u){M++;C4(I(u,x++)).subscribe(new SY(l,function(Z){l.next(Z)},void 0,function(){M--;
for(var Z={};v.length&&M<b;Z={bufferedValue:void 0})Z.bufferedValue=v.shift(),G(Z.bufferedValue);!g||v.length||M||l.complete()}))};
z.subscribe(new SY(l,function(u){return M<b?G(u):v.push(u)},void 0,function(){g=!0;
!g||v.length||M||l.complete()}));
return function(){v=null}};
$d=function(z,l){var I=I===void 0?Infinity:I;if(Gg(l))return $d(function(b,v){return P0(function(M,x){return l(b,M,v,x)})(C4(z(b,v)))},I);
typeof l==="number"&&(I=l);return c0(function(b,v){return a1x(b,v,z,I)})};
VYH=function(z){z=z===void 0?Infinity:z;return $d(Z1,z)};
jL$=function(){var z=_.AT.apply(0,arguments);return VYH(1)(od7(z,QZ(z)))};
Jt$=function(z){return new yZ(function(l){C4(z()).subscribe(l)})};
eY=function(z,l,I){if(Gg(I)){var b=I;I=void 0}if(b)return eY(z,l,I).pipe($ex(b));b=_.D(Gg(z.addEventListener)&&Gg(z.removeEventListener)?zxQ.map(function(x){return function(g){return z[x](l,g,I)}}):Gg(z.addListener)&&Gg(z.removeListener)?lCx.map(ICt(z,l)):Gg(z.on)&&Gg(z.off)?b7p.map(ICt(z,l)):[]);
var v=b.next().value,M=b.next().value;return!v&&i4x(z)?$d(function(x){return eY(x,l,I)})(od7(z)):new yZ(function(x){if(!v)throw new TypeError("ga");
var g=function(){var G=_.AT.apply(0,arguments);return x.next(1<G.length?G:G[0])};
v(g);return function(){return M(g)}})};
ICt=function(z,l){return function(I){return function(b){return z[I](l,b)}}};
At=function(){var z=_.AT.apply(0,arguments),l=QZ(z);var I=typeof z[z.length-1]==="number"?z.pop():Infinity;return z.length?z.length===1?C4(z[0]):VYH(I)(od7(z,l)):wH};
M6x=function(z){return z.length===1&&vqu(z[0])?z[0]:z};
pRu=function(){var z=M6x(_.AT.apply(0,arguments));return c0(function(l,I){var b=[l].concat(_.ht(z)),v=function(){if(!I.closed)if(b.length>0){try{var M=C4(b.shift())}catch(g){v();return}var x=new SY(I,void 0,Eu,Eu);I.add(M.subscribe(x));x.add(v)}else I.complete()};
v()})};
n4=function(z){return c0(function(l,I){var b=0;l.subscribe(new SY(I,function(v){return z.call(void 0,v,b++)&&I.next(v)}))})};
xj$=function(){var z=_.AT.apply(0,arguments);z=M6x(z);return z.length===1?C4(z[0]):new yZ(Dj5(z))};
Dj5=function(z){return function(l){for(var I=[],b={i$jscomp$220:0};I&&!l.closed&&b.i$jscomp$220<z.length;b={i$jscomp$220:b.i$jscomp$220},b.i$jscomp$220++)I.push(C4(z[b.i$jscomp$220]).subscribe(new SY(l,function(v){return function(M){if(I){for(var x=0;x<I.length;x++)x!==v.i$jscomp$220&&I[x].unsubscribe();I=null}l.next(M)}}(b))))}};
O7S=function(){var z=_.AT.apply(0,arguments),l=PtQ(z),I=M6x(z);return I.length?new yZ(function(b){var v=I.map(function(){return[]}),M=I.map(function(){return!1});
b.add(function(){v=M=null});
for(var x={sourceIndex$jscomp$1:0};!b.closed&&x.sourceIndex$jscomp$1<I.length;x={sourceIndex$jscomp$1:x.sourceIndex$jscomp$1},x.sourceIndex$jscomp$1++)C4(I[x.sourceIndex$jscomp$1]).subscribe(new SY(b,function(g){return function(G){v[g.sourceIndex$jscomp$1].push(G);v.every(function(u){return u.length})&&(G=v.map(function(u){return u.shift()}),b.next(l?l.apply(null,_.ht(G)):G),v.some(function(u,Z){return!u.length&&M[Z]})&&b.complete())}}(x),void 0,function(g){return function(){M[g.sourceIndex$jscomp$1]=
!0;
!v[g.sourceIndex$jscomp$1].length&&b.complete()}}(x)));
return function(){v=M=null}}):wH};
gq7=function(z){var l,I,b;return!!z&&typeof z.active==="boolean"&&typeof((l=z.clock)==null?void 0:l.now)==="function"&&((I=z.clock)==null?void 0:I.timeline)!==void 0&&!((b=z.lastMeasurement)==null||!b.timestamp)&&typeof z.equivalentTo==="function"&&typeof z.extrapolateToNow==="function"&&typeof z.extrapolateToTime==="function"&&typeof z.map==="function"&&typeof z.joinWith==="function"};
Ghp=function(z){function l(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return l(z)?!0:Array.isArray(z)?z.every(l):typeof z==="object"?Object.keys(z).every(function(I){return typeof I==="string"})&&Object.values(z).every(function(I){return Array.isArray(I)?I.every(l):l(I)}):!1};
Nsk=function(z){if(Ghp(z))return z;if(gq7(z))return{lastMeasurement:{value:Nsk(z.lastMeasurement.value),timestamp:L4(z.lastMeasurement.timestamp,new Uu(0,z.lastMeasurement.timestamp.timeline))},active:z.active};try{return JSON.parse(JSON.stringify(z))}catch(l){}return String(z)};
aL=function(z,l){return function(I){return new yZ(function(b){return I.subscribe(function(v){z.timeExecution(l,function(){b.next(v)})()},function(v){z.timeExecution(l,function(){b.error(v)})()},function(){z.timeExecution(l,function(){b.complete()})()})})}};
Eqt=function(z,l){var I=!1;return new yZ(function(b){var v=z.setTimeout(function(){I=!0;b.next(!0);b.complete()},l);
return function(){I||z.clearTimeout(v)}})};
u5u=function(z){z=z.global;if(z.fetchLater)return z.fetchLater.bind(z)};
VZ=function(z){return c0(function(l,I){var b=null,v=!1,M;b=l.subscribe(new SY(I,void 0,function(x){M=C4(z(x,VZ(z)(l)));b?(b.unsubscribe(),b=null,M.subscribe(I)):v=!0}));
v&&(b.unsubscribe(),b=null,M.subscribe(I))})};
Z7x=function(z,l,I){return function(b,v){var M=I,x=l,g=0;b.subscribe(new SY(v,function(G){var u=g++;x=M?z(x,G,u):(M=!0,G);v.next(x)},void 0,void 0))}};
H7$=function(z){z=z===void 0?null:z;return c0(function(l,I){var b=!1;l.subscribe(new SY(I,function(v){b=!0;I.next(v)},void 0,function(){b||I.next(z);
I.complete()}))})};
jY=function(){return c0(function(z,l){z.subscribe(new SY(l,Eu))})};
Jt=function(z){return c0(function(l,I){l.subscribe(new SY(I,function(){return I.next(z)}))})};
zh=function(z){return z<=0?function(){return wH}:c0(function(l,I){var b=0;
l.subscribe(new SY(I,function(v){++b<=z&&(I.next(v),z<=b&&I.complete())}))})};
Ix=function(z){var l=l===void 0?Z1:l;var I;z=(I=z)!=null?I:y7G;return c0(function(b,v){var M,x=!0;b.subscribe(new SY(v,function(g){var G=l(g);if(x||!z(M,G))x=!1,M=G,v.next(g)}))})};
y7G=function(z,l){return z===l};
ClS=function(z){z=z===void 0?fCY:z;return c0(function(l,I){var b=!1;l.subscribe(new SY(I,function(v){b=!0;I.next(v)},void 0,function(){return b?I.complete():I.error(z())}))})};
fCY=function(){return new khQ};
bl=function(){var z=_.AT.apply(0,arguments);return function(l){return jL$(l,Yd.apply(null,_.ht(z)))}};
Rx$=function(z){return c0(function(l,I){var b=0;l.subscribe(new SY(I,function(v){z.call(void 0,v,b++,l)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
mju=function(){return c0(function(z,l){var I=[];z.subscribe(new SY(l,function(b){I.push(b);1<I.length&&I.shift()},void 0,function(){for(var b=_.D(I),v=b.next();!v.done;v=b.next())l.next(v.value);
l.complete()},function(){I=null}))})};
KHQ=function(z,l){var I=arguments.length>=2;return function(b){return b.pipe(z?n4(function(v,M){return z(v,M,b)}):Z1,mju(),I?H7$(l):ClS(function(){return new khQ}))}};
Mj=function(z){var l=Gg(z)?z:function(){return z};
return Gg()?c0(function(I,b){var v=l();(void 0)(v).subscribe(b).add(I.subscribe(v))}):function(I){var b=new vR(I,l);
Gg(I==null?void 0:I.lift)&&(b.lift=I.lift);b.source=I;b.subjectFactory=l;return b}};
DC=function(z){var l=new p7(z,void 0,void 0);return function(I){return Mj(function(){return l})(I)}};
xq=function(z,l){return c0(Z7x(z,l,arguments.length>=2))};
O7=function(){var z=_.AT.apply(0,arguments),l=QZ(z);return c0(function(I,b){(l?jL$(z,I,l):jL$(z,I)).subscribe(b)})};
gs=function(z){return c0(function(l,I){var b=null,v=0,M=!1;l.subscribe(new SY(I,function(x){var g;(g=b)==null||g.unsubscribe();g=v++;C4(z(x,g)).subscribe(b=new SY(I,function(G){return I.next(G)},void 0,function(){b=null;
M&&!b&&I.complete()}))},void 0,function(){(M=!0,!b)&&I.complete()}))})};
Gh=function(z,l){l=l===void 0?!1:l;return c0(function(I,b){var v=0;I.subscribe(new SY(b,function(M){var x=z(M,v++);(x||l)&&b.next(M);!x&&b.complete()}))})};
t61=function(z,l,I){var b=Gg(z)||l||I?{next:z,error:l,complete:I}:z;return b?c0(function(v,M){v.subscribe(new SY(M,function(x){var g;(g=b.next)==null||g.call(b,x);M.next(x)},function(x){var g;
(g=b.error)==null||g.call(b,x);M.error(x)},function(){var x;
(x=b.complete)==null||x.call(b);M.complete()}))}):Z1};
Bsu=function(){var z=_.AT.apply(0,arguments),l=PtQ(z);return c0(function(I,b){for(var v=z.length,M=Array(v),x=z.map(function(){return!1}),g=!1,G={i$jscomp$230:0};G.i$jscomp$230<v;G={i$jscomp$230:G.i$jscomp$230},G.i$jscomp$230++)C4(z[G.i$jscomp$230]).subscribe(new SY(b,function(u){return function(Z){M[u.i$jscomp$230]=Z;
g||x[u.i$jscomp$230]||(x[u.i$jscomp$230]=!0,(g=x.every(Z1))&&(x=null))}}(G),void 0,Eu));
I.subscribe(new SY(b,function(u){g&&(u=[u].concat(_.ht(M)),b.next(l?l.apply(null,_.ht(u)):u))}))})};
q7k=function(z){try{return!!z&&z.location.href!=null&&XRQ(z,"foo")}catch(l){return!1}};
i71=function(z){var l=[],I=0,b;for(b in z)l[I++]=b;return l};
FHY=function(z,l){for(var I in z)if(z[I]==l)return!0;return!1};
QxQ=function(z,l,I){for(var b in z)if(l.call(I,z[b],b,z))return b};
Y7p=function(z){if(!z||typeof z!=="object")return z;if(typeof z.clone==="function")return z.clone();if(typeof Map!=="undefined"&&z instanceof Map)return new Map(z);if(typeof Set!=="undefined"&&z instanceof Set)return new Set(z);if(z instanceof Date)return new Date(z.getTime());var l=Array.isArray(z)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(z)||z instanceof DataView?{}:new z.constructor(z.length),I;for(I in z)l[I]=Y7p(z[I]);return l};
Tsu=function(z){var l=arguments.length;if(l==1&&Array.isArray(arguments[0]))return Tsu.apply(null,arguments[0]);if(l%2)throw Error("ka");for(var I={},b=0;b<l;b+=2)I[arguments[b]]=arguments[b+1];return I};
c7f=function(z){var l=arguments.length;if(l==1&&Array.isArray(arguments[0]))return c7f.apply(null,arguments[0]);for(var I={},b=0;b<l;b++)I[arguments[b]]=!0;return I};
_.Nj=function(z){return new gdu(z[0].toLowerCase())};
S7$=function(z){for(var l=_.AT.apply(1,arguments),I=z[0],b=0;b<z.length-1;b++)I+=String(l[b]),I+=z[b+1];l=document.implementation.createHTMLDocument("");b=l.createElement("style");l.head.appendChild(b);l=b.sheet;l.insertRule(I,0);if(l.cssRules.length===1&&(I=l.cssRules[0],I instanceof CSSStyleRule))return new gH(I.cssText.replace(/</g,"\\3C "))};
djf=function(z){try{return new URL(z,window.document.baseURI)}catch(l){return new URL("about:invalid")}};
oqS=function(z,l){var I=l.createRange();I.selectNode(l.body);z=au(z);return I.createContextualFragment(VR(z))};
Plk=function(z){z=z.nodeName;return typeof z==="string"?z:"FORM"};
hxY=function(z){z=z.nodeType;return z===1||typeof z!=="number"};
ul=function(z,l,I){z.setAttribute(l,I)};
sxf=function(z){return z.parts.map(function(l){var I=l.descriptor;return""+l.url+(I?" "+I:"")}).join(" , ")};
_.HR=function(z){var l=_.AT.apply(1,arguments);if(l.length===0)return _.QR(z[0]);for(var I=z[0],b=0;b<l.length;b++)I+=encodeURIComponent(l[b])+z[b+1];return _.QR(I)};
_.y6=function(z,l){z=_.YR(z).toString();var I=z.split(/[?#]/),b=/[?]/.test(z)?"?"+I[1]:"";return r7t(I[0],b,/[#]/.test(z)?"#"+(b?I[2]:I[1]):"",l)};
r7t=function(z,l,I,b){function v(x,g){x!=null&&(Array.isArray(x)?x.forEach(function(G){return v(G,g)}):(l+=M+encodeURIComponent(g)+"="+encodeURIComponent(x),M="&"))}
var M=l.length?"&":"?";b.constructor===Object&&(b=Object.entries(b));Array.isArray(b)?b.forEach(function(x){return v(x[1],x[0])}):b.forEach(v);
return _.QR(z+l+I)};
C7=function(z,l,I,b){this.top=z;this.right=l;this.bottom=I;this.left=b};
$j7=function(z){z=z.global;if(z.PendingGetBeacon)return z.PendingGetBeacon};
Rx=function(z){return function(l){return l.pipe(exH(z,Mj(new kq)))}};
mH=function(z){return function(l){return l.pipe(exH(z,DC(1)))}};
exH=function(z,l){function I(b){return new yZ(function(v){return b.subscribe(function(M){K7(z,function(){return void v.next(M)},3)},function(M){K7(z,function(){return void v.error(M)},3)},function(){K7(z,function(){return void v.complete()},3)})})}
return H0(I,sLk(),l,oL(),I)};
WHQ=function(z){var l=wRQ(z);return l===null?new t7(null):l.pipe(P0(function(I){I=I.serialize();if(A7H)I=_.v7.btoa(I);else{for(var b=[],v=0,M=0;M<I.length;M++){var x=I.charCodeAt(M);x>255&&(b[v++]=x&255,x>>=8);b[v++]=x}I=_.Tc(b)}return I}),zh(1),mH(z.queue))};
nqQ=function(z){var l=l===void 0?{}:l;if(typeof Event==="function")return new Event(z,l);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(z,l.bubbles||!1,l.cancelable||!1,l.detail);return I}throw Error();};
LHf=function(z){return typeof z==="string"?document.getElementById(z):z};
aC$=function(z){var l=!1;l=l===void 0?!1:l;if(z.tagName==="IMG"){if(z.complete&&(!z.naturalWidth||!z.naturalHeight))return!0;var I;if(l&&((I=z.style)==null?void 0:I.display)==="none")return!0}var b,v;return UjY.test((b=z.getAttribute("width"))!=null?b:"")&&UjY.test((v=z.getAttribute("height"))!=null?v:"")};
V6f=function(z,l){if(z.tagName==="IMG")return z.naturalWidth&&z.naturalHeight?!0:!1;try{if(z.readyState)var I=z.readyState;else{var b,v;I=(b=z.contentWindow)==null?void 0:(v=b.document)==null?void 0:v.readyState}return I==="complete"}catch(M){return l===void 0?!1:l}};
jxQ=function(z){z||(z=function(l,I,b){l.addEventListener(I,b)});
return z};
Ivt=function(z,l){var I=J7p();I=I===void 0?new z7x:I;if(z=LHf(z)){var b=jxQ(b);for(var v=!1,M=function(Y){v||(v=!0,l(Y))},x,g=2,G=0;G<lvY.length;++G)if(lvY[G]===z.tagName){g=3;
x=[z];break}x||(x=z.querySelectorAll(lvY.join(",")));var u=0,Z=0,H=!0,y=z=!1;G={};for(var f=0;f<x.length;G={isImg:void 0},f++){var R=x[f];if(!aC$(R))if(G.isImg=R.tagName==="IMG",V6f(R,I.crossDomainLoadedDefault))z=!0,G.isImg&&(H=!0);else{u++;var F=function(Y){return function(c){u--;!u&&H&&M(g);Y.isImg&&(c=c&&c.type==="error",Z--,c||(H=!0),!Z&&y&&H&&M(g))}}(G);
b(R,"load",F);G.isImg&&(Z++,b(R,"error",F))}}Z===0&&(H=!0);x=null;x=_.v7.document.readyState==="complete";if(u===0&&!z&&x)g=5;else if(u||!z){b(_.v7,"load",function(){!I.pendingImagesBlockLoad||!Z&&H?M(4):y=!0});
return}M(g)}};
b0H=function(z,l,I){if(z)for(var b=0;z!=null&&b<500&&!I(z);++b)z=l(z)};
vNu=function(z,l){b0H(z,function(I){try{return I===I.parent?null:I.parent}catch(b){}return null},l)};
MNp=function(z,l){if(z.tagName=="IFRAME")l(z);else{z=z.querySelectorAll("IFRAME");for(var I=0;I<z.length&&!l(z[I]);++I);}};
plp=function(z){return(z=z.ownerDocument)&&(z.parentWindow||z.defaultView)||null};
D4G=function(z,l,I){try{var b=JSON.parse(I.data)}catch(x){}if(typeof b==="object"&&b&&b.type==="creativeLoad"){var v=plp(z);if(I.source&&v){var M;vNu(I.source,function(x){try{if(x.parent===v)return M=x,!0}catch(g){}});
M&&MNp(z,function(x){if(x.contentWindow===M)return l(b),!0})}}};
x4$=function(z){return typeof z==="string"?document.getElementById(z):z};
N1k=function(){var z={};return z[0]=_.HR(O0G,"current"),z[1]=_.HR(gNf),z[2]=_.HR(Gzt),z};
BR=function(z,l){return z.left===l.left&&z.top===l.top&&z.width===l.width&&z.height===l.height};
ENH=function(z,l){return{left:Math.max(z.left,l.left),top:Math.max(z.top,l.top),width:Math.max(0,Math.min(z.left+z.width,l.left+l.width)-Math.max(z.left,l.left)),height:Math.max(0,Math.min(z.top+z.height,l.top+l.height)-Math.max(z.top,l.top))}};
u7u=function(z,l){return{left:Math.round(z.left+l.x),top:Math.round(z.top+l.y),width:z.width,height:z.height}};
Z0Y=function(z,l,I){if(z&&l!==null&&l!=l.top){if(!l.top)return new _.X5(-12245933,-12245933);l=l.top}try{return(I===void 0?0:I)?(new _.X5(l.innerWidth,l.innerHeight)).round():_.il(l).round()}catch(b){return new _.X5(-12245933,-12245933)}};
H0G=function(z,l,I){try{if(z){if(!l.top)return new C7(-12245933,-12245933,-12245933,-12245933);l=l.top}var b=Z0Y(z,l,I),v=b.height,M=b.width;if(M===-12245933)return new C7(M,M,M,M);var x=F5(Q6(l.document)),g=x.x,G=x.y;return new C7(G,g+M,G+v,g)}catch(u){return new C7(-12245933,-12245933,-12245933,-12245933)}};
yAS=function(z){var l;return(l=z.google_tag_data)!=null?l:z.google_tag_data={}};
fvG=function(z){var l,I;return typeof((l=z.navigator)==null?void 0:(I=l.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
kzG=function(z){if(!fvG(z))return null;var l=yAS(z);if(l.uach_promise)return l.uach_promise;z=z.navigator.userAgentData.getHighEntropyValues(CWG).then(function(I){l.uach!=null||(l.uach=I);return I});
return l.uach_promise=z};
T17=function(z){var l;return R7x(m47(Ksk(tN$(B15(XlY(qAu(i0k(Fst(new QQG,z.architecture||""),z.bitness||""),z.mobile||!1),z.model||""),z.platform||""),z.platformVersion||""),z.uaFullVersion||""),((l=z.fullVersionList)==null?void 0:l.map(function(I){var b=new YAS;b=_.Th(b,1,I.brand);return _.Th(b,2,I.version)}))||[]),z.wow64||!1)};
cAx=function(z){var l,I;return(I=(l=kzG(z))==null?void 0:l.then(function(b){return T17(b)}))!=null?I:null};
SAS=function(z,l){return new yZ(function(I){var b=!1,v=Array(l.length);v.fill(void 0);var M=new Set,x=new Set,g=function(H,y){z.running?(v[y]=H,M.add(y),b||(b=!0,K7(z,function(){b=!1;I.next(_.ex(v))},1))):I.error(new cR(y))},G=function(H,y){x.add(y);
M.add(y);K7(z,function(){I.error(H)},1)},u=function(H){x.add(H);
K7(z,function(){x.size===l.length&&I.complete()},1)},Z=l.map(function(H,y){return H.subscribe(function(f){return void g(f,y)},function(f){return void G(f,y)},function(){return void u(y)})});
return function(){Z.forEach(function(H){return void H.unsubscribe()})}})};
PWS=function(z,l,I){function b(){if(l.debugChannel){var Y=l.debugChannel,c=Y.next;var d={creativeId:l.debugNames.getName(I),requiredSignals:v,signals:Object.assign({},M),hasPrematurelyCompleted:x,errorMessage:g,erroredSignalKey:G};d={specMajor:2,specMinor:0,specPatch:0,timestamp:L4(l.timeProvider.now(),new Uu(0,l.timeProvider.timeline)),instanceId:l.debugNames.getName(l.symbol),creativeState:d};c.call(Y,d)}}
for(var v=Object.keys(z),M={},x=!1,g=null,G=null,u={},Z=new Set,H=[],y=[],f=_.D(v),R=f.next(),F={};!R.done;F={key$jscomp$396:void 0},R=f.next())F.key$jscomp$396=R.value,R=z[F.key$jscomp$396],R instanceof t7?(u[F.key$jscomp$396]=R.value,Z.add(F.key$jscomp$396),l.debugChannel&&(M[String(F.key$jscomp$396)]=Nsk(R.value))):(R=R.pipe(Ix(function(Y,c){return gq7(Y)||gq7(c)?!1:Y===c}),P0(function(Y){return function(c){l.debugChannel&&(M[String(Y.key$jscomp$396)]=Nsk(c),b());
var d={};return d[Y.key$jscomp$396]=c,d}}(F)),VZ(function(Y){return function(c){if(c instanceof cR)throw new d4t(String(Y.key$jscomp$396));
throw c;}}(F)),t61(function(Y){return function(){Z.add(Y.key$jscomp$396)}}(F),function(Y){return function(c){G=String(Y.key$jscomp$396);
g=String(c);b()}}(F),function(Y){return function(){Z.has(Y.key$jscomp$396)||(x=!0,b())}}(F))),y.push(F.key$jscomp$396),H.push(R));
(z=Object.keys(M).length>0)&&b();f=SAS(l.queue,H).pipe(VZ(function(Y){if(Y instanceof cR)throw new oNp(String(y[Y.inputObservableIndex]));throw Y;}),P0(function(Y){return Object.freeze(Object.assign.apply(Object,[{},
u].concat(_.ht(Y))))}));
return(H=H.length>0)&&z?At(Yd(Object.freeze(u)),f):H?f:Yd(Object.freeze(u))};
h75=function(z,l,I,b,v){return z.performanceMonitor.timeExecution.bind(z.performanceMonitor)(733,function(){var M={};try{return l.pipe(VZ(function(x){b(Object.assign({},M,{error:x}));return wH}),$d(function(x){try{var g=I(z,x)}catch(u){return b(Object.assign({},M,{error:u instanceof Error?u:String(u)})),wH}var G={};
return PWS(g,z,x.symbol).pipe(t61(function(u){G=u}),DC(1),oL()).pipe(v,VZ(function(u){b(Object.assign({},G,{error:u}));
return wH}),bl(void 0),P0(function(){return!0}))})).pipe(xq(function(x){return x+1},0),VZ(function(x){b(Object.assign({},M,{error:x}));
return wH}))}catch(x){return b(Object.assign({},M,{error:x})),wH}})()};
S6=function(z){var l=new Map;if(typeof z!=="object"||z===null)return l;Object.values(z).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(l.has(I.clock.timeline)||l.set(I.clock.timeline,I.clock.now()))});
return l};
sQQ=function(z,l){return typeof z==="string"?encodeURIComponent(z):typeof z==="number"?String(z):Array.isArray(z)?z.map(function(I){return sQQ(I,l)}).join(","):z instanceof Uu?z.toString():z&&typeof z.extrapolateToNow==="function"?sQQ(z.extrapolateUsingTimestampMap(l).value,l):z===!0?"1":z===!1?"0":z===void 0||z===null?null:z instanceof rAk?$4p(z):[z.top,
z.left,z.top+z.height,z.left+z.width].join()};
e7k=function(z,l){z=Object.entries(z).map(function(I){var b=_.D(I);I=b.next().value;b=b.next().value;b=sQQ(b,l);return b===null?"":I+"="+b}).filter(function(I){return I!==""});
return z.length?z.join("&"):""};
WsQ=function(z,l){var I=wlQ,b=AAQ;l=l===void 0?.01:l;return function(v){l>0&&Math.random()<=l&&(z.global.HTMLFencedFrameElement&&z.global.fence&&typeof z.global.fence.reportEvent==="function"&&z.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),v=Object.assign({},v,{errorMessage:v.error instanceof Error&&v.error.message?v.error.message:String(v.error),errorStack:v.error instanceof Error&&v.error.stack?String(v.error.stack):null,errorName:v.error instanceof
Error&&v.error.name?String(v.error.name):null,errorContext:String(z.performanceMonitor.timedFunctionContext),errorEscapedQueryId:v.escapedQueryId}),I(Object.assign({},v,{payloadMapper:function(){return function(M){try{return b(Object.assign({},M))}catch(x){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),S6(v)).forEach(function(M){z.beaconFactory.makeBeacon(M).sendNow()}))}};
nN5=function(){var z=_.AT.apply(0,arguments);return function(l){var I=l.pipe(DC(1),oL());l=z.map(function(b){return I.pipe(b,bl(!0))});
return su(l).pipe(zh(1),jY())}};
Lst=function(){var z=_.AT.apply(0,arguments);return function(l){var I=l.pipe(DC(1),oL());l=z.map(function(b){return I.pipe(b,bl(!0))});
return At.apply(null,_.ht(l)).pipe(zh(1),jY())}};
U4H=function(z,l){return function(I){var b=I.pipe(DC(1),oL());I=b.pipe(z,bl(!0));b=b.pipe(H0(l,DC(),oL()),bl(!0));I=su([I,b]);return xj$(I,b).pipe(zh(1),jY())}};
av7=function(z,l,I){I(!0)};
VN7=function(z,l){return H0(gs(function(I){var b=z(I),v=l(I),M={};return b&&v&&M?new yZ(function(x){v(b,M,function(g){x.next(Object.assign({},I,{canEmit:g}));x.complete()});
return function(){}}):ds}),n4(function(I){return I.canEmit}))};
jQk=function(z){var l={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(gs(function(b){return new yZ(function(v){function M(){g.disconnect();G.unsubscribe()}
var x=z.MutationObserver;if(x&&b.ref!==void 0){var g=new x(function(u){v.next(u)});
g.observe(b.ref,l);var G=b.JSC$9361_released.subscribe(M);return M}})}))}};
JAY=function(z){if(z.measurementDeferralState===3)return null;if(z.timeOnScreenReason!==void 0){var l=z.creativeFound===!1?"n":null;if(l!==null)return l}return z.geometricMeasurementErrors instanceof ox?"msf":z.contextValidationErrors instanceof PR?"c":z.contextVisibilityKnown===!1?"pv":z.geometricMeasurementErrors||z.contextValidationErrors?"x":null};
l_7=function(z,l){return z.replace(zeH,function(I,b){try{var v=_.h7.get(l,b);if(v==null||v.toString()==null)return I;v=v.toString();if(v==""||!_.gf(v==null?"":String(v)))return encodeURIComponent(v).replace(/%2C/g,",")}catch(M){}return I})};
I_Y=function(z,l){var I=Object.assign({},z),b=z.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=z.payloadMapper(I);var v=e7k(I,l);return _.s7(z.urlPrefixes,function(M){var x="";typeof b==="string"&&(x="&"+e7k({uach:b},l));var g={};return l_7(M,(g.VIEWABILITY=v,g))+x})};
wlQ=function(z,l){var I=z.payloadMapper(z),b=e7k(I,l);return b?_.s7(z.urlPrefixes,function(v){v=v.indexOf("?")>=0?v:v+"?";v="?&".indexOf(v.slice(-1))>=0?v:v+"&";return v+b}):z.urlPrefixes};
bot=function(){return H0(n4(function(z){return z!==void 0}),P0(function(z){return z}))};
vzH=function(z){return H0(P0(function(){return!0}),O7(!1),mH(z))};
M3H=function(z){return z.length<=0?wH:su(z.map(function(l){var I=0;return l.pipe(P0(function(b){return{index:I++,value:b}}))})).pipe(n4(function(l){return l.every(function(I){return I.index===l[0].index})}),P0(function(l){return l.map(function(I){return I.value})}))};
pbQ=function(z,l){z.currentState&&(z.previousState=z.currentState);z.currentState=l;z.previousState&&z.previousState.value?(l=Math.max(0,L4(l.timestamp,z.previousState.timestamp)),z.totalTime+=l,z.consecutiveTime+=l):z.consecutiveTime=0;return z};
DMf=function(){return H0(xq(pbQ,{totalTime:0,consecutiveTime:0}),P0(function(z){return z.totalTime}))};
xMx=function(){return H0(xq(pbQ,{totalTime:0,consecutiveTime:0}),P0(function(z){return z.consecutiveTime}))};
Oo1=function(z,l){return function(I){return M3H(l.map(function(b){return I.pipe(z(b))}))}};
gzQ=function(){var z;return H0(t61(function(l){return void(z=l.timestamp)}),xMx(),P0(function(l){return{timestamp:z,
value:Math.round(l)}}))};
Ge5=function(z,l){return BR(z.topWindowViewportExternalGeometry,l.topWindowViewportExternalGeometry)&&BR(z.elementGeometry,l.elementGeometry)&&BR(z.exposedViewportLocalGeometry,l.exposedViewportLocalGeometry)&&BR(z.intersectionGeometry,l.intersectionGeometry)&&z.elementGeometrySourceName===l.elementGeometrySourceName&&z.measurementRequests===l.measurementRequests&&z.viewportGeometrySourceName===l.viewportGeometrySourceName&&z.viewportLocalAppOffset.x===l.viewportLocalAppOffset.x&&z.viewportLocalAppOffset.y===
l.viewportLocalAppOffset.y};
Zot=function(z,l){return function(I){return function(b){var v=b.pipe(Mj(new kq),oL());b=I.element.pipe(Ix());v=v.pipe(P0(function(M){return M.value}));
return su([b,v,l]).pipe(P0(function(M){var x=_.D(M);M=x.next().value;var g=x.next().value;x=x.next().value;if(M.ref===void 0)var G={top:0,left:0,width:0,height:0};else{G=M.ref.getBoundingClientRect();var u=M.ref,Z=z.global,H=new _.rs(0,0),y=$q(_.e6(u));if(XRQ(y,"parent")){do{if(y==Z)var f=_.ws(u);else f=N2Q(u),f=new _.rs(f.left,f.top);H.x+=f.x;H.y+=f.y}while(y&&y!=Z&&y!=y.parent&&(u=y.frameElement)&&(y=y.parent))}G={top:H.y,left:H.x,width:G.width,height:G.height}}G=u7u(G,g.viewportLocalAppOffset);
Z=ENH(G,g.exposedViewportLocalGeometry);H=z.timeProvider.now();y=Object;u=y.assign;if(x!==2||z.inCrossDomainIframe||Z.width<=0||Z.height<=0)var R=!1;else try{var F=z.document.elementFromPoint(Z.left+Z.width/2,Z.top+Z.height/2);R=F?!EzG(F,M):!1}catch(Y){R=!1}return{timestamp:H,value:u.call(y,{},g,{elementGeometrySourceName:"geo",intersectionGeometry:R?uQt.intersectionGeometry:Z,elementGeometry:G})}}),Rx(z.queue))}}};
EzG=function(z,l,I){I=I===void 0?0:I;return z.ref===void 0||l.ref===void 0?!1:z.ref===l.ref||_.A7(l.ref,function(b){return b===z.ref})?!0:l.ref.ownerDocument&&l.ref.ownerDocument.defaultView&&l.ref.ownerDocument.defaultView===l.ref.ownerDocument.defaultView.top?!1:I<10&&l.ref.ownerDocument&&l.ref.ownerDocument.defaultView&&l.ref.ownerDocument.defaultView.frameElement?EzG(z,new WR(l.ref.ownerDocument.defaultView.frameElement),I+1):!0};
f_H=function(z){return function(l){return l.pipe(z.ResizeObserver?HoQ(z):yXQ(z),DC(1),oL())}};
HoQ=function(z){return function(l){return l.pipe(gs(function(I){var b=z.ResizeObserver;if(!b||I.ref===void 0)return Yd(uQt.elementGeometry);var v=(new yZ(function(M){function x(){I.ref!==void 0&&g.unobserve(I.ref);g.disconnect();G.unsubscribe()}
if(I.ref===void 0)return M.complete(),function(){};
var g=new b(function(u){u.forEach(function(Z){M.next(Z)})});
g.observe(I.ref);var G=I.JSC$9361_released.subscribe(x);return x})).pipe(aL(z.performanceMonitor,736),P0(function(M){return M.contentRect}));
return At(Yd(I.ref.getBoundingClientRect()),v)}),Ix(BR))}};
yXQ=function(z){return function(l){var I=l.pipe(jQk(z)),b=z.onResize;I=At(l.pipe(P0(function(){return nqQ("resize")})),I,b);
return su(l,I).pipe(aL(z.performanceMonitor,737),P0(function(v){v=_.D(v).next().value;return v.ref===void 0?void 0:v.ref.getBoundingClientRect()}),bot(),Ix(BR))}};
Ret=function(z,l){var I=CEQ(z,l).pipe(DC(1),oL());return function(b){return function(v){v=v.pipe(gs(function(M){return M.element}),Ix());
return su([I,v]).pipe(gs(function(M){var x=_.D(M);M=x.next().value;x=x.next().value;return keH(z,M.intersectionObserver,f_H(z),M.observations,b,M.flushRecords,x)}),Rx(z.queue))}}};
mMG=function(z){return P0(function(l){return l.value.viewportGeometrySourceName!=="nio"?l:Object.assign({},l,{value:Object.assign({},l.value,{exposedViewportLocalGeometry:n7(z,!0),topWindowViewportExternalGeometry:n7(z,!0)})})})};
Kyf=function(z,l){return Yd(l).pipe(z,P0(function(){return l}))};
CEQ=function(z,l){return z.timeProvider.timeline!==t31?Tg(new ox(2)):z.MutationObserver?typeof IntersectionObserver==="undefined"?Tg(new ox(0)):(new yZ(function(I){var b=new kq,v=new L7(b.next.bind(b),{threshold:[].concat(_.ht(l))});I.next({observations:b.pipe(aL(z.performanceMonitor,735)),intersectionObserver:v,flushRecords:function(M){M=v.takeRecords(M);M.length>0&&b.next(M)}})})).pipe(zh(1),DC(1),oL()):Tg(new ox(1))};
B2$=function(z){return FX5(z.sort(function(l,I){return l.time-I.time}),hP$)};
keH=function(z,l,I,b,v,M,x){return new yZ(function(g){function G(){R||(R=!0,x.ref!==void 0&&l.unobserve(v,x.ref),Z.unsubscribe(),f.unsubscribe(),y.unsubscribe(),F.unsubscribe())}
if(x.ref!==void 0){Xbt(l,v);l.observe(v,x.ref);var u=new ax({timestamp:z.timeProvider.now(),value:Object.assign({},uQt,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),Z=b.pipe($d(function(Y){return B2$(Y)}),n4(function(Y){return Y.target===x.ref}),P0(function(Y){return{timestamp:new Uu(Y.time,t31),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:Y.rootBounds||V6,topWindowViewportExternalGeometry:Y.rootBounds||n7(z,!0),measurementRequests:H,elementGeometrySourceName:"nio",intersectionGeometry:Y.intersectionRect,elementGeometry:Y.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:Y.isIntersecting,isV2Visible:Y.isVisible}}}),Mj(u),oL()).subscribe(g),H=new kq,y=H.subscribe(function(){M(v);
g.next({timestamp:z.timeProvider.now(),value:u.value.value});x.ref!==void 0&&(l.unobserve(v,x.ref),l.observe(v,x.ref))}),f=Kyf(I,x).subscribe(function(){H.next()}),R=!1,F=x.JSC$9361_released.subscribe(function(){return G()});
return G}})};
qfQ=function(z,l){var I=z.getOnBackgrounded().pipe(P0(function(){return"b"}));
return xj$(l,I).pipe(zh(1),mH(z.queue))};
j6=function(z){return function(l){var I;return l.pipe(t61(function(b){return void(I=b.timestamp)}),P0(function(b){return b.value}),z,P0(function(b){return{timestamp:I,
value:b}}))}};
ioQ=function(z){return z.intersectionGeometry.width*z.intersectionGeometry.height/(z.elementGeometry.width*z.elementGeometry.height)};
J7=function(z,l,I){I=I===void 0?function(b,v){return b===v}:I;
return z.timestamp.equals(l.timestamp)&&I(z.value,l.value)};
lW=function(z,l){return l.pipe(P0(function(I){return new zz(z.timeProvider,{timestamp:z.timeProvider.now(),value:I})}))};
Fyt=function(z){return function(l){return l.pipe(Bsu(z),P0(function(I){var b=_.D(I);I=b.next().value;b=b.next().value;var v=I.value;return{timestamp:I.timestamp,value:v>=1?!0:v<=0?!1:v>=b}}))}};
YfG=function(){return H0(n4(function(z,l){return l>0}),Qj7,O7(-1),Ix())};
T2f=function(z,l,I){return z?su([l,I]).pipe(n4(function(b){var v=_.D(b);b=v.next().value;v=v.next().value;return b.timestamp.equals(v.timestamp)}),P0(function(b){var v=_.D(b);
b=v.next().value;v=v.next().value;return b.value>v.value?b:v})):l};
dMu=function(z){return function(l){var I=l.pipe(cX1),b=l.pipe(Sf$);return z instanceof yZ?z.pipe(gs(function(v){return T2f(v,I,b)})):T2f(z.value,I,b)}};
Wy$=function(z,l,I,b){var v=b.geometryIsOccluded,M=b.exposureThreshold,x=b.wasLargeAdAtRender,g=b.allowLargeAdThreshold,G=b.largeAdExposureThreshold,u=b.mayUseViewportShareExposure,Z=b.hasMeasurementStarted;b=b.useIntersectionObserverV2;l=ozQ(z,I,l);I=PEu(z,I);b=he1(l,b);var H=sjQ(z,v,u,l),y=H.pipe(P0(function(W){return W.value}),Ix(),mH(z),xq(function(W,L){return Math.max(W,L)},0)),f=H.pipe(P0(function(W){return W.value}),YfG(),mH(z)),R=l.pipe(rX1,P0(function(W){return W.value}),zh(2),Ix(),mH(z));
x=$Mk(z,l,x,g);var F=x.pipe(O7(!1),Ix(),P0(function(W){return W?G:M}));
g=H.pipe(Fyt(F),Ix(),mH(z));var Y=su([g,l]).pipe(n4(function(W){var L=_.D(W);W=L.next().value;L=L.next().value;return W.timestamp.equals(L.timestamp)}),P0(function(W){var L=_.D(W);
W=L.next().value;L=L.next().value;return{visible:W.value,geometry:L.value.elementGeometry}}),xq(function(W,L){return!L.visible&&W.visible?W:L},{visible:!1,
geometry:V6}),P0(function(W){return W.geometry}),O7(V6),mH(z),Ix(BR));
u=u instanceof yZ?u.pipe(Ix(),Jt()):ds;F=su([u,F]).pipe(Jt());var c=l.pipe(n4(function(W){return W.value.viewportGeometrySourceName!=="ns"&&W.value.elementGeometrySourceName!=="ns"}),xq(function(W){return W+1},0),O7(0),mH(z)),d=I.pipe(Jt(!0),O7(!1),mH(z));
d=su([Z,d]).pipe(P0(function(W){var L=_.D(W);W=L.next().value;L=L.next().value;return W&&!L}),mH(z));
var V=l.pipe(ee1,Ix()),A=V.pipe(P0(function(W){return W.value}),xq(function(W,L){return Math.max(W,L)},0),Ix(),mH(z));
z=V.pipe(P0(function(W){return W.value}),YfG(),mH(z));
return{shouldResetExposureSignals:u,shouldResetViewabilitySignals:F,geometrySignals:{readyGeometryWithDefault:l,measurementStrategy:l.pipe(wbQ),creativePosition:Y.pipe(Ix(BR)),visible:g.pipe(Ix(J7)),timestampedExposure:H.pipe(Ix(J7)),maximumExposure:y,minimumExposure:f,browserSize:l.pipe(AXH,Ix(_.a1)),timestampedScreenShare:V,maxScreenShare:A,minScreenShare:z,geometricMeasurementErrors:I,measurementRequests:l.pipe(P0(function(W){return W.value.measurementRequests})),
isLargeAd:x,geometryIsOccluded:v,hasMeasurementStarted:Z,geometryMeasurable:d,validMeasurementCount:c,loadTimeExposure:R,v2VisibilityBitVector:b}}};
PEu=function(z,l){return l.pipe(n4(function(){return!1}),P0(function(I){return I}),VZ(function(I){return IQ(new t7(I),z)}))};
ozQ=function(z,l,I){return l.pipe(pRu(ds),mH(z)).pipe(Ix(function(b,v){return J7(b,v,Ge5)}),O7({timestamp:I.now(),
value:uQt}),mH(z))};
sjQ=function(z,l,I,b){I=b.pipe(dMu(I),j6(P0(function(v){return Math.round(v*100)/100})),mH(z));
return l instanceof t7?I:su([I,l]).pipe(P0(function(v){var M=_.D(v);v=M.next().value;M=M.next().value;return{timestamp:M.timestamp.maximum(v.timestamp),value:M.value?0:v.value}}),Ix(J7),mH(z))};
$Mk=function(z,l,I,b){l=[l.pipe(P0(function(v){return v.value.elementGeometry.width*v.value.elementGeometry.height>=242500}))];
I instanceof yZ&&l.push(I.pipe(P0(function(v){return!!v})));
I=su(l);return b?I.pipe(P0(function(v){return v.some(function(M){return M})}),O7(!1),Ix(),mH(z)):IQ(new t7(!1),z)};
he1=function(z,l){z=su([z,l]).pipe(P0(function(v){var M=_.D(v);v=M.next().value;if(M.next().value&&v.value.isIntersecting)return v.value.isV2Visible}),Ix());
var I=z.pipe(P0(function(v){return v===void 0?!0:v}),xq(function(v,M){return v||!M},!1)),b=z.pipe(xq(function(v,M){return M===void 0?v:M?!1:v!=null?v:!0},void 0),P0(function(v){return!!v}));
return su([l,O7S(z,I,b)]).pipe(P0(function(v){var M=_.D(v);v=M.next().value;var x=_.D(M.next().value);M=x.next().value;var g=x.next().value;x=x.next().value;var G=0;if(!v)return 0;if(M===void 0)return 16;M&&(G|=1);M||(G|=2);g&&(G|=4);x&&(G|=8);return G}))};
jjH=function(z,l,I,b,v){var M=nzk.timeThresholdMs;var x=x===void 0?new LyG(l,b):x;return(new yZ(function(g){var G=I.pipe(O7(void 0),gs(function(){return UMY(v)})).pipe(P0(function(u){var Z=u.value;
u=u.timestamp;var H=Z.visible;Z=Z.consecutiveViewTime;var y=Z>=M;y||!H?a_$(x):(u=Math.max(0,L4(l.now(),u)),V3$(x,Math.max(0,M-Z-u)));return y}),xq(function(u,Z){return Z||u},!1),Ix()).subscribe(g);
return function(){x.dispose();G.unsubscribe()}})).pipe(Gh(function(g){return!g},!0),mH(z))};
UMY=function(z){return M3H([z,z.pipe(gzQ())]).pipe(P0(function(l){var I=_.D(l);l=I.next().value;I=I.next().value;return{timestamp:l.timestamp,value:{visible:l.value,consecutiveViewTime:I.value}}}),Ix(function(l,I){return J7(l,I,function(b,v){return b.consecutiveViewTime===v.consecutiveViewTime&&b.visible===v.visible})}))};
JXQ=function(){return H0(xMx(),xq(function(z,l){return Math.max(z,l)},0),P0(function(z){return Math.round(z)}))};
zbf=function(z){return H0(Fyt(Yd(z)),JXQ())};
lJ5=function(z,l){return l instanceof yZ?l.pipe(gs(function(I){return(I=I?15:null)?Tg(new ox(I)):z})):(l=l.value?15:null)?Tg(new ox(l)):z};
IJx=function(z){var l=new ox(13);if(z.length<1)return{chain:wH,capturedErrors:wH};var I=new kq,b=z[0];return{chain:z.slice(1).reduce(function(v,M){return v.pipe(VZ(function(x){I.next(x);return M}))},b).pipe(VZ(function(v){I.next(v);
return Tg(l)}),Mj(new kq),oL()),
capturedErrors:I}};
bPQ=function(z,l){var I=z.pipe(Mj(new kq),oL());return gs(function(b){return I.pipe(l(b))})};
Mm1=function(z,l){if(z.inCrossDomainIframe)return Tg(new ox(6));var I=new kq;return At(Yd({}),l,I).pipe(P0(function(){return{timestamp:z.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vP$(z),topWindowViewportExternalGeometry:n7(z,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),Rx(z.queue))};
vP$=function(z){var l=n7(z,!1);if(!z.inIframe||!q7k(z.global.parent)||z.global.parent===z.global)return l;var I=new bW(z.global.parent,z.debugChannel);I.beaconFactory=z.beaconFactory;I=vP$(I);z=z.global.frameElement.getBoundingClientRect();return ENH(u7u(ENH(I,z),{x:l.left-z.left,y:l.top-z.top}),l)};
p8Y=function(z){if(z.prerendering)return 3;var l;return(l={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[z.visibilityState||z.webkitVisibilityState||z.mozVisibilityState||""])!=null?l:0};
DyG=function(z){return z.document.JSC$9372_onVisibilityChange.pipe(P0(function(l){return l==="visible"}),Ix(),mH(z.queue))};
xy1=function(z,l,I){var b;return l.pipe(Ix(),gs(function(v){return I.pipe(P0(function(){if(!b){b=!0;try{v.next()}finally{b=!1}}return!0}))}),O7(!1),mH(z.queue))};
OP5=function(z){return H0(j6(P0(function(l){return l>=1?!0:l<=0?!1:l>=z})),DMf(),P0(function(l){return Math.round(l)}))};
G31=function(z,l,I,b,v){var M=gPH;if(M.length>1)for(var x=0;x<M.length-1;x++)if(M[x]<M[x+1])throw Error();x=v.pipe(O7(void 0),gs(function(){return I.pipe(gzQ())}),Ix(),mH(z));
v=v.pipe(O7(void 0),gs(function(){return I.pipe(JXQ())}),Ix(),mH(z));
return{totalMeasurementTime:b.pipe(O7(void 0),gs(function(){return l.pipe(P0(function(g){return{timestamp:g.timestamp,value:!0}}),DMf())}),Ix(),mH(z)),
totalUnviewedTime:b.pipe(O7(void 0),gs(function(){return l.pipe(P0(function(g){return{timestamp:g.timestamp,value:g.value===0}}),DMf())}),Ix(),mH(z)),
maxTimeOnScreen:b.pipe(O7(void 0),gs(function(){return l.pipe(Oo1(zbf,M))}),Ix(_.a1),mH(z)),
timeOnScreen:b.pipe(O7(void 0),gs(function(){return l.pipe(Oo1(OP5,M),P0(function(g){return g.map(function(G,u){return u>0?G-g[u-1]:G})}))}),Ix(_.a1),mH(z)),
maxConsecutiveViewTime:v,consecutiveViewTime:x.pipe(Ix(J7),mH(z))}};
EP1=function(z){var l=!0;l=l===void 0?!1:l;return H0(gs(function(I){return Nrt(z.document,I,l)}),mH(z.queue))};
u0u=function(z,l,I){var b=I.pipe(P0(function(v){return{value:v,timestamp:z.timeProvider.now()}}),Ix(J7));
return l instanceof yZ?l.pipe(Ix(),gs(function(v){return v?IQ(new t7({value:!1,timestamp:z.timeProvider.now()}),z.queue):b})):l.value===!1?b:new t7(!1)};
ZP$=function(z,l,I,b,v,M,x){var g=nzk;l=l instanceof yZ?l.pipe(O7(!1),Ix()):l;var G=!z.isMobile();I=u0u(z,I,b);z=x.measurableCreative.pipe(vzH(z.queue));return Object.assign({},g,{geometryIsOccluded:I,wasLargeAdAtRender:v,allowLargeAdThreshold:G,mayUseViewportShareExposure:l,hasMeasurementStarted:z,useIntersectionObserverV2:M})};
yrt=function(z,l,I,b,v,M){var x=1;M=M===void 0?!0:M;x=x===void 0?.01:x;var g=g===void 0?z.timeProvider.intervalObservable(100).pipe(mH(z.queue)):g;return z.performanceMonitor.timeExecution(916,function(){return HPk(z,l.pipe(Rx(z.queue)),I.pipe(Rx(z.queue)),b,v,M,x,g)})()};
HPk=function(z,l,I,b,v,M,x,g){var G=DyG(z).pipe(P0(function(Z){return!Z})),u=new fJx(z,[new Cs1(z,gPH),
new k3f(z,g)]);g=nN5(RbH,myQ);return h75(z,l,function(Z,H){var y=IQ(new t7(H.element),Z.queue).pipe(EP1(Z),mH(Z.queue)),f={loadedElement:y,shouldMeasure:y.pipe(Jt(!0)),measurableCreative:y.pipe(P0(function(W){var L=L===void 0?Symbol():L;return Object.freeze({symbol:L,element:IQ(new t7(W),Z.queue)})})),
creativeSearchResult:IQ(new t7("mue"),Z.queue)},R=new t7(!1),F=new t7(!1),Y=new t7(17),c=new t7(!1),d=new t7(!1),V=IQ(vl,Z.queue);R=u.buildGeometrySource(f,{inApp:R,useV2:!1,requestSource:IQ(Y,Z.queue)}).geometrySource;f=ZP$(Z,c,F,G,d,V,f);F=Wy$(Z.queue,Z.timeProvider,R,f);f=F.geometrySignals;c=F.shouldResetViewabilitySignals;F=G31(Z.queue,f.timestampedExposure,f.visible,F.shouldResetExposureSignals,c);c=jjH(Z.queue,Z.timeProvider,c,f.measurementRequests,f.visible);d=I.pipe(n4(function(W){return W===
H.element.ref}),P0(function(){return"ur"}));
V=Eqt(Z.timeProvider,v).pipe(Jt("t"));d=qfQ(Z,At(d,V));V=xy1(Z,f.measurementRequests,d.pipe(n4(function(W){return W!==null})));
R=d.pipe(n4(function(W){return W!==null}),P0(function(){return p8Y(Z.global.document)===1}));
var A=KFf(Z.document);return Object.assign({},{beaconFactory:new t7(Z.beaconFactory),context:new t7(Z),inferredPingId:new t7("lidar2"),timeOnScreenPingId:new t7("lidartos"),binaryContext:new t7(17),binaryVersion:new t7(b),requestSource:Y,contextValidationErrors:new t7(Z.validate()?null:new PR),contextVisibilityKnown:new t7(A),payloadMapper:new t7(AAQ),endOfSessionReason:d,timeOnScreenReason:d,requestMeasurementOnEndOfSession:V,hasImpressionFired:tmQ,crossDomainIframeState:new t7(Z.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:vl,inFetchLaterBeaconExperiment:vl,isTurtlex:vl,turtlexReportEventData:new t7(""),reportFencedFrameEvent:ds,isViewableAttributionEnabled:vl,inViewableAttributionExperiment:new t7(0),fetchBeaconFactory:ds,supportsPendingBeacon:vl,supportsFetchLater:vl,emit:new t7(av7),beginToRenderEvent:new t7(Symbol()),activeViewUnmeasurableEvent:new t7(Symbol()),activeViewViewableEvent:new t7(Symbol()),creativeFound:tmQ,immediateUrlPrefixes:new t7(H.immediateUrls),timeOnScreenUrlPrefixes:new t7(H.timeOnScreenUrls),
cpmavUrls:ds,viewableRelayUrls:ds,measurementDeferralState:new t7(2),urlSerializer:new t7(I_Y),viewUrlSerializer:new t7(Brt),isCreativeLoaded:y.pipe(vzH(Z.queue)),pageVisible:G.pipe(P0(function(W){return!W})),
eosPageVisible:R,timestampedExposureHistory:f.timestampedExposure.pipe(xq(function(W,L){W.push(L);return W},[]))},f,{viewable:lW(Z,c),
maxTimeOnScreen:lW(Z,F.maxTimeOnScreen),timeOnScreen:lW(Z,F.timeOnScreen),maxConsecutiveViewTime:lW(Z,F.maxConsecutiveViewTime),consecutiveViewTime:F.consecutiveViewTime.pipe(P0(function(W){return new zz(Z.timeProvider,W)})),
totalMeasurementTime:lW(Z,F.totalMeasurementTime),totalUnviewedTime:lW(Z,F.totalUnviewedTime),userAgentClientHints:WHQ(Z),clientOrderPingCounter:new t7(new rAk)})},WsQ(z,x),Lst(M?U4H(g,X85):U4H(g,qZu),iPQ))};
FFp=function(z){var l=_.AT.apply(1,arguments).filter(Boolean).join("&");if(!l)return z;var I=z.match(/[?&]adurl=/);return I?z.slice(0,I.index+1)+l+"&"+z.slice(I.index+1):z+(z.indexOf("?")<0?"?":"&")+l};
M4=function(z,l){return l?"&"+z+"="+encodeURIComponent(l):""};
QYQ=function(){try{var z,l;return!!((z=window)==null?0:(l=z.top)==null?0:l.location.href)&&!1}catch(I){return!0}};
_.p0=function(z){z&&typeof z.dispose=="function"&&z.dispose()};
_.Dv=function(z){for(var l=0,I=arguments.length;l<I;++l){var b=arguments[l];_.wf(b)?_.Dv.apply(null,b):_.p0(b)}};
TrY=function(){var z=YZS();z=z===void 0?"bevasrsg":z;return new Promise(function(l){var I=window===window.top?window:QYQ()?window:window.top,b=I[z],v;((v=b)==null?0:v.bevasrs)?l(new xN(b.bevasrs)):(b||(b={},b=(b.nqfbel=[],b),I[z]=b),b.nqfbel.push(function(M){l(new xN(M))}))})};
crt=function(z){var l={c:z.jy,e:z.wMN,mc:z.iQL,me:z.hx8};z.cY&&(l.co={c:z.cY.xNA,a:z.cY.yPW,s:z.cY.yiY});return l};
SZY=function(z){var l,I,b={jy:z.c,wMN:z.e,iQL:(l=z.mc)!=null?l:!1,hx8:(I=z.me)!=null?I:!1};z.co&&(b.cY={xNA:z.co.c,yPW:z.co.a,yiY:z.co.s});return b};
dyp=function(z){return function(){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z(),2);l=I.yieldResult;return I.return({f:function(){return l.p58()},
c:function(b){return l.xT0(b)},
m:function(b){return l.vX(SZY(b))},
mws:function(b){return l.aH0(SZY(b))}})})}};
oP$=function(z,l){var I=YZS();I=I===void 0?"bevasrsg":I;l={s:function(M){var x;return z.snapshot(Object.assign({},M.c&&{jy:M.c},M.s&&{loM:M.s},{fTI:(x=M.p)!=null?x:!0}))},
e:function(M){var x;return void((x=z.qSf)==null?void 0:x.call(z,M))},
c:function(M,x){return z.wlf(M,x)},
p:z.cCN,l:function(){return z.muc()},
wpc:l?dyp(l):void 0};var b=window===window.top?window:QYQ()?window:window.top,v=b[I];if(v){v.bevasrs=l;if(v.nqfbel!==void 0)for(I=_.D(v.nqfbel),b=I.next();!b.done;b=I.next())b=b.value,b(l);v.nqfbel=void 0}else v={},v=(v.bevasrs=l,v.nqfbel=void 0,v),b[I]=v};
hb$=function(z){var l=l===void 0?51:l;var I=[];_.OA(z,PsQ,6,_.g1()).forEach(function(b){_.Gz(b,2)<=l&&I.push(_.Gz(b,1))});
return I};
sYx=function(z){var l=l===void 0?51:l;var I=[];_.OA(z,PsQ,6,_.g1()).forEach(function(b){_.Gz(b,2)>l&&I.push(_.Gz(b,1))});
return I};
rr7=function(z){z.then(function(){},function(){})};
N4=function(z){return{fieldType:1,fieldName:z}};
EA=function(z){return{fieldType:2,fieldName:z}};
_.uW=function(z){return{fieldType:3,fieldName:z}};
$yQ=function(){function z(){v[0]=1732584193;v[1]=4023233417;v[2]=2562383102;v[3]=271733878;v[4]=3285377520;Z=u=0}
function l(H){for(var y=x,f=0;f<64;f+=4)y[f/4]=H[f]<<24|H[f+1]<<16|H[f+2]<<8|H[f+3];for(f=16;f<80;f++)H=y[f-3]^y[f-8]^y[f-14]^y[f-16],y[f]=(H<<1|H>>>31)&4294967295;H=v[0];var R=v[1],F=v[2],Y=v[3],c=v[4];for(f=0;f<80;f++){if(f<40)if(f<20){var d=Y^R&(F^Y);var V=1518500249}else d=R^F^Y,V=1859775393;else f<60?(d=R&F|Y&(R|F),V=2400959708):(d=R^F^Y,V=3395469782);d=((H<<5|H>>>27)&4294967295)+d+c+V+y[f]&4294967295;c=Y;Y=F;F=(R<<30|R>>>2)&4294967295;R=H;H=d}v[0]=v[0]+H&4294967295;v[1]=v[1]+R&4294967295;v[2]=
v[2]+F&4294967295;v[3]=v[3]+Y&4294967295;v[4]=v[4]+c&4294967295}
function I(H,y){if(typeof H==="string"){H=unescape(encodeURIComponent(H));for(var f=[],R=0,F=H.length;R<F;++R)f.push(H.charCodeAt(R));H=f}y||(y=H.length);f=0;if(u==0)for(;f+64<y;)l(H.slice(f,f+64)),f+=64,Z+=64;for(;f<y;)if(M[u++]=H[f++],Z++,u==64)for(u=0,l(M);f+64<y;)l(H.slice(f,f+64)),f+=64,Z+=64}
function b(){var H=[],y=Z*8;u<56?I(g,56-u):I(g,64-(u-56));for(var f=63;f>=56;f--)M[f]=y&255,y>>>=8;l(M);for(f=y=0;f<5;f++)for(var R=24;R>=0;R-=8)H[y++]=v[f]>>R&255;return H}
for(var v=[],M=[],x=[],g=[128],G=1;G<64;++G)g[G]=0;var u,Z;z();return{reset:z,update:I,digest:b,digestString:function(){for(var H=b(),y="",f=0;f<H.length;f++)y+="0123456789ABCDEF".charAt(Math.floor(H[f]/16))+"0123456789ABCDEF".charAt(H[f]%16);return y}}};
LFp=function(z,l){l=l===void 0?ebf:l;if(!w81){var I;z=(I=z.navigator)==null?void 0:I.userAgentData;if(!z||typeof z.getHighEntropyValues!=="function"||z.brands&&typeof z.brands.map!=="function")return Promise.reject(Error("ua"));Ark((z.brands||[]).map(function(v){var M=new WFQ;M=_.Th(M,1,v.brand);return _.Th(M,2,v.version)}));
typeof z.mobile==="boolean"&&_.Zv(nPx,2,z.mobile);w81=z.getHighEntropyValues(l)}var b=new Set(l);return w81.then(function(v){var M=nPx.clone();b.has("platform")&&_.Th(M,3,v.platform);b.has("platformVersion")&&_.Th(M,4,v.platformVersion);b.has("architecture")&&_.Th(M,5,v.architecture);b.has("model")&&_.Th(M,6,v.model);b.has("uaFullVersion")&&_.Th(M,7,v.uaFullVersion);return M.serialize()}).catch(function(){return nPx.serialize()})};
Hl=function(z,l,I,b){this.initialValue_=z;this.maxValue_=l;this.currBaseValue_=this.currValue_=z;this.randomFactor_=I||0;this.backoffFactor_=b||2};
y9=function(z){this.src=z;this.listeners={};this.typeCount_=0};
jYS=function(){for(var z;z=Uyk.remove();){try{z.fn.call(z.scope)}catch(l){Mp(l)}aJY.put(z)}Vmu=!1};
_.JrY=function(z){switch(z){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}};
zM5=function(z){switch(z){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""}};
_.lQt=function(){};
gsQ=function(z,l,I,b){z=IQS(bG1(vs$(new _.C0(1828,"0"),z),new Mc1)).disableWithCredentials();l.length&&pVQ(z,DBp(new xBt,l));b!==void 0&&(z.destinationUrl=b);var v=new OGH(1828,"","",!1,"",z.build());_.kN(v,z);var M=new RQ({flush:function(x){try{v.flush(x)}catch(g){I(g)}}});
M.addOnDisposeCallback(function(){setTimeout(function(){try{M.snapshotAndFlush()}finally{v.dispose()}})});
M.invocationLimit=1E5;M.flushInterval=3E4;M.JSC$9788_flushTimer.setInterval(3E4);return M};
ms=function(){var z,l,I;return(I=(z=globalThis.performance)==null?void 0:(l=z.now)==null?void 0:l.call(z))!=null?I:Date.now()};
Es7=function(z,l){if(z.disable)return new GoQ;l=l?hb$(l):[];z={gV:z.gV,pMs:z.jAU,jZW:z.sXB,destinationUrl:z.destinationUrl,j0s:z.j0s,zcf:z.zcf};l=l===void 0?[]:l;return new NkQ(z,l)};
umu=function(z){if(!z)return null;z=_.K0(z,2);return z===null||z===void 0?null:au(z)};
_.ZG7=function(z){if(!z)return null;z=_.K0(z,4);return z===null||z===void 0?null:_.QR(z)};
fQt=function(z,l){return l?HGu(l):z?yE5(z):Promise.resolve()};
HGu=function(z){return new Promise(function(l,I){var b=_.tA("SCRIPT"),v=_.ZG7(z);_.Me(b,v);b.onload=function(){_.Bl(b);l()};
b.onerror=function(){_.Bl(b);I(Error("Fa"))};
(X7("HEAD")[0]||document.documentElement).appendChild(b)})};
yE5=function(z){return new Promise(function(l){var I=_.tA("SCRIPT");if(z){var b=_.K0(z,6);b=b===null||b===void 0?null:_.bt(b)}else b=null;_.v0(I,b);(X7("HEAD")[0]||document.documentElement).appendChild(I);_.Bl(I);l()})};
q4=function(z,l,I){var b,v=new Promise(function(M){b=setTimeout(M,l)});
return Promise.race([z.finally(function(){return void clearTimeout(b)}),
v.then(I)])};
CfS=function(z,l){try{return globalThis.sessionStorage.setItem(z,l),!0}catch(I){return!1}};
kof=function(z,l,I,b){l=l===void 0?0:l;I=I===void 0?z.length:I;var v=0;for(b&&(v=kof(b));l<I;l++)b=typeof z==="string"?z.charCodeAt(l):z[l],v=RMk(31,v)+b|0;return v};
mBk=function(z,l){return[kof(z,0,z.length>>1,l),kof(z,z.length>>1)]};
KZY=function(z){var l=_.D(mBk(z,iW));z=l.next().value;l=l.next().value;return z.toString(16)+l.toString(16)};
tcG=function(z,l){var I=mBk(l);z=new Uint32Array(z.buffer);l=z[0];var b=_.D(I);I=b.next().value;b=b.next().value;for(var v=1;v<z.length;v+=2){for(var M=l,x=v,g=I,G=b,u=0;u<22;u++)x=x>>>8|x<<24,x+=M|0,x^=g+38293,M=M<<3|M>>>29,M^=x,G=G>>>8|G<<24,G+=g|0,G^=u+38293,g=g<<3|g>>>29,g^=G;M=[M,x];z[v]^=M[0];v+1<z.length&&(z[v+1]^=M[1])}};
BkY=function(z,l,I,b,v){var M=(4-(iW.length+I.length)%4)%4,x=new Uint8Array(4+M+iW.length+4+I.length),g=new DataView(x.buffer),G=0;g.setUint32(G,Math.random()*4294967295);G=G+4+M;x.set(iW,G);G+=iW.length;g.setUint32(G,v);x.set(I,G+4);tcG(x,b);return z.insert(l,function(u){return void globalThis.sessionStorage.removeItem(u)})?CfS(l,_.Tc(x))?"s":"t":"i"};
XVS=function(z,l){var I=globalThis.sessionStorage.getItem(z);if(!I)return["m"];try{var b=_.jx(I);tcG(b,l)}catch(v){return globalThis.sessionStorage.removeItem(z),["c"]}for(l=4;l<7&&b[l]===0;)l++;for(I=0;I<iW.length;I++)if(b[l++]!==iW[I])return globalThis.sessionStorage.removeItem(z),["d"];I=(new DataView(b.buffer)).getUint32(l);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(z),["e"]):["a",new Uint8Array(b.buffer,l+4)]};
qIY=function(z){return globalThis.TextEncoder?(new TextEncoder).encode(z):_.F7(z)};
iG$=function(z){var l=z,I;return function(){if(l){var b=l;l=void 0;I=b.apply(this,arguments)}return I}};
Q3S=function(z){return c_(function(l){if(l instanceof z)return!0;var I,b,v=l==null?void 0:(I=l.ownerDocument)==null?void 0:(b=I.defaultView)==null?void 0:b[z.name];return FZS(v)&&l instanceof v})};
_.Tz=function(z,l,I){_.Q9.call(this);this.JSC$10001_listener_=z;this.JSC$10001_interval_=l||0;this.handler_=I;this.callback_=(0,_.YN)(this.JSC$10003_doAction_,this)};
_.cl=function(z){z=YIS(z);return _.QR(z)};
YIS=function(z){return z===null?"null":z===void 0?"undefined":z};
cEf=function(z){if(z&&z.focus)if(z!==document.activeElement)z.focus();else return TkY(function(){return _.O(function(l){document.activeElement&&document.activeElement.blur();return l.return(TkY(function(){z.focus()}))})})};
_.SI7=function(z){var l=l===void 0?5:l;setTimeout(function(){var I;return _.O(function(b){b.nextAddress==1&&(I=document.activeElement);if(b.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&l>=0&&z?b.yield(cEf(z),5):b.jumpTo(0);if(document.activeElement===z)return b.return();z=z.parentElement;--l;return b.jumpTo(2)})},15)};
TkY=function(z){return new Promise(function(l){requestAnimationFrame(function(){l(z())})})};
osG=function(z){if(_.SN)z(_.SN);else{var l;((l=dBt)!=null?l:dBt=[]).push(z)}};
oQ=function(){!_.SN&&_.d1&&_.Pf5(_.d1());return _.SN};
_.Pf5=function(z){_.SN=z;var l;(l=dBt)==null||l.forEach(osG);dBt=void 0};
_.Pl=function(z){_.SN&&_.SN.beforeLoadModuleCode(z)};
_.hA=function(){_.SN&&_.SN.JSC$11057_setLoaded()};
sA=function(z){return FAY(z)?Number(z):String(z)};
hMp=function(z){this.action=z;this.wfv=!1};
s3u=function(z,l){hMp.call(this,"set-drive-options");this.appId=z;this.appOrigin=l};
rEQ=function(z){hMp.call(this,"visibility");this.visible=z};
$BG=function(z,l,I){r1.call(this,z,l,I)};
eMf=function(z){eN.call(this,z)};
DWk=function(z){z=z&&z.getWindow()||window;return z.gadgets&&z.gadgets.rpc};
Opp=function(z,l){var I=l&&l.getWindow()||window;if(DWk(l))z();else if(xWp)xWp.push(z);else var b=xWp=[z],v=I.setInterval(function(){if(DWk(l)){I.clearInterval(v);for(var M=0;M<b.length;M++)b[M]();xWp=null}},100)};
G65=function(z,l){var I=new w1(z);_.kN(l,I);var b={passive:!1};l.listen(I,"mousewheel",function(v){return void g8x(z,v)},b).listen(z,"scroll",function(v){return void g8x(z,v)},b)};
g8x=function(z,l){var I;a:{for(I=l.target;I;){if(I.nodeType==1){var b=_.AA(I,"overflowY");if(b=="auto"||b=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.Wl(z,I)||I.scrollHeight==I.clientHeight||l.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||l.deltaY<0&&I.scrollTop==0)l.preventDefault(),l.stopPropagation()};
JA=function(z,l,I,b,v,M,x,g,G){g=g===void 0?!1:g;G=G===void 0?!1:G;r1.call(this,void 0,void 0,void 0);r1.call(this,M?M+" picker modal-dialog":"picker modal-dialog",!0,I);_.n0(z,"protocol");this.iframeManager_=new NiQ;this.targetId_=L0();this.rpcToken_=L0();z=_.UA(z);_.aQ(z,"hostId");I=_.aQ(z,"parent");this.useGapi_=!G&&!0||(I==null?void 0:I.includes("onepick.corp.google.com"));g&&_.V9(z,"fv2","true");this.setUrl(z.toString());this.preferredDialogWidth_=b;this.preferredDialogHeight_=v;b!==void 0||
v!==void 0?b=!0:(b=_.aQ(_.UA(z.toString()),"hostId"),E8k||(E8k=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),b=!E8k.has(b));this.autoSizeDialog_=b;this.JSC$10191_gadgetsDomHelper_=x||this.JSC$10142_dom_;l&&(x=this.JSC$10191_gadgetsDomHelper_,l=_.aQ(_.UA(this.JSC$10193_url_),"grugl")=="true"?uht:Zpu,DWk(x)||(x=x||Q6(document),b=x.createElement("SCRIPT"),_.Me(b,l),b.type="text/javascript",x.JSC$9327_document_.body.appendChild(b)));
z=z.toString();l=null;x=z.indexOf("/picker?");x>-1?l=z.substring(0,x+8-1):x5(z,"/picker")&&(l=z);l&&this.setRelayUrl(l+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(z=this.buttons_,z.JSC$10176_element_=this.buttonEl_,z.render()):_.p4(this.buttonEl_,HpG),_.jN(this.buttonEl_,!!this.buttons_))};
_.k6Y=function(z){var l=l===void 0?yWQ:l;var I=_.UY(z),b=function(M){M=_.D(M);M.next();M=ze(M);return l(I,M)},v=function(M){var x=_.D(M);
M=x.next().value;x=ze(x);return z.apply(M,x)};
return function(){var M=_.AT.apply(0,arguments),x=this||_.v7,g=fr1.get(x);g||(g={},fr1.set(x,g));return CRG(g,[this].concat(_.ht(M)),v,b)}};
lE=function(z){var l={};z=z.replace(/\r/g,"").split("\n");for(var I=0;I<z.length;I++){var b=z[I],v=b.indexOf(":");v<0||(l[b.substring(0,v)]=b.substring(v+2,b.length))}return l};
RnG=function(z,l,I){I=I===void 0?function(){}:I;
return z?l():I()};
_.K5x=function(z){var l;return((l=mW$.documentOverride)!=null?l:z).__wizdispatcher};
_.bE=function(z){var l=Ij;Ij=z;return l};
_.Bif=function(z){return z===t8t||(z==null?void 0:z.name)==="\u0275NotFound"};
_.vb=function(z,l){var I;if((I=z)==null?0:I.isDisposed)throw Error("jb`"+String(z.debugName));for(;z!==void 0;){I=z;if(I.retrieve)return I.retrieve(l,{optional:!0});z=z.parent}return t8t};
MM=function(z){return{"\u0275prov":{providedIn:"root",token:Symbol(z),factory:void 0,value:void 0}}};
_.Xd5=function(z){var l=Ij;if(!l){switch(z===void 0?3:z){case 0:z=Error("ib");break;case 1:z=Error("kb");break;case 2:z=Error("lb");break;default:z=Error("mb")}throw z;}return l};
q5S=function(z){var l=_.bE(z);z={};return z[Symbol.dispose]=function(){_.bE(l)},z};
ipf=function(z,l){z.disposables||(z.disposables=[]);z.disposables.push(l)};
po=function(z){var l=Ij;l&&!l.isDisposed&&(ipf(l,z),z.parent=l)};
Qwp=function(z){if(z.disposables){for(var l=_.D(z.disposables),I=l.next();!I.done;I=l.next())I=I.value,typeof I==="function"?I():F5G(I);z.disposables.length=0}};
F5G=function(z){if(!z.isDisposed){z.isDisposed=!0;var l;(l=z[Symbol.dispose])==null||l.call(z);delete z.parent;Qwp(z)}};
swp=function(z){var l={retrieve:function(I){switch(I.\u0275prov.token){case Y57.\u0275prov.token:var b=z.asyncDeps;break;case _.Ti5.\u0275prov.token:b=z.rootElement;break;case cW$.\u0275prov.token:b=z.modelRootElement;break;case S55.\u0275prov.token:b=z.appContext;break;case dWQ.\u0275prov.token:b=z.rendererData;break;case o8H.\u0275prov.token:b=z.injectingConstructor;break;case PRk.\u0275prov.token:b=z.dispatcher}if(b)I=b;else a:{for(b=l.parent;b;){var v=b;if(v.retrieve){I=v.retrieve(I);break a}b=
b.parent}b=I.\u0275prov.token;v=hnx[b];v!==void 0?I=v:(v=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),b&&v==="root"&&(hnx[b]=I)):I=t8t)}return I}};
po(l);return l};
rWQ=function(){var z=_.Xd5(1),l=_.vb(z,S55);_.Bif(l)&&(z=_.vb(z,PRk),_.Bif(z)||z.getOptionalAppContext())};
$WS=function(z){if(typeof document!=="undefined"&&document&&document.getElementById&&(z=document.getElementById(z))){var l=z.tagName.toUpperCase();if(l=="SCRIPT"||l=="LINK")return z}return null};
wdS=function(z,l){if((z=z===void 0?"":z)&&l)throw Error("sb");var I="";var b=_.v7._F_jsUrl;(z=l||$WS(z))&&(I=z.src?z.src:z.getAttribute("href"));if(b&&I){if(b!=I)throw Error("tb`"+b+"`"+I);I=b}else I=b||I;if(!enG(I))throw Error("ub");return I};
L5Q=function(){if(!AWt){AWt=!0;try{var z=wdS(_.v7._F_jsUrl?"":"base-js")}catch(b){return}var l=W5S(n85(z)),I=Object.keys(l);I.length!==0&&osG(function(b){for(var v=_.D(I),M=v.next();!M.done;M=v.next()){M=M.value;for(var x=_.D(Object.keys(l[M])),g=x.next();!g.done;g=x.next())b.addExtraEdge(M,g.value)}})}};
arH=function(){var z=Object.assign({},UWt);Object.getOwnPropertyNames(UWt).forEach(function(l){D_[l]!==void 0&&(z[l]=D_[l])});
return z};
V8Q=function(z,l){if(D_.enablePerformanceTiming){var I,b;(b=(I=performance).mark)==null||b.call(I,z+"Start__"+l)}};
jw$=function(z,l){if(D_.enablePerformanceTiming){var I,b;(b=(I=performance).measure)==null||b.call(I,z+"__"+l,z+"Start__"+l)}};
JWp=function(z,l,I){var b;return z&&l?z+"__"+l:(b=z!=null?z:l)!=null?b:I};
lx$=function(z,l){var I=Object.create(zqY);I.debugName=l;!Ij||po(I);l=_.bE(I);try{z(I)}finally{_.bE(l)}return function(){return void F5G(I)}};
b2G=function(z){return xz(z)&&Ix5 in z};
v7x=function(z,l){return Object.is(z,l)};
g2=function(z){var l=Of;Of=z;return l};
pWQ=function(z){if(Ge)throw Error("Z");if(Of!==null){var l=Of.producersTail;if(l===void 0||l.producer!==z){var I=void 0,b=Of.recomputing;if(b&&(I=l!==void 0?l.nextProducer:Of.producers,I!==void 0&&I.producer===z)){Of.producersTail=I;I.lastReadVersion=z.version;return}var v=z.consumersTail,M;if(!(M=v===void 0||v.consumer!==Of)){if(b){a:{M=Of;b=M.producersTail;if(b!==void 0){M=M.producers;do{if(M===v){b=!0;break a}if(M===b)break;M=M.nextProducer}while(M!==void 0)}b=!1}b=!b}M=b}M&&(b=NM(Of),I={producer:z,
consumer:Of,nextProducer:I,prevConsumer:v,lastReadVersion:z.version,nextConsumer:void 0},Of.producersTail=I,l!==void 0?l.nextProducer=I:Of.producers=I,b&&MXQ(z,I))}}};
O2u=function(z){if(!NM(z)||z.dirty)if(z.dirty||z.lastCleanEpoch!==DAS)(z.producerMustRecompute(z)||xAG(z))&&z.producerRecomputeValue(z),z.dirty=!1,z.lastCleanEpoch=DAS};
g7H=function(z){if(z.consumers!==void 0){var l=Ge;Ge=!0;try{for(var I=z.consumers;I!==void 0;I=I.nextConsumer){var b=I.consumer;b.dirty||(z=void 0,b.dirty=!0,g7H(b),(z=b.consumerMarkedDirty)==null||z.call(b,b))}}finally{Ge=l}}};
Gu7=function(){var z;return((z=Of)==null?void 0:z.consumerAllowSignalWrites)!==!1};
NEf=function(z){z&&(z.producersTail=void 0,z.recomputing=!0);return g2(z)};
uL5=function(z,l){g2(l);if(z){z.recomputing=!1;l=z.producersTail;var I=l!==void 0?l.nextProducer:z.producers;if(I!==void 0){if(NM(z)){do I=E71(I);while(I!==void 0)}l!==void 0?l.nextProducer=void 0:z.producers=void 0}}};
xAG=function(z){for(z=z.producers;z!==void 0;z=z.nextProducer){var l=z.producer,I=z.lastReadVersion;if(I!==l.version)return!0;O2u(l);if(I!==l.version)return!0}return!1};
MXQ=function(z,l){var I=z.consumersTail,b=NM(z);I!==void 0?(l.nextConsumer=I.nextConsumer,I.nextConsumer=l):(l.nextConsumer=void 0,z.consumers=l);l.prevConsumer=I;z.consumersTail=l;if(!b)for(z=z.producers;z!==void 0;z=z.nextProducer)MXQ(z.producer,z)};
E71=function(z){var l=z.producer,I=z.nextProducer,b=z.nextConsumer,v=z.prevConsumer;z.nextConsumer=void 0;z.prevConsumer=void 0;b!==void 0?b.prevConsumer=v:l.consumersTail=v;if(v!==void 0)v.nextConsumer=b;else if(l.consumers=b,!NM(l))for(z=l.producers;z!==void 0;)z=E71(z);return I};
NM=function(z){return z.consumerIsAlwaysLive||z.consumers!==void 0};
yK1=function(z){var l=Object.create(Z2Y);l.computation=z;z=function(){O2u(l);pWQ(l);if(l.value===Ef)throw l.error;return l.value};
z[H2f]=l;return z};
Rq5=function(z,l){var I=Object.create(fxt);I.value=z;l!==void 0&&(I.equal=l);z=function(){pWQ(I);return I.value};
z[H2f]=I;return[z,function(b){return C_S(I,b)},
function(b){Gu7()||kuH(I);C_S(I,b(I.value))}]};
C_S=function(z,l){Gu7()||kuH(z);if(!z.equal(z.value,l)){z.value=l;z.version++;DAS++;g7H(z);var I;(I=mAQ)==null||I(z)}};
uE=function(z){var l=g2(null);try{return z()}finally{g2(l)}};
_.Z_=function(z,l,I){I=I===void 0?"":I;z=Rq5(z,l==null?void 0:l.equals);var b=z[0],v=b[H2f];v.debugName=JWp(l==null?void 0:l.debugName,I,"[signal]");if(!D_.enablePerformanceTiming)return z;var M=z[1],x=z[2];return[b,function(g){KgH(function(){return void M(g)},v)},
function(g){KgH(function(){return void x(g)},v)}]};
KgH=function(z,l){V8Q("signalSet",l.debugName);try{z()}finally{jw$("signalSet",l.debugName)}};
BEk=function(z,l){var I=_.D(_.Z_(z,void 0,"cPpJzc"));z=I.next().value;I=I.next().value;z[tXx]=I;z[Hb]=l;return z};
XW$=function(z){return!!z&&typeof z==="object"&&Object.getPrototypeOf(z)===Object.prototype};
qN7=function(z){return typeof z==="function"&&tXx in z&&typeof z[tXx]==="function"};
i2t=function(z,l){Object.defineProperty(z,Hb,{get:function(){return l}})};
fo=function(z,l){if(y3(z)){var I=z.map(function(M){return fo(M,l)});
i2t(I,l);return I}if(XW$(z)){I={};z=_.D(Object.entries(z));for(var b=z.next();!b.done;b=z.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;I[b]=fo(v,l)}i2t(I,l);return I}return BEk(z,l)};
Fgk=function(z){if(y3(z))return z.map(function(v){return Fgk(v)});
if(XW$(z)){var l={};z=_.D(Object.entries(z));for(var I=z.next();!I.done;I=z.next()){var b=_.D(I.value);I=b.next().value;b=b.next().value;l[I]=Fgk(b)}return l}return qN7(z)?z():z};
YN7=function(){var z={height:0,width:0};if(!XW$(z))throw Error("Jb");var l=Symbol("Kb");return[fo(z,l),function(I,b){if(I[Hb]===l)if(typeof b==="function"){var v=[].concat(_.ht(Fgk(I)));b=b(v)||v;Qyx(I,[].concat(_.ht(b)))}else Qyx(I,b);else throw Error("Lb");}]};
Qyx=function(z,l){if(qN7(z))z[tXx](l);else if(y3(z)&&y3(l))l=fo(l,z[Hb]),z.length=0,z.push.apply(z,_.ht(l));else if((XW$(z)||y3(z))&&(y3(l)||typeof l==="object"&&l!==null)){l=_.D(Object.entries(l));for(var I=l.next();!I.done;I=l.next()){var b=_.D(I.value);I=b.next().value;b=b.next().value;var v=z,M=v[I];Object.hasOwn(z,I)?Qyx(M,b):v[I]=fo(b,z[Hb])}}else throw Error("Mb");};
TE5=function(z){return Object.create(Object.assign({},Co,z))};
SNH=function(){var z;return(z=cKQ)!=null?z:cKQ=TE5({consumerAllowSignalWrites:!0})};
_.kz=function(z,l,I){I=I===void 0?"":I;z=yK1(z);var b=z[H2f];b.debugName=JWp(l==null?void 0:l.debugName,I,"[computed]");(l==null?void 0:l.equals)!=null&&(b.equal=l.equals);return z};
Rj=function(z){var l=g2(dAt);try{z()}finally{g2(l)}};
rKf=function(z){switch(z.onInitType){case o7t:P_G.schedule(z);break;case hqt:syf.schedule(z);break;default:_.Ap(z.onInitType)}};
n7Q=function(z){if(!z.isDisposed)switch(z.effectType){case my:$Au.schedule(z);break;case eqS:wW$.schedule(z);break;case AKf:Wg5.schedule(z);break;default:_.Ap(z.effectType)}};
ax$=function(){if(Ko>0)D_.flushRenderEffectsDuringRender&&$Au.flush();else{for(var z=_.D(LgY),l=z.next();!l.done;l=z.next())l.value.flush();UAt()}};
UAt=function(){_.O(function(z){if(z.nextAddress==1)return z.yield(Promise.resolve(),2);for(var l=_.D(VX5),I=l.next();!I.done;I=l.next())I.value.flush();_.qe(z)})};
JK$=function(z){tX=!0;try{for(var l=_.D(z),I=l.next();!I.done;I=l.next()){for(var b=I.value,v=[b],M=b;M.parent!==void 0;)M=M.parent,jyk(M)&&z.has(M)&&v.push(M);for(;v.length>0;){var x=v.pop();z.delete(x);x.run()}}}finally{tX=!1}};
Bb=function(z){Ko--;if(z){z=_.D(ztH);for(var l=z.next();!l.done;l=z.next())l.value.clear()}else Ko>0||tX&&!D_.flushRenderEffectsDuringRender||ax$()};
IAt=function(z,l,I){var b=lAu(z);XQ={name:I?b+" ("+I+")":b,isReactive:z.componentType!==qM,parent:XQ};z=l();XQ=XQ.parent;return z};
iE=function(){var z=XQ;return z?z.isReactive:!1};
Yz=function(z,l,I){var b=XQ;l&&(XQ=l);try{return I==null?z():z.call(I)}catch(M){z=M;Q3(z,XQ);if(z!==bsu){vFQ=XQ;l=[];for(I=Ij;I;){var v=void 0;l.push((v=I.debugName)!=null?v:"[context]");v=void 0;I=(v=I.parent)!=null?v:null}Mj7=l.reverse()}bsu=z;throw z;}finally{XQ=b}};
Q3=function(z,l){try{var I=pCk(l);if(I&&!z.componentStack&&(z.componentStack=I,D_.enableComponentStacksInErrorMessages)){var b=z.message+"\n\nComponent stack: "+I;z.stack&&(z.stack=z.stack.replace(z.message,b));z.message=b}}catch(v){}};
pCk=function(z){if(xz(z)&&z.name!==void 0&&z.isReactive!==void 0&&z.parent!==void 0||z===null){for(var l=0,I="";l<20&&z;)I+=z.name+" > ",z=z.parent,l++;z=I.slice(0,-3)}else if(D_.enableContextBasedComponentStacks){a:{for(z=z===void 0?Ij:z;z;){if(b2G(z))break a;l=void 0;z=(l=z.parent)!=null?l:null}z=null}z=z.getComponentStack().slice(0,20).join(" > ")}else z="";return z};
lAu=function(z){return z.debugName||z.name||"[component]"};
DhH=function(z,l,I){l=Object.create(l);z&&(l.effectFn=z);I&&(l.debugName=I);po(l);l.componentStack=XQ;return l};
_.Te=function(z,l){z=DhH(z,xhk,l);n7Q(z)};
_.cb=function(z){var l=Ij;if(l){var I=XQ;ipf(l,function(){var b=g2(SNH());try{Yz(function(){return void z()},I)}catch(v){throw D_.enableContextBasedComponentStacks&&Q3(v),v;
}finally{g2(b)}})}};
S3=function(z,l){var I={};(l===void 0||l)&&po(I);l=_.bE(I);try{z(I)}finally{_.bE(l)}return function(){return void F5G(I)}};
_.d2=function(z){return typeof z==="function"?z():(z==null?0:z[OsG])?z.get():z};
_.oj=function(z,l){z=DhH(z,gFS,l);n7Q(z)};
G1Q=function(z){if(Ij)throw Error("nb");S3(z,!1)};
Pb=function(z,l){z=_.bE(z);try{return uE(l)}finally{_.bE(z)}};
hX=function(z,l){var I=pCk(vFQ),b,v;var M=(v=(b=Mj7)==null?void 0:b.slice())!=null?v:[];l={componentStack:I,contextTrace:M,errorSeverity:3,featureFlags:arH(),tagName:l};return[z,l]};
uYH=function(z,l,I){if(Object.hasOwnProperty.call(NSQ,z)&&(z=NSQ[z],Object.hasOwnProperty.call(z,l)&&(z=z[l],z instanceof Array))){for(var b=null,v=!1,M=0,x=z.length;M<x;++M){var g=z[M],G=g.contingentAttribute;if(!G)return g.contract;b===null&&(b={});G=Object.hasOwnProperty.call(b,G)?b[G]:b[G]=I(G);if(G===g.requiredValue)return g.contract;G==null&&(v=!0)}if(v)return null}l=EFk[l];return typeof l==="number"?l:null};
yeG=function(z,l,I){var b=null;(z=Zsf[z])&&(b=z[l]);return typeof b!=="number"&&((z=Zsf["*"])&&(b=z[l]),typeof b!=="number")?!1:!0===Hst[b][String(I).toLowerCase()]};
Cqt=function(z,l){l=uYH(z.toLowerCase(),l,function(){var b;(b=D_.handleError)==null||b.call.apply(b,[D_].concat(_.ht(hX(Error("Tb"),z.toLowerCase()))))});
if(l===null)return null;var I;return(I=fAu[l])!=null?I:null};
k1G=function(z,l,I){if(I===null||I===void 0)return I;l=l.toLowerCase();z=Cqt(z,l);return z===null?I:z(l,I)};
Rtt=function(){};
sf=function(z,l){for(;z.length>l;)z.pop()};
mhY=function(z){z=Array(z);sf(z,0);return z};
r2=function(z,l,I){if(I==null)z.removeAttribute(l);else{var b;(b=l.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":l.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?z.setAttributeNS(b,l,I):z.setAttribute(l,I)}};
KIS=function(z,l,I){z[l]=I};
BSS=function(z,l,I){z=z.style;if(typeof I==="string")z.cssText=I;else{z.cssText="";for(var b in I)if(tjx.call(I,b)){l=z;var v=b,M=I[b];v.indexOf("-")>=0?l.setProperty(v,M):l[v]=M}}};
XCQ=function(z,l,I){var b=typeof I;b==="object"||b==="function"?z[l]=I:r2(z,l,I)};
qd1=function(){var z=new Rtt;z[$z.default]=XCQ;z.style=BSS;return z};
is7=function(z,l,I,b){(b[l]||b[$z.default])(z,l,I)};
QKH=function(z,l,I){l=new FIS(l,I);return z.__incrementalDOMData=l};
AX=function(z,l){if(z.__incrementalDOMData)return z.__incrementalDOMData;var I=z.nodeType===1?z.localName:z.nodeName,b=z.nodeType===1?z.getAttribute("key"):null;l=QKH(z,I,z.nodeType===1?b||l:null);if(z.nodeType===1&&(z=z.attributes,I=z.length)){b=l._attrsArr||(l._attrsArr=mhY(I*2));for(var v=0,M=0;v<I;v+=1,M+=2){var x=z[v],g=x.value;b[M]=x.name;b[M+1]=g}}return l};
YdY=function(z,l,I,b,v){return l==I&&b==v};
TSY=function(z){for(var l=Wb,I=no();I!==z;){var b=I.nextSibling;l.removeChild(I);aj.deleted.push(I);I=b}};
no=function(){return V3?V3.nextSibling:Wb.firstChild};
j3=function(){V3=no()};
dh7=function(z,l,I){j3();var b;a:{if(b=V3){do{var v=b,M=z,x=l,g=AX(v,x);if(cek(v,M,g.nameOrCtor,x,g.key))break a}while(l&&(b=b.nextSibling))}b=null}b||(z==="#text"?(I=JX.createTextNode(""),QKH(I,"#text",null),z=I):(b=JX,v=Wb,typeof z==="function"?b=new z:b=(v=z==="svg"?"http://www.w3.org/2000/svg":z==="math"?"http://www.w3.org/1998/Math/MathML":v==null||AX(v).nameOrCtor==="foreignObject"?null:v.namespaceURI)?b.createElementNS(v,z):b.createElement(z),QKH(b,z,l),z=b,I&&z.setAttribute("nonce",I)),aj.created.push(z),
b=z);I=b;if(I!==V3){if(Sdf.indexOf(I)>=0)for(z=Wb,l=I.nextSibling,b=V3;b!==null&&b!==I;)v=b.nextSibling,z.insertBefore(b,l),b=v;else Wb.insertBefore(I,V3);V3=I}};
oF7=function(z,l,I){dh7(z,l,I);Wb=V3;V3=null;return Wb};
Pqt=function(){TSY(null);V3=Wb;Wb=Wb.parentNode};
htG=function(){V3=Wb.lastChild};
$ht=function(z,l){l=l===void 0?{}:l;var I=l.matches===void 0?YdY:l.matches;return function(b,v,M){var x=aj,g=JX,G=Sdf,u=z3,Z=ls,H=V3,y=Wb,f=cek;JX=b.ownerDocument;aj=new sKG(b);cek=I;z3=[];ls=[];V3=null;var R=Wb=b.parentNode,F,Y=reQ.call(b);if((F=Y.nodeType===11||Y.nodeType===9?Y.activeElement:null)&&b.contains(F)){for(Y=[];F!==R;)Y.push(F),F=F.parentNode||(R?F.host:null);R=Y}else R=[];Sdf=R;try{return z(b,v,M)}finally{b=aj,IY&&b.deleted.length>0&&IY(b.deleted),JX=g,aj=x,cek=f,z3=u,ls=Z,V3=H,Wb=y,
Sdf=G}}};
et5=function(z,l,I,b){bs.push(is7);bs.push(z);bs.push(l);bs.push(I);bs.push(b)};
Aeu=function(z,l,I){var b=ls;l=l._attrsArr||(l._attrsArr=mhY(b.length));for(var v=!l.length||!1,M=0;M<b.length;M+=2){var x=b[M];if(v)l[M]=x;else if(l[M]!==x)break;var g=b[M+1];if(v||l[M+1]!==g)l[M+1]=g,et5(z,x,g,I)}if(M<b.length||M<l.length){for(M=v=M;M<l.length;M+=2)My[l[M]]=l[M+1];for(M=v;M<b.length;M+=2)v=b[M],x=b[M+1],My[v]!==x&&et5(z,v,x,I),l[M]=v,l[M+1]=x,delete My[v];sf(l,b.length);for(var G in My)et5(z,G,void 0,I),delete My[G]}z=wCG;wCG=I=bs.length;for(G=z;G<I;G+=5)(0,bs[G])(bs[G+1],bs[G+
2],bs[G+3],bs[G+4]);wCG=z;sf(bs,z);sf(b,0)};
WIQ=function(z){dh7("#text",null);var l=V3;var I=AX(l);if(I.text!==z){I=I.text=z;for(var b=1;b<arguments.length;b+=1)I=(0,arguments[b])(I);l.data!==I&&(l.data=I)}};
JeS=function(z,l,I){if(I===!1&&nFQ.has(l))r2(z,l,null);else if(l!=="idomKey"&&l!=="skip"&&l!=="skipchildren"&&l!=="children"&&l!=="el")if(l.startsWith("on")){if(l[2]!==":")throw Error("Sb`"+l);if(I===void 0||I===null){var b;(b=D_.handleError)==null||b.call.apply(b,[D_].concat(_.ht(hX(Error("Xb`"+l),z.tagName))));z[l]=void 0}else{var v=l.slice(3);b=iE();if(v==="jsaction"){I=Array.isArray(I)?I:[I];I=_.D(I);for(var M=I.next();!M.done;M=I.next()){M=M.value;if(typeof M!=="object"||M===null||typeof M.selfReg!==
"function")throw Error("$b`"+l);M.selfReg(0,z,b?_.cb:function(){})}}else{if(typeof I!=="object"||I===null)throw Error("Yb`"+l+"`"+typeof I);
if(typeof I.getFn!=="function")throw Error("Zb`"+l+"`"+Object.keys(I));if(I.selfReg)I.selfReg(0,z,v,b?_.cb:function(){});
else if(b&&z["on"+v]===void 0){var x=I.getFn(0);z.addEventListener(v,x);_.cb(function(){return void z.removeEventListener(v,x)})}else if(b||!LI1.includes(v))z["on"+v]=I.getFn(0)}}}else{if(l.startsWith("data-")&&typeof I==="string")try{I=Uh$(I)}catch(g){I="zSoyz"}typeof I!=="function"||z._disposeEffects!=null?((b=l.startsWith("prop:"))&&(l=l.slice(5)),D_.enableAttributeSanitization&&(b&&aAY(z.tagName)||(I=k1G(z.tagName,l,I))),l==="style"?("function"==typeof _.pP&&I instanceof _.pP&&(I=I.toString()),
Vju(z,l,I)):b?z[l]=I:jKS(z,l,I)):(z._signalProps||(z._signalProps=[]),z._signalValues||(z._signalValues=[]),z._signalProps.push(l))}};
z4Y=function(z,l,I){I=(I===void 0?{}:I).isReactive;if(l==null?0:l.el){var b=l.el,v;(v=b.onRender)==null||v.call(b,z);z._disposeRef||(z._disposeRef=function(){var M;(M=b.onUnmount)==null||M.call(b);delete z._disposeRef},I&&_.cb(function(){var M;
(M=z._disposeRef)==null||M.call(z)}))}};
aAY=function(z){return z.length>0&&z.includes("-")&&!lVY.includes(z.toLowerCase())};
IVY=function(z){return xz(z)&&DJ in z};
bQp=function(z){return IVY(z)?z[DJ].flattened:z};
Mnt=function(z,l){var I=_.AT.apply(2,arguments),b;l=(b=l)!=null?b:{};b={};return b.type=z,b.props=l,b.children=I,b[vO5]=!0,b};
_.xP=function(z){return z.children};
OZ=function(z){var l=pP$!==Mnt;pP$=z?Dr7:Mnt;return l};
_.gr=function(z){return _.Lu(z)?"nodeType"in z:!1};
G3=function(){return document.createTextNode("")};
Ny=function(z){z=document.createTextNode(String(z));z._isSignalTextNode=!0;return z};
OQ1=function(z){return z!=null&&z.contentKind===EZ||z instanceof LD||xru(z)};
gO1=function(z){var l=document.createElement("div");if(xru(z)&&umu(z))_.p4(l,umu(z));else if(z instanceof LD)_.p4(l,z);else if(z!=null&&z.contentKind===EZ){if(z.contentKind!==EZ)throw Error("Wb");z=au(z.toString());_.p4(l,z)}z=_.D(l.childNodes);for(var I=z.next();!I.done;I=z.next())I.value._isSafeOrSanitizedHtmlNode=!0;return l};
us=function(z){z=typeof z;return z==="string"||z==="number"||z==="boolean"};
GR1=function(z){return z instanceof Fr||ou(z)||z instanceof gH||"function"==typeof _.pP&&z instanceof _.pP};
Nmu=function(z,l){var I=z.parentElement;if(!I)return l;I.replaceChild(l,z);return l};
EOt=function(z,l){var I=z[0].parentElement;if(I)if(z[0].previousSibling||z[z.length-1].nextSibling){I.insertBefore(l,z[0]);for(var b=z.length-1;b>=0;b--)I.removeChild(z[b])}else I.textContent="",I.appendChild(l);return l};
ugQ=function(z,l){if(z[0].parentElement)for(var I=z[0].parentElement,b=l.length,v=z.length,M=b,x=0,g=0,G=z[v-1].nextSibling,u=null;x<v||g<M;)if(z[x]===l[g])x++,g++;else{for(;z[v-1]===l[M-1];)v--,M--;if(v===x)for(var Z=M<b?g?l[g-1].nextSibling:l[M-g]:G;g<M;){var H=l[g++];I.insertBefore(H,Z)}else if(M===g)for(;x<v;)Z=z[x],u&&u.has(Z)||I.removeChild(Z),x++;else if(z[x]===l[M-1]&&l[g]===z[v-1])Z=z[--v].nextSibling,I.insertBefore(l[g++],z[x++].nextSibling),I.insertBefore(l[--M],Z),z[v]=l[M];else{if(!u)for(u=
new Map,Z=g;Z<M;)u.set(l[Z],Z++);Z=u.get(z[x]);if(Z==null)I.removeChild(z[x]),x++;else if(g<Z&&Z<M){H=x;for(var y=1,f=void 0;++H<v&&H<M&&(f=u.get(z[H]))!=null&&f===Z+y;)y++;if(y>Z-g)for(H=z[x];g<Z;)I.insertBefore(l[g++],H);else I.replaceChild(l[g++],z[x++])}else x++}}return l};
HQY=function(z){if(Array.isArray(z)){if(z.length>1)throw Error("jc`"+z.length+"`"+z.map(ZQu).join(", "));z=z[0]}if(z==null)return null;if(!(z instanceof _.IL)){var l,I;if((l=window)==null?0:(I=l.trustedTypes)==null?0:I.isScript(z))throw Error("ic");if(String(z).trim().length===0)return null;throw Error("kc`"+ZQu(z));}return z};
y8Y=function(z,l){l=HQY(l);l!==null&&_.v0(z,l)};
fVQ=function(z){if(Array.isArray(z)){if(z.length>1)throw Error("lc`"+z.length+"`"+z.map(ZQu).join(", "));z=z[0]}if(z==null)return null;if(!(z instanceof gH)){if(String(z).trim().length===0)return null;throw Error("mc`"+ZQu(z));}return z};
CMH=function(z,l){l=fVQ(l);l!==null&&(z.textContent=NH1(l))};
ZQu=function(z){return"("+typeof z+") "+(z!=null&&typeof z==="object"?z.constructor.name:typeof z)+" "+z};
kRQ=function(){};
fP=function(z,l){l=l===void 0?{}:l;var I=R4p();D_.legacyTriggerSoyRendererEvents&&rWQ();_.oj(function(){H8.setUp();l.isControlFlowComponent&&Ko++;var b=I[0],v=I[DJ].flattened,M=OZ(!0);try{var x=z(),g=mr$(b,x,I);Array.isArray(g)||(I[DJ].flattened=[g]);var G=I[DJ].flattened;if(v&&(!Array.isArray(v)||v.length!==0)){var u=Array.isArray(v)?v[0]:v,Z=u[y7],H=u._disposeEffects;u._disposeEffects=void 0;u=Array.isArray(G)?G[0]:G;u[y7]=Z;u[y7]&&(u[y7].numNodes=u===G?1:G.length);u._disposeEffects=H}I[0]=g;l.isControlFlowComponent&&
Bb(!1)}catch(y){throw l.isControlFlowComponent&&Bb(!0),y;}finally{OZ(M),H8.tearDown()}},l.debugName);
return I};
mr$=function(z,l,I){for(;typeof l==="function";)l=l();if(l!=null&&l[vO5]){var b,v,M;(M=D_.handleError)==null||M.call.apply(M,[D_].concat(_.ht(hX(Error("nc`"+((b=l.type)==null?void 0:b.TAG_NAME)),(v=l.type)==null?void 0:v.TAG_NAME))))}if(z==null)return l==null?G3():us(l)?Ny(l):GR1(l)?Ny(l.toString()):_.gr(l)?l:l.length===0?G3():KGu(l,I);if(_.gr(z)){if(l==null)return Nmu(z,G3());if(us(l))return tnf(z,l);if(GR1(l))return tnf(z,l.toString());if(_.gr(l))return Nmu(z,l);if(l.length===0)return Nmu(z,G3());
l=KGu(l,I);ugQ([z],I[DJ].flattened);return l}z=CP(z);if(l==null)return EOt(z,G3());if(us(l))return EOt(z,Ny(l));if(GR1(l))return EOt(z,Ny(l.toString()));if(_.gr(l))return ugQ(z,[l])[0];if(l.length===0)return EOt(z,G3());l=KGu(l,I);ugQ(z,I[DJ].flattened);return l};
tnf=function(z,l){z.nodeType===Node.TEXT_NODE?z.textContent!==String(l)&&(z.textContent=String(l)):z=Nmu(z,Ny(l));return z};
CP=function(z,l,I){return Bm$(z,l!=null?l:[],I===void 0?!1:I)};
KGu=function(z,l){var I=CP(z,void 0,!0);if(I.length===0)return G3();l[DJ].flattened=I;return z};
Bm$=function(z,l,I,b,v){l=l===void 0?[]:l;I=I===void 0?!1:I;v=v===void 0?-1:v;if(z==null)return l;if(z instanceof RY){var M=z.render();return Bm$(M,l,I,b,v)}if(_.gr(l)&&l.nodeType===Node.ELEMENT_NODE)switch(l.tagName){case "SCRIPT":y8Y(l,z);return;case "STYLE":CMH(l,z);return}us(z)&&(z=Ny(z),b&&I&&(b[v]=z));if(OQ1(z)){I=gO1(z);I=Array.from(I.childNodes);I=_.D(I);for(M=I.next();!M.done;M=I.next())XPG(l,M.value);return l}GR1(z)&&(z=Ny(z.toString()),b&&I&&(b[v]=z));if(_.gr(z))return XPG(l,z);if(Array.isArray(z)){for(M=
0;M<z.length;M++)Bm$(z[M],l,I,z,M);return l}if(typeof z==="function"){M=fP(function(){var g=z();return g!=null&&!us(g)&&OQ1(g)?(g=gO1(g),Array.from(g.childNodes)):g},{debugName:"qmF2ne",
debugFn:z})[0];if(Array.isArray(M)){I=_.D(M);for(M=I.next();!M.done;M=I.next())XPG(l,M.value);return l}b&&I&&(b[v]=M);return XPG(l,M)}if(z!=null&&z[vO5]){b=z;v=OZ(!0);var x=pP$;try{M=x.apply(null,[b.type,b.props].concat(_.ht(b.children)))}finally{OZ(v)}return Bm$(M,l,I)}(x=D_.handleError)==null||x.call.apply(x,[D_].concat(_.ht(hX(Error("oc")))));return l};
R4p=function(z){var l={};l=Object.assign([],(l[DJ]={flattened:[]},l));if(!z)return l;l[0]=KGu(z,l);return l};
XPG=function(z,l){Array.isArray(z)?z.push(l):z.appendChild(l);return z};
mF=function(z){if(!D_.enableLazyTsx)return z;if(Array.isArray(z)){for(var l=0;l<z.length;l++)z[l]=mF(z[l]);return z}return z instanceof RY?(z=z.render(),mF(z)):z};
iQ5=function(z,l){var I,b,v=lAu(z),M=function(f){b=f;f=OZ(!0);var R=g2(KP);V8Q("render",v);try{I=mF(z(l))}finally{jw$("render",v),g2(R),OZ(f)}};
M=D_.enableContextPerComponent?lx$(M,v):S3(M,D_.alwaysTrackContexts||!!Ij);b2G(b);if(!l.renderedFromIdom){var x=_.bE(b);try{return qUH(z,l,I),I}finally{_.bE(x)}}!IVY(I)&&Array.isArray(I)&&(I=R4p(I));var g=bQp(I);x=Array.isArray(g)?g[0]:g;var G=!1;if(x){var u,Z=(u=l==null?void 0:l.idomKey)!=null?u:z;u=g!==x;x._disposeEffects=M;var H=x[y7]||{},y=IVY(I)?I:H.sourceDynamicRange;Object.assign(H,{key:Z,numNodes:u?g.length:1,context:b,higherOrder:!!x[y7],sourceDynamicRange:y});x[y7]=H}else G=!0;(function(){var f=
_.bE(b);try{qUH(z,l,g)}finally{_.bE(f)}})();
G&&M();return I};
FGH=function(z){var l={},I;for(I in z)l={prev$jscomp$24:void 0,next$jscomp$33:void 0},l.prev$jscomp$24=tr[I],l.next$jscomp$33=z[I],tr[I]=function(b){return function(){var v=_.AT.apply(0,arguments);b.prev$jscomp$24.apply(null,_.ht(v));b.next$jscomp$33.apply(null,_.ht(v))}}(l)};
YU$=function(){if(iE())throw Error("pc");return QRQ};
Tmf=function(z,l){if(!z.__unmounted&&l){z.__unmounted=!0;try{z.didUnmount()}catch(v){var I,b;(b=D_.handleError)==null||b.call.apply(b,[D_].concat(_.ht(hX(v,(I=z.__type)==null?void 0:I.TAG_NAME))))}tr.didUnmount(z);z.el=null;l.__instance&&delete l.__instance}};
SU1=function(z,l,I){z._signalProps!=null&&z._disposeEffects==null&&((I===void 0?0:I)?z._disposeEffects=S3(function(){return void c8Q(z,l)},D_.alwaysTrackContexts||!!Ij):c8Q(z,l))};
c8Q=function(z,l){_.oj(function(){for(var I=z._signalProps,b=z._signalValues,v=0;v<I.length;v++){var M=I[v],x=l[M]();b[v]!==x&&(b[v]=x,JeS(z,M,x))}},"e3YVbb")};
drQ=function(z,l,I){var b,v=[];z._disposeEffects=S3(function(){_.oj(function(){var M=I();if(M===null||M===void 0)M="";if(us(M)||M===null)b!=null||(b=document.createTextNode("")),b.parentNode!==z&&(b._isSignalTextNode=!0,z.insertBefore(b,l)),b.textContent=String(M);else if(OQ1(M)){for(var x=v.length>0?v[v.length-1].nextSibling:l,g=_.D(v),G=g.next();!G.done;G=g.next())z.removeChild(G.value);M=gO1(M);v=Array.from(M.childNodes);M=_.D(v);for(g=M.next();!g.done;g=M.next())z.insertBefore(g.value,x)}else throw G=
(g=(x=XQ)==null?void 0:x.name)!=null?g:"unknown",Error("ec`"+G+"`"+typeof M);},"VvDgC")},D_.alwaysTrackContexts||!!Ij)};
h4$=function(z,l){var I=_.AT.apply(2,arguments);l!=null||(l={});return!D_.enableLazyTsx||XQ!=null&&!iE()?oOH(z,l,I):new PM$(z,l,I)};
oOH=function(z,l,I){if(z===_.xP)return I;if(typeof z==="function")return XQ&&!iE()&&(l.renderedFromIdom=!0),IAt(z,function(){var M=sRx(z,l,I);if(M)return M;I.length>0&&(l.children=I.length===1?I[0]:I);if(z.componentType===qM){var x;lx$(function(){var g=l;if(z.componentType!==qM)x=!1;else{g||(g={});var G=new B8(g,z),u=g2(KP);try{var Z=G.render(g)}finally{g2(u)}Z instanceof HTMLElement?(Z.__instance=G,G.el=Z,G.__type=z,z.TAG_NAME=Z.tagName.toLowerCase(),tr.didPatch(G),x=Z):x=Z}},z.name);
if(x)return x}return iQ5(z,l)},l.debugInstance);
var b=r8u(z,l),v;for(v in l)JeS(b,v,l[v]);SU1(b,l);CP(I,b);z4Y(b,l,{isReactive:!0});$rQ(b,l);return b};
r8u=function(z,l){z=(e4Y.has(z.toLowerCase())?0:wPS.has(z.startsWith("svg:")?z.replace("svg:",""):z))?document.createElementNS("http://www.w3.org/2000/svg",z.startsWith("svg:")?z.replace("svg:",""):z):A8x(z,l)||document.createElement(z);z[WGG]=!0;return z};
nOQ=function(z){if(z){var l;(l=z._disposeRef)==null||l.call(z);var I;(I=z._disposeEffects)==null||I.call(z);z.__instance&&z.__instance instanceof X0&&(l=z.__instance,Tmf(l,z),l instanceof B8&&l.disposeEffects());for(l=0;l<z.childNodes.length;l++)nOQ(z.childNodes[l])}};
UrY=function(z){LGS.push(z)===1&&requestAnimationFrame(function(){setTimeout(function(){var l=[].concat(_.ht(LGS));LGS=[];l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;try{for(var b=0;b<I.length;b++)nOQ(I[b])}catch(v){b=I=void 0,(b=(I=D_).handleError)==null||b.call.apply(b,[I].concat(_.ht(hX(v))))}}})})};
_.N=function(z,l){return pP$.apply(null,[z,l].concat(_.ht(_.AT.apply(2,arguments))))};
_.E=function(z){var l=z.cond;if(l===void 0)return z.else&&z.else();var I=_.kz(function(){return!!l()},void 0,"JHVi8"),b=function(){var v=l();
if(!v){var M;(M=D_.handleError)==null||M.call.apply(M,[D_].concat(_.ht(hX(aVQ.nonNullableCondIsNull()))))}return v};
return fP(function(){var v=I(),M;S3(function(){var x=g2(KP);try{M=mF(v?z.then(b):z.else&&z.else())}finally{g2(x)}},!0);
return M},{debugName:z.debugInstance,
debugFn:z.then,isControlFlowComponent:!0})};
Vnp=function(z){return _.E(z)};
_.qy=function(z){return z.keyBy==="INDEX"?jR7(z):J8$(z)};
zcQ=function(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next()){var I=void 0;(I=l.value)==null||I()}};
J8$=function(z){var l=z.keyBy===void 0||z.keyBy==="REFERENCE",I=l?function(Z){return Z}:z.keyBy,b=[],v=[],M=[],x=[],g=[],G=[],u=!0;
_.cb(function(){zcQ(x)});
return fP(function(){var Z=z.each(),H=Z.length;if(H===0){if(b.length===0&&!u)return M;zcQ(x);b=Z;v=[];for(Z=0;Z<b.length;Z++)v.push(I(b[Z]));M=[];x=[];g=[];G=[];z.fallback&&(x[0]=lEk(function(){M[0]=mF(z.fallback())}));
u=!1;return M}for(var y=new IEQ,f=b.length-1;f>=0;f--)y.push(v[f],f);f=Array(H);for(var R=Array(H),F=Array(H),Y=Array(H),c=Array(l?0:H),d={i$jscomp$450:0};d.i$jscomp$450<H;d={i$jscomp$450:d.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$564:void 0},d.i$jscomp$450++){d.item$jscomp$104=Z[d.i$jscomp$450];d.key$jscomp$564=I(d.item$jscomp$104);var V=y.pop(d.key$jscomp$564);V!=null?(F[d.i$jscomp$450]=M[V],R[d.i$jscomp$450]=v[V],f[d.i$jscomp$450]=x[V],Y[d.i$jscomp$450]=g[V],l||(c[d.i$jscomp$450]=G[V]),Rj(function(A){return function(){Y[A.i$jscomp$450](A.i$jscomp$450);
if(!l)c[A.i$jscomp$450](A.item$jscomp$104)}}(d)),delete x[V]):f[d.i$jscomp$450]=lEk(function(A){return function(){var W=_.D(_.Z_(A.i$jscomp$450,void 0,"Fqk1zd")),L=W.next().value;
W=W.next().value;Y[A.i$jscomp$450]=W;R[A.i$jscomp$450]=A.key$jscomp$564;if(l)F[A.i$jscomp$450]=mF(z.children(A.item$jscomp$104,L));else{var lH=_.D(_.Z_(A.item$jscomp$104,void 0,"GBj5de"));W=lH.next().value;lH=lH.next().value;c[A.i$jscomp$450]=lH;F[A.i$jscomp$450]=mF(z.children(W,L))}}}(d))}zcQ(x);
b=Z;v=R;M=F;x=f;g=Y;G=c;u=!1;return F},{debugName:z.debugInstance,
debugFn:z.each,isControlFlowComponent:!0})};
jR7=function(z){var l=[],I=[],b=[],v=[],M=!1;_.cb(function(){for(var x=_.D(v),g=x.next();!g.done;g=x.next())g=g.value,g()});
return fP(function(){var x=z.each();M&&x.length>0&&(v.pop()(),l.pop(),M=!1);for(var g=Array(x.length),G={i$jscomp$451:0};G.i$jscomp$451<x.length;G={i$jscomp$451:G.i$jscomp$451},G.i$jscomp$451++)if(G.i$jscomp$451<l.length)l[G.i$jscomp$451]!==x[G.i$jscomp$451]&&(Rj(function(Z){return function(){return void I[Z.i$jscomp$451](x[Z.i$jscomp$451])}}(G)),l[G.i$jscomp$451]=x[G.i$jscomp$451]),g[G.i$jscomp$451]=b[G.i$jscomp$451];
else{var u=lEk(function(Z){return function(){l[Z.i$jscomp$451]=x[Z.i$jscomp$451];var H=_.D(_.Z_(x[Z.i$jscomp$451],void 0,"JMMLmd")),y=H.next().value;H=H.next().value;I[Z.i$jscomp$451]=H;g[Z.i$jscomp$451]=mF(z.children(y,Z.i$jscomp$451))}}(G));
v[G.i$jscomp$451]=u}for(;l.length>x.length;)l.pop(),v.pop()(),I.pop();x.length===0&&!M&&z.fallback&&(G=lEk(function(){g[0]=mF(z.fallback())}),v[0]=G,M=!0);
return b=g},{debugName:z.debugInstance,
isControlFlowComponent:!0})};
lEk=function(z){var l=Ij;return S3(function(I){var b=g2(KP);try{I.parent=l,z(I)}finally{g2(b)}},!1)};
_.is=function(z){return z};
_.F0=function(z){return{isDefault:!0,children:z.children}};
_.Q7=function(z){var l=bMf(z),I=_.kz(function(){return vB5(l)},void 0,"F1PF4");
return fP(function(){var b=I(),v;S3(function(){var M=g2(KP);try{v=mF(b())}finally{g2(M)}});
return v},{debugName:z.debugInstance,
isControlFlowComponent:!0})};
bMf=function(z){z=z.children;return Array.isArray(z)?z:[z]};
M_Y=function(z){var l=z.props;z=z.getChildren()[0];return l.when?{when:l.when,children:z}:{isDefault:!0,children:z}};
vB5=function(z){var l=function(){return null};
z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,I!=null&&I[vO5]&&(I=I.type===_.F0?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof RY&&(I=M_Y(I)),I.isDefault)l=I.children;else if(I.when())return I.children;return l};
Dut=function(z){var l=null,I,b={get value(){var M,x;(x=(M=v).validateGetValue)==null||x.call(M);return v.__value},set value(M){var x,g;(g=(x=v).validateSetValue)==null||g.call(x,M);v.__value=M;v.__hasBeenSet=!0}},v=(b.__value=null,b.__hasBeenSet=!1,b.__hasErrored=!1,b.onRender=function(M){if(I&&M!==I){I._disposeRef=void 0;var x;(x=l)==null||x()}I=M;l=z(M)||null},b.onUnmount=function(){var M;
(M=l)==null||M();l=v.value=null},b[_.pu$]=!0,b);
return v};
YP=function(z){return typeof z==="symbol"};
OM$=function(z){var l=YU$();if(l==null)throw _.xup.PRIMITIVE_INVALID_HOOK_CALL();var I=l.hookCounter++;l.hooks||(l.hooks=[]);var b=l.hooks;b[I]||(b[I]={key:z,host:l});if(z!==b[I].key){if(l.__type){var v;z=(v=l.__type)==null?void 0:v.name}else z=l instanceof B8?lAu(l.functionComponent):"<"+l.el.tagName.toLowerCase()+">";throw _.xup.OUT_OF_ORDER_HOOK_CALL(z);}return b[I]};
gBf=function(z,l){return!z||z.length!==(l==null?void 0:l.length)||z.some(function(I,b){return I!==l[b]})};
GbG=function(z,l){var I=OM$("onChange"),b=YU$();gBf(I.deps,l)&&(I.deps=l,I.pendingEffect=z,b.__syncEffects||(b.__syncEffects=[]),b.__syncEffects.push(I))};
_.T3=function(z,l,I){I!=null||(I={});I=I.appContext;var b=!!D_.legacyTriggerSoyRendererEvents;H8.setUp();try{var v=NCu(z,l,I);b&&(l=I,l==null&&(l=_.K5x(document).getAppContext()),l.get(EB1).JSC$29067_getEventTarget().dispatchEvent(new uGk(ZM$,z,EZ)));H8.log(z);return v}finally{H8.tearDown()}};
NCu=function(z,l,I){var b=function(){var M=g2(KP);try{return S3(function(){var x=_.K5x(_.e6(z)),g;var G=swp({rootElement:{value:z},appContext:I||(x==null?void 0:(g=x.getOptionalAppContext)==null?void 0:g.call(x)),dispatcher:x});x=_.bE(G);G=OZ(!0);Ko++;try{CP(l(),z),Bb(!1)}catch(u){throw Bb(!0),u;}finally{OZ(G),_.bE(x)}},!1)}catch(x){throw D_.enableContextBasedComponentStacks&&Q3(x),x;
}finally{g2(M)}},v=Yz(function(){return b()});
z[HMu]=!0;return function(){z.textContent="";v();z[HMu]=!1}};
_.c8=function(z){if(jyk(Of)){var l;(l=D_.handleError)==null||l.call.apply(l,[D_].concat(_.ht(hX(Error("dc")))))}var I=Ij,b=XQ;rKf({onInitType:hqt,run:function(){if(I&&!I.isDisposed){var v=_.bE(I);try{Yz(function(){return void z()},b)}catch(M){throw D_.enableContextBasedComponentStacks&&Q3(M),M;
}finally{_.bE(v)}}}})};
yHf=function(z,l){GbG(function(){return uE(z)},l)};
_.Sm=function(z){iE()?_.c8(function(){uE(z)}):GbG(function(){return uE(z)},[])};
CJG=function(z){var l=[].concat(_.ht(z));z.length=0;z=_.D(l);for(l=z.next();!l.done;l=z.next()){l=l.value;fEQ(l);var I=l.pendingEffect;l.pendingEffect=null;if(I=I==null?void 0:I())l.pendingCleanup=I}};
fEQ=function(z){var l=z.pendingCleanup;z.pendingCleanup=null;l==null||l()};
kbu=function(z,l){if(iE())return z();var I=OM$("useMemoInternal");gBf(I.deps,l)&&(I.deps=l,I.value=z());return I.value};
RcG=function(z,l){return kbu(z,l)};
dr=function(z){return kbu(z,[])};
mu1=function(z){return dr(function(){return{value:z}})};
_.oY=function(z,l){if(!z)return null;z=Object.keys(z);z=_.D(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var b=I.toLowerCase();if(b.indexOf(l,b.length-l.length)>-1)return I}return null};
_.hr=function(){var z=arguments,l=_.P8;z.length>1?l[z[0]]=z[1]:z.length===1&&Object.assign(l,z[0])};
_.sZ=function(z,l){return z in _.P8?_.P8[z]:l};
_.rr=function(z,l){return!!_.sZ(z,l)};
KYH=function(z){var l=_.P8.EXPERIMENT_FLAGS;return l?l[z]:void 0};
BCS=function(z){t_t.forEach(function(l){return l(z)})};
_.em=function(z){return z&&window.yterr?function(){try{return z.apply(this,arguments)}catch(l){_.$P(l)}}:z};
_.$P=function(z){var l=_.W8("yt.logging.errors.log");l?l(z,"ERROR",void 0,void 0,void 0,void 0,void 0):(l=_.sZ("ERRORS",[]),l.push([z,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.hr("ERRORS",l));BCS(z)};
_.nP=function(z,l,I,b,v){var M=_.W8("yt.logging.errors.log");M?M(z,"WARNING",l,I,b,void 0,v):(M=_.sZ("ERRORS",[]),M.push([z,"WARNING",l,I,b,void 0,v]),_.hr("ERRORS",M))};
qKY=function(z,l){l=z.split(l);for(var I={},b=0,v=l.length;b<v;b++){var M=l[b].split("=");if(M.length===1&&M[0]||M.length===2)try{var x=Xu$(M[0]||""),g=Xu$(M[1]||"");if(x in I){var G=I[x];Array.isArray(G)?_.AG(G,g):I[x]=[G,g]}else I[x]=g}catch(y){var u=y,Z=M[0],H=String(qKY);u.args=[{key:Z,value:M[1],query:z,method:iMH===H?"unchanged":H}];FY1.hasOwnProperty(Z)||_.nP(u)}}return I};
QmQ=function(z){var l=[];_.h7.forEach(z,function(I,b){var v=_.LP(b);I=Array.isArray(I)?I:[I];_.UZ(I,function(M){M==""?l.push(v):l.push(v+"="+_.LP(M))})});
return l.join("&")};
_.aY=function(z){z.charAt(0)==="?"&&(z=z.substring(1));return qKY(z,"&")};
_.V7=function(z){return z.indexOf("?")!==-1?(z=(z||"").split("#")[0],z=z.split("?",2),_.aY(z.length>1?z[1]:z[0])):{}};
_.jm=function(z,l){return YK$(z,l||{},!0)};
TCf=function(z,l){return YK$(z,l||{},!1)};
YK$=function(z,l,I){var b=z.split("#",2);z=b[0];b=b.length>1?"#"+b[1]:"";var v=z.split("?",2);z=v[0];v=_.aY(v[1]||"");for(var M in l)if(I||!_.h7.containsKey(v,M))v[M]=l[M];return _.Jr(z,v)+b};
bf=function(z){if(!l)var l=window.location.href;var I=_.zo(z)[1]||null,b=_.lf(z);return I&&b?I3(z,l):b?_.lf(l)===b&&(Number(_.zo(l)[4]||null)||null)===(Number(_.zo(z)[4]||null)||null):!0};
_.SK1=function(z){z=cH$(z);return z===null?!1:z[0]==="com"&&z[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
cH$=function(z){z=_.lf(z);return z!==null?z.split(".").reverse():null};
Xu$=function(z){return z&&z.match(duH)?z:vV(z)};
_.MB=function(z){return new oBf(z)};
_.pG=function(){PJQ||(PJQ=new hck);return PJQ};
rHG=function(){var z=smH;return function(){var l=_.pG();l.resolve(_.MB(z))||l.addProvider({provide:z,useClass:z});return l.resolve(z)}};
ec$=function(z){var l=_.DQ,I,b;_.O(function(v){I=_.pG();return(b=I.resolve(_.MB(l)))?(z(b),v.return(Promise.resolve(b))):v.return(I.resolve(new $ut(l)).then(function(M){z(M);return M}))})};
_.C=function(z){z=xs(z);return typeof z==="string"&&z==="false"?!1:!!z};
_.OI=function(z,l){z=xs(z);return z===void 0&&l!==void 0?l:Number(z||0)};
wuH=function(z){z=xs(z);return Array.isArray(z)?_.s7(z,function(l){return Number(l||0)}):[Number(z||0)]};
_.gk=function(z){z=xs(z);return z!==void 0?String(z):""};
_.Go=function(z){z=xs(z);return Array.isArray(z)?_.s7(z,function(l){return String(l||"")}):[String(z||"")]};
AHQ=function(){return _.sZ("EXPERIMENTS_TOKEN","")};
xs=function(z){return _.sZ("EXPERIMENT_FLAGS",{})[z]};
WYt=function(){for(var z=[],l=_.sZ("EXPERIMENTS_FORCED_FLAGS",{}),I=_.D(Object.keys(l)),b=I.next();!b.done;b=I.next())b=b.value,z.push({key:b,value:String(l[b])});I=_.sZ("EXPERIMENT_FLAGS",{});b=_.D(Object.keys(I));for(var v=b.next();!v.done;v=b.next())v=v.value,v.startsWith("force_")&&l[v]===void 0&&z.push({key:v,value:String(I[v])});return z};
LY5=function(){if(!nB1)return null;var z=nB1();return"open"in z?z:null};
_.Uut=function(z){switch(_.NB(z)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.NB=function(z){return z&&"status"in z?z.status:-1};
_.EI=function(z,l){typeof z==="function"&&(z=_.em(z));return window.setTimeout(z,l)};
_.ZQ=function(z,l){typeof z==="function"&&(z=_.em(z));return window.setInterval(z,l)};
_.HV=function(z){window.clearTimeout(z)};
V_5=function(z){z=_.V7(z);for(var l=_.D(aEY),I=l.next();!I.done;I=l.next())if(z[I.value]!==void 0)return!0;return!1};
zv5=function(z,l,I,b,v,M,x,g,G){I=I===void 0?"GET":I;b=b===void 0?"":b;g=g===void 0?!1:g;var u=LY5();if(!u)return null;var Z=function(){(u&&"readyState"in u?u.readyState:0)===4&&l&&_.em(l)(u)};
"onloadend"in u?u.addEventListener("loadend",Z,!1):u.onreadystatechange=Z;_.C("debug_forward_web_query_parameters")&&(z=jmt(z,window.location.search));u.open(I,z,!0);M&&(u.responseType=M);x&&(u.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(b instanceof FormData));if(v=JHf(z,v))for(var H in v)u.setRequestHeader(H,v[H]),"content-type"===H.toLowerCase()&&(I=!1);I&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded");G&&"onprogress"in u&&(u.onprogress=function(){G(u.responseText)});
if(g&&"setAttributionReporting"in XMLHttpRequest.prototype){z={eventSourceEligible:!0,triggerEligible:!1};try{u.setAttributionReporting(z)}catch(y){_.nP(y)}}u.send(b);return u};
JHf=function(z,l){l=l===void 0?{}:l;var I=bf(z),b=_.sZ("INNERTUBE_CLIENT_NAME"),v=_.C("web_ajax_ignore_global_headers_if_set"),M;for(M in lp5){var x=_.sZ(lp5[M]),g=M==="X-Goog-AuthUser"||M==="X-Goog-PageId";M!=="X-Goog-Visitor-Id"||x||(x=_.sZ("VISITOR_DATA"));var G;if(!(G=!x)){if(!(G=I||(_.lf(z)?!1:!0))){G=z;var u;if(u=_.C("add_auth_headers_to_remarketing_google_dot_com_ping")&&M==="Authorization"&&(b==="TVHTML5"||b==="TVHTML5_UNPLUGGED"||b==="TVHTML5_SIMPLY"))u=cH$(G),u=u===null?!1:u[1]==="google"?
!0:u[2]==="google"?u[0]==="au"&&u[1]==="com"?!0:u[0]==="uk"&&u[1]==="co"?!0:!1:!1;u&&(G=_.yI(G)||"",G=G.split("/"),G="/"+(G.length>1?G[1]:""),u=G==="/pagead");G=u?!0:!1}G=!G}G||v&&l[M]!==void 0||b==="TVHTML5_UNPLUGGED"&&g||(l[M]=x)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];if(I||!_.lf(z))l["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.lf(z)){try{var Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(H){}Z&&(l["X-YouTube-Time-Zone"]=
Z)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.lf(z)||(l["X-YouTube-Ad-Signals"]=QmQ(Ip1()));return l};
_.bcQ=function(z,l){var I=_.lf(z);_.C("debug_handle_relative_url_for_query_forward_killswitch")||!I&&bf(z)&&(I=document.location.hostname);var b=_.yI(z);b=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&b&&b.startsWith("/api/");if(!I||b)return z;var v=_.aY(l),M={};_.UZ(aEY,function(x){v[x]&&(M[x]=v[x])});
return TCf(z,M)};
vwQ=function(z,l){l.method="POST";l.postParams||(l.postParams={});return _.fG(z,l)};
MSQ=function(z,l){var I=_.sZ("XSRF_FIELD_NAME"),b;l.headers&&(b=l.headers["Content-Type"]);return!l.excludeXsrf&&(!_.lf(z)||l.withCredentials||_.lf(z)===document.location.hostname)&&l.method==="POST"&&(!b||b==="application/x-www-form-urlencoded")&&!(l.postParams&&l.postParams[I])};
_.fG=function(z,l){var I=l.format||"JSON";z=pg1(z,l);var b=DFH(z,l),v=!1,M=xFH(z,function(G){if(!v){v=!0;g&&_.HV(g);var u=_.Uut(G),Z=null,H=400<=G.status&&G.status<500,y=500<=G.status&&G.status<600;if(u||H||y)Z=Ock(z,I,G,l.convertToSafeHtml);u&&(u=gwx(I,G,Z));Z=Z||{};H=l.context||_.v7;u?l.onSuccess&&l.onSuccess.call(H,G,Z):l.onError&&l.onError.call(H,G,Z);l.onFinish&&l.onFinish.call(H,G,Z)}},l.method,b,l.headers,l.responseType,l.withCredentials,!1,l.onProgress);
b=l.timeout||0;if(l.onTimeout&&b>0){var x=l.onTimeout;var g=_.EI(function(){v||(v=!0,M.abort(),_.HV(g),x.call(l.context||_.v7,M))},b)}return M};
pg1=function(z,l){l.includeDomain&&(z=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+z);var I=_.sZ("XSRF_FIELD_NAME");if(l=l.urlParams)l[I]&&delete l[I],z=_.jm(z,l);return z};
DFH=function(z,l){var I=_.sZ("XSRF_FIELD_NAME"),b=_.sZ("XSRF_TOKEN"),v=l.postBody||"",M=l.postParams;MSQ(z,l)&&(M||(M={}),M[I]=b);(_.C("ajax_parse_query_data_only_when_filled")&&M&&Object.keys(M).length>0||M)&&typeof v==="string"&&(v=_.aY(v),_.h7.extend(v,M),v=l.postBodyFormat&&l.postBodyFormat==="JSON"?JSON.stringify(v):_.CG(v));M=v||M&&!_.h7.isEmpty(M);!GZH&&M&&l.method!=="POST"&&(GZH=!0,_.$P(Error("Kc")));return v};
Ock=function(z,l,I,b){var v=null;switch(l){case "JSON":try{var M=I.responseText}catch(x){throw b=Error("Lc"),b.params=z,_.nP(b),x;}z=I.getResponseHeader("Content-Type")||"";M&&z.indexOf("json")>=0&&(M.substring(0,5)===")]}'\n"&&(M=M.substring(5)),v=JSON.parse(M));break;case "XML":if(z=(z=I.responseXML)?NgY(z):null)v={},_.UZ(z.getElementsByTagName("*"),function(x){v[x.tagName]=Ewk(x)})}b&&usQ(v);
return v};
usQ=function(z){if(_.Lu(z))for(var l in z)l==="html_content"||x5(l,"_html")?z[l]=au(z[l]):usQ(z[l])};
gwx=function(z,l,I){if(l&&l.status===204)return!0;switch(z){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}};
NgY=function(z){return z?(z=("responseXML"in z?z.responseXML:z).getElementsByTagName("root"))&&z.length>0?z[0]:null:null};
Ewk=function(z){var l="";_.UZ(z.childNodes,function(I){l+=I.nodeValue});
return l};
Zcf=function(z){if(z.name==="JavaException")return!0;z=z.stack;return z.includes("chrome://")||z.includes("-extension://")||z.includes("webkit-masked-url://")};
Hcu=function(z){if(!z.stack)return!0;var l=!z.stack.includes("\n");return l&&z.stack.includes("ErrorType: ")||l&&z.stack.includes("Anonymous function (Unknown script")||z.stack.toLowerCase()==="not available"||z.fileName==="user-script"||z.fileName.startsWith("user-script:")?!0:!1};
_.ks=function(z){_.Q9.call(this);this.JSC$10522_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!z};
fpG=function(z,l){var I=z.length,b=0,v=function(){return z.charCodeAt(b++)};
do{var M=ymp(v);if(M===Infinity)break;var x=M>>3;switch(M&7){case 0:M=ymp(v);if(x===l)return M;break;case 1:if(x===l)return;b+=8;break;case 2:M=ymp(v);if(x===l)return z.substr(b,M);b+=M;break;case 5:if(x===l)return;b+=4;break;default:return}}while(b<I)};
ymp=function(z){var l=z(),I=l&127;if(l<128)return I;l=z();I|=(l&127)<<7;if(l<128)return I;l=z();I|=(l&127)<<14;if(l<128)return I;l=z();return l<128?I|(l&127)<<21:Infinity};
kZ$=function(z,l,I,b){if(z)if(Array.isArray(z)){var v=b;for(b=0;b<z.length&&!(z[b]&&(v+=Cik(b,z[b],l,I),v>500));b++);b=v}else if(typeof z==="object")for(v in z){if(z[v]){var M=v;var x=z[v],g=l,G=I;M=typeof x!=="string"||M!=="clickTrackingParams"&&M!=="trackingParams"?0:(x=fpG(atob(x.replace(/-/g,"+").replace(/_/g,"/")),2))?Cik(M+".ve",x,g,G):0;b+=M;b+=Cik(v,z[v],l,I);if(b>500)break}}else I[l]=R3(z),b+=I[l].length;else I[l]=R3(z),b+=I[l].length;return b};
Cik=function(z,l,I,b){I+="."+z;z=R3(l);b[I]=z;return I.length+z.length};
R3=function(z){try{return(typeof z==="string"?z:String(JSON.stringify(z))).substr(0,500)}catch(l){return"unable to serialize "+typeof z+" ("+l.message+")"}};
Rv7=function(z){switch(z){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}};
_.KG=function(z,l,I,b,v){_.mZ.set(z,l,{maxAge:I,path:"/",domain:b===void 0?"youtube.com":b,secure:v===void 0?!1:v})};
_.mFf=function(z,l,I){_.mZ.remove(z,l===void 0?"/":l,I===void 0?"youtube.com":I)};
_.tE=function(){if(_.C("embeds_web_enable_cookie_detection_fix")){if(!_.v7.navigator.cookieEnabled)return!1}else if(!_.mZ.isEnabled())return!1;if(!_.mZ.isEmpty())return!0;_.C("embeds_web_enable_cookie_detection_fix")?_.mZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.mZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.mZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.mZ.remove("TESTCOOKIESENABLED");return!0};
KMY=function(){var z=_.v7.navigator;return z?z.connection:void 0};
tS5=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(z){}};
_.Xgt=function(){var z=KMY();if(z){var l=Bgf[z.type||"unknown"]||"CONN_UNKNOWN";z=Bgf[z.effectiveType||"unknown"]||"CONN_UNKNOWN";l==="CONN_CELLULAR_UNKNOWN"&&z!=="CONN_UNKNOWN"&&(l=z);if(l!=="CONN_UNKNOWN")return l;if(z!=="CONN_UNKNOWN")return z}};
icf=function(){var z=KMY();if(z!=null&&z.effectiveType)return qp1.hasOwnProperty(z.effectiveType)?qp1[z.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Xm=function(){try{return _.BV(),!0}catch(z){return!1}};
_.BV=function(z){if(_.sZ("DATASYNC_ID")!==void 0)return _.sZ("DATASYNC_ID");throw new _.qB("Datasync ID not set",z===void 0?"unknown":z);};
_.Fm=function(z){this.mechanism=z};
QI=function(z){this.mechanism=z};
Ys=function(z){this.storage_=z;this.cachedIsStorageAvailable_=null};
FMY=function(){var z=null;try{z=_.v7.localStorage||null}catch(l){}Ys.call(this,z)};
QhY=function(){var z=null;try{z=_.v7.sessionStorage||null}catch(l){}Ys.call(this,z)};
To=function(z,l){this.mechanism_=z;this.JSC$10624_prefix_=l+"::"};
_.YpY=function(z){var l=new FMY;return l.isAvailable()?z?new To(l,z):l:null};
_.TgG=function(z){var l=new QhY;return l.isAvailable()?z?new To(l,z):l:null};
Sp$=function(){var z;return(z=cmk())==null?void 0:z.get("LAST_RESULT_ENTRY_KEY",!0)};
_.dk=function(z){dF$||(_.cV?_.cV.logError(z):(_.Sc.push({type:"ERROR",payload:z}),_.Sc.length>10&&_.Sc.shift()))};
o3=function(z,l){dF$||(_.cV?_.cV.logEvent(z,l):(_.Sc.push({type:"EVENT",eventType:z,payload:l}),_.Sc.length>10&&_.Sc.shift()))};
PV=function(z){if(z.indexOf(":")>=0)throw Error("Sc");};
hE=function(z){return z.substr(0,z.indexOf(":"))||z};
hvf=function(){return(ow$||PiS)&&sI("applewebkit")&&!sI("version")&&(!sI("safari")||sI("gsa/"))};
sI=function(z){var l=_.Cu();return l?l.toLowerCase().indexOf(z)>=0:!1};
$F5=function(z,l,I,b){l=hE(l);var v=z instanceof Error?z:Error("Tc`"+z);if(v instanceof $s)return v;z={objectStoreNames:I,dbName:l,dbVersion:b};if(v.name==="QuotaExceededError")return new $s("QUOTA_EXCEEDED",z);if(_.ec&&v.name==="UnknownError")return new $s("QUOTA_MAYBE_EXCEEDED",z);if(v instanceof sh7)return new $s("MISSING_INDEX",Object.assign({},z,{objectStore:v.objectStore,index:v.index}));if(v.name==="InvalidStateError"&&rmQ.some(function(M){return v.message.includes(M)}))return new $s("EXECUTE_TRANSACTION_ON_CLOSED_DB",
z);
if(v.name==="AbortError")return new $s("UNKNOWN_ABORT",z,v.message);v.args=[Object.assign({},z,{name:"IdbError",originalName:v.name})];v.level="WARNING";return v};
wk=function(z,l,I){var b=Sp$();return new $s("IDB_NOT_SUPPORTED",{context:{caller:z,publicName:l,version:I,hasSucceededOnce:b==null?void 0:b.hasSucceededOnce}})};
evu=function(z){if(!z)throw Error();throw z;};
wgQ=function(z){return z};
Amu=function(z,l,I){var b=function(){try{z.removeEventListener("success",v),z.removeEventListener("error",M)}catch(x){}},v=function(){l(z.result);
b()},M=function(){I(z.error);
b()};
z.addEventListener("success",v);z.addEventListener("error",M)};
WM7=function(z){return new Promise(function(l,I){Amu(z,l,I)})};
nG=function(z){return new AE(new WV(function(l,I){Amu(z,l,I)}))};
nwf=function(z,l){return new AE(new WV(function(I,b){var v=function(){var M=z?l(z):null;M?M.then(function(x){z=x;v()},b):I()};
v()}))};
LMY=function(z,l,I){return new Promise(function(b,v){var M=l!==void 0?self.indexedDB.open(z,l):self.indexedDB.open(z);var x=I.blocked,g=I.blocking,G=I.terminated,u=I.upgrade,Z=I.closed,H,y=function(){H||(H=new LG(M.result,{closed:Z}));return H};
M.addEventListener("upgradeneeded",function(f){try{if(f.newVersion===null)throw Error("Yc");if(M.transaction===null)throw Error("Zc");f.dataLoss&&f.dataLoss!=="none"&&o3("IDB_DATA_CORRUPTED",{reason:f.dataLossMessage||"unknown reason",dbName:hE(z)});var R=y(),F=new UI(M.transaction);u&&u(R,function(Y){return f.oldVersion<Y&&f.newVersion>=Y},F);
F.done.catch(function(Y){v(Y)})}catch(Y){v(Y)}});
M.addEventListener("success",function(){var f=M.result;g&&f.addEventListener("versionchange",function(){g(y())});
f.addEventListener("close",function(){o3("IDB_UNEXPECTEDLY_CLOSED",{dbName:hE(z),dbVersion:f.version});G&&G()});
b(y())});
M.addEventListener("error",function(){v(M.error)});
x&&M.addEventListener("blocked",function(){x()})})};
UFt=function(z,l,I){I=I===void 0?{}:I;return LMY(z,l,I)};
_.VI=function(z,l){l=l===void 0?{}:l;var I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return _.RL(x,2),I=self.indexedDB.deleteDatabase(z),b=l,(v=b.blocked)&&I.addEventListener("blocked",function(){v()}),x.yield(WM7(I),4);
if(x.nextAddress!=2)return _.a3(x,0);M=_.XP(x);throw $F5(M,z,"",-1);})};
VSt=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1)return b.yield(_.jc(apH,l),2);I=b.yieldResult;return b.return(_.JE(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(v){var M=v.objectStore("databases");return M.get(z.actualName).then(function(x){if(x?z.actualName!==x.actualName||z.publicName!==x.publicName||z.userIdentifier!==x.userIdentifier:1)return M.put(z).then(function(){})})}))})};
_.z6=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1)return z?b.yield(_.jc(apH,l),2):b.return();I=b.yieldResult;return b.return(I.delete("databases",z))})};
_.jhQ=function(z,l){var I,b;return _.O(function(v){return v.nextAddress==1?(I=[],v.yield(_.jc(apH,l),2)):v.nextAddress!=3?(b=v.yieldResult,v.yield(_.JE(b,["databases"],{enableRetries:!0,mode:"readonly"},function(M){I.length=0;return lR(M.objectStore("databases"),{},function(x){z(x.getValue())&&I.push(x.getValue());return x.continue()})}),3)):v.return(I)})};
JmH=function(z,l){return _.jhQ(function(I){return I.publicName===z&&I.userIdentifier!==void 0},l)};
Ik5=function(){var z,l,I,b;return _.O(function(v){switch(v.nextAddress){case 1:z=Sp$();if((l=z)==null?0:l.hasSucceededOnce)return v.return(!0);var M;if(M=zWS)M=/WebKit\/([0-9]+)/.exec(_.Cu()),M=!!(M&&parseInt(M[1],10)>=600);M&&(M=/WebKit\/([0-9]+)/.exec(_.Cu()),M=!(M&&parseInt(M[1],10)>=602));if(M||Iw)return v.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return v.return(!1)}catch(x){return v.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return v.return(!1);
_.RL(v,2);b={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return v.yield(VSt(b,lk5),4);case 4:return v.yield(_.z6("yt-idb-test-do-not-use",lk5),5);case 5:return v.return(!0);case 2:return _.XP(v),v.return(!1)}})};
vWS=function(){if(brQ!==void 0)return brQ;dF$=!0;return brQ=Ik5().then(function(z){dF$=!1;var l;if((l=cmk())!=null&&l.expiringStorage_){var I;l={hasSucceededOnce:((I=Sp$())==null?void 0:I.hasSucceededOnce)||z};var b;(b=cmk())==null||b.set("LAST_RESULT_ENTRY_KEY",l,2592E3,!0)}return z})};
bR=function(){return _.W8("ytglobal.idbToken_")||void 0};
_.MW=function(){var z=bR();return z?Promise.resolve(z):vWS().then(function(l){(l=l?lk5:void 0)&&_.vd("ytglobal.idbToken_",l);return l})};
Mbx=function(z){if(!_.Xm())throw z=new $s("AUTH_INVALID",{dbName:z}),_.dk(z),z;var l=_.BV();return{actualName:z+":"+l,publicName:z,userIdentifier:l}};
pFG=function(z,l,I,b){var v,M,x,g,G,u;return _.O(function(Z){switch(Z.nextAddress){case 1:return M=(v=Error().stack)!=null?v:"",Z.yield(_.MW(),2);case 2:x=Z.yieldResult;if(!x)throw g=wk("openDbImpl",z,l),_.C("ytidb_async_stack_killswitch")||(g.stack=g.stack+"\n"+M.substring(M.indexOf("\n")+1)),_.dk(g),g;PV(z);G=I?{actualName:z,publicName:z,userIdentifier:void 0}:Mbx(z);_.RL(Z,3);return Z.yield(VSt(G,x),5);case 5:return Z.yield(UFt(G.actualName,l,b),6);case 6:return Z.return(Z.yieldResult);case 3:return u=
_.XP(Z),_.RL(Z,7),Z.yield(_.z6(G.actualName,x),9);case 9:_.a3(Z,8);break;case 7:_.XP(Z);case 8:throw u;}})};
Do5=function(z,l,I){I=I===void 0?{}:I;return pFG(z,l,!1,I)};
xoQ=function(z,l,I){I=I===void 0?{}:I;return pFG(z,l,!0,I)};
OrH=function(z,l){l=l===void 0?{}:l;var I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(_.MW(),2);if(v.nextAddress!=3){I=v.yieldResult;if(!I)return v.return();PV(z);b=Mbx(z);return v.yield(_.VI(b.actualName,l),3)}return v.yield(_.z6(b.actualName,I),0)})};
gWu=function(z,l,I){z=z.map(function(b){return _.O(function(v){return v.nextAddress==1?v.yield(_.VI(b.actualName,l),2):v.yield(_.z6(b.actualName,I),0)})});
return Promise.all(z).then(function(){})};
GNt=function(z){var l=l===void 0?{}:l;var I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(_.MW(),2);if(v.nextAddress!=3){I=v.yieldResult;if(!I)return v.return();PV(z);return v.yield(JmH(z,I),3)}b=v.yieldResult;return v.yield(gWu(b,l,I),0)})};
NDQ=function(z,l){l=l===void 0?{}:l;var I;return _.O(function(b){if(b.nextAddress==1)return b.yield(_.MW(),2);if(b.nextAddress!=3){I=b.yieldResult;if(!I)return b.return();PV(z);return b.yield(_.VI(z,l),3)}return b.yield(_.z6(z,I),0)})};
pp=function(z,l){return EW7(z,l)};
ZrQ=function(z){return _.jc(uNk(),z)};
Hr$=function(z,l,I,b){var v,M,x;return _.O(function(g){switch(g.nextAddress){case 1:return v={config:z,hashData:l,timestamp:b!==void 0?b:(0,_.Dr)()},g.yield(ZrQ(I),2);case 2:return M=g.yieldResult,g.yield(M.clear("hotConfigStore"),3);case 3:return g.yield(M.put("hotConfigStore",v),4);case 4:return x=g.yieldResult,g.return(x)}})};
yYS=function(z,l,I,b,v){var M,x,g;return _.O(function(G){switch(G.nextAddress){case 1:return M={config:z,hashData:l,configData:I,timestamp:v!==void 0?v:(0,_.Dr)()},G.yield(ZrQ(b),2);case 2:return x=G.yieldResult,G.yield(x.clear("coldConfigStore"),3);case 3:return G.yield(x.put("coldConfigStore",M),4);case 4:return g=G.yieldResult,G.return(g)}})};
fkY=function(z){var l,I;return _.O(function(b){return b.nextAddress==1?b.yield(ZrQ(z),2):b.nextAddress!=3?(l=b.yieldResult,I=void 0,b.yield(_.JE(l,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(v){return _.x8(v.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(M){I=M.getValue()})}),3)):b.return(I)})};
Cct=function(z){var l,I;return _.O(function(b){return b.nextAddress==1?b.yield(ZrQ(z),2):b.nextAddress!=3?(l=b.yieldResult,I=void 0,b.yield(_.JE(l,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(v){return _.x8(v.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(M){I=M.getValue()})}),3)):b.return(I)})};
kN$=function(){return _.O(function(z){return z.yield(GNt("ytGcfConfig"),0)})};
RWf=function(){return"INNERTUBE_API_KEY"in _.P8&&"INNERTUBE_API_VERSION"in _.P8};
_.O5=function(){return{innertubeApiKey:_.sZ("INNERTUBE_API_KEY"),innertubeApiVersion:_.sZ("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.sZ("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.sZ("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.sZ("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.sZ("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.sZ("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.rr("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.rr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.sZ("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.irx=function(z){var l={client:{hl:z.innertubeContextHostLanguage,gl:z.innertubeContextGeoLocation,clientName:z.innertubeContextClientName,clientVersion:z.innertubeContextClientVersion,configInfo:z.innertubeContextClientConfigInfo}};navigator.userAgent&&(l.client.userAgent=String(navigator.userAgent));var I=_.v7.devicePixelRatio;I&&I!=1&&(l.client.screenDensityFloat=String(I));I=AHQ();I!==""&&(l.client.experimentsToken=I);I=WYt();I.length>0&&(l.request={internalExperimentFlags:I});mo1(z,void 0,l);
Ka5(void 0,l);tb7(void 0,l);BD$(z,void 0,l);XFu(void 0,l);_.C("start_client_gcf")&&qrY(void 0,l);_.sZ("DELEGATED_SESSION_ID")&&!_.C("pageid_as_header_web")&&(l.user={onBehalfOfUser:_.sZ("DELEGATED_SESSION_ID")});!_.C("fill_delegate_context_in_gel_killswitch")&&(z=_.sZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l.user=Object.assign({},l.user,{serializedDelegationContext:z}));z=_.sZ("INNERTUBE_CONTEXT");var b;if(_.C("enable_persistent_device_token")&&(z==null?0:(b=z.client)==null?0:b.rolloutToken)){var v;
l.client.rolloutToken=z==null?void 0:(v=z.client)==null?void 0:v.rolloutToken}b=Object;v=b.assign;z=l.client;I={};for(var M=_.D(Object.entries(_.aY(_.sZ("DEVICE","")))),x=M.next();!x.done;x=M.next()){var g=_.D(x.value);x=g.next().value;g=g.next().value;x==="cbrand"?I.deviceMake=g:x==="cmodel"?I.deviceModel=g:x==="cbr"?I.browserName=g:x==="cbrver"?I.browserVersion=g:x==="cos"?I.osName=g:x==="cosver"?I.osVersion=g:x==="cplatform"&&(I.platform=g)}l.client=v.call(b,z,I);return l};
mo1=function(z,l,I){z=z.innertubeContextClientName;if(z==="WEB"||z==="MWEB"||z===1||z===2)if(l){I=_.gi(l,FaQ,96)||new FaQ;var b=QDQ();b=Object.keys(Yrf).indexOf(b);b=b===-1?null:b;b!==null&&_.G6(I,3,b);_.tT(l,96,I)}else I&&(I.client.mainAppWebInfo=(b=I.client.mainAppWebInfo)!=null?b:{},I.client.mainAppWebInfo.webDisplayMode=QDQ())};
Ka5=function(z,l){var I=_.W8("yt.embedded_player.embed_url");I&&(z?(l=_.gi(z,TDS,7)||new TDS,_.Th(l,4,I),_.tT(z,7,l)):l&&(l.thirdParty={embedUrl:I}))};
tb7=function(z,l){var I;if(_.C("web_log_memory_total_kbytes")&&((I=_.v7.navigator)==null?0:I.deviceMemory)){var b;I=(b=_.v7.navigator)==null?void 0:b.deviceMemory;z?_.NW(z,95,g4(I*1E6)):l&&(l.client.memoryTotalKbytes=""+I*1E6)}};
BD$=function(z,l,I){if(z.appInstallData)if(l){var b;I=(b=_.gi(l,E5,62))!=null?b:new E5;_.Th(I,6,z.appInstallData);_.tT(l,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=z.appInstallData)};
XFu=function(z,l){var I=_.Xgt();I&&(z?_.G6(z,61,cYp[I]):l&&(l.client.connectionType=I));_.C("web_log_effective_connection_type")&&(I=icf())&&(z?_.G6(z,94,SrQ[I]):l&&(l.client.effectiveConnectionType=I))};
_.Pcf=function(z,l,I){I=I===void 0?{}:I;var b={};_.sZ("EOM_VISITOR_DATA")?b={"X-Goog-EOM-Visitor-Id":_.sZ("EOM_VISITOR_DATA")}:b={"X-Goog-Visitor-Id":I.visitorData||_.sZ("VISITOR_DATA","")};if(l&&l.includes("www.youtube-nocookie.com"))return b;l=I.authorization||_.sZ("AUTHORIZATION");l||(z?l="Bearer "+_.W8("gapi.auth.getToken")().access_token:(dok.instance||(dok.instance=new dok),z=oW5(),_.C("pageid_as_header_web")||delete z["X-Goog-PageId"],b=Object.assign({},b,z)));l&&(b.Authorization=l);return b};
qrY=function(z,l){var I=hWk();if(I){var b=I.coldConfigData,v=I.coldHashData;I=I.hotHashData;if(z){var M;l=(M=_.gi(z,E5,62))!=null?M:new E5;b=_.Th(l,1,b);_.Th(b,3,v).setHotHashData(I);_.tT(z,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},b&&(l.client.configInfo.coldConfigData=b),v&&(l.client.configInfo.coldHashData=v),I&&(l.client.configInfo.hotHashData=I))}};
uR=function(z){for(var l=z.length;--l>=0;)z[l]=0};
sDG=function(z,l,I,b,v){this.static_tree=z;this.extra_bits=l;this.extra_base=I;this.elems=b;this.max_length=v;this.has_stree=z&&z.length};
rYf=function(z,l){this.dyn_tree=z;this.max_code=0;this.stat_desc=l};
Zr=function(z,l){z.pending_buf[z.pending++]=l&255;z.pending_buf[z.pending++]=l>>>8&255};
Hd=function(z,l,I){z.bi_valid>16-I?(z.bi_buf|=l<<z.bi_valid&65535,Zr(z,z.bi_buf),z.bi_buf=l>>16-z.bi_valid,z.bi_valid+=I-16):(z.bi_buf|=l<<z.bi_valid&65535,z.bi_valid+=I)};
y1=function(z,l,I){Hd(z,I[l*2],I[l*2+1])};
$ou=function(z,l){var I=0;do I|=z&1,z>>>=1,I<<=1;while(--l>0);return I>>>1};
eWY=function(z,l,I){var b=Array(16),v=0,M;for(M=1;M<=15;M++)b[M]=v=v+I[M-1]<<1;for(I=0;I<=l;I++)v=z[I*2+1],v!==0&&(z[I*2]=$ou(b[v]++,v))};
wF7=function(z){var l;for(l=0;l<286;l++)z.dyn_ltree[l*2]=0;for(l=0;l<30;l++)z.dyn_dtree[l*2]=0;for(l=0;l<19;l++)z.bl_tree[l*2]=0;z.dyn_ltree[512]=1;z.opt_len=z.static_len=0;z.last_lit=z.matches=0};
AYH=function(z){z.bi_valid>8?Zr(z,z.bi_buf):z.bi_valid>0&&(z.pending_buf[z.pending++]=z.bi_buf);z.bi_buf=0;z.bi_valid=0};
WaY=function(z,l,I){AYH(z);Zr(z,I);Zr(z,~I);fp.arraySet(z.pending_buf,z.window,l,I,z.pending);z.pending+=I};
nW5=function(z,l,I,b){var v=l*2,M=I*2;return z[v]<z[M]||z[v]===z[M]&&b[l]<=b[I]};
LaH=function(z,l,I){for(var b=z.heap[I],v=I<<1;v<=z.heap_len;){v<z.heap_len&&nW5(l,z.heap[v+1],z.heap[v],z.depth)&&v++;if(nW5(l,b,z.heap[v],z.depth))break;z.heap[I]=z.heap[v];I=v;v<<=1}z.heap[I]=b};
JYk=function(z,l,I){var b=0;if(z.last_lit!==0){do{var v=z.pending_buf[z.d_buf+b*2]<<8|z.pending_buf[z.d_buf+b*2+1];var M=z.pending_buf[z.l_buf+b];b++;if(v===0)y1(z,M,l);else{var x=Cp[M];y1(z,x+256+1,l);var g=Uop[x];g!==0&&(M-=akf[x],Hd(z,M,g));v--;x=v<256?k8[v]:k8[256+(v>>>7)];y1(z,x,I);g=Vbt[x];g!==0&&(v-=jD5[x],Hd(z,v,g))}}while(b<z.last_lit)}y1(z,256,l)};
zHG=function(z,l){var I=l.dyn_tree,b=l.stat_desc.static_tree,v=l.stat_desc.has_stree,M=l.stat_desc.elems,x,g=-1;z.heap_len=0;z.heap_max=573;for(x=0;x<M;x++)I[x*2]!==0?(z.heap[++z.heap_len]=g=x,z.depth[x]=0):I[x*2+1]=0;for(;z.heap_len<2;){var G=z.heap[++z.heap_len]=g<2?++g:0;I[G*2]=1;z.depth[G]=0;z.opt_len--;v&&(z.static_len-=b[G*2+1])}l.max_code=g;for(x=z.heap_len>>1;x>=1;x--)LaH(z,I,x);G=M;do x=z.heap[1],z.heap[1]=z.heap[z.heap_len--],LaH(z,I,1),b=z.heap[1],z.heap[--z.heap_max]=x,z.heap[--z.heap_max]=
b,I[G*2]=I[x*2]+I[b*2],z.depth[G]=(z.depth[x]>=z.depth[b]?z.depth[x]:z.depth[b])+1,I[x*2+1]=I[b*2+1]=G,z.heap[1]=G++,LaH(z,I,1);while(z.heap_len>=2);z.heap[--z.heap_max]=z.heap[1];x=l.dyn_tree;G=l.max_code;b=l.stat_desc.static_tree;v=l.stat_desc.has_stree;M=l.stat_desc.extra_bits;var u=l.stat_desc.extra_base,Z=l.stat_desc.max_length,H,y=0;for(H=0;H<=15;H++)z.bl_count[H]=0;x[z.heap[z.heap_max]*2+1]=0;for(l=z.heap_max+1;l<573;l++){var f=z.heap[l];H=x[x[f*2+1]*2+1]+1;H>Z&&(H=Z,y++);x[f*2+1]=H;if(!(f>
G)){z.bl_count[H]++;var R=0;f>=u&&(R=M[f-u]);var F=x[f*2];z.opt_len+=F*(H+R);v&&(z.static_len+=F*(b[f*2+1]+R))}}if(y!==0){do{for(H=Z-1;z.bl_count[H]===0;)H--;z.bl_count[H]--;z.bl_count[H+1]+=2;z.bl_count[Z]--;y-=2}while(y>0);for(H=Z;H!==0;H--)for(f=z.bl_count[H];f!==0;)b=z.heap[--l],b>G||(x[b*2+1]!==H&&(z.opt_len+=(H-x[b*2+1])*x[b*2],x[b*2+1]=H),f--)}eWY(I,g,z.bl_count)};
lP1=function(z,l,I){var b,v=-1,M=l[1],x=0,g=7,G=4;M===0&&(g=138,G=3);l[(I+1)*2+1]=65535;for(b=0;b<=I;b++){var u=M;M=l[(b+1)*2+1];++x<g&&u===M||(x<G?z.bl_tree[u*2]+=x:u!==0?(u!==v&&z.bl_tree[u*2]++,z.bl_tree[32]++):x<=10?z.bl_tree[34]++:z.bl_tree[36]++,x=0,v=u,M===0?(g=138,G=3):u===M?(g=6,G=3):(g=7,G=4))}};
IP5=function(z,l,I){var b,v=-1,M=l[1],x=0,g=7,G=4;M===0&&(g=138,G=3);for(b=0;b<=I;b++){var u=M;M=l[(b+1)*2+1];if(!(++x<g&&u===M)){if(x<G){do y1(z,u,z.bl_tree);while(--x!==0)}else u!==0?(u!==v&&(y1(z,u,z.bl_tree),x--),y1(z,16,z.bl_tree),Hd(z,x-3,2)):x<=10?(y1(z,17,z.bl_tree),Hd(z,x-3,3)):(y1(z,18,z.bl_tree),Hd(z,x-11,7));x=0;v=u;M===0?(g=138,G=3):u===M?(g=6,G=3):(g=7,G=4)}}};
bJ$=function(z){var l=4093624447,I;for(I=0;I<=31;I++,l>>>=1)if(l&1&&z.dyn_ltree[I*2]!==0)return 0;if(z.dyn_ltree[18]!==0||z.dyn_ltree[20]!==0||z.dyn_ltree[26]!==0)return 1;for(I=32;I<256;I++)if(z.dyn_ltree[I*2]!==0)return 1;return 0};
Rw=function(z,l,I){z.pending_buf[z.d_buf+z.last_lit*2]=l>>>8&255;z.pending_buf[z.d_buf+z.last_lit*2+1]=l&255;z.pending_buf[z.l_buf+z.last_lit]=I&255;z.last_lit++;l===0?z.dyn_ltree[I*2]++:(z.matches++,l--,z.dyn_ltree[(Cp[I]+256+1)*2]++,z.dyn_dtree[(l<256?k8[l]:k8[256+(l>>>7)])*2]++);return z.last_lit===z.lit_bufsize-1};
Kp=function(z,l){z.msg=m5[l];return l};
tW=function(z){for(var l=z.length;--l>=0;)z[l]=0};
Bd=function(z){var l=z.state,I=l.pending;I>z.avail_out&&(I=z.avail_out);I!==0&&(fp.arraySet(z.output,l.pending_buf,l.pending_out,I,z.next_out),z.next_out+=I,l.pending_out+=I,z.total_out+=I,z.avail_out-=I,l.pending-=I,l.pending===0&&(l.pending_out=0))};
iR=function(z,l){var I=z.block_start>=0?z.block_start:-1,b=z.strstart-z.block_start,v=0;if(z.level>0){z.strm.data_type===2&&(z.strm.data_type=bJ$(z));zHG(z,z.l_desc);zHG(z,z.d_desc);lP1(z,z.dyn_ltree,z.l_desc.max_code);lP1(z,z.dyn_dtree,z.d_desc.max_code);zHG(z,z.bl_desc);for(v=18;v>=3&&z.bl_tree[vEt[v]*2+1]===0;v--);z.opt_len+=3*(v+1)+5+5+4;var M=z.opt_len+3+7>>>3;var x=z.static_len+3+7>>>3;x<=M&&(M=x)}else M=x=b+5;if(b+4<=M&&I!==-1)Hd(z,l?1:0,3),WaY(z,I,b);else if(z.strategy===4||x===M)Hd(z,2+(l?
1:0),3),JYk(z,Xh,qW);else{Hd(z,4+(l?1:0),3);I=z.l_desc.max_code+1;b=z.d_desc.max_code+1;v+=1;Hd(z,I-257,5);Hd(z,b-1,5);Hd(z,v-4,4);for(M=0;M<v;M++)Hd(z,z.bl_tree[vEt[M]*2+1],3);IP5(z,z.dyn_ltree,I-1);IP5(z,z.dyn_dtree,b-1);JYk(z,z.dyn_ltree,z.dyn_dtree)}wF7(z);l&&AYH(z);z.block_start=z.strstart;Bd(z.strm)};
Fh=function(z,l){z.pending_buf[z.pending++]=l};
Q1=function(z,l){z.pending_buf[z.pending++]=l>>>8&255;z.pending_buf[z.pending++]=l&255};
MgQ=function(z,l){var I=z.max_chain_length,b=z.strstart,v=z.prev_length,M=z.nice_match,x=z.strstart>z.w_size-262?z.strstart-(z.w_size-262):0,g=z.window,G=z.w_mask,u=z.prev,Z=z.strstart+258,H=g[b+v-1],y=g[b+v];z.prev_length>=z.good_match&&(I>>=2);M>z.lookahead&&(M=z.lookahead);do{var f=l;if(g[f+v]===y&&g[f+v-1]===H&&g[f]===g[b]&&g[++f]===g[b+1]){b+=2;for(f++;g[++b]===g[++f]&&g[++b]===g[++f]&&g[++b]===g[++f]&&g[++b]===g[++f]&&g[++b]===g[++f]&&g[++b]===g[++f]&&g[++b]===g[++f]&&g[++b]===g[++f]&&b<Z;);
f=258-(Z-b);b=Z-258;if(f>v){z.match_start=l;v=f;if(f>=M)break;H=g[b+v-1];y=g[b+v]}}}while((l=u[l&G])>x&&--I!==0);return v<=z.lookahead?v:z.lookahead};
T6=function(z){var l=z.w_size,I;do{var b=z.window_size-z.lookahead-z.strstart;if(z.strstart>=l+(l-262)){fp.arraySet(z.window,z.window,l,l,0);z.match_start-=l;z.strstart-=l;z.block_start-=l;var v=I=z.hash_size;do{var M=z.head[--v];z.head[v]=M>=l?M-l:0}while(--I);v=I=l;do M=z.prev[--v],z.prev[v]=M>=l?M-l:0;while(--I);b+=l}if(z.strm.avail_in===0)break;v=z.strm;I=z.window;M=z.strstart+z.lookahead;var x=v.avail_in;x>b&&(x=b);x===0?I=0:(v.avail_in-=x,fp.arraySet(I,v.input,v.next_in,x,M),v.state.wrap===
1?v.adler=pyu(v.adler,I,x,M):v.state.wrap===2&&(v.adler=Y8(v.adler,I,x,M)),v.next_in+=x,v.total_in+=x,I=x);z.lookahead+=I;if(z.lookahead+z.insert>=3)for(b=z.strstart-z.insert,z.ins_h=z.window[b],z.ins_h=(z.ins_h<<z.hash_shift^z.window[b+1])&z.hash_mask;z.insert&&!(z.ins_h=(z.ins_h<<z.hash_shift^z.window[b+3-1])&z.hash_mask,z.prev[b&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=b,b++,z.insert--,z.lookahead+z.insert<3););}while(z.lookahead<262&&z.strm.avail_in!==0)};
DX5=function(z,l){for(var I;;){if(z.lookahead<262){T6(z);if(z.lookahead<262&&l===0)return 1;if(z.lookahead===0)break}I=0;z.lookahead>=3&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+3-1])&z.hash_mask,I=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart);I!==0&&z.strstart-I<=z.w_size-262&&(z.match_length=MgQ(z,I));if(z.match_length>=3)if(I=Rw(z,z.strstart-z.match_start,z.match_length-3),z.lookahead-=z.match_length,z.match_length<=z.max_lazy_match&&z.lookahead>=3){z.match_length--;
do z.strstart++,z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+3-1])&z.hash_mask,z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart;while(--z.match_length!==0);z.strstart++}else z.strstart+=z.match_length,z.match_length=0,z.ins_h=z.window[z.strstart],z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+1])&z.hash_mask;else I=Rw(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++;if(I&&(iR(z,!1),z.strm.avail_out===0))return 1}z.insert=z.strstart<2?z.strstart:2;return l===4?(iR(z,
!0),z.strm.avail_out===0?3:4):z.last_lit&&(iR(z,!1),z.strm.avail_out===0)?1:2};
cd=function(z,l){for(var I,b;;){if(z.lookahead<262){T6(z);if(z.lookahead<262&&l===0)return 1;if(z.lookahead===0)break}I=0;z.lookahead>=3&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+3-1])&z.hash_mask,I=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart);z.prev_length=z.match_length;z.prev_match=z.match_start;z.match_length=2;I!==0&&z.prev_length<z.max_lazy_match&&z.strstart-I<=z.w_size-262&&(z.match_length=MgQ(z,I),z.match_length<=5&&(z.strategy===1||z.match_length===3&&
z.strstart-z.match_start>4096)&&(z.match_length=2));if(z.prev_length>=3&&z.match_length<=z.prev_length){b=z.strstart+z.lookahead-3;I=Rw(z,z.strstart-1-z.prev_match,z.prev_length-3);z.lookahead-=z.prev_length-1;z.prev_length-=2;do++z.strstart<=b&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+3-1])&z.hash_mask,z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart);while(--z.prev_length!==0);z.match_available=0;z.match_length=2;z.strstart++;if(I&&(iR(z,!1),z.strm.avail_out===0))return 1}else if(z.match_available){if((I=
Rw(z,0,z.window[z.strstart-1]))&&iR(z,!1),z.strstart++,z.lookahead--,z.strm.avail_out===0)return 1}else z.match_available=1,z.strstart++,z.lookahead--}z.match_available&&(Rw(z,0,z.window[z.strstart-1]),z.match_available=0);z.insert=z.strstart<2?z.strstart:2;return l===4?(iR(z,!0),z.strm.avail_out===0?3:4):z.last_lit&&(iR(z,!1),z.strm.avail_out===0)?1:2};
xX1=function(z,l){for(var I,b,v,M=z.window;;){if(z.lookahead<=258){T6(z);if(z.lookahead<=258&&l===0)return 1;if(z.lookahead===0)break}z.match_length=0;if(z.lookahead>=3&&z.strstart>0&&(b=z.strstart-1,I=M[b],I===M[++b]&&I===M[++b]&&I===M[++b])){for(v=z.strstart+258;I===M[++b]&&I===M[++b]&&I===M[++b]&&I===M[++b]&&I===M[++b]&&I===M[++b]&&I===M[++b]&&I===M[++b]&&b<v;);z.match_length=258-(v-b);z.match_length>z.lookahead&&(z.match_length=z.lookahead)}z.match_length>=3?(I=Rw(z,1,z.match_length-3),z.lookahead-=
z.match_length,z.strstart+=z.match_length,z.match_length=0):(I=Rw(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++);if(I&&(iR(z,!1),z.strm.avail_out===0))return 1}z.insert=0;return l===4?(iR(z,!0),z.strm.avail_out===0?3:4):z.last_lit&&(iR(z,!1),z.strm.avail_out===0)?1:2};
OJ5=function(z,l){for(var I;;){if(z.lookahead===0&&(T6(z),z.lookahead===0)){if(l===0)return 1;break}z.match_length=0;I=Rw(z,0,z.window[z.strstart]);z.lookahead--;z.strstart++;if(I&&(iR(z,!1),z.strm.avail_out===0))return 1}z.insert=0;return l===4?(iR(z,!0),z.strm.avail_out===0?3:4):z.last_lit&&(iR(z,!1),z.strm.avail_out===0)?1:2};
S8=function(z,l,I,b,v){this.good_length=z;this.max_lazy=l;this.nice_length=I;this.max_chain=b;this.func=v};
gEY=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 fp.Buf16(1146);this.dyn_dtree=new fp.Buf16(122);this.bl_tree=new fp.Buf16(78);tW(this.dyn_ltree);tW(this.dyn_dtree);tW(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new fp.Buf16(16);this.heap=new fp.Buf16(573);tW(this.heap);this.heap_max=this.heap_len=0;this.depth=new fp.Buf16(573);tW(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};
G9Y=function(z,l){if(!z||!z.state||l>5||l<0)return z?Kp(z,-2):-2;var I=z.state;if(!z.output||!z.input&&z.avail_in!==0||I.status===666&&l!==4)return Kp(z,z.avail_out===0?-5:-2);I.strm=z;var b=I.last_flush;I.last_flush=l;if(I.status===42)if(I.wrap===2)z.adler=0,Fh(I,31),Fh(I,139),Fh(I,8),I.gzhead?(Fh(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),Fh(I,I.gzhead.time&255),Fh(I,I.gzhead.time>>8&255),Fh(I,I.gzhead.time>>16&255),Fh(I,I.gzhead.time>>
24&255),Fh(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),Fh(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(Fh(I,I.gzhead.extra.length&255),Fh(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(z.adler=Y8(z.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(Fh(I,0),Fh(I,0),Fh(I,0),Fh(I,0),Fh(I,0),Fh(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),Fh(I,3),I.status=113);else{var v=8+(I.w_bits-8<<4)<<8;v|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(v|=
32);I.status=113;Q1(I,v+(31-v%31));I.strstart!==0&&(Q1(I,z.adler>>>16),Q1(I,z.adler&65535));z.adler=1}if(I.status===69)if(I.gzhead.extra){for(v=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>v&&(z.adler=Y8(z.adler,I.pending_buf,I.pending-v,v)),Bd(z),v=I.pending,I.pending!==I.pending_buf_size));)Fh(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>v&&(z.adler=Y8(z.adler,I.pending_buf,I.pending-v,v));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){v=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>v&&(z.adler=Y8(z.adler,I.pending_buf,I.pending-v,v)),Bd(z),v=I.pending,I.pending===I.pending_buf_size)){var M=1;break}M=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;Fh(I,M)}while(M!==0);I.gzhead.hcrc&&I.pending>v&&(z.adler=Y8(z.adler,I.pending_buf,I.pending-v,v));M===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){v=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>v&&(z.adler=Y8(z.adler,I.pending_buf,I.pending-v,v)),Bd(z),v=I.pending,I.pending===I.pending_buf_size)){M=1;break}M=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;Fh(I,M)}while(M!==0);I.gzhead.hcrc&&I.pending>v&&(z.adler=Y8(z.adler,I.pending_buf,I.pending-v,v));M===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&Bd(z),
I.pending+2<=I.pending_buf_size&&(Fh(I,z.adler&255),Fh(I,z.adler>>8&255),z.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(Bd(z),z.avail_out===0)return I.last_flush=-1,0}else if(z.avail_in===0&&(l<<1)-(l>4?9:0)<=(b<<1)-(b>4?9:0)&&l!==4)return Kp(z,-5);if(I.status===666&&z.avail_in!==0)return Kp(z,-5);if(z.avail_in!==0||I.lookahead!==0||l!==0&&I.status!==666){b=I.strategy===2?OJ5(I,l):I.strategy===3?xX1(I,l):di[I.level].func(I,l);if(b===3||b===4)I.status=666;if(b===1||b===3)return z.avail_out===
0&&(I.last_flush=-1),0;if(b===2&&(l===1?(Hd(I,2,3),y1(I,256,Xh),I.bi_valid===16?(Zr(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)):l!==5&&(Hd(I,0,3),WaY(I,0,0),l===3&&(tW(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),Bd(z),z.avail_out===0))return I.last_flush=-1,0}if(l!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(Fh(I,z.adler&255),Fh(I,z.adler>>8&255),Fh(I,z.adler>>16&255),Fh(I,z.adler>>24&255),Fh(I,
z.total_in&255),Fh(I,z.total_in>>8&255),Fh(I,z.total_in>>16&255),Fh(I,z.total_in>>24&255)):(Q1(I,z.adler>>>16),Q1(I,z.adler&65535));Bd(z);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
NcQ=function(z){if(!(this instanceof NcQ))return new NcQ(z);z=this.options=fp.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},z||{});z.raw&&z.windowBits>0?z.windowBits=-z.windowBits:z.gzip&&z.windowBits>0&&z.windowBits<16&&(z.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new EE7;this.strm.avail_out=0;var l=this.strm;var I=z.level,b=z.method,v=z.windowBits,M=z.memLevel,x=z.strategy;if(l){var g=1;I===-1&&(I=6);v<0?(g=0,v=-v):v>15&&
(g=2,v-=16);if(M<1||M>9||b!==8||v<8||v>15||I<0||I>9||x<0||x>4)l=Kp(l,-2);else{v===8&&(v=9);var G=new gEY;l.state=G;G.strm=l;G.wrap=g;G.gzhead=null;G.w_bits=v;G.w_size=1<<G.w_bits;G.w_mask=G.w_size-1;G.hash_bits=M+7;G.hash_size=1<<G.hash_bits;G.hash_mask=G.hash_size-1;G.hash_shift=~~((G.hash_bits+3-1)/3);G.window=new fp.Buf8(G.w_size*2);G.head=new fp.Buf16(G.hash_size);G.prev=new fp.Buf16(G.w_size);G.lit_bufsize=1<<M+6;G.pending_buf_size=G.lit_bufsize*4;G.pending_buf=new fp.Buf8(G.pending_buf_size);
G.d_buf=G.lit_bufsize;G.l_buf=3*G.lit_bufsize;G.level=I;G.strategy=x;G.method=b;if(l&&l.state){l.total_in=l.total_out=0;l.data_type=2;I=l.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;l.adler=I.wrap===2?0:1;I.last_flush=0;if(!u6Q){b=Array(16);for(M=x=0;M<28;M++)for(akf[M]=x,v=0;v<1<<Uop[M];v++)Cp[x++]=M;Cp[x-1]=M;for(M=x=0;M<16;M++)for(jD5[M]=x,v=0;v<1<<Vbt[M];v++)k8[x++]=M;for(x>>=7;M<30;M++)for(jD5[M]=x<<7,v=0;v<1<<Vbt[M]-7;v++)k8[256+x++]=M;for(v=0;v<=15;v++)b[v]=
0;for(v=0;v<=143;)Xh[v*2+1]=8,v++,b[8]++;for(;v<=255;)Xh[v*2+1]=9,v++,b[9]++;for(;v<=279;)Xh[v*2+1]=7,v++,b[7]++;for(;v<=287;)Xh[v*2+1]=8,v++,b[8]++;eWY(Xh,287,b);for(v=0;v<30;v++)qW[v*2+1]=5,qW[v*2]=$ou(v,5);ZJp=new sDG(Xh,Uop,257,286,15);HJ7=new sDG(qW,Vbt,0,30,15);yP$=new sDG([],fPQ,0,19,7);u6Q=!0}I.l_desc=new rYf(I.dyn_ltree,ZJp);I.d_desc=new rYf(I.dyn_dtree,HJ7);I.bl_desc=new rYf(I.bl_tree,yP$);I.bi_buf=0;I.bi_valid=0;wF7(I);I=0}else I=Kp(l,-2);I===0&&(l=l.state,l.window_size=2*l.w_size,tW(l.head),
l.max_lazy_match=di[l.level].max_lazy,l.good_match=di[l.level].good_length,l.nice_match=di[l.level].nice_length,l.max_chain_length=di[l.level].max_chain,l.strstart=0,l.block_start=0,l.lookahead=0,l.insert=0,l.match_length=l.prev_length=2,l.match_available=0,l.ins_h=0);l=I}}else l=-2;if(l!==0)throw Error(m5[l]);z.header&&(l=this.strm)&&l.state&&l.state.wrap===2&&(l.state.gzhead=z.header);if(z.dictionary){var u;typeof z.dictionary==="string"?u=C5f(z.dictionary):k9G.call(z.dictionary)==="[object ArrayBuffer]"?
u=new Uint8Array(z.dictionary):u=z.dictionary;z=this.strm;M=u;x=M.length;if(z&&z.state)if(u=z.state,l=u.wrap,l===2||l===1&&u.status!==42||u.lookahead)l=-2;else{l===1&&(z.adler=pyu(z.adler,M,x,0));u.wrap=0;x>=u.w_size&&(l===0&&(tW(u.head),u.strstart=0,u.block_start=0,u.insert=0),I=new fp.Buf8(u.w_size),fp.arraySet(I,M,x-u.w_size,u.w_size,0),M=I,x=u.w_size);I=z.avail_in;b=z.next_in;v=z.input;z.avail_in=x;z.next_in=0;z.input=M;for(T6(u);u.lookahead>=3;){M=u.strstart;x=u.lookahead-2;do u.ins_h=(u.ins_h<<
u.hash_shift^u.window[M+3-1])&u.hash_mask,u.prev[M&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=M,M++;while(--x);u.strstart=M;u.lookahead=2;T6(u)}u.strstart+=u.lookahead;u.block_start=u.strstart;u.insert=u.lookahead;u.lookahead=0;u.match_length=u.prev_length=2;u.match_available=0;z.next_in=b;z.input=v;z.avail_in=I;u.wrap=l;l=0}else l=-2;if(l!==0)throw Error(m5[l]);this._dict_set=!0}};
RHG=function(z,l){l=l||{};l.gzip=!0;l=new NcQ(l);l.push(z,!0);if(l.err)throw l.msg||m5[l.err];return l.result};
K2x=function(z,l){var I=mXk();I&&I.publish.call(I,z.toString(),z,l)};
iJ1=function(z,l,I){var b=mXk();if(!b)return 0;var v=b.subscribe(z.toString(),function(M,x){var g=_.W8("ytPubsub2Pubsub2SkipSubKey");g&&g==v||(g=function(){if(tgt[v])try{if(x&&z instanceof BcS&&z!=M)try{var G=z.dataClass,u=x;if(!u.args||!u.version)throw Error("ad");try{if(!G.version_){var Z=new G;G.version_=Z.version}var H=G.version_}catch(y){}if(!H||u.version!=H)throw Error("bd");try{x=Reflect.construct(G,_.ex(u.args))}catch(y){throw y.message="yt.pubsub2.Data.deserialize(): "+y.message,y;}}catch(y){throw y.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+z.toString()+": "+y.message,y;}l.call(I||window,x)}catch(y){_.$P(y)}},Xyx[z.toString()]?_.W8("yt.scheduler.instance")?_.ow.addLowPriorityJob(g):_.EI(g,0):g())});
tgt[v]=!0;qxt[z.toString()]||(qxt[z.toString()]=[]);qxt[z.toString()].push(v);return v};
TcG=function(){var z=F27,l=iJ1(Q8H,function(I){z.apply(void 0,arguments);Yxf(l)});
return l};
Yxf=function(z){var l=mXk();l&&(typeof z==="number"&&(z=[z]),_.UZ(z,function(I){l.unsubscribeByKey(I);delete tgt[I]}))};
mXk=function(){return _.W8("ytPubsub2Pubsub2Instance")};
cPk=function(z,l,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&K2x("meta_logging_csi_event",{timerName:z,timelineData:l})};
_.Sxp=function(z){return z?(z=z.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.bt(z):null:null};
_.Pd=function(z){return z?(z=z.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.QR(z):null:null};
oEG=function(){dXQ||(dXQ=_.Pd(_.sZ("WORKER_SERIALIZATION_URL")));return dXQ||void 0};
_.hHQ=function(){var z=oEG();P5H||z===void 0||(P5H=new Worker(_.YR(z),void 0));return P5H};
_.s8f=function(){return typeof Worker==="function"&&oEG()?!0:!1};
_.wyt=function(){if(_.s8f()&&!rPt){var z=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var b=$XS.get(I.key);b&&(eHt(I.gzippedBatch,b.latencyPayload,b.url,b.options,b.sendFn),$XS.delete(I.key))}},l=_.hHQ();
l&&(l.addEventListener("message",z),l.onerror=function(){$XS.clear()},rPt=!0)}};
Vgp=function(z,l,I,b,v){v=v===void 0?!1:v;var M={startTime:(0,_.Dr)(),ticks:{},infos:{}};if(hW)try{var x=AP5(l);if(x!=null&&(x>W2Y||x<nEY))b(z,I);else{if(_.C("gzip_gel_with_worker")&&(_.C("initial_gzip_use_main_thread")&&!L2Q||!_.C("initial_gzip_use_main_thread"))){rPt||_.wyt();var g=_.hHQ();if(g&&!v){$XS.set(UX7,{latencyPayload:M,url:z,options:I,sendFn:b});g.postMessage({op:"gelBatchToGzip",serializedBatch:l,key:UX7});UX7++;return}}var G=RHG(aPG(l));eHt(G,M,z,I,b)}}catch(u){_.nP(u),b(z,I)}else b(z,
I)};
eHt=function(z,l,I,b,v){L2Q=!1;var M=(0,_.Dr)();l.ticks.gelc=M;s5++;_.C("disable_compression_due_to_performance_degredation")&&M-l.startTime>=j85&&(JPQ++,_.C("abandon_compression_after_N_slow_zips")?s5===_.OI("compression_disable_point")&&JPQ>zKk&&(hW=!1):hW=!1);lf5(l);b.headers||(b.headers={});b.headers["Content-Encoding"]="gzip";b.postBody=z;b.postParams=void 0;v(I,b)};
Ifx=function(z){var l=l===void 0?!1:l;var I=I===void 0?!1:I;var b=(0,_.Dr)(),v={startTime:b,ticks:{},infos:{}},M=l?_.W8("yt.logging.gzipForFetch",!1):!0;if(hW&&M){if(!z.body)return z;try{var x=I?z.body:typeof z.body==="string"?z.body:JSON.stringify(z.body);M=x;if(!I&&typeof x==="string"){var g=AP5(x);if(g!=null&&(g>W2Y||g<nEY))return z;I=l?{level:1}:void 0;M=RHG(aPG(x),I);var G=(0,_.Dr)();v.ticks.gelc=G;if(l){s5++;if((_.C("disable_compression_due_to_performance_degredation")||_.C("disable_compression_due_to_performance_degradation_lr"))&&
G-b>=j85)if(JPQ++,_.C("abandon_compression_after_N_slow_zips")||_.C("abandon_compression_after_N_slow_zips_lr")){l=JPQ/s5;var u=zKk/_.OI("compression_disable_point");s5>0&&s5%_.OI("compression_disable_point")===0&&l>=u&&(hW=!1)}else hW=!1;lf5(v)}}z.headers=Object.assign({},{"Content-Encoding":"gzip"},z.headers||{});z.body=M;return z}catch(Z){return _.nP(Z),z}}else return z};
AP5=function(z){try{return(new Blob(z.split(""))).size}catch(l){return _.nP(l),null}};
lf5=function(z){_.C("gel_compression_csi_killswitch")||!_.C("log_gel_compression_latency")&&!_.C("log_gel_compression_latency_lr")||cPk("gel_compression",z,{sampleRate:.1})};
bES=function(){this.blockSize=-1};
ri=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var z=1;z<this.blockSize;++z)this.pad_[z]=0;this.total_=this.inbuf_=0;this.reset()};
MZS=function(z){z=Object.assign({},z);delete z.Authorization;var l=_.vCQ();if(l){var I=new ri;I.update(_.sZ("INNERTUBE_API_KEY"));I.update(l);z.hash=_.Tc(I.digest(),3)}return z};
e8=function(){phu||(phu=new _.$8("yt.innertube"));return phu};
D85=function(z,l,I,b){if(b)return null;b=e8().get("nextId",!0)||1;var v=e8().get("requests",!0)||{};v[b]={method:z,request:l,authState:MZS(I),requestTime:Math.round((0,_.Dr)())};e8().set("nextId",b+1,86400,!0);e8().set("requests",v,86400,!0);return b};
x8$=function(z){var l=e8().get("requests",!0)||{};delete l[z];e8().set("requests",l,86400,!0)};
gCG=function(z){var l=e8().get("requests",!0);if(l){for(var I in l){var b=l[I];if(!(Math.round((0,_.Dr)())-b.requestTime<6E4)){var v=b.authState,M=MZS(_.Pcf(!1));_.h7.equals(v,M)&&(v=b.request,"requestTimeMs"in v&&(v.requestTimeMs=Math.round((0,_.Dr)())),OEf(z,b.method,v,{}));delete l[I]}}e8().set("requests",l,86400,!0)}};
G4Q=function(z){var l;return(z=z==null?void 0:(l=z.error)==null?void 0:l.code)&&z>=400&&z<=599?!1:!0};
NZG=function(z){var l;z=z==null?void 0:(l=z.error)==null?void 0:l.code;return!(z!==400&&z!==415)};
uax=function(){if(ECH)return ECH();var z={};ECH=pp("LogsDatabaseV2",{objectStores:(z.LogsRequestsStore={addedAtVersion:2},z),shared:!1,upgrade:function(l,I,b){I(2)&&wi(l,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(b=b.objectStore("LogsRequestsStore"),b.JSC$10683_wrapped.indexNames.contains("newRequest")&&b.JSC$10683_wrapped.deleteIndex("newRequest"),AW(b,"newRequestV2",["status","interface","timestamp"]));I(7)&&l.JSC$10668_wrapped.objectStoreNames.contains("sapisid")&&l.JSC$10668_wrapped.deleteObjectStore("sapisid");
I(9)&&l.JSC$10668_wrapped.objectStoreNames.contains("SWHealthLog")&&l.JSC$10668_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return ECH()};
Wd=function(z){return _.jc(uax(),z)};
HE$=function(z,l){var I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return I={startTime:(0,_.Dr)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},x.yield(Wd(l),2);if(x.nextAddress!=3)return b=x.yieldResult,v=Object.assign({},z,{options:JSON.parse(JSON.stringify(z.options)),interface:_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),x.yield(b.put("LogsRequestsStore",v),3);M=x.yieldResult;I.ticks.tc=(0,_.Dr)();ZES(I);return x.return(M)})};
yxt=function(z,l){var I,b,v,M,x,g,G,u,Z;return _.O(function(H){if(H.nextAddress==1)return I={startTime:(0,_.Dr)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},H.yield(Wd(l),2);if(H.nextAddress!=3)return b=H.yieldResult,v=_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[z,v,0],x=[z,v,(0,_.Dr)()],g=IDBKeyRange.bound(M,x),G="prev",_.C("use_fifo_for_networkless")&&(G="next"),u=void 0,Z=z==="NEW"?"readwrite":"readonly",_.C("use_readonly_for_get_most_recent_by_status_killswitch")&&(Z="readwrite"),
H.yield(_.JE(b,["LogsRequestsStore"],{mode:Z,enableRetries:!0},function(y){return _.x8(y.objectStore("LogsRequestsStore").index("newRequestV2"),{query:g,direction:G},function(f){f.getValue()&&(u=f.getValue(),z==="NEW"&&(u.status="QUEUED",f.update(u)))})}),3);
I.ticks.tc=(0,_.Dr)();ZES(I);return H.return(u)})};
ffx=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1)return b.yield(Wd(l),2);I=b.yieldResult;return b.return(_.JE(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(v){var M=v.objectStore("LogsRequestsStore");return M.get(z).then(function(x){if(x)return x.status="QUEUED",M.put(x).then(function(){return x})})}))})};
CYG=function(z,l,I,b){I=I===void 0?!0:I;var v;return _.O(function(M){if(M.nextAddress==1)return M.yield(Wd(l),2);v=M.yieldResult;return M.return(_.JE(v,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){var g=x.objectStore("LogsRequestsStore");return g.get(z).then(function(G){return G?(G.status="NEW",I&&(G.sendCount+=1),b!==void 0&&(G.options.compress=b),g.put(G).then(function(){return G})):AE.resolve(void 0)})}))})};
k45=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1)return b.yield(Wd(l),2);I=b.yieldResult;return b.return(I.delete("LogsRequestsStore",z))})};
RKY=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(Wd(z),2);l=b.yieldResult;I=(0,_.Dr)()-2592E6;return b.yield(_.JE(l,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(v){return lR(v.objectStore("LogsRequestsStore"),{},function(M){if(M.getValue().timestamp<=I)return M.delete().then(function(){return M.continue()})})}),0)})};
m8u=function(){_.O(function(z){return z.yield(GNt("LogsDatabaseV2"),0)})};
ZES=function(z){_.C("nwl_csi_killswitch")||cPk("networkless_performance",z,{sampleRate:1})};
_.tZQ=function(z){return _.jc(Kh5(),z)};
BZt=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(_.tZQ(z),2);l=b.yieldResult;I=(0,_.Dr)()-2592E6;return b.yield(_.JE(l,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(v){return lR(v.objectStore("SWHealthLog"),{},function(M){if(M.getValue().timestamp<=I)return M.delete().then(function(){return M.continue()})})}),0)})};
XhQ=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(_.tZQ(z),2);l=I.yieldResult;return I.yield(l.clear("SWHealthLog"),0)})};
_.np=function(z,l,I,b,v,M,x){v=v===void 0?"":v;M=M===void 0?!1:M;x=x===void 0?!1:x;if(z)if(I&&!sI("cobalt"))_.nP(new _.qB("Legacy referrer-scrubbed ping detected")),z&&qiH(z,void 0,{scrubReferrer:!0});else if(v)zv5(z,l,"POST",v,b);else if(_.sZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||b||x)zv5(z,l,"GET","",b,void 0,M,x);else{b:{try{c:{var g=new iE1({url:z});if(g.urlParamValues_.dsh==="1")var G=null;else{var u=g.urlParamValues_.ae;if(u==="1"){var Z=g.urlParamValues_.adurl;if(Z)try{G={version:3,directUrl:decodeURIComponent(Z),
asyncUrl:FFp(g.JSC$9477_url_,"act=1","ri=1",Fhp(g))};break c}catch(R){}}G=u==="2"?{version:4,directUrl:FFp(g.JSC$9477_url_,"dct=1","suid="+g.suid_,""),asyncUrl:FFp(g.JSC$9477_url_,"act=1","ri=1","suid="+g.suid_)}:null}}if(G){var H=_.yI(z);var y=!(!H||!H.endsWith("/aclk")||_.n0(z,"ri")!=="1");break b}}catch(R){}y=!1}if(y){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(z,"")){var f=!0;break b}}catch(R){}f=!1}f?(l&&l(),I=!0):I=!1}else I=!1;I||qiH(z,l)}};
qiH=function(z,l,I){I=I===void 0?{}:I;var b=new Image,v=""+Qep++;Yi$[v]=b;b.onload=b.onerror=function(){l&&Yi$[v]&&l();delete Yi$[v]};
I.scrubReferrer&&(b.referrerPolicy="no-referrer");b.src=z};
Lp=function(z,l){TZ$(z,l==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
cxQ=function(z){var l;return((l=document.featurePolicy)==null?0:l.allowedFeatures().includes("attribution-reporting"))?z+"&nis=6":z+"&nis=5"};
Sit=function(z){if(!z)return!1;try{var l;if(((l=_.aY(z))==null?void 0:l.asm)==="4")return!0}catch(I){_.$P(I)}return!1};
TZ$=function(z,l){l?(z=cxQ(z),_.np(z,void 0,void 0,void 0,"",!0,!0)):_.np(z)};
oC5=function(){d8G||(d8G=new _.$8("yt.offline"));return d8G};
PYx=function(z){if(_.C("offline_error_handling")){var l=oC5().get("errors",!0)||{};l[z.message]={name:z.name,stack:z.stack};z.level&&(l[z.message].level=z.level);oC5().set("errors",l,2592E3,!0)}};
seS=function(z,l,I,b){b=b===void 0?!1:b;l=_.C("web_fp_via_jspb")?Object.assign({},l):l;_.C("use_cfr_monitor")&&hKf(z,l);if(_.C("use_request_time_ms_header"))l.headers&&bf(z)&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Dr)())));else{var v;if((v=l.postParams)==null?0:v.requestTimeMs)l.postParams.requestTimeMs=Math.round((0,_.Dr)())}I&&Object.keys(l).length===0?_.np(z):l.compress?l.postBody?(typeof l.postBody!=="string"&&(l.postBody=JSON.stringify(l.postBody)),Vgp(z,l.postBody,
l,_.fG,b)):Vgp(z,JSON.stringify(l.postParams),l,vwQ,b):_.fG(z,l)};
rx5=function(z,l){_.C("use_event_time_ms_header")&&bf(z)&&(l.headers||(l.headers={}),l.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Dr)())));return l};
_.eKQ=function(){$8H||($8H=new _.U5({logOfflineErrors:!0,enablePolling:!0}));return $8H};
hKf=function(z,l){var I=l.onError?l.onError:function(){};
l.onError=function(v,M){aw().requestComplete(z,!1);I(v,M)};
var b=l.onSuccess?l.onSuccess:function(){};
l.onSuccess=function(v,M){aw().requestComplete(z,!0);b(v,M)}};
_.whx=function(){return _.lf(document.location.toString())!=="www.youtube-nocookie.com"};
_.nCY=function(){return _.W8("ytNetworklessLoggingInitializationOptions")?_.Axx.isNwlInitialized:_.Wh7};
Lhu=function(z,l){if(_.C("polymer_on_demand_shady_dom")){var I;var b=(I=z.__shady_native_firstElementChild)!=null?I:z.firstElementChild}else b=z.firstElementChild;for(;b;){if(z=l(b)?b:Lhu(b,l))return z;b=b.nextElementSibling}return null};
afu=function(){var z=document;if("visibilityState"in z)return z.visibilityState;var l=U87+"VisibilityState";if(l in z)return z[l]};
_.VZG=function(z,l){var I;V1(z,function(b){I=l[b];return!!I});
return I};
_.JW=function(z){var l=jeH(z);l?l.focus(void 0):_.j8(z)};
jeH=function(z){return(z=Lhu(z,function(l){return _.zu(l)?Jxk(l)&&!!l.offsetParent:!1}))?z:null};
_.j8=function(z,l){z.hasAttribute("tabindex")||z.setAttribute("tabindex","-1");z.focus(l)};
zS5=function(z,l,I,b){b=b===void 0?{}:b;z.addEventListener&&(l!="mouseenter"||"onmouseenter"in document?l!="mouseleave"||"onmouseenter"in document?l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"):l="mouseout":l="mouseover");return _.h7.findKey(l_,function(v){var M=typeof v[4]==="boolean"&&v[4]==!!b,x=_.Lu(v[4])&&_.Lu(b)&&_.h7.equals(v[4],b);return!!v.length&&v[0]==z&&v[1]==l&&v[2]==I&&(M||x)})};
_.b_=function(z,l,I,b){b=b===void 0?{}:b;if(!z||!z.addEventListener&&!z.attachEvent)return"";var v=zS5(z,l,I,b);if(v)return v;v=++lYt.count+"";var M=!(l!="mouseenter"&&l!="mouseleave"||!z.addEventListener||"onmouseenter"in document);var x=M?function(g){g=new Iy(g);if(!_.A7(g.relatedTarget,function(G){return G==z},!0))return g.currentTarget=z,g.type=l,I.call(z,g)}:function(g){g=new Iy(g);
g.currentTarget=z;return I.call(z,g)};
x=_.em(x);z.addEventListener?(l=="mouseenter"&&M?l="mouseover":l=="mouseleave"&&M?l="mouseout":l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"),IYG()||typeof b==="boolean"?z.addEventListener(l,x,b):z.addEventListener(l,x,!!b.capture)):z.attachEvent("on"+l,x);l_[v]=[z,l,I,x,b];return v};
_.vlf=function(z,l,I){var b=b===void 0?{}:b;var v=_.b_(z,l,function(){_.bK7(v);I.apply(z,arguments)},b)};
_.bK7=function(z){z&&(typeof z=="string"&&(z=[z]),_.UZ(z,function(l){if(l in l_){var I=l_[l],b=I[0],v=I[1],M=I[3];I=I[4];b.removeEventListener?IYG()||typeof I==="boolean"?b.removeEventListener(v,M,I):b.removeEventListener(v,M,!!I.capture):b.detachEvent&&b.detachEvent("on"+v,M);delete l_[l]}}))};
vW=function(z){this.callback_=z;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(z=0;z<4;z++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.b_(window,"mousemove",(0,_.YN)(this.onMouseMove_,this));this.timerId_=_.ZQ((0,_.YN)(this.checkPosition_,this),25)};
prx=function(){var z={};var l=z.preferMobileEvents===void 0?!1:z.preferMobileEvents;z=z.enableScrollEventListener===void 0?!0:z.enableScrollEventListener;if(_.W8("_lact",window)==null){var I=parseInt(_.sZ("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.vd("_lact",I,window);_.vd("_fact",I,window);I==-1&&_.MA();_.b_(document,"keydown",_.MA);_.b_(document,"keyup",_.MA);_.b_(document,"mousedown",_.MA);_.b_(document,"mouseup",_.MA);l?_.b_(window,"touchmove",function(){MOp("touchmove",200)},{passive:!0}):
(_.b_(window,"resize",function(){MOp("resize",200)}),z&&_.b_(window,"scroll",function(){MOp("scroll",200)}));
new vW(function(){MOp("mouse",100)});
_.b_(document,"touchstart",_.MA,{passive:!0});_.b_(document,"touchend",_.MA,{passive:!0})}};
MOp=function(z,l){Dt1[z]||(Dt1[z]=!0,_.ow.addLowPriorityJob(function(){_.MA();Dt1[z]=!1},l))};
_.MA=function(){_.W8("_lact",window)==null&&prx();var z=Date.now();_.vd("_lact",z,window);_.W8("_fact",window)==-1&&_.vd("_fact",z,window);(z=_.W8("ytglobal.ytUtilActivityCallback_"))&&z()};
_.p2=function(){var z=_.W8("_lact",window);return z==null?-1:Math.max(Date.now()-z,0)};
_.Gu=function(z,l,I){var b=_.Dx();if(b&&l){var v=b.subscribe(z,function(){var M=arguments,x=function(){x7[v]&&l.apply&&typeof l.apply=="function"&&l.apply(I||window,M)};
try{_.xtQ[z]?x():_.EI(x,0)}catch(g){_.$P(g)}},I);
x7[v]=!0;gE[z]||(gE[z]=[]);gE[z].push(v);return v}return 0};
_.OKu=function(z){var l=_.Dx();l&&(typeof z==="number"?z=[z]:typeof z==="string"&&(z=[parseInt(z,10)]),_.UZ(z,function(I){l.unsubscribeByKey(I);delete x7[I]}))};
_.glt=function(z,l){var I=_.Dx();I&&I.publish.apply(I,arguments)};
_.No1=function(z){var l=_.Dx();if(l)if(l.clear(z),z)GHu(z);else for(var I in gE)GHu(I)};
_.Dx=function(){return _.v7.ytPubsubPubsubInstance};
GHu=function(z){gE[z]&&(z=gE[z],_.UZ(z,function(l){x7[l]&&delete x7[l]}),z.length=0)};
ElG=function(){var z,l;return"h5vcc"in NA&&((z=NA.h5vcc.traceEvent)==null?0:z.traceBegin)&&((l=NA.h5vcc.traceEvent)==null?0:l.traceEnd)?1:"performance"in NA&&NA.performance.mark&&NA.performance.measure?2:0};
uVf=function(z){var l=ElG();switch(l){case 1:NA.h5vcc.traceEvent.traceBegin("YTLR",z);break;case 2:NA.performance.mark(z+"-start");break;case 0:break;default:_.Ap(l,"unknown trace type")}};
ZK7=function(z){var l=ElG();switch(l){case 1:NA.h5vcc.traceEvent.traceEnd("YTLR",z);break;case 2:l=z+"-start";var I=z+"-end";NA.performance.mark(I);NA.performance.measure(z,l,I);break;case 0:break;default:_.Ap(l,"unknown trace type")}};
HKG=function(z){var l,I;(I=(l=window).onerror)==null||I.call(l,z.message,"",0,0,z)};
yNx=function(z){if(_.C("web_lifecycle_error_handling_killswitch"))return z();try{return z()}catch(l){HKG(l)}};
fYt=function(z){return[z.auth===void 0?"undefined":z.auth,z.isJspb===void 0?"undefined":z.isJspb,z.cttAuthInfo===void 0?"undefined":z.cttAuthInfo,z.tier===void 0?"undefined":z.tier].join("/")};
_.k=function(z,l){if(z)return z[l.name]};
u_=function(){var z=_.W8("yt.logging.ims");z||(z=new EN,_.vd("yt.logging.ims",z));return z};
qWx=function(z,l){if(z.endpoint==="log_event"){CO$(z);var I=kHf(z),b=RS1(z.payload)||"",v=mtH(b),M=200;if(v){if(v.enabled===!1&&!_.C("web_payload_policy_disabled_killswitch"))return;M=K9f(v.tier);if(M===400){tO7(z,l);return}}Zx[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:M};u_().storePayload(I,z.payload);Bou(l,!1,I,Xr1(b))}};
F9x=function(z,l,I){if(l.endpoint==="log_event"){CO$(void 0,l);var b=kHf(l,!0),v=mtH(z),M=200;if(v){if(v.enabled===!1&&!_.C("web_payload_policy_disabled_killswitch"))return;M=K9f(v.tier);if(M===400){iKx(z,l,I);return}}Zx[b]=!0;b={cttAuthInfo:b,isJspb:!0,tier:M};u_().storePayload(b,d4(l.payload));Bou(I,!0,b,Xr1(z))}};
Bou=function(z,l,I,b){l=l===void 0?!1:l;b=b===void 0?!1:b;z&&(HW=new z);z=_.OI("tvhtml5_logging_max_batch_ads_fork")||_.OI("tvhtml5_logging_max_batch")||_.OI("web_logging_max_batch")||100;var v=(0,_.Dr)(),M=Q2G(l,I.tier),x=M.lastDebounceQueueFromLogTimeMs;b&&(M.useVideoStatsEndPoint=!0);b=0;I&&(b=u_().getSequenceCount(I));var g=function(){YW1({writeThenSend:!0},l,I.tier)};
b>=1E3?g():b>=z?ToG||(ToG=cNk(function(){g();ToG=void 0},0)):v-x>=10&&(SWt(l,I.tier),M.lastDebounceQueueFromLogTimeMs=v)};
tO7=function(z,l){if(z.endpoint==="log_event"){_.C("more_accurate_gel_parser")&&u_().storePayload({isJspb:!1},z.payload);CO$(z);var I=kHf(z),b=new Map;b.set(I,[z.payload]);var v=RS1(z.payload)||"";l&&(HW=new l);return new _.yK(function(M,x){HW&&HW.isReady()?dtS(b,HW,M,x,{bypassNetworkless:!0},!0,Xr1(v)):M()})}};
iKx=function(z,l,I){if(l.endpoint==="log_event"){CO$(void 0,l);var b=kHf(l,!0),v=new Map;v.set(b,[d4(l.payload)]);I&&(HW=new I);return new _.yK(function(M){HW&&HW.isReady()?olY(v,HW,M,{bypassNetworkless:!0},!0,Xr1(z)):M()})}};
kHf=function(z,l){var I="";if(z.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(z.cttAuthInfo){if(l===void 0?0:l){l=z.cttAuthInfo.token;I=z.cttAuthInfo;var b=new POu;I.videoId?b.setVideoId(I.videoId):I.playlistId&&f2(b,2,hSS,RC(I.playlistId));s2Y[l]=b}else l=z.cttAuthInfo,I={},l.videoId?I.videoId=l.videoId:l.playlistId&&(I.playlistId=l.playlistId),rNH[z.cttAuthInfo.token]=I;I=z.cttAuthInfo.token}return I};
YW1=function(z,l,I){z=z===void 0?{}:z;l=l===void 0?!1:l;new _.yK(function(b,v){var M=Q2G(l,I),x=M.useVideoStatsEndPoint;M.useVideoStatsEndPoint=!1;$tQ(M.queueTimer);$tQ(M.queueMaxTimer);M.queueMaxTimer=0;HW&&HW.isReady()?I===void 0&&_.C("enable_web_tiered_gel")?eS$(b,v,z,l,300,x):eS$(b,v,z,l,I,x):(SWt(l,I),b())})};
eS$=function(z,l,I,b,v,M){var x=HW;I=I===void 0?{}:I;b=b===void 0?!1:b;v=v===void 0?200:v;M=M===void 0?!1:M;var g=new Map,G=new Map,u={isJspb:b,cttAuthInfo:void 0,tier:v},Z={isJspb:b,cttAuthInfo:void 0};if(b){l=_.D(Object.keys(Zx));for(v=l.next();!v.done;v=l.next())v=v.value,G=_.C("enable_web_tiered_gel")?u_().smartExtractMatchingEntries({keys:[u,Z],sizeLimit:1E3}):u_().extractMatchingEntries({isJspb:!0,cttAuthInfo:v}),G.length>0&&g.set(v,G),(_.C("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.C("web_fp_via_jspb_and_json"))&&
delete Zx[v];olY(g,x,z,I,!1,M)}else{g=_.D(Object.keys(Zx));for(u=g.next();!u.done;u=g.next())u=u.value,Z=_.C("enable_web_tiered_gel")?u_().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:u,tier:v},{isJspb:!1,cttAuthInfo:u}],sizeLimit:1E3}):u_().extractMatchingEntries({isJspb:!1,cttAuthInfo:u}),Z.length>0&&G.set(u,Z),(_.C("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.C("web_fp_via_jspb_and_json"))&&delete Zx[u];dtS(G,x,z,l,I,!1,M)}};
SWt=function(z,l){z=z===void 0?!1:z;l=l===void 0?200:l;var I=function(){YW1({writeThenSend:!0},z,l)},b=Q2G(z,l),v=b===wrQ||b===AN1?5E3:W97;
_.C("web_gel_timeout_cap")&&!b.queueMaxTimer&&(v=cNk(function(){I()},v),b.queueMaxTimer=v);
$tQ(b.queueTimer);v=_.sZ("LOGGING_BATCH_TIMEOUT",_.OI("web_gel_debounce_ms",1E4));_.C("shorten_initial_gel_batch_timeout")&&nlS&&(v=L9H);v=cNk(function(){_.OI("gel_min_batch_size")>0?u_().getSequenceCount({cttAuthInfo:void 0,isJspb:z,tier:l})>=UtQ&&I():I()},v);
b.queueTimer=v};
dtS=function(z,l,I,b,v,M,x){v=v===void 0?{}:v;var g=Math.round((0,_.Dr)()),G=z.size,u=aYH(x);z=_.D(z);var Z=z.next();for(x={};!Z.done;x={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},Z=z.next()){var H=_.D(Z.value);Z=H.next().value;H=H.next().value;x.batchRequest=_.h7.unsafeClone({context:_.irx(l.config_||_.O5())});if(!_.wf(H)&&!_.C("throw_err_when_logevent_malformed_killswitch")){b();break}x.batchRequest.events=H;
(H=rNH[Z])&&VOf(x.batchRequest,Z,H);delete rNH[Z];x.dangerousLogToVisitorSession=Z==="visitorOnlyApprovedKey";j27(x.batchRequest,g,x.dangerousLogToVisitorSession);JNH(v);x.onSuccess$jscomp$3=function(y){_.C("start_client_gcf")&&_.ow.addLowPriorityJob(function(){return _.O(function(f){return f.yield(zyS(y),0)})});
G--;G||I()};
x.networkFailures=0;x.onError$jscomp$5=function(y){return function(){y.networkFailures++;if(v.bypassNetworkless&&y.networkFailures===1)try{OEf(l,u,y.batchRequest,lXf({writeThenSend:!0},y.dangerousLogToVisitorSession,y.onSuccess$jscomp$3,y.onError$jscomp$5,M)),nlS=!1}catch(f){_.$P(f),b()}G--;G||I()}}(x);
try{OEf(l,u,x.batchRequest,lXf(v,x.dangerousLogToVisitorSession,x.onSuccess$jscomp$3,x.onError$jscomp$5,M)),nlS=!1}catch(y){_.$P(y),b()}}};
olY=function(z,l,I,b,v,M){b=b===void 0?{}:b;var x=Math.round((0,_.Dr)()),g={value:z.size},G=new Map([].concat(_.ht(z)));G=_.D(G);for(var u=G.next();!u.done;u=G.next()){var Z=_.D(u.value).next().value,H=z.get(Z);u=new IXS;var y=l.config_||_.O5(),f=new C2,R=new bYf;_.Th(R,1,y.innertubeContextHostLanguage);_.Th(R,2,y.innertubeContextGeoLocation);_.G6(R,16,y.innertubeContextClientNameFieldNumber);_.Th(R,17,y.innertubeContextClientVersion);if(y.innertubeContextClientConfigInfo){var F=y.innertubeContextClientConfigInfo,
Y=new E5;F.coldConfigData&&_.Th(Y,1,F.coldConfigData);F.appInstallData&&_.Th(Y,6,F.appInstallData);F.coldHashData&&_.Th(Y,3,F.coldHashData);F.hotHashData&&Y.setHotHashData(F.hotHashData);_.tT(R,62,Y)}(F=_.v7.devicePixelRatio)&&F!=1&&_.NW(R,65,_.W_(F));F=AHQ();F!==""&&_.Th(R,54,F);F=WYt();if(F.length>0){Y=new vUS;for(var c=0;c<F.length;c++){var d=new k7;d.setKey(F[c].key);f2(d,2,M9k,RC(F[c].value));Ry(Y,15,k7,d)}_.tT(f,5,Y)}mo1(y,R);Ka5(f);tb7(R);BD$(y,R);XFu(R);_.C("start_client_gcf")&&qrY(R);_.sZ("DELEGATED_SESSION_ID")&&
!_.C("pageid_as_header_web")&&(y=new mg,_.Th(y,3,_.sZ("DELEGATED_SESSION_ID")));!_.C("fill_delegate_context_in_gel_killswitch")&&(F=_.sZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Y=_.gi(f,mg,3)||new mg,y=f,F=_.Th(Y,18,F),_.tT(y,3,F));y=R;F=_.D(Object.entries(_.aY(_.sZ("DEVICE",""))));for(Y=F.next();!Y.done;Y=F.next())c=_.D(Y.value),Y=c.next().value,c=c.next().value,Y==="cbrand"?_.Th(y,12,c):Y==="cmodel"?_.Th(y,13,c):Y==="cbr"?_.Th(y,87,c):Y==="cbrver"?_.Th(y,88,c):Y==="cos"?_.Th(y,18,
c):Y==="cosver"?_.Th(y,19,c):Y==="cplatform"&&_.G6(y,42,Rv7(c));f.setClient(R);_.tT(u,1,f);if(R=s2Y[Z])a:{if(_.K0(R,K2(R,hSS,1)))f=1;else if(R.getPlaylistId())f=2;else break a;_.tT(u,4,R);R=u.getContext()||new C2;y=_.gi(R,mg,3)||new mg;F=new tK;F.setToken(Z);_.G6(F,1,f);Ry(y,12,tK,F);_.tT(R,3,y)}delete s2Y[Z];Z=Z==="visitorOnlyApprovedKey";pU$()||_.BW(u,2,x);!Z&&(f=_.sZ("EVENT_ID"))&&(R=DvG(),y=new xvx,_.Th(y,1,f),_.BW(y,2,R),_.tT(u,5,y));JNH(b);if(_.C("jspb_serialize_with_worker")&&(f=_.hHQ())&&
b.writeThenSend){_.OY$.set(gUf,{client:l,resolve:I,networklessOptions:b,isIsolated:v,useVSSEndpoint:M,dangerousLogToVisitorSession:Z,requestsOutstanding:g});f.postMessage({op:"gelBatchToSerialize",batchRequest:d4(u),clientEvents:H,key:gUf});gUf++;break}if(H){f=[];for(R=0;R<H.length;R++)try{f.push(new XL(H[R]))}catch(V){_.$P(new _.qB("Transport failed to deserialize "+String(H[R])))}H=f}else H=[];H=_.D(H);for(f=H.next();!f.done;f=H.next())Ry(u,3,XL,f.value);H={startTime:(0,_.Dr)(),ticks:{},infos:{}};
u=u.serialize();H.ticks.geljspc=(0,_.Dr)();_.C("log_jspb_serialize_latency")&&cPk("gel_jspb_serialize",H,{sampleRate:.1});_.GSY(u,l,I,b,v,M,Z,g)}};
_.GSY=function(z,l,I,b,v,M,x,g){b=b===void 0?{}:b;g=g===void 0?{value:0}:g;M=aYH(M);b=lXf(b,x,function(G){_.C("start_client_gcf")&&_.ow.addLowPriorityJob(function(){return _.O(function(u){return u.yield(zyS(G),0)})});
g.value--;g.value||I()},function(){g.value--;
g.value||I()},v);
b.headers["Content-Type"]="application/json+protobuf";b.postBodyFormat="JSPB";b.postBody=z;OEf(l,M,"",b);nlS=!1};
JNH=function(z){_.C("always_send_and_write")&&(z.writeThenSend=!1)};
lXf=function(z,l,I,b,v){z={retry:!0,onSuccess:I,onError:b,networklessOptions:z,dangerousLogToVisitorSession:l,bypassMonitoring:!!v,headers:{},postBodyFormat:"",postBody:"",compress:_.C("compress_gel")||_.C("compress_gel_lr")};pU$()&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Dr)())));return z};
j27=function(z,l,I){pU$()||(z.requestTimeMs=String(l));_.C("unsplit_gel_payloads_in_logs")&&(z.unsplitGelPayloadsInLogs=!0);!I&&(l=_.sZ("EVENT_ID"))&&(I=DvG(),z.serializedClientEventId={serializedEventId:l,clientCounter:String(I)})};
DvG=function(){var z=_.sZ("BATCH_CLIENT_COUNTER")||0;z||(z=Math.floor(Math.random()*65535/2));z++;z>65535&&(z=1);_.hr("BATCH_CLIENT_COUNTER",z);return z};
VOf=function(z,l,I){if(I.videoId)var b="VIDEO";else if(I.playlistId)b="PLAYLIST";else return;z.credentialTransferTokenTargetId=I;z.context=z.context||{};z.context.user=z.context.user||{};z.context.user.credentialTransferTokens=[{token:l,scope:b}]};
CO$=function(z,l){var I=_.gk("il_payload_scraping")==="enable_il_payload_scraping";if(!_.W8("yt.logging.transport.enableScrapingForTest"))if(I)N51=[],_.vd("yt.logging.transport.enableScrapingForTest",!0),_.vd("yt.logging.transport.scrapedPayloadsForTesting",N51),_.vd("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.vd("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.vd("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.W8("yt.logging.transport.scrapedPayloadsForTesting");var b=_.W8("yt.logging.transport.payloadToScrape");l&&(l=_.W8("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(l.payload)())&&I.push(l);l=_.W8("yt.logging.transport.scrapeClientEvent");if(b&&b.length>=1)for(var v=0;v<b.length;v++)if(z&&z.payload[b[v]])if(l)I.push(z.payload);else{var M=void 0;I.push(((M=z)==null?void 0:M.payload)[b[v]])}_.vd("yt.logging.transport.scrapedPayloadsForTesting",
I)};
pU$=function(){return _.C("use_request_time_ms_header")||_.C("lr_use_request_time_ms_header")};
cNk=function(z,l){return _.C("transport_use_scheduler")===!1?_.EI(z,l):_.C("logging_avoid_blocking_during_navigation")||_.C("lr_logging_avoid_blocking_during_navigation")?_.qA(_.ow,function(){if(_.EUQ().currentState==="none")z();else{var I={};_.EUQ().install((I.none={callback:z},I))}},l):_.qA(_.ow,z,l)};
$tQ=function(z){_.C("transport_use_scheduler")?_.ow.cancelJob(z):_.HV(z)};
zyS=function(z){var l,I,b,v,M,x,g,G,u,Z;return _.O(function(H){return H.nextAddress==1?(b=(l=z)==null?void 0:(I=l.responseContext)==null?void 0:I.globalConfigGroup,v=_.k(b,u1f),x=(M=b)==null?void 0:M.hotHashData,g=_.k(b,ZY1),u=(G=b)==null?void 0:G.coldHashData,(Z=_.pG().resolve(_.MB(i_)))?x?v?H.yield(HYH(Z,x,v),2):H.yield(HYH(Z,x),2):H.jumpTo(2):H.return()):u?g?H.yield(yRS(Z,u,g),0):H.yield(yRS(Z,u),0):H.jumpTo(0)})};
Q2G=function(z,l){l=l===void 0?200:l;return z?l===300?wrQ:fX5:l===300?AN1:C17};
mtH=function(z){if(_.C("enable_web_tiered_gel")){z=kS$[z||""];var l,I,b,v=_.pG().resolve(_.MB(i_))==null?void 0:(l=FL())==null?void 0:(I=l.loggingHotConfig)==null?void 0:(b=I.eventLoggingConfig)==null?void 0:b.payloadPolicies;if(v)for(l=0;l<v.length;l++)if(v[l].payloadNumber===z)return v[l]}};
RS1=function(z){z=Object.keys(z);z=_.D(z);for(var l=z.next();!l.done;l=z.next())if(l=l.value,kS$[l])return l};
K9f=function(z){switch(z){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}};
Xr1=function(z){return z==="gelDebuggingEvent"};
aYH=function(z){return(z===void 0?0:z)&&_.C("vss_through_gel_video_stats")?"video_stats":"log_event"};
Y7=function(z,l,I,b){b=b===void 0?{}:b;var v={},M=Math.round(b.timestamp||(0,_.Dr)());v.eventTimeMs=M<Number.MAX_SAFE_INTEGER?M:0;v[z]=l;z=_.p2();v.context={lastActivityMs:String(b.timestamp||!isFinite(z)?-1:z)};b.sequenceGroup&&!_.C("web_gel_sequence_info_killswitch")&&(z=v.context,l=b.sequenceGroup,l={index:RyG(l),groupKey:l},z.sequence=l,b.endOfSequence&&delete QK[b.sequenceGroup]);_.C("web_tag_automated_log_events")&&(v.context.automatedLogEventSource=b.automatedLogEventSource);(b.sendIsolatedPayload?
tO7:qWx)({endpoint:"log_event",payload:v,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},I)};
RyG=function(z){QK[z]=z in QK?QK[z]+1:0;return QK[z]};
_.cW=function(z,l,I){I=I===void 0?{}:I;var b=Tu;_.rr("ytLoggingEventsDefaultDisabled",!1)&&Tu===Tu&&(b=null);Y7(z,l,b,I)};
_.SX=function(){if(_.C("web_fp_via_jspb")){var z=!0;z=z===void 0?!1:z;var l=mv$;mv$=[];if(l){l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,z?Y7(I.payloadName,I.payload,Tu,I.options):_.cW(I.payloadName,I.payload,I.options)}YW1(void 0,!0);if(!_.C("web_fp_via_jspb_and_json"))return}YW1(void 0,!1)};
KEt=function(z,l){var I;if((I=l)==null?0:I.componentStack)return l;if(z=z.componentStack)l||(l={}),l.componentStack=z;return l};
t9t=function(){_.UZ(_.sZ("ERRORS")||[],function(z){_.dE.apply(null,z)});
_.hr("ERRORS",[])};
_.oy=function(z){_.dE(z)};
_.PW=function(z){_.dE(z,"WARNING")};
B5Q=function(z){z instanceof Error?_.dE(z):(z=_.Lu(z)?JSON.stringify(z):String(z),z=new _.qB(z),z.name="RejectedPromiseError",_.PW(z))};
XUQ=function(z,l,I,b,v,M){l=l===void 0?"Unknown file":l;I=I===void 0?0:I;var x=!1,g=KYH("log_window_onerror_fraction");if(g&&Math.random()<g)x=!0;else{g=document.getElementsByTagName("script");for(var G=0,u=g.length;G<u;G++)if(g[G].src.indexOf("/debug-")>0){x=!0;break}}x&&(x=!1,v?x=!0:(typeof z==="string"?g=z:ErrorEvent&&z instanceof ErrorEvent?(x=!0,g=z.message,l=z.filename,I=z.lineno,b=z.colno):(g="Unknown error",l="Unknown file",I=0),v=new _.qB(g),v.name="UnhandledWindowError",v.message=g,v.fileName=
l,v.lineNumber=I,isNaN(b)?delete v.columnNumber:v.columnNumber=b),_.C("wiz_enable_component_stack_propagation_killswitch")||(M=KEt(v,M)),M&&_.hK(v,M),x?_.dE(v):_.PW(v))};
_.dE=function(z,l,I,b,v,M,x,g){M=M===void 0?{}:M;M.name=I||_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=b||_.sZ("INNERTUBE_CONTEXT_CLIENT_VERSION");I=M;l=l===void 0?"ERROR":l;x=x===void 0?!1:x;l=l===void 0?"ERROR":l;x=x===void 0?!1:x;if(z&&(z.hasOwnProperty("level")&&z.level&&(l=z.level),_.C("console_log_js_exceptions")&&(b=[],b.push("Name: "+z.name),b.push("Message: "+z.message),z.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(z.params)),z.hasOwnProperty("args")&&b.push("Error args: "+
JSON.stringify(z.args)),b.push("File name: "+z.fileName),b.push("Stacktrace: "+z.stack),b=b.join("\n"),window.console.log(b,z)),!(qBG>=5))){b=[];v=_.D(iY7);for(M=v.next();!M.done;M=v.next()){M=M.value;try{M()&&b.push(M())}catch(Y){}}b=[].concat(_.ht(FE7),_.ht(b));var G=Q0Q(z);v=G.message||"Unknown Error";M=G.name||"UnknownError";var u=G.stack||z.stacktrace||"Not available";if(u.startsWith(M+": "+v)){var Z=u.split("\n");Z.shift();u=Z.join("\n")}Z=G.lineNumber||"Not available";G=G.fileName||"Not available";
var H=0;if(z.hasOwnProperty("args")&&z.args&&z.args.length)for(var y=0;y<z.args.length&&!(H=kZ$(z.args[y],"params."+y,I,H),H>=500);y++);else if(z.hasOwnProperty("params")&&z.params){var f=z.params;if(typeof z.params==="object")for(y in f){if(f[y]){var R="params."+y,F=R3(f[y]);I[R]=F;H+=R.length+F.length;if(H>500)break}}else I.params=R3(f)}if(b.length)for(y=0;y<b.length&&!(H=kZ$(b[y],"params.context."+y,I,H),H>=500);y++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
y={message:v,name:M,lineNumber:Z,fileName:G,stack:u,params:I,sampleWeight:1};I=Number(z.columnNumber);isNaN(I)||(y.lineNumber=y.lineNumber+":"+I);if(z.level==="IGNORED")z=0;else a:{z=YBp();I=_.D(z.messageWeights);for(b=I.next();!b.done;b=I.next())if(b=b.value,y.message&&y.message.match(b.messageRegExp)){z=b.weight;break a}z=_.D(z.callbackWeights);for(I=z.next();!I.done;I=z.next())if(I=I.value,I.callback(y)){z=I.weight;break a}z=1}y.sampleWeight=z;z=_.D(T5$);for(I=z.next();!I.done;I=z.next())if(I=
I.value,I.patternsForType[y.name])for(v=_.D(I.patternsForType[y.name]),b=v.next();!b.done;b=v.next())if(M=b.value,b=y.message.match(M.regexp)){y.params["params.error.original"]=b[0];v=M.groups;M={};for(Z=0;Z<v.length;Z++)M[v[Z]]=b[Z+1],y.params["params.error."+v[Z]]=b[Z+1];y.message=I.messageFn(M);break}y.params||(y.params={});z=YBp();y.params["params.errorServiceSignature"]="msg="+z.messageWeights.length+"&cb="+z.callbackWeights.length;y.params["params.serviceWorker"]="false";_.v7.document&&_.v7.document.querySelectorAll&&
(y.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new sN(cRk,"sample")).constructor!==sN&&(y.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(y);if(y.sampleWeight!==0&&!SB5.has(y.message)){if(x&&_.C("web_enable_error_204"))dvp(l===void 0?"ERROR":l,y);else{l=l===void 0?"ERROR":l;l==="ERROR"?(oU$.publish("handleError",y),_.C("record_app_crashed_web")&&P1H===0&&y.sampleWeight===1&&(P1H++,x={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.C("report_client_error_with_app_crash_ks")||(x.systemHealth={crashData:{clientError:{logMessage:{message:y.message}}}}),_.cW("appCrashed",x)),hyG++):l==="WARNING"&&oU$.publish("handleWarning",y);if(_.C("kevlar_gel_error_routing")){x=l;g=g===void 0?{}:g;b:{z=_.D(s0f);for(I=z.next();!I.done;I=z.next())if(sI(I.value.toLowerCase())){z=!0;break b}z=!1}if(z)g=void 0;else{I={stackTrace:y.stack};y.fileName&&(I.filename=y.fileName);z=y.lineNumber&&y.lineNumber.split?y.lineNumber.split(":"):[];z.length!==
0&&(z.length!==1||isNaN(Number(z[0]))?z.length!==2||isNaN(Number(z[0]))||isNaN(Number(z[1]))||(I.lineNumber=Number(z[0]),I.columnNumber=Number(z[1])):I.lineNumber=Number(z[0]));z={level:"ERROR_LEVEL_UNKNOWN",message:y.message,errorClassName:y.name,sampleWeight:y.sampleWeight};x==="ERROR"?z.level="ERROR_LEVEL_ERROR":x==="WARNING"&&(z.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};g.pageUrl=window.location.href;g.kvPairs=[];_.sZ("FEXP_EXPERIMENTS")&&(g.experimentIds=_.sZ("FEXP_EXPERIMENTS"));
b=_.sZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!KYH("web_disable_gel_stp_ecatcher_killswitch")&&b)for(v=_.D(Object.keys(b)),M=v.next();!M.done;M=v.next())M=M.value,g.kvPairs.push({key:M,value:String(b[M])});if(b=y.params)for(v=_.D(Object.keys(b)),M=v.next();!M.done;M=v.next())M=M.value,g.kvPairs.push({key:"client."+M,value:String(b[M])});b=_.sZ("SERVER_NAME");v=_.sZ("SERVER_VERSION");b&&v&&(g.kvPairs.push({key:"server.name",value:b}),g.kvPairs.push({key:"server.version",value:v}));g={errorMetadata:g,
stackTrace:I,logMessage:z}}g&&(_.cW("clientError",g),(x==="ERROR"||_.C("errors_flush_gel_always_killswitch"))&&_.SX())}_.C("suppress_error_204_logging")||dvp(l,y)}try{SB5.add(y.message)}catch(Y){}qBG++}}};
dvp=function(z,l){var I=l.params||{};z={urlParams:{a:"logerror",t:"jserror",type:l.name,msg:l.message.substr(0,250),line:l.lineNumber,level:z,"client.name":I.name},postParams:{url:_.sZ("PAGE_NAME",window.location.href),file:l.fileName},method:"POST"};I.version&&(z["client.version"]=I.version);if(z.postParams){l.stack&&(z.postParams.stack=l.stack);l=_.D(Object.keys(I));for(var b=l.next();!b.done;b=l.next())b=b.value,z.postParams["client."+b]=I[b];if(I=_.sZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(l=
_.D(Object.keys(I)),b=l.next();!b.done;b=l.next())b=b.value,z.postParams[b]=I[b];(I=_.sZ("LAVA_VERSION"))&&(z.postParams["lava.version"]=I);I=_.sZ("SERVER_NAME");l=_.sZ("SERVER_VERSION");I&&l&&(z.postParams["server.name"]=I,z.postParams["server.version"]=l)}_.fG(_.sZ("ECATCHER_REPORT_HOST","")+"/error_204",z)};
_.rRG=function(z,l){l=l===void 0?"ERROR":l;var I=I===void 0?{}:I;var b=_.W8("ytbin.polymer.shared.lib.tampering.info");b&&(b=b())&&(I["params.tamperingInfo"]=b.sort().join(","));_.dE(z,l,void 0,void 0,!0,I)};
_.hK=function(z){var l=_.AT.apply(1,arguments);z.args||(z.args=[]);Array.isArray(z.args)&&z.args.push.apply(z.args,_.ht(l))};
$vS=function(z){z.level="IGNORED"};
ey$=function(z,l){FE7.push(z);l();FE7.pop()};
$7=function(z,l){for(var I in l)l.hasOwnProperty(I)&&(z=_.rE(z,I,l[I]));return z};
_.wUQ=function(z,l,I){I=I===void 0?!1:I;if(!z)return null;if(z.adInfoDialogEndpoint||z.backstageImageUploadEndpoint||z.confirmDialogEndpoint||z.clientActionEndpoint||z.createBackstagePostDialogEndpoint||z.createCommentReplyDialogEndpoint||z.flowEndpoint||z.guideBuilderEndpoint||z.liveChatDialogEndpoint||z.modalEndpoint||z.openPopupAction||z.shareEndpoint||z.shareEntityEndpoint||z.showLiveChatItemEndpoint||z.subscriptionManagerEndpoint||z.unlimitedCreateFamilyEndpoint||z.unlimitedFamilyFlowEndpoint||
z.updateCommentDialogEndpoint||z.updateCommentReplyDialogEndpoint||z.userFeedbackEndpoint||z.videoEditorEndpoint||z.ypcCancelSurveyEndpoint)return l=_.OI("polymer_report_client_url_requested_rate"),!I&&Math.random()<l&&_.PW(new _.qB("urlForEndpoint used on client endpoint",z)),null;var b=_.OI("polymer_report_missing_web_navigation_endpoint_rate");if(z.liveChatEndpoint||z.liveChatReplayEndpoint)b=0;if(!z.commandMetadata&&!z.clickTrackingParams&&Math.random()<b){var v={},M;for(M in z)v[M]="1";_.PW(new _.qB("Missing navigation data",
v))}v="";if(z.commandMetadata&&z.commandMetadata.webCommandMetadata&&z.commandMetadata.webCommandMetadata.url)v=z.commandMetadata.webCommandMetadata.url;else if(z.searchEndpoint)Math.random()<b&&_.PW(new _.qB("Should not manually handle search",z)),v="/results?search_query="+encodeURIComponent(z.searchEndpoint.query).replace(/%20/g,"+"),z.searchEndpoint.params&&(v+="&sp="+z.searchEndpoint.params);else if(z.watchEndpoint)Math.random()<b&&_.PW(new _.qB("Should not manually handle watch",z)),v="/watch?v="+
z.watchEndpoint.videoId,z.watchEndpoint.playlistId&&(v+="&list="+z.watchEndpoint.playlistId),z.watchEndpoint.index&&(v+="&index="+z.watchEndpoint.index),z.watchEndpoint.startTimeSeconds&&(v+="&t="+z.watchEndpoint.startTimeSeconds);else if(z.browseEndpoint)b=z.browseEndpoint.browseId,(M=z.browseEndpoint.canonicalBaseUrl)?v=M:b&&(v=b.substr(0,2),v=v==="FE"?b==="FEwhat_to_watch"?"/":b==="FEmy_videos"?"/my_videos":"/feed/"+b.substr(2):v==="VL"?"/playlist?list="+b.substr(2):"/channel/"+b),v&&z.browseEndpoint.query&&
(v=$7(v+"/search",{query:z.browseEndpoint.query})),v&&z.browseEndpoint.params&&(v=$7(v,{params:z.browseEndpoint.params}));else{if(z.urlEndpoint)return z.urlEndpoint.url;z.signInEndpoint?(v="https://accounts.google.com/ServiceLogin",b={},_.h7.extend(b,l||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),l=b):z.uploadEndpoint?v="//www.youtube.com/upload":z.liveChatEndpoint?(v=z.liveChatEndpoint,b=_.h7.clone(v),_.Lu(v.continuation)&&(M=Object.keys(v.continuation)[0],
b.continuation=v.continuation[M].continuation),v=$7("/youtubei/v1/live_chat/get_live_chat",b)):z.liveChatReplayEndpoint?(v=_.h7.clone(z.liveChatReplayEndpoint),v.currentPlayerState&&(_.h7.extend(v,v.currentPlayerState),delete v.currentPlayerState),v=$7("/youtubei/v1/live_chat/get_live_chat_replay",v)):z.liveChatItemContextMenuEndpoint?v=$7("/youtubei/v1/live_chat/get_item_context_menu",z.liveChatItemContextMenuEndpoint):z.liveChatPurchaseMessageEndpoint?v=$7("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
z.liveChatPurchaseMessageEndpoint):z.openSuperStickerBuyFlowCommand?v=$7("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",z.openSuperStickerBuyFlowCommand):z.videoEditEndpoint?v=$7("/edit",{video_id:z.videoEditEndpoint.videoId}):z.liveDashboardEndpoint?v=z.liveDashboardEndpoint.videoId?$7("/live_dashboard",{v:z.liveDashboardEndpoint.videoId}):"/live_dashboard":z.signalNavigationEndpoint&&z.signalNavigationEndpoint.signal&&z.signalNavigationEndpoint.signal==="WEBCAM"?v="/webcam":z.getPdgBuyFlowCommand&&
(v=$7(z.getPdgBuyFlowCommand.buyflowApiPath,{params:z.getPdgBuyFlowCommand.params}))}return v||I?$7(v,l||{}):(_.PW(new _.qB("Error: Can't construct url for endpoint","keys:"+Object.keys(z).sort().join(","),z)),null)};
ARQ=function(z){if(z){if(z.browseEndpoint)return!!z.browseEndpoint.nofollow;if(z.watchEndpoint)return!!z.watchEndpoint.nofollow;if(z.urlEndpoint)return!!z.urlEndpoint.nofollow}return!1};
_.nUY=function(z,l){var I=l+z,b=WEp.get(I);if(b)return b;z=l+"-"+z.replace(/([A-Z])/g,"-$1").toLowerCase();WEp.set(I,z);return z};
LEf=function(z){var l=_.oY(z,"action")||_.oY(z,"command")||_.oY(z,"endpoint");if(!l)return null;l=_.nUY(l,"yt");_.k(z,_.eX)&&(l+="-"+_.k(z,_.eX).signal.toLowerCase().replace(/_/g,"-"));return l};
j0H=function(z){try{var l=Object.keys(z)}catch(v){return[]}for(var I=0;I<l.length;I++){var b=l[I];if(Uv5.test(b)||aX1.test(b))return V9G(z[b])}return[]};
V9G=function(z){return z.command?[z.command]:z.onExecutionAction?[z.onExecutionAction]:z.onResponseReceivedCommand?[z.onResponseReceivedCommand]:z.updateFlowCommand?[z.updateFlowCommand]:z.clientActions?z.clientActions:z.action?[z.action]:z.actions||z.commands||z.onResponseReceivedActions||z.onResponseReceivedCommands||z.onResponseReceivedEndpoints||[]};
zL7=function(z,l){l=l===void 0?!1:l;var I=_.pG().resolve(_.MB(wE));I||(I=new JRS,_.pG().addProvider({provide:wE,useValue:I}));return I&&z&&!_.h7.isEmpty(z)?I.getUrl(z,l):""};
l61=function(z,l,I){I=I===void 0?"":I;if(l){z.data=l;var b=zL7(l);b?(nD(z,b),ARQ(l)||!bf(b)?z.rel="nofollow":z.removeAttribute("rel"),_.k(l,_.AK)&&_.k(l,_.AK).target==="TARGET_NEW_WINDOW"?z.target="_blank":I?z.target=I:z.removeAttribute("target")):(z.removeAttribute("href"),z.removeAttribute("rel"),z.removeAttribute("target"))}};
_.ay=function(z,l){var I=Ij;if(iE())I67(z,function(){var M=_.AT.apply(0,arguments);Pb(I,function(){l.apply(null,_.ht(M))})});
else{var b=_.WW.getInstance(),v=mu1(l);GbG(function(){v.value=l});
_.Sm(function(){var M={},x=_.n2(b,(M[z]=function(){var g=_.AT.apply(0,arguments);Pb(I,function(){v.value.apply(v,_.ht(g))})},M));
return function(){var g={};_.UN(b,(g[z]="",g),x)}})}};
_.VK=function(z,l){return bjf(z,!1,l)};
_.z1=function(z,l){return bjf(z,!0,l)};
bjf=function(z,l,I){return iE()?vMQ(z,l,I):M2Q(z,l,I)};
M2Q=function(z,l,I){return dr(function(){return vMQ(z,l,I)})};
vMQ=function(z,l,I){var b=Dut(function(v){b.value=v;var M=function(){var x=g2(null);try{return I==null?void 0:I(v)}finally{g2(x)}}();
return function(){M==null||M()}});
b.__expectedTagName=z;b.__optional=l;b.isIdom=!iE();return b};
pt5=function(z){var l=Ij,I=XQ;return{getFn:function(){return function(b){l.isDisposed||Yz(function(){return uE(function(){return z(b)})},I)!==!0&&b.stopPropagation()}}}};
lq=function(z){if(typeof z.children==="function")return z.children(),null;z=_.D(z.children);for(var l=z.next();!l.done;l=z.next())l=l.value,l();return null};
Daf=function(z){var l;return((l=z.prototype)==null?void 0:l.render)===void 0};
xaG=function(z){return z.items.map(z.children)};
gMH=function(z,l,I){I=I===void 0?!1:I;Yz(function(){return OjG(z,l,I)})};
OjG=function(z,l,I){var b=null;Ko++;I=(I===void 0?0:I)?GDk:NnG;try{b=I(z,function(){IK(l)}),Bb(!1)}catch(v){throw Bb(!0),v;
}return b===null?z:b};
IK=function(z){if(z!==void 0&&z!==null)if(z instanceof RY)for(var l=Wb;no()!=null&&WGG in no()&&l.contains(no());)j3();else if(Array.isArray(z))for(l=_.D(z),z=l.next();!z.done;z=l.next())IK(z.value);else if(z instanceof Fr||z instanceof gH||"function"==typeof _.pP&&z instanceof _.pP)WIQ(z.toString());else if(_.gr(z)){if(no()!==z){var I,b;l=(b=(I=XQ)==null?void 0:I.name)!=null?b:"unknown";throw Error("hc`"+z.tagName+"`"+l);}j3()}else if(z!=null&&z.contentKind===EZ||z instanceof LD||xru(z))for(l=gO1(z),
l=Array.from(l.childNodes),l=_.D(l),z=l.next();!z.done;z=l.next())Wb.appendChild(z.value),j3();else if(ou(z)&&(z=z.toString()),I=typeof z,I==="boolean"||I==="number"||I==="string")WIQ(z);else if(typeof z==="function"){l=Wb;var v=no();v&&(v._isSignalTextNode||v._isSafeOrSanitizedHtmlNode)||drQ(l,v,z);j3()}else if(z.type===xaG)IK(z.type(Object.assign({},z.props,{children:z.children[0]})));else{tr.beforeVisit(z);if(typeof z.type==="string"){a:{z.__open||oF7(z.type,z.props.idomKey);v=Wb;for(l in z.props)if(z.props[l]!==
EMQ){var M=z.props[l];I=ls;I.push(l);I.push(M)}l=D_.attributes;l=l===void 0?bq:l;M=Wb;I=AX(M);Aeu(M,I,l);SU1(v,z.props,!0);if((z.props.skip||z.props.skipchildren)&&Wb.hasChildNodes())htG();else{if(z.type==="style"&&fVQ(z.children)===null){htG();l=void 0;break a}IK(z.children)}Pqt();z.__open&&(z.__open=!1);z4Y(v,z.props);l=v}return l}if(z.type===_.xP)IK(z.children);else if(!uo7(z)){l=z;try{Zjt(l)}catch(x){z=x,(M=D_.handleError)==null||M.call.apply(M,[D_].concat(_.ht(hX(z,(v=l.type)==null?void 0:v.TAG_NAME))))}l.__open&&
(Pqt(),l.__open=!1)}}};
HjG=function(z,l){var I;Daf(z)?I=new B8(l,z):I=new z(l);I.__type=z;I.__updateContext={nextState:I.state,isForced:!1};return I};
Zjt=function(z){var l=z.type,I=l.TAG_NAME;if(l===lq)z.props.children=z.children,l(z.props);else{z.children.length>0&&(z.props.children=z.children);var b;(b=z.props).idomKey||(b.idomKey=l);if(I){var v=oF7(I,z.props.idomKey);z.__open=!0;var M=v.__instance}M||(M=HjG(l,z.props),M.props=null,v&&(v.__instance=M,M.el=v));var x;I=((x=M.__updateContext)!=null?x:{nextState:M.state,isForced:!1}).nextState;M.__updateContext=void 0;l.getDerivedStateFromProps&&(I=l.getDerivedStateFromProps(z.props,I));M.props=
z.props;M.state=I;x=function(){var g=M;tr.beforeRender(g);var G=g.render(g.props);tr.afterRender(g,G);G?(g.props.idomKey&&(G.props.idomKey=g.props.idomKey),g=G):g=void 0;if(G=g)if(G.__open=z.__open,g=IK(G),z.__open=G.__open,!l.TAG_NAME)if(g)l.TAG_NAME=g.tagName.toLowerCase(),g.__instance=M,M.el=g;else{var u;if((u=M.hooks)==null?0:u.length){var Z;(Z=D_.handleError)==null||Z.call.apply(Z,[D_].concat(_.ht(hX(Error("od")))))}}M.didPatch();tr.didPatch(M)};
(I=M.functionComponent)?IAt(I,x,M.props.debugInstance):x()}};
uo7=function(z){var l=z.type;if(!Daf(l)||l===lq||l.componentType===qM)return!1;z.props.children=z.children.length>1?z.children:z.children[0];var I,b=(I=z.props.idomKey)!=null?I:z.type,v;if(no()&&((v=no()[y7])==null?void 0:v.key)===b){var M=no(),x=M[y7];if(!x)throw Error("gc`"+M.tagName);var g;(g=x.updateSignalsFromIdomProps)==null||g.call(x,z.props);yQS(x);return!0}if(f6t.has(l.name))throw g=l.name,l=(x=(M=XQ)==null?void 0:M.name)!=null?x:"unknown",Error("fc`"+g+"`"+l);sRx(z.type,z.props,z.children);
z.props.renderedFromIdom=!0;(g=IAt(z.type,function(){return iQ5(z.type,z.props)},z.props.debugInstance))&&C7Q(g);
return!0};
kDp=function(z){for(var l=0;l<CP(z).length;l++)j3()};
yQS=function(z){var l=RLu();if(l)kDp(l);else for(var I=0;I<z.numNodes;I++)(l=RLu())?kDp(l):j3()};
RLu=function(){var z;return(z=no()[y7])==null?void 0:z.sourceDynamicRange};
C7Q=function(z){z=bQp(z);z=Array.isArray(z)?z:[z];z=_.D(z);for(var l=z.next();!l.done;l=z.next())Wb.insertBefore(l.value,no()),j3()};
vC=function(z,l){var I=Ij,b=function(v){Pb(I,function(){l(v)})};
window.addEventListener(z,b,void 0);_.cb(function(){window.removeEventListener(z,b,void 0)})};
_.ps=function(z){var l=Ij;return function(I){var b,v=(b=z.observer)!=null?b:_.pG().resolve(Mh);b=max(I);var M=[];z.showOption&&M.push(v.observe(I,function(){Pb(l,function(){z.visibilityCallback(!0,I)})},z.showOption));
z.hideOption&&M.push(v.observe(I,function(){Pb(l,function(){z.visibilityCallback(!1,I)})},z.hideOption));
z.prescanOption&&z.prescanCallback&&M.push(v.observe(I,function(){Pb(l,function(){z.prescanCallback()})},z.prescanOption));
var x;b.visibilityMonitorKeys=((x=b.visibilityMonitorKeys)!=null?x:[]).concat(M)}};
max=function(z){var l;return(l=z.polymerController)!=null?l:z};
Xtx=function(z,l){var I=Knu;return _.N(_.xP,null,RnG(D_.enableLazyTsx,function(){return _.N(t2t,{id:I,value:z,children:l})},function(){var b=Bn5(I,z);
po(b);b=_.bE(b);try{return l()}finally{_.bE(b)}}))};
t2t=function(z){var l=z.children;z=Bn5(z.id,z.value);po(z);z=_.bE(z);try{return _.N(_.xP,null,mF(l()))}finally{_.bE(z)}};
Bn5=function(z,l){return Object.assign(Object.create(qcx),{id:z,contextValue:l})};
ij1=function(z){var l,I=Ij;_.oj(function(){var b=_.bE(I),v=OZ(!l);try{if(l)gMH(l,z.children(),!0);else if(l=mF(z.children()),!(l instanceof Element))throw Error("pd");}finally{OZ(v),_.bE(b)}});
return l};
_.Fn7=function(z,l){var I;l=S3(function(){var b=OZ(!0);Ko++;try{I=CP(z()),Bb(!1)}catch(v){throw Bb(!0),v;}finally{OZ(b)}},l===void 0?!1:l);
return[I,l]};
YcS=function(z){var l=new QFY;l.abort(z);return l.signal};
Tnp=function(){if(this.aborted){var z;throw(z=this.reason)!=null?z:new DOMException("signal is aborted without reason","AbortError");}};
dau=function(z){var l=new QFY;z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,I.aborted){l.abort(I.reason);break}else cQt.set(l.signal,l),Scu.add(I,l.signal);return l.signal};
oMt=function(){for(var z=_.D(Scu.get(this)),l=z.next();!l.done;l=z.next())cQt.get(l.value).abort(this.reason)};
P7Y=function(z){var l=new QFY;setTimeout(function(){l.abort(new DOMException("signal timed out","TimeoutError"))},z);
return l.signal};
sFQ=function(z){z=z.buf.charCodeAt(z.pos++);return hL7[z]};
DA=function(z){var l=0,I=0;do{var b=sFQ(z);l|=(b&31)<<I;I+=5}while(b&32);return l<0?l+4294967296:l};
$af=function(){var z=!0;z=z===void 0?!1:z;var l=l===void 0?!1:l;var I=I===void 0?{}:I;var b=I.cssRowKey||"",v=I.combinedSignature||"";!b&&window&&window._F_cssRowKey&&(b=window._F_cssRowKey,!v&&window._F_combinedSignature&&(v=window._F_combinedSignature));if(b&&typeof window._F_installCss!=="function")throw Error("zd");var M=I.loaderClass||_.xF,x=$WS("base-js");z=new M(uPf(wdS("",x)),b,v,z,l);l=I.useCors||x&&x.hasAttribute("crossorigin");x=I.corsMode||x&&x.getAttribute("crossorigin");l&&(z.useCors_=
l);x&&(z.corsMode_=x);I.urlMaxLength&&(z.urlMaxLength=I.urlMaxLength);I.fetchPriority&&(z.fetchPriority=I.fetchPriority);var g=oQ();g.JSC$10054_loader_=z;g.setBatchModeEnabled(!0);_.rQx=function(G){return Promise.resolve(g.load(G))}};
AQG=function(z,l,I){eLt(z,l);z[l][wtk].unshift(I)};
eLt=function(z,l){if(!z[l]||!z[l][wtk]){var I=z[l],b=I?[I]:[];z[l]=function(){for(var v=_.D(b),M=v.next();!M.done;M=v.next())M.value.apply(this,arguments)};
z[l][wtk]=b}};
WnY=function(z){if(!z)return[];var l=[];z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,Array.isArray(I)?l.push.apply(l,_.ht(WnY(I))):l.push(I);return l};
_.gS=function(z,l){if(z&&nMY.test(z)||z==="//")return z;if(Lnp===void 0){Lnp=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";Lnp=I.href==="http://a/c%20d"}catch(b){}}l||(l=document.baseURI||window.location.href);if(Lnp)try{return(new URL(z,l)).href}catch(b){return z}Od||(Od=document.implementation.createHTMLDocument("temp"),Od.base=Od.createElement("base"),Od.head.appendChild(Od.base),Od.anchor=Od.createElement("a"),Od.body.appendChild(Od.anchor));Od.base.href=l;Od.anchor.href=z;return Od.anchor.href||
z};
a6Y=function(z,l){return z.replace(Uat,function(I,b,v,M){return b+"'"+_.gS(v.replace(/["']/g,""),l)+"'"+M})};
V2H=function(z){return z.substring(0,z.lastIndexOf("/")+1)};
zVp=function(){jFQ=!1;for(var z=G1.length,l=0;l<z;l++){var I=G1[l];if(I)try{I()}catch(b){setTimeout(function(){throw b;})}}G1.splice(0,z);
JQS+=z};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(z){console.log("["+z.is+"]: registered")};
Iq$=function(z){lqu.push(z)};
Nh=function(z){return bIx[z]||(bIx[z]=z.indexOf("-")<0?z:z.replace(v1Q,function(l){return l[1].toUpperCase()}))};
Ed=function(z){return bIx[z]||(bIx[z]=z.replace(MK$,"-$1").toLowerCase())};
pJk=function(z,l){var I=l.parentInfo&&pJk(z,l.parentInfo);if(I)for(z=I.firstChild,I=0;z;z=z.nextSibling){if(l.parentIndex===I++)return z}else return z};
DNS=function(z,l){z=z._methodHost||z;return function(I){if(z[l])z[l](I,I.detail);else console.warn("listener method `"+l+"` not defined")}};
uq=function(z){return z.indexOf(".")>=0};
ZA=function(z){var l=z.indexOf(".");return l===-1?z:z.slice(0,l)};
xNu=function(z,l){return z.indexOf(l+".")===0};
HC=function(z,l){return l.indexOf(z+".")===0};
yd=function(z,l,I){return l+I.slice(z.length)};
OI$=function(z,l){return z===l||xNu(z,l)||HC(z,l)};
Cs=function(z){if(Array.isArray(z)){for(var l=[],I=0;I<z.length;I++)for(var b=z[I].toString().split("."),v=0;v<b.length;v++)l.push(b[v]);return l.join(".")}return z};
g1S=function(z){return Array.isArray(z)?Cs(z).split("."):z.toString().split(".")};
kF=function(z,l,I){l=g1S(l);for(var b=0;b<l.length;b++){if(!z)return;z=z[l[b]]}I&&(I.path=l.join("."));return z};
GYS=function(z,l,I){var b=g1S(l),v=b[b.length-1];if(b.length>1){for(l=0;l<b.length-1;l++)if(z=z[b[l]],!z)return;z[v]=I}else z[l]=I;return b.join(".")};
NxH=function(z,l,I){var b=z[l];if(!b)b=z[l]={};else if(!z.hasOwnProperty(l)&&(b=z[l]=Object.create(z[l]),I))for(var v in b)for(z=b[v],l=b[v]=Array(z.length),I=0;I<z.length;I++)l[I]=z[I];return b};
mI=function(z,l,I,b,v,M){if(l){var x=!1,g=RK++,G;for(G in I){var u=v?ZA(G):G;if(u=l[u])for(var Z=0,H=u.length,y=void 0;Z<H&&(y=u[Z]);Z++)y.info&&y.info.lastRun===g||v&&!E1$(G,y.trigger)||(y.info&&(y.info.lastRun=g),y.fn(z,G,I,b,y.info,v,M),x=!0)}return x}return!1};
E1$=function(z,l){if(l){var I=l.name;return I==z||!(!l.structured||!xNu(I,z))||!(!l.wildcard||!HC(I,z))}return!0};
uIt=function(z,l,I,b,v){l=typeof v.method==="string"?z[v.method]:v.method;I=v.property;l?l.call(z,z.__data[I],b[I]):v.dynamicFn||console.warn("observer method `"+v.method+"` not defined")};
ZI7=function(z,l,I,b){I={value:I,queueProperty:!0};b&&(I.path=b);(0,_.Ks)(z).dispatchEvent(new CustomEvent(l,{detail:I}))};
HIQ=function(z,l,I,b,v,M){M=(b=(M?ZA(l):l)!=l?l:null)?kF(z,b):z.__data[l];b&&M===void 0&&(M=I[l]);ZI7(z,v.eventName,M,b)};
yfu=function(z,l,I,b,v){I=z.__data[l];te&&(I=te(I,v.attrName,"attribute",z));z._propertyToAttribute(l,v.attrName,I)};
C9H=function(z){var l=z.constructor.__orderedComputedDeps;if(!l){l=new Map;for(var I=z.__computeEffects,b=fqY(z),v=b.counts,M=b.ready,x=b.total;b=M.shift();)l.set(b,l.size),(b=I[b])&&b.forEach(function(g){g=g.info.methodInfo;--x;--v[g]===0&&M.push(g)});
x!==0&&console.warn("Computed graph for "+z.localName+" incomplete; circular?");z.constructor.__orderedComputedDeps=l}return l};
fqY=function(z){var l=z.__computeInfo,I={};z=z.__computeEffects;var b=[],v=0,M;for(M in l){var x=l[M];v+=I[M]=x.args.filter(function(G){return!G.literal}).length+(x.dynamicFn?1:0)}for(var g in z)l[g]||b.push(g);
return{counts:I,ready:b,total:v}};
RVQ=function(z,l,I,b,v){l=kY$(z,l,I,b,v);if(l===BC)return!1;v=v.methodInfo;if(z.__dataHasAccessor&&z.__dataHasAccessor[v])return z._setPendingProperty(v,l,!0);z[v]=l;return!1};
tKQ=function(z,l,I,b,v,M,x){I.bindings=I.bindings||[];b={kind:b,target:v,parts:M,literal:x,isCompound:M.length!==1};I.bindings.push(b);b.target&&b.kind!="attribute"&&b.kind!="text"&&!b.isCompound&&b.parts[0].mode==="{"&&(I=b.parts[0],M=I.negate,b.listenerEvent=I.event||Ed(v)+"-changed",b.listenerNegate=M);v=l.nodeInfoList.length;for(I=0;I<b.parts.length;I++){var g=b.parts[I];g.compoundIndex=I;M=z;x=l;var G=b,u=g,Z=v;if(!u.literal)if(G.kind==="attribute"&&G.target[0]==="-")console.warn("Cannot set attribute "+
G.target+' because "-" is not a valid attribute starting character');else for(g=u.dependencies,G={index:Z,binding:G,part:u,evaluator:M},u=0;u<g.length;u++)Z=g[u],typeof Z=="string"&&(Z=mNf(Z),Z.wildcard=!0),M._addTemplatePropertyEffect(x,Z.rootProperty,{fn:KO7,info:G,trigger:Z})}};
KO7=function(z,l,I,b,v,M,x){x=x[v.index];var g=v.binding,G=v.part;M&&G.source&&l.length>G.source.length&&g.kind=="property"&&!g.isCompound&&x.__isPropertyEffectsClient&&x.__dataHasAccessor&&x.__dataHasAccessor[g.target]?(I=I[l],l=yd(G.source,g.target,l),x._setPendingPropertyOrPath(l,I,!1,!0)&&z._enqueueClient(x)):(l=v.evaluator._evaluateBinding(z,G,l,I,b,M),l!==BC&&(g.isCompound&&(I=x.__dataCompoundStorage[g.target],I[G.compoundIndex]=l,l=I.join("")),g.kind==="attribute"||g.target!=="textContent"&&
(g.target!=="value"||x.localName!=="input"&&x.localName!=="textarea")||(l=l==void 0?"":l),G=l,te&&(G=te(G,g.target,g.kind,x)),g.kind=="attribute"?z._valueToNodeAttribute(x,G,g.target):(g=g.target,x.__isPropertyEffectsClient&&x.__dataHasAccessor&&x.__dataHasAccessor[g]?x.__readOnly&&x.__readOnly[g]||x._setPendingProperty(g,G)&&z._enqueueClient(x):z._setUnmanagedPropertyToNode(x,g,G))))};
Bxx=function(z,l,I){if(I.listenerEvent){var b=I.parts[0];z.addEventListener(I.listenerEvent,function(v){var M=I.target,x=b.source,g=b.negate,G=v.detail,u=G&&G.path;u?(x=yd(M,x,u),v=G&&G.value):v=v.currentTarget[M];l.__readOnly&&l.__readOnly[x]||!l._setPendingPropertyOrPath(x,g?!v:v,!0,!!u)||G&&G.queueProperty||l._invalidateProperties()})}};
XJG=function(z,l,I,b,v,M){M=l.static||M&&(typeof M!=="object"||M[l.methodName]);v={methodName:l.methodName,args:l.args,methodInfo:v,dynamicFn:M};for(var x=0,g=void 0;x<l.args.length&&(g=l.args[x]);x++)g.literal||z._addPropertyEffect(g.rootProperty,I,{fn:b,info:v,trigger:g});M&&z._addPropertyEffect(l.methodName,I,{fn:b,info:v});return v};
kY$=function(z,l,I,b,v){b=z._methodHost||z;var M=b[v.methodName];if(M)return z=z._marshalArgs(v.args,l,I),z===BC?BC:M.apply(b,z);v.dynamicFn||console.warn("method `"+v.methodName+"` not defined")};
q21=function(z){for(var l="",I=0;I<z.length;I++)l+=z[I].literal||"";return l};
QU7=function(z){if(z=z.match(/([^\s]+?)\(([\s\S]*)\)/)){var l={methodName:z[1],static:!0,args:iIu};return z[2].trim()?FOu(z[2].replace(/\\,/g,"&comma;").split(","),l):l}return null};
FOu=function(z,l){l.args=z.map(function(I){I=mNf(I);I.literal||(l.static=!1);return I},this);
return l};
mNf=function(z){z=z.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var l={name:z,value:"",literal:!1},I=z[0];I==="-"&&(I=z[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':l.value=z.slice(1,-1);l.literal=!0;break;case "#":l.value=Number(z),l.literal=!0}l.literal||(l.rootProperty=ZA(z),l.structured=uq(z),l.structured&&(l.wildcard=z.slice(-2)==".*",l.wildcard&&(l.name=z.slice(0,-2))));return l};
Y2Q=function(z,l,I){z=kF(z,I);z===void 0&&(z=l[I]);return z};
Txu=function(z,l,I,b){b={indexSplices:b};XY&&!z._overrideLegacyUndefined&&(l.splices=b);z.notifyPath(I+".splices",b);z.notifyPath(I+".length",l.length);XY&&!z._overrideLegacyUndefined&&(b.indexSplices=[])};
qh=function(z,l,I,b,v,M){Txu(z,l,I,[{index:b,addedCount:v,removed:M,object:l,type:"splice"}])};
cf1=function(z){z=a6Y((z.body?z.body:z).textContent,z.baseURI);var l=document.createElement("style");l.textContent=z;return l};
dNt=function(z){z=z.trim().split(/\s+/);for(var l=[],I=0;I<z.length;I++)l.push.apply(l,_.ht(S2k(z[I])));return l};
S2k=function(z){var l=iq.import(z);if(!l)return console.warn("Could not find style data in module named",z),[];if(l._styles===void 0){z=[];z.push.apply(z,_.ht(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l)));var I=l.querySelector("template");I&&z.push.apply(z,_.ht(o1$(I,l.assetpath)));l._styles=z}return l._styles};
o1$=function(z,l){if(!z._styles){for(var I=[],b=z.content.querySelectorAll("style"),v=0;v<b.length;v++){var M=b[v],x=M.getAttribute("include");x&&I.push.apply(I,_.ht(dNt(x).filter(function(g,G,u){return u.indexOf(g)===G})));
l&&(M.textContent=a6Y(M.textContent,l));I.push(M)}z._styles=I}return z._styles};
P9x=function(z){return(z=iq.import(z))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(z){var l=[];z=z.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<z.length;I++){var b=z[I];if(b.import){var v=b.import;if((b=b.hasAttribute("shady-unscoped"))&&!v._unscopedStyle){var M=cf1(v);M.setAttribute("shady-unscoped","");v._unscopedStyle=M}else v._style||(v._style=cf1(v));l.push(b?v._unscopedStyle:v._style)}}return l};
sUQ=function(z){z=z.trim().split(/\s+/);for(var l="",I=0;I<z.length;I++)l+=hV1(z[I]);return l};
hV1=function(z){var l=iq.import(z);if(l&&l._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l),b=l.querySelector("template");b&&(I+=rfH(b,l.assetpath));l._cssText=I||null}l||console.warn("Could not find style data in module named",z);return l&&l._cssText||""};
rfH=function(z,l){var I="";z=o1$(z,l);for(l=0;l<z.length;l++){var b=z[l];b.parentNode&&b.parentNode.removeChild(b);I+=b.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(z){var l="";z=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z);for(var I=0;I<z.length;I++)l+=z[I].textContent;return l};
Qd=function(z,l){return{index:z,removed:[],addedCount:l}};
eVx=function(z,l,I,b){var v=0,M=0,x=0,g=0,G=Math.min(l-v,b-M);if(v==0&&M==0)a:{for(x=0;x<G;x++)if(z[x]!==I[x])break a;x=G}if(l==z.length&&b==I.length){g=z.length;for(var u=I.length,Z=0;Z<G-x&&$N$(z[--g],I[--u]);)Z++;g=Z}v+=x;M+=x;l-=g;b-=g;if(l-v==0&&b-M==0)return[];if(v==l){for(l=Qd(v,0);M<b;)l.removed.push(I[M++]);return[l]}if(M==b)return[Qd(v,l-v)];G=v;x=M;b=b-x+1;g=l-G+1;l=Array(b);for(u=0;u<b;u++)l[u]=Array(g),l[u][0]=u;for(u=0;u<g;u++)l[0][u]=u;for(u=1;u<b;u++)for(Z=1;Z<g;Z++)if(z[G+Z-1]===
I[x+u-1])l[u][Z]=l[u-1][Z-1];else{var H=l[u-1][Z]+1,y=l[u][Z-1]+1;l[u][Z]=H<y?H:y}G=l.length-1;x=l[0].length-1;b=l[G][x];for(z=[];G>0||x>0;)G==0?(z.push(2),x--):x==0?(z.push(3),G--):(g=l[G-1][x-1],u=l[G-1][x],Z=l[G][x-1],H=u<Z?u<g?u:g:Z<g?Z:g,H==g?(g==b?z.push(0):(z.push(1),b=g),G--,x--):H==u?(z.push(3),G--,b=u):(z.push(2),x--,b=Z));z.reverse();l=void 0;G=[];for(x=0;x<z.length;x++)switch(z[x]){case 0:l&&(G.push(l),l=void 0);v++;M++;break;case 1:l||(l=Qd(v,0));l.addedCount++;v++;l.removed.push(I[M]);
M++;break;case 2:l||(l=Qd(v,0));l.addedCount++;v++;break;case 3:l||(l=Qd(v,0)),l.removed.push(I[M]),M++}l&&G.push(l);return G};
wJH=function(z,l){return eVx(z,z.length,l,l.length)};
$N$=function(z,l){return z===l};
WOQ=function(z){if(z instanceof AfQ)return z.value;throw Error("Hd`"+z);};
n17=function(z,l){for(var I in l)I===null?z.style.removeProperty(I):z.style.setProperty(I,l[I])};
LOx=function(z,l){return(z=window.getComputedStyle(z).getPropertyValue(l))?z.trim():""};
jUx=function(z){requestAnimationFrame(function(){UNt?UNt(z):(aq5||(aq5=new Promise(function(l){VKf=l}),document.readyState==="complete"?VKf():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&VKf()})),aq5.then(function(){z&&z()}))})};
lsu=function(z){Jfk=z&&z.shimcssproperties?!1:zhG||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
pxp=function(z){if(!(Isf.indexOf(z)>-1)&&z!=="touchend"&&bO1&&vxH&&MyH)return{passive:!0}};
gxu=function(z){for(var l=D5x?["click"]:Isf,I=0,b;I<l.length;I++)b=l[I],z?(x5f.length=0,document.addEventListener(b,OOu,!0)):document.removeEventListener(b,OOu,!0)};
YF=function(z){var l=z.type;return Isf.indexOf(l)>-1?l==="mousemove"?(l=z.buttons===void 0?1:z.buttons,z instanceof window.MouseEvent&&!Gsx&&(l=NGY[z.which]||0),!!(l&1)):(z.button===void 0?0:z.button)===0:!1};
ExG=function(z){if(z.type==="click"){if(z.detail===0)return!0;var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z);if(!l.nodeType||l.nodeType!==Node.ELEMENT_NODE)return!0;l=l.getBoundingClientRect();var I=z.pageX;z=z.pageY;return!(I>=l.left&&I<=l.right&&z>=l.top&&z<=l.bottom)}return!1};
ul1=function(z,l,I){z.movefn=l;z.upfn=I;document.addEventListener("mousemove",l);document.addEventListener("mouseup",I)};
T1=function(z){document.removeEventListener("mousemove",z.movefn);document.removeEventListener("mouseup",z.upfn);z.movefn=null;z.upfn=null};
ZOS=function(z,l){for(var I=document.elementFromPoint(z,l),b=I;b&&b.shadowRoot&&!window.ShadyDOM;){var v=b;b=b.shadowRoot.elementFromPoint(z,l);if(v===b)break;b&&(I=b)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z){var l=HOf(z);return l.length>0?l[0]:z.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z){var l=z.type,I=z.currentTarget.__polymerGestures;if(I&&(I=I[l])){if(!z.__polymerGesturesHandled&&(z.__polymerGesturesHandled={},l.slice(0,5)==="touch")){var b=z.changedTouches[0];l==="touchstart"&&z.touches.length===1&&(yO7=b.identifier);if(yO7!==b.identifier)return;bO1||(l==="touchstart"||l==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z)}b=
z.__polymerGesturesHandled;if(!b.skip){for(var v=0,M;v<cC.length;v++)M=cC[v],I[M.name]&&!b[M.name]&&M.flow&&M.flow.start.indexOf(z.type)>-1&&M.reset&&M.reset();for(v=0;v<cC.length;v++)M=cC[v],I[M.name]&&!b[M.name]&&(b[M.name]=!0,M[l](z))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z){var l=z.changedTouches[0],I=z.type;if(I==="touchstart")fsY=l.clientX,CI7=l.clientY,ksp=!1;else if(I==="touchmove"&&!ksp){ksp=!0;I="auto";for(var b=HOf(z),v=0,M;v<b.length;v++)if(M=b[v],M.__polymerGesturesTouchAction){I=M.__polymerGesturesTouchAction;break}b=!1;v=Math.abs(fsY-l.clientX);l=Math.abs(CI7-l.clientY);z.cancelable&&(I==="none"?b=!0:I==="pan-x"?b=l>v:I==="pan-y"&&(b=v>l));b?z.preventDefault():
Sj("track")}};
oK=function(z,l,I){return dS[l]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,l,I),!0):!1};
sd=function(z,l,I){return dS[l]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,l,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z,l,I){var b=dS[l],v=b.deps,M=b.name,x=z.__polymerGestures;x||(z.__polymerGestures=x={});for(var g=0,G,u;g<v.length;g++)G=v[g],D5x&&Isf.indexOf(G)>-1&&G!=="click"||((u=x[G])||(x[G]=u={_count:0}),u._count===0&&z.addEventListener(G,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,pxp(G)),u[M]=(u[M]||0)+1,u._count=(u._count||0)+1);z.addEventListener(l,I);b.touchAction&&_.rS(z,b.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z,l,I){var b=dS[l],v=b.deps;b=b.name;var M=z.__polymerGestures;if(M)for(var x=0,g,G;x<v.length;x++)g=v[x],(G=M[g])&&G[b]&&(G[b]=(G[b]||1)-1,G._count=(G._count||1)-1,G._count===0&&z.removeEventListener(g,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,pxp(g)));z.removeEventListener(l,I)};
RhQ=function(z){cC.push(z);for(var l=0;l<z.emits.length;l++)dS[z.emits[l]]=z};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z){for(var l=0,I;l<cC.length;l++){I=cC[l];for(var b=0,v;b<I.emits.length;b++)if(v=I.emits[b],v===z)return I}return null};
_.rS=function(z,l){bO1&&z instanceof HTMLElement&&$F.run(function(){z.style.touchAction=l});
z.__polymerGesturesTouchAction=l};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(z,l,I){l=new Event(l,{bubbles:!0,cancelable:!0,composed:!0});l.detail=I;(0,_.Ks)(z).dispatchEvent(l);l.defaultPrevented&&(z=I.preventer||I.sourceEvent)&&z.preventDefault&&z.preventDefault()};
Sj=function(z){z=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z);z.info&&(z.info.prevent=!0)};
ej=function(z,l,I,b){l&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,z,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:b,prevent:function(v){return Sj(v)}})};
m5$=function(z,l,I){if(z.prevent)return!1;if(z.started)return!0;I=Math.abs(z.y-I);return Math.abs(z.x-l)>=5||I>=5};
Kxx=function(z,l,I){if(l){var b=z.moves[z.moves.length-2],v=z.moves[z.moves.length-1],M=v.x-z.x,x=v.y-z.y,g=0;if(b){var G=v.x-b.x;g=v.y-b.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,"track",{state:z.state,x:I.clientX,y:I.clientY,dx:M,dy:x,ddx:G,ddy:g,sourceEvent:I,hover:function(){return ZOS(I.clientX,I.clientY)}})}};
BGQ=function(z,l,I){var b=Math.abs(l.clientX-z.x),v=Math.abs(l.clientY-z.y),M=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||l);!M||ty5[M.localName]&&M.hasAttribute("disabled")||!(isNaN(b)||isNaN(v)||b<=25&&v<=25||ExG(l))||z.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,"tap",{x:l.clientX,y:l.clientY,sourceEvent:l,preventer:I})};
Xxu=function(z,l,I,b,v){var M;v&&(M=typeof I==="object"&&I!==null)&&(b=z.__dataTemp[l]);b=b!==I&&(b===b||I===I);M&&b&&(z.__dataTemp[l]=I);return b};
iOS=function(){if(wS&&!Ae){if(!q9S){q9S=!0;var z=document.createElement("style");z.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(z)}return!0}return!1};
QXQ=function(){return FxS};
Y9Q=function(z,l){FxS=z;Object.setPrototypeOf(z,l.prototype);new l;FxS=null};
TGt=function(z,l){for(var I=0;I<l.length;I++){var b=l[I];if(!!z!=!!b.__hideTemplateChildren__)if(b.nodeType===Node.TEXT_NODE)z?(b.__polymerTextContent__=b.textContent,b.textContent=""):b.textContent=b.__polymerTextContent__;else if(b.localName==="slot")if(z)b.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Ks)((0,_.Ks)(b).parentNode).replaceChild(b.__polymerReplaced__,b);else{var v=b.__polymerReplaced__;v&&(0,_.Ks)((0,_.Ks)(v).parentNode).replaceChild(b,v)}else b.style&&(z?(b.__polymerDisplay__=
b.style.display,b.style.display="none"):b.style.display=b.__polymerDisplay__);b.__hideTemplateChildren__=z;b._showHideChildren&&b._showHideChildren(z)}};
cOY=function(z){return(z=z.__dataHost)&&z._methodHost||z};
oxt=function(z,l,I){var b=I.mutableData?S9k:WC;ns.mixin&&(b=ns.mixin(b));var v=function(){return b.apply(this,arguments)||this};
_.m(v,b);v.prototype.__templatizeOptions=I;v.prototype._bindTemplate(z);d5Y(v,z,l,I);return v};
$5f=function(z,l,I,b){var v=I.forwardHostProp;if(v&&l.hasHostProps){var M=z.localName=="template",x=l.templatizeTemplateClass;if(!x){if(M){var g=I.mutableData?PI1:hhk;x=function(){return g.apply(this,arguments)||this};
_.m(x,g);x=l.templatizeTemplateClass=x}else{var G=z.constructor;x=function(){return G.apply(this,arguments)||this};
_.m(x,G);x=l.templatizeTemplateClass=x}var u=l.hostProps,Z;for(Z in u)x.prototype._addPropertyEffect("_host_"+Z,x.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:sXY(v)}),x.prototype._createNotifyingProperty("_host_"+Z);Ls&&b&&rOt(l,I,b)}z.__dataProto&&Object.assign(z.__data,z.__dataProto);if(M)Y9Q(z,x),z.__dataTemp={},z.__dataPending=null,z.__dataOld=null,z._enableProperties();else{Object.setPrototypeOf(z,x.prototype);l=l.hostProps;for(var H in l)H="_host_"+H,H in z&&(l=z[H],delete z[H],z.__data[H]=
l)}}};
sXY=function(z){return function(l,I,b){z.call(l.__templatizeOwner,I.substring(6),b[I])}};
d5Y=function(z,l,I,b){var v=I.hostProps||{},M;for(M in b.instanceProps){delete v[M];var x=b.notifyInstanceProp;x&&z.prototype._addPropertyEffect(M,z.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ehp(x)})}if(b.forwardHostProp&&l.__dataHost)for(var g in v)I.hasHostProps||(I.hasHostProps=!0),z.prototype._addPropertyEffect(g,z.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wx7()})};
ehp=function(z){return function(l,I,b){z.call(l.__templatizeOwner,l,I,b[I])}};
wx7=function(){return function(z,l,I){z.__dataHost._setPendingPropertyOrPath("_host_"+l,I[l],!0,!0)}};
ns=function(z,l,I){if(Ud&&!cOY(z))throw Error("Nd");I=I||{};if(z.__templatizeOwner)throw Error("Od");z.__templatizeOwner=l;var b=(l?l.constructor:WC)._parseTemplate(z),v=b.templatizeInstanceClass;v||(v=oxt(z,b,I),b.templatizeInstanceClass=v);var M=cOY(z);$5f(z,b,I,M);I=function(){return v.apply(this,arguments)||this};
_.m(I,v);I.prototype._methodHost=M;I.prototype.__dataHost=z;I.prototype.__templatizeOwner=l;I.prototype.__hostProps=b.hostProps;return I};
rOt=function(z,l,I){I=I.constructor._properties;z=z.propertyEffects;l=l.instanceProps;for(var b in z)if(!(I[b]||l&&l[b]))for(var v=z[b],M=0;M<v.length;M++){var x=v[M].info.part;if(!x.signature||!x.signature.static){console.warn("Property '"+b+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
AOQ=function(z,l){for(var I;l;)if(I=l.__dataHost?l:l.__templatizeInstance)if(I.__dataHost!=z)l=I.__dataHost;else return I;else l=(0,_.Ks)(l).parentNode;return null};
aK=function(z){return z.localName==="slot"};
Wxt=function(){for(var z=Vd.prototype,l="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},b=0;b<l.length;I={method$jscomp$33:void 0},b++)I.method$jscomp$33=l[b],z[I.method$jscomp$33]=function(v){return function(){return this.node[v.method$jscomp$33].apply(this.node,arguments)}}(I)};
nxp=function(z,l){for(var I={},b=0;b<l.length;I={name$jscomp$448:void 0},b++)I.name$jscomp$448=l[b],Object.defineProperty(z,I.name$jscomp$448,{get:function(v){return function(){return this.node[v.name$jscomp$448]}}(I),
configurable:!0})};
Lxp=function(){for(var z=Vd.prototype,l=["textContent","innerHTML","className"],I={},b=0;b<l.length;I={name$jscomp$449:void 0},b++)I.name$jscomp$449=l[b],Object.defineProperty(z,I.name$jscomp$449,{get:function(v){return function(){return this.node[v.name$jscomp$449]}}(I),
set:function(v){return function(M){this.node[v.name$jscomp$449]=M}}(I),
configurable:!0})};
U57=function(){jj=document.documentElement.getAttribute("dir");jj=document.documentElement.getAttribute("dir");for(var z=0;z<Je.length;z++){var l=Je[z];l.__autoDirOptOut||l.setAttribute("dir",jj)}};
JOY=function(){zR=!0;requestAnimationFrame(function(){zR=!1;as7(Vyx);setTimeout(function(){for(var z=0,l=lM.length;z<l;z++)jX1(lM.shift())})})};
as7=function(z){for(;z.length;)jX1(z.shift())};
jX1=function(z){var l=z[0],I=z[1];z=z[2];try{I.apply(l,z)}catch(b){setTimeout(function(){throw b;})}};
_.z3u=function(z,l,I){zR||JOY();Vyx.push([z,l,I])};
_.IR=function(z,l,I){zR||JOY();lM.push([z,l,I])};
bNx=function(z,l){l=l===void 0?!1:l;if(!lbQ||!Ibu||!lbQ.handlesDynamicScoping)return null;var I=Ibu.ScopingShim;if(!I)return null;var b=I.scopeForNode(z),v=(0,_.Ks)(z).getRootNode(),M=function(x){if((0,_.Ks)(x).getRootNode()===v){var g=Array.from(lbQ.nativeMethods.querySelectorAll.call(x,"*"));g.push(x);for(x=0;x<g.length;x++){var G=g[x];if((0,_.Ks)(G).getRootNode()===v){var u=I.currentScopeForNode(G);u!==b&&(u!==""&&I.unscopeNode(G,u),I.scopeNode(G,b))}}}};
M(z);return l?(l=new MutationObserver(function(x){for(var g=0;g<x.length;g++)for(var G=x[g],u=0;u<G.addedNodes.length;u++){var Z=G.addedNodes[u];Z.nodeType===Node.ELEMENT_NODE&&M(Z)}}),l.observe(z,{childList:!0,
subtree:!0}),l):null};
vA$=function(){document.body.removeAttribute("unresolved")};
ONx=function(z){var l=z=z.replace(M1k,"").replace(pcf,""),I=new DiH;I.start=0;I.end=l.length;for(var b=I,v=0,M=l.length;v<M;v++)if(l[v]==="{"){b.rules||(b.rules=[]);var x=b,g=x.rules[x.rules.length-1]||null;b=new DiH;b.start=v+1;b.parent=x;b.previous=g;x.rules.push(b)}else l[v]==="}"&&(b.end=v+1,b=b.parent||I);return xiQ(I,z)};
xiQ=function(z,l){var I=l.substring(z.start,z.end-1);z.parsedCssText=z.cssText=I.trim();z.parent&&(I=l.substring(z.previous?z.previous.end:z.parent.start,z.start-1),I=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I),I=I.replace(gAp," "),I=I.substring(I.lastIndexOf(";")+1),I=z.parsedSelector=z.selector=I.trim(),z.atRule=I.indexOf("@")===0,z.atRule?I.indexOf("@media")===0?z.type=4:I.match(GnY)&&(z.type=7,z.keyframesName=z.selector.split(gAp).pop()):I.indexOf("--")===
0?z.type=1E3:z.type=1);if(I=z.rules)for(var b=0,v=I.length,M=void 0;b<v&&(M=I[b]);b++)xiQ(M,l);return z};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(z){return z.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var l=arguments[1],I=6-l.length;I--;)l="0"+l;return"\\"+l})};
NyS=function(z,l,I){I=I===void 0?"":I;var b="";if(z.cssText||z.rules){var v=z.rules;if(v&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(v))for(var M=0,x=v.length,g=void 0;M<x&&(g=v[M]);M++)b=NyS(g,l,b);else l?l=z.cssText:(l=z.cssText,l=l.replace(EA1,"").replace(uzH,""),l=l.replace(ZNx,"").replace(HN7,"")),(b=l.trim())&&(b="  "+b+"\n")}b&&(z.selector&&(I+=z.selector+" {\n"),I+=b,z.selector&&(I+="}\n\n"));return I};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(z){z=z[0];return!!z&&!!z.selector&&z.selector.indexOf("--")===0};
fbY=function(z){if(z=y5u[z])z._applyShimCurrentVersion=z._applyShimCurrentVersion||0,z._applyShimValidatingVersion=z._applyShimValidatingVersion||0,z._applyShimNextVersion=(z._applyShimNextVersion||0)+1};
C2S=function(z){return z._applyShimCurrentVersion===z._applyShimNextVersion};
R3k=function(z){z._applyShimValidatingVersion=z._applyShimNextVersion;z._validating||(z._validating=!0,knf.then(function(){z._applyShimCurrentVersion=z._applyShimNextVersion;z._validating=!1}))};
KTp=function(z){if(!z)return"";typeof z==="string"&&(z=ONx(z));return NyS(z,miS)};
t1x=function(z){!z.__cssRules&&z.textContent&&(z.__cssRules=ONx(z.textContent));return z.__cssRules||null};
XcQ=function(z,l,I,b){if(z){var v=!1,M=z.type;if(b&&M===4){var x=z.selector.match(ByG);x&&(window.matchMedia(x[1]).matches||(v=!0))}M===1?l(z):I&&M===7?I(z):M===1E3&&(v=!0);if((z=z.rules)&&!v)for(v=0,M=z.length,x=void 0;v<M&&(x=z[v]);v++)XcQ(x,l,I,b)}};
qzt=function(z,l){var I=z.indexOf("var(");if(I===-1)return l(z,"","","");a:{var b=0;var v=I+3;for(var M=z.length;v<M;v++)if(z[v]==="(")b++;else if(z[v]===")"&&--b===0)break a;v=-1}b=z.substring(I+4,v);I=z.substring(0,I);z=qzt(z.substring(v+1),l);M=b.indexOf(",");if(M===-1)return l(I,b.trim(),"",z);v=b.substring(0,M).trim();b=b.substring(M+1).trim();return l(I,v,b,z)};
iNH=function(z){if(bM!==void 0)return bM;if(z.__cssBuild===void 0){var l=z.getAttribute("css-build");if(l)z.__cssBuild=l;else{a:{l=z.localName==="template"?z.content.firstChild:z.firstChild;if(l instanceof Comment&&(l=l.textContent.trim().split(":"),l[0]==="css-build")){l=l[1];break a}l=""}if(l!==""){var I=z.localName==="template"?z.content.firstChild:z.firstChild;I.parentNode.removeChild(I)}z.__cssBuild=l}}return z.__cssBuild||""};
QqQ=function(z,l,I,b){for(var v=l._noAccessors,M=Object.getOwnPropertyNames(l),x=0;x<M.length;x++){var g=M[x];if(!(g in b))if(v)z[g]=l[g];else{var G=Object.getOwnPropertyDescriptor(l,g);G&&(G.configurable=!0,Object.defineProperty(z,g,G))}}for(var u in FTu)l[u]&&(I[u]=I[u]||[],I[u].push(l[u]))};
Yzp=function(z,l,I){l=l||[];for(var b=z.length-1;b>=0;b--){var v=z[b];v?Array.isArray(v)?Yzp(v,l):l.indexOf(v)<0&&(!I||I.indexOf(v)<0)&&l.unshift(v):console.warn("behavior is null, check for missing or 404 import")}return l};
TyY=function(z,l){for(var I in l){var b=z[I],v=l[I];z[I]=!("value"in v)&&b&&"value"in b?Object.assign({value:b.value},v):v}};
dix=function(z,l,I){var b={},v=function(){return l.apply(this,arguments)||this};
_.m(v,l);v._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(x)for(var G=0,u;G<x.length;G++)u=x[G],u.properties&&this.createProperties(u.properties),u.observers&&this.createObservers(u.observers,u.properties);z.properties&&this.createProperties(z.properties);z.observers&&this.createObservers(z.observers,z.properties);this._prepareTemplate()}else l._finalizeClass.call(this)};
v.prototype.created=function(){l.prototype.created.call(this);var G=b.created;if(G)for(var u=0;u<G.length;u++)G[u].call(this)};
v.prototype._registered=function(){var G=v.prototype;if(!G.hasOwnProperty("__hasRegisterFinished")){G.__hasRegisterFinished=!0;l.prototype._registered.call(this);wS&&g(G);G=Object.getPrototypeOf(this);var u=b.beforeRegister;if(u)for(var Z=0;Z<u.length;Z++)u[Z].call(G);if(u=b.registered)for(Z=0;Z<u.length;Z++)u[Z].call(G)}};
v.prototype._applyListeners=function(){l.prototype._applyListeners.call(this);var G=b.listeners;if(G)for(var u=0;u<G.length;u++){var Z=G[u];if(Z)for(var H in Z)this._addMethodEventListenerToNode(this,H,Z[H])}};
v.prototype._ensureAttributes=function(){var G=b.hostAttributes;if(G)for(var u=G.length-1;u>=0;u--){var Z=G[u],H;for(H in Z)this._ensureAttribute(H,Z[H])}l.prototype._ensureAttributes.call(this)};
v.prototype.ready=function(){l.prototype.ready.call(this);var G=b.ready;if(G)for(var u=0;u<G.length;u++)G[u].call(this)};
v.prototype.attached=function(){l.prototype.attached.call(this);var G=b.attached;if(G)for(var u=0;u<G.length;u++)G[u].call(this)};
v.prototype.detached=function(){l.prototype.detached.call(this);var G=b.detached;if(G)for(var u=0;u<G.length;u++)G[u].call(this)};
v.prototype.attributeChanged=function(G,u,Z){l.prototype.attributeChanged.call(this);var H=b.attributeChanged;if(H)for(var y=0;y<H.length;y++)H[y].call(this,G,u,Z)};
_.vP.Object.defineProperties(v,{properties:{configurable:!0,enumerable:!0,get:function(){var G={};if(x)for(var u=0;u<x.length;u++)TyY(G,x[u].properties);TyY(G,z.properties);return G}},
observers:{configurable:!0,enumerable:!0,get:function(){var G=[];if(x)for(var u=0,Z;u<x.length;u++)Z=x[u],Z.observers&&(G=G.concat(Z.observers));z.observers&&(G=G.concat(z.observers));return G}}});
if(I){Array.isArray(I)||(I=[I]);var M=l.prototype.behaviors;var x=Yzp(I,null,M);v.prototype.behaviors=M?M.concat(I):x}var g=function(G){if(x)for(var u=x,Z=0;Z<u.length;Z++)QqQ(G,u[Z],b,c57);QqQ(G,z,b,SzQ)};
wS||g(v.prototype);v.generatedFrom=z;return v};
sqx=function(z){var l=typeof z!=="string"?z:{is:z,notifyObserversOnUndefined:!0};l.fastInit===void 0&&(l.fastInit=!0);return function(I){if(!l.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.Mr)throw Error("Sd");var b=I.prototype;b.is=l.is;AQG(b,"created",function(){this.hostElement=this;this.polymerController=this});
oAu(b,I,l.fastInit);l.notifyObserversOnUndefined&&(b._overrideLegacyUndefined=!0);if(P2u)for(var v=_.D(Object.getOwnPropertyNames(b)),M=v.next();!M.done;M=v.next()){M=M.value;var x=Object.getOwnPropertyDescriptor(b,M);x.enumerable===!1&&(x.enumerable=!0,Object.defineProperty(b,M,x))}if("template"in I)var g=function(){return I.template};
else l.template!==void 0&&(g=l.template);if(g!==void 0){var G;Object.defineProperty(b,"_template",{get:function(){G===void 0&&(G=g());return G},
set:function(u){G=u},
configurable:!0,enumerable:!0})}Polymer(b);I[h3$]=b}};
r5H=function(z){z=z===void 0?{}:z;z.fastInit===void 0&&(z.fastInit=!0);return function(l){if(!z.disableInheritanceCheck&&Object.getPrototypeOf(l.prototype).constructor!==pQ)throw Error("Td");oAu(l.prototype,l,z.fastInit)}};
oAu=function(z,l,I){I=I===void 0?!1:I;$iH(l);I?AQG(z,"created",function(){this.disableEnforceFastDefaultValuesCheck||e3f(l,this)}):AQG(z,"ready",function(){for(var b={},v=_.D(WnY(this.behaviors)),M=v.next();!M.done;M=v.next())M=M.value,M.properties&&Object.assign(b,wc1(this,M.properties));
Object.assign(b,wc1(this,this.properties));e3f(l,this);v=_.D(Object.keys(b));for(M=v.next();!M.done;M=v.next())M=M.value,this[M]=b[M]})};
e3f=function(z,l){if(P2u){z=new z;for(var I=_.D(Object.getOwnPropertyNames(z)),b=I.next();!b.done;b=I.next())b=b.value,l[b]=z[b];for(I=l;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){b=_.D(Object.getOwnPropertyNames(I));for(var v=b.next();!v.done;v=b.next())v=v.value,z.hasOwnProperty(v)||Object.defineProperty(z,v,A5H(l,v))}}else z.apply(l)};
A5H=function(z,l){return{get:function(){var I=z[l];return I instanceof Function?I.bind(z):I},
set:function(I){z[l]=I}}};
wc1=function(z,l){if(!l)return{};for(var I={},b=_.D(Object.keys(l)),v=b.next();!v.done;v=b.next())if(v=v.value,!l[v].readOnly){var M=z[v];M!==void 0&&(I[v]=M)}return I};
$iH=function(z){var l=new z;z=z.prototype.properties||{};for(var I=_.D(Object.keys(z)),b=I.next();!b.done;b=I.next())if(b=b.value,l.hasOwnProperty(b)){var v=z[b];typeof v==="function"&&(z[b]=v={type:v});l[b]!=null&&v.type===Object&&(v.type=WTt(l[b].constructor))}};
WTt=function(z){for(var l=_.D(nAH),I=l.next();!I.done;I=l.next())if(I=I.value,z===I)return I;return Object};
LTk=function(z){return function(l,I){l.behaviors=l.behaviors||[];l.behaviors.push(z||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",l,I).prototype:void 0));Object.defineProperty(l,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
UiY=function(z){z=z===void 0?{}:z;return function(l,I){l.properties=l.properties||{};z.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?z.type=WTt(Reflect.getMetadata("design:type",l,I)):z.type=String);var b=z,v=l.properties[I];l.properties[I]=v?Object.assign({},v,b):b}};
abQ=function(z){return function(l,I){l.listeners=l.listeners||{};l.listeners[z]=I}};
V1x=function(){var z=_.AT.apply(0,arguments);if(z.length===0)throw Error("Ud");return function(l,I){l.observers=l.observers||[];l.observers.push(I+"("+z.join(",")+")")}};
jq7=function(){var z=_.AT.apply(0,arguments);return function(l,I,b){var v=Object.getOwnPropertyDescriptor(l,I).get,M="__compute__"+I;Object.defineProperty(l,M,{value:v,enumerable:!0});l.properties=l.properties||{};v=l.properties[I];v||(v={},l.properties[I]=v);v.computed=M+"("+z.join(",")+")";b.get=void 0}};
_.DV=function(z,l,I){_.Q9.call(this);this.JSC$11316_id_=null;this.usingListeners_=!1;this.JSC$11316_listener_=z;this.handler_=I;this.JSC$11316_win_=l||window;this.callback_=(0,_.YN)(this.JSC$11318_doAction_,this)};
xO=function(z){this.range_=z};
OU=function(z){this.range_=z};
Nr=function(z,l,I){_.Q9.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=z;this.scrollTimer_=new _.gm(50);this.JSC$11395_eventHandler_=new _.GR(this);this.scrollDelta_=new _.rs;this.containerIsActuallyContent_=z.tagName==="BODY"||z.tagName==="HTML";this.containerBounds_=J5k(z);this.containerIsActuallyContent_&&(z=_.il(),this.containerBounds_.height=z.height,this.containerBounds_.width=z.width);this.margin_=l||0;if(l){if(l=this.containerBounds_.clone(),z=this.margin_){var b=
Math.min(z,l.height*.25);l.top+=b;l.height-=2*b;z=Math.min(z,l.width*.25);l.left+=z;l.width-=2*z}}else l=this.containerBounds_;this.scrollBounds_=l;I||this.JSC$11395_eventHandler_.listen(_.e6(this.containerNode_),"mousemove",this.JSC$11397_onMouseMove);this.JSC$11395_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11397_onTick_)};
_.EU=function(z){this.mechanism=z};
uM=function(z,l){this.JSC$11493_key_=z;this.JSC$11493_value_=l};
lIk=function(z){if(z>=55296&&z<=57343||z>1114111)return"\ufffd";z in zox&&(z=zox[z]);var l="";z>65535&&(z-=65536,l+=String.fromCharCode(z>>>10&1023|55296),z=56320|z&1023);return l+=String.fromCharCode(z)};
IIk=function(z,l){return z<l?1:-1};
Mip=function(){return function(z){return z.charAt(1)==="#"?z.charAt(2)==="X"||z.charAt(2)==="x"?lIk(parseInt(z.substr(3),16)):lIk(parseInt(z.substr(2),10)):bd$[z.slice(1,-1)]}};
xg7=function(z){return z.slice(1,z.length-1).trim().replace(pnH,function(l){return Dg1[l]||" "})};
ZV=function(z){return z===32||z===9};
HP=function(z,l){return l<z.length?z.charCodeAt(l):-1};
OdS=function(z){for(;z;){if(z._lastLineBlank)return!0;var l=z.type;if(l==="list"||l==="item")z=z._lastChild;else break}return!1};
y0=function(z){if(g9G.test(z)){var l=1,I=0,b=0;for(z[I]=="|"&&I++;I<z.length;){switch(z[I]){case "|":b=1;break;case " ":break;case "\t":break;default:b&&(b=0,l++)}I++}return GLu.test(z)?-l:l}return 0};
NO5=function(z){return z=="table"||z=="row"||z=="cell"};
E9k=function(){return new fQ("document",[[1,1],[0,0]])};
uSu=function(){};
CQ=function(){var z={safe:!1};z=z||{};z.softbreak=z.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=z};
CTY=function(z,l){var I="";if(z)if(z=z.toLowerCase(),z===" "||Zdf.test(z))I="space";else if(HdH.test(z))I="esc";else if(z.length==1){if(!l||yzk.test(z))I=z}else I=fIu.test(z)?z.replace("arrow",""):z=="multiply"?"*":z;return I};
KJH=function(z,l){var I=z.hasModifiers;if(l.key)I=CTY(l.key,I);else if(l.detail&&l.detail.key)I=CTY(l.detail.key,I);else{I=l.keyIdentifier;var b="";I&&(I in kL1?b=kL1[I]:RoQ.test(I)?(I=parseInt(I.replace("U+","0x"),16),b=String.fromCharCode(I).toLowerCase()):b=I.toLowerCase());(I=b)||(I=l.keyCode,b="",Number(I)&&(I>=65&&I<=90?b=String.fromCharCode(32+I):I>=112&&I<=123?b="f"+(I-112+1):I>=48&&I<=57?b=String(I-48):I>=96&&I<=105?b=String(I-96):b=mgt[I]),I=b);I=I||""}return I===z.key&&(!z.hasModifiers||
!!l.shiftKey===!!z.shiftKey&&!!l.ctrlKey===!!z.ctrlKey&&!!l.altKey===!!z.altKey&&!!l.metaKey===!!z.metaKey)};
BOf=function(z){return z.length===1?{combo:z,key:z,event:"keydown"}:z.split("+").reduce(function(l,I){var b=I.split(":");I=b[0];b=b[1];I in tiQ?(l[tiQ[I]]=!0,l.hasModifiers=!0):(l.key=I,l.event=b||"keydown");return l},{combo:z.split(":").shift()})};
Xn1=function(z){return z.trim().split(" ").map(function(l){return BOf(l)})};
qb1=function(z,l){if(z&&z.fn){var I=z.fn;z.fn=function(){try{I.apply(this,arguments)}catch(b){if(b instanceof kO)console.warn("Argument '"+b.arg+"'"+(l?" for method '"+l+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw b;}}}return z};
idu=function(){var z=_.AT.apply(0,arguments);return z.length===0?function(l){return l}:z.length===1?z[0]:z.reduce(function(l,I){return function(){return l(I.apply(null,_.ht(_.AT.apply(0,arguments))))}})};
FJY=function(){var z=_.AT.apply(0,arguments);return function(l){return function(I,b){I=l(I,b);var v=function(){throw Error("Ee");},M={getState:I.getState,
dispatch:function(x){return v.apply(null,[x].concat(_.ht(_.AT.apply(1,arguments))))}};
b=z.map(function(x){return x(M)});
v=idu.apply(null,_.ht(b))(I.dispatch);return Object.assign({},I,{dispatch:v})}}};
TOY=function(z){Object.keys(z).forEach(function(l){var I=z[l];if(typeof I(void 0,{type:QWQ})==="undefined")throw Error("Fe`"+l);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Yb5()})==="undefined")throw Error("Ge`"+l+"`"+QWQ);})};
RR=function(z){for(var l=Object.keys(z),I={},b=0;b<l.length;b++){var v=l[b];typeof z[v]==="function"&&(I[v]=z[v])}var M=Object.keys(I);try{TOY(I)}catch(g){var x=g}return function(g,G){g=g===void 0?{}:g;if(x)throw x;for(var u=!1,Z={},H=0;H<M.length;H++){var y=M[H],f=g[y],R=(0,I[y])(f,G);if(typeof R==="undefined")throw g=G&&G.type,Error("He`"+(g?'"'+String(g)+'"':"(unknown type)")+"`"+y);Z[y]=R;u=u||R!==f}return(u=u||M.length!==Object.keys(g).length)?Z:g}};
czH=function(z,l,I){function b(){if(Z)throw Error("Ie");return g}
function v(f){if(typeof f!=="function")throw Error("Je`"+typeof f);if(Z)throw Error("Ke");var R=!0;u===G&&(u=G.slice());u.push(f);return function(){if(R){if(Z)throw Error("Le");R=!1;u===G&&(u=G.slice());var F=u.indexOf(f);u.splice(F,1);G=null}}}
function M(f){if(typeof f!=="object"||f===null)var R=!1;else{for(R=f;Object.getPrototypeOf(R)!==null;)R=Object.getPrototypeOf(R);R=Object.getPrototypeOf(f)===R}if(!R)throw Error("Me`"+typeof f);if(typeof f.type==="undefined")throw Error("Ne");if(Z)throw Error("Oe");try{Z=!0,g=x(g,f)}finally{Z=!1}R=G=u;for(var F=0;F<R.length;F++)(0,R[F])();return f}
if(typeof l==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof l==="function"&&typeof I==="undefined"&&(I=l,l=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Qe`"+typeof I);return I(czH)(z,l)}if(typeof z!=="function")throw Error("Re`"+typeof z);var x=z,g=l,G=[],u=G,Z=!1;M({type:QWQ});var H={},y=(H.dispatch=M,H.subscribe=v,H.getState=b,H.replaceReducer=function(f){if(typeof f!=="function")throw Error("Se`"+
typeof f);x=f;M({type:SbS});return y},H[dgY]=function(){var f={};
return f.subscribe=function(R){function F(){R.next&&R.next(b())}
if(typeof R!=="object"||R===null)throw new TypeError("Te`"+typeof R);F();return{unsubscribe:v(F)}},f[dgY]=function(){return this},f},H);
return y};
o9$=function(z){function l(){v&&(v=!1,z());M&&b()}
function I(){requestAnimationFrame(l)}
function b(){var g=Date.now();if(v){if(g-x<2)return;M=!0}else v=!0,M=!1,setTimeout(I,20);x=g}
var v=!1,M=!1,x=0;return b};
mG=function(z){return typeof z==="number"?z:parseFloat(z)||0};
PTH=function(z){return _.AT.apply(1,arguments).reduce(function(l,I){return l+mG(z["border-"+I+"-width"])},0)};
_.K=function(z,l){l=VR(au(l));z.innerHTML=l};
rzY=function(z){var l=hok;l||(l=sWk(),l=hok=_.h7.transpose(l));l=l[z];return typeof l==="string"?l:_.KQ(z)};
$g1=function(z){z=String(z).toLowerCase();var l=sWk()[z];return typeof l==="string"?l:_.t8(z)};
eoS=function(z){z=z.toLowerCase();z=sWk()[z];return typeof z==="string"?z:null};
sWk=function(){if(!wn5){for(var z=Object.assign({},AzQ),l=_.D(WJQ),I=l.next();!I.done;I=l.next())I=I.value,z[I.toLowerCase()]=I;wn5=z}return wn5};
Ug5=function(z,l){var I=window.customElements;return I&&I.get(z)||n9Y[z]===!0?2:l.name==="HTMLUnknownElement"?1:l.name==="HTMLElement"&&LJQ.test(z)?3:0};
jWQ=function(z,l){switch(l){case "innerHTML":return aI7(z)===1?2:null;case "textContent":return z=aI7(z),z===1||z===6?1:null;default:var I,b;return(b=(I=Vik[z.localName])==null?void 0:I[l])!=null?b:null}};
aI7=function(z){var l=z.localName,I=Ug5(l,z.constructor);switch(I){case 0:case 1:return Jz1(l,z);case 3:case 2:return 1;default:_.Ap(I,"got an unknown element classification")}};
Jz1=function(z,l){var I=Object.hasOwnProperty.call(zNk,z)?zNk[z]:null;return I!==null?I:Object.hasOwnProperty.call(l9p,z)&&l instanceof SVGElement?l9p[z]:null};
I95=function(z,l){return l};
vZQ=function(z){return(z=z.split(bmt,2))?{url:z[0],metadata:z[1]}:null};
pHf=function(z){var l=String(z.url).replace(M7u,encodeURIComponent);if(z=z.metadata){M7u.lastIndex=0;if(M7u.test(z))return null;l+=" "+z}return l};
gZf=function(z){function l(u){var Z=u.localName;if(!u.getAttribute("is")&&Ug5(Z,u.constructor)===2){var H;return(H=G)!=null?H:G=document.createElement("polyresinuncustomized")}(u=g[Z])||(u=g[Z]=document.createElement(Z));return u}
var I=z.reportHandler||void 0,b=z.safeTypesBridge||DR7,v=/^$/;if(z=z.allowedIdentifierPrefixes){z=_.D(z);for(var M=z.next();!M.done;M=z.next())v=new RegExp(v.source+"|^"+_.xRQ(M.value))}I&&I(!1,"initResin",null);var x=Om5(v,b,I),g={},G=null;return function(u,Z,H){var y=u.nodeType;if(y!==Node.ELEMENT_NODE){if(y===Node.TEXT_NODE){Z=u.parentElement;H=!Z;if(Z&&Z.nodeType===Node.ELEMENT_NODE){y=Z.localName;var f=Ug5(y,Z.constructor);switch(f){case 0:case 1:Z=Jz1(y,Z);H=Z===1||Z===6;break;case 3:case 2:H=
!0;break;default:_.Ap(f,"got an unknown element classification")}}if(H)return function(c){return""+b(c,"STRING",c)}}return function(c){if(!c&&c!==document.all)return c;
I&&I(!0,"Failed to sanitize "+(u.parentElement&&u.parentElement.nodeName)+" #text node to value "+c,u.parentElement);return BP}}var R=u.localName;
y=l(u);var F=null;switch(H){case "attribute":if($g1(Z)in y)break;return function(c){return c};
case "property":if(Z in y){F=jWQ(y,Z);break}if((f=eoS(Z))&&f in y)break;return function(c){return c};
default:_.Ap(H,"got an unknown resin type, expected either 'property' or 'attribute'")}var Y=H==="attribute"?Z.toLowerCase():rzY(Z);F||(F=uYH(R,Y,function(c){var d=u.getAttribute(c);return!d||/[\[\{]/.test(c)?null:d}));
return function(c){var d=Xg,V=null;if(!c&&c!==document.all)return c;if(F!=null){var A=x[F],W=A.safeType;V=A.safeReplacement;W&&(d=b(c,W,Xg));d===Xg&&(A.filterString?(d=String(b(c,"STRING",c)),d=A.filterString(R,Y,d)):A.filterRaw&&(d=A.filterRaw(R,Y,c,u)),d===V&&(d=Xg))}d===Xg&&(d=V||BP,I&&I(!0,"Failed to sanitize attribute of <"+R+">: <"+R+" "+Y+'="'+c+'">',u));return d}}};
Om5=function(z,l,I){return[,{filterRaw:function(b,v,M){return M},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:Gpk,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Gpk,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:BP,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:NTu,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(b,v,M){M=
String(M).toLowerCase();return yeG(b,v,M)?M:BP},
safeReplacement:BP,safeType:void 0},,{filterRaw:void 0,filterString:function(b,v,M){return z.test(M)?M:BP},
safeReplacement:BP,safeType:"CONSTANT"},{filterRaw:function(b,v,M,x){if(typeof M==="string")var g=(g=M.match(EZ$))?g.map(vZQ).filter(Boolean):[];else if(Array.isArray(M))g=M;else return Gpk;var G=g;g=[];var u=[],Z={};if(Array.isArray(G))for(var H=0,y=G.length;H<y;++H){var f=G[H],R=f&&f.url;if(R){var F=l(R,"URL",Z);if(F){var Y=F!==Z;(Y?g:u).push({url:Y?F:R,metadata:f.metadata})}}}else u.push(G);G=u.length?JSON.stringify(u):null;u=Xg;if(g.length){if(!Array.isArray(g))throw Error();u=g.map(pHf).filter(Boolean).join(" , ")||
Xg}G&&I&&I(!0,"Failed to sanitize attribute value of <"+b+">: <"+b+" "+v+'="'+M+'">: '+G,x);return u===Xg?Gpk:u},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
uEY=function(z){var l=gZf(z);return function(I,b,v,M){return M||M===document.all?l(I,b,v)(M):M}};
qr=function(z,l){function I(){function v(g,G,u){for(G=Reflect.getMetadata("parameters",g)||[];G.length<=u;)G.push(null);G[u]=G[u]||[];G[u].push(x);Reflect.defineMetadata(G,g);return g}
var M=_.AT.apply(0,arguments);if(this instanceof I)return b.apply(this,M),this;var x=new (Function.prototype.bind.apply(I,[null].concat(_.ht(M))));v.annotation=x;return v}
var b=Zmt(l);I.prototype.toString=function(){return"@"+z};
return I.annotationCls=I};
Zmt=function(z){return function(){var l=_.AT.apply(0,arguments),I=this;z.forEach(function(b,v){v=l[v];if(Array.isArray(b))I[b[0]]=v&&v!==void 0?v:b[1];else for(var M in b)I[M]=v&&v[M]!==void 0?v[M]:b[M]})}};
HmQ=function(z){return z!==void 0&&z!==null};
iM=function(z){if(typeof z==="string")return z;if(z===void 0||z===null)return""+z;if(z.overriddenName)return z.overriddenName;if(z.name)return z.name;z=z.toString();var l=z.indexOf("\n");return l===-1?z:z.substring(0,l)};
yJQ=function(z){z.__forward_ref__=yJQ;z.toString=function(){return iM(this())};
return z};
Fg=function(z){return typeof z==="function"&&z.hasOwnProperty("__forward_ref__")&&z.__forward_ref__===yJQ?z():z};
f9G=function(z){return z?z.map(function(l){return new (Function.prototype.bind.apply(l.type.annotationCls,[null].concat(_.ht(l.args?l.args:[]))))}):[]};
CCQ=function(z){for(var l=[],I=0;I<z.length;++I){if(l.indexOf(z[I])>-1){l.push(z[I]);break}l.push(z[I])}return l};
kpp=function(z){return z.length>1?" ("+CCQ(z.slice().reverse()).map(function(l){return iM(l.token)}).join(" -> ")+")":""};
mRf=function(z,l,I,b){if(b){var v=Error("$e``"+(b instanceof Error?b.message:b));v.ngOriginalError=b}else v=Error();v.addKey=RNk;v.keys=[l];v.injectors=[z];v.constructResolvingMessage=I;v.message=v.constructResolvingMessage();v.ngOriginalError=b;return v};
RNk=function(z,l){this.injectors.push(z);this.keys.push(l);this.message=this.constructResolvingMessage()};
K3x=function(z,l){return mRf(z,l,function(){return"No provider for "+iM(this.keys[0].token)+"!"+kpp(this.keys)})};
t7Q=function(z,l){return mRf(z,l,function(){return"Cannot instantiate cyclic dependency!"+kpp(this.keys)})};
BTu=function(z,l,I){return mRf(z,I,function(){var b=iM(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+b+"!"+kpp(this.keys)+"."},l)};
XHY=function(z,l){for(var I=[],b=0,v=l.length;b<v;b++){var M=l[b];M&&M.length!=0?I.push(M.map(iM).join(" ")):I.push("?")}return Error("df`"+iM(z)+"`"+I.join(", ")+"`"+iM(z))};
cJ7=function(z){var l=void 0,I=void 0;if(z&&z.useClass!==void 0){l=z.useClass;var b=Fg(z.useClass);var v=qhQ.factory(b);b=imf(b)}else z&&z.useExisting!==void 0?(v=function(M){return M},b=[F3k(Q0.get(Fg(z.useExisting)))]):z&&z.useFactory!==void 0?(v=z.useFactory,b=QlY(z.useFactory,z.deps)):(I=z.useValue,v=function(){return z.useValue},b=Yhp);
return new TTf(v,b,l,I)};
dR$=function(z){return new Shx(Q0.get(Fg(z.provide)),[cJ7(z)],z.multi)};
PC5=function(z){z=oZt(z,[]).map(dR$);for(var l=new Map,I=0;I<z.length;I++){var b=z[I],v=l.get(b.key.id);if(v){if(b.multiProvider!==v.multiProvider)throw Error("ff`"+v+"`"+b);if(b.multiProvider)for(var M=0;M<b.resolvedFactories.length;M++)v.resolvedFactories.push(b.resolvedFactories[M]);else l.set(b.key.id,b)}else v=void 0,b.multiProvider?v=new Shx(b.key,b.resolvedFactories.slice(),b.multiProvider):v=b,l.set(b.key.id,v)}return Array.from(l.values())};
oZt=function(z,l){z.forEach(function(I){if(I instanceof hNu)l.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)l.push(I);else if(I instanceof Array)oZt(I,l);else throw Error("cf`"+I);});
return l};
QlY=function(z,l){if(l){var I=l.map(function(b){return[b]});
return l.map(function(b){return sl5(z,b,I)})}return imf(z)};
imf=function(z){var l=qhQ.parameters(z);if(!l)return[];if(l.some(function(I){return I==null}))throw XHY(z,l);
return l.map(function(I){return sl5(z,I,l)})};
sl5=function(z,l,I){var b=null,v=!1;if(!Array.isArray(l))return l instanceof rJk?$RG(l.token,v,null):$RG(l,v,null);for(var M=null,x=0;x<l.length;++x){var g=l[x];if(g instanceof hNu)b=g;else if(g instanceof rJk)b=g.token;else if(g instanceof eNu)v=!0;else if(g instanceof wH1||g instanceof AJG)M=g}b=Fg(b);if(b!=null)return $RG(b,v,M);throw XHY(z,I);};
$RG=function(z,l,I){return new W37(Q0.get(Fg(z)),l,I)};
nZt=function(z,l){for(var I=Array(z.providers.length),b=0;b<z.providers.length;++b){var v=b;if(b<0||b>=z.providers.length)throw Error("ef`"+b);I[v]=l(z.providers[b])}return I};
L3H=function(z){return typeof z==="function"&&qhQ.parameters(z).every(function(l){return!!l})};
V7Q=function(z){var l=UR7;a9f.get(z)||a9f.set(z,new l);return a9f.get(z)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(z)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(z)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z,l){var I,b;if(z.contains(l))return!0;z=_.YO(z).querySelectorAll("content,slot");for(I=0;I<z.length;++I){var v=_.YO(z[I]).getDistributedNodes();for(b=0;b<v.length;++b)if(v[b].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(v[b],l))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z){z.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(z)&&z.preventDefault();z.targetTouches&&(z=z.targetTouches[0],jlu=z.pageX,JJS=z.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 z=0,l=TR.length;z<l;z++)document.addEventListener(TR[z],_._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 z=0,l=TR.length;z<l;z++)document.removeEventListener(TR[z],_._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(z){var l=_.YO(z).rootTarget;z.type!=="touchmove"&&zJk!==l&&(zJk=l,l0t=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.YO(z).path));if(!l0t.length)return!0;if(z.type==="touchstart")return!1;z=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(z);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(l0t,z.deltaX,z.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z){for(var l=[],I=z.indexOf(I0x),b=0;b<=I;b++)if(z[b].nodeType===Node.ELEMENT_NODE){var v=z[b],M=v.style;M.overflow!=="scroll"&&M.overflow!=="auto"&&(M=window.getComputedStyle(v));M.overflow!=="scroll"&&M.overflow!=="auto"||l.push(v)}return l};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z,l,I){if(l||I)for(var b=Math.abs(I)>=Math.abs(l),v=0;v<z.length;v++){var M=z[v];if(b?I<0?M.scrollTop>0:M.scrollTop<M.scrollHeight-M.clientHeight:l<0?M.scrollLeft>0:M.scrollLeft<M.scrollWidth-M.clientWidth)return M}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(z){var l={deltaX:z.deltaX,deltaY:z.deltaY};"deltaX"in z||("wheelDeltaX"in z&&"wheelDeltaY"in z?(l.deltaX=-z.wheelDeltaX,l.deltaY=-z.wheelDeltaY):"wheelDelta"in z?(l.deltaX=0,l.deltaY=-z.wheelDelta):"axis"in z?(l.deltaX=z.axis===1?z.detail:0,l.deltaY=z.axis===2?z.detail:0):z.targetTouches&&(z=z.targetTouches[0],l.deltaX=jlu-z.pageX,l.deltaY=JJS-z.pageY));return l};
b95=function(z){this.element=z;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
MGQ=function(z){this.element=z;this.color=window.getComputedStyle(z).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");_.YO(this.waveContainer).appendChild(this.wave);vIk(this)};
cP=function(z,l){for(var I in z)if(I.toLowerCase()===l.toLowerCase())return z[I]};
pGS=function(z,l){for(var I in z)if(I.toLowerCase()===l.toLowerCase()){delete z[I];break}};
xx$=function(z){z=_.h7.clone(z);for(var l=0;l<DxQ.length;++l){var I=DxQ[l],b=cP(z,I);b&&(z["X-Goog-Upload-Header-"+I]=b,pGS(z,I))}return z};
O9$=function(z){z=_.h7.clone(z);pGS(z,"X-Goog-Upload-Status")};
GF1=function(z){return gI5.some(function(l){return l.test(z)})};
Z9Q=function(z,l){var I;var b=(I=z.formContent)==null?void 0:I.locale;I=b==null?void 0:b.split("-")[0];b=b&&Np$.includes(b)?b:I&&Np$.includes(I)?I:void 0;b=(b!=null?b:"en").replaceAll("-","_").toLowerCase();var v;z=((v=z.initializationData)==null?0:v.useNightlyRelease)?"nightly":"live";var M;return(l==null?0:(M=l.getEnableAlohaBinarySplit)==null?0:M.call(l))?_.HR(EIY,z):_.HR(u$f,z,b)};
f0Q=function(z,l,I,b){if(H91&&ygY===l)return H91;ygY=l;var v=Z9Q(z,b);return H91=l.feedbackV2GlobalObject?Promise.resolve(l.feedbackV2GlobalObject):new Promise(function(M,x){var g=_.tA("SCRIPT");_.Me(g,v);g.onload=function(){l.feedbackV2GlobalObject?M(l.feedbackV2GlobalObject):x(Error("jf"))};
g.onerror=function(){x(Error("kf`"+v.toString()))};
I.body.appendChild(g)})};
RJ1=function(z,l,I,b){if(CoG&&kFY===l)return CoG;kFY=l;var v=Z9Q(z,b);return CoG=l.feedbackV2GlobalObject?Promise.resolve(l.feedbackV2GlobalObject):new Promise(function(M,x){var g=_.tA("SCRIPT");_.Me(g,v);g.onload=function(){l.feedbackV2GlobalObject?M(l.feedbackV2GlobalObject):x(Error("jf"))};
g.onerror=function(){x(Error("kf`"+v.toString()))};
I.body.appendChild(g)})};
mx$=function(z,l,I,b,v){v=v===void 0?!0:v;var M,x,g,G,u;return _.O(function(Z){switch(Z.nextAddress){case 1:return M=Date.now(),Z.yield(f0Q(z,I,b,l),2);case 2:x=Z.yieldResult;if(!(v||((G=z.initializationData)==null?0:G.useNightlyRelease)||((u=z.initializationData)==null?0:u.isLocalServer))){g=x.initializeFeedbackClient(z,M,l);Z.jumpTo(3);break}return Z.yield(x.initializeFeedbackClientAsync(z,M,l),4);case 4:g=Z.yieldResult;case 3:return g.initiateAloha(),Z.return(g)}})};
KfQ=function(z,l,I,b){var v,M,x;return _.O(function(g){if(g.nextAddress==1)return v=Date.now(),g.yield(RJ1(z,I,b.document,l),2);if(g.nextAddress!=3)return M=g.yieldResult,g.yield(M.initializeFeedbackClientAsync(z,v,l,b),3);x=g.yieldResult;x.initiateAloha();return g.return(x)})};
tGu=function(z,l,I){var b=!0;b=b===void 0?!0:b;var v,M,x,g,G,u,Z,H,y,f;return _.O(function(R){v=I||_.v7;if((M=l)==null?0:(g=(x=M).getEnableAlohaBinarySplit)==null?0:g.call(x)){G=v;if(G.isFormOpened)throw u=Error("lf"),u.name="DuplicateFormError",u;G.isFormOpened=!0;z.callbacks=z.callbacks||{};Z=z.callbacks.onClose||function(){};
z.callbacks.onClose=function(F){G.isFormOpened=!1;Z(F)};
try{return R.return(KfQ(z,l,G,v))}catch(F){throw G.isFormOpened=!1,F;}}else{H=v;if(H.isFormOpened)throw y=Error("lf"),y.name="DuplicateFormError",y;H.isFormOpened=!0;z.callbacks=z.callbacks||{};f=z.callbacks.onClose||function(){};
z.callbacks.onClose=function(F){H.isFormOpened=!1;f(F)};
try{return R.return(mx$(z,l,H,v.document,b))}catch(F){throw H.isFormOpened=!1,F;}}_.qe(R)})};
Ff1=function(z,l){return _.O(function(I){return I.return(new Promise(function(b,v){Number.isInteger(Number(z))&&Number(z)>0?(v=Bpu(l!=null?l:"")+"/aloha_form_properties?productId="+z,XGx(v,function(M){M=M.target;var x=null;try{var g=JSON,G=g.stringify;if(M.JSC$9797_xhr_){var u=M.JSC$9797_xhr_.responseText;u.indexOf(")]}'\n")==0&&(u=u.substring(5));var Z=(0,_.Sn)(u)}else Z=void 0;x=$ZQ(qXQ,G.call(g,Z))}catch(H){G=new qXQ,Z=i9H(),Z=_.dm(Z,13,!1),Z=_.dm(Z,14,!0),Z=_.dm(Z,15,!0),Z=_.dm(Z,20,!1),x=_.tT(G,
1,Z)}b(x)},"GET","",{},2E3,!0)):v(Error("mf`"+z))}))})};
Bpu=function(z){return GF1(z)?z:"https://www.google.com/tools/feedback"};
cgt=function(z){z=z.match(new RegExp(Qrt,"gi"))||[];z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;a:{var I=_.D(YXQ);for(var b=I.next();!b.done;b=I.next())if(b.value.test(l)){I=!1;break a}I=!0}if(!I)a:{I=_.D(Tpk);for(b=I.next();!b.done;b=I.next())if(b.value.test(l)){I=!0;break a}I=!1}if(I)return!0}return!1};
SXY=function(z,l){var I={},b=Object.keys(z);b=_.D(b);for(var v=b.next();!v.done;v=b.next())v=v.value,I[v]=l(v,z[v]);return I};
dxp=function(z){switch(z){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"}};
Pot=function(z){if(window.crypto&&window.crypto.getRandomValues)try{var l=Array(z),I=new Uint8Array(z);window.crypto.getRandomValues(I);for(var b=0;b<l.length;b++)l[b]=I[b];return l}catch(M){}l=Array(z);for(I=0;I<z;I++){b=Date.now();for(var v=0;v<b%23;v++)l[I]=Math.random();l[I]=Math.floor(Math.random()*256)}if(oIH)for(I=1,b=0;b<oIH.length;b++)l[I%z]^=l[(I-1)%z]/4^oIH.charCodeAt(b),I++;return l};
oR=function(z){z=Pot(z);for(var l=[],I=0;I<z.length;I++)l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(z[I]&63));return l.join("")};
hJu=function(){var z=_.v7.ytLoggingDocDocumentNonce_;z||(z=oR(16),_.vd("ytLoggingDocDocumentNonce_",z));return z};
rgx=function(z){z&&_.cW("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:sr5,clientScreenNonce:z})};
$xt=function(z){return _.sZ("client-screen-nonce-store",{})[z===void 0?0:z]};
eJt=function(z,l){l=l===void 0?0:l;var I=_.sZ("client-screen-nonce-store");I||(I={},_.hr("client-screen-nonce-store",I));I[l]=z};
wGS=function(z){z=z===void 0?0:z;return z===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+z};
Ag1=function(z){return _.sZ(wGS(z===void 0?0:z))};
_.h8=function(z){return(z=Ag1(z===void 0?0:z))?new PP({veType:z,youtubeData:void 0,jspbYoutubeData:void 0}):null};
WfQ=function(){var z=_.sZ("csn-to-ctt-auth-info");z||(z={},_.hr("csn-to-ctt-auth-info",z));return z};
nIx=function(){return Object.values(_.sZ("client-screen-nonce-store",{})).filter(function(z){return z!==void 0})};
_.sU=function(z){z=$xt(z===void 0?0:z);if(!z&&!_.rr("USE_CSN_FALLBACK",!0))return null;z||(z="UNDEFINED_CSN");return z?z:null};
Ux$=function(z){for(var l=_.D(Object.values(LfH)),I=l.next();!I.done;I=l.next())if(_.sU(I.value)===z)return!0;return!1};
a0Y=function(z,l,I){var b=WfQ();(I=_.sU(I))&&delete b[I];l&&(b[z]=l)};
rm=function(z){return WfQ()[z]};
_.$O=function(z,l,I,b){I=I===void 0?0:I;if(z!==$xt(I)||l!==_.sZ(wGS(I)))if(a0Y(z,b,I),eJt(z,I),_.hr(wGS(I),l),l=function(){setTimeout(function(){rgx(z)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(l)}catch(v){l()}else l()};
VGt=function(z,l){l=l===void 0?"":l;var I=[],b;for(b in z)if(z.hasOwnProperty(b)){var v=l!==""?l+"."+b:b;typeof z[b]==="object"?I.push.apply(I,_.ht(VGt(z[b],v))):I.push([v,z[b]])}I.sort();return I};
_.wm=function(z){var l=_.AT.apply(1,arguments);if(!en(z)||l.some(function(b){return!en(b)}))throw Error("nf");
l=_.D(l);for(var I=l.next();!I.done;I=l.next())jr5(z,I.value)};
jr5=function(z,l){for(var I in l)if(en(l[I])){if(I in z&&!en(z[I]))throw Error("of");I in z||(z[I]={});jr5(z[I],l[I])}else if(JgY(l[I])){if(I in z&&!JgY(z[I]))throw Error("pf");I in z||(z[I]=[]);zCY(z[I],l[I])}else z[I]=l[I];return z};
zCY=function(z,l){l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,en(I)?z.push(jr5({},I)):JgY(I)?z.push(zCY([],I)):z.push(I);return z};
en=function(z){return typeof z==="object"&&!Array.isArray(z)};
JgY=function(z){return typeof z==="object"&&Array.isArray(z)};
IjG=function(z){for(var l=_.D(Object.entries(ljt)),I=l.next();!I.done;I=l.next())if(I=_.D(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+z)return I;return"SLI_STATUS_UNKNOWN"};
_.A8=function(z,l,I,b){return bkG(z,l,function(){return new _.v4H(z,l,I,b)})};
_.MH7=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
pKf=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
WP=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Dlx=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
xlQ=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Okx=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
N7Q=function(z){z&&(z.dataset?z.dataset[g4$()]="true":_.D1([_.Nj(GC5)],z,"data-loaded","true".toString()))};
E4k=function(z){return z?z.dataset?z.dataset[g4$()]:z.getAttribute("data-loaded"):null};
g4$=function(){return ubG.loaded||(ubG.loaded="loaded".replace(/\-([a-z])/g,function(z,l){return l.toUpperCase()}))};
_.nQ=function(z,l,I){Zkk(z,l,I===void 0?null:I)};
_.yvQ=function(z,l){z&&l&&(z=""+_.UY(l),(z=Hk1[z])&&_.OKu(z))};
Zkk=function(z,l,I){I=I===void 0?null:I;var b=_.fjt(typeof z==="string"?z:z.toString()),v=document.getElementById(b),M=v&&E4k(v),x=v&&!M;M?l&&l():(l&&(M=_.Gu(b,l),l=""+_.UY(l),Hk1[l]=M),x||(v=Cgu(z,b,function(){E4k(v)||(N7Q(v),_.glt(b),_.EI(function(){_.No1(b)},0))},I)))};
Cgu=function(z,l,I,b){b=b===void 0?null:b;var v=_.tA("SCRIPT");v.id=l;v.onload=function(){I&&setTimeout(I,0)};
v.onreadystatechange=function(){switch(v.readyState){case "loaded":case "complete":v.onload()}};
b&&v.setAttribute("nonce",b);_.Me(v,typeof z==="string"?_.cl(z):z);z=document.getElementsByTagName("head")[0]||document.body;z.insertBefore(v,z.firstChild);return v};
_.fjt=function(z){var l=document.createElement("a");nD(l,z);return"js-"+LQ(l.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
kCH=function(z){var l=_.sZ("INNERTUBE_HOST_OVERRIDE");l&&(z=String(l)+String(_.UU(z)));return z};
RCx=function(z){var l={};_.C("json_condensed_response")&&(l.prettyPrint="false");return z=TCf(z,l)};
_.aR=function(z){return bf(z)?"same-origin":"include"};
_.V0=function(z){return bf(z)?"same-origin":"cors"};
jn=function(z,l,I){I=I===void 0?{}:I;z={method:l===void 0?"POST":l,mode:_.V0(z),credentials:_.aR(z)};l={};for(var b=_.D(Object.keys(I)),v=b.next();!v.done;v=b.next())v=v.value,I[v]&&(l[v]=I[v]);Object.keys(l).length>0&&(z.headers=l);return z};
_.J8=function(z,l){l=l===void 0?{}:l;return"service:"+z+"/"+Object.keys(l).sort().map(function(I){return I+":"+l[I]}).join("/")};
mlp=function(z){var l,I,b,v;z=(l=_.k(z,_.zb))==null?void 0:(I=l.watchEndpointSupportedOnesieConfig)==null?void 0:(b=I.html5PlaybackOnesieConfig)==null?void 0:(v=b.commonConfig)==null?void 0:v.url;if(!z)return[];l=new _.lJ(z);return l.JSC$10032_domain_?["https://"+l.JSC$10032_domain_+"/generate_204"]:[]};
_.B7k=function(){return K1x()||hvf()||tHt&&sI("version/")?!0:_.sZ("EOM_VISITOR_DATA")?!1:!0};
XK5=function(z){var l=z.docid||z.video_id||z.videoId||z.id;if(l)return l;l=z.raw_player_response;l||(z=z.player_response)&&(l=JSON.parse(z));return l&&l.videoDetails&&l.videoDetails.videoId||null};
qlt=function(z){return z.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Im=function(z){return!isNaN(Number(z))&&!_.gf(z)};
_.vu=function(z,l,I,b){b=b===void 0?!0:b;var v=_.sZ("VALID_SESSION_TEMPDATA_DOMAINS",[]),M=_.lf(window.location.href);M&&v.push(M);M=_.lf(z);if(_.rf(v,M)||!M&&_.DS(z,"/"))if(v=document.createElement("a"),nD(v,z),z=v.href)if(z=_.UU(z),z=_.bJ(z))b&&!l.csn&&(l.itct||l.ved)&&(l=Object.assign({csn:_.sU()},l)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&ik7(z,l,I)):ik7(z,l)};
Q5f=function(z){var l=_.sZ("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.lf(window.location.href);I&&l.push(I);I=_.lf(z);if(!(_.rf(l,I)||!I&&_.DS(z,"/")))return null;z=_.UU(z);(z=_.bJ(z))?(z=F1Y(z),z=(z=_.mZ.get(z,void 0)||null)?_.aY(z):{}):z=null;return z};
ik7=function(z,l,I){z=F1Y(z);l=l?_.CG(l):"";I=I||5;_.B7k()&&_.KG(z,l,I)};
F1Y=function(z){for(var l=_.D(YlY),I=l.next();!I.done;I=l.next())z=_.Mu(z,I.value);return"ST-"+LQ(z).toString(36)};
_.T7k=function(z){if(z.requestFullscreen)z=z.requestFullscreen(void 0);else if(z.webkitRequestFullscreen)z=z.webkitRequestFullscreen();else if(z.mozRequestFullScreen)z=z.mozRequestFullScreen();else if(z.msRequestFullscreen)z=z.msRequestFullscreen();else if(z.webkitEnterFullscreen)z=z.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return z instanceof Promise?z:Promise.resolve()};
_.DE=function(z){var l;_.VZG(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.pM()==z&&(l=document):l=z;if(l&&(z=_.VZG(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],l))){z.call(l)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.pM=function(){var z=z===void 0?!1:z;var l=_.VZG(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(z)for(;l&&l.shadowRoot;)l=l.shadowRoot.fullscreenElement;return l?l:null};
_.xB=function(z,l){l=l===void 0?!0:l;z.addEventListener("wheel",cvt);z.overscrollConfig={cooldown:l}};
_.OK=function(z){z.overscrollConfig=void 0;z.removeEventListener("wheel",cvt)};
cvt=function(z){var l=z.deltaY,I=z.target,b=null;if(window.Polymer&&window.Polymer.Element){if(I=z.path||z.composedPath&&z.composedPath()){I=_.D(I);for(var v=I.next();!v.done&&(v=v.value,!SlQ(v,l));v=I.next())if(v.overscrollConfig){b=v;break}}}else for(;I&&!SlQ(I,l);){if(I.overscrollConfig){b=I;break}I=I.parentElement}b&&(l=b.overscrollConfig,l.cooldown?(b=z.deltaY,I=l.lastDeltaY||0,l.lastDeltaY=b,v=l.lastStopped||0,I&&v&&I>0==b>0?Math.abs(I)>=Math.abs(b)?(b=v+1200,I=!1):(b=v+600,I=!0):(b=Date.now()+
600,I=!0),b>Date.now()&&(z.preventDefault(),I&&(l.lastStopped=Date.now()))):z.preventDefault())};
SlQ=function(z,l){return l<0&&z.scrollTop>0||l>0&&z.scrollTop<z.scrollHeight-z.clientHeight-1?(z=getComputedStyle(z).overflowY,z=="auto"||z=="scroll"):!1};
_.gC=function(z,l,I,b){b||(b={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(b.detail=I);var v=new CustomEvent(l,b);_.C("untrack_fire_custom_event_killswitch")?z.dispatchEvent(v):uE(function(){return void z.dispatchEvent(v)});
return v};
dl7=function(z){var l=window,I=function(b){l.removeEventListener("yt-navigate-start",I);return z.call(l,b)};
l.addEventListener("yt-navigate-start",I,void 0)};
_.Gb=function(z,l,I,b){l=new o4Q(l,!(b===void 0||!b),I);_.gC(z,"yt-action",l);return l.returnValue};
_.EK=function(z,l,I){return _.Gb(z,l,I,!0)};
_.ZE=function(z,l,I,b){l&&l.length&&l.forEach(function(v){var M=LEf(v);M&&(_.C("handle_service_request_actions")&&v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.sendPost?_.uJ(I?I:z,[v]):_.EK(z,M,[v,I,b]))})};
_.uJ=function(z,l){var I=[z];l&&I.push.apply(I,l);l=_.Gb(z,"yt-service-request",I);return l.length>0&&(l=l[0],_.gC(z,"yt-service-request-sent",l),l&&l.ajaxPromise)?(l.ajaxPromise.then(function(b){_.gC(z,"yt-service-request-completed",b)},function(b){_.gC(z,"yt-service-request-error",{error:b,
params:I})},z),l.ajaxPromise):_.Hu()};
_.fM=function(z,l){if(_.C("handle_service_request_actions"))_.ZE(l,z,l);else{z=_.D(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var b=void 0;((b=_.k(I,_.yi))==null?0:b.commands)?_.fM(_.k(I,_.yi).commands,l):(b=void 0,((b=_.k(I,_.CM))==null?0:b.actions)?_.fM(_.k(I,_.CM).actions,l):(b=void 0,((b=_.k(I.commandMetadata,_.kB))==null?0:b.sendPost)?_.uJ(l,[I]):_.ZE(l,[I],l)))}}};
_.hCH=function(z,l,I){l=l===void 0?{}:l;typeof l==="function"&&(l={callback:l});I||l._c&&l._c.jsl&&l._c.jsl.h||_.h7.extend(l,{_c:{jsl:{h:_.sZ("GAPI_HINT_PARAMS")}}});(l.gapiHintOverride||_.sZ("GAPI_HINT_OVERRIDE"))&&(I=_.V7(document.location.href).gapi_jsh)&&_.h7.extend(l,{_c:{jsl:{h:I}}});PgH(z,l)};
_.mY=function(z,l,I){l=l===void 0?{}:l;z=(z=z in Rm?Rm[z]:I)||"";I={};for(var b in l){I={key$jscomp$838:I.key$jscomp$838};I.key$jscomp$838=b;var v=function(M){return function(){return String(l[M.key$jscomp$838])}}(I);
z=z.replace(new RegExp("\\$\\{"+I.key$jscomp$838+"\\}","gi"),v);z=z.replace(new RegExp("\\$"+I.key$jscomp$838,"gi"),v)}return z};
_.KM=function(z,l){return s5x(z in Rm?Rm[z]:{},l)};
s5x=function(z,l){var I=_.sZ("I18N_PLURAL_RULES");I||(I=function(b){return b==1?"one":"other"});
return(z=z["case"+l]||z[I(l)])?z.replace("#",l.toString()):l+""};
eCx=function(z){var l=rvt(z),I=document.getElementById(l),b=I&&E4k(I);b||I&&!b||(I=$l$(z,l,function(){if(!E4k(I)){N7Q(I);_.glt(l);var v=_.tH(_.No1,l);_.EI(v,0)}}))};
$l$=function(z,l,I){var b=document.createElement("link");b.id=l;b.onload=function(){I&&setTimeout(I,0)};
z=_.cl(z);_.xd(b,z,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(b);return b};
rvt=function(z){var l=_.tA("A");nD(l,d0(z));return"css-"+LQ(l.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Av$=function(z){var l=wK$();z!==l&&(l=_.Bu(),!_.C("web_autonav_allow_off_by_default")&&z||_.XG(0,141,!0),_.XG(0,140,!z),l.save())};
wK$=function(){var z=_.Bu();return _.C("web_autonav_allow_off_by_default")&&!z.getFlag(141)&&_.sZ("AUTONAV_OFF_BY_DEFAULT")?!1:!z.getFlag(140)};
W1G=function(z,l){var I,b;z=((I=z.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(b=I.videoAuthorizationToken)==null?void 0:b.credentialTransferTokens)||[];for(I=0;I<z.length;++I)if(z[I].scope===l)return z[I].token||void 0};
n4u=function(z){for(var l=0,I=0;I<z.length;I++)l=l*31+z.charCodeAt(I),I<z.length-1&&(l%=0x800000000000);return l%1E5};
_.qu=function(z){return _.W8("ytcsi."+(z||"")+"data_")||L1k(z)};
_.Ul1=function(z){z=_.qu(z);z.metadata||(z.metadata={});return z.metadata};
_.ajQ=function(z){z=_.qu(z);z.tick||(z.tick={});return z.tick};
_.iJ=function(z){z=_.qu(z);if(z.gel){var l=z.gel;l.gelInfos||(l.gelInfos={});l.gelTicks||(l.gelTicks={})}else z.gel={gelTicks:{},gelInfos:{}};return z.gel};
_.VHH=function(z){z=_.iJ(z);z.gelInfos||(z.gelInfos={});return z.gelInfos};
j5p=function(z){var l=_.qu(z).nonce;l||(l=oR(16),_.qu(z).nonce=l);return l};
L1k=function(z){var l={tick:{},info:{}};_.vd("ytcsi."+(z||"")+"data_",l);return l};
Jv7=function(){var z=_.W8("ytcsi.debug");z||(z=[],_.vd("ytcsi.debug",z),_.vd("ytcsi.reference",{}));return z};
_.FG=function(z){z=z||"";var l=zUt();if(l[z])return l[z];var I=Jv7(),b={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};I.push(b);return l[z]=b};
li7=function(z){z=z||"";var l=zUt();l[z]&&delete l[z];var I=Jv7(),b={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};I.push(b);l[z]=b};
zUt=function(){var z=_.W8("ytcsi.reference");if(z)return z;Jv7();return _.W8("ytcsi.reference")};
_.bRY=function(z){return Iik[z]||"LATENCY_ACTION_UNKNOWN"};
DYf=function(z,l,I){I=I===void 0?{}:I;var b=!1;_.rr("ytLoggingEventsDefaultDisabled",!1)&&(b=!0);b=b?null:Tu;I=I===void 0?{}:I;var v=Math.round(I.timestamp||(0,_.Dr)());_.BW(l,1,v<Number.MAX_SAFE_INTEGER?v:0);v=new vbG;if(I.lact)_.BW(v,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.BW(v,1,-1);else{var M=_.p2();_.BW(v,1,isFinite(M)?M:-1)}if(I.sequenceGroup&&!_.C("web_gel_sequence_info_killswitch")){M=I.sequenceGroup;var x=RyG(M),g=new MFH;_.BW(g,2,x);_.Th(g,1,M);_.tT(v,3,g);I.endOfSequence&&delete pop[I.sequenceGroup]}_.tT(l,
33,v);(I.sendIsolatedPayload?iKx:F9x)(z,{endpoint:"log_event",payload:l,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},b)};
_.YB=function(){return(_.C("csi_use_time_origin")||_.C("csi_use_time_origin_tvhtml5"))&&_.Qi.timeOrigin?Math.floor(_.Qi.timeOrigin):_.Qi.timing.navigationStart};
_.xYk=function(z,l){_.Tb("_start",z,l)};
_.cu=function(z,l){if(!_.C("web_csi_action_sampling_enabled")||!_.qu(l).actionDisabled){var I=_.FG(l||"");_.wm(I.info,z);z.loadType&&(I=z.loadType,_.Ul1(l).loadType=I);_.wm(_.VHH(l),z);I=j5p(l);l=_.qu(l).cttAuthInfo;ORx().info(z,I,l)}};
gbx=function(){var z,l,I,b;return((b=_.pG().resolve(_.MB(i_))==null?void 0:(z=FL())==null?void 0:(l=z.loggingHotConfig)==null?void 0:(I=l.csiConfig)==null?void 0:I.debugTicks)!=null?b:[]).map(function(v){return Object.values(v)[0]})};
_.Tb=function(z,l,I){if(!_.C("web_csi_action_sampling_enabled")||!_.qu(I).actionDisabled){var b=j5p(I),v;if(v=_.C("web_csi_debug_sample_enabled")&&b){(_.pG().resolve(_.MB(i_))==null?0:FL())&&!GrS&&(GrS=!0,_.Tb("gcfl",(0,_.Dr)(),I));var M,x,g;v=(_.pG().resolve(_.MB(i_))==null?void 0:(M=FL())==null?void 0:(x=M.loggingHotConfig)==null?void 0:(g=x.csiConfig)==null?void 0:g.debugSampleWeight)||0;if(M=v!==0)b:{M=gbx();if(M.length>0)for(x=0;x<M.length;x++)if(z===M[x]){M=!0;break b}M=!1}M?(v=n4u(b)%v!==0,
_.qu(I).debugTicksExcludedLogged||(M={},M.debugTicksExcluded=v,_.cu(M,I)),_.qu(I).debugTicksExcludedLogged=!0):v=!1}if(!v){z[0]!=="_"&&NBt(z,I,l);v=_.FG(I||"");v.tick[z]=l||(0,_.Dr)();if(v.callback&&v.callback[z])for(v=_.D(v.callback[z]),M=v.next();!M.done;M=v.next())M=M.value,M();v=_.iJ(I);v.gelTicks&&(v.gelTicks[z]=!0);M=_.ajQ(I);v=l||(0,_.Dr)();_.C("log_repeated_ytcsi_ticks")?z in M||(M[z]=v):M[z]=v;M=_.qu(I).cttAuthInfo;z==="_start"?ORx().baseline(b,l,M):ORx().tick(z,b,l,M);_.Eb5(I);return v}}};
NBt=function(z,l,I){if(_.Qi.mark)if(z.startsWith("mark_")||(z="mark_"+z),l&&(z+=" ("+l+")"),I===void 0||_.C("web_csi_disable_alt_time_performance_mark"))_.Qi.mark(z);else{I=_.C("csi_use_performance_navigation_timing")?I-_.Qi.timeOrigin:I-(_.Qi.timeOrigin||_.Qi.timing.navigationStart);try{_.Qi.mark(z,{startTime:I})}catch(b){}}};
uZk=function(){var z,l=(z=_.Qi.getEntriesByType)==null?void 0:z.call(_.Qi,"mark");l&&l.forEach(function(I){if(I.name.startsWith("mark_")){var b;(b=_.Qi.clearMarks)==null||b.call(_.Qi,I.name)}})};
_.ZRH=function(){switch(afu()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.HRf=function(z){var l={},I=function(M,x,g){x=x.match("_rid")?x.split("_rid")[0]:x;typeof g==="number"&&(g=JSON.stringify(g));M.requestIds?M.requestIds.push({endpoint:x,id:g}):M.requestIds=[{endpoint:x,id:g}]};
z=_.D(Object.entries(z));for(var b=z.next();!b.done;b=z.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;switch(b){case "GetBrowse_rid":I(l,b,v);break;case "GetGuide_rid":I(l,b,v);break;case "GetHome_rid":I(l,b,v);break;case "GetPlayer_rid":I(l,b,v);break;case "GetSearch_rid":I(l,b,v);break;case "GetSettings_rid":I(l,b,v);break;case "GetTrending_rid":I(l,b,v);break;case "GetWatchNext_rid":I(l,b,v);break;case "yt_red":l.isRedSubscriber=!!v;break;case "yt_ad":l.isMonetized=!!v}}return l};
fiH=function(z,l,I,b,v,M){if(!_.C("web_csi_action_sampling_enabled")||!_.qu(M).actionDisabled){var x=_.iJ(M);if(x.gelSpans)x.gelSpans[z]=!0;else{var g={};x.gelSpans=(g[z]=!0,g)}yiu++;z={spanName:z,spanLengthUsec:String(Math.round(l*1E3)),spanNonce:yiu};b&&(z.spanInfo=b);v&&(z.parentSpanNonce=v);I&&(z.spanStartTimeUsec=String(Math.round(I*1E3)));_.FG(M||"").span[String(z.spanName)]=z;I=_.iJ(M);I.gelSpans||(I.gelSpans={});_.wm(I.gelSpans,z);I=j5p(M);M=_.qu(M).cttAuthInfo;ORx().span(z,I,M);return z.spanNonce}};
_.CXt=function(z){var l=_.S_("aft",z);if(l)return l;l=_.sZ((z||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=l.length,b=0;b<I;b++){var v=_.S_(l[b],z);if(v)return v}return NaN};
_.kr7=function(z,l){_.vd("ytglobal.timing"+(l||"")+"ready_",z)};
_.S_=function(z,l){if(z=_.ajQ(l)[z])return typeof z==="number"?z:z[z.length-1]};
_.Eb5=function(z){var l=_.S_("_start",z),I=_.CXt(z),b=!RUG;l&&I&&b&&(K2x(mYY,new Kjp(Math.round(I-l),z)),RUG=!0)};
BBu=function(z){L1k(z);tFH();uZk();z||(_.sZ("TIMING_ACTION")&&_.hr("PREVIOUS_ACTION",_.sZ("TIMING_ACTION")),_.hr("TIMING_ACTION",""))};
_.Xok=function(z){z=z===void 0?{}:z;_.em(function(){dC();li7();BBu();_.kr7(!1);z.cttAuthInfo&&(_.qu().cttAuthInfo=z.cttAuthInfo);_.hr("TIMING_AFT_KEYS",[]);z.isHot?_.om({loadType:"hot"}):_.om({loadType:"warm"});_.hr("TIMING_ACTION","");delete _.sZ("TIMING_INFO",{}).yt_lt;_.em(_.xYk)(z.startTime,void 0)})()};
_.hH=function(z,l,I,b){l=l===void 0?{}:l;_.em(function(){var v=I?I:z;Pu(v);var M=l.sampleRate;if(!_.C("web_csi_action_sampling_enabled")||M===void 0||M<=1)M=!1;else{var x=j5p(v);M=n4u(x)%M!==0}M&&(_.qu(v).actionDisabled=!0);_.FG(v||"").info.actionType=z;l.cttAuthInfo&&(_.qu(v).cttAuthInfo=l.cttAuthInfo);_.hr(v+"TIMING_ACTION",z);_.em(_.xYk)(l.startTime,v);M={actionType:b||_.bRY(z)};l.logPreviousAction&&(M.previousAction=_.bRY(_.sZ("TIMING_ACTION")));(x=_.sU())&&x!=="UNDEFINED_CSN"&&(M.clientScreenNonce=
x);_.om(M,v);_.kr7(!0,v)})()};
Pu=function(z){_.em(function(){dC(z);li7(z);BBu(z)})()};
qep=function(){_.em(function(){var z=[],l;for(l in _.W8("ytcsi.".slice(0,-1)))l.endsWith("data_")&&z.push(l.slice(0,-5));z=_.D(z);for(l=z.next();!l.done;l=z.next())Pu(l.value);dC()})()};
_.Fj$=function(z){return _.em(function(){return _.iR7("_start",z)})()};
_.om=function(z,l,I){_.em(_.cu)(z,l,I===void 0?!1:I)};
_.sK=function(z,l,I){return _.em(_.Tb)(z,l,I)};
_.iR7=function(z,l){return _.em(function(){var I=_.ajQ(l);return z in I})()};
YeG=function(z){if(!_.C("universal_csi_network_ticks"))return"";z=_.yI(z)||"";for(var l=Object.keys(Qpx),I=0;I<l.length;I++){var b=l[I];if(z.includes(b))return b}return""};
cix=function(z){if(!_.C("universal_csi_network_ticks"))return function(){};
var l=Qpx[z];return l?(_.rC(l),function(){var I=_.C("universal_csi_network_ticks")?(I=TBH[z])?_.rC(I):!1:!1;return I}):function(){}};
_.rC=function(z,l,I){return _.em(function(){if(_.iR7(z,I))return!1;_.sK(z,l,I);return!0})()};
_.$B=function(z,l,I){_.em(function(){if(!_.Fj$(I)||_.iR7(z,I))return!1;_.sK(z,l,I);return!0})()};
_.e_=function(z){return _.em(_.S_)(z,void 0)};
dC=function(z){_.Fj$(z)&&_.sK("aa",void 0,z)};
_.hUp=function(z,l,I,b,v,M,x,g,G){var u=SeS();g=new PP({veType:l,youtubeData:M,jspbYoutubeData:g});M=wC({},u);v&&(M.cttAuthInfo=v);v={csn:u,pageVe:g.getAsJson()};_.C("expectation_logging")&&G&&G.screenCreatedLoggingExpectations&&(v.screenCreatedLoggingExpectations=G.screenCreatedLoggingExpectations);I&&I.visualElement?(v.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},x&&(v.implicitGesture.gestureType=x)):I&&_.PW(new _.qB("newScreen() parent element does not have a VE - rootVe",
l));b&&(v.cloneCsn=b);z?Y7("screenCreated",v,z,M):_.cW("screenCreated",v,M);K2x(Q8H,new dYQ(u));AH.clear();obH.clear();PXY.clear();return u};
Wu=function(z,l,I,b,v,M){M=M===void 0?{}:M;spx(z,l,I,[b],v===void 0?!1:v,M)};
spx=function(z,l,I,b,v,M){v=v===void 0?!1:v;M=M===void 0?{}:M;Object.assign(M,wC({cttAuthInfo:rm(l)||void 0},l));for(var x=_.D(b),g=x.next();!g.done;g=x.next()){g=g.value;var G=g.getAsJson();(_.h7.isEmpty(G)||!G.trackingParams&&!G.veType)&&_.PW(Error("zf"));if(_.C("no_client_ve_attach_unless_shown")){var u=rik(g,l);if(G.veType&&!obH.has(u)&&!PXY.has(u)&&!v){if(!_.C("il_attach_cache_limit")||AH.size<1E3){AH.set(u,[z,l,I,g]);return}_.C("il_attach_cache_limit")&&AH.size>1E3&&_.PW(new _.qB("IL Attach cache exceeded limit"))}g=
rik(I,l);AH.has(g)?$Y$(I,l):PXY.set(g,!0)}}b=b.filter(function(Z){Z.csn!==l?(Z.csn=l,Z=!0):Z=!1;return Z});
I={csn:l,parentVe:I.getAsJson(),childVes:_.s7(b,function(Z){return Z.getAsJson()})};
l==="UNDEFINED_CSN"?nM("visualElementAttached",M,I):z?Y7("visualElementAttached",I,z,M):_.cW("visualElementAttached",I,M)};
wof=function(z,l,I,b,v){eUx(z,l,I,v)};
eUx=function(z,l,I,b){Aif(I,l);var v=wC({cttAuthInfo:rm(l)||void 0},l);I={csn:l,ve:I.getAsJson(),eventType:1};b&&(I.clientData=b);l==="UNDEFINED_CSN"?nM("visualElementShown",v,I):z?Y7("visualElementShown",I,z,v):_.cW("visualElementShown",I,v)};
Wj7=function(z,l,I,b){Aif(I,l);var v=wC({cttAuthInfo:rm(l)||void 0},l);I={csn:l,ve:I.getAsJson(),eventType:4};b&&(I.clientData=b);l==="UNDEFINED_CSN"?nM("visualElementShown",v,I):z?Y7("visualElementShown",I,z,v):_.cW("visualElementShown",I,v)};
nbH=function(z,l,I,b,v){var M=(b=b===void 0?!1:b)?16:8;b=wC({cttAuthInfo:rm(l)||void 0,endOfSequence:b},l);I={csn:l,ve:I.getAsJson(),eventType:M};v&&(I.clientData=v);l==="UNDEFINED_CSN"?nM("visualElementHidden",b,I):z?Y7("visualElementHidden",I,z,b):_.cW("visualElementHidden",I,b)};
UYt=function(z,l,I,b,v){Ljx(z,l,I,void 0,b,v)};
Ljx=function(z,l,I,b,v){Aif(I,l);b=b||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var M=wC({cttAuthInfo:rm(l)||void 0},l);I={csn:l,ve:I.getAsJson(),gestureType:b};v&&(I.clientData=v);l==="UNDEFINED_CSN"?nM("visualElementGestured",M,I):z?Y7("visualElementGestured",I,z,M):_.cW("visualElementGestured",I,M)};
aiQ=function(z,l,I,b){var v=wC({cttAuthInfo:rm(l)||void 0},l);I={csn:l,ve:I.getAsJson(),clientData:b};l==="UNDEFINED_CSN"?nM("visualElementStateChanged",v,I):z?Y7("visualElementStateChanged",I,z,v):_.cW("visualElementStateChanged",I,v)};
VFQ=function(){var z=Pot(16);for(var l=[],I=0;I<z.length;I++)l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(z[I]&63));return l.join("")};
nM=function(z,l,I){jpG.push({payloadName:z,payload:I,jspbPayload:void 0,options:l});Ji7||(Ji7=TcG())};
F27=function(z){if(jpG){for(var l=_.D(jpG),I=l.next();!I.done;I=l.next())I=I.value,I.payload&&(I.payload.csn=z.csn,_.cW(I.payloadName,I.payload,I.options));jpG.length=0}Ji7=0};
rik=function(z,l){return""+z.getAsJson().veType+z.getAsJson().veCounter+l};
Aif=function(z,l){if(_.C("no_client_ve_attach_unless_shown")){var I=rik(z,l);obH.set(I,!0);$Y$(z,l)}};
$Y$=function(z,l){z=rik(z,l);AH.has(z)&&(l=AH.get(z)||[],Wu(l[0],l[1],l[2],l[3],!0),AH.delete(z))};
wC=function(z,l){_.C("log_sequence_info_on_gel_web")&&(z.sequenceGroup=l);return z};
_.LM=function(z,l,I){_.em(Wu)(void 0,z,l,I)};
_.UK=function(z,l,I){_.em(spx)(void 0,z,l,I)};
_.am=function(z,l){_.em(wof)(void 0,z,l,void 0,void 0,void 0)};
_.Vi=function(z,l,I){_.em(function(){_.UZ(l,function(b){Wj7(void 0,z,b,I)})})()};
_.j_=function(z,l,I,b){_.em(function(){_.UZ(l,function(v){nbH(void 0,z,v,I,b)})})()};
_.JH=function(z,l,I){_.em(UYt)(void 0,z,l,I,void 0)};
_.zZ=function(z,l,I,b){_.em(Ljx)(void 0,z,l,I,b,void 0)};
_.li=function(z,l,I){_.em(aiQ)(void 0,z,l,I,void 0)};
zmf=function(z,l){Ih.set(z,l)};
ltk=function(z){return bi.initialized?bi.enabledSpans?bi.enabledSpans[z]:!0:!1};
Itp=function(z,l){if(z){l=l===void 0?1:l;if(z){z.endTime=(0,_.Dr)();l&&(z.status=l);l=_.D(bi.processors);for(var I=l.next();!I.done;I=l.next()){var b=void 0,v=void 0;(v=(b=I.value).onSpanEnd)==null||v.call(b,z)}}z!==bi.stack[bi.stack.length-1]&&_.PW(Error("Cf`"+z.name));bi.stack.pop()}};
bw1=function(z,l,I){if(ltk(z)){var b=bi.nextSpanId++,v=bi.stack[bi.stack.length-1];z={id:b,parentId:v==null?void 0:v.id,name:z,attributes:l,traceId:v?v.traceId:b,sessionId:bi.sessionId,startTime:(0,_.Dr)(),status:0};v&&(v.children||(v.children=[]),v.children.push(z));v=_.D(bi.processors);for(l=v.next();!l.done;l=v.next()){var M=b=void 0;(M=(b=l.value).onSpanStart)==null||M.call(b,z)}}else z=void 0;z?bi.stack.push(z):z=void 0;if(!z)return I();try{var x=I(z);Itp(z);return x}catch(g){throw Itp(z,2),
g;}};
vKk=function(){};
MoQ=function(z,l){var I=Object.keys(z);z=new _.qB("[Command Handler] "+l,{filteredCommandNames:I,originalCommand:z});_.dE(z)};
pTt=function(z,l){MoQ(z,l+" was called but not set")};
Dk7=function(z){return function(){return new z}};
vg=function(z){return function(){return _.pG().resolve(z)}};
xku=function(z,l){var I=_.k(z,_.eX);if(I&&(I=l[I.signal]))return I();z=_.D(Object.keys(z));for(I=z.next();!I.done;I=z.next())if(I=I.value,l[I]&&(I=l[I]))return I()};
_.MF=function(z,l,I,b){return{browseEndpoint:{browseId:z},commandMetadata:{webCommandMetadata:{url:l,rootVe:I,webPageType:b===void 0?"WEB_PAGE_TYPE_BROWSE":b}}}};
Owf=function(z,l,I){var b=l=l===void 0?0:l;I=I===void 0?0:I;var v=I-b;return _.pc(z,"PPSV",void 0,void 0,(v>600?0:v<60||I<=0||b/I>.9)?0:l)};
_.pc=function(z,l,I,b,v){var M="/watch?v="+z;z={videoId:z};l&&(z.playlistId=l,M+="&list="+l);b&&(M+="&pp="+b);v&&(z.startTimeSeconds=v,M+="&t="+v+"s");l={watchEndpoint:z,commandMetadata:{webCommandMetadata:{url:M,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(l.clickTrackingParams=I);b&&(_.k(l,_.zb).playerParams=b);return l};
gKu=function(z){return{browseEndpoint:{browseId:"VL"+z},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+z,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
GJp=function(z){if(z){var l;if(z){var I=(l=_.k(z.commandMetadata,_.kB))==null?void 0:l.url;l=!(!I||I==="/service_ajax")}else l=!1;if(l)return z;var b;if(z=(b=_.k(z,_.yi))==null?void 0:b.commands)for(b=_.D(z),z=b.next();!z.done;z=b.next())if(z=GJp(z.value))return z}};
_.xw=function(z){return{runs:[{text:z}]}};
NLu=function(z,l){return z&&l?{runs:[{text:z,navigationEndpoint:l}]}:void 0};
Op=function(z){return z?_.xw(z):void 0};
_.gg=function(z){return z?{simpleText:z}:void 0};
_.GZ=function(z){var l=z.type;z=z.payload;l={type:l};z!==void 0&&(l.payload=z);return l};
EK1=function(z,l,I){for(var b=Object.assign({},z),v=_.D(Object.keys(l)),M=v.next();!M.done;M=v.next()){M=M.value;var x=z[M],g=l[M];if(g===void 0)delete b[M];else if(x===void 0)b[M]=g;else if(Array.isArray(g)&&Array.isArray(x))b[M]=I?[].concat(_.ht(x),_.ht(g)):g;else if(!Array.isArray(g)&&_.Lu(g)&&!Array.isArray(x)&&_.Lu(x))b[M]=EK1(x,g,I);else if(typeof g===typeof x)b[M]=g;else return l=new _.qB("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:M,originalValue:x,updateValue:g}),
_.dE(l),z}return b};
Hwk=function(z){if(!z.length)return"";try{if(uuk)return uuk.decode(z);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(z)}catch(x){}for(var l=0,I=[],b=z.length;l<b;){for(var v=0;v<1024&&l<b;){var M=z[l++];if(M<128)Zwk[v++]=M;else{if(M<224)M=(M&31)<<6|z[l++]&63;else if(M<240)M=(M&15)<<12|(z[l++]&63)<<6|z[l++]&63;else{if(v+1===1024){--l;break}M=(M&7)<<18|(z[l++]&63)<<12|(z[l++]&63)<<6|z[l++]&63;M-=65536;Zwk[v++]=55296|M>>10;M=56320|M&1023}Zwk[v++]=M}}M=String.fromCharCode.apply(String,
Zwk);v<1024&&(M=M.substring(0,v));I.push(M)}return I.join("")};
ft7=function(z,l){var I;if((I=ydk)==null?0:I.encodeInto)return l=ydk.encodeInto(z,l),l.read<z.length?z.length*4:l.written;for(var b=I=0;b<z.length;b++){var v=z.charCodeAt(b);v<128?l[I++]=v:(v<2048?l[I++]=v>>6|192:((v&64512)===55296&&b+1<z.length&&(z.charCodeAt(b+1)&64512)===56320?(v=65536+((v&1023)<<10)+(z.charCodeAt(++b)&1023),l[I++]=v>>18|240,l[I++]=v>>12&63|128):l[I++]=v>>12|224,l[I++]=v>>6&63|128),l[I++]=v&63|128)}return I};
CAk=function(z,l,I){if(l&&I&&I.buffer===l.exports.memory.buffer){var b=l.realloc(I.byteOffset,z);if(b)return new Uint8Array(l.exports.memory.buffer,b,z)}z=l?new Uint8Array(l.exports.memory.buffer,l.malloc(z),z):new Uint8Array(z);I&&z.set(I);return z};
_.Ep=function(z){z=new kJp(new Rm$([_.jx(decodeURIComponent(z))]));if(mkt(z,2)){var l=NF(z);var I=z.pos;var b=z.arrayView;I=I===void 0?0:I;var v=l===void 0?-1:l;I=I===void 0?0:I;v=v===void 0?-1:v;if(b.totalLength&&v){v<0&&(v=b.totalLength-I);b.focus(I);if(!(I-b.arrayPos+v<=b.arrays[b.arrayIdx].length)){var M=b.arrayIdx,x=b.arrayPos;b.focus(I+v-1);x=new Uint8Array(b.arrayPos+b.arrays[b.arrayIdx].length-x);for(var g=0,G=M;G<=b.arrayIdx;G++)x.set(b.arrays[G],g),g+=b.arrays[G].length;b.arrays.splice(M,
b.arrayIdx-M+1,x);b.arrayIdx=0;b.arrayPos=0;b.focus(I)}M=b.arrays[b.arrayIdx];b=new DataView(M.buffer,M.byteOffset+I-b.arrayPos,v)}else b=new DataView(new ArrayBuffer(0));b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength);z.pos+=l;l=b}else l=void 0;l=l?Hwk(l):void 0;z=mkt(z,4)?NF(z):void 0;b=Kqf[z];if(typeof b==="undefined")throw z=new _.qB("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:z}),_.dE(z),z;return{entityTypeFieldNumber:z,entityType:b,entityId:l}};
_.Hg=function(z,l,I){I=I===void 0?0:I;var b=new to7;if(ydk)z=ydk.encode(z);else{var v=new Uint8Array(Math.ceil(z.length*1.2)),M=ft7(z,v);v.length<M&&(v=new Uint8Array(M),M=ft7(z,v));v.length>M&&(v=v.subarray(0,M));z=v}z!==void 0&&(ui(b,18),v=z.length,ui(b,v),Zp(b,v),b.buf.set(z,b.pos),b.pos+=v);z=BL7[l];if(typeof z==="undefined")throw I=new _.qB("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:l}),_.dE(I),I;z!==void 0&&(ui(b,32),ui(b,z));ui(b,40);ui(b,1);l=new Uint8Array(b.buf.buffer,
b.buf.byteOffset,b.pos);return encodeURIComponent(_.Tc(l,I))};
XT5=function(z){z=z.key||z.id;if(!z)throw Error("Ef");return z};
iwQ=function(z,l){z=z===void 0?{}:z;return q4f(z,l)};
FqQ=function(z,l,I,b){if(b===void 0)return b=Object.assign({},z[l]||{}),I=(delete b[I],b),b={},Object.assign({},z,(b[l]=I,b));var v={},M={};return Object.assign({},z,(M[l]=Object.assign({},z[l],(v[I]=b,v)),M))};
QPQ=function(z,l,I,b,v){var M=z[l];if(M==null||!M[I])return z;b=EK1(M[I],b,v==="REPEATED_FIELDS_MERGE_OPTION_APPEND");v={};M={};return Object.assign({},z,(M[l]=Object.assign({},z[l],(v[I]=b,v)),M))};
_.Cc=function(z,l,I){return z[l]?z[l][I]||null:null};
TLY=function(){if(Y41)return Y41();var z={};Y41=pp("PersistentEntityStoreDb",{objectStores:(z.EntityStore={addedAtVersion:1},z.EntityAssociationStore={addedAtVersion:2},z),shared:!1,upgrade:function(l,I){I(1)&&AW(wi(l,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(l=wi(l,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),AW(l,"byParentEntityKey","parentEntityKey"),AW(l,"byChildEntityKey","childEntityKey"))},
version:3});return Y41()};
cdH=function(z){return _.jc(TLY(),z)};
kw=function(z){return window.Int32Array?new Int32Array(z):Array(z)};
dku=function(z){return _.jc(S41(),z)};
oKp=function(z){return new Rh("WRONG_DATA_TYPE",{encoderVersion:z})};
PAQ=function(z){return z instanceof Error?new Rh("UNKNOWN_ENCODE_ERROR",{originalMessage:z.message}):new Rh("UNKNOWN_ENCODE_ERROR")};
hmQ=function(z){return z instanceof Error?new Rh("UNKNOWN_DECODE_ERROR",{originalMessage:z.message}):new Rh("UNKNOWN_DECODE_ERROR")};
sP5=function(z,l){z=z instanceof Rh?z:l(z);_.dE(z);throw z;};
rdf=function(z){z=(new TextEncoder).encode(z).subarray(0,16);var l=new Uint8Array(16);l.set(z);return l};
emQ=function(z){var l=$kk[z];if(l)return l;_.PW(new _.qB("Entity model not found.",{entityType:z}))};
_.mM=function(){wTH||(wTH=Adx());return wTH};
Adx=function(){var z,l,I;return _.O(function(b){if(b.nextAddress==1)return _.RL(b,2),b.yield(_.MW(),4);if(b.nextAddress!=2){z=b.yieldResult;if(!z||!_.Xm()||typeof _.v7.BroadcastChannel==="undefined")return b.return();l=new WqH;return b.return(new Kc(z,l))}I=_.XP(b);I instanceof Error&&_.dE(I);return b.return()})};
_.tm=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1){I=z.mutations;if(!I||I.length<=0)return b.return();l&&l.dispatch(_.GZ({type:"ENTITY_LOADED",payload:I}));return b.yield(nKp(I),2)}I.length=0;_.qe(b)})};
nKp=function(z){var l;return _.O(function(I){return I.nextAddress==1?I.yield(_.mM(),2):(l=I.yieldResult)?I.yield(_.Bg(l,"readwrite",function(b){for(var v={},M=_.D(z),x=M.next(),g={};!x.done;g={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},x=M.next())g.mutation$jscomp$4=x.value,g.mutation$jscomp$4.entityKey&&Lq1(g.mutation$jscomp$4)&&(g.mutationEntityType$jscomp$3=(0,_.h7.getAnyKey)(g.mutation$jscomp$4.payload),x=void 0,g.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(x=function(G){return function(){return _.Ukf(b,
G.mutation$jscomp$4.payload[G.mutationEntityType$jscomp$3],G.mutationEntityType$jscomp$3)}}(g)),g.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(x=function(G){return function(){return atu(b,G.mutation$jscomp$4.entityKey)}}(g)),g.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(x=function(G){return function(){return VoQ(b,G.mutation$jscomp$4.entityKey,G.mutation$jscomp$4.payload[G.mutationEntityType$jscomp$3],G.mutationEntityType$jscomp$3)}}(g)),x&&(v[g.mutation$jscomp$4.entityKey]=
v[g.mutation$jscomp$4.entityKey]?v[g.mutation$jscomp$4.entityKey].then(x):x()));
return AE.all(Object.values(v))}),0):I.return()})};
Lq1=function(z){var l;z=(l=z.options)==null?void 0:l.persistenceOption;return z==="ENTITY_PERSISTENCE_OPTION_PERSIST"||z==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
zXt=function(z,l){var I,b;_.O(function(v){if(v.nextAddress==1)return v.yield(_.mM(),2);if(v.nextAddress!=3)return(I=v.yieldResult)?v.yield(_.Bg(I,"readonly",function(M){var x={},g=Object.keys(l).map(function(G){var u=l[G]?[].concat(_.ht(l[G])):[];return jP1(M,G,u,x)});
return AE.all(g).then(function(){return x})}),3):v.return();
b=v.yieldResult;Object.keys(b).length>0&&z.dispatch(Jdk(b));_.qe(v)})};
jP1=function(z,l,I,b){return Xs(z,l,I).then(function(v){b[l]=lZG(I,v)})};
lZG=function(z,l){if(l.length!==z.length)throw Error("Hf");return l.reduce(function(I,b,v){I[z[v]]=b;return I},{})};
vmG=function(z){var l=z.filter(function(v){var M;return(v==null?void 0:(M=v.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=z.filter(function(v){var M;
return(v==null?void 0:(M=v.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_FAILED"}).length,b=z.filter(function(v){var M;
return(v==null?void 0:(M=v.transferEntity)==null?void 0:M.transferState)&&IZk.includes(v.transferEntity.transferState)});
if(!(l||b!=null&&b.length))return 0;l=_.btQ(b)+l;z=z.length-I;return z===0?0:Math.round(l*100/z)/100};
_.btQ=function(z){var l=[];l=l.concat.apply(l,_.ht(z.filter(function(M){return M.streamEntity}).map(function(M){var x=Object.assign({},M.streamEntity),g,G=(g=M.transferEntity)==null?void 0:g.transferState;
x.streamsProgress=x.streamsProgress||[];x.streamsProgress=x.streamsProgress.map(function(u){var Z=Object.assign({},u);Z.numBytesDownloaded=G==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded;return Z});
return x}).map(function(M){return M.streamsProgress})));
var I=z=0;l=_.D(l);for(var b=l.next();!b.done;b=l.next()){var v=b.value;b=Number(v.numBytesDownloaded);v=Number(v.numTotalBytes);I+=isNaN(b)?0:b;z+=isNaN(v)?0:v}return z===0?0:Math.round(I*100/z)/100};
MaY=function(z){if(!z||!z.expirationTimestamp||!z.action)return!1;var l=(0,_.Dr)()/1E3;return Number(z.expirationTimestamp)>=l};
qF=function(z){return z&&z.expirationTimestamp&&z.action?MaY(z)&&z.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.ii=function(z){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(z||"TRANSFER_STATE_UNKNOWN")};
pf1=function(z){var l=new to7;if(z!==void 0){var I=Math.ceil(Math.log2(z.length*4+2)/7);I=I===void 0?2:I;ui(l,10);l.submessagePosStack.push(l.pos);l.submessagePosStack.push(I);l.pos+=I;Zp(l,z.length*1.2);I=ft7(z,l.buf.subarray(l.pos));l.pos+I>l.buf.length&&(Zp(l,I),I=ft7(z,l.buf.subarray(l.pos)));l.pos+=I;z=l.submessagePosStack.pop();I=l.submessagePosStack.pop();for(var b=l.pos-I-z;z--;){var v=z?128:0;l.view.setUint8(I++,b&127|v);b>>=7}}l=new Uint8Array(l.buf.buffer,l.buf.byteOffset,l.pos);return(new TextDecoder("utf-8")).decode(l)};
_.Fs=function(z){var l=0;z=_.D(z);for(var I=z.next(),b={};!I.done;b={transferState$jscomp$3:void 0},I=z.next()){var v=I.value,M=void 0;I=(M=v.streamEntity)!=null?M:{};M=void 0;b.transferState$jscomp$3=(M=v.transferEntity)==null?void 0:M.transferState;M=v=void 0;((v=I)==null?0:(M=v.streamsProgress)==null?0:M.length)&&I.streamsProgress.forEach(function(x){return function(g){g=Number(x.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?g.numTotalBytes:g.numBytesDownloaded);isFinite(g)&&(l+=g)}}(b))}return l};
D1u=function(z){return z.some(function(l){var I;if(!(l==null?0:(I=l.transferEntity)==null?0:I.transferState)){var b;return!(l==null?0:(b=l.policyEntity)==null?0:b.action)||l.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return IZk.includes(l.transferEntity.transferState)})};
x1x=function(z,l){if(!l)return!1;if(_.C("of_pb_en_po_ks"))return!0;var I;z=(I=_.Cc(z,"offlineVideoPolicy",_.Hg(l,"offlineVideoPolicy")))!=null?I:void 0;return!!z&&qF(z)};
_.gm5=function(z){var l=["TRANSFER_STATE_COMPLETE"];l=l===void 0?Otp:l;return z.filter(function(I){var b,v;return l.includes((v=(b=I.transferEntity)==null?void 0:b.transferState)!=null?v:"TRANSFER_STATE_UNKNOWN")})};
GWk=function(z,l){if(l){var I,b=(I=_.Cc(z,"playbackData",_.Hg(l,"playbackData")))!=null?I:null,v;I=(v=_.Cc(z,"transfer",_.Hg(l,"transfer")))!=null?v:null;var M;v=(M=_.Cc(z,"offlineVideoStreams",_.Hg(l,"offlineVideoStreams")))!=null?M:null;var x;z=(x=_.Cc(z,"offlineVideoPolicy",_.Hg(l,"offlineVideoPolicy")))!=null?x:null;if(b||I||v||z)return{playbackDataEntity:b,transferEntity:I,streamEntity:v,policyEntity:z}}};
_.QA=function(z){var l=z.playbackData;if(!l)return[];var I=[];l=_.D(Object.keys(l));for(var b=l.next();!b.done;b=l.next()){var v=b.value;if(!Nbk(z,_.Ep(v).entityId)&&(b=GWk(z,_.Ep(v).entityId))){var M=void 0,x=void 0;v=(x=Number((M=_.Cc(z,"playbackData",v))==null?void 0:M.streamDownloadTimestampSeconds))!=null?x:(0,_.Dr)();I.push({entity:b,streamDownloadTimestamp:v})}}return I.sort(function(g,G){var u=g.streamDownloadTimestamp,Z=G.streamDownloadTimestamp;return Z===u?g.entity.streamEntity&&!G.entity.streamEntity?
1:-1:Z-u}).map(function(g){return g.entity})};
EmH=function(z){return _.gm5(_.QA(z))};
_.uTG=function(z){return _.QA(z).filter(function(l){var I;if(((I=l.policyEntity)==null?0:I.action)&&l.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var b;if((b=l.transferEntity)==null?0:b.transferState){var v;return IZk.includes((v=l.transferEntity)==null?void 0:v.transferState)}return!0})};
Nbk=function(z,l){var I;return((I=_.Cc(z,"downloadStatusEntity",_.Hg(l,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Zt7=function(z){var l;if(z==null?0:(l=z.playbackDataEntity)==null?0:l.key)return _.Ep(z.playbackDataEntity.key).entityId;var I;if(z==null?0:(I=z.transferEntity)==null?0:I.key)return _.Ep(z.transferEntity.key).entityId;var b;if(z==null?0:(b=z.streamEntity)==null?0:b.key)return _.Ep(z.streamEntity.key).entityId;var v;if(z==null?0:(v=z.policyEntity)==null?0:v.key)return _.Ep(z.policyEntity.key).entityId};
yMQ=function(z){var l=new Set,I;z=(I=z.mainDownloadsListEntity)==null?void 0:I[Htx];var b;if(!(z==null?0:(b=z.downloads)==null?0:b.length))return l;var v;z==null||(v=z.downloads)==null||v.forEach(function(M){(M==null?0:M.videoItem)&&l.add(M.videoItem)});
return l};
Yw=function(z,l){if(l){var I=_.Cc(z,"mainVideoEntity",_.Hg(l,"mainVideoEntity")),b=_.Cc(z,"downloadStatusEntity",_.Hg(l,"downloadStatusEntity")),v=_.Cc(z,"ytMainChannelEntity",_.Hg(l,"ytMainChannelEntity")),M={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};z=GWk(z,l);b=(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.C("woffle_render_failed_download_state_ks")&&(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_FAILED";!z&&b&&(z=M);if(z&&I&&
v)return Object.assign({},{videoEntity:I,channelEntity:v},z)}};
CS$=function(z,l){return fZk(z,l)==="TRANSFER_STATE_COMPLETE"&&x1x(z,l)};
kWS=function(z,l){if(!l)return!1;var I;z=(I=_.Cc(z,"playbackData",_.Hg(l,"playbackData")))!=null?I:void 0;return!!z&&!!z.playerResponseJson};
fZk=function(z,l){if(!l)return"TRANSFER_STATE_UNKNOWN";var I=_.Cc(z,"transfer",_.Hg(l,"transfer"));if(I){var b;return(b=I.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}I=_.Cc(z,"offlineOrchestrationActionWrapperEntity",_.Hg(l,"offlineOrchestrationActionWrapperEntity"));z=_.Cc(z,"mainVideoEntity",_.Hg(l,"mainVideoEntity"));return I||z?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
RXf=function(z,l){if(!l)return"TRANSFER_STATE_UNKNOWN";if(z=_.Cc(z,"transfer",_.Hg(l,"transfer"))){var I;return(I=z.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
m1x=function(z,l){return l&&(z=_.Cc(z,"videoPlaybackPositionEntity",_.Hg(l,"videoPlaybackPositionEntity")),z==null?0:z.lastPlaybackPositionSeconds)?Number(z.lastPlaybackPositionSeconds):0};
ta1=function(z,l){return KtH(z).some(function(I){var b;return(I==null?void 0:(b=I.mainPlaylistEntity)==null?void 0:b.playlistId)===l})};
XfQ=function(z,l,I){var b=Bbt(z,l);if(!b.length)return[];l=[];b=_.D(b);for(var v=b.next();!v.done;v=b.next()){v=v.value;var M=Yw(z,v);I&&fZk(z,v)!=="TRANSFER_STATE_COMPLETE"||M&&l.push(M)}return l};
Bbt=function(z,l){if(!l)return[];var I=_.Hg(l,"mainPlaylistEntity"),b;l=(b=z.mainPlaylistEntity)==null?void 0:b[I];b=[];if(l==null||!l.videos)return b;l=_.D(l.videos);for(I=l.next();!I.done;I=l.next()){I=I.value;var v=void 0,M=void 0,x=void 0,g=(v=z)==null?void 0:(M=v.mainPlaylistVideoEntity)==null?void 0:(x=M[I])==null?void 0:x.video;g&&(I=_.Ep(g).entityId)&&b.push(I)}return b};
qEH=function(z,l){if(l){var I=_.Cc(z,"mainPlaylistEntity",_.Hg(l,"mainPlaylistEntity")),b=_.Cc(z,"mainPlaylistDownloadStateEntity",_.Hg(l,"mainPlaylistDownloadStateEntity"));z=_.Cc(z,"ytMainChannelEntity",_.Hg(l,"ytMainChannelEntity"));if(b&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:b},!!z&&{channelEntity:z})}};
KtH=function(z){return itH(z).sort(function(l,I){return I.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return l.downloadedPlaylistEntities})};
itH=function(z){var l=z.mainPlaylistDownloadStateEntity,I=[];if(!l)return I;for(var b=_.D(Object.keys(l)),v=b.next();!v.done;v=b.next()){var M=v.value;v=qEH(z,_.Ep(M).entityId);var x=void 0;M=Number((x=l[M])==null?void 0:x.addedTimestampMillis);x=isNaN(M)?(0,_.Dr)():M;v!==void 0&&I.push({downloadedPlaylistEntities:v,addedTimestampMillis:x})}return I};
Ftt=function(z){var l,I=(l=z.mainPlaylistVideoEntity)!=null?l:{};return new Set(KtH(z).reduce(function(b,v){b=b===void 0?[]:b;var M,x;v==null||(M=v.mainPlaylistEntity)==null||(x=M.videos)==null||x.forEach(function(g){var G;(g=(G=I[g])==null?void 0:G.video)&&b.push(g)});
return b},[]))};
Qck=function(z){return"downloadedMusicPlaylistEntities"in z};
YE$=function(z){return"mainPlaylistEntity"in z&&"mainPlaylistDownloadStateEntity"in z};
Tbp=function(z){return"videoEntity"in z&&"channelEntity"in z};
cMS=function(z){var l=z.musicPlaylistDownloadMetadataEntity,I=[];if(!l)return I;for(var b=_.D(Object.keys(l)),v=b.next();!v.done;v=b.next()){v=v.value;a:{var M=z,x=_.Ep(v).entityId;if(x){var g=_.Cc(M,"musicPlaylist",_.Hg(x,"musicPlaylist"));M=_.Cc(M,"musicPlaylistDownloadMetadataEntity",_.Hg(x,"musicPlaylistDownloadMetadataEntity"));if(g&&M){g={musicPlaylistEntity:g,musicPlaylistDownloadStateEntity:M};break a}}g=void 0}M=void 0;v=Number((M=l[v])==null?void 0:M.addedTimestampMillis);v=isNaN(v)?(0,_.Dr)():
v;g!==void 0&&I.push({downloadedMusicPlaylistEntities:g,addedTimestampMillis:v})}return I};
SEY=function(z){var l=new Set;z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.D(I.musicPlaylistEntity.tracks);for(var b=I.next();!b.done;b=I.next())l.add(b.value)}return l};
d15=function(z,l){if(l){var I=_.Cc(z,"musicTrack",_.Hg(l,"musicTrack")),b=_.Cc(z,"musicArtist",_.Hg(l,"musicArtist"))||{};if((z=GWk(z,l))&&I&&b)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:b},z)}};
omQ=function(z){var l=z.musicTrackDownloadMetadataEntity,I=[];if(!l)return[];l=_.D(Object.keys(l));for(var b=l.next();!b.done;b=l.next()){var v=b.value;b=d15(z,_.Ep(v).entityId);var M=void 0;v=Number((M=_.Cc(z,"musicTrackDownloadMetadataEntity",v))==null?void 0:M.addedTimestampMillis);M=isNaN(v)?(0,_.Dr)():v;b!==void 0&&I.push({downloadedMusicEntities:b,addedTimestampMillis:M})}return I};
sc$=function(z,l){if(!l)return[];if(Object.values(PS5).includes(l))return hXY(z,l);l=_.Hg(l,"musicPlaylist");var I;z=(I=z.musicPlaylist)==null?void 0:I[l];I=[];if(z==null||!z.tracks)return I;z=_.D(z.tracks);for(l=z.next();!l.done;l=z.next())(l=_.Ep(l.value).entityId)&&I.push(l);return I};
hXY=function(z,l){var I=new Set,b=cMS(z).map(function(M){return M.downloadedMusicPlaylistEntities});
b=SEY(b);b=_.D(b);for(var v=b.next();!v.done;v=b.next())(v=_.Ep(v.value).entityId)&&I.add(v);return rMS(z).downloadedMusicEntities.filter(function(M){var x;if((x=M.musicTrackEntity)!=null&&x.videoId){M=M.musicTrackEntity;if(x=l==="PPOM"?!0:!I.has(M.videoId))b:switch(M=M.musicVideoType,l){case "PPSE":x=M==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:x=M!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}M=x}else M=!1;return M}).map(function(M){var x;
return(x=M.musicTrackEntity)==null?void 0:x.videoId})};
rMS=function(z){var l=omQ(z).sort(function(I,b){return b.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:Qck(I)?I.downloadedMusicPlaylistEntities:{}});
z=cMS(z).sort(function(I,b){return b.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:Qck(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:l,downloadedMusicPlaylistEntities:z}};
eX7=function(z,l){l=_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?sc$(z,l):Bbt(z,l);if(!l.length)return"TRANSFER_STATE_UNKNOWN";l=l.map(function(I){return RXf(z,I)});
return $11(l)};
$11=function(z){var l=new Set(z);if(l.has("TRANSFER_STATE_FAILED")&&l.size===1)return"TRANSFER_STATE_FAILED";l.delete("TRANSFER_STATE_FAILED");if(l.has("TRANSFER_STATE_UNKNOWN")&&l.size===1)return"TRANSFER_STATE_PRE_TRANSFER";l.delete("TRANSFER_STATE_UNKNOWN");if(l.has("TRANSFER_STATE_PRE_TRANSFER")&&l.size===1||l.size===0)return"TRANSFER_STATE_PRE_TRANSFER";z=l.has("TRANSFER_STATE_TRANSFERRING");l=l.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return z||l?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
TZ=function(z){var l=z.mainVideoDownloadStateEntity,I=[];if(!l)return[];l=_.D(Object.keys(l));for(var b=l.next();!b.done;b=l.next()){var v=b.value;if(!Nbk(z,_.Ep(v).entityId)){b=Yw(z,_.Ep(v).entityId);var M=void 0,x=void 0;v=(x=Number((M=_.Cc(z,"mainVideoDownloadStateEntity",v))==null?void 0:M.addedTimestampMillis))!=null?x:(0,_.Dr)();b!==void 0&&I.push({downloadedVideoEntities:b,addedTimestampMillis:v})}}return I};
wf5=function(z){return TZ(z).sort(function(l,I){return I.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return l.downloadedVideoEntities})};
_.Wtf=function(z){var l=Ftt(z),I=_.cg(z),b=yMQ(z),v=TZ(z).filter(function(x){var g,G;if((x==null?void 0:(g=x.downloadedVideoEntities)==null?void 0:(G=g.transferEntity)==null?void 0:G.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var u,Z;x=x==null?void 0:(u=x.downloadedVideoEntities)==null?void 0:(Z=u.videoEntity)==null?void 0:Z.key;return _.C("kevlar_use_library_entity")?x&&(b.has(x)||I[x]):x&&!l.has(x)}),M=itH(z).filter(function(x){return eX7(z,x.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ht(v),_.ht(M)).sort(function(x,g){return g.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return AMH(x)})};
nmt=function(z,l){if(l&&x1x(z,l)){var I,b,v=(b=(I=_.Cc(z,"playbackData",_.Hg(l,"playbackData")))!=null?I:void 0)==null?void 0:b.playerResponseJson;if(v){try{var M=JSON.parse(v);var x=_.Cc(z,"transfer",_.Hg(l,"transfer")),g=m1x(z,l);g&&(M=Object.assign({},M,{playerConfig:Object.assign({},M.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+g*1E3}}})}));M.cotn=x==null?void 0:x.cotn}catch(G){}return M}}};
_.U1p=function(z){var l,I,b;z=(b=(I=((l=z.downloadsPageViewConfigurationEntity)!=null?l:{})[_.SS])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?b:{};var v;return(v=_.k(z,LtY))!=null?v:{}};
_.cg=function(z){var l,I,b;z=(b=(I=((l=z.mainDownloadsListEntity)!=null?l:{})[_.aZH])==null?void 0:I.downloads)!=null?b:[];l={};I=_.D(z);for(b=I.next();!b.done;b=I.next())z=void 0,l[(z=b.value.videoItem)!=null?z:""]=!0;return l};
VaH=function(z){var l=_.cg(z);if(Object.keys(l).length===0)return!1;var I=z.mainVideoEntity;if(!I)return!0;I=_.D(Object.keys(I));for(var b=I.next();!b.done;b=I.next()){b=b.value;var v=_.Ep(b).entityId;if(l[b]&&!Nbk(z,v))return!1}return!0};
_.dg=function(z){var l=_.cg(z);return TZ(z).sort(function(I,b){return I.addedTimestampMillis-b.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var b;
return(I=I==null?void 0:(b=I.videoEntity)==null?void 0:b.key)&&!!l[I]})};
_.JM5=function(z){var l,I,b;z=(b=(I=((l=z.downloadsPageViewConfigurationEntity)!=null?l:{})[_.SS])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?b:{};var v;return(v=_.k(z,jcG))!=null?v:{}};
AMH=function(z){return"downloadedVideoEntities"in z?z.downloadedVideoEntities:"downloadedPlaylistEntities"in z?z.downloadedPlaylistEntities:{}};
z55=function(z){var l=_.cg(z),I=Ftt(z),b=TZ(z).filter(function(v){var M,x;return(v=v==null?void 0:(M=v.downloadedVideoEntities)==null?void 0:(x=M.videoEntity)==null?void 0:x.key)&&!l[v]&&!I.has(v)});
z=itH(z);return[].concat(_.ht(b),_.ht(z)).sort(function(v,M){return M.addedTimestampMillis-v.addedTimestampMillis}).map(function(v){return AMH(v)})};
_.oh=function(z){if(!_.C("kevlar_use_library_entity"))return z55(z);var l=TZ(z).filter(function(b){var v,M;if(v=b=b==null?void 0:(v=b.downloadedVideoEntities)==null?void 0:(M=v.videoEntity)==null?void 0:M.key){var x,g,G;v=((g=(x=z.mainDownloadsListEntity)==null?void 0:x[Htx])==null?0:(G=g.downloads)==null?0:G.length)?yMQ(z).has(b):!1}return v}),I=itH(z);
return[].concat(_.ht(l),_.ht(I)).sort(function(b,v){return v.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return AMH(b)})};
lLt=function(z){var l=_.cg(z),I=Ftt(z);return wf5(z).filter(function(b){var v;return(b=b==null?void 0:(v=b.videoEntity)==null?void 0:v.key)&&!l[b]&&!I.has(b)})};
ILp=function(z){if(!_.C("kevlar_use_library_entity"))return lLt(z);var l=_.cg(z),I=yMQ(z);return wf5(z).filter(function(b){var v;return(b=b==null?void 0:(v=b.videoEntity)==null?void 0:v.key)&&!l[b]&&I.has(b)})};
bqx=function(z,l){l=_.Hg(l,"settingEntity");var I,b,v;return!!((v=(b=((I=z.settingEntity)!=null?I:{})[l])==null?void 0:b.settingOptionValue)!=null?v:{}).boolValue};
_.Pg=function(z){var l=_.dg(z);if(D1u(l))return 0;var I=[];l=_.D(l);for(var b=l.next();!b.done;b=l.next()){b=b.value;var v=void 0,M=void 0;if((v=b)==null?0:(M=v.videoEntity)==null?0:M.key)v=_.Ep(b.videoEntity.key).entityId,b=z,v=_.Hg(v,"mainVideoDownloadStateEntity"),b=_.Cc(b,"mainVideoDownloadStateEntity",v),(b=Number(b==null?void 0:b.addedTimestampMillis))&&I.push(b)}return Math.max.apply(Math,_.ht(I))};
_.hm=function(z){return z.ui.richGridMiniMode};
_.sp=function(z){return z.ui.richGridItemsPerRow};
_.vT7=function(z){return z.ui.richGridSlimItemsPerRow};
_.MCk=function(z){return z.ui.guideIsExpanded};
_.rg=function(z){return z.ui.miniplayerIsActive};
p2$=function(z){return z.ui.singleOptionSurveyIsActive};
_.$w=function(z){var l;return((l=z.ui)==null?void 0:l.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.DGQ=function(z){return _.$w(z)==="WEB_PAGE_TYPE_WATCH"};
_.xG$=function(z){return _.$w(z)==="WEB_PAGE_TYPE_SHORTS"};
_.OqH=function(z){return z.ui.inlinePreviewIsActive};
_.gT1=function(z){return z.ui.inlinePreviewIsEnabled};
_.Gvx=function(z){return z.ui.miniplayerPlaybackState};
_.eS=function(z){return z.ui.isOnline};
_.N31=function(z){return z.ui.frostedGlassMode};
_.wg=function(z,l){return fZk(z.entities,l)};
_.Am=function(z,l){return eX7(z.entities,l)};
ET$=function(z,l){var I;if(l){var b;z=(b=_.Cc(z.entities,"offlineVideoPolicy",_.Hg(l,"offlineVideoPolicy")))==null?void 0:b.action}else z=void 0;return(I=z)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
uXk=function(z,l){var I;l?(z=_.Cc(z.entities,"offlineVideoPolicy",_.Hg(l,"offlineVideoPolicy")),z=Number(z==null?void 0:z.expirationTimestamp)):z=void 0;return(I=z)!=null?I:0};
_.ZqQ=function(z){return _.QA(z.entities).length};
Hqt=function(z,l){return Yw(z.entities,l)};
yCt=function(z,l){return qEH(z.entities,l)};
Wg=function(z,l){return(z=Yw(z.entities,l))?_.btQ([z]):0};
_.fLQ=function(z,l){var I=_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var b=z.entities;var v=sc$(b,l);if(v.length){var M=[];v=_.D(v);for(var x=v.next();!x.done;x=v.next())(x=d15(b,x.value))&&M.push(x);b=M}else b=[]}else b=XfQ(z.entities,l);var g;if(I){var G=z.entities;l?(l=_.Hg(l,"musicPlaylist"),G=(g=G.musicPlaylist)==null?void 0:g[l],g=G!=null&&G.tracks?G.tracks.length:0):g=0}else g=z.entities,l?(l=_.Hg(l,"mainPlaylistEntity"),g=(G=g.mainPlaylistEntity)==null?void 0:G[l],g=g!=null&&g.videos?
g.videos.length:0):g=0;return b.length!==g?0:b?vmG(b):0};
_.CV7=function(z){return z.download.isLeaderTab};
_.kvQ=function(z,l,I){if(!l&&I){var b=z.entities;if(I){var v=pf1(I),M,x;l=(x=(M=_.Cc(b,"offlineabilityEntity",_.Hg(v,"offlineabilityEntity")))==null?void 0:M.addToOfflineButtonState)!=null?x:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else l="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else M=z.entities,l?(x=pf1(l),l=(v=(b=_.Cc(M,"offlineabilityEntity",_.Hg(x,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?v:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):l="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return l};
R5$=function(z,l){z=z.entities;if(l){l=pf1(l);var I,b;l=(b=(I=_.Cc(z,"offlineabilityEntity",_.Hg(l,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?b:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else l="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return l};
_.mG7=function(z){var l=z.entities;z=_.eS(z);var I=bqx(l,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.C("kevlar_modern_downloads_page")&&I)var b=!1;else{var v,M;l=(M=(v=((b=l.downloadsPageViewConfigurationEntity)!=null?b:{})[_.SS])==null?void 0:v.smartDownloadsOptInBannerVisibility)!=null?M:{};b=z?!!l.visibleWithConnection:!!l.visibleWithoutConnection}return b};
_.KvH=function(z){return bqx(z.entities,"SMART_DOWNLOADS_ENABLED")};
_.tCt=function(z){return VaH(z.entities)};
B3H=function(z){return _.dg(z.entities).every(function(l){var I;return(l==null?void 0:(I=l.transferEntity)==null?void 0:I.transferState)&&!IZk.includes(l.transferEntity.transferState)})};
_.X2f=function(z){var l,I,b,v=(b=(I=((l=z.entities.downloadsPageViewConfigurationEntity)!=null?l:{})[_.SS])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?b:{};return _.eS(z)?!!v.visibleWithConnection:!!v.visibleWithoutConnection};
_.qDQ=function(z,l){return Nbk(z.entities,l)};
iqu=function(z,l){if(l){var I,b;z=(b=(I=_.Cc(z.entities,"downloadStatusEntity",_.Hg(l,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?b:"DOWNLOAD_STATE_UNKNOWN"}else z="DOWNLOAD_STATE_UNKNOWN";return z};
nc=function(z,l){return m1x(z.entities,l)};
T3t=function(z){z=FvH(z);var l=z.hours===void 0?0:z.hours,I=z.minutes===void 0?0:z.minutes,b=z.seconds===void 0?0:z.seconds,v=l>0;z=[];v&&(l=QEY(l),z.push(l));l=v;l=l===void 0?!1:l;I=(["af","be","lt"].includes(Lc)||l)&&I<10?YD7().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);z.push(I);I=YD7().format(b);z.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(Lc)&&(I=".");return z.join(I)};
_.SDQ=function(z){z=FvH(z);var l=z.hours===void 0?0:z.hours,I=z.minutes===void 0?0:z.minutes,b=z.seconds===void 0?0:z.seconds;z=[];if(l>0){var v=cCQ().format({hours:l});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Lc)||l>9999)v=v.replace(l.toString(),QEY(l)),Lc==="km"&&(v=v.replace(".",","));z.push(v)}I>0&&z.push(cCQ().format({minutes:I}));b>0&&z.push(cCQ().format({seconds:b}));l="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=Lc=="am"?"{0}\u1363 ":Lc=="fa"?"{0}\u060c\u200f ":
Lc=="my"?"{0} - ":Lc=="ne"?"{0},":Lc=="th"?"{0} ":Lc=="ur"?"{0}\u060c ":Lc=="ar"||Lc=="ar-XB"?"{0} \u0648":Lc=="ja"||Lc=="zh-CN"||Lc=="zh-HK"||Lc=="zh-TW"?"{0}\u3001":"{0}, ";b=Lc=="am"?"\u1363 ":Lc=="fa"?"\u060c\u200f ":Lc=="my"?" - ":Lc=="th"?" ":Lc=="ur"?"\u060c ":Lc=="ar"||Lc=="ar-XB"?" \u0648":Lc=="ja"||Lc=="zh-CN"||Lc=="zh-HK"||Lc=="zh-TW"?"\u3001":", ";v=Lc=="am"?" \u12a5\u1293 {0}":Lc=="as"?" \u0986\u09f0\u09c1 {0}":Lc=="az"?" v\u0259 {0}":Lc=="bn"?" \u098f\u09ac\u0982 {0}":Lc=="cs"?" a\u00a0{0}":
Lc=="de"?" und {0}":Lc=="el"?" \u03ba\u03b1\u03b9 {0}":Lc=="eu"?" eta {0}":Lc=="fa"?"\u060c \u0648 {0}":Lc=="fil"?", at {0}":Lc=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Lc=="hi"?", \u0914\u0930 {0}":Lc=="hu"?" \u00e9s {0}":Lc=="hy"?" \u0587 {0}":Lc=="id"?", dan {0}":Lc=="iw"?" \u05d5-{0}":Lc=="ja"?"\u3001{0}":Lc=="ka"?" \u10d3\u10d0 {0}":Lc=="km"?" \u1793\u17b7\u1784 {0}":Lc=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Lc=="ko"?" \ubc0f {0}":Lc=="ky"?" \u0436\u0430\u043d\u0430 {0}":Lc=="lt"?" ir {0}":Lc==
"lv"?" un {0}":Lc=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Lc=="mr"?" \u0906\u0923\u093f {0}":Lc=="ms"?" dan {0}":Lc=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Lc=="ne"?" \u0930 {0}":Lc=="or"?", \u0b13 {0}":Lc=="pa"?" \u0a05\u0a24\u0a47 {0}":Lc=="ro"?" \u0219i {0}":Lc=="si"?", \u0dc3\u0dc4 {0}":Lc=="sk"?" a {0}":Lc=="sl"?" in {0}":Lc=="sq"?" dhe {0}":Lc=="sv"?" och {0}":Lc=="sw"?" na {0}":Lc=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Lc=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Lc=="th"?" \u0e41\u0e25\u0e30{0}":Lc=="tr"?" ve {0}":Lc=="ur"?"\u060c \u0627\u0648\u0631 {0}":Lc=="uz"?" va {0}":Lc=="vi"?" v\u00e0 {0}":Lc=="zh-HK"?"\u53ca{0}":Lc=="zu"?", ne-{0}":Lc=="af"||Lc=="nl"?" en {0}":Lc=="ar"||Lc=="ar-XB"?" \u0648{0}":Lc=="be"||Lc=="uk"?" \u0456 {0}":Lc=="en-GB"||Lc=="en-IN"?" and {0}":Lc=="en"||Lc=="en-XA"?", and {0}":Lc=="et"||Lc=="fi"?" ja {0}":Lc=="fr"||Lc=="fr-CA"?" et {0}":Lc=="zh-CN"||Lc=="zh-TW"?"\u548c{0}":Lc=="da"||Lc=="is"||Lc=="no"?" og {0}":Lc=="es"||Lc=="es-419"||
Lc=="es-US"?" y {0}":Lc=="kk"||Lc=="lo"||Lc=="mn"?", {0}":Lc=="bg"||Lc=="mk"||Lc=="ru"||Lc=="sr"?" \u0438 {0}":Lc=="gl"||Lc=="it"||Lc=="pt-BR"||Lc=="pt-PT"?" e {0}":" i {0}";var M=Lc=="am"?"{0} \u12a5\u1293 {1}":Lc=="as"?"{0} \u0986\u09f0\u09c1 {1}":Lc=="az"?"{0} v\u0259 {1}":Lc=="bn"?"{0} \u098f\u09ac\u0982 {1}":Lc=="de"?"{0} und {1}":Lc=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Lc=="eu"?"{0} eta {1}":Lc=="fa"?"{0} \u0648 {1}":Lc=="fil"?"{0} at {1}":Lc=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Lc=="hi"?"{0} \u0914\u0930 {1}":
Lc=="hu"?"{0} \u00e9s {1}":Lc=="hy"?"{0} \u0587 {1}":Lc=="iw"?"{0} \u05d5-{1}":Lc=="ja"?"{0}\u3001{1}":Lc=="ka"?"{0} \u10d3\u10d0 {1}":Lc=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Lc=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Lc=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Lc=="ko"?"{0} \ubc0f {1}":Lc=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Lc=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Lc=="lt"?"{0} ir {1}":Lc=="lv"?"{0} un {1}":Lc=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Lc=="mn"?"{0}, {1}":Lc==
"mr"?"{0} \u0906\u0923\u093f {1}":Lc=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Lc=="ne"?"{0} \u0930 {1}":Lc=="or"?"{0} \u0b13 {1}":Lc=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Lc=="ro"?"{0} \u0219i {1}":Lc=="si"?"{0} \u0dc3\u0dc4 {1}":Lc=="sl"?"{0} in {1}":Lc=="sq"?"{0} dhe {1}":Lc=="sv"?"{0} och {1}":Lc=="sw"?"{0} na {1}":Lc=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Lc=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Lc=="th"?"{0}\u0e41\u0e25\u0e30{1}":Lc=="tr"?"{0} ve {1}":Lc=="ur"?
"{0} \u0627\u0648\u0631 {1}":Lc=="uz"?"{0} va {1}":Lc=="vi"?"{0} v\u00e0 {1}":Lc=="zh-HK"?"{0}\u53ca{1}":Lc=="zu"?"{0} ne-{1}":Lc=="af"||Lc=="nl"?"{0} en {1}":Lc=="ar"||Lc=="ar-XB"?"{0} \u0648{1}":Lc=="be"||Lc=="uk"?"{0} \u0456 {1}":Lc=="cs"||Lc=="sk"?"{0} a\u00a0{1}":Lc=="et"||Lc=="fi"?"{0} ja {1}":Lc=="fr"||Lc=="fr-CA"?"{0} et {1}":Lc=="id"||Lc=="ms"?"{0} dan {1}":Lc=="zh-CN"||Lc=="zh-TW"?"{0}\u548c{1}":Lc=="da"||Lc=="is"||Lc=="no"?"{0} og {1}":Lc=="es"||Lc=="es-419"||Lc=="es-US"?"{0} y {1}":Lc==
"bg"||Lc=="mk"||Lc=="ru"||Lc=="sr"?"{0} \u0438 {1}":Lc=="en"||Lc=="en-GB"||Lc=="en-IN"||Lc=="en-XA"?"{0} and {1}":Lc=="gl"||Lc=="it"||Lc=="pt-BR"||Lc=="pt-PT"?"{0} e {1}":"{0} i {1}";Lc==="sq"?(v=v.replace("dhe","e"),M=M.replace("dhe","e")):Lc==="th"?(b=b.replace("{0}"," {0}"),M=M.replace("{0}","{0} "),M=M.replace("{1}"," {1}")):Lc==="ne"?b=",":Lc==="zh-CN"?b="":l.includes(Lc)&&(b=" ");return z.length<2?z.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(Lc)?
z.length===2?M.replace("{0}",z[0]).replace("{1}",z[1]):I.replace("{0}",z[0])+z.slice(1,-1).join(b)+v.replace("{0}",z[z.length-1]):z.join(b)};
FvH=function(z){var l=z.hours||0,I=z.minutes||0,b=z.seconds||0;l=b+I*60+l*3600+(z.days||0)*86400+(z.weeks||0)*604800+(z.months||0)*2629800+(z.years||0)*31557600;if(l<=0)return{hours:0,minutes:0,seconds:0};z=l;l=Math.floor(z/3600);z%=3600;I=Math.floor(z/60);b=Math.floor(z%60);return{hours:l,minutes:I,seconds:b}};
QEY=function(z){z=(new Intl.NumberFormat("en-u-nu-latn")).format(z);var l=["fr"],I="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(Lc)?z.replace(",","\u00a0"):l.includes(Lc)?z.replace(",","\u202f"):I.includes(Lc)?z.replace(",","."):z};
YD7=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
cCQ=function(){dGu||(Up=oT$,dGu=new PVY);return dGu};
h5$=function(z){try{return(new _.ah(5)).format(z)}catch(l){}};
VA=function(z){return{thumbnailOverlayDownloadingRenderer:{state:z}}};
sE7=function(z){if(z=h5$(z))return{thumbnailOverlaySidePanelRenderer:{text:_.xw(z),icon:{iconType:"PLAYLISTS"}}}};
rCQ=function(){var z=_.mY("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.xw(z),icon:{iconType:"PLAY_ALL"}}}};
$GS=function(z){z=_.jS(z,2);return Lc!=="ru"&&Lc!=="es_419"&&Lc!=="es-419"&&Lc!=="es"&&Lc!=="es_US"&&Lc!=="es-US"&&Lc!=="fr"&&Lc!=="pl"&&Lc!=="it"&&Lc!=="nl"&&Lc!=="uk"&&Lc!=="fr_CA"&&Lc!=="fr-CA"||z===""?z:z[0].toLocaleUpperCase()+z.substring(1)};
w25=function(z){return function(l){var I=z(),b=_.jS(l,I.dateFormat);l=_.jS(l,I.timeFormat);var v=e51.DATETIMEFORMATS[I.joinerStyle];v=v.replace(/'(?!')/g,"");v=v.replace("{0}",l);v=v.replace("{1}",b);return I.capitalize(v)}};
ACx=function(z){return z?typeof z.seconds==="string"&&(z.nanos===void 0||typeof z.nanos==="number"):!1};
Wvf=function(z){return new Date(Number(z.seconds)*1E3+(z.nanos||0)*1E-6)};
_.jS=function(z,l){if(typeof z.getTime==="function")z={date:z};else if(ACx(z))z={date:Wvf(z)};else if(typeof ACx(z.timestamp)&&typeof z.i18nInternalSecondsEastOfUtc==="number")z={date:Wvf(z.timestamp),timeZone:Jm(-z.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(z));var I=z;z=I.date;I=I.timeZone;l=nTY(l).format(z,I);Lc==="zh-TW"&&(z=I?Number(nTY("H").format(z,I)):z.getHours(),l=z<5?l.replace("\u4e0a\u5348","\u51cc\u6668"):z<8?l.replace("\u4e0a\u5348","\u65e9\u4e0a"):z<12?
l.replace("\u4e0a\u5348","\u4e0a\u5348"):z<13?l.replace("\u4e0b\u5348","\u4e2d\u5348"):z<19?l.replace("\u4e0b\u5348","\u4e0b\u5348"):l.replace("\u4e0b\u5348","\u665a\u4e0a"));return l};
nTY=function(z){if(LvQ.has(z))return LvQ.get(z);var l=UG1(z);l=aLQ(l);VC5!==!0&&(VC5=!0);jEu=!0;jEu=!1;l=new zN(l,e51);LvQ.set(z,l);return l};
UG1=function(z){return(new zN(z,e51)).patternParts_.map(function(l){return l.type===0?"'"+l.text+"'":l.text}).join("")};
aLQ=function(z){return Lc==="en"||Lc==="es_US"||Lc==="es-US"?z:z.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(l,I,b){return"H".repeat(I.length)+b})};
MD$=function(z,l){JCt||(Up=oT$,JCt=new z6Y);var I=JCt;a:if(z=lhf(z),l=lhf(l||new Date),z>l)I=z.getTime()-l.getTime()>6048E5?_.jS(z,1):IhQ(z);else{for(var b=0;b1k(z,12*(b+1))<l;)++b;if(b>0)I=I.format(-b,0);else{for(b=0;b1k(z,b+1)<l;)++b;if(b>0)I=I.format(-b,2);else{z=l.getTime()-z.getTime();l=_.D(v$t);for(b=l.next();!b.done;b=l.next()){b=b.value;var v=b.unit,M=Math.floor(z/b.unitDuration);if(M>=(b.threshold===void 0?1:b.threshold)){I=I.format(-M,v);break a}}I=I.format(-0,7)}}}return I};
lhf=function(z){if(typeof z.getTime==="function")return z;if(ACx(z))return Wvf(z);throw Error("Jf`"+JSON.stringify(z));};
b1k=function(z,l){for(var I=0,b;;++I)if(b=new Date(z.getFullYear(),z.getMonth()+l,z.getDate()-I,z.getHours(),z.getMinutes(),z.getSeconds()),b.getMonth()===(z.getMonth()+l)%12)return b};
_.lc=function(z){return{runs:[{text:z}]}};
_.ID=function(z){if(z&&z.simpleText)return z.simpleText;var l="";if(z&&z.runs)for(var I=0;I<z.runs.length;I++)z.runs[I].text&&(l+=z.runs[I].text);return l};
Dwx=function(z,l,I,b){return z.videoEntity&&!z.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[VA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:qF(z.policyEntity)&&l!=="TRANSFER_STATE_FAILED"&&l!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?l==="TRANSFER_STATE_PAUSED_BY_USER"?[VA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.ii(l)?[VA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:z.videoEntity.lengthSeconds?pZY(z.videoEntity.lengthSeconds,b):[]:
[VA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
pZY=function(z,l){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.xw(T3t({seconds:z})),style:"DEFAULT"}}];l&&(z=l<=0||z<=0?0:l>=z?100:Math.ceil(l*100/z),z>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:z}}));return I};
xw5=function(z,l,I,b,v){if(l==="TRANSFER_STATE_UNKNOWN"||!z)return{};if(_.ii(l)||l==="TRANSFER_STATE_PRE_TRANSFER")var M=[VA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var x,g;if(l==="TRANSFER_STATE_COMPLETE"&&((x=z.mainPlaylistEntity)==null?0:(g=x.videos)==null?0:g.length)){if(_.C("web_modern_collections_v2")){var G;var u=(M=z.mainPlaylistEntity)==null?void 0:(G=M.videos)==null?void 0:G.length;M=(M=h5$(u))?{thumbnailOverlayBottomPanelRenderer:{text:_.xw(M),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var Z;M=sE7((u=z.mainPlaylistEntity)==null?void 0:(Z=u.videos)==null?void 0:Z.length)}var H;M=[rCQ(),Object.assign({},(H=M)!=null?H:{})]}else M=[]}H=M;a:if(l==="TRANSFER_STATE_PRE_TRANSFER")I=Op(_.mY("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(l==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=Op(_.mY("WAITING_TO_DOWNLOAD"));else if(_.ii(l))I=Math.floor(I*100).toString(),I=Op(_.mY("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(b&&(_.C("playlist_is_offline_selector_killswitch")&&
(v=_.pG().resolve(_.U5).isNetworkAvailable()),v)){I=NLu(_.mY("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),gKu(b));break a}I=void 0}l=l==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.mY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},H.length?{thumbnailOverlays:H}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.lc("")},l.length?{badges:l}:{})};
O1G=function(z,l,I,b,v,M){if(l==="TRANSFER_STATE_UNKNOWN"||!z)return{};if(b==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var x=Dwx(z,l,b);if(z.videoEntity&&!z.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"){var g=_.mY("WAITING_TO_DOWNLOAD");if(g)return{shortViewCountText:_.lc(g),publishedTimeText:void 0,thumbnailOverlays:x}}if(!qF(z.policyEntity)){M=z.policyEntity&&!MaY(z.policyEntity)?_.mY("DOWNLOAD_EXPIRED",{},"Download expired"):
_.mY("TRANSFER_FAILED",{},"Download failed");var G;if((G=z.policyEntity)==null?0:G.shortMessageForDisabledAction)M=z.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Op(M),publishedTimeText:void 0,thumbnailOverlays:x}}if(l==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.lc(_.mY("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:x};if(l==="TRANSFER_STATE_FAILED"||l==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.lc(_.mY("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:x};if(l==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(G=_.mY("WAITING_TO_DOWNLOAD"),b==="DOWNLOAD_STATE_PAUSED"&&(G=_.mY("DOWNLOAD_PAUSED",{},"Download paused")),G))return{shortViewCountText:_.lc(G),publishedTimeText:void 0,thumbnailOverlays:x};if(_.ii(l))return z=Math.floor(I*100).toString(),{shortViewCountText:_.lc(_.mY("DOWNLOADING_PERCENT",{percent:z},"Downloading... "+z+"%")),publishedTimeText:void 0,thumbnailOverlays:x};l=void 0;z.videoEntity.publishedTimestampMillis&&
(l=new Date,v&&(l=new Date(v)),l=Op(MD$(new Date(Number(z.videoEntity.publishedTimestampMillis)),l)));v=[];_.C("kevlar_woffle_badge_killswitch")||(v=[{metadataBadgeRenderer:{label:_.mY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var u;z=Op((u=z.videoEntity.localizedStrings)==null?void 0:u.viewCount);return Object.assign({},M?{shortViewCountText:void 0}:{shortViewCountText:z},M?{}:{publishedTimeText:l},{badges:v,thumbnailOverlays:x})};
G$$=function(z,l){z=z===void 0?_.g$Q:z;switch(l.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:l.payload.playlistId,inviteLinkURL:l.payload.inviteLinkUrl};default:return z}};
E$Q=function(z,l){z=z===void 0?_.Nlt:z;switch(l.type){case "SET_CURRENT_FORM_ID":return l=l.payload.formId,z.currentFormId===l?z:{currentFormId:l,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=l.payload;l=I.groupId;I=I.command;if(z.currentFormId){var b=Object.assign({},z.commandsMap);b[l]=I;z=Object.assign({},z,{commandsMap:b})}return z;case "RESET_COMMAND_MAP":return Object.assign({},z,{commandsMap:{}});default:return z}};
Z1$=function(z,l){z=z===void 0?_.ux1:z;switch(l.type){case "UPDATE_CANVAS_MODE":return Object.assign({},z,{currentMode:l.payload.currentMode});default:return z}};
LBx=function(z,l){z=z===void 0?_.n$Q:z;switch(l.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},z,{guideIsExpanded:l.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},z,{scrollAtTop:l.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},z,{guideIsVisibleButNotPersistent:l.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},z,{miniplayerIsActive:l.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},z,{singleOptionSurveyIsActive:l.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},z,{slimlineSurveyRatingSelectedIndex:l.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},z,{richGridMiniMode:l.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},z,{richGridItemsPerRow:l.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},z,{richGridSlimItemsPerRow:l.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},z,{richGridContainerWidth:l.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},z,{richGridStyle:l.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},z,{currentPageType:l.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},z,{inlinePreviewIsActive:l.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},z,{inlinePreviewIsEnabled:l.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},z,{darkModeIsEnabled:l.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
z,{miniplayerPlaybackState:l.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},z,{tabGesturesIsActive:l.payload});case "SET_ONLINE_STATUS":return Object.assign({},z,{isOnline:l.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},z,{chipBarIsSticky:l.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},z,{frostedGlassMode:l.payload});default:return z}};
Uwk=function(){return _.C("kevlar_disable_theater_mode_persistence")?!1:_.rr("START_IN_THEATER_MODE")};
VDQ=function(z,l){z=z===void 0?_.ah5:z;switch(l.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},z,{transcription:l.payload});case "SET_OVERLAY_STATE":return Object.assign({},z,{overlay:l.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return z}};
DQQ=function(){return RR(Object.assign({},{continuation:jfY,download:J4f,canvas:Z1$,reportChannelAbuse:zsS,share:l$x,talkToRecs:I$Y,ui:LBx,voiceSearch:VDQ,watch:bef,ypc:vY$,shorts:M$7,radioButtonGroup:E$Q,collabInviteLink:G$$},pL$))};
gY7=function(){return _.C("web_player_entities_middleware")?new bc(DQQ(),[xQY,Oep]):new bc(DQQ(),[xQY])};
_.vF=function(){GKu||(GKu=gY7());return GKu};
NI$=function(z,l,I){if(z.length)return{titleText:_.xw(l!=null?l:_.mY("DOWNLOADS",void 0,"Downloads")),contents:z.map(function(b){var v=b.videoEntity;b={videoId:v.videoId,title:Op(v.title),shortBylineText:Op(b.channelEntity.title),thumbnail:v.thumbnail};var M=v.videoId?nc(_.vF().getState(),v.videoId):0;v.videoId&&I?b.navigationEndpoint=_.pc(v.videoId,I,void 0,void 0,M):v.videoId&&(b.navigationEndpoint=Owf(v.videoId,M,v.lengthSeconds));v.lengthSeconds&&(b.thumbnailOverlays=pZY(v.lengthSeconds,M));return{playlistPanelVideoRenderer:b}}),
totalVideos:z.length}};
EYS=function(z){return(z=(0,_.h7.getValueByKeys)(z,"playlistId"))?{playlistId:z}:null};
uDH=function(){return{}};
ZeY=function(z,l){return new _.yK(function(I,b){z.then(function(v){if(v){if(v=l(v))return I(v);b()}},b)})};
Hex=function(z){var l,I,b,v=(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.autoplay)==null?void 0:b.autoplay,M,x,g;l=(M=z.contents)==null?void 0:(x=M.twoColumnWatchNextResults)==null?void 0:(g=x.playlist)==null?void 0:g.playlist;return v&&l&&l.playlistId?{rawResponse:z,autoplayRenderer:v,playlistPanelRenderer:l,playlistId:l.playlistId}:null};
f$f=function(z){var l=l===void 0?"UNKNOWN_INTERFACE":l;if(z.length===1)return z[0];var I=you[l];if(I){I=new RegExp(I);for(var b=_.D(z),v=b.next();!v.done;v=b.next())if(v=v.value,I.exec(v))return v}var M=[];Object.entries(you).forEach(function(x){var g=_.D(x);x=g.next().value;g=g.next().value;l!==x&&M.push(g)});
I=new RegExp(M.join("|"));z.sort(function(x,g){return x.length-g.length});
b=_.D(z);for(v=b.next();!v.done;v=b.next())if(v=v.value,!I.exec(v))return v;return z[0]};
_.Mo=function(z){return"/youtubei/v1/"+f$f(z)};
_.pr=function(z){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:z}}}}};
_.Dk=function(z){return _.pr(_.lc(z))};
Crk=function(z,l){var I={mode:"NORMAL"};z&&(I.autoplayVideo=z.navigationEndpoint,I.nextButtonVideo=z.navigationEndpoint);l&&(I.previousButtonVideo=l.navigationEndpoint);return I};
mQQ=function(z,l,I){if(!I||!I.sets)return{sets:[Crk(z,l)]};var b=I.sets.find(function(x){return x.mode==="NORMAL"}),v=(0,_.h7.unsafeClone)(I);
if(!b)return v.sets.push(Crk(z,l)),v;if(!z)return I;b=_.h7.getValueByKeys.apply(null,[b].concat(_.ht(kKH)));var M=_.h7.getValueByKeys.apply(null,[z].concat(_.ht(RsH)));if(b===M)return I;v.sets=v.sets.filter(function(x){return x.mode!=="NORMAL"});
v.sets.push(Crk(z,l));return v};
K6t=function(z){return!!z.playlistPanelVideoRenderer&&!z.playlistPanelVideoRenderer.unplayableText};
t$k=function(z){return!!z.playlistPanelVideoRenderer&&!!z.playlistPanelVideoRenderer.title};
BI$=function(z,l){if(l.contents&&!(z>=l.contents.length)&&(z=l.contents.slice(z).find(K6t)))return z.playlistPanelVideoRenderer};
XLQ=function(z,l){if(l.contents)return(l=l.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===z}))?l.playlistPanelVideoRenderer:void 0};
qMQ=function(z,l){return l.contents?l.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===z}):-1};
iep=function(z,l){return l.contents?l.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===z}):-1};
F6t=function(z,l){z.contents&&l!==-1&&z.contents.splice(l,1).length===1&&z.totalVideos!==void 0&&(--z.totalVideos,delete z.videoCountText)};
_.QVt=function(z){var l=[];if(!z||!z.contents)return l;z=_.D(z.contents);for(var I=z.next();!I.done;I=z.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&l.push(I.playlistPanelVideoRenderer.videoId);return l};
_.YMH=function(z){if(z&&z.contents)return(z=z.contents.find(function(l){return!!l.playlistPanelVideoRenderer&&!!l.playlistPanelVideoRenderer.selected})||z.contents[z.currentIndex])?z.playlistPanelVideoRenderer:void 0};
TIt=function(z,l,I,b,v,M,x){v=v===void 0?!1:v;M=M===void 0?!1:M;x=x===void 0?!1:x;if(z.contents&&z.contents.length!==0){b&&(z.contents=z.contents.filter(b));b=z.contents.length;for(var g=0;g<b;g++){var G=z.contents[g].playlistPanelVideoRenderer;G&&(g===l?(M&&delete G.menu,G.indexText=_.lc("\u25b6")):v||z.isInfinite||G.indexText===void 0?delete G.indexText:G.indexText=_.lc((g+1+I).toString()))}z.currentIndex=l+I;x&&(delete z.videoCountText,z.totalVideos=b)}};
_.xW=function(z){z=co7(z);if(z){var l=z.length;var I=-27%l;I<0&&(I=l+I);z=z.slice(l-I)+z.slice(0,l-I)}else z="";I="";for(l=0;l<z.length&&z[l]!==SMQ;l++)I+=z[l];return I};
_.dQ7=function(z,l){var I=document.body;l=l===void 0?function(g){return g}:l;
var b,v=null;z=_.D(z);for(b=z.next();!b.done;b=z.next()){var M=b.value;b="div";M[2]&&(b=l(M[2]));b=document.createElement(b);v||(v=b);var x=M[0];M=M[1];x&&(b.id=l(x));if(M)for(M=_.D(M),x=M.next();!x.done;x=M.next())b.classList.add(l(x.value));I.appendChild(b);I=b}return[v,I]};
oYQ=function(z,l){for(var I="",b=0;b<l;b++)I+=z.charAt(Math.floor(Math.random()*z.length));return I};
Or=function(z){return oYQ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",z)};
gD=function(z){return oYQ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",z)};
GN=function(z){return oYQ("0123456789",z)};
PrG=function(){var z=performance.now(),l=new Date;var I="2."+l.getFullYear()+String(l.getMonth()+1).padStart(2,"0")+String(l.getDate()).padStart(2,"0");for(var b,v=Math.floor(Math.random()*11)+15,M=[],x=0;x<v;x++)M.push(Math.floor(Math.random()*26476865)+24547720);b=M.join(",");var g=Or(10),G=Or(100),u=Or(102),Z=Or(106),H=Or(108),y=Or(11),f=Or(1140),R=Or(123),F=Or(14),Y=Or(16),c=Or(1900),d=Or(23),V=Or(26),A=Or(34),W=Or(397),L=Or(44),lH=Or(5),Gk=Or(72),uH=Or(74),Xt=Or(75),R1=Or(88),H7=Or(91),P7="rr2---sn-q4flrnek rr1---sn-q4fl6nd7 rr1---sn-ntqe6nel rr4---sn-q4fl6nds rr4---sn-npoe7ns6 rr5---sn-q4fl6nsl rr1---sn-q4fl6nsl rr2---sn-q4fl6n6d rr1---sn-q4flrnle rr5---sn-q4flrnld rr1---sn-q4flrnl7 rr2---sn-q4flrnez rr4---sn-q4fl6n6d rr4---sn-q4fl6nd7 rr3---sn-q4flrn7y rr3---sn-q4fl6nde rr1---sn-aigzrnz7 rr4---sn-q4flrnlz rr1---sn-hgn7yn7e rr3---sn-q4fl6ndz".split(" ");
var o1=P7[Math.floor(Math.random()*P7.length)];var z_=(new Date("2010-01-01")).getTime();var dw=(new Date(z_+Math.random()*((new Date).getTime()-z_))).toISOString().split("T")[0];for(var Ej,JG=[],yu=0;yu<4;yu++)JG.push(Math.floor(Math.random()*100));Ej=JG.join(".");var uu=Number(GN(5)),Y0=Number(GN(6)),iK=Number(GN(7)),a_=Number(GN(9)),pu=GN(1),lu=GN(10),k0=GN(16),E8=GN(19),R_=GN(2),bK=GN(20),Ou=GN(21),lK=GN(3),gw=GN(4),Ln=GN(5),Cl=GN(6),FA=GN(7),tp=GN(8),ys=GN(9);var jA=oYQ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var uK=[gD(5),gD(5),gD(5)].join("%2C"),Yq=[GN(3),GN(5),GN(5)].join("%2C"),FY=gD(0),$0=gD(1),hy=gD(10),WX=gD(108),BQ=gD(11),e3=gD(12),f7=gD(13),rk=gD(14),ZJ=gD(15),dH=gD(16),Dp=gD(17),Ft=gD(18),hG=gD(19),W7=gD(2),Cn=gD(20),ZF=gD(22),TT=gD(23),Kl=gD(24),Kn=gD(266),mA=gD(3),cX=gD(30),CD=gD(34),H_=gD(35),qj=gD(36),FQ=gD(4),PQ=gD(40),w2=gD(43),L2=gD(47),lC=gD(5),ll=gD(6),BU=gD(7),R$=gD(75),nu=gD(8),kS=gD(80),oC=gD(9),DF="https://www."+gD(12)+".com",E7={},U7={},$N={},Jx={},X1={},QD={},Yv={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:b}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:I},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+gD(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:I},{key:"client.name",value:"WEB"},{key:"client.fexp",value:b}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Ou+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+gD(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:PQ,ypcGetOfflineUpsellEndpoint:{params:kS}},trackingParams:H_+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&cnr="+R_+"&ratebypass=yes&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&c=WEB&txp="+FA+"&n="+Y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Y0,width:640,height:360,lastModified:k0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FA,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Yq+"&mn="+
uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&cnr="+R_+"&ratebypass=yes&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&c=WEB&txp="+FA+"&n="+Y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+WX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Y0,width:1280,
height:720,lastModified:k0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FA,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+Yq+"&mn="+uK+"&ms="+
uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+ys+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:iK,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:ys,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:iK,approxDurationMs:FA},{itag:248,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+Yq+"&mn="+uK+"&ms="+uK+"&mv="+
$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+ys+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:iK,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:ys,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:iK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:399,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+ys+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:iK,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:ys,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:iK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:136,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+ys+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:iK,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:ys,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Y0,approxDurationMs:FA},{itag:247,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+Yq+"&mn="+
uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+ys+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:iK,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:ys,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:398,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+ys+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:iK,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:ys,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:135,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Y0,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Y0,approxDurationMs:FA},{itag:244,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+Yq+"&mn="+
uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+WX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:Y0,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:397,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Y0,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:134,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Y0,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Y0,highReplication:!0,approxDurationMs:FA},{itag:243,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:Y0,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:396,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Y0,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:133,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Y0,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Y0,approxDurationMs:FA},{itag:242,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+Yq+"&mn="+
uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:Y0,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:395,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Y0,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Y0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:160,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Y0,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:uu,approxDurationMs:FA},{itag:278,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+Yq+"&mn="+
uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:Y0,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:uu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:394,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&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="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=video%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:uu,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:uu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:FA},{itag:140,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fmp4&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Y0,
initRange:{start:"0",end:"631"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Y0,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FA,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+
R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+FA+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/webm; codecs="opus"',bitrate:uu,initRange:{start:"0",end:"265"},indexRange:{start:lK,
end:gw},lastModified:k0,contentLength:FA,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:uu,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FA,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fwebm&ns="+
Kl+"&gir="+mA+"&clen="+FA+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/webm; codecs="opus"',bitrate:uu,initRange:{start:"0",end:"265"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:FA,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:uu,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:FA,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+o1+".googlevideo.com/videoplayback?expire="+lu+"&ei="+d+"&ip="+Ej+"&id=o-AF"+w2+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Yq+"&mn="+uK+"&ms="+uK+"&mv="+$0+"&mvi="+pu+"&pl="+R_+"&initcwndbps="+FA+"&siu="+pu+"&spc="+L+"&vprv="+pu+"&svpuc="+pu+"&mime=audio%2Fwebm&ns="+Kl+"&gir="+mA+"&clen="+tp+"&dur="+tp+"&lmt="+k0+"&mt="+lu+"&fvip=3&keepalive="+mA+"&c=WEB&txp="+
FA+"&n="+dH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/webm; codecs="opus"',bitrate:Y0,initRange:{start:"0",end:"265"},indexRange:{start:lK,end:gw},lastModified:k0,contentLength:tp,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Y0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:FA,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="+ys+"&docid="+y+"&ei="+d+"&feature="+g+"&fexp="+FY+"&ns="+W7+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$0+"&el="+hy+"&len="+gw+"&of="+ZF+
"&uga="+R_+"&vm="+Kn},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ys+"&docid="+y+"&ei="+d+"&feature="+g+"&fexp="+FY+"&ns="+W7+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$0+"&el="+hy+"&len="+gw+"&of="+ZF+"&uga="+R_+"&vm="+Kn},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ys+"&docid="+y+"&ei="+d+"&feature="+g+"&fexp="+FY+"&ns="+W7+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
$0+"&el="+hy+"&len="+gw+"&of="+ZF+"&uga="+R_+"&vm="+Kn},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+d+"&m="+R1+"&oid="+ZF+"&plid="+Y+"&pltype="+BU+"&ptchn="+ZF+"&ptk="+F+"&video_id="+y},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ys+"&docid="+y+"&ei="+d+"&event="+rk+"&feature="+g+"&fexp="+FY+"&ns="+W7+"&plid="+Y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$0},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?docid="+y+"&ei="+d+"&feature="+
g+"&len="+gw+"&ns="+W7+"&plid="+Y+"&ver="+pu,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+y+"&caps="+mA+"&opi="+ys+"&xoaf="+pu+"&hl="+W7+"&ip="+Ej+"&ipbits="+pu+"&expire="+lu+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Ej+"&key="+mA+"&lang="+lH,name:{simpleText:Cn},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+y+"&caps="+mA+"&opi="+ys+"&xoaf="+pu+"&hl="+W7+"&ip="+Ej+"&ipbits="+pu+"&expire="+lu+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Ej+"&key="+mA+"&kind="+mA+"&lang="+W7,name:{simpleText:FQ},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:BQ,title:BQ,lengthSeconds:"1155",keywords:[e3,ZJ,Cn,rk],
channelId:Kl,isOwnerViewing:!1,shortDescription:dH,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+CD,width:168,height:94},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+CD,width:196,height:110},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+A,width:246,height:138},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+A,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
y+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:FA,author:f7,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:FA,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+ZF+"/featured_channel.jpg?v="+nu,width:40,height:40}]},trackingParams:H_+"=",navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"/channel/"+Kl,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Kl}},channelName:f7,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Dp}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Kl,showPreferences:!1,subscribedButtonText:{runs:[{text:e3}]},unsubscribedButtonText:{runs:[{text:dH}]},trackingParams:H_+"=",unsubscribeButtonText:{runs:[{text:rk}]},serviceEndpoints:[{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Kl],params:nu}},{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:PQ,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:H_+"=",dialogMessages:[{runs:[{text:dH},{text:nu},{text:nu}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ZJ}]},serviceEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Kl],params:nu}},accessibility:{label:rk},trackingParams:H_+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Cn}]},accessibility:{label:e3},trackingParams:H_+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:hy}},unsubscribeAccessibility:{accessibilityData:{label:ll}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:tp},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Kl],params:nu}},unsubscribeCommand:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Kl],params:nu}},addToWatchLaterCommand:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:BQ,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:BQ}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+y+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+qj+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
y+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+BQ,width:1280,height:720},title:{simpleText:dH},description:{simpleText:ZJ},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+FQ,externalChannelId:Kl,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:FA,category:"Travel & Events",publishDate:dw,ownerChannelName:f7,uploadDate:dw}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Dp},trackingParams:H_+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:PQ,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:H_+"="}}],headerText:{simpleText:hG},icon:{infoCardIconRenderer:{trackingParams:H_+"="}},closeButton:{infoCardIconRenderer:{trackingParams:H_+"="}},trackingParams:H_+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:H_+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+BQ+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:jA,interpreterSafeUrl:(E7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+cX+".js",E7),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:nu},{text:nu,bold:!0}]},endpoint:{clickTrackingParams:PQ,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:H_+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:ll}]},actionButton:{buttonRenderer:{text:{runs:[{text:e3}]},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+y,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
y,target:"TARGET_NEW_WINDOW"}},trackingParams:H_+"="}},trackingParams:H_+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Gk+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Gk+"=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:FA,endMs:FA,title:{accessibility:{accessibilityData:{label:FQ}},simpleText:Cn},metadata:{simpleText:f7},callToAction:{simpleText:Cn},dismiss:{simpleText:FQ},endpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"/channel/"+Kl,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Kl}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:dH}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Kl,showPreferences:!1,
subscribedButtonText:{runs:[{text:ll}]},unsubscribedButtonText:{runs:[{text:Ft}]},trackingParams:H_+"=",unsubscribeButtonText:{runs:[{text:e3}]},serviceEndpoints:[{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Kl],params:nu}},{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:PQ,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:H_+
"=",dialogMessages:[{runs:[{text:f7},{text:ll},{text:dH}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ll}]},serviceEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Kl],params:nu}},accessibility:{label:ZJ},trackingParams:H_+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hG}]},
accessibility:{label:ZJ},trackingParams:H_+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:dH}},unsubscribeAccessibility:{accessibilityData:{label:rk}}}},trackingParams:H_+"=",isSubscribe:!0,id:bK}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+A,width:168,height:94},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+CD,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+A,width:246,height:138},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+qj+"G&rs="+A,width:336,height:188},{url:"https://i.ytimg.com/vi/"+y+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:FA,endMs:FA,title:{accessibility:{accessibilityData:{label:hy}},simpleText:nu},metadata:{simpleText:lC},endpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
BQ,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:BQ,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+o1+".googlevideo.com/videoplayback?source=youtube&oeis="+pu+"&c=WEB&oad="+gw+"&ovd="+gw+"&oaad="+Ln+"&oavd="+Ln+"&ocs="+lK+"&oewis="+pu+"&oputc="+pu+"&ofpcc="+pu+"&siu="+pu+"&msp="+pu+"&odepv="+pu+
"&id=o-AF"+w2+"&ip="+Ej+"&initcwndbps="+FA+"&mt="+lu+"&oweuc="+FY}}}}},trackingParams:H_+"=",id:bK,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:f7}},simpleText:ZJ},style:"DEFAULT"}}]}}],startMs:FA,trackingParams:H_+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:pu,offsetEndMilliseconds:Ln},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";ord="+lu+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+lK+";dc_sk="+pu+";dc_ctype="+R_+";dc_ref=http://www.youtube.com/video/"+BQ+";dc_pubid="+pu+";dc_btype=23?gclid="+H7+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pu+"&ns="+pu+"&event="+pu+"&device="+pu+"&content_v="+y+"&el="+hy+"&ei="+d+"&devicever="+I+"&bti="+FA+"&format="+Cl+"&break_type="+pu+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pu+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Ej+"&slot_pos="+pu+"&slot_len="+pu+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Yq+"&ad_len="+Ln+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
BQ+"&aqi="+d+"&ad_rmp="+pu+"&sli="+pu}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+
";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+FA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&ctype="+lK+"&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"+
f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_engaged_view&ctype="+lK+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+E8+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+TT+"&ad_cpn=[AD_CPN]&id="+ll+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ll+"&dc_pubid="+pu+"&dc_exteid="+bK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+TT+"&ad_cpn=[AD_CPN]&id="+ll+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ll+"&avm="+pu+"&dc_pubid="+pu+"&dc_exteid="+
bK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
u+"&sig="+TT+"&ad_cpn=[AD_CPN]&id="+ll+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ll+"&dc_pubid="+pu+"&dc_exteid="+bK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:PQ,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+
lK+"&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/"+y+"/mqdefault.jpg",width:320,height:180}]},trackingParams:H_+"="},trackingParams:H_+
"=",templatedCountdown:{templatedAdText:{text:Dp,isTemplated:!0,trackingParams:H_+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:dH,isTemplated:!1,trackingParams:H_+"="},trackingParams:H_+"="}},trackingParams:H_+"=",skipOffsetMilliseconds:5E3}},trackingParams:H_+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ll},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:H_+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Dp,isTemplated:!1,trackingParams:H_+"="},trackingParams:H_+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Cn,isTemplated:!0,trackingParams:H_+"="}},trackingParams:H_+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:PQ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(U7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+W7+"&origin=www.youtube.com&ata_theme="+FQ,U7),trackingParams:H_+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:H_+"="}},hoverText:{runs:[{text:Dp}]},trackingParams:H_+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L2+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:H_+"="},headline:{text:hG,isTemplated:!1,trackingParams:H_+"="},description:{text:dH,
trackingParams:H_+"="},actionButton:{buttonRenderer:{text:{simpleText:FQ},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:H_+"="}},startMs:pu,trackingParams:H_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:hG},elementId:BQ}},elementId:hG,trackingParams:H_+"=",legacyInfoCardVastExtension:dH,sodarExtensionData:{siub:BU,bgub:e3,scs:ZJ,bgp:FQ},externalVideoId:BQ,adLayoutLoggingData:{serializedAdServingDataEntry:BU},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L2+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:H_+"="},
headline:{text:lC,isTemplated:!1,trackingParams:H_+"="},description:{text:nu,isTemplated:!1,trackingParams:H_+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:hy},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+
bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+
pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:H_+"="}},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+
ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+
R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:H_+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:H_+"="},abandonCommands:{commands:[{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+
pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:PQ,commandExecutorCommand:{commands:[{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:ZJ,isTemplated:!1,trackingParams:H_+
"="},trackingParams:H_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oC},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+FA+";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="+ys+";dc_trk_cid="+ys+";ord="+lu+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+lK+";dc_sk="+pu+";dc_ctype="+R_+";dc_ref=http://www.youtube.com/video/"+BQ+";dc_pubid="+pu+";dc_btype=23?gclid="+H7+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pu+"&ns="+pu+"&event="+pu+"&device="+pu+"&content_v="+y+"&el="+hy+"&ei="+d+"&devicever="+I+"&bti="+FA+"&format="+Cl+"&break_type="+pu+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pu+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Ej+"&slot_pos="+pu+"&slot_len="+pu+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Yq+"&ad_len="+Ln+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+BQ+"&aqi="+d+"&ad_rmp="+pu+"&sli="+pu}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+
V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+FA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&ctype="+lK+"&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"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_engaged_view&ctype="+lK+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+TT+"&ad_cpn=[AD_CPN]&id="+
ll+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ll+"&dc_pubid="+pu+"&dc_exteid="+bK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+
"&sig="+TT+"&ad_cpn=[AD_CPN]&id="+ll+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ll+"&avm="+pu+"&dc_pubid="+pu+"&dc_exteid="+bK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+TT+"&ad_cpn=[AD_CPN]&id="+ll+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ll+"&dc_pubid="+pu+"&dc_exteid="+bK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+Cl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+
lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&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/"+y+"/mqdefault.jpg",width:320,height:180}]},trackingParams:H_+"="},trackingParams:H_+"=",templatedCountdown:{templatedAdText:{text:ll,isTemplated:!0,trackingParams:H_+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ll,isTemplated:!1,trackingParams:H_+"="},trackingParams:H_+"="}},
trackingParams:H_+"=",skipOffsetMilliseconds:5E3}},trackingParams:H_+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:f7},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:hy,isTemplated:!1,trackingParams:H_+"="},trackingParams:H_+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:BU,
isTemplated:!0,trackingParams:H_+"="}},trackingParams:H_+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:PQ,openPopupAction:{popup:{aboutThisAdRenderer:{url:($N.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+W7+"&origin=www.youtube.com&ata_theme="+FQ,$N),trackingParams:H_+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:H_+"="}},hoverText:{runs:[{text:BU}]},trackingParams:H_+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+uH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:H_+"="},headline:{text:Ft,isTemplated:!1,trackingParams:H_+"="},description:{text:e3,trackingParams:H_+"="},actionButton:{buttonRenderer:{text:{simpleText:dH},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:H_+"="}},startMs:pu,trackingParams:H_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ll},elementId:lC}},elementId:e3,trackingParams:H_+"=",legacyInfoCardVastExtension:Dp,sodarExtensionData:{siub:f7,bgub:BU,scs:Cn,bgp:BU},externalVideoId:BQ,adLayoutLoggingData:{serializedAdServingDataEntry:FQ},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+uH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:H_+"="},headline:{text:e3,
isTemplated:!1,trackingParams:H_+"="},description:{text:FQ,isTemplated:!1,trackingParams:H_+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:rk},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:H_+"="}},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+
pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:H_+"="},abandonCommands:{commands:[{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+R_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:PQ,commandExecutorCommand:{commands:[{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:lC,isTemplated:!1,trackingParams:H_+"="},trackingParams:H_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ll},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pu+";dc_exteid="+bK+";met="+pu+";ecn"+pu+"="+pu+";etm1="+pu+";eid1="+
FA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:nu}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ln,offsetEndMilliseconds:Cl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+R_+"&token=ALHj"+W+"&index="+pu+"&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="+I+"&m_pos_ms="+Ln}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Cl,offsetEndMilliseconds:Cl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+lK+"&token=ALHj"+W+"&index="+pu+"&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="+
I+"&m_pos_ms="+Cl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rk}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Cl,offsetEndMilliseconds:Cl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+lK+"&token=ALHj"+W+"&index="+pu+"&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="+
I+"&m_pos_ms="+Cl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Cl,offsetEndMilliseconds:Cl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+lK+"&token=ALHj"+W+"&index="+pu+"&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="+
I+"&m_pos_ms="+Cl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Cl,offsetEndMilliseconds:R_},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+lK+"&token=ALHj"+W+"&index="+pu+"&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="+
I+"&m_pos_ms="+Cl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:R_,offsetEndMilliseconds:R_},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+R_+"&token=ALHj"+W+"&index="+pu+"&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="+
I+"&m_pos_ms="+R_}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ft}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ll,isTemplated:!1,trackingParams:H_+"="},description:{text:oC,isTemplated:!1,trackingParams:H_+"="},actionButton:{buttonRenderer:{text:{simpleText:e3},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L2+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:H_+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Xt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:H_+"="},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+
";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:PQ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Jx.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+W7+"&origin=www.youtube.com&ata_theme="+FQ,Jx),trackingParams:H_+"="}},popupType:"DIALOG"}},trackingParams:H_+"="}},hoverText:{runs:[{text:hG}]},trackingParams:H_+"="}},adVideoId:BQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ZJ},associatedCompositePlayerBytesLayoutId:dH}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Ft}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lC,isTemplated:!1,trackingParams:H_+"="},description:{text:hy,isTemplated:!1,trackingParams:H_+"="},actionButton:{buttonRenderer:{text:{simpleText:Ft},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+
R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:H_+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+uH+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:H_+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+R$+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:H_+"="},navigationEndpoint:{clickTrackingParams:PQ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+
pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:PQ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(X1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+W7+"&origin=www.youtube.com&ata_theme="+FQ,X1),trackingParams:H_+"="}},popupType:"DIALOG"}},trackingParams:H_+"="}},
hoverText:{runs:[{text:hy}]},trackingParams:H_+"="}},adVideoId:BQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+BQ+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ZJ},associatedCompositePlayerBytesLayoutId:dH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:rk,
isTemplated:!1,trackingParams:H_+"="},description:{text:rk,isTemplated:!1,trackingParams:H_+"="},actionButton:{buttonRenderer:{text:{simpleText:hG},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+
R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+
A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:H_+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L2+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:H_+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Xt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:H_+
"="},navigationEndpoint:{clickTrackingParams:PQ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ys+";dc_trk_cid="+ys+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pu+";ord="+ys+";dc_rui="+pu+";dc_exteid="+bK+";dc_av="+pu+";dc_sk="+pu+";dc_ctype="+R_+";dc_pubid="+pu+";dc_btype=3?gclid="+H7+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+R+"AxAA&ase=2&num="+pu+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+DF+"&label=video_click_to_advertiser_site&ctype="+lK+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:H_+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:PQ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+c+"&hl="+W7+"&origin=www.youtube.com&ata_theme="+FQ,QD),trackingParams:H_+"="}},popupType:"DIALOG"}},trackingParams:H_+
"="}},hoverText:{runs:[{text:nu}]},trackingParams:H_+"="}},adVideoId:BQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+R+"AxAA&sigh="+y+"&cid="+V+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hy},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:dH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nu}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:cX,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:cX,command:{innertubeCommand:{clickTrackingParams:PQ,ypcGetOfflineUpsellEndpoint:{params:kS}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:H_+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:lu,nanos:a_}}}},v95=JSON.stringify(Yv),Tx=performance.now()-z;return{objectRepresentation:Yv,jsonRepresentation:v95,generationTime:Tx}};
hsY=function(z,l){if(z===l)return!0;if(!z||!l||typeof z!==typeof l)return!1;if(z instanceof Array&&l instanceof Array){if(z.length!==l.length)return!1;for(var I=0;I<z.length;I++)if(!hsY(z[I],l[I]))return!1;return!0}if(typeof z==="object"&&typeof l==="object"&&z&&l){for(I in z)if(!(I in l&&hsY(z[I],l[I])))return!1;for(var b in l)if(!(b in z))return!1;return!0}return!1};
_.Er=function(){if(!No){No=new RQ(new sV7);var z=_.OI("client_streamz_web_flush_count",-1);z!==-1&&(No.invocationLimit=z)}return No};
uc=function(z,l,I,b){if(z===l)return!0;if(Array.isArray(z)&&Array.isArray(l)){if(z.length!==l.length)return!1;for(var v=0;v<z.length;v++)if(!uc(z[v],l[v],I,b))return!1;return!0}if(z instanceof Set||l instanceof Set){if(z instanceof Set&&l instanceof Set){if(z.size!==l.size)return!1;b=_.D(z.values());for(v=b.next();!v.done;v=b.next())if(!l.has(v.value))return!1;return!0}return!1}if(z instanceof Function){if(b)return!0;z.name===""&&_.dE(Error("Nf"),"ERROR");return!1}if(z instanceof Date&&l instanceof
Date)return z.getTime()===l.getTime();if(z instanceof Object&&l instanceof Object){if(rof(z)&&rof(l))try{return z.equals(l)}catch(x){_.dE(Error("Of`"+x),"ERROR")}v=Object.getOwnPropertyNames(z).filter(function(x){return I?z[x]!==void 0:!0});
var M=Object.getOwnPropertyNames(l).filter(function(x){return I?l[x]!==void 0:!0});
if(v.length!==M.length)return!1;v=_.D(v);for(M=v.next();!M.done;M=v.next())if(M=M.value,!uc(z[M],l[M],I,b))return!1;return!0}return!1};
rof=function(z){z=Object.getPrototypeOf(z).equals;return z instanceof Function&&z.length===1};
_.wLx=function(){return _.O(function(z){if(z.nextAddress==1)return $QH!==2?z.jumpTo(2):z.yield(es$(),3);z.nextAddress!=2&&($QH=z.yieldResult);return z.return($QH)})};
_.nY1=function(){return _.O(function(z){if(z.nextAddress==1)return _.C("ab_pl_man")?Aou!==2?z.jumpTo(2):z.yield(W6u(),3):z.return(1);z.nextAddress!=2&&(Aou=z.yieldResult);return z.return(Aou)})};
a$p=function(){return _.O(function(z){if(z.nextAddress==1)return _.C("ab_fk_sk_cl")?L6Q!==2?z.jumpTo(2):z.yield(UQp(),3):z.return(1);z.nextAddress!=2&&(L6Q=z.yieldResult);return z.return(L6Q)})};
_.JoS=function(){return _.O(function(z){if(z.nextAddress==1)return _.C("ab_det_apb_b")?V$$!==2?z.jumpTo(2):z.yield(jVS(),3):z.return(1);z.nextAddress!=2&&(V$$=z.yieldResult);return z.return(V$$)})};
IWS=function(){var z;return _.O(function(l){if(l.nextAddress==1)return l.yield(Promise.all([_.wLx(),_.JoS(),_.nY1(),a$p()]),2);if(l.nextAddress!=3)return zFG()?l.return(!0):l.yield(_.lWu(),3);z=l.yieldResult;return l.return(z===0)})};
zFG=function(){var z=!1,l=function(I,b){bfH.increment(b,I);I===0&&(z=!0)};
l(_.vjY(),"j.s_");l($QH,"f.i_");l(V$$,"a.b_");l(Aou,"p.m_");l(L6Q,"i.f_");MTH===2&&(MTH=_.pE1(DdQ));l(MTH,"e.h_");_.C("ks_det_gpbl")||l(_.xdt(),"p.i_");_.C("ks_get_o_pp")||l(_.Ofu(),"g.o_");_.C("ab_deg_unex_thr")||l(_.gjS(),"a.o_");l(GqQ,"s.t_");_.C("ab_det_sc_inj_enf")&&l(_.NUx(),"s.i_");l(Ej7,"d.p_");l(_.ue1(_.Zk),"o.p_");l(_.ZfY()===0?0:_.HfH(),"o.a_");return _.C("debug_sk_em_precheck")?!0:z};
fWQ=function(){var z=[].concat(_.ht(y$$));try{var l=PrG();z.push({jsonRepresentation:l.jsonRepresentation,objectRepresentation:l.objectRepresentation})}catch(I){z=[].concat(_.ht(y$$))}return z};
C0H=function(){var z=["adPlacements","adSlots"];try{return z.filter(function(){return!0}).length!==z.length?0:1}catch(l){return 0}};
_.Ofu=function(){if(C0H()===0)return 0;var z=PrG(),l=z.objectRepresentation,I=(0,_.h7.unsafeClone)(l),b=[];if(l&&typeof l==="object")for(var v in l)b.push(v);else return 4;z=z.objectRepresentation.adPlacements;if(!(z&&z.length>0))return 4;try{if(!hsY(b,Object.getOwnPropertyNames(l)))return 0}catch(M){return 0}return hsY(I,l)?1:0};
_.ue1=function(z){if(!z||!z.length||typeof z==="string")return 0;for(var l=Object.getOwnPropertyNames(Object.prototype),I=0;I<z.length;I++)for(var b=_.xW(z[I]),v=_.D(l),M=v.next();!M.done;M=v.next())if(b===M.value)return 0;return 1};
kqQ=function(z){var l=_.xW(z[1]);if(z[0]===null)return l;z=z[0];for(var I={},b=0;b<z.length;b++){var v=_.xW(z[b]);if(b===0)I[v]=l;else{var M={};M[v]=I;I=M}}return I};
_.ZfY=function(){for(var z=_.HF,l=0;l<z.length;l++){var I=kqQ(z[l]),b=[];b.push(I);if(b.length===0)return 0}return 1};
_.HfH=function(){for(var z=_.HF,l={},I=0;I<z.length;l={xqz:void 0},I++){var b=[kqQ(z[I])];l.xqz=[];b.forEach(function(v){return function(M){v.xqz[v.xqz.length]=M}}(l));
if(l.xqz.length===0)return 0}return 1};
_.vjY=function(){for(var z=_.D(fWQ()),l=z.next();!l.done;l=z.next()){var I=l.value;l=I.jsonRepresentation;I=I.objectRepresentation;try{var b=JSON.parse(l);if(!uc(b,I,!1,!1))return 0}catch(v){return 0}}return 1};
_.NUx=function(){try{var z=_.Go("ab_det_sc_inj_val");z.length===1&&z[0]===""&&(z=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var l=document.querySelectorAll("script"),I=_.D(l),b=I.next();!b.done;b=I.next())for(var v=b.value,M=_.D(z),x=M.next();!x.done;x=M.next()){var g=x.value;l=void 0;if((l=v.textContent)==null?0:l.includes(g))return 0}}catch(G){return 4}return 1};
_.lWu=function(){var z,l,I,b,v,M,x;return _.O(function(g){switch(g.nextAddress){case 1:_.RL(g,2),z=_.D(y$$),l=z.next();case 4:if(l.done)return g.return(1);b=I=l.value;v=b.jsonRepresentation;M=b.objectRepresentation;return g.yield((new Response(v,{status:200})).json(),7);case 7:x=g.yieldResult;if(!uc(x,M,!1,!1))return g.return(0);l=z.next();g.jumpTo(4);break;case 2:return _.XP(g),g.return(4)}})};
_.gjS=function(){try{btoa("abc")}catch(z){return 0}return 1};
es$=function(){var z,l,I,b,v,M,x,g,G,u,Z;return _.O(function(H){switch(H.nextAddress){case 1:_.RL(H,2),z=_.D(fWQ()),l=z.next();case 4:if(l.done)return H.return(1);b=I=l.value;v=b.jsonRepresentation;M=b.objectRepresentation;x=btoa(v);g="data:application/json;base64,"+x;G=new Request(g);Object.defineProperty(G,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(G,"method",{get:function(){return"POST"}});
Object.defineProperty(G,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(G,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(G,"body",{get:function(){return new ReadableStream}});
return H.yield(fetch(G),7);case 7:return u=H.yieldResult,H.yield(u.json(),8);case 8:Z=H.yieldResult;if(!uc(Z,M,!1,!1))return H.return(0);l=z.next();H.jumpTo(4);break;case 2:return _.XP(H),H.return(4)}})};
_.pE1=function(z){if(!z||!z.length||typeof z==="string")return 0;for(var l=function(v){return _.xW(v)},I=2,b=0;b<z.length&&(I=_.RFQ(_.dQ7(z[b],l)),I!==0);b++);
return I};
_.RFQ=function(z){var l=_.D(z);z=l.next().value;l=l.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var b=getComputedStyle(I).display;document.body.removeChild(I);if(b==="none")return 4;var v=getComputedStyle(l).display==="none"?0:1;document.body.removeChild(z);return v}catch(M){return 4}};
UQp=function(){var z,l,I;return _.O(function(b){z=new _.yX;l=document.createElement("button");l.classList.add("ytp-ad-skip-button");l.style.opacity="0";l.style.height="0px";l.style.width="0px";l.style.padding="0px";l.style.border="none";I=function(){l.parentElement&&l.parentElement.removeChild(l)};
l.onclick=function(){z.resolve(0);I()};
document.body.appendChild(l);setTimeout(function(){I();z.resolve(1)},50);
return b.return(z.promise)})};
W6u=function(){var z,l,I,b,v,M,x;return _.O(function(g){z=new _.yX;l=document.createElement("ytd-player");try{document.body.prepend(l)}catch(G){return g.return(4)}I=function(){l.parentElement&&l.parentElement.removeChild(l)};
l.getElementsByTagName("div").length>0?b=l.getElementsByTagName("div")[0]:(b=document.createElement("div"),l.appendChild(b));v=document.createElement("div");b.appendChild(v);M=document.createElement("video");x=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});M.src=_.hT(_.w0(x));M.ontimeupdate=function(){I();z.resolve(0)};
v.appendChild(M);M.classList.add("html5-main-video");setTimeout(function(){v.classList.add("ad-interrupting")},200);
setTimeout(function(){I();z.resolve(1)},5E3);
return g.return(z.promise)})};
mdY=function(z){var l=PrG().objectRepresentation.playbackTracking;if(l){var I=[],b;I.push(l==null?void 0:(b=l.videostatsPlaybackUrl)==null?void 0:b.baseUrl);var v;I.push(l==null?void 0:(v=l.videostatsDelayplayUrl)==null?void 0:v.baseUrl);var M;I.push(l==null?void 0:(M=l.videostatsWatchtimeUrl)==null?void 0:M.baseUrl);var x;I.push(l==null?void 0:(x=l.ptrackingUrl)==null?void 0:x.baseUrl);var g;I.push(l==null?void 0:(g=l.qoeUrl)==null?void 0:g.baseUrl);var G;I.push(l==null?void 0:(G=l.atrUrl)==null?
void 0:G.baseUrl);l=_.D(I);for(I=l.next();!I.done;I=l.next())if((I=I.value)&&z.test(I))return I.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
KWx=function(z,l){var I,b;return _.O(function(v){switch(v.nextAddress){case 1:I=[],b=0;case 2:if(!(b<3)){v.jumpTo(4);break}return v.yield(fetch(z,{cache:"no-store",method:l}).then(function(M){I.push(M.status)}).catch(function(){I.push(-1)}),3);
case 3:b++;v.jumpTo(2);break;case 4:return v.return(I)}})};
tTY=function(z){return z.domainLookupStart===0&&z.domainLookupEnd===0&&z.connectStart===0&&z.connectEnd===0};
BUf=function(z,l,I){I=I===void 0?"GET":I;var b,v,M,x,g,G,u,Z,H,y;return _.O(function(f){if(f.nextAddress==1)return f.yield(Promise.all([KWx(z,I),KWx(l,I)]),2);b=f.yieldResult;v=_.D(b);M=v.next().value;x=v.next().value;g=M;G=x;if(Math.min.apply(Math,_.ht(G))!==Math.max.apply(Math,_.ht(G))||Math.min.apply(Math,_.ht(g))!==Math.max.apply(Math,_.ht(g)))return f.return(2);if(Math.min.apply(Math,_.ht(G))===Math.min.apply(Math,_.ht(g)))return f.return(1);Z=(u=performance.getEntriesByName(z))==null?void 0:
u[0];y=(H=performance.getEntriesByName(l))==null?void 0:H[0];return Z&&y?tTY(y)?f.return(1):tTY(Z)?f.return(0):f.return(1):f.return(2)})};
jVS=function(){var z;return _.O(function(l){var I=[];var b;var v,M,x;(v=b=(v=PrG().objectRepresentation.streamingData)==null?void 0:(M=v.formats)==null?void 0:(x=M[0])==null?void 0:x.url)&&v&&!b.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(v=v.replace("initcwndbps","ctier=L&initcwndbps"),v=v.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),b={testUrl:v,baseUrl:b,method:"GET"}):b=void 0;b&&I.push(b);_.C("ab_net_tp_e")&&I.push({testUrl:_.v7.location.origin+"/ad_companion",baseUrl:_.v7.location.origin+
"/generate_204",method:"OPTIONS"});_.C("ab_fix_creator_view_cnt")&&(I.length=0,(b=mdY(/api\/stats\/atr/))&&I.push({testUrl:_.v7.location.origin+b,baseUrl:_.v7.location.origin+"/generate_204",method:"OPTIONS"}));_.C("ad_net_pb_pbp")&&(b=mdY(/api\/stats\/qoe/))&&I.push({testUrl:_.v7.location.origin+b,baseUrl:_.v7.location.origin+"/feed/download",method:"GET"});I=I.length!==0?I[Math.floor(Math.random()*I.length)]:void 0;return(z=I)?l.return(BUf(z.testUrl,z.baseUrl,z.method)):l.return(4)})};
_.xdt=function(){if(_.v7.v8m===void 0||_.v7.v8m===null||typeof _.v7.v8m!=="function")return 2;try{return _.v7.v8m()===!0?0:1}catch(z){return 0}};
XEk=function(z){switch(z){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Ap(z,"unknown result type")}};
_.q37=function(z,l){var I=Number(_.sZ("CATSTAT",0));if(l.zHz===void 0)return I;l=l.zHz;z=XEk(z);return I&~(3<<l)|z<<l};
if1=function(z){var l,I;if((z=(l=z.auxiliaryUi)==null?void 0:(I=l.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&z.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return z};
QJY=function(){for(var z=_.D(Object.values(_.FW7)),l=z.next();!l.done;l=z.next())l=l.value,l.isAsync&&l.zHz&&_.hr("CATSTAT",_.q37(2,l))};
_.RD=function(z,l){z=_.fr("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",z);(l===void 0?0:l)?_.Y31(z,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Cr(_.kW(),z,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
c$u=function(){if(!TUx){if(Polymer.Base){var z=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{z.apply(this,arguments)}catch(H){_.$P(H)}};
var l=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{l.apply(this,arguments)}catch(H){_.$P(H)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(H){_.$P(H)}};
var b=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{b.apply(this,arguments)}catch(H){_.$P(H)}};
var v=Polymer.Base._listen,M=new WeakMap;Polymer.Base._listen=function(H,y,f){var R=function(){try{f.apply(this,arguments)}catch(F){_.$P(F)}};
M.set(f,R);v.call(this,H,y,R)};
var x=Polymer.Base._unlisten;Polymer.Base._unlisten=function(H,y,f){x.call(this,H,y,M.get(f))}}if(Polymer.Async){var g=Polymer.Async,G=g._atEndOfMicrotask;
g._atEndOfMicrotask=function(){try{G.apply(g,arguments)}catch(H){_.$P(H)}}}if(Polymer.RenderStatus){var u=Polymer.RenderStatus,Z=u.afterNextRender;
u.afterNextRender=function(H,y,f){Z.call(u,H,function(){try{y.apply(this,arguments)}catch(R){_.$P(R)}},f)}}TUx=!0}};
_.ma=function(z){var l=z?_.yI(z):"";if(l){if(l.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(l.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(l.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(l.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(l.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.C("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(l.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";l=l.toLowerCase();if(l==="/")return"home";if(l==="/channel_memberships")return"channel-memberships-shopfront";if(l.indexOf("/feed/trending")===0)return"trending";if(l.indexOf("/feed/explore")===0)return"explore";if(l.indexOf("/live")===0)return"live";if(l.indexOf("/results")===0)return"search";if(l.indexOf("/sports")===0)return"sports";if(l.indexOf("/fashion")===0||l.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(l))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(l))return _.C("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(l.indexOf("/channel/")===0||l.indexOf("/user/")===0||l.indexOf("/gaming")===0||l.indexOf("/post/")===0)return"channel";if(S3S(z))return"show";if(l==="/playlist"||l.indexOf("/playlist/")===0||l==="/view_play_list"||l.indexOf("/view_play_list/")===0||l.indexOf("/show/")===0)return"playlist";if(l==="/feed/history"||l.indexOf("/feed/history/")===0)return"history";if(l===
"/new")return"labs";if(l==="/feed/subscriptions")return"subscriptions";if(l.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(l==="/history_controls")return"standalone";if(l.indexOf("/account")===0||l==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(l.indexOf("/paid_memberships")===0||l.indexOf("/refund")===0||l.indexOf("/purchases")===0||l.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(l.indexOf("/product")===0)return"yts-products";if(l.indexOf("/premium")===
0||l.indexOf("/musicpremium")===0)return l.indexOf("/premium/offers")===0||l.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(l==="/cart/checkout"||l==="/cart")return"ypc-checkout";if(l.indexOf("/feed/downloads")===0||l.indexOf("/redeem")===0||l.indexOf("/reporthistory")===0)return"browse";if(l.indexOf("/hashtag")===0)return"hashtag-landing-page";if(l.indexOf("/handle")===0)return"handle";if(l.indexOf("/source")===0)return"audio-pivot";if(l.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(l.indexOf("/playables")===0)return"playables";if(l.indexOf("/create/live/join")===0)return"open-in-app";if(l.indexOf("/shorts")===0)return"shorts";if(l.indexOf("/feed/channels")===0)return"subscriptions-channels";(l=z?_.yI(z):"")&&l.indexOf("/watch")===0&&_.C("web_watch_enable_learning_journey")?(z=_.V7(z),z=!!z.list&&z.list.indexOf("LJPP")===0):z=!1;if(z)return"learning_journey_watch"}};
_.Kr=function(z){var l,I;(z=(I=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:I.url)&&(l=_.ma(z));return l};
S3S=function(z){var l=z?_.yI(z):"";if(!l)return!1;l=l.toLowerCase();return l.indexOf("/show/")===0||l.indexOf("/playlist")===0&&(z=_.V7(z),z.list&&z.list.indexOf("EL")===0)?!0:!1};
qo=function(z){var l="unknown",I;var b=((I=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:I.webPageType)||"";b?(I=b.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=b;I&&ddQ[I.toUpperCase()]?l=ddQ[I.toUpperCase()]:_.k(z,_.BF)||_.k(z,ojY)?l="browse":_.k(z,_.XN)?l="search":_.k(z,_.zb)&&(l="watch");l==="watch"&&_.Kr(z||null)==="learning_journey_watch"&&(l="learning_journey_watch");l==="unknown"&&_.PW(Error("Qf`"+JSON.stringify({clickTrackingParams:z==null?void 0:z.clickTrackingParams,
commandMetadata:z==null?void 0:z.commandMetadata,allEndpointKeys:Object.keys(z||[])})));return l};
_.ic=function(z){if(!_.P0u||z)_.P0u=_.il();return _.P0u};
_.hF$=function(z){return!!_.k(z,_.zb)||!!_.k(z,_.FN)&&_.C("kevlar_enable_shorts_prefetch")};
_.sJt=function(z,l){z=_.k(z,_.zb)||_.k(z,_.FN);return"v"+z.videoId+(z.playlistId?"-pl"+z.playlistId:"")+(l?"-an1":"")+(z.params?"-pr"+z.params:"")};
QX=function(z){return function(){return new z}};
YW=function(z){var l=_.pG();return function(){return l.resolve(z)}};
$d5=function(z){var l=_.OI("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;if(!_.k(z,_.FN))return l&&_.PW(Error("Tf")),!1;var I;return _.C("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.k(z,_.FN))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:r$H(z)?!0:(l&&_.PW(Error("Uf")),!1)};
r$H=function(z){var l=(_.k(z,_.zb)||_.k(z,_.FN)).videoId;if(!l||!eFx.test(l))return!1;var I;return(z=(I=_.k(z.commandMetadata,_.kB))==null?void 0:I.url)&&(z.includes(l)||z.startsWith("/clip"))?!0:!1};
_.A$p=function(){var z=_.Bu();return z.getFlag(192)?z.getFlag(190):!(_.C("web_watch_cinematics_disabled_by_default")||_.C("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&wEQ())};
_.TN=function(z,l,I){var b={};b.currentUrl=l;b.vis=z.vis!==void 0?z.vis:0;b.splay=!1;l=_.Bu();b.autoCaptionsDefaultOn=l.getFlag(66);l.getFlag(141)?l.getFlag(140)?b.autonavState="STATE_OFF":b.autonavState="STATE_ON":b.autonavState="STATE_NONE";b.html5Preference="HTML5_PREF_WANTS";isNaN(_.sZ("STS"))||(b.signatureTimestamp=_.sZ("STS"));z.autonav&&(b.autoplay=!0,b.autonav=!0);z.mutedAutoplay&&(b.autoplay=!0,b.mutedAutoplay=!0);z.inlinePlayback&&(b.autoplay=!0,b.autonav=!1,b.isInlineUnmutedPlayback=!!z.inlineUnmuted);
b.referer=I;b.lactMilliseconds=z.lact!==void 0?z.lact.toString():"-1";_.C("enable_unknown_lact_fix_on_html5")&&b.lactMilliseconds==="-1"&&_.PW(new _.qB("Unknown LACT is set in playbackContext.",{"lact in tempData":z.lact||"undefined",autonav:z.autonav||"undefined"}));z={};l.getFlag(194)&&(z.hasShownAmbientMode=!0);l.getFlag(192)&&(z.hasToggledOffAmbientMode=!0);_.A$p()&&(z.watchAmbientModeEnabled=!0);b.watchAmbientModeContext=z;return b};
WWf=function(z){var l={},I=z.pbis||0;I&&(l.playbackBeginsInSeconds=I);z.prefetch_reason&&z.prefetch_reason==="hc_pbis"&&(l.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return l};
_.Sb=function(z){z=z===void 0?!1:z;var l=_.Bu(),I="USER_INTERFACE_THEME_LIGHT";l.getFlag(165)?I="USER_INTERFACE_THEME_DARK":l.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.cF()&&(I="USER_INTERFACE_THEME_DARK");return z?I:njS()||I};
_.LW5=function(){return!_.C("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.cF=function(){return _.LW5()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.dD=function(){var z=_.Bu();return _.LW5()&&!z.getFlag(165)&&!z.getFlag(174)};
njS=function(){var z=z===void 0?window.location.href:z;if(_.C("kevlar_disable_theme_param"))return null;var l=_.yI(z);if(_.Ud1(l))return"USER_INTERFACE_THEME_DARK";try{var I=_.V7(z).theme;return aWf.get(I)||null}catch(b){}return null};
_.Ud1=function(z){return _.C("enable_dark_theme_only_on_shorts")?!(z==null||!z.startsWith("/shorts/")):!1};
_.J$x=function(z,l,I,b,v){l=l===void 0?!1:l;I=I===void 0?!1:I;var M=_.sZ("INNERTUBE_CONTEXT");if(!M)return _.dE(Error("Xf")),{};M=(0,_.h7.unsafeClone)(M);_.C("web_no_tracking_params_in_shell_killswitch")||delete M.clickTracking;M.client||(M.client={});var x=M.client;x.clientName==="MWEB"&&x.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(x.clientFormFactor=_.sZ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");x.screenWidthPoints=window.innerWidth;x.screenHeightPoints=window.innerHeight;x.screenPixelDensity=
Math.round(window.devicePixelRatio||1);x.screenDensityFloat=window.devicePixelRatio||1;x.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());x.userInterfaceTheme=_.Sb();if(!l){var g=_.Xgt();g&&(x.connectionType=g);_.C("web_log_effective_connection_type")&&(g=icf())&&(M.client.effectiveConnectionType=g)}var G;if(_.C("web_log_memory_total_kbytes")&&((G=_.v7.navigator)==null?0:G.deviceMemory)){var u;G=(u=_.v7.navigator)==null?void 0:u.deviceMemory;M.client.memoryTotalKbytes=""+G*1E6}l&&b&&!_.C("web_it_context_set_original_url_ks")&&
(x.originalUrl=VT1(_.v7.location.href,b).toString());_.C("web_gcf_hashes_innertube")&&(g=hWk())&&(u=g.coldConfigData,G=g.coldHashData,g=g.hotHashData,M.client.configInfo=M.client.configInfo||{},u&&(M.client.configInfo.coldConfigData=u),G&&(M.client.configInfo.coldHashData=G),g&&(M.client.configInfo.hotHashData=g));u=_.V7(_.v7.location.href);!_.C("web_populate_internal_geo_killswitch")&&u.internalcountrycode&&(x.internalGeo=u.internalcountrycode);!_.C("web_populate_client_screen_killswitch")&&v&&(x.clientScreen=
v);x.clientName==="MWEB"||x.clientName==="WEB"?(x.mainAppWebInfo||(x.mainAppWebInfo={}),x.mainAppWebInfo.graftUrl=b||_.v7.location.href,_.C("kevlar_woffle")&&_.oD.instance&&(b=_.oD.instance,x.mainAppWebInfo.pwaInstallabilityStatus=!b.appInstalledEventFired&&b.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),x.mainAppWebInfo.webDisplayMode=QDQ(),x.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):x.clientName==="TVHTML5"&&
(!_.C("web_lr_app_quality_killswitch")&&(b=_.sZ("LIVING_ROOM_APP_QUALITY"))&&(x.tvAppInfo=Object.assign(x.tvAppInfo||{},{appQuality:b})),b=_.sZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(x.tvAppInfo=Object.assign(x.tvAppInfo||{},{certificationScope:b}));!_.C("web_populate_time_zone_itc_killswitch")&&(b=tS5())&&(x.timeZone=b);(b=AHQ())?x.experimentsToken=b:delete x.experimentsToken;x=WYt();b=_.jJ7();b=(0,_.h7.getValues)(b.tokenJars);M.request=Object.assign({},M.request,{internalExperimentFlags:x,consistencyTokenJars:b});
!_.C("web_prequest_context_killswitch")&&(x=_.sZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(M.request.externalPrequestContext=x);b=_.Bu();x=b.getFlag(58);b=b.get("gsml","");M.user=Object.assign({},M.user);x&&(M.user.enableSafetyMode=x);b&&(M.user.lockedSafetyMode=!0);_.C("warm_op_csn_cleanup")?I&&(l=_.sU())&&(M.clientScreenNonce=l):!l&&(l=_.sU())&&(M.clientScreenNonce=l);z&&(M.clickTracking={clickTrackingParams:z});if(z=_.W8("yt.mdx.remote.remoteClient_"))M.remoteClient=z;_.PF.getInstance().setLocationOnInnerTubeContext(M);
try{var Z=Ip1(),H=Z.bid;delete Z.bid;M.adSignalsInfo={params:[],bid:H};for(var y=_.D(Object.entries(Z)),f=y.next();!f.done;f=y.next()){var R=_.D(f.value),F=R.next().value,Y=R.next().value;Z=F;H=Y;z=void 0;(z=M.adSignalsInfo.params)==null||z.push({key:Z,value:""+H})}var c,d;if(((c=M.client)==null?void 0:c.clientName)==="TVHTML5"||((d=M.client)==null?void 0:d.clientName)==="TVHTML5_UNPLUGGED"){var V=_.sZ("INNERTUBE_CONTEXT");V.adSignalsInfo&&(M.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,
M.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",M.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(A){_.dE(A)}return M};
_.sr=function(z,l,I){var b=I&&I>0?I:0;I=b?Date.now()+b*1E3:0;if((b=b?_.hY.getLocalStorage():_.hY.getSessionStorage())&&window.JSON){typeof l!=="string"&&(l=JSON.stringify(l,void 0));try{b.set(z,l,I)}catch(v){b.remove(z)}}};
_.rD=function(z){var l=_.hY.getSessionStorage(),I=_.hY.getLocalStorage();if(!l&&!I||!window.JSON)return null;try{var b=l.get(z)}catch(v){}if(typeof b!=="string")try{b=I.get(z)}catch(v){}if(typeof b!=="string")return null;try{b=JSON.parse(b,void 0)}catch(v){}return b};
_.$W=function(z){try{var l=_.hY.getSessionStorage(),I=_.hY.getLocalStorage();l&&l.remove(z);I&&I.remove(z)}catch(b){}};
_.zG7=function(z){var l=new eb(_.sZ("ONE_PICK_URL",""));l.urlParamMap_.set("hostId",z);(z=_.sZ("GAPI_LOCALE"))&&l.urlParamMap_.set("hl",z);(z=_.sZ("SESSION_INDEX"))&&l.urlParamMap_.set("authuser",z);(z=_.sZ("DELEGATED_SESSION_ID"))&&l.urlParamMap_.set("groupId",z);return l};
IRS=function(){var z=_.pG(),l=z.resolve(_.wD);z=z.resolve(_.AY);return new lR1(l,z)};
vJ1=function(z){if(window.IntersectionObserver)return new by7(z,400);throw new TypeError("dg");};
pD$=function(){var z=Hammer.TouchAction,l=z.prototype.preventDefaults;z.prototype.preventDefaults=function(I){var b=this.actions.indexOf("pan-down")>-1;if(!b)return l.call(this,I);if(!M5p){var v=I.srcEvent;I=I.direction;var M;if((M=this.manager)==null?0:M.session.prevented)v.preventDefault();else if(b&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(v)}}};
Dm1=function(z){if(!z||z.size===0)return Hammer.DIRECTION_ALL;if(z.size===2){if(z.has("up")&&z.has("down"))return Hammer.DIRECTION_VERTICAL;if(z.has("right")&&z.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(z.size===1){if(z.has("up"))return Hammer.DIRECTION_UP;if(z.has("down"))return Hammer.DIRECTION_DOWN;if(z.has("right"))return Hammer.DIRECTION_RIGHT;if(z.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Oy7=function(){return xm5?Promise.resolve(xm5):new Promise(function(z,l){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=l;I.onsuccess=function(){var b=I.result;if(b.objectStoreNames.contains("swpushnotificationsstore"))xm5=b,z(xm5);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Oy7()};
I.onupgradeneeded=gJS})};
gJS=function(z){z=z.target.result;z.objectStoreNames.contains("swpushnotificationsstore")&&z.deleteObjectStore("swpushnotificationsstore");z.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
NP5=function(z){var l=GMu(),I;return _.O(function(b){switch(b.nextAddress){case 1:return _.RL(b,2),b.yield(z.match(l,{cacheName:"yt-appshell-assets"}),4);case 4:I=b.yieldResult;_.a3(b,3);break;case 2:_.XP(b);case 3:return b.return(I)}})};
GMu=function(){var z=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?EJQ.registration.scope:uHQ;z.endsWith("/")&&(z=z.slice(0,-1));return z+"/app_shell_home"};
ZyQ=function(z){z.map(function(l){return l.source}).join("|")};
_.Hyx=function(z){return _.O(function(l){return l.return(NP5(z))})};
ynf=function(){var z=window.caches,l;return _.O(function(I){if(I.nextAddress==1)return I.yield(_.Hyx(z),2);l=I.yieldResult;return I.return(!!l)})};
t5p=function(){_.O(function(z){if(z.nextAddress==1){if(fR5)return z.jumpTo(0);fR5=!0;if(_.C("enable_system_health_primes_monitoring"))return _.ZQ(CLp,3E4),kMQ(),z.return();if(!(Math.random()<_.OI("web_system_health_fraction")))return z.jumpTo(0);RGx={heightPixels:screen.height,widthPixels:screen.width};WF&&!isNaN(WF.jsHeapSizeLimit)&&(RGx.memoryTotalKbytes=String(Math.round(WF.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(RGx.devicePixelRatio=window.devicePixelRatio);return z.yield(mmx(),4)}_.ZQ(CLp,
3E4);return z.yield(Krk(),0)})};
mmx=function(){return _.O(function(z){if(z.nextAddress==1)return nr.intersectionObserverPresent="IntersectionObserver"in window,nr.serviceWorkerPresent="serviceWorker"in navigator,nr.webSharePresent="share"in navigator,nr.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,nr.cacheStoragePresent="caches"in window,nr.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,nr.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
nr.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Lr&&Lr.webkitTemporaryStorage&&"queryUsageAndQuota"in Lr.webkitTemporaryStorage,nr.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",z.yield(vWS(),2);nr.indexedDbPresent=z.yieldResult;nr.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;nr.broadcastChannelPresent="BroadcastChannel"in window;nr.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(nr.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,nr.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.qe(z)})};
CLp=function(){var z=9E4+Math.random()*2E3;_.p2()>z||(_.C("enable_system_health_primes_monitoring")?kMQ():Krk())};
Krk=function(){var z;return _.O(function(l){if(l.nextAddress==1)return l.yield(BPQ(),2);z=l.yieldResult;_.cW("systemHealthCaptured",z);_.qe(l)})};
kMQ=function(){var z={metric:{}},l=XDp();l.networkEvents.length&&(z.metric.networkEvents=qsx(l));_.cW("systemHealthCaptured",z)};
BPQ=function(){var z,l,I,b,v,M,x,g,G,u;return _.O(function(Z){switch(Z.nextAddress){case 1:z={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};l=window.screen;_.C("enable_is_extended_monitoring")&&l&&"isExtended"in l&&(z.isExtended=!!l.isExtended);I={metric:{staticContext:RGx,dynamicContext:z,webMetric:iyp,webApiSupport:nr}};
if(b=_.sU())I.csn=b;WF&&(I.metric.webMetric.currentHeapKbytes=Math.round(WF.usedJSHeapSize/1E3));window.matchMedia&&(I.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,I.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,I.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Lr&&typeof Lr.getBattery==="function")){Z.jumpTo(2);break}return Z.yield(Lr.getBattery(),3);case 3:if(v=
Z.yieldResult)I.metric.dynamicContext.chargingStatus=v.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(nr.storageEstimatePresent)return Z.yield(navigator.storage.estimate(),8);if(!nr.webkitTemporaryStoragePresent){Z.jumpTo(5);break}return Z.yield(FrQ(),7);case 7:M=Z.yieldResult;Z.jumpTo(5);break;case 8:M=Z.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((x=M)==null?0:x.quota)?String(Math.round(M.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((g=M)==null?0:g.usage)?String(Math.round(M.usage/1048576/10)*10):"-1",G=I.metric.dynamicContext,Z.yield(ynf(),9);case 9:return G.hasAppShell=Z.yieldResult,u=XDp(),u.networkEvents.length&&(I.metric.networkEvents=qsx(u)),Z.return(I)}})};
FrQ=function(){return new Promise(function(z){var l;nr.webkitTemporaryStoragePresent&&(l=Lr.webkitTemporaryStorage)!=null&&l.queryUsageAndQuota?Lr.webkitTemporaryStorage.queryUsageAndQuota(function(I,b){z({usage:I,quota:b})}):z(void 0)})};
_.Ur=function(z){z&=16777215;z=[(z&16711680)>>16,(z&65280)>>8,z&255];return Qnt(z[0],z[1],z[2])};
_.aD=function(z){z=[(z&16711680)>>>16,(z&65280)>>>8,z&255,(z&4278190080)>>>24];var l=_.YsQ(z,function(I){return I==(I&255)});
z[3]=(z[3]/255).toFixed(3);if(!l)throw Error("eg`"+z.join(","));return"rgba("+z.join(",")+")"};
_.TPx=function(z){return[(z&16711680)>>>16,(z&65280)>>>8,z&255]};
_.cn5=function(z){z=z.map(function(l){l/=255;return l<=.03928?l/12.92:Math.pow((l+.05)/1.05,2.4)});
return z[0]*.2126+z[1]*.7152+z[2]*.0722};
VX=function(z,l){z=_.TPx(z);return"rgba("+z[0]+", "+z[1]+", "+z[2]+", "+l+")"};
_.Ss7=function(){try{return!!self.localStorage}catch(z){return!1}};
hGY=function(){if(dmt())_.PW(Error("fg"));else{var z=document.createElement("iframe");z.style.display="none";var l=l===void 0?window.location.href:l;var I=_.Pd(_.sZ("PERSIST_IDENTITY_IFRAME_URL"));l=I?I:(new URL(l)).host.indexOf("studio")===0?_.HR(oJx,"persist_identity"):_.HR(PLf,"persist_identity");_.Dek(z,1,l);z.id="persist_identity";var b;(b=document.body)==null||b.appendChild(z)}};
dmt=function(){var z=sn1;z||(z=document.querySelector("#persist_identity"));return z};
rnY=function(){var z=!1;try{z=!!window.sessionStorage.getItem("session_logininfo")}catch(l){z=!0}return(_.sZ("INNERTUBE_CLIENT_NAME")==="WEB"||_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&z};
$mS=function(z,l){if(!rnY())return!1;l||(l=_.sZ("LOGIN_INFO"));return l?(z.session_logininfo=l,!0):!1};
wDp=function(z,l){z=z===void 0?!1:z;if((l===void 0||!l)&&eGH!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.rr("LOG_STICKINESS",!1)){l=_.sU();var I=_.h8(),b={identityStickinessData:{initialState:eGH}};l&&I&&_.li(l,I,b)}if(l=dmt())if(I=l.src?(new URL(l.src)).origin:"*",z){var v;(v=l.contentWindow)==null||v.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(z=window.sessionStorage.getItem("session_logininfo"))){var M;(M=l.contentWindow)==null||M.postMessage({loginInfo:z},I)}};
_.jb=function(z){z=z===void 0?!0:z;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.hr("LOGIN_INFO",""),z&&window.sessionStorage.setItem("from_switch_account","1"),wDp(!0,z)}catch(l){}};
An$=function(z){z&&(z.startsWith("https://accounts.google.com/AddSession")?_.jb():z.startsWith("https://accounts.google.com/ServiceLogin")?_.jb():z.startsWith("https://myaccount.google.com")&&_.UA(z).getPath().endsWith("/youtubeoptions")&&_.jb())};
JY=function(z,l){An$(z);if(_.rr("LOGGED_IN",!0)&&rnY()){var I=Q5f(z);I==null&&(I={});$mS(I,l)&&_.vu(z,I)}};
Wrt=function(){function z(l){for(l=l.target;l&&l.nodeName!=="A";)if(l=l.parentNode,!(l&&l instanceof HTMLElement))return;if(l&&!l.hasAttribute("download")&&l.getAttribute("rel")!=="external"&&l.href)return l.href}
document.addEventListener("mousedown",function(l){l.button!==0&&(l=z(l))&&JY(l)});
document.addEventListener("click",function(l){(l=z(l))&&JY(l)})};
UmH=function(){var z=new nJG;try{if(_.rr("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(g){z.increment(5,!1);return}if(_.sZ("LOGIN_INFO")){var l=LrS?LrS:window.location;_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&hGY();var I=Q5f(l.href);I==null&&(I={});var b=I.session_logininfo,v=Number(window.sessionStorage.getItem("stickiness_reload")),M=b===_.sZ("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
v>=2||M)v>=2?z.increment(2,M):M?z.increment(7,M):window.sessionStorage.getItem("session_logininfo")||(z.increment(3,M),eGH="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.sZ("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.sZ("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))z.increment(4,M),window.sessionStorage.removeItem("stickiness_reload");
else if(v<2){window.sessionStorage.setItem("stickiness_reload",String(v+1));var x=l.href;x=_.Mu(x,"sttick");JY(x,window.sessionStorage.getItem("session_logininfo"));x=_.jm(x,{sttick:v});z.increment(v,M);_.EdG(l,x)}}else z.increment(6,!1)}else _.jb(!1)}catch(g){}};
_.z9=function(z,l,I,b,v){l=l===void 0?{}:l;I=I===void 0?"":I;b=b===void 0?window:b;z=_.Jr(z,l);JY(z);I=_.eA(z+I,v);_.EdG(b.location,I)};
aRQ=function(z){if(z.urlEndpoint){if(z=_.V7(z.urlEndpoint.url),z.adurl)return vV(z.adurl)}else if(z.watchEndpoint)return"//www.youtube.com/watch?v="+z.watchEndpoint.videoId;return null};
V5t=function(z){if(!z||!z.reportingPings)return null;var l={};z.reportingPings.forEach(function(I){I.pingType in l?l[I.pingType].push(I.url):l[I.pingType]=[I.url]});
return{adpings:QmQ(l)}};
_.l5=function(){return{isShellLoad:_.rr("IS_SHELL_LOAD",!1)}};
JnQ=function(){navigator.serviceWorker.getRegistrations().then(function(z){z.forEach(jnf)})};
jnf=function(z){z&&_.zBu(lzk,z.scope)};
_.zBu=function(z,l){l={scope:l||_.gk("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.YR(z),l)};
I8=function(z,l,I,b){if(l&&l.serializedYpcCujLoggingParams){if(I){var v={};v.transactionErrorType=I;b&&(v.errorMessage=b);l.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:v}}}I={};I.ypcCujContext=l;z=_.fr("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",z,I);_.Cr(_.kW(),z,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Izk=function(z,l,I,b){var v={};v.serializedTransactionFlowLoggingParams=l;I&&(v.errorType=I);b&&(v.errorMessage=b);_.cW(z,v);_.SX()};
_.b5u=function(z){z&&_.Izk("transactionFlowStarted",z)};
_.vQ1=function(z){z&&_.Izk("transactionFlowCancelled",z)};
_.b5=function(z,l,I){l&&_.Izk("transactionFlowFailed",l,z,I)};
MqQ=function(z){var l=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");l&&(l.inert=z)};
_.vy=function(){this.megabloxUrl_=null};
_.MX=function(z){try{var l=pmt==null?void 0:pmt.composedPath(z)}catch(I){l=z.composedPath?z.composedPath():[]}return l&&l.length>0?l:z.composedPath?z.composedPath():[]};
_.pJ=function(z){return _.MX(z)[0]};
_.DP=function(z){if(!(z instanceof Element))return null;z=z.classList?Array.from(z.classList):void 0;if(!z)return null;var l=z.indexOf("style-scope");return l>-1&&l+1<z.length?z[l+1]:null};
xE=function(z){if(!(z instanceof HTMLElement))return null;var l=z&&(z.$$||z.polymerController)?z.tagName.toLowerCase():null;return l?l:_.DP(z)};
Db$=function(z,l){return z.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+l})};
xb$=function(z,l){return l?z.split(",").map(function(I){return Db$(I.trim(),l)}).join(", "):z};
_.Ox=function(z){var l,I,b,v;return(v=(b=(I=(l=z.root)!=null?l:z.shadowRoot)!=null?I:z.__shady_native_shadowRoot)!=null?b:z.__shady_shadowRoot)!=null?v:z};
G9=function(z){return z instanceof ShadowRoot?ShadowRoot:z instanceof DocumentFragment?DocumentFragment:z instanceof Document?Document:HTMLElement};
O5u=function(z){var l,I,b;return(b=(I=(l=z.parentElement)!=null?l:z.__shady_native_parentElement)!=null?I:z.__shady_parentElement)!=null?b:null};
gQY=function(z){var l,I,b;return(b=(I=(l=z.parentNode)!=null?l:z.__shady_native_parentNode)!=null?I:z.__shady_parentNode)!=null?b:null};
G2S=function(z){var l,I,b;return(b=(I=(l=z.__shady_parentNode)!=null?l:z.__shady_native_parentNode)!=null?I:z.parentNode)!=null?b:null};
NA5=function(z){var l,I;return(I=(l=gQY(z))!=null?l:z.host)!=null?I:null};
EQQ=function(z){var l,I,b;return(b=(I=(l=z.nextSibling)!=null?l:z.__shady_native_nextSibling)!=null?I:z.__shady_nextSibling)!=null?b:null};
uJf=function(z){var l,I,b;return(b=(I=(l=z.previousSibling)!=null?l:z.__shady_native_previousSibling)!=null?I:z.__shady_previousSibling)!=null?b:null};
Z51=function(z){var l,I,b;return(b=(I=(l=z.nextElementSibling)!=null?l:z.__shady_native_nextElementSibling)!=null?I:z.__shady_nextElementSibling)!=null?b:null};
H5H=function(z){var l,I,b;return(b=(I=(l=z.previousElementSibling)!=null?l:z.__shady_native_previousElementSibling)!=null?I:z.__shady_previousElementSibling)!=null?b:null};
yZt=function(z){var l,I,b;return new Set([].concat(_.ht((l=z.children)!=null?l:[]),_.ht((I=z.__shady_native_children)!=null?I:[]),_.ht((b=z.__shady_children)!=null?b:[])))};
fz1=function(z){var l,I,b;return new Set([].concat(_.ht((l=z.childNodes)!=null?l:[]),_.ht((I=z.__shady_native_childNodes)!=null?I:[]),_.ht((b=z.__shady_childNodes)!=null?b:[])))};
CPY=function(z){if(!z)return null;var l=_.DP(z);if(!l){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(z)}l=l.toUpperCase();for(z=O5u(z);z&&z.tagName!==l;)z=O5u(z);return z?_.Ox(z):null};
k2Y=function(z){for(;z&&!(z instanceof HTMLElement);)z=NA5(z);return z};
RBk=function(z){var l=k2Y(z);return z===l?_.DP(z):l?xE(l):null};
mbQ=function(z){return(z=k2Y(z))?xE(z):null};
K8Y=function(z){if(z instanceof Comment)return!1;if(z instanceof Text){var l,I;if(((I=(l=z.textContent)==null?void 0:l.trim())!=null?I:"")==="")return!1}return!0};
NX=function(z,l,I){var b=l(z);for(I=I===void 0?mbQ(z):I;b&&(RBk(b)!==I||!K8Y(b));)z=b,b=l(z);return b};
tqu=function(z,l,I){if(!l)return null;z=mbQ(z);return RBk(l)===z&&K8Y(l)?l:NX(l,I,z)};
BAx=function(z){return NX(z,G2S,_.DP(z))};
Xmu=function(z){return NX(z,Z51)};
qq7=function(z){return NX(z,EQQ)};
i5t=function(z){return NX(z,H5H)};
F8x=function(z){return NX(z,uJf)};
Qtk=function(z){return tqu(z,z.firstChild||z.__shady_native_firstChild||z.__shady_firstChild||null,EQQ)};
Yq$=function(z){var l,I,b;var v=(b=(I=(l=z.firstElementChild)!=null?l:z.__shady_native_firstElementChild)!=null?I:z.__shady_firstElementChild)!=null?b:null;return tqu(z,v,Z51)};
TAS=function(z){var l,I,b;var v=(b=(I=(l=z.lastChild)!=null?l:z.__shady_native_lastChild)!=null?I:z.__shady_lastChild)!=null?b:null;return tqu(z,v,uJf)};
cZQ=function(z){var l,I,b;var v=(b=(I=(l=z.lastElementChild)!=null?l:z.__shady_native_lastElementChild)!=null?I:z.__shady_lastElementChild)!=null?b:null;return tqu(z,v,H5H)};
SqQ=function(z){var l=mbQ(z);return Array.from(fz1(z)).filter(function(I){return RBk(I)===l})};
dbQ=function(z){var l=xE(z);return Array.from(yZt(z)).filter(function(I){return _.DP(I)===l})};
_.Ex=function(z,l,I){if(z instanceof HTMLElement&&_.DP(z)===I){var b=Array.from(z.classList).indexOf("style-scope");if(b===-1)z.classList.add("style-scope"),z.classList.add(l);else if(!(b+1>=z.classList.length)){b=z.classList[b+1];var v,M;z==null||(v=z.classList)==null||(M=v.replace)==null||M.call(v,b,l)}}if(z instanceof HTMLElement||z instanceof DocumentFragment)for(v=_.D(yZt(z)),M=v.next();!M.done;M=v.next())_.Ex(M.value,l,I);return z};
u5=function(z,l){if(z instanceof HTMLElement&&_.DP(z)===l){var I=Array.from(z.classList).indexOf("style-scope");I===-1||I+1>=z.classList.length||z.classList.remove("style-scope",z.classList[I+1])}if(z instanceof HTMLElement||z instanceof DocumentFragment){I=_.D(z.children);for(var b=I.next();!b.done;b=I.next())u5(b.value,l)}return z};
_.oQ5=function(z,l){return G9(z).prototype.appendChild.call(z,l)};
PPS=function(z,l){if(z===l)return!0;z=fz1(z);return Array.from(z).some(function(I){return PPS(I,l)})};
_.Hy=function(z,l){if(z instanceof ZP)return z;(l==null?0:l.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(z,"ownerDocument")&&Object.defineProperty(z,"ownerDocument",{get:function(){return window.document}});
return new ZP(z)};
stH=function(){var z=ZP.prototype,l=[].concat(_.ht(hBQ?[]:["getRootNode"]),["setAttribute","removeAttribute"]);l=_.D(l);for(var I=l.next(),b={};!I.done;b={method$jscomp$51:void 0},I=l.next())b.method$jscomp$51=I.value,z[b.method$jscomp$51]=function(v){return function(){return this.host[v.method$jscomp$51].apply(this.host,arguments)}}(b)};
$b7=function(){var z=ZP.prototype,l=[].concat(_.ht(hBQ?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ht(rZt?[]:["querySelector","querySelectorAll"]));l=_.D(l);for(var I=l.next(),b={};!I.done;b={method$jscomp$52:void 0},I=l.next())b.method$jscomp$52=I.value,z[b.method$jscomp$52]=function(v){return function(){return this.root[v.method$jscomp$52].apply(this.root,arguments)}}(b)};
AZ7=function(){var z=ZP.prototype,l=[].concat(_.ht(eBu?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ht(wmf?[]:["parentNode"]));l=_.D(l);for(var I=l.next(),b={};!I.done;b={prop$jscomp$63:void 0},I=l.next())b.prop$jscomp$63=I.value,Object.defineProperty(z,b.prop$jscomp$63,{get:function(v){return function(){return this.host[v.prop$jscomp$63]}}(b),
configurable:!0})};
L85=function(){var z=ZP.prototype,l=["activeElement"].concat(_.ht(eBu?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ht(W8f?[]:["children"]),_.ht(nQY?[]:["lastChild"]));l=_.D(l);for(var I=l.next(),b={};!I.done;b={prop$jscomp$64:void 0},I=l.next())b.prop$jscomp$64=I.value,Object.defineProperty(z,b.prop$jscomp$64,{get:function(v){return function(){return this.root[v.prop$jscomp$64]}}(b),
configurable:!0})};
UbQ=function(){for(var z=ZP.prototype,l=_.D(["innerHTML","textContent"]),I=l.next(),b={};!I.done;b={prop$jscomp$65:void 0},I=l.next())b.prop$jscomp$65=I.value,Object.defineProperty(z,b.prop$jscomp$65,{get:function(v){return function(){return this.root[v.prop$jscomp$65]}}(b),
set:function(v){return function(M){this.root[v.prop$jscomp$65]=M}}(b),
configurable:!0})};
az1=function(z){var l=ZP.prototype;z=_.D(Object.entries(z));for(var I=z.next(),b={};!I.done;b={fn$jscomp$402:void 0},I=z.next()){var v=_.D(I.value);I=v.next().value;v=v.next().value;b.fn$jscomp$402=v;l[I]=function(M){return function(){return M.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.ht(arguments)))}}(b)}};
jtp=function(){for(var z=ZP.prototype,l=_.D(Object.entries(VqQ)),I=l.next(),b={};!I.done;b={fn$jscomp$403:void 0},I=l.next()){var v=_.D(I.value);I=v.next().value;v=v.next().value;b.fn$jscomp$403=v;Object.defineProperty(z,I,{get:function(M){return function(){return M.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.ht(arguments)))}}(b),
configurable:!0})}};
_.y5=function(z){return z instanceof JZf||z instanceof Document?z:new JZf(z)};
zpG=function(){for(var z=JZf.prototype,l=_.D("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=l.next(),b={};!I.done;b={method$jscomp$53:void 0},I=l.next())b.method$jscomp$53=I.value,z[b.method$jscomp$53]=function(v){return function(){return HTMLElement.prototype[v.method$jscomp$53].call.apply(HTMLElement.prototype[v.method$jscomp$53],[this.node].concat(_.ht(arguments)))}}(b)};
luS=function(){for(var z=JZf.prototype,l=_.D("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=l.next(),b={};!I.done;b={prop$jscomp$66:void 0},I=l.next())b.prop$jscomp$66=I.value,Object.defineProperty(z,b.prop$jscomp$66,{get:function(v){return function(){var M;return(M=this.node["__shady_native_"+v.prop$jscomp$66])!=null?M:this.node[v.prop$jscomp$66]}}(b),
configurable:!0})};
_.fJ=function(z,l,I){I===void 0&&(I=!z.classList.contains(l));I?z.classList.add(l):z.classList.remove(l)};
_.CJ=function(z,l,I){I===void 0&&(I=!z.hasAttribute(l));if(l==="class")throw Error("kg");I?_.y5(z).setAttribute(l,""):_.y5(z).removeAttribute(l)};
Iu1=function(z){return(z.localName!=="slot"?[]:(0,_.kE)(z).assignedNodes({flatten:!0})).filter(function(l){return l.nodeType===Node.ELEMENT_NODE})};
_.b67=function(z){return(z=_.Hy(z).querySelector("slot"))&&z.localName==="slot"?Iu1(z):[]};
_.R8=function(z,l){window.ShadyCSS&&window.ShadyCSS.styleSubtree(z,l)};
m2=function(z,l){var I=l.bind(z);return function(b){I(b,b.detail)}};
_.KJ=function(z,l){var I=vHk.get(z);I||(I=new WeakMap,vHk.set(z,I));if(I.has(l))return I.get(l);if(_.C("web_fi_listen_disable_bound_fn_helper")){var b=l.bind(z);z=function(v){b(v,v==null?void 0:v.detail)}}else z=m2(z,l);
I.set(l,z);return z};
DnQ=function(z,l){Mp1(z);z.created[p6Q].push(l)};
Mp1=function(z){if(!z.created||!z.created[p6Q]){var l=z.created,I=l?[l]:[];z.created=function(){for(var b=_.D(I),v=b.next();!v.done;v=b.next())v.value.apply(this)};
z.created[p6Q]=I}};
xn$=function(z){return function(){var l=_.AT.apply(0,arguments);return function(I,b,v){z.apply(null,_.ht(l))(I,b,v)}}};
O6H=function(){return function(){var z=_.AT.apply(0,arguments);return function(l,I,b){LTk.apply(null,_.ht(z))(l,I,b)}}};
_.t=function(z){return O6H()(z)};
_.B=function(){return xn$(jq7).apply(null,_.ht(_.AT.apply(0,arguments)))};
_.tP=function(z){return _.C("pbcm_fi_listen_decorators")?gHu(z):xn$(abQ)(z)};
gHu=function(z){return function(l,I){DnQ(l,function(){var b=this[I],v=_.C("web_fi_listen_disable_bound_fn_helper")?function(M){b(M,M.detail)}.bind(this):m2(this,b);
GBk.has(z)?oK(this.hostElement,z,v):this.hostElement.addEventListener(z,v)})}};
_.By=function(){return xn$(V1x).apply(null,_.ht(_.AT.apply(0,arguments)))};
_.X=function(z){z=z===void 0?{}:z;return xn$(UiY)(z)};
_.X6=function(z){if(z.hostElement&&z!==z.hostElement){var l=_.YO(z.hostElement);l=z.renderIdom?l:l.shadowRoot}l||(z=z.root,l=z instanceof Node?_.YO(z):null);return l};
_.qX=function(z){return NKH?EHt(z):function(l,I){Object.defineProperty(l,I,{get:function(){var b;return(b=_.X6(this))==null?void 0:b.querySelector(z)},
enumerable:!0,configurable:!0})}};
EHt=function(z){return function(l,I){Object.defineProperty(l,I,{get:function(){var b,v=(b=_.Hy(this.hostElement))==null?void 0:b.querySelector(z);if(v)return v;var M;return(M=_.X6(this))==null?void 0:M.querySelector(z)},
enumerable:!0,configurable:!0})}};
_.i5=function(z){return NKH?ufQ(z):function(l,I){Object.defineProperty(l,I,{get:function(){var b;return(b=_.X6(this))==null?void 0:b.querySelectorAll(z)},
enumerable:!0,configurable:!0})}};
ufQ=function(z){return function(l,I){Object.defineProperty(l,I,{get:function(){var b,v=(b=_.Hy(this.hostElement))==null?void 0:b.querySelectorAll(z);if(v==null?0:v.length)return v;var M;return(M=_.X6(this))==null?void 0:M.querySelectorAll(z)},
enumerable:!0,configurable:!0})}};
Z6$=function(z){return function(l){if(![_.Mr,_.q].includes(Object.getPrototypeOf(l.prototype).constructor))throw Error("lg");sqx(Object.assign({},typeof z!=="string"?z:{is:z,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(l)}};
_.Q5=function(){var z=z===void 0?{}:z;return function(l){if(![pQ,_.F6].includes(Object.getPrototypeOf(l.prototype).constructor))throw Error("mg");r5H(Object.assign({},z,{disableInheritanceCheck:!0}))(l)}};
yUk=function(z,l){H6u[z]!=null||(H6u[z]=new Set);H6u[z].add(l)};
_.YE=function(){var z=_.By.apply(null,_.ht(_.AT.apply(0,arguments)));return function(l,I){yUk(l.is,I);z(l,I)}};
Sg=function(z,l,I){if(T9(z)&&!fu5.has(l)){l=l.replace(/^JSC\$[\d]+_/,"");l=l.replace(/\.\d+(\.|$)/g,function(M,x){return".#"+x});
cy[z]!=null||(cy[z]={});var b,v;(b=cy[z])[v=l]!=null||(b[v]=new Set);cy[z][l].has(I)||(cy[z][l].add(I),_.cW("polymerPropertyAccessEvent",{componentName:z,propertyName:l,accessType:I}))}};
CvH=function(){return _.C("polymer_property_access_logging_debug")||_.C("polymer_enable_property_access_logging")};
T9=function(z){if(_.C("polymer_property_access_logging_debug"))return!0;if(!_.C("polymer_enable_property_access_logging"))return!1;kBt||(kBt=Date.now());return(LQ(z)+kBt)%100<_.OI("polymer_property_access_logging_percent")};
Rpx=function(z,l){return T9(l)&&z.hostElement.loggingStatus?new Proxy(z,{get:function(I,b,v){if(I.hostElement.loggingStatus.bypassProxyController)return I[b];I.hostElement.loggingStatus.isExternalGet=!0;var M=I[b];I.hostElement.loggingStatus.isExternalGet=!1;if(M instanceof Function)return function(){var x=_.AT.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=b,Sg(l,b,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),M.apply(this===v?I:this,x)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
Sg(l,b,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return M},
set:function(I,b,v){if(I.hostElement.loggingStatus.bypassProxyController)return I[b]=v,!0;I.hostElement.loggingStatus.isRendererStamper?Sg(l,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||Sg(l,b,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=b,I[b]=v}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):z};
mnt=function(z,l){z&&z.loggingStatus&&!z.loggingStatus.isDeclarativeExternal&&!z.loggingStatus.isExternalGet&&z.loggingStatus.currentExternalSet!==l&&Sg(z.tagName.toLowerCase(),l,"PROPERTY_ACCESS_GET_INTERNAL")};
dc=function(z,l,I){z&&(I||z.loggingStatus&&!z.loggingStatus.isInitializing&&!z.loggingStatus.isDefiningPropertyAccessor&&z.loggingStatus.currentExternalSet!==l)&&Sg(z.tagName.toLowerCase(),l,"PROPERTY_ACCESS_SET_INTERNAL")};
KL7=function(){return{_definePropertyAccessor:function(z,l){var I=this,b=I.hostElement.loggingStatus;b&&(b.isDefiningPropertyAccessor=!0);var v=I[z];v!==void 0&&(I.__data?I._setPendingProperty(z,v):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[z]=v));b&&(b.isDefiningPropertyAccessor=!1);Object.defineProperty(this,z,{get:function(){mnt(I.hostElement,z);return this.__data[z]},
set:function(M){l||this._setPendingProperty(z,M,!0)&&this._invalidateProperties()}})},
created:function(){var z=this._setPendingProperty.bind(this);this._setPendingProperty=function(l,I,b){dc(this.hostElement,l);return z.apply(this,[l,I,b])}}}};
tpk=function(z){CvH()&&_.t(o8.prototype)(z.prototype,"__templateBindingLoggingBehavior")};
BK1=function(z,l){if(l.resolvedFactories.length!==z.resolvedFactories.length)return!0;l=_.D(l.resolvedFactories.entries());for(var I=l.next();!I.done;I=l.next()){var b=_.D(I.value);I=b.next().value;b=b.next().value;if(b.providerClass){if(b.providerClass!==z.resolvedFactories[I].providerClass)return!0}else if(b.providerValue){if(b.providerValue!==z.resolvedFactories[I].providerValue)return!0}else if(b.factory!==z.resolvedFactories[I].factory)return!0}return!1};
X6Q=function(z,l){z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,I.constructor===Array)X6Q(I,l);else{var b=l;b.has(I)||(I.inject&&b.add(I),I.behaviors&&X6Q(I.behaviors,b))}};
Py=function(z,l){var I=z[l];z[l]=function(){var b=_.AT.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,b)}};
Q6Q=function(){_.hP.Class=function(I,b){I=q0k(I,b);Py(I.prototype,"created");return I};
Py(sx.prototype,"_initializeProperties");Py(_.rc.prototype,"_initializeProperties");if(i6t)Py(FLx,"created");else{var z=function(){Py(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))z();else{var l=customElements.define;customElements.define=function(I,b,v){l.call(customElements,I,b,v);I==="tp-yt-iron-list"&&(z(),customElements.define=l)}}}};
TKY=function(z,l){z.prototype.behaviors=z.prototype.behaviors||[];z.prototype.behaviors.unshift(Y0x.InjectBehavior);z.prototype.provide=l};
_.Wy=function(z){return function(l){if(!z.disableElementRegistration){z.noInjection||TKY(l,z.providers);var I=l.prototype;I.__templateHelpers||LTk(wc.prototype)(I,"__templateHelpers");I=z.is;cUk||(cUk=Date.now());(LQ(I)+cUk)%100<_.OI("polymer_log_prop_change_observer_percent")&&LTk(AP.prototype)(l.prototype,"__propertyObserverObserver");l.prototype.behaviors=l.prototype.behaviors||[];l.prototype.behaviors.unshift(_.S0Y.YtHostElementBehavior);tpk(l);Z6$({is:z.is,notifyObserversOnUndefined:z.notifyObserversOnUndefined!==
!1,fastInit:z.fastInit,template:z.template,disableEnforceFastDefaultValuesCheck:!0})(l)}}};
_.S=function(z){return _.Wy({is:z.is,template:z.template,disableElementRegistration:z.disableElementRegistration,cssBuildOptOut:z.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
PvQ=function(z,l){if(dnQ){z=new z;for(var I=_.D(Object.getOwnPropertyNames(z)),b=I.next();!b.done;b=I.next())b=b.value,l[b]=z[b];for(I=l;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){b=_.D(Object.getOwnPropertyNames(I));for(var v=b.next();!v.done;v=b.next())v=v.value,z.hasOwnProperty(v)||Object.defineProperty(z,v,oH7(l,v))}}else z.apply(l)};
oH7=function(z,l){return{get:function(){var I=z[l];return I instanceof Function?I.bind(z):I},
set:function(I){z[l]=I}}};
s65=function(z,l){for(var I=z._noAccessors,b=_.D(Object.getOwnPropertyNames(z)),v=b.next();!v.done;v=b.next())if(v=v.value,!hpQ.has(v))if(I)l[v]=z[v];else{var M=Object.getOwnPropertyDescriptor(z,v);M&&(M.configurable=!0,Object.defineProperty(l,v,M))}};
rUH=function(z,l,I){return function(b){if(I){var v=I();b.model=v}if(z[l])z[l](b,b.detail)}};
nJ=function(z){var l=[];if(typeof z==="string")z.length>0&&l.push.apply(l,_.ht(z.split(".")));else{z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,typeof I==="string"?l.push.apply(l,_.ht(I.split("."))):l.push(I)}return l};
$nk=function(z,l){if(l[l.length-1]!=="*"&&l[l.length-1]!=="splices"){for(var I=0;I<l.length;I++){if(!z)return;z=z[l[I]]}return z}};
ep7=function(z,l){if(z.length>l.length)return!1;for(var I=0;I<z.length;I++)if(z[I]!==l[I])return!1;return!0};
AU5=function(z,l,I){if(l.type==="compute"){var b=l.getter.bind(I);var v=l.args}else b=function(){return I[l.method.methodName].apply(I,_.ht(_.AT.apply(0,arguments)))},v=l.method.args;
w6u(z,l.propertyKey,b,v,l.value)};
nHH=function(z,l){if(l.readOnly){var I=Object.getOwnPropertyDescriptor(z.model,l.propertyKey);Object.defineProperty(z.model,l.propertyKey,{get:I.get,set:function(){}});
z.model[WLf(l.propertyKey)]=I.set}};
LL5=function(z,l,I){if(I){var b=l.propertyKey,v=l.selector;l=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ht(l.selectorArgs.map(function(M){return{type:"path",path:M}})));
w6u(z,b,function(M){var x=_.AT.apply(1,arguments);return v.apply(null,[I.getState()].concat(_.ht(x)))},l)}};
aux=function(z,l,I){var b=_.KQ(l.propertyKey)+"-changed";Unt(z,function(v){var M={value:v.value,queueProperty:!0};v.path.split(".").length>1&&(M.path=v.path);I.dispatchEvent(new CustomEvent(b,{detail:M}))},[{type:"wildcard",
path:l.propertyKey}])};
Vp1=function(z,l,I){Unt(z,function(){I[l.method.methodName].apply(I,_.ht(_.AT.apply(0,arguments)))},l.method.args)};
WLf=function(z){return"_set"+(z.charAt(0).toUpperCase()+z.slice(1))};
j6H=function(){var z,l=S3(function(I){z=I},!1);
return[z,l]};
bzu=function(z){z=z.trim().replace(JUQ,",").replace(zaG,"$1");var l=z[0];l==="-"&&(l=z[1]);if(l>="0"&&l<="9")return{type:"literal",value:Number(z)};if(l==="'"||l==='"')return{type:"literal",value:z.slice(1,-1)};if(l=z.match(lHt)){l=l[1];var I=IHG[l];if(I)return{type:I,path:z.slice(0,-(l.length+1))}}return{type:"path",path:z}};
DOp=function(z){var l=z.match(vyQ);if(l)return z={methodName:l[1],args:Ms1},l[2].trim()&&(l=l[2].replace(pex,"&comma;").split(","),z.args=l.map(bzu)),z};
xOG=function(z,l,I,b){b=b===void 0?!1:b;l=_.KQ(l);var v=te;v&&(I=v(I,l,"attribute",z));LJ(z,I,l,b)};
LJ=function(z,l,I,b){l=OzG(l,b===void 0?!1:b);l===void 0?z.removeAttribute(I):z.setAttribute(I,l)};
OzG=function(z,l){switch(typeof z){case "object":case "function":if(z instanceof Date)return z.toString();if(z){if((l===void 0?0:l)&&!_.C("polymer_reflect_objects_as_boolean_killswitch"))return z?"":void 0;l=window.trustedTypes?window.trustedTypes.isHTML(z)||window.trustedTypes.isScript(z)||window.trustedTypes.isScriptURL(z):void 0;if(l)return z;try{return JSON.stringify(z)}catch(I){_.PW(Error("Ig`"+z))}}break;case "boolean":return z?"":void 0;default:return z!==null&&z!==void 0?z.toString():void 0}};
gyS=function(z){if(z===void 0)throw Error("Jg");return z};
Zzp=function(z,l,I,b){var v=GXx(b);if(v.length){b=I;var M="property";Nq1.test(I)?M="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),M="attribute");var x=Ey5(v);x&&M==="attribute"&&(I==="class"&&z.hasAttribute("class")&&(x+=" "+z.getAttribute(I)),LJ(z,x,I));M==="attribute"&&b==="disable-upgrade$"&&z.setAttribute("disable-upgrade","");z.localName==="input"&&b==="value"&&z.setAttribute("value","");z.removeAttribute(b);M==="property"&&(I=_.t8(I));l=gyS(l);uwQ(l,M,I,v);return!0}return I.slice(0,3)===
"on-"?(z.removeAttribute(I),(M=l).events!=null||(M.events=[]),l.events.push({name:I.slice(3),value:b}),!0):I==="id"?(l.id=b,!0):!1};
GXx=function(z){for(var l=[],I=0,b;(b=HzG.exec(z))!==null;){b.index>I&&l.push({type:"literal",value:z.slice(I,b.index)});var v=b[1][0];I=!!b[2];b=b[3].trim();if(v==="{")throw Error("Kg");(v=DOp(b))?l.push({type:"method",negate:I,signature:v}):l.push({type:"path",negate:I,path:b});I=HzG.lastIndex}I&&I<z.length&&(z=z.substring(I))&&l.push({type:"literal",value:z});return l};
Ey5=function(z){for(var l="",I=0;I<z.length;I++){var b=z[I];b.type==="literal"&&(l+=b.value)}return l};
uwQ=function(z,l,I,b){z.bindings!=null||(z.bindings=[]);z.bindings.push({kind:l,target:I,parts:b})};
RaQ=function(z,l,I){var b=!1;if(z.localName==="template"){b=I;var v=l.stripWhitespace;v=yqS(z,v===void 0?!1:v);var M=z.content.ownerDocument.createDocumentFragment();v.content=M;M.appendChild(z.content);b&&(b.templateInfo=v);b=!0}else z.localName==="slot"&&(l.hasInsertionPoint=!0);if(z.firstChild&&(v=I,z.localName!=="script"&&z.localName!=="style")){M=0;for(var x=z.firstChild;x;){var g=x;if(g.localName==="template"){var G=g.getAttribute("is");if((x=G==="dom-if")||G==="dom-repeat"){g.removeAttribute("is");
G=g.ownerDocument.createElement("ps-"+G);g.parentNode.replaceChild(G,g);G.appendChild(g);var u=Array.from(g.attributes);u=_.D(u);for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,x?fHk.has(Z.name)&&LJ(G,Z.value,Z.name):Cz7.has(Z.name)?LJ(G,Z.value,Z.name):kX7.has(Z.name),g.removeAttribute(Z.name);x=G}else x=g}if(x.nodeType===Node.TEXT_NODE){g=void 0;G=z;for(u=x;((g=u.nextSibling)==null?void 0:g.nodeType)===Node.TEXT_NODE;)Z=void 0,(Z=u).textContent!=null||(Z.textContent=""),u.nextSibling.textContent&&
(u.textContent+=u.nextSibling.textContent),G.removeChild(u.nextSibling);if(l.stripWhitespace&&x.textContent&&!x.textContent.trim()){z.removeChild(x);x=x.nextSibling;continue}}RaQ(x,l,{parentIndex:M,parentInfo:v});x.parentNode&&M++;x=x.nextSibling}}var H;if((H=z.hasAttributes)==null?0:H.call(z)){H=I=gyS(I);v=!1;M=Array.from(z.attributes);M=_.D(M);for(g=M.next();!g.done;g=M.next())g=g.value,v=Zzp(z,H,g.name,g.value)||v;b=v||b}z.nodeType===Node.TEXT_NODE&&(H=GXx(z.textContent),H.length&&(z.textContent=
Ey5(H)||" ",I=gyS(I),uwQ(I,"text","textContent",H),b=!0));I&&b&&(I.infoIndex=l.nodeInfoList.push(I)-1)};
yqS=function(z,l){l={nodeInfoList:[],stripWhitespace:(l===void 0?!1:l)||z.hasAttribute("strip-whitespace")};RaQ(z.content,l);return l};
mOu=function(z){Object.assign(z,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
tsQ=function(z,l,I){l.signalCache!=null||(l.signalCache={});var b=l.signalCache[I];if(!b){var v=I.split(".");b=!Ku$(z,v[0]);if(v.length>1&&b){var M=z.getPathMutationSignal(v);b=function(){var x=Pb(z.owner,function(){return z.getWithPath([v[0]])}),g,G=(g=M())==null?void 0:g.value;
return{rootWasDefined:x!==void 0,value:G}}}else b=function(){var x=z.getWithPath(v);
return{rootWasDefined:x!==void 0,value:x}};
l.signalCache[I]=b}return b()};
Xe$=function(z,l,I,b,v){l=l.parts.map(function(x,g){if(x.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var G;(G=I.partWasDefined)[g]||(G[g]=x.value!==void 0);return x.value}var u;if(x.type==="method"){var Z,H=(Z=(u=I.partWasDefined)==null?void 0:u[g])!=null?Z:!1;H||(H=x.signature.args.every(function(R){return R.type==="literal"}));
var y=!1,f=!0;u=x.signature.args.map(function(R){if(R.type==="literal")return R.value;if(R.type!=="path")throw Error("Lg`"+R.type);var F=tsQ(z,I,R.path);R=F.value;F=F.rootWasDefined;y||(y=F);f&&(f=F);return R});
H||(H=v===1?f:y);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[g]=H;if(!H)return;u=(g=tsQ(z,I,x.signature.methodName).value)&&typeof g==="function"?g.apply(b,u):void 0}else Z=tsQ(z,I,x.path),u=Z.value,I.partWasDefined!=null||(I.partWasDefined={}),(H=I.partWasDefined)[g]||(H[g]=u!==void 0||Z.rootWasDefined);x.negate&&(u=!u);return u});
if(l.length===1){var M;return((M=I.partWasDefined)==null?0:M[0])?l[0]:Bqf}return l.join("")};
q$5=function(z){return typeof z==="object"&&!!z&&"notifyPath"in z&&"canNotifyPath"in z};
izQ=function(z){return typeof z==="object"&&!!z&&"notifyPath"in z};
FuQ=function(z){return"polymerController"in z};
QaH=function(z,l){l=""+nJ(l)[0];if(q$5(z))return z.canNotifyPath(l);if(FuQ(z)&&q$5(z.polymerController))return z.polymerController.canNotifyPath(l);if(izQ(z)){var I;return!((I=z.properties)==null||!I[l])}if(FuQ(z)&&izQ(z.polymerController)){var b;return!((b=z.polymerController.properties)==null||!b[l])}return!1};
Y$1=function(z,l,I){q$5(z)||izQ(z)?z.notifyPath(l,I):FuQ(z)&&(q$5(z.polymerController)||izQ(z.polymerController))&&z.polymerController.notifyPath(l,I)};
cqH=function(z,l,I){if(I!==Bqf){z.kind==="attribute"||z.target!=="textContent"&&(z.target!=="value"||l.localName!=="input"&&l.localName!=="textarea")||(I=I===void 0?"":I);var b,v=(b=Tq7.Polymer)==null?void 0:b.sanitizeDOMValue;v&&(I=v(I,z.target,z.kind,l));if(z.kind==="attribute"){z=z.target;if(z==="class"||z==="name"||z==="slot")l=(0,_.kE)(l);LJ(l,I,z)}else if(z=z.target,I!==l[z]||typeof I==="object")l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!0,Sg(l.localName,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
l[z]=I,l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!1)}};
S$t=function(z,l,I,b){var v=l.parts[0];if(l.parts.length!==1||v.type!=="path"||!QaH(I,l.target))return!1;var M=_.D(v.path.split(".")),x=M.next().value,g=ze(M);if(Ku$(z,x))return!1;b.signalCache!=null||(b.signalCache={});M=b.signalCache[v.path];var G;M=(G=M)==null?void 0:G().value;if((M==null?void 0:M.path)!==void 0){b=nJ(M.path);var u=nJ(v.path);b=[l.target].concat(_.ht(b.slice(u.length-1)));Y$1(I,b,v.negate?!M.value:M.value);return!0}var Z=Ux(z,x);var H=Z.getChangeRecordSignal(g),y=!1;M=function(){if(!y){var R=
Pb(z.owner,function(){return Z.getWithPath([])});
y||(y=R!==void 0)}return{value:H(),rootWasDefined:y}};
b.signalCache[v.path]=M;b.partWasDefined!=null||(b.partWasDefined={});M=M();(u=b.partWasDefined)[0]||(u[0]=M.rootWasDefined);var f=Pb(z.owner,function(){return Z.getWithPath(g)});
b.partWasDefined[0]&&Pb(z.owner,function(){return void cqH(l,I,v.negate?!f:f)});
return!0};
dO$=function(z,l,I,b,v,M){if(!S$t(z,l,I,b)){var x=Xe$(z,l,b,v,M);Pb(z.owner,function(){return void cqH(l,I,x)})}};
oyt=function(z,l,I,b,v,M){I=_.D(I);for(var x=I.next(),g={};!x.done;g={infoIndex:void 0},x=I.next()){x=x.value;var G=x.bindings;g.infoIndex=x.infoIndex;x=x.parentInfo;if(G){G=_.D(G);for(var u=G.next(),Z={};!u.done;Z={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},u=G.next()){Z.b$jscomp$253=u.value;if(g.infoIndex===void 0)throw Error("Mg");Z.bindingCtx$jscomp$4={};z.effect(function(H,y){return function(){v&&!v()||dO$(z,H.b$jscomp$253,l[y.infoIndex],H.bindingCtx$jscomp$4,b,M)}}(Z,g))}}x&&oyt(z,l,[x],
b,v,M)}};
PzQ=function(z,l){z=(l.parentInfo?PzQ(z,l.parentInfo):z).firstChild;for(var I=0;z;z=z.nextSibling)if(l.parentIndex===I++)return z;throw Error("Ng");};
saG=function(z,l,I,b){z=document.importNode(z.content,!0);z.__noInsertionPoint=!(b==null?0:b.hasInsertionPoint);for(var v=Array(l.length),M={},x=0;x<l.length;x++){var g=l[x],G=PzQ(z,g);v[x]=G;g.id&&(M[g.id]=G);if(g.templateInfo){var u=G.parentElement;u&&(u.templateInfo=g.templateInfo,u.parentSignalProxy=I,u.eventListenerHost=b.eventListenerHost,u.stampingEnabled=b.enabledSignal)}u=void 0;if((u=g.events)==null?0:u.length)for(u=0;u<g.events.length;u++){var Z=g.events[u];haY(b.eventListenerHost,G,Z.name,
Z.value,b.getModel)}}oyt(I,v,l,b.thisCtx,b.enabledSignal,b.methodInvocationRequirement);return{root:z,nodes:v,nodesById:M}};
$O7=function(z,l){z=z();var I;(I=rq7.ShadyCSS)==null||I.prepareTemplate(z,l);l=yqS(z);return{template:z,nodeInfoList:l.nodeInfoList,hasInsertionPoint:l.hasInsertionPoint}};
AqS=function(){eax=!1;for(var z=a8.length,l=0;l<z;l++){var I=a8[l];if(I)try{I()}catch(b){Promise.resolve().then(function(){throw b;})}}a8.splice(0,z);
wex+=z};
UOG=function(z){eax||(eax=!0,Wu7.textContent=(nyY++).toString());a8.push(z);return LuS++};
_.JP=function(z,l,I){V5++;z=l?new aHx(V5,z,l,I):new Vs1(V5,z);jg.set(V5,z);return V5};
jaS=function(z){(z=jg.get(z))&&z.cancel()};
zR5=function(z,l){z=Jq7.get(z);return z?(l=z.get(l))?l:null:null};
_.z4=function(z,l,I,b){var v=zR5(z,l);if(!v){v=new l7f;var M=Jq7.get(z);M||(M=new Map,Jq7.set(z,M));M.set(l,v)}z=I.bind(z);v.run(z,b,void 0)};
_.I75=function(z,l){var I;(I=zR5(z,l))==null||I.cancel()};
bgp=function(z){var l;(l=zR5(z,"doRender"))==null||l.flush()};
lY=function(z){var l;return(l=z.hostElement)!=null?l:z};
vV5=function(z){var l=z.indexOf(".");return l===-1?z:z.slice(0,l)};
MzG=function(z,l,I,b,v,M){M=(v=(b=M?vV5(l):l)?l:null)?z.get(v):z.__data[l];v&&M===void 0&&(M=I[l]);_.gC(z.hostElement,qlt(b)+"-changed",{value:M,queueProperty:!0,path:v!=null?v:void 0},{bubbles:!1,composed:!1})};
p9H=function(z,l){z.__isReflecting=!0;xOG(z.hostElement,l,z.__data[l]);z.__isReflecting=!1};
D_Y=function(z){if(z._onIronRequestResizeNotifications){var l=z._onIronRequestResizeNotifications.bind(z);z._onIronRequestResizeNotifications=function(I){_.pJ(I)!==z.hostElement&&l(I)}}z._ariaActiveAttributeChanged&&(z._ariaActiveAttributeChanged=z._ariaActiveAttributeChanged.bind(z.hostElement));
z._activeChanged&&(z._activeChanged=function(I){z.toggles?LJ(z.hostElement,I?"true":"false",z.ariaActiveAttribute):z.hostElement.removeAttribute(z.ariaActiveAttribute);z._changedButtonState()});
z._asyncClick&&(z._asyncClick=function(){_.JP(function(){z.hostElement.click()},1)});
!z.keyEventTarget||z.keyEventTarget instanceof EventTarget||(z.keyEventTarget=lY(z.keyEventTarget));z._disabledChanged&&(z._disabledChanged=z._disabledChanged.bind(z.hostElement));z._observeItems&&(z._observeItems=function(I){var b=lY(I);return _.YO(b).observeNodes(function(v){z._updateItems();z._updateSelected();_.gC(b,"iron-items-changed",v,{bubbles:!1,cancelable:!1})})});
z._updateItems&&z._updateItems===_.Ie._updateItems&&(z._updateItems=function(){var I=_.YO(z.hostElement).queryDistributedElements(z.selectable||"*");I=Array.prototype.filter.call(I,z._bindFilterItem);z._setItems(I)});
z._computeKeyboardClass&&(z._computeKeyboardClass=function(I){_.fJ(z.hostElement,"keyboard-focus",I)});
z.ensureRipple&&(z.ensureRipple=function(I){if(z.hasRipple&&!z.hasRipple()){if(!z._createRipple)return;z._ripple=z._createRipple();z._ripple.noink=z.noink;var b=z._rippleContainer||z.hostElement;b&&_.Hy(b).appendChild(z._ripple)}var v;if(I&&((v=z._ripple)==null?0:v.uiDownAction)){b=_.Hy(z._rippleContainer||z.hostElement);var M;v=(M=I.composedPath())==null?void 0:M[0];b.contains(v)&&z._ripple.uiDownAction(I)}});
z._updateMultiselectable&&(z._updateMultiselectable=function(I){I?z.hostElement.setAttribute("aria-multiselectable","true"):z.hostElement.removeAttribute("aria-multiselectable")})};
x_1=function(z,l,I){I=_.D(I);for(var b=I.next();!b.done;b=I.next())PvQ(b.value.constructor,z);PvQ(l.constructor,z)};
gVt=function(z,l){z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,I.type==="signal"){var b=I.propertyKey;if(l.hasOwnProperty(b)&&l[b]!=null&&I.attributeType===Object){a:{b=l[b].constructor;for(var v=_.D(Og5),M=v.next();!M.done;M=v.next())if(M=M.value,b===M){b=M;break a}b=Object}I.attributeType=b}}};
G5t=function(){};
NNY=function(z){var l;return(l=z.hostElement)!=null?l:z};
EVk=function(){throw Error("Rg");};
uvQ=function(z,l){z.constructor.prototype.useSignals=!0;var I=new z.constructor;x_1(I,z,l.behaviors);gVt(l.reactiveSchemas,I);I={};for(var b=_.D(l.reactiveSchemas),v=b.next();!v.done;v=b.next())v=v.value,v.type==="signal"&&(I[v.propertyKey]=v.attributeType);var M={copyPropertiesToProto:EVk,didRegister:!1,typesForSignals:I},x=["disable-upgrade"].concat(_.ht(l.observedAttributes)),g=function(G){bY.call(this,z,l,M,G)};
_.m(g,bY);_.vP.Object.defineProperties(g,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return x}}});
M.copyPropertiesToProto=function(){for(var G=0;G<l.behaviors.length;G++)s65(l.behaviors[G],g.prototype);s65(z,g.prototype)};
l.legacyOptimizations||M.copyPropertiesToProto();g.prototype.is=z.is;return g};
ZgQ=function(z,l){if(Object.getPrototypeOf(l.prototype).constructor!==_.q)throw Error("Sg");l.prototype.is=z.is;return uvQ(l.prototype,z)};
Hg7=function(z){return z.type==="compute"||z.type==="computeWithMethod"};
ywQ=function(z){for(var l=z.reactiveSchemas.filter(Hg7),I=new Map,b=new Map,v=new Map,M=_.D(l),x=M.next();!x.done;x=M.next())x=x.value,I.set(x.propertyKey,x),b.set(x.propertyKey,[]),v.set(x.propertyKey,0);M=0;l=_.D(l);for(x=l.next();!x.done;x=l.next()){x=x.value;for(var g=_.D(x.type==="computeWithMethod"?x.method.args:x.args),G=g.next();!G.done;G=g.next())G=G.value,G.type!=="literal"&&(G=G.path.split(".")[0],b.has(G)&&(b.get(G).push(x.propertyKey),v.set(x.propertyKey,v.get(x.propertyKey)+1),M++))}x=
[].concat(_.ht(b.keys())).filter(function(u){return v.get(u)===0});
for(l=[];x.length;)for(g=x.shift(),l.push(I.get(g)),g=_.D(b.get(g)),G=g.next();!G.done;G=g.next())G=G.value,v.set(G,v.get(G)-1),M--,v.get(G)===0&&x.push(G);I=z.reactiveSchemas.filter(function(u){return!Hg7(u)});
z.reactiveSchemas=[].concat(_.ht(I),_.ht(l))};
f7H=function(z,l){if(l.properties)for(var I=_.D(Object.entries(l.properties)),b=I.next();!b.done;b=I.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;z.properties[b]=typeof v==="function"?{type:v}:v}l.observers&&z.observers.push.apply(z.observers,_.ht(l.observers));l.disabledPolySiReactions&&z.disabledPolySiReactions.push.apply(z.disabledPolySiReactions,_.ht(l.disabledPolySiReactions))};
Cd$=function(z,l){for(var I=l.length-1;I>=0;I--){var b=l[I];Array.isArray(b)?Cd$(z,b):z.indexOf(b)<0&&z.unshift(b)}};
k57=function(z,l){z.reactiveSchemas=z.reactiveSchemas.filter(function(I){return I.type==="observe"&&l.includes(I.method.methodName)||Hg7(I)&&l.includes(I.propertyKey)?!1:!0})};
m_G=function(z,l){var I=l.prototype,b,v,M={is:z.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Y0x.InjectBehavior,wc.prototype],disableElementRegistration:z.disableElementRegistration,provide:(b=z.providers)!=null?b:[],reactivityMode:z.reactivityMode,signalProperties:(v=I.signalProperties)!=null?v:[]};"template"in l?M.templateGetter=function(){return l.template}:z.getTemplate&&(M.templateGetter=z.getTemplate);
I.behaviors&&Cd$(M.behaviors,I.behaviors);RRf(M,l);return M};
RRf=function(z,l){for(var I=l.prototype,b={properties:{},observers:[],disabledPolySiReactions:[]},v=_.D(z.behaviors),M=v.next();!M.done;M=v.next())f7H(b,M.value);f7H(b,I);if(z.signalProperties)for(I=_.D(z.signalProperties),v=I.next();!v.done;v=I.next())delete b.properties[v.value];I=_.D(Object.entries(b.properties));for(v=I.next();!v.done;v=I.next()){M=_.D(v.value);v=M.next().value;M=M.next().value;var x=void 0;if((x=z.signalProperties)==null||!x.includes(v)){x=void 0;var g=z,G=M.type;if(!G)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{G=Reflect.getMetadata("design:type",l,v);for(var u=_.D(Kd5),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,G===Z){G=Z;break a}G=Object}else G=String;M.computed||M.selector||(g.reactiveSchemas.push({type:"signal",propertyKey:v,value:M.value,attributeType:G,readOnly:M.readOnly}),g.observedAttributes.push(_.KQ(v)));M.reflectToAttribute&&g.reactiveSchemas.push({type:"reflect",propertyKey:v});if(M.computed){G=DOp(M.computed);if(!G)throw Error("Tg");g.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:v,method:G,value:M.value})}M.observer&&g.reactiveSchemas.push({type:"observe",method:{methodName:M.observer,args:[{type:"path",path:v}]}});M.notify&&g.reactiveSchemas.push({type:"notify",propertyKey:v});M.selector&&g.reactiveSchemas.push({type:"redux",propertyKey:v,selector:M.selector,selectorArgs:(x=M.selectorArgs)!=null?x:[]})}}tzu&&ywQ(z);l=_.D(b.observers);for(v=l.next();!v.done;v=l.next())I=z,v=v.value,(M=DOp(v))?I.reactiveSchemas.push({type:"observe",method:M}):console.log('Warning: unable to parse observe declaration: "'+
v+'"');k57(z,b.disabledPolySiReactions)};
BNk=function(z,l){for(var I=0;I<l.length;I++){var b=l[I],v=void 0;(v=b).showHideApi!=null||(v.showHideApi={});v=void 0;!!z!==!((v=b.showHideApi)==null||!v.hideTemplateChildren)&&(b.nodeType===Node.TEXT_NODE?z?(b.showHideApi.polymerTextContent=b.textContent,b.textContent=""):(v=void 0,b.textContent=(v=b.showHideApi.polymerTextContent)!=null?v:null):b instanceof Element&&b.localName==="slot"?z?(b.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.kE)((0,_.kE)(b).parentNode).replaceChild(b.showHideApi.polymerReplaced,
b)):(v=b.showHideApi.polymerReplaced)&&(0,_.kE)((0,_.kE)(v).parentNode).replaceChild(b,v):b instanceof HTMLElement&&b.style&&(z?(b.showHideApi.polymerDisplay=b.style.display,b.style.display="none"):b.style.display=b.showHideApi.polymerDisplay));b.showHideApi.hideTemplateChildren=z;b.showHideChildren&&b.showHideChildren(z)}};
qHS=function(){if(!X9x){var z=document.createElement("style");z.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(z);X9x=!0}};
vh=function(){return _.C("disable_hidden_dom_if_using_stamper")};
igu=function(z,l){var I=_.M8().getState();return l?z.apply(null,[I].concat(_.ht(l))):z(I)};
YHp=function(){if(Fd7)return Fd7;var z=_.D(_.Z_(0,void 0,"MB1Hb")),l=z.next().value;z.next();var I=z.next().value;_.M8().subscribe(function(){Q75(I)});
return Fd7=l};
Q75=function(z){TN1||(TN1=!0,Promise.resolve().then(function(){z(function(l){return l+1});
TN1=!1}))};
_.M8=function(){return cw7.getAppStore()};
SHp=function(z,l){return cw7.getSelectFn()(z,l)};
_.pE=function(z){cw7.getDispatchFn()(z)};
d_Q=function(z,l){var I={},b;for(b in z)I[b]=l(z[b],b);return I};
_.Df=function(z,l){return function(){var I;return(I=_.d2(z))!=null?I:l}};
_.xC=function(z,l){var I=Object.assign({},z),b;for(b in l)l.hasOwnProperty(b)&&(I[b]=_.Df(z[b],l[b]));return I};
oV5=function(z,l,I){z instanceof Element&&(I.debugName||(I.debugName="<"+z.tagName.toLowerCase()+(z.tagName.includes("-")?">":"."+z.className+">")),_.C("ytwiz_enable_debug_component_props")&&(z.debugProps||(z.debugProps=d_Q(l,function(b){return function(){return b()}}))))};
hR$=function(z){var l;return Pd7.value.traceAllComponents||((l=bi.stack[bi.stack.length-1])==null?void 0:l.name)!=="ytComponent"?bw1("ytComponent",{},z):z()};
_.P=function(z,l){var I=function(b){return hR$(function(v){var M=s7f={};var x;if(((x=I)==null?0:x.idomCompat)&&b.renderedFromIdom){var g;x=typeof I.idomCompat==="object"?(g=I)==null?void 0:g.idomCompat.callbacks:{};x=_.D(rw1(b,x,I.debugName));g=x.next().value;x.next();x=x.next().value;var G=$_Q(z,g);M.privateValue=G;s7f=void 0;oV5(G,g,I);M={debugName:I.debugName};v&&M&&Object.assign(v.attributes,M);v=bQp(G);v=Array.isArray(v)?v[0]:v;v[y7]||(v[y7]={});v[y7].updateSignalsFromIdomProps=x;eR7(g,G);return G}x=
d_Q(b,w9$);g=$_Q(z,x);M.privateValue=g;s7f=void 0;oV5(g,x,I);M={debugName:I.debugName};v&&M&&Object.assign(v.attributes,M);eR7(x,g);return g})};
I.debugName=l===void 0?"":l;return I};
$_Q=function(z,l){z=z(l);return mF(z)};
Awx=function(z,l){z[l]||(z=new _.qB("IDOM interop setter undefined. Key:",l),_.dE(z))};
w9$=function(z,l){return l==="children"||l==="ref"||typeof z==="function"||z===void 0?z:function(){return _.d2(z)}};
rw1=function(z,l,I){var b={},v={},M={},x={},g;for(g in z){x={key$jscomp$947:x.key$jscomp$947};x.key$jscomp$947=g;var G=z[x.key$jscomp$947];if(x.key$jscomp$947==="children"||x.key$jscomp$947==="ref")b[x.key$jscomp$947]=G;else if(typeof G==="function")x.key$jscomp$947 in l||G.length>0?(M[x.key$jscomp$947]=G,b[x.key$jscomp$947]=function(Z){return function(){return M[Z.key$jscomp$947].apply(M,_.ht(_.AT.apply(0,arguments)))}}(x)):b[x.key$jscomp$947]=G;
else if(!(z[x.key$jscomp$947]===void 0&&x.key$jscomp$947 in l)){var u=_.D(_.Z_(z[x.key$jscomp$947],{debugName:x.key$jscomp$947+":cwis:"+I},"rvrjQe"));G=u.next().value;u=u.next().value;b[x.key$jscomp$947]=G;v[x.key$jscomp$947]=u}}return[b,v,function(Z){var H={},y;for(y in Z)H={key$jscomp$948:H.key$jscomp$948,val$jscomp$123:void 0},H.key$jscomp$948=y,H.val$jscomp$123=Z[H.key$jscomp$948],H.key$jscomp$948!=="children"&&H.key$jscomp$948!=="ref"&&(typeof H.val$jscomp$123==="function"?H.key$jscomp$948 in
l?M[H.key$jscomp$948]=H.val$jscomp$123:H.val$jscomp$123.length>0&&(M[H.key$jscomp$948]=H.val$jscomp$123,_.PW(new _.qB("Callback detected that was not set in the idomCompat callbacks map. Key:",H.key$jscomp$948))):H.key$jscomp$948 in l&&H.val$jscomp$123===void 0||(Awx(v,H.key$jscomp$948),Rj(function(f){return function(){v[f.key$jscomp$948](f.val$jscomp$123)}}(H))))}]};
LdH=function(z,l,I){var b=dix(z.prototype,WdG,z.prototype.behaviors);b.prototype.is=l;b.prototype.localName=l;I&&nVf(b,I);return function(v){v&&(b.prototype.hostElement=v);var M=new b;M.root=M;M.hostElement=v;return M}};
nVf=function(z,l){var I;Object.defineProperty(z.prototype,"_template",{get:function(){I===void 0&&(I=l());return I},
set:function(b){I=b},
configurable:!0,enumerable:!0})};
Jwp=function(z,l,I,b){function v(){if(!f){for(var R=new Set,F=_.D(Z),Y=F.next();!Y.done;Y=F.next()){Y=Y.value;for(var c=_.D(Object.getOwnPropertyNames(Y)),d=c.next();!d.done;d=c.next()){d=d.value;var V=void 0,A=(V=Object.getOwnPropertyDescriptor(Y,d))==null?void 0:V.value;A&&A instanceof Function&&!Oi(d)&&(!g[d]||_.C("polymer_forward_method_killswitch"))&&R.add(d)}}F=_.D(Object.entries(Object.getOwnPropertyDescriptors(z.prototype)));for(Y=F.next();!Y.done;Y=F.next())c=_.D(Y.value),Y=c.next().value,
c=c.next().value,c.value instanceof Function&&!Oi(Y)&&R.add(Y);f=R}return f}
U_H(z,l,b==null?void 0:b.providers);oAu(z.prototype,z,!0);var M=LdH(z,l,I),x,g=(x=z.prototype.properties)!=null?x:{},G,u,Z=(u=(G=z.prototype.behaviors)==null?void 0:G.flat(Infinity))!=null?u:[];I=_.D(Z);for(x=I.next();!x.done;x=I.next())g=Object.assign({},x.value.properties,g);var H=[].concat(_.ht(a7u),_.ht(Object.keys(g).map(function(R){return _.KQ(R)}))),y=!1,f;
return{ctor:function(R,F){var Y=M(R),c,d;R=[].concat(_.ht((c=b==null?void 0:b.allowedProps)!=null?c:[]),_.ht((d=b==null?void 0:b.allowedPropsFromBehaviors)!=null?d:[]));Y.allowedProps=R.length>0?R:void 0;c={};d=_.D(H);for(R=d.next();!R.done;R=d.next())R=R.value,c[R]=_.t8(R);Y.__dataAttributes=c;var V=Y.ready.bind(Y);Y.ready=function(){F.beforeReady();V();if(T9(l)&&!y){var A=Y.__templateInfo;if(A==null?0:A.hostProps){A=_.D(Object.keys(A.hostProps));for(var W=A.next();!W.done;W=A.next())Sg(l,W.value,
"PROPERTY_ACCESS_GET_INTERNAL")}y=!0}};
Y._overrideLegacyUndefined=!0;return Y},
props:g,observedAttributes:H,getInitialMethods:v,getPropsToForwardBeforeRegister:function(){for(var R=[],F=new Set,Y=_.D(Object.keys(g)),c=Y.next();!c.done;c=Y.next())c=c.value,R.push([c,g[c].readOnly]),F.add(c);Y=v();c=_.D(Object.keys(Object.getOwnPropertyDescriptors(z.prototype)));for(var d=c.next();!d.done;d=c.next())d=d.value,!VzQ(d)||Y.has(d)||F.has(d)||(R.push([d,!1]),F.add(d));F=_.D(j7$);for(Y=F.next();!Y.done;Y=F.next())R.push([Y.value,!0]);return R},
getPropsToForwardBeforeReady:function(R){for(var F=[],Y=_.D(Object.entries(R)),c=Y.next();!c.done;c=Y.next()){var d=_.D(c.value);c=d.next().value;d=d.next().value;if(VzQ(c)&&!(d instanceof Function)&&(F.push([c,!1]),T9(l))){var V=d=void 0;(V=(d=R)._createPropertyAccessor)==null||V.call(d,c)}}return F},
shouldForwardProp:VzQ,shouldLog:T9}};
U_H=function(z,l,I){TKY(z,I);z.prototype.behaviors.unshift(zkx);if(CvH()){if(T9(l)){var b;(b=z.prototype).behaviors!=null||(b.behaviors=[]);z.prototype.behaviors.unshift(KL7())}tpk(z)}_.t(wc.prototype)(z.prototype,"__templateHelpers")};
Oi=function(z){return l8u.has(z)||z.startsWith("__compute__")};
VzQ=function(z){return!Oi(z)&&!z.startsWith("_")&&!z.endsWith("_")};
pAu=function(z,l){function I(){var y=G();y=_.D(y);for(var f=y.next();!f.done;f=y.next()){var R=_.D(f.value);f=R.next().value;R=R.next().value;I8$(H.prototype,f,R)}b=!0}
var b=!1,v=z.ctor,M=z.getInitialMethods,x=z.observedAttributes,g=z.getPropsToForwardBeforeReady,G=z.getPropsToForwardBeforeRegister,u=z.shouldForwardProp,Z=z.shouldLog,H=function(){var y=HTMLElement.call(this)||this;y.didForwardDynamicProps=!1;y.loggingStatus={};b||I();y.inst=v(y,{beforeReady:function(){y.didForwardDynamicProps||(y.forwardDynamicProps(),y.didForwardDynamicProps=!0)}});
y.controllerProxy=Rpx(y.inst,l);y.forwardMethods();return y};
_.m(H,HTMLElement);H.prototype.forwardMethods=function(){for(var y=this,f=_.D(this.inst.getExtraMethodsToForward()),R=f.next(),F={};!R.done;F={method$jscomp$63:void 0},R=f.next()){var Y=_.D(R.value);R=Y.next().value;Y=Y.next().value;F.method$jscomp$63=Y;this[R]=function(c){return function(){return c.method$jscomp$63.call.apply(c.method$jscomp$63,[y.inst].concat(_.ht(_.AT.apply(0,arguments))))}}(F)}f=_.D(M());
for(F=f.next();!F.done;F=f.next())F=F.value,u(F)&&bUx(this,F),Z(l)&&!Oi(F)&&vrQ(this.inst,F)};
H.prototype.forwardDynamicProps=function(){var y=g(this.inst);y=_.D(y);for(var f=y.next();!f.done;f=y.next()){var R=_.D(f.value);f=R.next().value;R=R.next().value;I8$(this,f,R);Z(l)&&!Oi(f)&&Mex(this.inst,f)}};
H.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
H.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
H.prototype.attributeChangedCallback=function(y,f,R){this.inst.attributeChangedCallbackWrapper(y,f,R)};
_.vP.Object.defineProperties(H.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return l}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.vP.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return x}}});
customElements.define(l,H)};
I8$=function(z,l,I){z.hasOwnProperty(l)||Object.defineProperty(z,l,{get:function(){var b,v=((b=z.is)!=null?b:z.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Sg(v,l,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,b=this.polymerController[l],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,b},
set:function(b){if(!I){var v,M=((v=z.is)!=null?v:z.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Sg(M,l,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=l,this.loggingStatus.bypassProxyController=!0,this.polymerController[l]!==b&&(v={},this.polymerController.setProperties((v[l]=b,v)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
bUx=function(z,l,I){var b=z.polymerController;z[l]=function(){var v=_.AT.apply(0,arguments);z.loggingStatus.currentExternalCall=l;z.loggingStatus.bypassProxyController=!0;var M,x=((M=z.is)!=null?M:z.tagName).toLowerCase();Sg(x,l,"PROPERTY_ACCESS_CALL_EXTERNAL");var g;M=(g=I!=null?I:b[l])==null?void 0:g.call.apply(g,[b].concat(_.ht(v)));z.loggingStatus.currentExternalCall=void 0;z.loggingStatus.bypassProxyController=!1;return M}};
vrQ=function(z,l){var I=z.hostElement,b=z[l];z[l]=function(){var v=_.AT.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==l){var M,x=((M=I.is)!=null?M:I.tagName).toLowerCase();Sg(x,l,"PROPERTY_ACCESS_CALL_INTERNAL")}return b==null?void 0:b.apply(z,v)}};
Mex=function(z,l){var I=Object.getOwnPropertyDescriptor(z,l);I&&!I.get&&Object.defineProperty(z,l,{get:function(){mnt(z.hostElement,l);return I.value},
set:function(b){dc(z.hostElement,l);I.value=b}})};
D9Y=function(z){return _.C("poly_si_dom_repeat_detached_fix_killswitch")||z.tagName!=="PS-DOM-REPEAT"?z.tagName==="DOM-REPEAT":!0};
OUt=function(z,l){var I=x9$(z);z instanceof Element&&I.unshift(z);z=_.D(I.filter(D9Y));for(var b=z.next();!b.done;b=z.next()){var v=void 0;b=_.D((v=b.value.__instances)!=null?v:[]);for(v=b.next();!v.done;v=b.next())if(v=v.value,v.root){v=Array.from(v.root.children);v=_.D(v);for(var M=v.next();!M.done;M=v.next())I.push.apply(I,_.ht(OUt(M.value,l)))}}return I.filter(function(x){return x.usePatchedLifecycles&&x.lifecycleIsConnected===l})};
x9$=function(z){var l=null;z instanceof Element?l=Element.prototype.querySelectorAll:z instanceof DocumentFragment&&(l=DocumentFragment.prototype.querySelectorAll);return l?Array.from(l.call(z,"*")):[]};
gZ=function(z){uE(function(){for(var l=_.D(OUt(z,!1)),I=l.next();!I.done;I=l.next()){I=I.value;I.lifecycleIsConnected=!0;try{var b=void 0,v=void 0,M=void 0,x=void 0;(b=(x=I.polymerController)!=null?x:I)==null||(M=(v=b).connectedCallback)==null||M.call(v)}catch(g){_.dE(g)}}})};
G4=function(z){uE(function(){for(var l=_.D(OUt(z,!0)),I=l.next();!I.done;I=l.next()){I=I.value;I.lifecycleIsConnected=!1;try{var b=void 0,v=void 0,M=void 0,x=void 0;(b=(x=I.polymerController)!=null?x:I)==null||(M=(v=b).disconnectedCallback)==null||M.call(v)}catch(g){_.dE(g)}}})};
HUG=function(){if(!gr1){gr1=!0;var z=[Node];N8&&z.push(N8.Wrapper);var l=Node.prototype.insertBefore,I=Node.prototype.removeChild;z=_.D(z);for(var b=z.next(),v={};!b.done;v={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},b=z.next())b=b.value,v.nativeInsertBefore=b.prototype.insertBefore,b.prototype.insertBefore=function(x){return function(g,G){if(g instanceof DocumentFragment){var u=Array.from(g.children);g=x.nativeInsertBefore.call(this,g,G);
if(this.isConnected&&x.nativeInsertBefore===l)for(G=_.D(u),u=G.next();!u.done;u=G.next())gZ(u.value);return g}u=g instanceof Element&&g.isConnected;G=x.nativeInsertBefore.call(this,g,G);u&&G4(g);this.isConnected&&gZ(g);return G}}(v),v.nativeAppendChild=b.prototype.appendChild,b.prototype.appendChild=function(x){return function(g){if(g instanceof DocumentFragment){var G=Array.from(g.children);
g=x.nativeAppendChild.call(this,g);if(this.isConnected){G=_.D(G);for(var u=G.next();!u.done;u=G.next())gZ(u.value)}return g}G=g instanceof Element&&g.isConnected;u=x.nativeAppendChild.call(this,g);G&&G4(g);this.isConnected&&gZ(g);return u}}(v),v.nativeRemoveChild=b.prototype.removeChild,b.prototype.removeChild=function(x){return function(g){var G=g instanceof Element&&g.isConnected,u=x.nativeRemoveChild.call(this,g);
G&&I===x.nativeRemoveChild&&G4(g);return u}}(v),v.nativeReplaceChild=b.prototype.replaceChild,b.prototype.replaceChild=function(x){return function(g,G){if(g instanceof DocumentFragment){var u=Array.from(g.children);
g=x.nativeReplaceChild.call(this,g,G);if(this.isConnected)for(G4(G),G=_.D(u),u=G.next();!u.done;u=G.next())gZ(u.value);return g}u=g instanceof Element&&g.isConnected;var Z=this.isConnected,H=x.nativeReplaceChild.call(this,g,G);Z&&G4(G);u&&G4(g);Z&&gZ(g);return H}}(v);
z=[Element];N8&&z.push(N8.Wrapper);z=_.D(z);b=z.next();for(v={};!b.done;v={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},b=z.next())b=b.value,b.prototype.before=Gwx(b.prototype.before),b.prototype.after=Gwx(b.prototype.after),v.nativeReplaceWith=b.prototype.replaceWith,b.prototype.replaceWith=function(x){return function(){var g=_.AT.apply(0,arguments),G=_.D(Nju(g)),u=G.next().value,
Z=G.next().value;G=this.isConnected;x.nativeReplaceWith.apply(this,g);g=_.D(Z);for(Z=g.next();!Z.done;Z=g.next())G4(Z.value);if(G)for(G4(this),u=_.D(u),G=u.next();!G.done;G=u.next())G=G.value,G instanceof Element&&gZ(G)}}(v),v.nativeRemove=b.prototype.remove,b.prototype.remove=function(x){return function(){var g=this.isConnected;
x.nativeRemove.call(this);g&&G4(this)}}(v),v.nativeInsertAdjacentElement=b.prototype.insertAdjacentElement,b.prototype.insertAdjacentElement=function(x){return function(g,G){var u=G.isConnected;
g=x.nativeInsertAdjacentElement.call(this,g,G);u&&G4(G);g.isConnected&&gZ(g);return g}}(v),v.nativeSetAttribute=b.prototype.setAttribute,b.prototype.setAttribute=function(x){return function(g,G){var u=ErG(this);
if(!u.usePatchedLifecycles)return x.nativeSetAttribute.call(this,g,G);var Z=this.getAttribute(g);x.nativeSetAttribute.call(this,g,G);G=this.getAttribute(g);uF5(u,g,Z,G)}}(v),v.nativeRemoveAttribute=b.prototype.removeAttribute,b.prototype.removeAttribute=function(x){return function(g){var G=ErG(this);
if(!G.usePatchedLifecycles)return x.nativeRemoveAttribute.call(this,g);var u=this.getAttribute(g);x.nativeRemoveAttribute.call(this,g);u!==null&&uF5(G,g,u,null)}}(v),v.nativeToggleAttribute=b.prototype.toggleAttribute,b.prototype.toggleAttribute=function(x){return function(g,G){var u=ErG(this);
if(!this.usePatchedLifecycles)return x.nativeToggleAttribute.call(this,g,G);var Z=this.getAttribute(g),H=Z!==null;G=x.nativeToggleAttribute.call(this,g,G);G!==H&&uF5(u,g,Z,G?"":null);return G}}(v);
z=[Document,DocumentFragment,Element,ShadowRoot];N8&&z.push(N8.Wrapper);z=_.D(z);for(v=z.next();!v.done;v=z.next())v=v.value,v.prototype.prepend=Gwx(v.prototype.prepend),v.prototype.append=Gwx(v.prototype.append);(N8==null?void 0:N8.noPatch)===!0&&ZUf();document.readyState==="complete"?gZ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&gZ(document.body)});
var M=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");M&&M.get&&M.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:M.enumerable,configurable:!0,get:M.get,set:function(x){x||G4(this);M.set.call(this,x);return x}})}};
Gwx=function(z){return function(){var l=_.AT.apply(0,arguments),I=_.D(Nju(l)),b=I.next().value;I=I.next().value;z.apply(this,l);l=_.D(I);for(I=l.next();!I.done;I=l.next())G4(I.value);if(this.isConnected)for(b=_.D(b),l=b.next();!l.done;l=b.next())l=l.value,l instanceof Element&&gZ(l)}};
ZUf=function(){for(var z=_.D(ylG),l=z.next();!l.done;l=z.next()){l=l.value.prototype;for(var I=_.D(f81),b=I.next();!b.done;b=I.next()){b=b.value;var v=Object.getOwnPropertyDescriptor(l,b);v&&Object.defineProperty(l,"__shady_native_"+b,v)}}};
uF5=function(z,l,I,b){var v,M;if((v=z.polymerController)==null?0:(M=v.observedAttributes)==null?0:M.includes(l))if(z=z.polymerController,z.attributeChangedCallbackWrapper)z.attributeChangedCallbackWrapper.call(z,l,I,b);else{var x;(x=z.attributeChangedCallback)==null||x.call(z,l,I,b)}};
Nju=function(z){var l=[],I=[];z=_.D(z);for(var b=z.next();!b.done;b=z.next())b=b.value,b instanceof Element&&b.isConnected&&I.push(b),b instanceof DocumentFragment?l.push.apply(l,_.ht(Array.from(b.children))):l.push(b);return[l,I]};
ErG=function(z){return!(z instanceof Element)&&z.node instanceof Element?z.node:z};
C4Y=function(z,l){var I=l?["children"].concat(_.ht(l)):["children"];l=[];I=_.D(I);for(var b=I.next();!b.done;b=I.next()){var v=b.value;if(z.hasOwnProperty(v)){b=z[v];b=typeof b==="function"?b():b;b=Array.isArray(b)?b:[b];b=mF(b).flat();if(v!=="children"){v=qlt(v);for(var M=_.D(b),x=M.next();!x.done;x=M.next())x=x.value,x instanceof Element&&x.setAttribute("slot",v)}l.push(b)}}l.length===0?z=[]:(z=mF(_.N("div",null,l)),z=Array.from(z.childNodes));return z};
Rk7=function(z,l,I){var b={};_.oj(function(){var v={},M;for(M in l)if(l.hasOwnProperty(M)){var x=void 0,g=void 0;if(!(((x=I.slotProps)==null?0:x.includes(M))||M==="children"||((g=I.callbackProps)==null?0:g.includes(M))||M==="ref")&&(x=_.d2(l[M]),b[M]!==x)){b[M]=x;g=void 0;var G=(g=z.hostElement)!=null?g:z;kwY.has(M)&&(G[M]=x);v[M]=x}}Rj(function(){if(z.setProperties)z.setProperties(v);else for(var u=_.D(Object.entries(v)),Z=u.next();!Z.done;Z=u.next()){var H=_.D(Z.value);Z=H.next().value;H=H.next().value;
z[Z]=H}})})};
KlG=function(z,l,I,b){var v=C4Y(I,b.slotProps),M=(0,_.kE)(z);v=_.D(v);for(var x=v.next();!x.done;x=v.next())M.appendChild(x.value);Rk7(l,I,b);b=_.D(b.callbackProps||[]);v=b.next();for(M={};!v.done;M={kebabEventName:void 0,eventListener:void 0},v=b.next())x=v=v.value,String(v).substring(0,2)==="on"&&I[x]?(M.kebabEventName=qlt(String(v).substring(2)),M.eventListener=I[x],z.addEventListener(M.kebabEventName,M.eventListener),_.cb(function(Z){return function(){z.removeEventListener(Z.kebabEventName,Z.eventListener)}}(M))):
l[x]=I[x];
if(I.ref){I=_.D(m9H(I.ref));var g=I.next().value,G=I.next().value,u=l.attached.bind(l);l.attached=function(){g(z);u()};
_.cb(function(){G()})}};
m9H=function(z){if(typeof z==="function"){var l;return[function(I){l=z(I)},
function(){var I;(I=l)==null||I()}]}if(!z.onRender||!z.onUnmount)throw Error("Xg");
return[z.onRender,z.onUnmount]};
qLY=function(z,l,I,b,v){b=b===void 0?{}:b;var M=te7,x=!1;M?(x=!0,te7=void 0):(Bjx=l,M=document.createElement(l),Bjx=void 0);var g=M;g.usePatchedLifecycles=!0;g.lifecycleIsConnected=!1;M.loggingStatus={};var G=XAQ(z,l,M,b,v);_.cb(function(){g.lifecycleIsConnected&&(g.lifecycleIsConnected=!1,G.disconnectedCallback())});
x||(M.__noInsertionPoint=!0,KlG(M,G,I,b));return M};
XAQ=function(z,l,I,b,v){v=v===void 0?Jwp:v;iUu[l]!=null||(iUu[l]=v(z,l,b==null?void 0:b.getTemplate,b));var M=iUu[l],x=M.ctor;v=M.getInitialMethods;var g=M.getPropsToForwardBeforeReady;z=M.getPropsToForwardBeforeRegister;b=M.shouldForwardProp;var G=M.observedAttributes,u=M.shouldLog,Z=x(I,{beforeReady:function(){var H=Z;H._takeAttributes?H._takeAttributes():H.setPropertiesFromInitialAttributeValues&&H.setPropertiesFromInitialAttributeValues();H=_.D(g(I.polymerController));for(var y=H.next();!y.done;y=
H.next()){var f=_.D(y.value);y=f.next().value;f=f.next().value;I8$(I,y,f);u(l)&&!Oi(y)&&Mex(I.polymerController,y)}I.polymerController=Rpx(Z,l)}});
I.polymerController=Z;I.polymerController.observedAttributes=G;M=_.D(Z.getExtraMethodsToForward());for(x=M.next();!x.done;x=M.next())G=_.D(x.value),x=G.next().value,G=G.next().value,bUx(I,x,G);v=_.D(v());for(M=v.next();!M.done;M=v.next())M=M.value,b(M)&&bUx(I,M),u(l)&&!Oi(M)&&vrQ(Z,M);z=_.D(z());for(b=z.next();!b.done;b=z.next())v=_.D(b.value),b=v.next().value,v=v.next().value,I8$(I,b,v);return Z};
FlH=function(z){var l=Ei;Ei=z;return l};
YL$=function(z){if(!uY.has(z)&&Zf.has(z)&&Ei&&QBf(Ei)===z){var l;(l=Ei)._numRenders!=null||(l._numRenders=0);Ei._numRenders++;if(Ei._numRenders>1)throw Error("Yg");return Ei}};
Tj1=function(z){!uY.has(QBf(z))&&Zf.has(QBf(z))&&Ei!==z&&(z._isInert=!0)};
QBf=function(z){var l;return(l=z==null?void 0:z.tagName.toLowerCase())!=null?l:""};
cl$=function(z,l){if(z.componentType===qM)throw Error("Zg");Zf.add(l);var I=function(){var b=HTMLElement.call(this)||this;b.is=l;if(Bjx===l)return b.isInert=!0,b;b.createElement();return b};
_.m(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){te7=this;var b=_.D(_.Fn7(function(){return _.N(z,null)})).next().value;
te7=void 0;mOu(this);return b}};
customElements.define(l,I)};
d9u=function(z,l,I,b,v){z.prototype.is=l;(b==null?0:b.useSink)?SL$(z,l,I,b,v):(I=Jwp(z,l,I,b),pAu(I,l));return z};
SL$=function(z,l,I,b,v){HUG();var M=_.P(function(x){return qLY(z,l,x,Object.assign({},b,{getTemplate:I}),v)},"a");
M.debugName=l+" (CoW wrapped)";cl$(M,l);return M};
P4Q=function(z){return!orf.has(z)};
rl5=function(z,l,I,b){function v(){if(!H){for(var y=new Set(hk5),f=_.D(M.behaviors),R=f.next();!R.done;R=f.next()){R=R.value;for(var F=_.D(Object.getOwnPropertyNames(R)),Y=F.next();!Y.done;Y=F.next()){Y=Y.value;var c=void 0,d=(c=Object.getOwnPropertyDescriptor(R,Y))==null?void 0:c.value;d&&d instanceof Function&&(!u[Y]||_.C("polymer_forward_method_killswitch"))&&y.add(Y)}}f=_.D(Object.entries(Object.getOwnPropertyDescriptors(z.prototype)));for(R=f.next();!R.done;R=f.next())F=_.D(R.value),R=F.next().value,
F=F.next().value,F.value instanceof Function&&y.add(R);H=y}return H}
var M=m_G({is:l,disableElementRegistration:!1,getTemplate:I,providers:b==null?void 0:b.providers,reactivityMode:b==null?void 0:b.reactivityMode},z);if((b==null?0:b.allowedProps)||(b==null?0:b.allowedPropsFromBehaviors)){var x,g;M.allowedProps=[].concat(_.ht((x=b.allowedProps)!=null?x:[]),_.ht((g=b.allowedPropsFromBehaviors)!=null?g:[]))}var G=ZgQ(M,z);l=G.observedAttributes;var u={};I=_.D(M.reactiveSchemas);for(b=I.next();!b.done;b=I.next())if(b=b.value,b.type==="signal")u[b.propertyKey]={readOnly:b.readOnly},
b.readOnly&&(u[WLf(b.propertyKey)]={readOnly:!0});else if(b.type==="compute"||b.type==="computeWithMethod"||b.type==="redux")u[b.propertyKey]={readOnly:!0};var Z=M.reactiveSchemas.length,H;return{ctor:function(y,f){y=new G(y);y.beforeReady=f.beforeReady;return y},
props:u,observedAttributes:l,getInitialMethods:v,getPropsToForwardBeforeRegister:function(){for(var y=[],f=new Set,R=_.D(sBH),F=R.next();!F.done;F=R.next())F=F.value,y.push([F,F!=="observers"&&F!=="properties"]),f.add(F);R=_.D(Object.keys(u));for(F=R.next();!F.done;F=R.next())F=F.value,y.push([F,u[F].readOnly]),f.add(F);R=v();F=_.D(Object.keys(Object.getOwnPropertyDescriptors(z.prototype)));for(var Y=F.next();!Y.done;Y=F.next())Y=Y.value,!P4Q(Y)||R.has(Y)||f.has(Y)||(y.push([Y,!1]),f.add(Y));y.push(["allowedProps",
!0]);return y},
getPropsToForwardBeforeReady:function(y){var f=[];y=_.D(Object.keys(y));for(var R=y.next();!R.done;R=y.next()){R=R.value;var F=v();P4Q(R)&&!F.has(R)&&f.push([R,!1])}y=_.D(M.reactiveSchemas.slice(Z));for(R=y.next();!R.done;R=y.next())R=R.value,R.type!=="compute"&&R.type!=="computeWithMethod"&&R.type!=="redux"&&R.type!=="signal"||f.push([R.propertyKey,R.type==="signal"?R.readOnly:!0]);return f},
shouldForwardProp:P4Q,shouldLog:T9}};
_.r=function(z,l,I,b){var v,M,x=(M=(v=b)==null?void 0:v.mode)!=null?M:0;b!=null||(b={});var g;(g=b).reactivityMode!=null||(g.reactivityMode=0);x===1&&_.Go("creator_poly_si_disable_list").includes(l)&&(x=2);return x===1?d9u(z,l,I,Object.assign({},b,{useSink:!0}),rl5):d9u(z,l,I,Object.assign({},b,{useSink:x===2}))};
_.Hh=function(){return function(z,l,I,b){var v,M,x=(M=(v=b)==null?void 0:v.mode)!=null?M:2;b!=null||(b={});var g;(g=b).reactivityMode!=null||(g.reactivityMode=0);if(x===0)throw Error("$g`"+x);return SL$(z,l,I,b,x===1?rl5:void 0)}};
_.yP=function(z){return _.C("creator_poly_si_killswitch")?!1:_.C("force_all_poly_si_batches")&&(z==="poly_si_all_on_test_check"||z==="creator_poly_si_batch_050"?0:z)||document.documentElement.hasAttribute("use-signals")?!0:!z||_.C(z+"_holdback_enabled")&&_.C("kevlar_polysi_holdback")?!1:_.C(z)};
fE=function(z){return z?z.icon?z.icon.iconType.toLowerCase():z.customThumbnail?"member":"":""};
$9$=function(z){if(!z)return"";z=_.D(z);for(var l=z.next();!l.done;l=z.next())if((l=l.value)&&l.liveChatAuthorBadgeRenderer&&(l=fE(l.liveChatAuthorBadgeRenderer))&&l!=="verified")return l;return""};
eku=function(z,l){if(!z)return null;var I;return((I=z.find(function(b){return b&&b.liveChatAuthorBadgeRenderer?fE(b.liveChatAuthorBadgeRenderer)===l:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.U9Q=function(z){var l=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;z=wAp(z);l=wAp(l);var I=Al7(z.hex);l=Al7(l.hex);var b=l[0]/255;var v=l[1]/255,M=l[2]/255,x=Math.max(b,v,M),g=Math.min(b,v,M),G=0,u=0,Z=.5*(x+g);x!=g&&(x==b?G=60*(v-M)/(x-g):x==v?G=60*(M-b)/(x-g)+120:x==M&&(G=60*(b-v)/(x-g)+240),u=0<Z&&Z<=.5?(x-g)/(2*Z):(x-g)/(2-2*Z));b=[Math.round(G+360)%360,u,Z];I=Wlu(I,l);for(z=nr1(z.hex);I<4.5;){z=b[2]>=.5?z.darker((4.5-I)/2):z.brighter((4.5-I)/2);I=z.toString();
v=Ll5(I);if(!v.length)throw Error("Wd`"+I);I=v;I=Wlu(I,l)}return z.hex()};
Wlu=function(z,l){z=_.cn5(z);l=_.cn5(l);return(Math.max(z,l)+.05)/(Math.min(z,l)+.05)};
_.CE=function(z){return"#"+("000000"+(z&16777215).toString(16)).slice(-6)};
_.a85=function(z){for(var l=0,I=0;I<z.length;I++)l=z.charCodeAt(I)+((l<<5)-l);z="#";for(I=0;I<3;I++)z+=("00"+(l>>I*8&255).toString(16)).slice(-2);return z};
VeY=function(z){z=(z||"").split(":");z.length===1&&z.unshift("yt-icons");z[1]=z[1].toLowerCase();return z};
bA1=function(z,l){var I=(l=l===void 0?!1:l)?jBG:Jl1,b=l?zYG:lNH;z.getIconNames().forEach(function(v){v=l?v:v.substring(v.indexOf(":")+1);z.name==="yt-icons"?INQ.add(v):v.includes("-filled")?I.add(v):b.add(v)})};
kC=function(z,l,I,b){I=I===void 0?!1:I;b=b===void 0?!1:b;var v,M,x;return _.O(function(g){if(g.nextAddress==1)return g.yield(v6Q,2);if(b)return g.return(INQ.has(z));v=I?jBG:Jl1;M=I?zYG:lNH;return l?(x=z.includes("-filled")?z:z.concat("-filled"),g.return(v.has(x))):g.return(M.has(z))})};
_.DSp=function(z){if(Mu1(z))return z;var l=z=z.toLowerCase();(z=pi7.get(z))&&(l=z);return l};
_.Re=function(z){if(Mu1(z))return z.toString();var l=xSx.get(z);if(l)return l;l=z.toLowerCase();var I="yt-icons",b=l.replace(/_/g,"-");switch(z){case "MY_CHANNEL":l="account_circle";break;case "ADD_TO_LIBRARY":l="add";break;case "ALERT_WARN_RED":l="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":l="person_music";break;case "BLOCK_USER":l="block";break;case "CAPTIONS":l="closed_caption";break;case "CLOSED_CAPTION":I="av";l="closed-caption";break;case "COLLECTION":I="maps";l="layers";break;case "CONTACT":I=
"icons";l="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":I="ytcp-icons";l=b.split("creator-studio-")[1];break;case "DISMISSAL":l="close";break;case "DO_NOT_DISTURB":l="block";break;case "DOGFOOD":I="icons";l="pets";break;case "DRAFT":l="paper_corner_folded";break;
case "EMPTY_LIKE":l="like_outline";break;case "EXIT_APP":l="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":l=b;break;case "GAMES":I="ytg";l="my-games";break;case "GO_TO_PAGE":l="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":l="not_interested";break;case "INPUT_COMPONENT":I="icons";l="settings-input-component";break;case "KIDS_BLOCK":l="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";l="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";l="membership-post-purchase";break;case "MULTIVIEW":l="screen_multi_view";break;case "MY_LOCATION":I="maps";l=b;break;case "NOTIFICATIONS_INBOX":l="NOTIFICATIONS";break;case "NEXT":l="chevron_right";break;case "OFFLINE":l="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":l="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";l="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";l="premium_standalone_cairo";
break;case "QUESTION_ANSWER":l="question_answer";break;case "REDEEM":I="icons";l="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":l="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":l="library_add";break;case "SCHOOL":I="yt-sys-icons";l="creator_academy";break;case "SETTINGS_LIGHT":l="settings_applications";break;case "SETTINGS_MATERIAL":l="settings";break;case "SEARCH_HISTORY":l="watch_history";break;case "SHOPPING_BAG":l="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";l="people";break;case "STAFF_PICK":I="ytg";l="spotlight";break;case "START_DVR":l="add";break;case "STOP_DVR":I="av";l="stop";break;case "TAB_LIKED":l="like";break;case "TAB_INBOX":l="mail";break;case "TERMS_OF_SERVICE":I="icons";l="description";break;case "TRENDING":l="fire";break;case "UNBLOCK_USER":l="remove";break;case "UNPLUGGED_DARK_THEME":I="image";l="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":l="live";break;case "UNPLUGGED_SPORTS":I="ytu";l="visibility-off";break;
case "VIDEOS":I="av";l="play-circle-filled";break;case "YOUTUBE":I="yt-logos";l="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";l="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";l="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":I="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":I="shorts";l=b;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";l="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";l="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";l="list_queue_last";break;case "SLASH_CIRCLE_LEFT":l="slash_circle_left";break;case "SPEED_1_POINT_2X":l="1_point_2x";break;case "SPEED_1_POINT_5X":l="1_point_5x";break;case "SPEED_1_POINT_8X":l="1_point_8x";break;case "SPEED_POINT_2X":l="point_2x";break;case "SPEED_POINT_5X":l="point_5x";break;case "SPEED_POINT_8X":l="point_8x";break;case "SPEED_1X":l="1x";break;case "SPEED_2X":l="2x";break;case "TAB_BOOKMARK":l="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";l="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";l="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",l="tic_tac_toe"}l=I+":"+l;xSx.set(z,l);return l};
Mu1=function(z){var l;_.C("kevlar_use_wil_icons")?l=!!_.pG().resolve(_.mh).resolveIcon({iconName:z.toString()}):l=!1;return l};
_.tx=function(z,l,I,b){I=I===void 0?{}:I;b=b===void 0?!1:b;I===null&&(I={});var v=_.Go("kevlar_command_handler_command_banlist");v=_.D(v);for(var M=v.next();!M.done;M=v.next())if(M=z?z.hasOwnProperty(M.value):void 0,M)return!1;v=_.k(z.commandMetadata,_.kB);return b&&v!=null&&v.url?!1:!l.disableCommandHandlerOverride&&_.KE.instance?(b=_.KE.instance,I.form||(I.form={element:l}),I.form.element||(I.form.element=l),!I.clickedVisualElement&&l.visualElement&&(I.clickedVisualElement=l.visualElement),b.resolveCommand(z,
I),!0):!1};
OA$=function(z,l){z=Bh(z);for(var I=_.D(z.visibilityMonitorKeys||[]),b=I.next();!b.done;b=I.next())l.unobserveByKey(b.value);z.visibilityMonitorKeys=void 0};
E6G=function(z,l){if(_.sU()){if(_.C("kevlar_vimio_use_shared_monitor"))g6x(z,l.data);else if(!g6x(z,l.data))return;var I=l.data,b=GAQ(I);if(_.C("enable_client_ve_spec_logging"))OA$(z,l.observer);else{var v=Bh(z);v.trackedParams&&v.trackedParams!==b&&OA$(z,l.observer)}v=Bh(z);!I||v.data&&v.data===I||(v.data=I);Nak(z,l);v.trackedParams=b}};
Nak=function(z,l){var I=l.observer;if(!I&&_.C("web_skip_missing_vimio_observer")){var b,v;_.PW(new _.qB("VisibilityObserver is not defined.",z.tagName,z.trackedParams,(b=l.data)==null?void 0:b.trackingParams,(v=l.data)==null?void 0:v.loggingDirectives))}else{var M=l.layer,x=l.visibilityCallback||function(){},g=l.prescanCallback,G=Bh(z);
b=[];l.showOption&&b.push(I.observe(z,function(){l.skipLogging&&l.skipLogging()||_.Xa().reportShown(G,void 0,M);x(!0)},l.showOption));
l.hideOption&&b.push(I.observe(z,function(){_.Xa().reportHidden(G,void 0,M);x(!1)},l.hideOption));
l.prescanOption&&g&&b.push(I.observe(z,function(){g()},l.prescanOption));
G.visibilityMonitorKeys=b}};
g6x=function(z,l){z=Bh(z);if(z.visualElement&&!l)return!0;if(!l)return!1;var I=!1;if(_.C("enable_client_ve_spec_logging")){var b,v;I=!!((b=l.loggingDirectives)==null?0:(v=b.clientVeSpec)==null?0:v.uiType)}b=GAQ(l);if(!b&&!I)return!1;_.C("mweb_component_visibility_logging")&&(z.veContainer||(z.veContainer={}),z.veContainer.trackingParams=b);if(z.trackedParams&&z.trackedParams===b)return!1;var M;if(_.C("enable_client_ve_spec_logging")&&((M=z.visualElement)==null?0:M.isClientVe())){var x;M=(x=z.visualElement)==
null?void 0:x.getAsJspb();var g,G,u,Z;if(_.Gz(M,2)===((g=l.loggingDirectives)==null?void 0:(G=g.clientVeSpec)==null?void 0:G.uiType)&&_.Gz(M,3,-1)===((u=l.loggingDirectives)==null?void 0:(Z=u.clientVeSpec)==null?void 0:Z.elementIndex))return!1}if(_.C("enable_client_ve_spec_logging")){var H,y;!z.visualElement&&((H=l.loggingDirectives)==null?0:(y=H.clientVeSpec)==null?0:y.uiType)&&(g=l.loggingDirectives.clientVeSpec,l=g.uiType,x=g.elementIndex,g=g.clientYoutubeData,z.visualElement=_.q8(_.iY(),{veType:l,
elementIndex:x,clientYouTubeData:g}))}return!0};
GAQ=function(z){if(z==null?0:z.rendererContext){var l=_.k(z.rendererContext,_.Fa);if(l==null?0:l.loggingDirectives)return l.loggingDirectives.trackingParams}return(z==null?0:z.loggingDirectives)?z.loggingDirectives.trackingParams:z==null?void 0:z.trackingParams};
Bh=function(z){var l;return(l=z.polymerController)!=null?l:z};
y9u=function(z){_.Xa();if(_.em(QP().JSC$12569_elementShouldLogGesture).bind(QP())(z,4)){uM7(z);var l=ZAt(z);HAu.set(z,l)}};
uM7=function(z){HAu.has(z)&&(HAu.get(z).cancel("untrack hover element"),HAu.delete(z))};
ZAt=function(z){var l,I=[],b=!1,v=new _.yK(function(M,x){YC(z,"mouseenter",_.em(function(){var g,G,u;return _.O(function(Z){if(Z.nextAddress==1)return l=(0,_.Dr)(),g=fN5(z),I.push(g),G=CpQ(z,function(){b=!0;x(Error("ah"))}),Z.yield(g,2);
if(Z.nextAddress!=3)return G&&T4(G),u=kAf(z),I.push(u),Z.yield(u,3);M();_.qe(Z)})}))});
v.then(function(){var M=(0,_.Dr)()-l;M=Math.round(M);if(!(500>M||6E5<=M)){var x=z.getScreenLayer?z.getScreenLayer():void 0;x=_.sU(x)||"";var g=RYY(_.Xa(),z);_.zZ(x,z.visualElement?z.visualElement:_.ch(g),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:M}})}y9u(z)},function(){SZ&&(SZ(),SZ=null);
b&&(uM7(z),y9u(z))});
return v};
fN5=function(z){var l;return(new _.yK(function(I,b){SZ=function(){b(Error("bh"))};
l=_.ow.debounce(_.em(function(){T4(v);I()}),1,100);
var v=_.dZ(z,"mousemove",l)})).thenCatch(function(){var I=_.ow.cancelDebouncedJobMap.get(l);
I&&_.ow.cancelJob(I)})};
kAf=function(z){var l;return(new _.yK(function(I,b){SZ=function(){b(Error("ch"))};
l=YC(z,"mouseleave",_.em(function(){I()}))})).thenCatch(function(){T4(l)})};
CpQ=function(z,l){return YC(z,"mouseleave",_.em(l))};
KU1=function(z){mSp&&_.oe.cancel(mSp);mSp=_.oe.run(function(){_.gC(z,"yt-visibility-refresh");mSp=0})};
tuS=function(z){z=Number(z);return"rgba("+[z>>16&255,z>>8&255,z&255,(z>>24&255)/255].join()+")"};
XiG=function(z){if(!z)return!1;if(_.k(z,_.Bap))return!0;var l;if(z=(l=_.k(z,_.yi))==null?void 0:l.commands)for(l=_.D(z),z=l.next();!z.done;z=l.next())if(_.k(z.value,_.Bap))return!0;return!1};
q_5=function(z){var l=!0;l=l===void 0?!0:l;if(!z.useSignals&&!z.experimentalPropertiesChanged||_.C("experimental_templating_behavior_nopatch_killswitch")){var I=z._propertiesChanged;z._propertiesChanged=function(b,v,M){l?z.debounceRender():z.doRender();I&&I.call(z,b,v,M)}}};
iAY=function(z,l){if(z.useSignals||z.experimentalPropertiesChanged)if(_.C("experimental_templating_behavior_nopatch_killswitch"))z.experimentalPropertiesChanged=function(){};
else return;var I=new Set,b=[z].concat(_.ht(z.behaviors));b=_.D(b);for(var v=b.next();!v.done;v=b.next()){v=v.value;for(var M in v.properties)I.has(M)||(z._addPropertyEffect(M,"function",l),I.add(M))}};
FU$=function(){var z=Polymer.Element,l=z._prepareTemplate;z._prepareTemplate=function(){l.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.dE(Error("dh"));else{I=this.template.content.childNodes;for(var b=I.length-1;b>=0;b--){var v=I[b];v.nodeName!=="STYLE"&&v.nodeName!=="LINK"&&v.nodeName!=="SCRIPT"&&v.nodeName!=="#comment"&&v.remove()}}}};
QvG=function(z){var l=!0;l=l===void 0?!0:l;FU$();var I=z.ready;z.ready=function(){this._template=null;I.call(this)};
iAY(z,l?z.debounceRender:z.doRender)};
TaH=function(z,l,I){if(I===null||I===void 0)return I;var b=uYH(z.tagName.toLowerCase(),l,function(){throw Error("Tb");});
if(b===null)return I;b=Y_f[b];var v;if((v=b.isUnwrappable)==null?0:v.call(b,I)){if(b.unwrap)return b.unwrap(I);throw Error("gh");}return b.filterString?b.filterString(z.tagName,l,String(I)):I};
c9Q=function(z,l,I){var b=l[l.length-1]!=="$",v=TaH(z,l,I);if(b)if(typeof v==="function"&&l.startsWith("reactiveon")&&l===l.toLowerCase()){var M=Ij;KIS(z,l.slice(8),function(x){Pb(M,function(){v(x)})})}else z[l]=v;
else I=v==null?null:String(v),r2(z,l.slice(0,-1),I)};
hx=function(z){S_7.length===0&&requestAnimationFrame(function(){setTimeout(function(){var l=S_7.slice();S_7.length=0;l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;try{I()}catch(b){_.Ph(b)}}})});
S_7.push(z)};
dSu=function(z){if(z){var l=z.component;if(l){var I;l==null||(I=l.events)==null||I.publish("DISCONNECTED");var b;l==null||(b=l.onDisconnected)==null||b.call(l)}var v,M;(v=z.__spec)==null||(M=v.didUnmount)==null||M.call(v);for(l=0;l<z.childNodes.length;l++)dSu(z.childNodes[l])}};
o6Y=function(z,l,I){var b=l&&l.key,v=z3;v[0]=z;v[1]=b;v[2]=void 0;for(var M in l)l.hasOwnProperty(M)&&(z=l[M],b=ls,b.push(M),b.push(z));l=z3;a:{if(M=z3[2])for(z=0;z<M.length;z+=2)if(M[z]==="nonce"){M=M[z+1];break a}M=""}M=oF7(l[0],l[1],M);z=AX(M);b=l[2];if(!z.staticsApplied&&(z.staticsApplied=!0,b&&b.length))if((v=z._attrsArr)&&v.length){for(v=0;v<b.length;v+=2)si[b[v]]=v+1;v=z._attrsArr||(z._attrsArr=mhY(0));for(var x=0,g=0;g<v.length;g+=2){var G=v[g],u=v[g+1],Z=si[G];Z?b[Z]===u&&delete si[G]:(v[x]=
G,v[x+1]=u,x+=2)}sf(v,x);for(var H in si)is7(M,H,b[si[H]],bq),delete si[H]}else for(H=0;H<b.length;H+=2)is7(M,b[H],b[H+1],bq);Aeu(M,z,bq);sf(l,0);I&&I(Wb);Pqt()};
_.rZ=function(z,l,I){I===void 0?delete z[l.name]:z[l.name]=I};
_.$C=function(z){var l={androidIncludeFontPadding:!1},I=0,b=[],v=[],M=[];if(z.simpleText)return l.content=z.simpleText,l;if(z.runs===void 0)return l.content="",l;z=_.D(z.runs);for(var x=z.next();!x.done;x=z.next()){x=x.value;var g=x.text,G=void 0,u=(G=g)==null?void 0:G.length;if(g&&u){b.push(g);if(x.bold||x.italics||x.strikethrough||x.underline||x.textColor!=null&&x.textColor!==0||x.deemphasize){g=v;G=g.push;var Z={startIndex:I,length:u};x.bold&&(Z.weightLabel="FONT_WEIGHT_MEDIUM");x.italics&&(Z.italic=
!0);x.strikethrough&&(Z.strikethrough="LINE_STYLE_SINGLE");x.underline&&(Z.underline="LINE_STYLE_SINGLE");x.textColor!=null&&x.textColor!==0?document.documentElement.hasAttribute("dark")?Z.fontColor=x.darkModeTextColor||x.textColor:Z.fontColor=x.textColor:x.deemphasize&&(document.documentElement.hasAttribute("dark")?Z.fontColor=parseInt("ff"+PpS("#aaa").substring(1),16):Z.fontColor=parseInt("ff"+PpS("#606060").substring(1),16));G.call(g,Z)}x.navigationEndpoint&&(g=M,G=g.push,Z={startIndex:I,length:u,
onTap:{innertubeCommand:x.navigationEndpoint}},x.loggingDirectives&&_.rZ(Z,hY7,x.loggingDirectives),G.call(g,Z));I+=u}}l.content=b.join("");l.styleRuns=v.length?v:void 0;l.commandRuns=M.length?M:void 0;return l};
r9Q=function(z){if(z==null||!z.runs)return!0;z=_.D(z.runs);for(var l=z.next();!l.done;l=z.next())if(l=l.value,l.bracket||l.errorUnderline||l.deemphasize||_.k(l,eZ)||_.k(l,sv5))return!1;return!0};
$S1=function(z,l){return function(I){var b=l.unit;if(b!==I)throw Error("jh`"+z+"`"+b+"`"+I);return l}};
wZ=function(z){if(!((z==null?0:z.value)&&(z==null?0:z.unit)))return"";switch(z.unit){case "DIMENSION_UNIT_FRACTION":var l="%";break;default:l="px"}z=z.value;l==="%"&&(z*=100);return""+z+l};
eYp=function(z){try{return z()}catch(l){_.PW(l)}};
_.Wh=function(z){var l=_.k(z,_.Ax);if(l)return l;if((l=_.k(z,wi5))&&l.commands)return A9Q(l.commands);if((l=_.k(z,WU7))&&l.commands)return A9Q(l.commands);if((z=_.k(z,n6t))&&z.identifier&&z.command&&(LUf||(LUf=[]),!LUf.includes(z.identifier)))return LUf.push(z.identifier),_.k(z.command,_.Ax)};
A9Q=function(z){if(z.length!==0){var l=[];z=_.D(z);for(var I=z.next();!I.done;I=z.next())(I=_.Wh(I.value))&&l.push(I);return{commandExecutorCommand:{commands:l}}}};
_.LE=function(z){var l=z.defaultTarget,I=z.elementConfig,b=z.elementsCommand,v=z.skipOnClick,M=z.forceNewState,x=z.additionalCommandArgs,g=z.innertubeCommand||_.Wh(b);if(g){z={};var G=USt(g);b=G.navigatingCommand;G=G.href;b&&G?(z.href$=G,aN7(z,b,G,l),_.C("web_atagconfig_pointerdown")&&Vuk(z,b),M&&(z["force-new-state$"]=!0)):(z.role$="button",z.href$="javascript:void(0);");_.k(g,jvQ)&&(z["aria-haspopup$"]=!0);v||(z.onclick=function(u){var Z={};if(J9k(u)){var H=(x==null?void 0:x.clickedVisualElement)||
(x==null?void 0:x.getClickedVisualElement)&&x.getClickedVisualElement();H&&(Z={clickedVisualElement:H});Z=Object.assign({},{form:{element:u.target,event:u,createScreenConfig:Z}},x);u.preventDefault();_.nE(g,Z)}});
return Object.assign({},I,z)}};
zjS=function(z){if(z.length){if(z.length===1)return z[0];var l={};_.rZ(l,_.yi,{commands:z});return l}};
Ui=function(z){return z&&z.href$!=="javascript:void(0);"};
USt=function(z){var l,I=((l=_.k(z,_.yi))==null?void 0:l.commands)||[z];z=_.D(I);for(l=z.next();!l.done;l=z.next()){l=l.value;var b=void 0,v=void 0;I=(v=_.k((b=l)==null?void 0:b.commandMetadata,_.kB))==null?void 0:v.url;_.C("web_remove_web_navigation_endpoint_data")||(b=void 0,I=I||((b=_.k(l,ly5))==null?void 0:b.url));if(I&&I!=="/service_ajax"){if(b=_.r0(I,IyY))return z=_.hT(b),{navigatingCommand:l,href:z};_.PW(new _.qB("AttributedString URL could not be sanitized",I))}}return{}};
J9k=function(z){return z.button!==void 0?z.button===0&&!(z.shiftKey||z.altKey||z.metaKey||z.ctrlKey):!(z.shiftKey||z.altKey||z.metaKey||z.ctrlKey)};
aN7=function(z,l,I,b){I=!bf(I);var v,M,x;if((v=_.k(l,_.BF))!=null&&v.nofollow||(M=_.k(l,_.zb))!=null&&M.nofollow||(x=_.k(l,_.AK))!=null&&x.nofollow||I)z.rel$="nofollow";var g;l=((g=_.k(l,_.AK))==null?void 0:g.target)==="TARGET_NEW_WINDOW"?"_blank":b===void 0?"":b;z.target$=l};
Vuk=function(z,l){l.clickTrackingParams&&(z.params={itct:l.clickTrackingParams});z.onpointerdown=function(I){bxQ(I)};
z._data=l};
vp$=function(z){(z.loggingUrls||[]).forEach(function(l){Lp(l.baseUrl,l.attributionSrcMode)})};
bxQ=function(z){var l=z.currentTarget;z=eYp(function(){return l.href});
var I=l.params;z&&_.vu(z,I||{},8,!0)};
_.ae=function(z,l){(z=_.Wh(z))&&_.nE(z,l)};
_.nE=function(z,l){ec$(function(I){l?I.resolveCommand(z,l):I.resolveCommand(z)})};
xTf=function(z,l){var I=["yt-core-attributed-string__link"];l!=null&&l.noLinkColor||((l==null?0:l.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(l==null?0:l.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var b=z.onTap||z.onLongPress;if(!b)return I;var v=Mlt(z);v&&(I["aria-label$"]=v);l=_.LE({elementsCommand:b,elementConfig:I,skipOnClick:!(l==
null||!l.skipOnClick),forceNewState:!0});z.onLongPress&&(b=new ppQ(function(){var M=_.Wh(z.onLongPress);M&&_.pG().resolve(_.DQ).resolveCommand(M)}),l&&DT5(b,l));
return l||I};
Mlt=function(z){var l,I;return(l=z.onTapOptions)==null?void 0:(I=l.accessibilityInfo)==null?void 0:I.accessibilityLabel};
Oxk=function(z){var l=z;z<=16777215&&(l+=parseInt("ff000000",16));return _.aD(l)};
gpY=function(z){var l=z.isDarkTheme;var I=z.extension;z=z.runColor;var b=void 0;if(I=I==null?void 0:I.colorMap){l=l?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.D(I);for(var v=I.next();!v.done;v=I.next())if(v=v.value,l===v.key){b=v.value;break}}b==null&&z&&(b=z);if(b)return Oxk(b)};
VP=function(z){var l=z.config;var I=z.image;var b=z.imageConfig;var v=z.imageWrapperConfig;var M=z.run;var x=z.tag;var g=z.textLength;var G=z.startIndex===void 0?0:z.startIndex;z=z.length;G===void 0&&(G=0);M={run:M,startIndex:G,endIndex:z!==void 0?G+z:g,tag:x};I&&(M.image=I);b&&(M.imageConfig=b);v&&(M.imageWrapperConfig=v);l&&(M.config=l);return M};
NWt=function(z,l){var I=[];I.push("yt-core-attributed-string");(l==null?0:l.className)&&I.push(l==null?void 0:l.className);(l==null?0:l.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(l==null?0:l.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(l==null?0:l.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(l==null?0:l.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");z.alignment&&I.push(Gyu(z.alignment));z.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
EpQ=function(z,l){if(z.weight)return z.weight;switch(z.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return l?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
u9x=function(z){switch(z){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"}};
Gyu=function(z){switch(z){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"}};
lO=function(z,l,I){var b=l;z.content&&I&&(I=z.content.indexOf("\n"),I!==-1&&(b=Math.min(l,I)));if(!z.content||z.content.length<=b)l=z;else if(z.attachmentRuns||z.commandRuns||z.decorationRuns||z.styleRuns||z.paragraphStyleRuns){l=jZ(z.content,b);I=b;var v=z.attachmentRuns;if(v){var M=[];v=_.D(v);for(var x=v.next();!x.done;x=v.next())x=Object.assign({},x.value),x.startIndex===void 0||x.startIndex>=I||(x.length||(x.length=0),x.length+x.startIndex>I&&(x.length=I-x.startIndex),M.push(x));I=M}else I=void 0;
M=Zx$(b,z.commandRuns);v=b;var g=z.decorationRuns;if(g){x=[];g=_.D(g);for(var G=g.next();!G.done;G=g.next()){G=G.value;var u=_.k(G.textDecorator,zH);if(u&&u.startIndex!==void 0&&!(u.startIndex>=v)){G=Object.assign({},G,{textDecorator:{highlightTextDecorator:Object.assign({},u)}});u=_.k(G.textDecorator,zH);if(!u.length||u.length+u.startIndex>v)u.length=v-u.startIndex;x.push(G)}}v=x}else v=void 0;x=Zx$(b,z.styleRuns);if(g=z.paragraphStyleRuns)for(z=[],g=_.D(g),G=g.next();!G.done;G=g.next()){var Z=G.value;
G=Object.assign({},Z);if(!(G.startIndex===void 0||G.startIndex>=b)){if(!G.length||G.length+G.startIndex>b)G.length=b-G.startIndex;u=[];var H=void 0,y=void 0;if((H=Z)==null?0:(y=H.listGroup)==null?0:y.listItems)for(Z=_.D(Z.listGroup.listItems),H=Z.next();!H.done;H=Z.next())if(H=Object.assign({},H.value),!(H.startIndex===void 0||H.startIndex>=b)){if(!H.length||H.length+H.startIndex>b)H.length=b-H.startIndex;u.push(H)}u.length>0&&(G.listGroup||(G.listGroup={}),G.listGroup=Object.assign({},G.listGroup,
{listItems:u}));z.push(G)}}else z=void 0;l={content:l,attachmentRuns:I,commandRuns:M,decorationRuns:v,styleRuns:x,paragraphStyleRuns:z}}else l=Object.assign({},z,{content:jZ(z.content,b)});return l};
Zx$=function(z,l){if(l){var I=[];l=_.D(l);for(var b=l.next();!b.done;b=l.next())if(b=Object.assign({},b.value),!(b.startIndex===void 0||b.startIndex>=z)){if(!b.length||b.length+b.startIndex>z)b.length=z-b.startIndex;I.push(b)}return I}};
jZ=function(z,l){var I=l,b;if(b=I>0)b=z.charCodeAt(I-1),b=b>=55296&&b<=56319;b&&(I=z.charCodeAt(I),b=I>=56320&&I<=57343);b&&--l;return z.substring(0,l)};
Cax=function(z,l,I){I=I===void 0?Hxf:I;if(z){var b=_.pG().resolve(Mh);b||_.C("mweb_no_observer_killswitch")?E6G(z,{data:l,observer:b,visibilityCallback:I,hideOption:y3f,showOption:fyx,layer:z.layer}):_.PW(new _.qB("Warning: monitorVisibility called with null observer",z.tagName,l==null?void 0:l.loggingDirectives,l==null?void 0:l.trackingParams))}else _.PW(new _.qB("Warning: monitorVisibility called with null element",l==null?void 0:l.loggingDirectives,l==null?void 0:l.trackingParams,l==null?void 0:
l.rendererContext))};
Xpt=function(z,l){var I=[],b=z.content.length,v,M=(v=_.pG().resolve(_.MB(_.I2)))==null?void 0:v();if(z.paragraphStyleRuns){v=_.D(z.paragraphStyleRuns);for(var x=v.next();!x.done;x=v.next()){var g=I.push,G=g.apply;var u=void 0;x=x.value;if((u=x.listGroup)!=null&&u.listItems){u=[];b:switch(x.listGroup.listType){case "LIST_TYPE_BULLET":var Z="ul";break b;default:Z="span"}u.push(VP({run:x,textLength:b,tag:Z,config:{className:"yt-core-attributed-string__list-group"},startIndex:x.startIndex,length:x.length}));
Z=_.D(x.listGroup.listItems);for(var H=Z.next();!H.done;H=Z.next()){H=H.value;b:switch(x.listGroup.listType){case "LIST_TYPE_BULLET":var y="li";break b;default:y="span"}u.push(VP({run:x,textLength:b,tag:y,startIndex:H.startIndex,length:H.length}))}x=u}else x=[];G.call(g,I,_.ht(x))}}if(z.styleRuns&&(l==null||!l.noStyleRuns))for(v=_.D(z.styleRuns),g=v.next();!g.done;g=v.next()){x=g=g.value;u=M;G=l;u=gpY({extension:_.k(x.styleRunExtensions,kyx),isDarkTheme:u===void 0?!1:u,runColor:x.fontColor});H=x;
Z=[];u&&Z.push("yt-core-attributed-string--link-inherit-color");H.italic&&Z.push("yt-core-attributed-string--italicized");H.underline&&H.strikethrough?Z.push("yt-core-attributed-string--underline-strikethrough",u9x(H.underline)):H.underline?Z.push("yt-core-attributed-string--underlined",u9x(H.underline)):H.strikethrough&&Z.push("yt-core-attributed-string--strikethrough",u9x(H.strikethrough));if(H.baselineOffset){a:switch(H.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":H="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":H="yt-core-attributed-string--baseline-offset-superscript";break a;default:H="yt-core-attributed-string--baseline-offset-unknown"}Z.push(H)}Z=Z.join(" ");H={};if(x.weight||x.weightLabel)H.fontWeight=EpQ(x,G==null?void 0:G.isHeadline).toString();u&&(H.color=u);I.push(VP({run:g,textLength:b,tag:"span",config:{className:Z,style:H},startIndex:g.startIndex,length:g.length}))}if(z.decorationRuns)for(v=_.D(z.decorationRuns),g=v.next();!g.done;g=v.next())g=g.value,
G={},g.textDecorator&&(Z=g.textDecorator,x=M===void 0?!1:M,H=[],u=_.k(Z,zH),Z=_.k(Z,Rjx),u?(Z=H,H=Z.concat,y=[],(x=gpY({extension:_.k(u.highlightTextDecoratorExtensions,mT1),isDarkTheme:x,runColor:u.backgroundColor}))&&y.push("background-color: "+x+";"),u.backgroundCornerRadius!==void 0&&y.push("border-radius: "+u.backgroundCornerRadius+"px;"),u.leftPadding!==void 0&&y.push("padding-left: "+u.leftPadding+"px;"),u.rightPadding!==void 0&&y.push("padding-right: "+u.rightPadding+"px;"),u.topPadding!==
void 0&&y.push("padding-top: "+u.topPadding+"px;"),u.bottomPadding!==void 0&&y.push("padding-bottom: "+u.bottomPadding+"px;"),H=H.call(Z,y)):Z&&(u=H,H=u.concat,x=x?"#2ba640":"#107516",x=Z.color?Oxk(Z.color):x,x=["padding: 2px;","border-top: solid "+x+" 2px;","border-bottom: solid "+x+" 2px;","background: linear-gradient(135deg, "+x+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+x+" 3px, rgba(0, 0, 0, 0) 3px);"],H=H.call(u,x)),x=H.join(" "),G.style$=x,x=g.textDecorator,u=[],Z=_.k(x,
Rjx),_.k(x,zH)?u.push("yt-core-attributed-string--highlight-text-decorator"):Z&&u.push("yt-core-attributed-string--bracket-text-decorator"),x=u.join(" "),G.className=x,G.dir="auto"),x=_.k(g.textDecorator,zH),u=_.k(g.textDecorator,Rjx),Z=_.k(g.textDecorator,zH),H=_.k(g.textDecorator,Rjx),I.push(VP({run:g,textLength:b,tag:"span",config:G,startIndex:(x==null?void 0:x.startIndex)||(u==null?void 0:u.startIndex)||0,length:(Z==null?void 0:Z.length)||(H==null?void 0:H.length)||0}));if(z.commandRuns&&(l==
null||!l.noEndpoints))for(M=_.D(z.commandRuns),v=M.next();!v.done;v=M.next())v=v.value,g=xTf(v,l),I.push(VP({run:v,textLength:b,tag:"a",config:g,startIndex:v.startIndex,length:v.length}));if(z.attachmentRuns)for(z=_.D(z.attachmentRuns),M=z.next();!M.done;M=z.next()){M=M.value;G=g=void 0;v={className:"yt-core-attributed-string--inline-block-mod"};if((G=M.element)==null?0:G.properties){G=(g=M.element)==null?void 0:g.properties;g=[];G=_.k(G,K$$);if(G==null?0:G.margin)G=G.margin,G.left&&g.push("margin-left: "+
wZ(G.left)+";"),G.right&&g.push("margin-right: "+wZ(G.right)+";"),G.top&&g.push("margin-top: "+wZ(G.top)+";"),G.bottom&&g.push("margin-bottom: "+wZ(G.bottom)+";");g=g.length!==0?g.join(" "):void 0;v.style$=g}x=void 0;g={alt:"",preserveHeight:!0,preserveWidth:!0};G=["yt-core-attributed-string__image-element"];if(M.alignment){a:switch(M.alignment){case "ALIGNMENT_BASELINE":u="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":u="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:u="yt-core-attributed-string__image-element--image-alignment-bottom"}G.push(u)}if((x=M.element)==null?0:x.properties)x=[],u=_.k(M.element.properties,K$$),(u==null?0:u.height)&&x.push("height: "+wZ(u.height)+";"),(u==null?0:u.width)&&x.push("width: "+wZ(u.width)+";"),x=x.length!==0?x.join(" "):void 0,g.style$=x,u=void 0,x=((u=_.k(M.element.properties,tlS))==null?void 0:u.label)||"",g.alt=x;g.className=G.join(" ");G=void 0;Z=u=void 0;x=((Z=M.element)==null?0:Z.type)?(u=_.k(M.element.type,
BW$))==null?void 0:u.image:void 0;I.push(VP({run:M,textLength:b,tag:"img",image:x,imageConfig:g,imageWrapperConfig:v,startIndex:M.startIndex,length:(G=M.length)!=null?G:0}))}if(l==null?0:l.headerRuns)for(l=_.D(l.headerRuns),z=l.next();!z.done;z=l.next())if(z=z.value,z.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(z.headerMapping)){a:{switch(z.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":M=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":M="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":M="yt-core-attributed-string--heading-3";break a}M=void 0}I.push(VP({run:z,textLength:b,tag:"span",config:M?{className:M}:void 0,startIndex:z.startIndex,length:z.length}))}return I};
_.bO=function(z){return(z==null?void 0:z.content)!==void 0};
qCf=function(z){return _.bO(z)?z:_.$C(z)};
ixf=function(z){return z.image!==void 0&&z.imageConfig!==void 0};
F$H=function(z,l){if(l==null?0:l.userInput)for(z=_.D(z),l=z.next();!l.done;l=z.next())if(l=l.value,l.tag!=="a"&&l.tag!=="li"){var I=void 0;(I=l).config||(I.config={});l.config.dir=l.tag==="ul"?_.pG().resolve(_.vr):"auto"}};
Qgp=function(z){return function(l){var I=z.run;(I.onTap!==void 0||I.onLongPress!==void 0)&&_.k(I,hY7)&&Cax(l,{loggingDirectives:_.k(I,hY7)})}};
YCY=function(z){return function(l){for(var I in z)(bq[I]||bq[$z["default"]])(l,I,z[I])}};
dTH=function(z,l){TW5(l);var I={data:null,start:0,end:z.length,parts:[]};l=_.D(l);for(var b=l.next();!b.done;b=l.next())b=b.value,c3t(I,b.startIndex,b.endIndex,b);SCx(z,I);return I};
c3t=function(z,l,I,b){for(var v=_.D(z.parts),M=v.next();!M.done;M=v.next()){M=M.value;if(typeof M==="string")throw Error("lh");if(M.start<=l&&I<=M.end){c3t(M,l,I,b);return}}z.parts.push({data:b,parts:[],start:l,end:I})};
SCx=function(z,l){for(var I=l.parts.length;I>=0;I--){var b=l.parts[I],v=l.parts[I-1],M=I===l.parts.length?l.end:b.start;v=I===0?l.start:v.end;M!==v&&l.parts.splice(I,0,z.slice(v,M));b&&SCx(z,b)}};
TW5=function(z){z.sort(function(l,I){if(l.startIndex<I.startIndex)return-1;if(I.startIndex<l.startIndex)return 1;l=l.endIndex-l.startIndex;I=I.endIndex-I.startIndex;return l>I?-1:I>l?1:0})};
_.opx=function(z){var l=z.thumbnails;if(l){z={sources:[]};l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b={};b.url=I.url;b.width=I.width;b.height=I.height;z.sources.push(b)}return z}};
PaH=function(z,l,I,b){if(!l)return z.length>=1?z[z.length-1]:null;if(b)for(var v=_.D(z),M=v.next();!M.done;M=v.next()){M=M.value;var x=void 0,g=(x=M.url)==null?void 0:x.indexOf(b);if(g!==void 0&&g>=0)return M}b=_.D(z);for(v=b.next();!v.done;v=b.next())if(v=v.value,v.width&&v.height&&(I&&v.width>=l||!I&&v.height>=l))return v;for(l=z.length-1;l>=0;l--)if(I&&z[l].width||!I&&z[l].height)return z[l];return z[0]};
_.hju=function(z){var l;return(z=(l=z.sources)==null?void 0:l[0])?z.width/z.height:0};
_.sgY=function(z){if(z.sources){z=_.D(z.sources);for(var l=z.next();!l.done;l=z.next()){l=l.value;var I=void 0;if((I=l.clientResource)==null?0:I.imageName)return l}}};
r37=function(z){var l;if((l=z.clientResource)!=null&&l.imageColor)return _.aD(z.clientResource.imageColor)};
_.ejY=function(z,l,I,b,v,M,x){if(!l||l.length===0||l[0].clientResource)return null;if(I&&l[0].url)return l[0].url;b===void 0&&(b=!0);if(b){var g;z=$Tk*(v||(z==null?void 0:(g=z.getBoundingClientRect())==null?void 0:g.width)||0)}else{var G;z=$Tk*(M||(z==null?void 0:(G=z.getBoundingClientRect())==null?void 0:G.height)||0)}l=PaH(l,z,b,x);return(l==null?0:l.url)?l.url:(l==null?0:l.imageData)?l.imageData:null};
wpS=function(z,l,I){I=I?[I]:[];z.opacity&&I.push("opacity: "+z.opacity+";");l&&z.placeholderColor?(z=_.aD(z.placeholderColor),I.push("background-color: "+z+";")):I.push("background-color: transparent;");return I.join(" ")};
A3$=function(z,l,I,b,v){var M=["ytCoreImageHost"];l&&M.push(l);I||M.push("ytCoreImageFillParentHeight");b||M.push("ytCoreImageFillParentWidth");switch(z.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":M.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":M.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":M.push("ytCoreImageContentModeCenter");break;default:M.push("ytCoreImageContentModeScaleToFill")}z.flipForRtlLayout&&M.push("ytCoreImageFlipRtl");
switch(v){case "TOP_START":var x;M.push(((x=document.body)==null?void 0:x.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return M.join(" ")};
np5=function(z){var l;if(z==null?0:(l=z.clientResource)==null?0:l.imageName){var I;z=(I=z.clientResource)==null?void 0:I.imageName;a:{switch(z){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":I="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":I="yt-logos-ext:yt-logo-updated";break a}I=void 0}return I||W$$.get(z)||z}};
ay7=function(z){return _.C("mweb_wiz_skip_render")?L$5(z):UTY(z)};
L$5=function(z){return function(l){var I=oF7("wink-root");htG();Pqt();gMH(I,_.N(z,l))}};
UTY=function(z){var l=l===void 0?!1:l;return function(I){if(!l||!_.C("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var b=OZ(!1);try{var v=I.children;_.C("mweb_render_outside_patch_killswitch")||Wb?v?IK(_.N(z,I,v)):IK(_.N(z,I)):_.PW(new _.qB("ketoToC3 called outside of a patch",{tagName:z.TAG_NAME}))}finally{OZ(b)}}}};
Vlx=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
J3G=function(z,l){z.onViewportEntered=l;jgt.observe(z)};
zi1=function(){var z={rootMargin:"10%",threshold:.01};_.C("mweb_enable_set_io_root_to_null_safari")?z.root=null:_.C("mweb_enable_set_io_root_to_body_safari")&&(z.root=document.body);return new IntersectionObserver(function(l,I){l.filter(function(b){return b.intersectionRect.height>0}).forEach(function(b){b=b.target;
if(!_.C("mweb_enable_only_update_image_when_connected")||b.isConnected!==!1){var v;(v=b.onViewportEntered)==null||v.call(b);I.unobserve(b)}})},z)};
lgk=function(z,l,I,b,v){function M(){if(b){var g=b.loadedClass,G=b.notifyOnUnloaded;g&&_.Mt(z,g);G&&z.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function x(){var g=I(l,z);g&&z.getAttribute("src")!==g&&(_.C("mweb_enable_only_update_image_when_connected")&&z.isConnected===!1||g===z.src||(z.src=g),M())}
v=v===void 0?!0:v;z.removeAttribute("src");M();l&&(v?J3G(z,x):x())};
IgS=function(z,l,I){if(!l)return!1;l=I(l,z);I=z.getAttribute("src");return l&&l===I&&z.complete};
bTY=function(z,l){for(var I in l)I==="className"?z.className=l[I]:(bq[I]||bq[$z.default])(z,I,l[I])};
vX$=function(z,l,I,b){ay7(_.pK)({contentMode:l.contentMode,loadedClass:l.loadedClass,isPreloaded:l.isPreloaded,notifyOnLoaded:l.notifyOnLoaded,notifyOnUnloaded:l.notifyOnUnloaded,preferredThumbnail:l.preferredThumbnail,preserveHeight:l.preserveHeight,preserveWidth:l.preserveWidth,objectPosition:l.objectPosition,targetWidth:l.targetWidth,targetHeight:l.targetHeight,shouldShowPlaceholder:l.shouldShowPlaceholder,useWidth:l.useWidth,isToggled:l.isToggled,alt:l.alt,className:l.className,onerror:l.onerror,
onload:l.onload,style$:l.style$,color:l.color,width:l.width,height:l.height,"aria-hidden$":l["aria-hidden$"],draggable:l.draggable,"data-disabled$":l["data-disabled$"],data:z,callback:I,renderLazy:b===void 0?!0:b,hideOn404:!1})};
pzt=function(z,l,I){I=I===void 0?!1:I;var b=z.sources!==void 0?z:_.opx(z);if(b){var v=l.onload;l.onload=function(G){var u=G.target;I&&u.naturalWidth===120||_.DY(u,"ytCoreImageLoaded");l.notifyOnLoaded&&u.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));v==null||v(G)};
l.targetWidth&&l.preserveWidth&&(l.width=l.targetWidth);l.targetHeight&&l.preserveHeight&&(l.height=l.targetHeight);var M=_.sgY(b),x=M&&np5(M);if(x)return(z=r37(M))&&(l.color=z),{type:"icon",iconName:x,config:Object.assign({},l,l.alt?{}:{"aria-hidden$":"true"},{"aria-label$":l.alt,role:"img"})};if(z.sources===void 0){l.alt=z.accessibility&&z.accessibility.accessibilityData&&z.accessibility.accessibilityData.label||l.alt;l.style$=wpS(z,l.shouldShowPlaceholder,l.style$);var g;l.isPreloaded=!((g=_.k(z,
MIH))==null||!g.isPreloaded)}l.contentMode&&!b.contentMode&&(b.contentMode=l.contentMode);l.className=A3$(b,l.className,l.preserveHeight,l.preserveWidth,l.objectPosition);l.loadedClass="ytCoreImageLoaded";return{type:"image",image:b,config:l}}};
_.xl=function(){var z=_.AT.apply(0,arguments);return _.z1(D$f,function(l){var I=z.map(function(b){return b==null?void 0:b(l)});
return function(){return void I.forEach(function(b){return void(b==null?void 0:b())})}})};
OW=function(z,l){var I=l==null?void 0:l.initial;return _.kz(function(){_.d2(!0);return I=z(I)},{equals:l==null?void 0:l.isEqual},"rSlKsc")};
x$7=function(z,l){if(z===l)return!0;if(z===void 0||l===void 0)return!1;var I,b,v,M,x,g,G,u;return z.content===l.content&&((I=z.styleRuns)==null?void 0:I.length)===((b=l.styleRuns)==null?void 0:b.length)&&((v=z.commandRuns)==null?void 0:v.length)===((M=l.commandRuns)==null?void 0:M.length)&&((x=z.attachmentRuns)==null?void 0:x.length)===((g=l.attachmentRuns)==null?void 0:g.length)&&((G=z.decorationRuns)==null?void 0:G.length)===((u=l.decorationRuns)==null?void 0:u.length)};
G0$=function(z,l){if(z){var I=qCf(z);if(I!=null&&I.content)if(_.C("attr_string_reactive"))ay7(OTk)({text:z,config:l});else{var b=!(l==null||!l.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0);z=b?l==null?void 0:l.ariaLabel:null;b=b?"text":null;o6Y("span",{className:NWt(I,l),dir$:(l==null?0:l.userInput)?"auto":void 0,"aria-label$":z,role$:b},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns||I.paragraphStyleRuns){var v=
Xpt(I,l);F$H(v,l);v=dTH(I.content,v);v=_.D(v.parts);for(var M=v.next();!M.done;M=v.next())gXx(M.value)}else WIQ(I.content)})}}};
gXx=function(z){typeof z==="string"?WIQ(z):ixf(z.data)?o6Y("span",z.data.imageWrapperConfig,function(){vX$(z.data.image,z.data.imageConfig)}):o6Y(z.data.tag,z.data.config,function(l){Qgp(z.data)(l);
l=_.D(z.parts);for(var I=l.next();!I.done;I=l.next())gXx(I.value)})};
EXt=function(z){return z.parts.map(NJG)};
NJG=function(z){if(typeof z==="string")return z;z=ixf(z.data)?_.N("span",{el:_.xl(YCY(z.data.imageWrapperConfig))},_.N(_.pK,Object.assign({},{data:z.data.image},z.data.imageConfig))):_.N(z.data.tag,{el:_.xl(Qgp(z.data),YCY(z.data.config))},z.parts.map(NJG));return mF(z)};
uRf=function(z,l){return z===l?!0:z===void 0||l===void 0?!1:z.noStyleRuns===l.noStyleRuns&&z.noLinkColor===l.noLinkColor&&z.noEndpoints===l.noEndpoints&&z.headerRuns===l.headerRuns&&z.isOverlay===l.isOverlay&&z.linkInheritColor===l.linkInheritColor&&z.userInput===l.userInput&&z.isHeadline===l.isHeadline};
ZTx=function(z){return function(){var l,I,b,v,M,x,g,G,u,Z,H,y,f,R;return{ariaLabel:(l=z.ariaLabel)==null?void 0:l.call(z),className:(I=z.className)==null?void 0:I.call(z),ellipsisTruncate:(b=z.ellipsisTruncate)==null?void 0:b.call(z),isOverlay:(v=z.isOverlay)==null?void 0:v.call(z),linkInheritColor:(M=z.linkInheritColor)==null?void 0:M.call(z),noEndpoints:(x=z.noEndpoints)==null?void 0:x.call(z),noStyleRuns:(g=z.noStyleRuns)==null?void 0:g.call(z),noLinkColor:(G=z.noLinkColor)==null?void 0:G.call(z),
noPreWrap:(u=z.noPreWrap)==null?void 0:u.call(z),noWrap:(Z=z.noWrap)==null?void 0:Z.call(z),skipOnClick:(H=z.skipOnClick)==null?void 0:H.call(z),userInput:(y=z.userInput)==null?void 0:y.call(z),headerRuns:(f=z.headerRuns)==null?void 0:f.call(z),isHeadline:(R=z.isHeadline)==null?void 0:R.call(z)}}};
go=function(z,l){z=new HT7(z,l);_.dE(z);throw z;};
yVu=function(z,l,I){var b=FlH(z);z._numRenders=0;try{var v=_.Fn7(function(){return _.N(l,Object.assign({},I))})}catch(x){var M=function(g){g.args||(g.args=[]);
g.args.push("Error in web component wrapper");g.args.push(z.tagName.toLowerCase());return g};
_.oy(x instanceof Error?M(x):new HT7("Wiz rendering error",z.tagName.toLowerCase()));throw x;}finally{FlH(b)}return v};
_.uO=function(z,l,I){function b(Z){var H={};Z=_.D(Z);for(var y=Z.next();!y.done;y=Z.next()){y=y.value;var f=void 0,R=void 0,F=void 0,Y=_.t8((F=(R=(f=y).getAttribute)==null?void 0:R.call(f,"slot"))!=null?F:"children");if(f=H[Y])f.push(y);else if(Y in M||Y==="children")H[Y]=[y]}Z=_.D(Object.keys(H));Y=Z.next();for(y={};!Y.done;y={content$jscomp$57:void 0},Y=Z.next())Y=Y.value,Y!=="children"&&(y.content$jscomp$57=H[Y],H[Y]=function(c){return function(){return c.content$jscomp$57}}(y));
return H}
I=I===void 0?{}:I;z.componentType!==qM||go("Components must be marked reactive to be used from web component wrapper.",l);uY.has(l)&&go("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",l);var v,M=(v=I.props)!=null?v:{};Zf.add(l);var x=fg7();v=function(){var Z=x.apply(this,arguments)||this;Z.rawProps={};Z.queuingRender=!1;Z.dispose=function(){};
Z.isWebComponentWrapper=!0;Z.isReparenting=!1;Z.hasRendered=!1;return Z};
_.m(v,x);v.prototype.render=function(){this.hasRendered=!0;for(var Z=_.D([].concat(_.ht(this.attributes))),H=Z.next();!H.done;H=Z.next())H=H.value,H.name!=="slot"&&H.name!=="hidden"&&this.removeAttribute(H.name);Z=Object.assign({},this.componentProps,this.slotProps);H=_.D(yVu(this,z,Z));Z=H.next().value;H=H.next().value;!(Z[0]instanceof Element)||Z.length>1?go("Wrapped Wiz components must return a single root element.",l):(Z=Z[0].tagName.toLowerCase(),Z!==l&&go("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(Z+" !== '"+l),l),this.dispose=H)};
v.prototype.setUpProps=function(){for(var Z=this.rawProps,H=this.attributes,y=_.D(Object.keys(M)),f=y.next();!f.done;f=y.next()){f=f.value;var R=void 0;((R=this)==null?0:R[f])&&this[f]!==Cex&&Z[f]===void 0&&(Z[f]=this[f],(R=Object.getOwnPropertyDescriptor(this.constructor.prototype,f))&&Object.defineProperty(this,f,R))}y=_.D(H);for(f=y.next();!f.done;f=y.next()){R=f.value;f=_.t8(R.name);var F=f==="class"&&!H.getNamedItem("class-name");if(f in M||F)R=R.value===""||R.value==="true"?!0:R.value==="false"?
!1:isNaN(Number(R.value))?R.value:Number(R.value),f!=="class"||Z.className?Z[f]=R:Z.className=R}H={};for(var Y in M)M[Y]!==_.GH&&M[Y]!==k0$&&(Z[Y]instanceof Function&&go("Function props must be configured as STATIC, not SIGNAL.",l),f=_.D(_.Z_(Z[Y],void 0,"Ri8MSe")),y=f.next().value,f=f.next().value,H[Y]=f,Z[Y]=y);Z=_.D([Z,H]);this.componentProps=Z.next().value;this.setters=Z.next().value;this.slotProps=b(this.childNodes)};
v.prototype.connectedCallback=function(){Rix===l&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in M&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
v.prototype.disconnectedCallback=function(){if(!this._isInert){var Z;a:{if(_.Nt)for(Z=this;Z;){if(_.EW.has(Z)){Z=!0;break a}Z=Z.parentElement}Z=!1}if(Z)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){Z=_.D([].concat(_.ht(this.attributes)));for(var H=Z.next();!H.done;H=Z.next()){H=H.value;var y=void 0;H.name==="slot"||H.name==="hidden"&&((y=I.unsafeExternallySettableAttributes)==null?0:y.has("hidden"))||this.removeAttribute(H.name)}}this.innerText="";mOu(this)}}};
v.prototype._setPendingPropertyOrPath=function(){};
v.prototype.notifyPath=function(){};
_.vP.Object.defineProperties(v.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var g=_.D(Object.keys(M)),G=g.next(),u={};!G.done;u={prop$jscomp$105:void 0},G=g.next())u.prop$jscomp$105=G.value,G=void 0,((G=I.legacyPolymer)==null?0:G.forwardHostProps)&&kwY.has(u.prop$jscomp$105)||Object.defineProperty(v.prototype,u.prop$jscomp$105,{set:function(Z){return function(H){var y=this;this._isInert||(this.setters?Rj(function(){var f,R;return void((R=(f=y.setters)[Z.prop$jscomp$105])==null?void 0:R.call(f,H))}):(this.rawProps[Z.prop$jscomp$105]=H,this.queuingRender&&Z.prop$jscomp$105===
"data"&&H!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(u),
get:m$Q.has(u.prop$jscomp$105)?void 0:function(){return Cex}});
customElements.define(l,v)};
_.KSS=function(z,l){return(z=_.ZY(z,l))?_.hT(_.eA(z)):null};
_.Hr=function(z){if(z=_.ZY(z,Number.MAX_VALUE,void 0,"width"))return _.eA(z)};
_.ZY=function(z,l,I,b){b=b===void 0?"width":b;if(!z||!z.length)return null;if(_.C("kevlar_tuner_should_always_use_device_pixel_ratio")){var v=window.devicePixelRatio;_.C("kevlar_tuner_should_clamp_device_pixel_ratio")?v=Math.min(v,_.OI("kevlar_tuner_clamp_device_pixel_ratio")):_.C("kevlar_tuner_should_use_thumbnail_factor")&&(v=_.OI("kevlar_tuner_thumbnail_factor"));tIu=v}else tIu||(tIu=window.devicePixelRatio);v=tIu;_.C("kevlar_tuner_should_always_use_device_pixel_ratio")?l*=v:v>1&&(l*=v);if(_.C("kevlar_tuner_min_thumbnail_quality"))return z[0].url||
null;v=z.length;if(_.C("kevlar_tuner_max_thumbnail_quality"))return z[v-1].url||null;if(I)for(var M=0;M<v;M++)if(z[M].url.indexOf(I)>=0)return z[M].url||null;for(I=0;I<v;I++)if(z[I][b]>=l)return z[I].url||null;for(l=v-1;l>0;l--)if(z[l][b])return z[l].url||null;return z[0].url||null};
qy$=function(){ye.size?setTimeout(function(){fK(BJu)},0):Xzt=0};
BJu=function(){var z=(0,_.Dr)(),l=null,I=!1;ye.forEach(function(v){v.loaded=!0;v.loadTime=z;v.pendingPaint=!1;var M=iTH.get(v);M&&M.resolve(z);l=v;I||!v.ftlEligible&&v.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var b;((b=l)==null?0:b.markDirty)&&l.markDirty();ye.clear();Xzt=0;I&&FS5(z)};
Q$5=function(z){ye.add(z);z.pendingPaint=!0;Xzt||(Xzt=_.CK(_.ow,qy$))};
Yyp=function(z){z.loaded=!1;z.loadTime=Infinity;var l=iTH.get(z);l&&(l.reject(Error("rh")),iTH.delete(z));z.pendingPaint&&(ye.delete(z),z.pendingPaint=!1)};
_.TJk=function(z){var l=z.indexOf(":");return l===-1?{originalName:z}:{originalName:z.substring(0,l),datasyncId:z.substring(l+1)}};
_.Syf=function(){return _.O(function(z){if(cVf!==void 0)return z.return(cVf);cVf=new Promise(function(l){var I;return _.O(function(b){switch(b.nextAddress){case 1:return _.RL(b,2),b.yield(_.kl.open("test-only"),4);case 4:return b.yield(_.kl.delete("test-only"),5);case 5:_.a3(b,3);break;case 2:if(I=_.XP(b),I instanceof Error&&I.name==="SecurityError")return l(!1),b.return();case 3:l("caches"in window),_.qe(b)}})});
return z.return(cVf)})};
PeQ=function(){return _.O(function(z){if(z.nextAddress==1)return z.yield(_.Syf(),2);if(!z.yieldResult)return z.return(void 0);d$Q||(d$Q=new oXt);return z.return(d$Q)})};
hif=function(z){var l,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return M.yield(PeQ(),2);case 2:l=M.yieldResult;if(!l)throw Error("th");return M.yield(l.open("yt-player-local-img"),3);case 3:return I=M.yieldResult,M.yield(I.match(z),4);case 4:b=M.yieldResult;if(!b)throw Error("uh");return M.yield(b.blob(),5);case 5:return v=M.yieldResult,M.return(v)}})};
s$5=function(z,l){for(var I in z)if(z.hasOwnProperty(I)&&l[I])return I;return null};
rVY=function(z){return"stamp"+z.replace("-","_")+"_"};
$$5=function(z){var l=z.match(/\[\[([\w\.]+)\]\]/);if(l&&l.length>1)return l[1];_.dE(Error("wh`"+z));return null};
eiu=function(z){return z===void 0?_.rr("REUSE_COMPONENTS",!1):z||!1};
WS1=function(z,l,I){I&&(l.is?(wzf.has(l)&&(z=wzf.get(l),I=z.listener,delete l[z.property],I.type==="element"&&l.removeEventListener(I.eventName,I.handler),wzf.delete(l)),AVk(l)):l.__proto__==HTMLElement.prototype&&(l=new _.qB("Rendererstamper removed a non custom element","Stamper: "+z+" element: "+(l&&l.nodeName)),_.PW(l)))};
nX1=function(z,l,I,b){var v=l.node?l.node:l;_.Hy(I).parentNode===v&&(l.removeChild(I),WS1(z,I,b));if(z=R2.get(I))R2.delete(I),_.ow.cancelJob(z);I.hidden=!1};
LSS=function(z,l,I,b){if(l&&l.children&&(I=l.children[I]))if(_.rr("DEFERRED_DETACH"))for(;I&&!R2.has(I);){var v=z,M=l,x=I,g=b;x.hidden=!0;v=_.qA(_.ow,nX1.bind(null,v,M,x,g),0);R2.set(x,v);I=I.nextElementSibling}else for(;(x=l.lastElementChild)&&(l.removeChild(x),WS1(z,x,b),x!=I););};
_.m9=function(){for(var z=_.AT.apply(0,arguments),l=!0,I=_.D(z),b=I.next();!b.done;b=I.next())if(typeof b.value!=="string"){l=!1;break}return l?z.join(" ").trim()||void 0:function(){for(var v="",M=_.D(z),x=M.next();!x.done;x=M.next())if(x=x.value,typeof x==="function"&&(x=x()),x)if(typeof x==="string")v+=" "+x;else for(var g in x)if(x.hasOwnProperty(g)){var G=x[g];typeof G==="function"&&(G=G());G&&(v+=" "+g)}v=v.trim()||void 0;return _.d2(v)}};
ag5=function(z){var l;return(l=U$x[z])!=null?l:"EVENT_SPAN_TYPE_UNKNOWN"};
VI$=function(z){var l=z.nodeName;if(z.id)return l+="#"+z.id;if(z.classList)for(var I=_.D(z.classList),b=I.next();!b.done;b=I.next())l+="."+b.value;z.parentElement&&(l=VI$(z.parentElement)+" > "+l);return l};
j$H=function(z){return function(l){var I=ag5(l.type);return I==="EVENT_SPAN_TYPE_UNKNOWN"?z(l):bw1("event",{type:I,nodepath:l.target instanceof Element?VI$(l.target):void 0},function(){return z(l)})}};
_.KK=function(z){z&&ltk("event")&&(z=j$H(z));return pt5(function(l){var I,b=(I=z)==null?void 0:I(l);return typeof b==="boolean"?b:!0})};
tN=function(z){return function(){return z()?z():void 0}};
Id5=function(z){var l=_.VK("animated-rolling-character"),I=mu1(),b=Im(z.character)||Im(z.previousCharacter);GbG(function(){if(z.marginMultiplier){var v;(v=I.value)==null||v.cancel();b?(v=z.previousCharacter?Number(z.previousCharacter)+10:z.rollUp?0:30,z.shouldAnimate||(v-=JVY(z,v))):(v=z.rollUp?0:2,z.shouldAnimate||(v-=z.rollUp?-1:1));l.value.style.marginTop="-"+v*z.marginMultiplier+"px";z.shouldAnimate?I.value=zEk(l.value,z,v,b):l.value.style.display=z.character?"":"none"}});
return _.N("animated-rolling-character",{el:l,class:"animatedRollingCharacterHost"},RnG(b,function(){for(var v=[],M=1;M<30;M++)v.push(_.N("div",null,M%10));return _.N(_.xP,null,_.N("div",null,"\u00a0"),v,_.N("div",null,"\u00a0"))},function(){return ldk(z.character)}))};
ldk=function(z){return _.N(_.xP,null,_.N("div",null,"\u00a0"),_.N(_.xP,null,RnG(!z||_.gf(z),function(){return _.N("div",null,"\u00a0")},function(){return _.N("div",null,z)})),_.N("div",null,"\u00a0"))};
zEk=function(z,l,I,b){I=new Animation(new KeyframeEffect(z,[{transform:"translateY(0px)"},{transform:"translateY("+(b?JVY(l,I):l.rollUp?-1:1)*l.marginMultiplier+"px)"}],b3Q),document.timeline);l.character?(z.style.display="",I.onfinish=null):I.onfinish=function(){z.style.display="none"};
I.play();return I};
JVY=function(z,l){var I=Number(z.character)+10;if(z.previousCharacter)if(z.character){var b=Number(z.character),v=Number(z.previousCharacter);z=z.rollUp?v<b?I:I+10:v<b?I-10:I}else z=z.rollUp?30:0;else z=z.character==="0"?I:z.rollUp?I-10:I+10;return l-z};
vfu=function(z){return function(l){var I={},b;for(b in l){var v=void 0,M=void 0;((v=void 0)==null?0:(M=v.callbacks)==null?0:M[b])||(I[b]=l[b])}return _.N(ij1,null,function(){for(var x in I)l[x]=_.d2(I[x]);l.disableReactiveLogging=!0;return _.N(z,Object.assign({},l))})}};
DVp=function(z,l,I,b,v,M,x){I=new Animation(new KeyframeEffect(z,[{transform:"translateY(0px)"},{transform:"translateY("+(M?MUp(l,I,b,v):b?-1:1)*x+"px)"}],pw1),document.timeline);l?(z.style.display="",I.onfinish=null):I.onfinish=function(){z.style.display="none"};
I.play();return I};
MUp=function(z,l,I,b){var v=Number(z)+10;l?z?(z=Number(z),l=Number(l),I=I?l<z?v:v+10:l<z?v-10:v):I=I?30:0:I=z==="0"?v:I?v-10:v+10;return b-I};
O3Q=function(z){var l=mu1(),I=mu1();yHf(function(){l.value=z.numberText;I.value=z.numberValue},[z.numberText]);
var b=z.fontSizeMultiplier?z.heightPx*z.fontSizeMultiplier:z.heightPx,v=RcG(function(){if(z.numberText){var x=z.numberText;var g=z.forceRollUp||!I.value||!z.numberValue||I.value<z.numberValue;var G=!!z.shouldAnimate,u=l.value,Z=[],H=0,y=0,f=(u?u.replace(/\D/g,"").length:0)-(x?x.replace(/\D/g,"").length:0);u=u?u.split(/(\d)/).filter(Boolean):[];for(x=x.split(/(\d)/).filter(Boolean);f<0;){var R=x[y];Z.push({character:R,rollUp:g,marginMultiplier:b,shouldAnimate:G});y++;Im(R)&&f++}for(;H<f;)R=u[H],Z.push({previousCharacter:R,
rollUp:g,marginMultiplier:b,shouldAnimate:G}),H++,Im(R)||f++;for(;y<x.length;)f=x[y],R=u[H],Im(f)===Im(R)?(y++,H++):Im(f)?(H++,f=void 0):Im(R)&&(y++,R=void 0),Z.push({character:f,previousCharacter:R,rollUp:g,marginMultiplier:b,shouldAnimate:G});g=Z}else g=[];return g},[z.numberText]),M=z.numberText?["height: "+b+"px;",
"line-height: "+z.heightPx+"px;"].join(" "):"";return _.N("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:M,dir:"ltr","aria-hidden":"true"},v.map(function(x){return _.N(xVG,Object.assign({},x))}))};
gf7=function(z){switch(z){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}};
Gd7=function(z,l){if(!z&&!l)return"medium";z=Math.max(z||0,l||0);return z>=256?"large":z>=96?"medium":"small"};
NhS=function(z){switch(z){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
EfY=function(z){return new KeyframeEffect(z,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
uO5=function(z){return new KeyframeEffect(z,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Br=function(z){var l=OW(function(I){I=I?uE(I[0]):void 0;return _.Z_(z(I),void 0,"AwTxXe")},{isEqual:function(I,b){return uE(I[0])===uE(b[0])}});
return[function(){return l()[0]()},
function(I){return void l()[1](I)}]};
_.XV=function(z){return function(){var l="",I;for(I in z){for(var b=z[I];typeof b==="function";)b=b();b!==void 0&&b!==null&&(l+="; "+I+": "+b)}return l.length>0?_.d2(l.slice(2)):_.d2()}};
Z3G=function(z){switch(z){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"}};
H31=function(z,l){if(l)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(z)switch(z){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"}};
REG=function(z,l,I,b,v,M,x){var g=ySt(z),G=g.disabled,u=g.iconPosition,Z=g.style,H=g.focused,y=function(){return!!F()&&u()==="icon-only"},f=function(){return!!F()&&u()==="icon-only-40"},R=function(){return!!F()&&u()==="icon-with-label"},F=function(){return!!l||!(b==null||!b())};
return{type:function(){return Z()==="call-to-action-inverse"?"text":Z()==="overlay-dark"&&z().type!=="filled"&&z().type!=="tonal"?"tonal":z().type},
shouldFocus:function(){return(H()||(M==null?void 0:M()))&&!G()},
hasIconLeading:function(){return!!F()&&u()==="leading"},
hasIconTrailing:function(){return!!F()&&u()==="trailing"},
hasIconLeadingTrailing:function(){return!!F()&&!!(I||v!=null&&v())&&u()==="leading-trailing"},
hasIconOnly:y,hasIconOnly40:f,hasIconWithLabel:R,iconButton:function(){return y()||f()||R()},
visiblyDisabled:function(){return(G()?"disabled":z().state)==="disabled"||G()},
overrideSmallSizeIcon:function(){return!z().ignoreIconSizeOverride&&fdk(z(),F())},
iconToRender:l?l:function(){return _.N(_.qt,{icon:b,size:function(){return CF7(z(),!0,z().ignoreIconSizeOverride)},
active:function(){return z().toggled},
iconFilter:function(){return kdx(z())},
animateIcon:x})},
secondaryIconToRender:I?I:function(){return _.N(_.qt,{icon:v,size:function(){return CF7(z(),!0,z().ignoreIconSizeOverride)},
active:function(){return z().toggled},
iconFilter:function(){return kdx(z())}})}}};
ySt=function(z){return{size:function(){return z().size},
style:function(){return z().style},
focused:function(){return z().focused},
disabled:function(){return z().disabled},
onTap:function(l){var I,b;return(b=(I=z()).onTap)==null?void 0:b.call(I,l)},
alignByText:function(){return z().alignByText},
aTagConfig:function(){return z().aTagConfig},
customColors:function(){return z().customColors},
segmentedPosition:function(){return z().segmentedPosition},
toggled:function(){return z().toggled},
toggleable:function(){return z().toggleable},
accessibilityLabel:function(){return z().accessibilityLabel},
onToggle:function(l){var I,b;return(b=(I=z()).onToggle)==null?void 0:b.call(I,l)},
iconPosition:function(){return z().iconPosition},
oneOffCustomTextWrap:function(){return z().oneOffCustomTextWrap},
disableTextEllipsis:function(){return z().disableTextEllipsis},
disableBackdropFilter:function(){return z().disableBackdropFilter},
tooltipText:function(){return z().tooltipText},
ariaHidden:function(){return z().ariaHidden},
tabIndex:function(){return z().tabIndex},
buttonText:function(){return z().buttonText},
formattedButtonText:function(){return z().formattedButtonText},
animatedTextProps:function(){return z().animatedTextProps}}};
fdk=function(z,l){l=(z.iconPosition==="icon-only"||z.iconPosition==="icon-only-40"||z.iconPosition==="icon-with-label")&&l;return!z.segmentedPosition&&l&&z.size==="S"};
CF7=function(z,l,I){switch(z.size){case "XS":return 16;case "S":return!I&&fdk(z,l)?24:16;default:return 24}};
mVQ=function(z){switch(z){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"}};
KmS=function(z){switch(z){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"}};
tUt=function(z){switch(z){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"}};
kdx=function(z){if(z.style==="overlay-dark"&&z.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
iO=function(z){return z&&z.endsWith("px")?Number(z.slice(0,-2)):0};
qV7=function(z){var l=l===void 0?{}:l;z=_.D(_.Br(z));var I=z.next().value;return[function(b){var v=_.kz(function(){var g,G,u,Z;return{text:(g=I())!=null?g:"",location:(G=l.location)!=null?G:"bottom",offset:(u=l.offset)!=null?u:16,delay:(Z=l.delay)!=null?Z:1}},void 0,"MgTrkc");
_.Te(function(){var g=v();uE(function(){_.ow.addJob(function(){FV.notify(b,g)},4)})},"WlsgZc");
var M=function(){Bht(b,v())},x=function(){Xwx()};
b.addEventListener("mouseenter",M);b.addEventListener("focus",M);b.addEventListener("mouseleave",x);b.addEventListener("blur",x);b.addEventListener("tap",x);_.cb(function(){b.removeEventListener("mouseenter",M);b.removeEventListener("mouseleave",x);b.removeEventListener("focus",M);b.removeEventListener("blur",x);b.removeEventListener("tap",x);Xwx()})},
z.next().value]};
FmQ=function(z,l){if(!Ij){var I;G1Q(function(){return I=Xtx(z,l)});
return I}z.parent=i37();return Xtx(z,l)};
i37=function(){var z=_.vb(Ij||void 0,Knu);return _.Bif(z)?void 0:z};
Qe=function(z,l){_.nE(z,Object.assign({},l,{forceClickLogging:!0}))};
YVQ=function(z,l){var I=_.Wh(z==null?void 0:z.onTap),b={};I&&(b.getClickedVisualElement=function(){var v;return QoQ(z,I,l==null?void 0:(v=l.value)==null?void 0:v.visualElement)});
b=_.LE({elementsCommand:z.onTap,forceNewState:!0,additionalCommandArgs:b});return Ui(b)?b:void 0};
ThG=function(z,l,I,b){Qe(z,Object.assign({},{form:{element:l,event:I}},b))};
cS5=function(z,l,I,b,v){var M=void 0;return function(x){var g=_.Wh(I?z==null?void 0:z.onDisabledTap:z==null?void 0:z.onTap);if(g){var G;M=(G=M)!=null?G:l==null?void 0:l.value;if(g)if(_.C("web_button_vm_click_client_ve_killswitch"))ThG(g,M,x);else{var u;G=QoQ(z,g,(u=M)==null?void 0:u.visualElement);if(v){ThG(g,v,x,{clickedVisualElement:G,form:{element:v}});return}ThG(g,M,x,{clickedVisualElement:G})}}b&&b(x)}};
QoQ=function(z,l,I){l=l==null?void 0:l.clickTrackingParams;var b,v;z=z==null?void 0:(b=z.loggingDirectives)==null?void 0:(v=b.clientVeSpec)==null?void 0:v.uiType;if(I&&z&&!l)return I};
SVS=function(z){switch(z){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"}};
dVQ=function(z){switch(z){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"}};
ofQ=function(z){switch(z){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"}};
PFt=function(z){switch(z){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"}};
hEQ=function(z,l){return _.Cc(z.entities,"engagementToolbarStateEntityPayload",l)};
rSt=function(z){(z=_.ch(z))&&_.sok(z)};
_.sok=function(z){var l=_.sU();l&&_.am(l,z)};
$VQ=function(z,l,I){_.Gb(z,"yt-open-popup-action",[l,I||z])};
eEp=function(z,l){var I=_.oY(z,"endpoint"),b=_.oY(z,"action");return(I=b?b:I)&&l&&(I=l.navigationEndpointPopupMap[I])&&(z=_.W8(I,z),(I=_.oY(z,"renderer"))&&l.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:l.popupTypeMap[I],popup:z}}:null};
wwQ=function(z,l,I,b){if(b){var v;I=I==null?void 0:(v=I.data)==null?void 0:v.contents;(v=I instanceof Array&&I.length?I[0]:I)&&(I=_.oY(v,"renderer"))&&b.supportedPopups.hasOwnProperty(I)&&(l.stopPropagation(),$VQ(z,{openPopupAction:{popupType:b.popupTypeMap[I],popup:v}}))}};
nfH=function(z,l,I,b){b=b===void 0?!1:b;var v=ASH(l);if(v){v.href&&JY(v.href);var M=l.button;M=M!==void 0?M===0&&!Yl(l):!Yl(l);v.data&&M&&WmQ(z,v,l,I,b)}};
WmQ=function(z,l,I,b,v){v=v===void 0?!1:v;var M=_.OI("pbj_navigate_limit",-1)===0;LmQ(l);_.pG().resolve(_.MB(wE));var x=l.data;if(Object.keys(x).length!==0)if(!_.C("unplugged_web_disable_actions_for_cec_endpoint")&&_.k(x,_.yi))_.C("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.ZE(z,[x],z);else if(b=eEp(x,b))x.loggingUrls&&x.loggingUrls.forEach(function(G){G.baseUrl&&_.np(G.baseUrl)}),I.preventDefault(),I.stopPropagation(),$VQ(z,b,l);
else{var g=UV1(0,l.data,I);if(z=l.getForm)z=z(),g.tempData=g.tempData||{},g.tempData=Object.assign({},g.tempData,z);z=_.MX(I);if(b=z.find(function(G){return!!G.visualElement}))g.createScreenConfig=g.createScreenConfig||{},g.createScreenConfig.clickedVisualElement=b.visualElement;
if(!M)if(I.preventDefault(),I.stopPropagation(),_.k(x,_.adS)&&!v&&_.KE.instance)_.KE.instance.resolveCommand(x,g);else if(_.C("kevlar_command_handler_formatted_string")&&!v&&_.KE.instance&&VUQ(x))v=z.find(function(G){return!!G.is})||I.target,I={form:Object.assign({},g,{event:I,
element:v,originatingNode:l})},_.KE.instance.resolveCommand(x,I);else{x=_.MX(I);I=[];for(v=0;v<x.length;v++)(M=x[v].is)&&I.push(M);ey$({parents:I.join(","),text:l.innerText},function(){_.gC(l,"yt-navigate",g)})}}};
joG=function(z){if(z=ASH(z))LmQ(z),An$(z.href)};
ASH=function(z){z=_.MX(z);for(var l,I=0;I<z.length;I++)if(l=z[I],l.tagName==="A"&&l.classList.contains("yt-simple-endpoint")){if(!l.data)break;return l}return null};
Yl=function(z){return z.shiftKey||z.altKey||z.metaKey||z.ctrlKey};
JSf=function(z,l){var I={itct:l.clickTrackingParams};_.C("kevlar_client_side_screens")&&(!_.k(l,_.FN)||_.C("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(l));_.C("enable_unknown_lact_fix_on_html5")&&_.pG().resolve(_.MB(_.TH))&&(I.lact=_.p2());$mS(I);_.vu(z,I)};
LmQ=function(z){z.href&&Object.keys(z.data).length!==0&&JSf(z.href,z.data)};
VUQ=function(z){for(var l=_.D(zlf),I=l.next();!I.done;I=l.next())if(z[I.value])return!1;return!0};
_.l35=function(z,l){return _.Cc(z.entities,"markersEngagementPanelSyncEntity",l)};
I3f=function(z,l){return _.Cc(z.entities,"fantasyWinProbabilityEntity",l)};
bhS=function(z,l){return _.Cc(z.entities,"fantasyTeamEntity",l)};
vGx=function(z,l){return _.Cc(z.entities,"fantasyPlayerEntity",l)};
M4Q=function(z,l){return _.Cc(z.entities,"booleanEntity",l)};
psf=function(z,l){return _.Cc(z.entities,"qrCodeEntity",l)};
DfQ=function(z){return _.Cc(z.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
xfQ=function(){if(cr)return cr;if(window.lottie)return cr=Promise.resolve(window.lottie);var z=_.Pd(_.sZ("LOTTIE_URL"));return z?cr=new Promise(function(l,I){var b=document.createElement("script");b.addEventListener("load",function(){l(lottie)});
b.addEventListener("error",function(v){var M="Lottie library failed to load.";v?v.message&&(M+=" Original description: "+v.message,_.hK(v,M)):v=Error(M);_.PW(v);I(v)});
b.setAttribute("async","");_.Me(b,z);document.head.appendChild(b)}):Promise.reject(Error("xh"))};
Ohf=function(){return cr?cr:xfQ()};
gGf=function(z){if(z)switch(z){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.C("kevlar_use_wil_icons"))return z=(z=DfQ(_.vF().getState()))&&z.animationLightUrl&&z.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:z.animationLightUrl,pathDarkTheme:z.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,z?z:SO.get("LIKE");break;case "LIKE_DELHI_PLAYER":return SO.get("LIKE_DELHI_PLAYER")}};
Gm$=function(z){var l=gGf(z);if(l)return l;switch(z){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return SO.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return SO.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return SO.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return SO.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return SO.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return SO.get("NOTIFICATION_BELL")}};
N87=function(z,l){if(!z.closest)return!1;l=!!gGf(l);return _.sZ("ID_TOKEN")&&l?!!z.closest("segmented-like-dislike-button-view-model")||!!z.closest("yt-player-quick-action-buttons"):!1};
ujH=function(z,l){if(!z||EG1)l=!1;else{var I;if(!(I=N87(z,l)))if(z.closest)if(I=!_.sZ("ID_TOKEN"),z=z.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!z)I=!1;else{var b;I=((b=z.data)==null?void 0:b.targetId)==="notification-bell"&&l!=="EXPAND_MORE"}else I=!1;l=I}return l};
Zhu=function(z){var l,I;return _.O(function(b){switch(b.nextAddress){case 1:return _.RL(b,2),b.yield(fetch(z),4);case 4:return l=b.yieldResult,b.yield(l.json(),5);case 5:return b.return(b.yieldResult);case 2:I=_.XP(b),_.PW(I),_.qe(b)}})};
HhY=function(z,l){var I,b,v;return _.O(function(M){if(M.nextAddress==1)return(I=l?z.pathDarkTheme:z.path)?M.yield(Promise.all([Zhu(I),xfQ()]),2):M.return();b=M.yieldResult;v=b[0];o2.set(I,v);_.qe(M)})};
f3Y=function(z,l,I,b){function v(x,g){if(l.value===g&&!l.cancelled&&z!=null&&z.value){for(;z.value.firstChild;)z.value.removeChild(z.value.firstChild);z.value.classList.add("ytSpecIconShapeHost");x(z.value,b)}}
var M=_.yLS(_.pG().resolve(_.mh),I);typeof M==="function"?(l.value=null,v(M,null)):(l.value=M,M.then(function(x){v(x,M)}))};
km$=function(z,l){var I=document.createElement("div"),b=_.T3(I,function(){return _.N(_.E,{cond:z,then:function(v){return _.N(C$Y,{data:v,options:l})}})},"D");
return[I,b]};
_.Pr=function(z,l){if(l){var I={};RlG.forEach(function(b){b=mfQ(l,b,"--yt-lightsource-");Object.assign(I,b)});
KR1.forEach(function(b){b=mfQ(l,b,"--yt-basic-");Object.assign(I,b)});
_.R8(z,I)}};
mfQ=function(z,l,I){var b={};b[I+_.KQ(l)]=z&&z[l]?_.aD(z[l]):"";return b};
_.sW=function(z,l,I){hN[z]||(hN[z]={});hN[z][l]=I};
_.ro=function(z){hN[z]||(hN[z]={});return hN[z]};
t4Q=function(z){if(!z)return{};var l=z.foregroundTitleColor,I=z.backgroundColor;z=z.borderColor;var b="text";z?b="outline":I&&(b="filled");return{type:b,customColors:{color:l?_.aD(l):void 0,backgroundColor:I?_.aD(I):void 0,borderColor:z?_.aD(z):void 0}}};
FRp=function(z){var l=z.renderer;var I=z.element;var b=z.commandController;var v=z.onTapCallback;var M=z.skipCommandHandling;var x=z.overrides;var g=z.forceIcon;var G=z.forceModernIconButton;var u=z.forceDisabled;var Z=z.isSubscribe===void 0?!1:z.isSubscribe;var H=z.isPressed===void 0?!1:z.isPressed;var y=z.useButtonSize===void 0?!1:z.useButtonSize;z=B8p(l);Z&&(z.style="mono",z.type="filled");g=!l.icon||!g&&l.text?l.icon?l.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:G?"icon-only":"icon-only-40";g==="icon-only-40"&&(z.type="text");var f;G=Object;Z=G.assign;y=Xsp(l,y);H=!!l.isSelected||!_.C("web_propagate_is_pressed_killswitch")&&!!H;var R=l.isSelected!==void 0;u=u===void 0?l.isDisabled:u;var F=l.text?_.$C(l.text):void 0;var Y,c,d,V=((Y=l.accessibilityData)==null?void 0:(c=Y.accessibilityData)==null?void 0:c.label)||((d=l.accessibility)==null?void 0:d.label);Y=V?V:_.ID(l.text);I=q6H(l,I,b,v,M);b=ih1(l);b!=null&&b.length?(b=_.LE({innertubeCommand:zjS(b),
forceNewState:!0}),b=Ui(b)?b:void 0):b=void 0;return Z.call(G,{},z,y,{iconPosition:g},x,{focused:!1,toggled:H,toggleable:R,disabled:u,formattedButtonText:F,accessibilityLabel:Y,onTap:I,aTagConfig:b},t4Q((f=l.colorData)==null?void 0:f.basicColorPaletteData),{oneOffCustomTextWrap:l.oneOffCustomTextWrap})};
q6H=function(z,l,I,b,v){return function(M){var x=ih1(z);b(x,M);if(!v){x=_.D(x);for(var g=x.next();!g.done;g=x.next())Qe(g.value,{form:{element:l,event:M},commandController:I})}}};
ih1=function(z){var l=[];z.command&&l.push(z.command);z.serviceEndpoint&&l.push(z.serviceEndpoint);z.navigationEndpoint&&l.push(z.navigationEndpoint);return l};
Xsp=function(z,l){if(l)switch(z.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(z.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
B8p=function(z){switch(z.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"}}};
QsQ=function(z,l){return typeof z!=="object"||z===null?!1:Object.keys(l).every(function(I){return I in z})};
_.$l=function(z){return Object.fromEntries(Object.keys(z).map(function(l){return[l,l]}))};
Y65=function(z,l,I){return SXY(I,function(b,v){return function(M){var x=_.AT.apply(1,arguments);return QsQ(M,z)?v.apply(null,[M[l]].concat(_.ht(x))):v.apply(null,[M].concat(_.ht(x)))}})};
_.eO=function(z){return function(l,I){return Y65(z,l,I)}};
_.wo=function(z){return z!=null&&z.watch?z.watch.isTheaterMode:!1};
_.AN=function(z){return z!=null&&z.watch?z.watch.isWatchFullscreen:!1};
_.Wr=function(z){z=_.T8t(z);return _.C("web_watch_enable_single_column_grid_view")?z:!1};
_.T8t=function(z){return z.watch.isWatchNarrowWidth};
_.cLp=function(z){return z.watch.openEngagementPanels};
_.nK=function(z){return _.kz(function(){YHp()();return SHp(z)},{debugName:"d8B62c"},"wfRQAb")};
LK=function(z,l){return _.Cc(z.entities,"likeStatusEntity",l)};
S6x=function(z,l){return _.Cc(z.entities,"likeCountEntity",l)};
_.UW=function(z,l){return _.Cc(z.entities,"stringEntity",l)};
df5=function(z,l){return _.Cc(z.entities,"dataFreshnessEntity",l)};
oGY=function(z,l){if(!z)return!1;var I,b=(I=_.k(z,_.CM))==null?void 0:I.signal;if(b&&l.signalEndpointMap)return!!l.signalEndpointMap[b];var v;if((I=(v=_.k(z,_.a2))==null?void 0:v.request)&&l.continuationEndpointMap)return!!l.continuationEndpointMap[I];for(var M in z)if(l.commandEndpointMap[M])return!0;return!1};
P$1=function(z,l){if(l.streamingEndpointMap)for(var I in z)if(l.streamingEndpointMap[I]&&(z=l.streamingEndpointMap[I]))return z()};
hlG=function(z,l){var I,b=(I=_.k(z,_.CM))==null?void 0:I.signal;if(b&&l.signalEndpointMap&&(I=l.signalEndpointMap[b]))return I();var v;if((I=(v=_.k(z,_.a2))==null?void 0:v.request)&&l.continuationEndpointMap&&(v=l.continuationEndpointMap[I]))return v();for(var M in z)if(l.commandEndpointMap[M]&&(z=l.commandEndpointMap[M]))return z()};
ss1=function(z){var l={"Content-Type":"application/json"};_.sZ("EOM_VISITOR_DATA")?l["X-Goog-EOM-Visitor-Id"]=_.sZ("EOM_VISITOR_DATA"):_.sZ("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=_.sZ("VISITOR_DATA"));l["X-Youtube-Bootstrap-Logged-In"]=_.sZ("LOGGED_IN",!1);_.sZ("DEBUG_SETTINGS_METADATA")&&(l["X-Debug-Settings-Metadata"]=_.sZ("DEBUG_SETTINGS_METADATA"));if(z!=="cors"){var I=_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME");I&&(l["X-Youtube-Client-Name"]=I);(I=_.sZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(l["X-Youtube-Client-Version"]=
I);(I=_.sZ("CHROME_CONNECTED_HEADER"))&&(l["X-Youtube-Chrome-Connected"]=I);(I=_.sZ("DOMAIN_ADMIN_STATE"))&&(l["X-Youtube-Domain-Admin-State"]=I)}_.rr("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(z=_.sZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=z):z!=="cors"&&_.rr("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(z=_.sZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=z);return l};
rLY=function(z,l){l.watchNextResponse||l.reelItemWatchResponse?l.watchNextResponse?z.content=l.watchNextResponse:z.content=l.reelItemWatchResponse:l.playerResponse?z.player=l.playerResponse:l.reelWatchSequenceResponse&&(z.reelSequence=l.reelWatchSequenceResponse)};
_.Ve=function(z){if(!z)return null;for(var l=[],I=0;I<z.textSegments.length;I++){var b=z.textSegments[I];b.text?l.push(b):b.emojiId&&l.push({emoji_id:b.emojiId})}return{text_segments:l}};
WRH=function(z,l,I,b,v,M,x){M=M===void 0?[]:M;var g=new _.jO;g.endpoint=I;if(!I)return _.oy(new _.qB("handle undefined endpoint",l.tagName)),g;var G=j0H(I);G.length&&(_.ZE(z,G,l,b),g.actions=G);I.loggingUrls&&I.loggingUrls.forEach(function(Z){Z.baseUrl&&Lp(Z.baseUrl,Z.attributionSrcMode)});
G=!_.C("web_skip_impression_click_killswitch")&&b&&b.impression;if(I.clickTrackingParams&&!$fG(I)&&!el$(l)&&!G&&(G=_.iY(),!_.JN(G,l))){var u=l.getScreenLayer&&l.getScreenLayer();u?G.clickCommand(I,null,u):G.clickCommand(I,null)}G=!1;for(u=0;u<M.length;u++)if((0,M[u])(l,I,b)){G=!0;break}!G&&wsG(I)&&(g.ajaxPromise=AL1(z,l,I,b,v,x));return g};
el$=function(z){var l;return(z=(l=z.data)==null?void 0:l.navigationEndpoint)&&!!z.clickTrackingParams};
$fG=function(z){var l=_.k(z,_.CM);if(l&&(l=l.signal)&&nGQ.indexOf(l)>=0)return!0;for(var I in z)if(LR5.indexOf(I)>=0)return!0;return!1};
wsG=function(z){var l;if(((l=_.k(z,_.CM))==null?void 0:l.signal)==="CLIENT_SIGNAL")return!1;for(var I in z)if(Uf7.indexOf(I)>=0)return!1;z=Object.keys(z);return z.length===1&&z[0]==="loggingUrls"?!1:!0};
bv$=function(z,l,I,b,v,M,x){var g=_.zS.instance;if(g&&_.l1(g,b))var G=_.I0(g,b,v).then(function(Z){return(Z==null?0:Z.data)?Z:{data:Z}});
else G=z.requestDataForServiceEndpoint(b,v),_.k(b,a3Y)||_.k(b,V4p)||_.k(b,_.js7)||_.k(b,JLY)||_.PW(new _.qB("No RequestBuilder for endpoint",b));var u=_.b1();u.promise.thenCatch(function(){var Z=_.oY(b,"action")||_.oY(b,"command")||_.oY(b,"endpoint");Z&&(Z=b[Z],Z.hasOwnProperty("onFailureAction")?_.ZE(l,[Z.onFailureAction],I):Z.hasOwnProperty("onFailureCommand")&&_.ZE(l,Z.onFailureCommand,I));G.cancel("Resolver promise rejected")});
G.then(function(Z){if(Z){var H=Z.error;if(H){if(M&&M.onServerError)M.onServerError(b,Z);u.reject(new _.qB("Response error",b,H))}else if(Z=Z.data)if(H=Z.error){if(M&&M.onServerError)M.onServerError(b,Z);u.reject(new _.qB("Returned error",b,H))}else{zzG(l,I,Z,b);lDH(Z);if(H=V9G(Z))for(var y=_.D(H),f=y.next();!f.done;f=y.next()){f=f.value;var R=_.pG().resolve(_.MB(IDt))||vU;if(!_.zS.instance||!R.some(function(Y){return!!_.k(b,Y)})||_.C("kevlar_response_processor_allowlist_killswitch")){var F=R=void 0;
((F=_.k((R=f)==null?void 0:R.commandMetadata,_.kB))==null?0:F.sendPost)?_.uJ(l,[f]):_.ZE(l,[f],I)}}(y=_.k(Z==null?void 0:Z.frameworkUpdates,Mv))&&x&&x(y);if(M&&M.onSuccess)M.onSuccess(b,Z);u.resolve(new _.pY(Z,H))}}else u.reject(new _.qB("Invalid service endpoint provided",b))},function(Z){u.reject(Z)});
return u.promise};
lDH=function(z){var l;(z=(l=_.k(z==null?void 0:z.onResponseReceivedCommand,_.vDS))==null?void 0:l.continuationItems)&&(z==null?void 0:z.length)===1&&_.k(z[0],Md$)&&_.sK("so_r",void 0,"search_overview_answer")};
AL1=function(z,l,I,b,v,M){var x;return(x=l.getNetworkManager&&l.getNetworkManager()?l.getNetworkManager():_.pG().resolve(_.MB(_.wD)))?bv$(x,z,l,I,b,v,M):_.Ph("No network manager.")};
zzG=function(z,l,I,b){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var v;(_.k(b,pkt)||_.k(b,D0f)||_.k(b,x01))&&b.clickTrackingParams?v=_.ch(b.clickTrackingParams):_.C("web_graft_to_parent_command")&&b.clickTrackingParams&&(v=_.ch(b.clickTrackingParams));var M;b=(M=l.getScreenLayer)==null?void 0:M.call(l);l=_.iY().graftServerVe(I,v,b);_.EK(z,"yt-store-grafted-ve-action",[l])}};
_.Ov$=function(z){var l=new Image;return new _.yK(function(I,b){l.addEventListener("load",function(){I()});
l.addEventListener("error",function(){b()});
l.src=z})};
gDH=function(z){return!!z};
Gax=function(z){return!!z};
NvS=function(z,l,I){var b=z.rowIndex;b!==void 0&&_.EK(z.hostElement,"yt-section-reactive-dismissal",[b,l,I])};
_.DX=function(z,l,I){z=_.D(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;if(b===l)break;for(var v=_.D(I),M=v.next();!M.done;M=v.next())if(M=M.value,b.tagName===M||!_.C("web_event_button_role_check_killswitch")&&b.role==="button"&&M==="BUTTON")return!0}return!1};
_.xU=function(z,l,I){z=_.D(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;if(b===l)break;for(var v=_.D(I),M=v.next();!M.done;M=v.next())if(b.id===M.value)return!0}return!1};
_.GS=function(){var z=_.pG().resolve(_.MB(_.OB));return z?(z=z.getCurrentPage())?_.g5(z):null:null};
_.Nv=function(){var z=_.GS();if(!z){var l=_.pG().resolve(_.MB(_.OB)),I=l?typeof l:"no page manager";l=l?l.getCurrentPage():null;I=new _.qB("Player is missing when requested.",I,l?l.tagName:"no page");_.dE(I)}return z};
_.g5=function(z){return z&&z.getPlayer?z.getPlayer():null};
ED$=function(z,l){z={args:{raw_player_response:z}};l&&(z.args=Object.assign({},z.args,l));return z};
u8k=function(z){if(z.args){if(z.args.raw_player_response)return z.args.raw_player_response;if(z.args.player_response)return JSON.parse(z.args.player_response)}};
_.Zvt=function(z,l){var I={url:"/watch?v="+z.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};z.playlistId&&(I.url+="&list="+z.playlistId);z.playerParams&&(I.url+="&pp="+z.playerParams);z={watchEndpoint:z,commandMetadata:{webCommandMetadata:I}};l&&(z.clickTrackingParams=l);return z};
yc5=function(){return HvS||!!_.W8("yt.player.Application")};
CxQ=function(){return fDY||!!document.querySelector("link#player-css")};
RzY=function(){function z(){HvS=!0;kaG.resolve()}
var l,I;return _.O(function(b){kaG||(kaG=new _.yX,yc5()?z():(l=document.createElement("script"),l.addEventListener("load",z),I=_.cl(_.sZ("PLAYER_JS_URL")),_.Me(l,I),document.head.appendChild(l)));return b.return(kaG.promise)})};
Kz1=function(){function z(){fDY=!0;m0Q.resolve()}
if(!m0Q)if(m0Q=new _.yX,CxQ())z();else{var l=document.createElement("link");l.id="player-css";l.addEventListener("load",z);var I=_.cl(_.sZ("PLAYER_CSS_URL"));_.xd(l,I,"stylesheet");document.head.appendChild(l)}return m0Q.promise};
td$=function(){return yc5()&&CxQ()?Promise.resolve([]):Promise.all([RzY(),Kz1()])};
Bvu=function(z,l,I){var b={args:{}};z&&(b.args.raw_player_response=z);l&&(b.args.raw_watch_next_response=l);I&&(b.args=Object.assign({},b.args,I));return b};
Fzf=function(z,l,I){var b=!1;b=b===void 0?!0:b;z=typeof z==="string"?_.EB(document,z):z;var v=Xkk+"_"+_.UY(z),M=qm$[v];if(M&&b)return ivS(l,I)?M.api.loadVideoByPlayerVars(l.args||null):M.loadNewVideoConfig(l),M.api;M=new u1(z,v,l,I,void 0);qm$[v]=M;M.addOnDisposeCallback(function(){delete qm$[M.getId()]});
return M.api};
ivS=function(z,l){return l&&l.serializedExperimentFlags?l.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):z&&z.args&&z.args.fflags?z.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
QHt=function(){var z=new _.yX;z.resolved=!1;var l=z.resolve;z.resolve=function(I){z.resolved=!0;l(I)};
return z};
TvH=function(z){var l={};Ym1().install((l.document_disposed={callback:z},l))};
ZX=function(z,l){if(!z&&Math.random()<=_.OI("kevlar_unified_player_logging_threshold")){z=Error("zh`"+(l?l:"Unspecified error"));if(_.C("kevlar_unified_player_throw_errors"))throw z;_.PW(z)}};
_.cc7=function(){var z=_.W8("ytDebugData.callbacks");z||(z={},_.vd("ytDebugData.callbacks",z));return z};
d0k=function(z,l){var I=_.cc7();if(_.C("web_dd_iu")||SmQ.includes(z))I[z]=l};
oDk=function(){return _.O(function(z){return z.return({isLeader:_.CV7(_.vF().getState()),c:_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.sZ("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
PxQ=function(){var z;_.O(function(l){if(l.nextAddress==1)return d0k("APP_STATE",oDk),l.yield(_.pG().resolve(_.HU),2);z=l.yieldResult;d0k("PI",function(){return _.O(function(I){return I.return(z.getVideoStats())})});
_.qe(l)})};
hz$=function(z){var l=_.bJ(_.UU(_.v7.location.href));z=_.bJ(_.UU(z));return _.C("kevlar_clear_non_displayable_url_params")?l==yo(z):yo(l)==yo(z)};
yo=function(z){var l=_.sHt(z);z=z.slice(0);var I=["frags"];_.C("kevlar_hide_pp_url_param")&&I.push("pp");_.C("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.D(I);for(var b=I.next();!b.done;b=I.next())b=b.value,z=_.Mu(_.bJ(z),b);return _.bJ(z)+(l?"#"+l:"")};
fY=function(z,l){l=Number(l)*1E3;var I=Math.round((0,_.Dr)()),b=I.toString();z={innertubeResponse:z,serverDateTimestampMs:b,lastModifiedTimestampMs:b,expireTimestampMs:(I+l).toString()};if(l=_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME"))z.clientName=l;return z};
$0k=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++rc5};
ezY=function(z){return!isNaN(z)&&z>0};
Ac7=function(){_.C("web_adaptive_repeat_ase")&&wku&&_.cW("applicationStarted",wku)};
_.Wzk=function(){var z=_.h8(),l=_.sU();l&&z&&_.j_(l,[z],!0)};
Lzp=function(z){return z&&nD$.some(function(l){return z.includes(l)})};
zOY=function(z){var l=_.k(z,_.AK);if(!l)return!1;var I=l.url,b=l.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.dE(Error("Eh")),!1;if(l.target==="TARGET_NEW_WINDOW"){var v={};_.C("resolve_url_parent_tracking_params")&&(!_.lf(I)||I3(window.location.href,I))&&(v={endpoint:z,itct:z.clickTrackingParams});$mS(v);z=null;try{if(b){a:{var M=I,x=v;b=b===void 0?!1:b;x&&_.vu(M,x);var g=_.eA(M),G=_.hT(g);M!=G&&_.nP(Error("gg`"+M));M=G;try{if(b){G=M;G=cxQ(G);JY(G);z=_.zg(window,G,"_blank",
"attributionsrc");break a}}catch(y){_.$P(y)}JY(M);z=_.zg(window,g,"_blank")}U07(_.pG().resolve(aDx),z,I);return!0}}catch(y){_.dE(y)}_.vu(I,v);v={target:"_blank",noopener:_.C("set_window_noopener_ks")&&!l.allowOpener};l=window;g=ou(I)?I:_.eA(typeof I.href!="undefined"?I.href:String(I));z=self.crossOriginIsolated!==void 0;M="strict-origin-when-cross-origin";window.Request&&(M=(new Request("/")).referrerPolicy);G=v.noreferrer;if(z&&G&&M==="unsafe-url")throw Error("ue");M=G&&!z;G=v.target||I.target;b=
[];x=[];var u=!1;for(H in v){var Z=v[H];switch(H){case "width":case "height":case "top":case "left":b.push(H+"="+Z);break;case "target":break;case "noopener":case "noreferrer":Z?x.push(H):(u=!0,x.push(H+"=false"));break;case "attributionsrc":b.push(H+(Z?"="+Z:""));break;default:b.push(H+"="+(Z?1:0))}}var H=G!==void 0&&!["_blank","_self","_top","_parent",""].includes(G);H=qp()&&H;Vdu&&z&&b.length===0&&x.length>0&&!H&&!u?(x.length===2&&(x=["noreferrer"]),_.zg(l,g,G,x[0]),z=jHG()):(H=b.join(","),_.Y5()&&
l.navigator&&l.navigator.standalone&&G&&G!="_self"?(H=_.tA("A"),nD(H,g),H.target=G,M&&(H.rel="noreferrer"),((v=v.attributionsrc)||v==="")&&H.setAttribute("attributionsrc",v),v=document.createEvent("MouseEvent"),v.initMouseEvent("click",!0,!0,l,1),H.dispatchEvent(v),H=jHG()):M?(H=_.zg(l,"",G,H),l=_.hT(g),H&&(H.opener=null,l===""&&(l="javascript:''"),l='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+CY(l)+'">',l=au(l),(v=H.document)&&v.write&&(v.write(VR(l)),
v.close()))):((H=_.zg(l,g,G,H))&&v.noopener&&(H.opener=null),H&&v.noreferrer&&(H.opener=null)),z=H);U07(_.pG().resolve(aDx),z,I);return!0}H=_.yI(I);H=Lzp(H)||I==="https://studio.youtube.com/";l=!(!_.lf(I)||I3(window.location.href,I));v=I.indexOf("disable_polymer=1")>=0;if(l||v||H)JY(I),dC(),_.z9(I,void 0,void 0,window.top,Jck);else return _.PW(new _.qB("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",z)),!1;return!0};
_.bXu=function(z,l){l=l===void 0?0:l;if(!(_.k(z,lw7)||_.k(z,IwH)||_.k(z,_.AK)&&_.k(z,_.AK).url))return!1;var I,b=(I=_.k(z,_.AK))==null?void 0:I.url;I=b?{externalLinkData:{url:b}}:null;return _.iY().clickCommand(z,I,l)};
va5=function(z,l){return _.Cc(z.entities,"subscriptionStateEntity",l)};
MVt=function(z,l){return _.Cc(z.entities,"subscriptionNotificationStateEntity",l)};
pj7=function(z,l){return _.Cc(z.entities,"upcomingEventReminderStateEntity",l)};
D3S=function(z,l){return _.Cc(z.entities,"engagementToolbarSurfaceEntityPayload",l)};
x3k=function(z,l){return _.Cc(z.entities,"triStateButtonStateEntityPayload",l)};
OX5=function(z,l){return _.Cc(z.entities,"commerceCartCheckoutButtonEntity",l)};
_.ga5=function(z,l){return _.Cc(z.entities,"playlistLoopStateEntity",l)};
GUS=function(z,l){return _.Cc(z.entities,"commandEntity",l)};
Eau=function(z,l,I,b,v){v=v===void 0?{}:v;return function(M){var x,g;var G=((x=z.loggingDirectives)==null?0:(g=x.clientVeSpec)==null?0:g.uiType)?_.kU(z.loggingDirectives.clientVeSpec.uiType):void 0;v.clickedVisualElement||(v.clickedVisualElement=G);G=Nu1(z,l);I(G,M);G=_.D(G);for(x=G.next();!x.done;x=G.next()){x=x.value;g=b;var u=M,Z=v;Z.form?Z.form.event=u:Z.form={element:g,event:u};Qe(x,Z)}}};
Nu1=function(z,l){var I=[];l?(z.toggledCommand&&I.push(z.toggledCommand),z.toggledServiceEndpoint&&I.push(z.toggledServiceEndpoint)):(z.defaultCommand&&I.push(z.defaultCommand),z.defaultServiceEndpoint&&I.push(z.defaultServiceEndpoint),z.defaultNavigationEndpoint&&I.push(z.defaultNavigationEndpoint));return I};
uCQ=function(z,l){var I=z.toggledStyle||z.style,b;switch((b=l?I:z.style)==null?void 0:b.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"}}};
_.R0=function(){return _.O(function(z){return z.nextAddress==1?z.yield(_.pG().resolve(_.HU),2):z.return(_.pG().resolve(ZXt)())})};
_.mE=function(){return _.pG().resolve(ZXt)()};
_.KY=function(){return dr(function(){return{lottieEl:void 0}})};
HX5=function(z,l){return z.startsWith(l.uniqueId)};
yj$=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(_.R0(),2);l=b.yieldResult;if((I=l)==null||!I.addEventListener)return tR(),b.return();l.addEventListener("onCueRangeEnter",z);_.qe(b)})};
fw$=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(_.R0(),2);l=b.yieldResult;if((I=l)==null||!I.removeEventListener)return tR(),b.return();l.removeEventListener("onCueRangeEnter",z);_.qe(b)})};
CDf=function(z){var l,I,b,v,M;_.O(function(x){if(x.nextAddress==1)return x.yield(_.R0(),2);l=x.yieldResult;if((I=l)==null||!I.addCueRange)return tR(),x.return();b=_.D(z.timings);for(v=b.next();!v.done;v=b.next())M=v.value,l.addCueRange(z.uniqueId+"-"+M,M/1E3,(M+100)/1E3);_.qe(x)})};
kUG=function(z){var l,I,b,v,M;_.O(function(x){if(x.nextAddress==1)return x.yield(_.R0(),2);l=x.yieldResult;if((I=l)==null||!I.removeCueRange)return tR(),x.return();b=_.D(z.timings);for(v=b.next();!v.done;v=b.next())M=v.value,l.removeCueRange(z.uniqueId+"-"+M);_.qe(x)})};
ROS=function(){var z,l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(_.R0(),2);z=b.yieldResult;if((l=z)==null||!l.getPlayerState)return tR(),b.return();I=z.getPlayerState();return b.return(I===2)})};
tR=function(){_.PW(new _.qB("Smartimation player does not exist or is corrupted"))};
m3Y=function(){try{var z;return(z=window.CSS)!=null&&z.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(l){return _.PW(new _.qB("Smartimation CSS.supports threw an error")),!1}};
FNH=function(z,l,I,b,v){var M=z.playlistId?KNu:tVQ;l=l();I=I();v=!!z.videoId&&v()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.ii(l))return Bu$({data:z,actionType:M,disabled:v},I);if(z.videoId&&b())return XjH({data:z,actionType:M,disabled:v});switch(l){case "TRANSFER_STATE_UNKNOWN":return XjH({data:z,actionType:M,disabled:v});case "TRANSFER_STATE_FAILED":return z.videoId?q1x({data:z,actionType:M,disabled:v}):iXQ({data:z,actionType:M,disabled:v});case "TRANSFER_STATE_COMPLETE":return iXQ({data:z,
actionType:M,disabled:v});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Bu$({data:z,actionType:M,disabled:v},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return z.videoId?q1x({data:z,actionType:M,disabled:v}):XjH({data:z,actionType:M,disabled:v});default:return XjH({data:z,actionType:M,disabled:v})}};
QzS=function(z,l){var I=z.onTapCommand,b=_.Wh(I);if(z.videoId&&_.k(b,_.qv))return _.k(b,_.qv).action=l,I;z.playlistId&&_.k(b,_.i1)&&(_.k(b,_.i1).action=l);return I};
XjH=function(z){var l=z.data;var I=z.actionType;z=z.disabled;return{text:Y1x,iconType:"OFFLINE_DOWNLOAD",onTap:QzS(l,I.ACTION_ADD),disabled:z}};
Bu$=function(z,l){var I=z.data;var b=z.actionType;z=z.disabled;var v="OFFLINE_DOWNLOAD";l>=0&&l<=.1?v="OFFLINE_DOWNLOADING_ZERO":l>.1&&l<=.3?v="OFFLINE_DOWNLOADING_TWENTY":l>.3&&l<=.5?v="OFFLINE_DOWNLOADING_FORTY":l>.5&&l<=.7?v="OFFLINE_DOWNLOADING_SIXTY":l>.7&&l<1?v="OFFLINE_DOWNLOADING_EIGHTY":l===1&&(v="OFFLINE_PIN");return{text:TuS,iconType:v,onTap:QzS(I,b.ACTION_REMOVE_WITH_PROMPT),disabled:z}};
iXQ=function(z){var l=z.data;var I=z.actionType;z=z.disabled;return{text:cjH,iconType:"OFFLINE_PIN",onTap:QzS(l,I.ACTION_REMOVE_WITH_PROMPT),disabled:z}};
q1x=function(z){var l=z.data;var I=z.actionType;z=z.disabled;return{text:S1Q,iconType:"OFFLINE_DOWNLOAD",onTap:QzS(l,I.ACTION_RETRY),disabled:z}};
_.F1=function(z,l){var I=YHp();return _.kz(function(){I();return SHp(z,[_.d2(l)||""])},{debugName:"LUZslf"},"Z105t")};
d3$=function(z){var l=_.F1(_.wg,function(){return z().videoId}),I=_.F1(_.Am,function(){return z().playlistId});
return function(){return z().videoId?l:z().playlistId?I:_.D(_.Z_("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
oau=function(z){var l=_.F1(Wg,function(){return z().videoId}),I=_.F1(_.fLQ,function(){return z().playlistId});
return function(){return z().videoId?l:z().playlistId?I:_.D(_.Z_(0,void 0,"K4tgOc")).next().value}};
PDp=function(z){var l=_.F1(_.qDQ,function(){return z().videoId});
return function(){return z().videoId?l:_.D(_.Z_(!1,void 0,"Oaxwcf")).next().value}};
hOu=function(z){var l=_.F1(R5$,function(){return z().videoId});
return function(){return z().videoId?l:_.D(_.Z_("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
szQ=function(){return{}};
_.AjQ=function(z,l,I){return{submitForm:function(){var b;return _.O(function(v){if(v.nextAddress==1){b=rj$(z());if(!b)return v.return();if(b.onSubmit)return b.onSubmit(),v.return();if(!b.submitConfig||!b.formData)return v.jumpTo(0);b.disableDuringSubmission&&$3H(z(),!0);eOf(l);return v.yield(wjQ(b.submitConfig,b.formData()),3)}eOf(I);b.disableDuringSubmission&&$3H(z(),!1);return v.return()})},
isValid:function(){var b=rj$(z());if(b){var v;return!((v=b.isValid)==null||!v.call(b))}return!0},
isSubmitting:function(){var b,v;return!!((b=rj$(z()))==null?0:(v=b.isSubmitting)==null?0:v.call(b))}}};
_.Qo=function(){if(!WNx){var z=_.D(_.Z_(new Map,void 0,"yE61ae"));WNx=z.next().value;na$=z.next().value}return WNx};
_.LN1=function(z){na$(new Map(z))};
rj$=function(z){if(z)return _.Qo()().get(z)};
wjQ=function(z,l){var I;return _.O(function(b){return l?(I=_.pG().resolve(_.MB(U3u)))&&z.submitId?b.yield(I.submitForm(z.submitId,l,awQ,z.params,z.clickTrackingParams),0):b.return():b.return()})};
$3H=function(z,l){if(z){var I=_.Qo();I().set(z,Object.assign({},I().get(z),{isSubmitting:function(){return l}}));
_.LN1(I())}};
eOf=function(z){if(z){var l=_.pG().resolve(_.DQ);l&&(z=_.Wh(z()))&&l.resolveCommand(z)}};
jz7=function(z,l){l=l===void 0?{shouldPersist:!0}:l;return{useUpdatableData:function(I,b){var v=[],M=_.D(_.Br(function(){var u=I();if(b!=null&&b.length&&v){var Z=v.length>0;for(var H=!1,y=0;y<b.length;y++){var f=b[y]();Z&&f!==v[y]&&(H=!0);v[y]=f}Z=H}else Z=!1;if(Z)_.YU.remove(G());else if(Z=_.YU.get(G()))return Z;return u})),x=M.next().value,g=M.next().value,G=_.kz(function(){return z(I())},void 0,"mX326");
_.Te(function(){if(G()!=null){VVt.set(G(),[x,g]);var u=G();_.cb(function(){VVt.delete(u)})}},"MgKPjb");
return[x,function(u){g(u);l.shouldPersist&&_.YU.set(G(),u)}]},
getData:function(I){var b;return(b=VVt.get(z(I)))==null?void 0:b[0]()},
updateData:function(I,b){I=z(I);var v=VVt.get(I);if(!v)return!1;var M=_.D(v);v=M.next().value;M=M.next().value;b=b(v());M(b);l.shouldPersist&&_.YU.set(I,b);return!0}}};
Jj5=function(z){var l=_.D(_.Z_(!0,void 0,"bKtO6d")),I=l.next().value;l.next();return function(){var b=mF(z.children());return _.N(_.E,{cond:I,then:function(){return b},
else:z.fallback})}()};
_.TS=function(z){var l=zrt(z),I=l.data,b=l.mapping,v=l.wrapper;l=l.pendingFallback;var M=function(){return lOQ(_.d2(I))},x=function(){var g=M(),G=[];
g=_.D(g);for(var u=g.next();!u.done;u=g.next()){var Z=void 0;u=u.value;var H=void 0;for(Z in u)if(!(!u).hasOwnProperty(Z)){H=Z;break}(Z=H)&&G.push(Z)}return G};
return z.data?_.N(Jj5,{fallback:l},function(){return _.N(_.qy,{each:x},function(g,G){var u=v?function(H){return v(function(){return b[g](H,G)},Z,G)}:function(H){return b[g](H,G)};
u.debugName||(u.debugName=String(g));if(!b[String(g)])return document.createComment("");u.componentType!==qM&&IOY(String(g));var Z=b8k(M,g,G);return _.N(u,{data:Z})})}):_.N(_.xP,null)};
zrt=function(z){var l=z.targetId||v3G(z.children);if(!z.data||!l||_.C("mweb_new_replaceables_killswitch"))return Object.assign({},z,{mapping:z.children,wrapper:void 0});var I="stamper-"+Mh1++,b=function(){var g;return(g=typeof z.targetId==="function"?z.targetId(I):z.targetId)!=null?g:I};
l=_.D(p5Y(function(){var g=lOQ(z.data());g.targetId=b;return g})).next().value;
var v=Object.assign({},(_.pG().resolve(_.MB(DUG))||{}).replaceableMapping,z.children);if(z.replacementWrapper){var M=v.notificationTextRenderer,x=v.notificationMultiActionRenderer;M&&(v.notificationTextRenderer=function(g,G){return z.replacementWrapper(M({data:g.data},G))});
x&&(v.notificationMultiActionRenderer=function(g,G){return z.replacementWrapper(x({data:g.data},G))})}return Object.assign({},z,{data:l,
mapping:v,wrapper:function(g,G,u){return FmQ({targetId:b,stamperIndex:u},g)}})};
b8k=function(z,l,I){var b;return _.kz(function(){var v=z()[I()];if(v)b=v[l];else return _.PW(new _.qB("Stamper failed to find "+String(l)+" at index "+I()+" of data array of length "+(z().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),b;return v[l]},void 0,"wgRPHd")};
v3G=function(z){z=_.D(Object.keys(z));for(var l=z.next();!l.done;l=z.next())if(l=l.value,xU$.includes(l)||O8Q.includes(l)||g3x.includes(l))return!0;return!1};
lOQ=function(z){return z?Array.isArray(z)?z:[z]:[]};
IOY=function(z){if(_.C("web_enable_renderer_logger")){var l;(l=_.pG().resolve(_.MB(GiQ)))!=null&&l.loggingEnabled&&!l.ids.has(z)&&l.ids.add(z)}};
N6Y=function(){var z,l;return(l=(z=_.pG().resolve(_.MB(_.I2)))==null?void 0:z())!=null?l:!1};
uc1=function(z,l){z=z===void 0?E3u:z;switch(l.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},z,{isOpen:l.payload});default:return z}};
H8f=function(z,l){z=z===void 0?Z8S:z;switch(l.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},z,{isAllowed:l.payload});default:return z}};
fO5=function(z,l){z=z===void 0?y1t:z;switch(l.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},z,{errorMessage:l.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},z,{title:l.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},z,{privacy:l.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},z,{isDisabled:l.payload});default:return z}};
kiY=function(z,l){z=z===void 0?Cj5:z;switch(l.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},z,{isOpen:l.payload});default:return z}};
mUY=function(z,l){z=z===void 0?RrG:z;switch(l.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},z,{isFullscreen:l.payload});case "SET_NAVIGATION_BUTTON":var I=l.payload.targetId,b=Object.assign({},z.navigationButtons);b[I]=l.payload.button;return Object.assign({},z,{navigationButtons:b});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},z,{topPanelId:l.payload});case "SET_SECONDARY_HEADER":return I=l.payload.panelId,b=Object.assign({},z.secondaryHeader),b[I]=l.payload.secondaryHeader,
Object.assign({},z,{secondaryHeader:b});default:return z}};
X5t=function(){return RR(Object.assign({},{voiceSearch:VDQ,engagementPanel:mUY,bottomSheet:uc1,cinematicSetting:H8f,shorts:M$7,drawerLayout:kiY,createPlaylist:fO5,locationCollection:KPY,reportChannel:thQ,reportForm:B6t},pL$))};
qTQ=function(z,l){_.ow.addLowPriorityJob(function(){var I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return _.RL(M,2),M.yield(xfQ(),4);case 4:return M.yield(fetch(z),5);case 5:return I=M.yieldResult,M.yield(I.json(),6);case 6:b=M.yieldResult;o2.set(z,b);requestAnimationFrame(function(){l(b)});
_.a3(M,0);break;case 2:v=_.XP(M),_.PW(v),_.qe(M)}})})};
i8x=function(z){var l={animationConfig:{},listeners:{}},I=function(){z(!0)};
l.listeners.data_failed=I;l.listeners.error=I;l.listeners.data_ready=function(){z(!1)};
return l};
YTx=function(z){var l=z.model;var I=z.subscribed;var b=z.isOverlay;var v=z.element;var M=z.commandController;var x=z.notificationState;if(I){var g,G;var u=(l==null?void 0:(g=l.buttonStyle)==null?void 0:g.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:l==null?void 0:(G=l.unsubscribeButtonContent)==null?void 0:G.buttonText}else{var Z;u=l==null?void 0:(Z=l.subscribeButtonContent)==null?void 0:Z.buttonText}a:{var H;switch(l==null?void 0:(H=l.buttonStyle)==
null?void 0:H.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":g="S";break a;default:g="M"}}a:if(b)b="overlay";else switch(l.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":b="overlay";break a;default:b="mono"}a:if(I)var y="tonal";else switch((y=l.buttonStyle)==
null?void 0:y.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":y="tonal";break a;default:y="filled"}return{style:b,type:y,state:l.disableSubscribeButton?"disabled":"active",size:g,focused:z.focused,toggled:I,accessibilityLabel:FP7(l,I,x),buttonText:u,iconPosition:l.disableNotificationBell?"none":"leading-trailing",onTap:QG7(l,I,v,M),disableTextEllipsis:!!z.disableTextEllipsis}};
QG7=function(z,l,I,b){return function(v){if(l){var M;var x=z.disableNotificationBell?_.Wh(z==null?void 0:(M=z.unsubscribeButtonContent)==null?void 0:M.onTapCommand):_.Wh(z==null?void 0:z.onShowSubscriptionOptions)}else{var g;x=_.Wh(z==null?void 0:(g=z.subscribeButtonContent)==null?void 0:g.onTapCommand)}x&&Qe(x,{form:{element:I==null?void 0:I.value},commandController:b});v.stopPropagation()}};
FP7=function(z,l,I){if(l){if(z==null?0:z.disableNotificationBell){var b;return z==null?void 0:(b=z.unsubscribeButtonContent)==null?void 0:b.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var v;return z==null?void 0:(v=z.bellAccessibilityData)==null?void 0:v.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var M;return z==null?void 0:(M=z.bellAccessibilityData)==null?void 0:M.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var x;return z==null?void 0:(x=
z.bellAccessibilityData)==null?void 0:x.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var g;return z==null?void 0:(g=z.bellAccessibilityData)==null?void 0:g.disabledLabel;default:var G;return z==null?void 0:(G=z.unsubscribeButtonContent)==null?void 0:G.accessibilityText}}else{var u;return z==null?void 0:(u=z.subscribeButtonContent)==null?void 0:u.accessibilityText}};
T6S=function(z){if(z){switch(z){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":z="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":z="NOTIFICATIONS_OFF";break;default:z="NOTIFICATIONS_NONE"}return z}};
c11=function(z,l,I){I.subscribed!==l&&((I=I.key)&&_.pE(_.cU("subscriptionStateEntity",I,{key:I,subscribed:l})),z.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:l})),l||_.Gb(z,"yt-unsubscribe-action"))};
dUf=function(z){z=_.k(_.Wh(z),_.S9);var l,I,b,v;return(v=_.k(z==null?void 0:(l=z.panelLoadingStrategy)==null?void 0:(I=l.inlineContent)==null?void 0:(b=I.sheetViewModel)==null?void 0:b.content,STf))==null?void 0:v.listItems};
o3k=function(z,l){if(z.onShowSubscriptionOptions&&l&&(z=dUf(z.onShowSubscriptionOptions),z!=null&&z.length)){var I=T6S(l);z.forEach(function(b){b=_.k(b,_.d5);var v,M,x,g,G=b==null?void 0:(v=b.leadingImage)==null?void 0:(M=v.sources)==null?void 0:(x=M[0])==null?void 0:(g=x.clientResource)==null?void 0:g.imageName;b&&G&&(b.isSelected=G===I)})}};
Pjx=function(z,l,I,b){l&&I?z.style.width=I+"px":!l&&b&&(z.style.width=b+"px")};
hr5=function(z,l,I){var b;(b=z.lottieEl)==null||b.goToAndPlay(0);var v;(v=l.lottieEl)==null||v.goToAndPlay(0);_.o0(_.ow,function(){var M;(M=I.lottieEl)==null||M.goToAndPlay(0)},300)};
sGG=function(z){return!(z==null||!z.iconName||(z==null?0:z.title))};
r1f=function(z,l,I,b){I&&_.ow.cancelJob(I);I=_.ow.addLowPriorityJob(function(){b(void 0)},5E3);
b(I);l&&z!==(l.likeStatus==="LIKE")&&l.key&&_.pE(_.cU("likeStatusEntity",l.key,{key:l.key,likeStatus:z?"LIKE":"INDIFFERENT",hadUserInteraction:z}))};
_.$UQ=function(z,l){return _.Cc(z.entities,"accountLinkStatusEntity",l)};
erS=function(z,l){return _.Cc(z.entities,"hatsSurveyEntity",l)};
w5Q=function(z,l){return _.Cc(z.entities,"hatsSurveyStateEntity",l)};
A1S=function(z,l){return _.Cc(z.entities,"quantityIncrementerEntity",l)};
WP1=function(z){switch(z){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
n35=function(z){switch(z){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}};
LP7=function(z){switch(z){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"}};
_.aOS=function(z){var l=_.OI("web_generic_client_event_wait_period ",0);l||(l=3E5);var I=UUk.get(z);!_.C("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.Dr)()-I<l||(UUk.set(z,(0,_.Dr)()),_.cW("genericClientExperimentEvent",{eventType:z}))};
Vhx=function(z){switch(z){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
jG7=function(z){if(!z)return"";var l,I=(l=_.pG().resolve(_.MB(_.I2)))==null?void 0:l(),b;if(!I&&((b=z.vibrantColorPalette)==null?0:b.iconInactiveColor))return VX(z.vibrantColorPalette.iconInactiveColor,"1");var v;return I&&((v=z.darkColorPalette)==null?0:v.iconInactiveColor)?VX(z.darkColorPalette.iconInactiveColor,"1"):z.color?VX(z.color,"1"):z.sampledThumbnailColor?(z=z.sampledThumbnailColor,"rgba("+z.red+","+z.green+","+z.blue+");"):""};
_.PU=function(z,l){if(!z.includes("DATE_PLACEHOLDER"))return z;var I=new Date(0);I.setUTCSeconds(l);return z.replace("DATE_PLACEHOLDER",J17(I))};
zD7=function(z,l,I){return function(b){var v=z.command;v&&(Qe(v,{form:{element:I}}),l([v],b))}};
Il$=function(z,l,I,b,v){return function(M){var x=llf(z,l);x&&Qe(x,{form:{element:I},commandController:b});v&&M.stopPropagation()}};
llf=function(z,l){if(z.signInEndpoint&&!_.C("web_subscribe_sign_in_endpoint_killswitch"))return z.signInEndpoint;if(l){if(z.serviceEndpoints)return z.serviceEndpoints[1];if(z.onUnsubscribeEndpoints)return z.onUnsubscribeEndpoints[0]}else{if(z.serviceEndpoints)return z.serviceEndpoints[0];if(z.onSubscribeEndpoints)return z.onSubscribeEndpoints[0]}};
bSQ=function(z,l){var I,b,v,M;l=l&&((I=z.unsubscribeAccessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label)||((v=z.subscribeAccessibility)==null?void 0:(M=v.accessibilityData)==null?void 0:M.label);return z.longSubscriberCountText?[l,_.ID(z.longSubscriberCountText)].filter(function(x){return x}).join(" "):l};
hR=function(z,l){return l||(z==null?0:z.isChannelDelegate)?"disabled":"active"};
vuQ=function(z,l){var I;switch((I=z.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:hR(z)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:hR(z)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:hR(z,!0)};case "OVERLAY":return l?{style:"overlay",type:"tonal",state:hR(z)}:{style:"overlay",type:"filled",state:hR(z)};default:return l?{style:"mono",type:"tonal",state:hR(z)}:{style:"mono",type:"filled",state:hR(z)}}};
_.sB=function(){for(var z=[],l=_.D(_.AT.apply(0,arguments)),I=l.next();!I.done;I=l.next())if(I=I.value)if(typeof I==="string")z.push(I);else{I=_.D(Object.entries(I));for(var b=I.next();!b.done;b=I.next()){var v=_.D(b.value);b=v.next().value;(v=v.next().value)&&z.push(b)}}return z.join(" ")};
MLk=function(z){switch(z){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
pvp=function(z){switch(z){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
DIS=function(z,l){var I=z.map(function(b){return b.toString()});
return _.KK(function(b){if(I.includes(b.key)){l&&b.preventDefault();var v;(v=b.currentTarget)==null||v.click()}})};
_.xI7=function(){return DIS(["Enter"])};
_.OSY=function(){return DIS(["Enter"," "],!0)};
_.r5=function(z){if(z.composedPath)return z.composedPath();if(!z.__composedPath){for(var l=[],I=z.target;I;)l.push(I),I=I.parentNode;l.push(window);z.__composedPath=l}return z.__composedPath};
_.$U=function(z,l,I){z=_.D(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;if(b===l)break;for(var v=_.D(I),M=v.next();!M.done;M=v.next())if(M=M.value,b.tagName===M||b.role==="button"&&M==="BUTTON")return!0}return!1};
Gtp=function(z,l){var I,b=(I=l.observer)!=null?I:_.pG().resolve(Mh);if(z){I=gu1(z);var v=[];l.showOption&&v.push(b.observe(z,function(){l.visibilityCallback(!0,z)},l.showOption));
l.hideOption&&v.push(b.observe(z,function(){l.visibilityCallback(!1,z)},l.hideOption));
l.prescanOption&&l.prescanCallback&&v.push(b.observe(z,function(){l.prescanCallback()},l.prescanOption));
var M;I.visibilityMonitorKeys=((M=I.visibilityMonitorKeys)!=null?M:[]).concat(v)}};
gu1=function(z){var l;return(l=z.polymerController)!=null?l:z};
_.w5=function(z){return!!_.e9(z)};
_.AR=function(z,l,I,b,v){return function(M){var x=i37();_.Te(function(){if(M){NFx(M,z(),v);var g=Euu(M,z(),l,I,b,x);_.cb(g)}},"nr377e")}};
NFx=function(z,l,I){var b=uyp(l),v=ZSk(l);l=b&&HS1;var M=v&&ya$;(b||v)&&Gtp(z,{visibilityCallback:function(x){var g=_.pG().resolve(_.DQ);x&&b?g.resolveCommand(b,{form:{element:I?z:void 0},disableClickTracking:!0}):!x&&v&&g.resolveCommand(v,{form:{element:I?z:void 0},disableClickTracking:!0})},
showOption:l,hideOption:M})};
Euu=function(z,l,I,b,v,M){var x=new Map;if(l=_.e9(l)){var g;z=(b==null?void 0:(g=b.onTap)==null?void 0:g.value)||z;I=fl$(l,z,I==null?void 0:I.onTap,v,M);z.addEventListener("click",I);x.set("click",I)}return function(){for(var G=_.D(x),u=G.next();!u.done;u=G.next()){var Z=_.D(u.value);u=Z.next().value;Z=Z.next().value;z.removeEventListener(u,Z)}}};
_.e9=function(z){var l;return(z=(l=_.k(z,Cwx))==null?void 0:l.onTap)&&_.Wh(z)};
uyp=function(z){var l;return(z=(l=_.k(z,Cwx))==null?void 0:l.onVisible)&&_.Wh(z)};
ZSk=function(z){var l;return(z=(l=_.k(z,Cwx))==null?void 0:l.onHidden)&&_.Wh(z)};
fl$=function(z,l,I,b,v){var M=function(g){_.pG().resolve(_.DQ).resolveCommand(z,g)},x=function(g){b&&_.$U(_.r5(g),l,b)||M(g.target?{form:{element:g.target,
sourceData:z,mutationContext:v}}:void 0)};
I&&(x=function(g){I(g,M)});
return x};
ktx=function(z){switch(z){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}};
RD$=function(z){var l=z.numAvatarsInCluster;switch(z.clusterSize){case "small":return l===2?22:18;case "40":return l===2?24:22;default:return l===2?24:20}};
mIk=function(z,l){return function(I){var b=Object.keys(l);_.Te(function(){if(z!=null&&z()){for(var v=_.D(b),M=v.next();!M.done;M=v.next())M=M.value,I.addEventListener(M,l[M]);_.cb(function(){for(var x=_.D(b),g=x.next();!g.done;g=x.next())g=g.value,I.removeEventListener(g,l[g])})}},"bXZGfe")}};
KkG=function(z){switch(RD$(z)){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""}};
tLH=function(z){switch(z){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""}};
BFu=function(z){switch(RD$(z)){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""}};
XvQ=function(z){switch(z){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""}};
qtk=function(z){switch(z){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}};
iSG=function(z){return z==="medium"||z==="48"||z==="large"||z==="extra-large"||z==="extra-extra-large"||z==="giant"};
Fk$=function(z){return!!((z==null?0:z.includes(3))||(z==null?0:z.includes(5)))};
Ytf=function(z){var l=z.data;return{size:QdQ(l.avatarImageSize),type:l.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:z.onTap,decorations:z.decorations||[],badgeText:z.badgeText,accessibilityText:z.accessibilityText,avatarButtonCustomClassName:z.avatarButtonCustomClassName,clusterLayoutConfig:z.clusterLayoutConfig}};
QdQ=function(z){switch(z){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"}};
TFf=function(z){switch(z){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}};
cau=function(z){switch(z){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""}};
StQ=function(z){var l=z.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",I,b=z.avatars&&z.avatars.length>0?(I=_.k(z.avatars[0],_.WU))==null?void 0:I.avatarImageSize:"AVATAR_SIZE_UNKNOWN";I=TFf(b)||0;if(l){var v,M=(v=z.avatarClusterSize)!=null?v:"AVATAR_SIZE_M";l=TFf(M);var x,g,G=Math.min((g=(x=z.avatars)==null?void 0:x.length)!=null?g:0,4),u;return{avatars:((u=z.avatars)==null?void 0:u.slice(0,4))||[],avatarSizeInPx:I,avatarStackStyle:{width:l+"px",height:l+"px",position:"relative"},avatarStyle:function(H){var y=
RD$({clusterSize:QdQ(M),numAvatarsInCluster:G,avatarIndex:H});var f=TFf(M);G===3&&H===2?(f=(f-y)/2,f=(_.sZ("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*f):f=void 0;return{position:"absolute",top:G===2&&H===1||G===3&&H===2||G===4&&H>=2?"0":void 0,bottom:G===2&&H===0||G>2&&H<2?"0":void 0,left:G===2&&H===1||G>2&&(H===1||H===3)?"0":void 0,right:G<=3&&H===0||G===4&&(H===0||H===2)?"0":void 0,transform:f?"translateX("+f+"px)":void 0,width:y+"px",height:y+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(H){return{clusterSize:QdQ(z.avatarClusterSize),numAvatarsInCluster:G,avatarIndex:H}},
avatarButtonCustomClassName:void 0}}var Z;return{avatars:((Z=z.avatars)==null?void 0:Z.slice())||[],avatarSizeInPx:I,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:cau(b),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
dIH=function(z,l,I){return function(){Qe(z,{form:{element:l},commandController:I})}};
ou5=function(z){switch(z){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
PwH=function(z){switch(z){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"}};
hDS=function(z){if("accessibilityText"in z)return z.accessibilityText||"";if("title"in z){var l,I,b;return((l=z.title)==null?void 0:(I=l.accessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label)||""}if("accessibility"in z){var v,M;return((v=z.accessibility)==null?void 0:(M=v.accessibilityData)==null?void 0:M.label)||""}return""};
sdG=function(z){return"inlinePlayerData"in z};
nY=function(z){return new rax(z)};
$IQ=function(z){return function(l){z&&(z.thumbnailElRef=l.thumbnailElRef,z.thumbnail=l.thumbnail,z.thumbnailOverlays=l.thumbnailOverlays,z.thumbnailSize=l.thumbnailSize)}};
eDk=function(z){switch(z){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
Aa5=function(z){var l=_.D(_.Z_(!1,void 0,"RIOonf")),I=l.next().value,b=l.next().value;_.Sm(function(){var v=z==null?void 0:z();if(v){var M=_.pG().resolve(_.MB(wvt));if(M){var x={triggeringElement:v,onDwellTriggeredFn:function(){b(!0)},
onDwellEndFn:function(){b(!1)}};
M.registerElement(x);_.cb(function(){_.LY(M,x)})}}});
return I};
Wku=function(z,l,I){I?I(l):_.ae(l,z.target?{form:{element:z.target}}:void 0)};
_.a0=function(z,l,I){return function(b){_.Te(function(){var v=new Map,M,x=(M=z())==null?void 0:M.onTap;x&&(M=function(g){a:{var G=g.composedPath();G=_.D(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;if(u===b)break;if(u.className.indexOf("HostIsClickableAdComponent")>=0||u.tagName==="A".toString()||u.tagName==="BUTTON".toString()){G=!0;break a}}G=!1}G||Wku(g,x,l)},(I==null?0:I())||_.C("enable_web_home_top_landscape_image_layout_level_click")?(b.addEventListener("tap",M),v.set("tap",M)):(b.addEventListener("click",
M),v.set("click",M)));
_.cb(function(){for(var g=_.D(v),G=g.next();!G.done;G=g.next()){var u=_.D(G.value);G=u.next().value;u=u.next().value;b.removeEventListener(G,u)}})},"NMyqj")}};
nuS=function(z,l){var I,b=(I=z.interaction)==null?void 0:I.onTap;if(z=_.LE({elementsCommand:b,forceNewState:!0,skipOnClick:!0}))return z.onclick=function(v){J9k(v)&&(v.preventDefault(),b&&Wku(v,b,l))},Ui(z)?z:void 0};
Lk1=function(z){switch(z){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
UI7=function(z){switch(z){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"}};
alH=function(z){switch(z){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"}};
_.VLQ=function(z){return _.C("rich_grid_enable_dynamic_offset")&&z?Math.max(Math.round((z-_.OI("rich_grid_dynamic_offset_anchor_width",1300))/100*_.OI("rich_grid_dynamic_offset_offset_per_100",10)),_.OI("rich_grid_dynamic_offset_lower_bound",-60)):0};
jdH=function(z,l){switch(l){case 4:return 16;case 1:return z<528?16:z<1024?32:48;case 2:return(z>=528?16:8)/2;case 3:return(z<528?16:z<1024?32:48)+(z>=528?16:8)/2;default:return 0}};
JaG=function(z){var l=z.originalContainerWidth;var I=z.sizing;var b=z.standardUnit;if(z.isCompactList&&l<528)return 1;switch(I){case "STANDARD":return b;case "COMPACT":return b+1;case "EXTRA_COMPACT":return _.C("web_responsive_extra_compact_2x")?b*2:_.C("web_responsive_current")?b===1?2:b%2===0?b/2*3:b+2:b<4?b*2:Math.ceil(b*3/2);case "MINI":return b>1?b*2:3;default:return b}};
lmx=function(z){var l=z.containerWidth;var I=z.peek;var b=z.gutter;var v=z.numItems;z=z.ignoreMaxWidthLimit;l=I?Math.max((l-I-b*v)/v,0):Math.max((l-b*(v-1))/v,0);return z?l:Math.min(l,z$Q)};
_.Vo=function(z){var l=z.containerWidth;var I=z.hasPeek;var b=z.sizing;var v=z.marginSettings;var M=z.isCompactList;var x=z.enableFullBleedForSingleCol;var g=z.standardUnitMinWidth;b=b||"STANDARD";I=!!I;z=l>=528?16:8;var G=I?l>=528?48:24:0;v=jdH(l,v);var u=Math.max(l-v*2,0);g=_.C("kevlar_disable_min_width_override")?void 0:g;g=Math.min(Math.max(Math.floor((u-G+z)/((g!=null?g:Imp)+_.VLQ(l)+z)),1),6);var Z=(x=!!x&&g===1)||g===1&&b!=="STANDARD";I=I||Z?u:Math.min(u,(z$Q+z)*g-z);b=JaG({originalContainerWidth:l,
sizing:b,standardUnit:g,isCompactList:M});return{itemWidth:lmx({containerWidth:I,peek:G,gutter:z,numItems:b,ignoreMaxWidthLimit:Z}),gutter:z,maxContainerWidth:I,numItems:b,margin:x?0:v,contentMargin:jdH(l,1),typographyBump:lmx({containerWidth:I,peek:G,gutter:z,numItems:g,ignoreMaxWidthLimit:Z})>400&&!(M&&l<528),standardUnit:g}};
bBH=function(z){switch(z){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.v_S=function(z){if(z){var l;if((l=z.responsiveContainerConfiguration)==null?0:l.responsiveSize)return bBH(z.responsiveContainerConfiguration.responsiveSize);if(z.layoutSizing)switch(z.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"}}};
MJp=function(z){if(z.fullbleed)return 1;switch(z.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
OBQ=function(z,l,I,b,v,M,x,g){a:if(z===4&&b==="LOCKUP_CONTENT_TYPE_SOURCE")var G=1;else switch(z){case 3:G=1;break a;default:G=0}a:switch(z){case 4:M=!!(M&&M<100);break a;default:M=!1}a:switch(z){case 3:case 4:var u=b==="LOCKUP_CONTENT_TYPE_CHANNEL"||b==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:u=!1}a:switch(z){case 5:var Z=!0;break a;case 4:Z=!1;break a;default:Z=!1}return{isOverlay:Z,isCard:pOp(b,x),sizing:l!=null?l:"STANDARD",typographyBump:I!=null?I:!1,isTiny:M,isCentered:u,isCollection:DJY(b),
arrangement:G,addMarginForFullbleed:z===1&&b!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:z===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:xJk(b,v,g),disableRounding:z===5||pOp(b,x)||z===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:DJY(b)?2:0,useLegacyTypography:!(g==null||!g.useLegacyTypography),useRichGridLegacyTypography:!(g==null||!g.useRichGridLegacyTypography)&&!_.C("web_enable_typography_bump"),compactMetadata:G===0&&b==="LOCKUP_CONTENT_TYPE_VIDEO"}};
DJY=function(z){switch(z){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
pOp=function(z,l){if(l&&z==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(z){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
xJk=function(z,l,I){if(l&&(I==null||!I.alwaysRespectPodcastShowAspectRatio||z!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(z){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}};
g_t=function(z){switch(z){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"}};
G7x=function(z){switch(z){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
NMx=function(z){switch(z){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}};
_.j9=function(z){if(z){var l;return((l=_.pG().resolve(_.MB(_.I2)))==null?0:l())?z.darkThemeImage:z.image}};
ZB$=function(z,l,I,b,v,M){if(v&&M&&l==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:v,height:M};if(!I)return{};v=I.size;I=I.allowFullWidth;if(l==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return{fullWidth:!0};if(v===void 0)return{};switch(z){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:v,height:v};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:v,height:1/E_x*v};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:v*
uKG,height:v};default:return(b==null?0:b.height)&&(b==null?0:b.width)?b.width/b.height>1?{maxWidth:v*uKG}:{maxWidth:v}:{maxWidth:v}}};
HBY=function(z){var l;return z&&((l=_.j9(z.themedImage))!=null?l:z.image)};
y2k=function(z){var l;return z==null?void 0:(l=z.sources)==null?void 0:l[0]};
fmH=function(z){switch(z){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"}};
_.C3f=function(z){if(z)return"content-id-"+z};
k7f=function(z){switch(z.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"}}};
R$1=function(z){var l=_.JR.currentPageSubTypeSelector(_.M8().getState())||"";return z?z+l:""};
mJk=function(z){switch(z){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
tJQ=function(z){var l=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],I=_.D(_.Z_(void 0,void 0,"JrqNsb")),b=I.next().value,v=I.next().value,M=_.D(_.Z_(void 0,void 0,"rWytse"));I=M.next().value;var x=M.next().value;M=_.D(_.Z_(void 0,void 0,"DHRqxe"));var g=M.next().value,G=M.next().value;return{touchFeedbackEvents:{pointerUpEvent:b,pointerDownEvent:I,pointerLeaveEvent:g},touchFeedbackOnPointerUp:_.KK(function(u){KDS(_.r5(u),l)||(v(u),x(void 0),G(void 0))}),
touchFeedbackOnPointerDown:_.KK(function(u){z==null||z(u);KDS(_.r5(u),l)||(x(u),v(void 0),G(void 0))}),
touchFeedbackOnPointerLeave:_.KK(function(u){KDS(_.r5(u),l)||(G(u),x(void 0),v(void 0))})}};
KDS=function(z,l){l=l===void 0?[]:l;l=[].concat(_.ht(l),["BUTTON".toString()]);z=_.D(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;for(var b=_.D(l),v=b.next();!v.done;v=b.next())if(I.tagName===v.value)return!0}return!1};
BM7=function(z){switch(z){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"}};
XOk=function(z){return z.scrollHeight-z.offsetHeight>1};
qo5=function(z,l){var I;return lO(z,((I=z.content)==null?void 0:I.length)||0,!l)};
QZt=function(z,l,I,b,v,M){if(!l||iBQ){var x;return lO(z,((x=z.content)==null?void 0:x.length)||0,!0)}l=b.value;if(!I.value||!l||!z.content)return z;I=0;b=z.content.length;x=0;FDk||(FDk=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var g=FDk;for(v=v*M*g;I<=b;)M=Math.floor(I+(b-I)/2),g=lO(z,M)||z,l.firstChild&&(l.firstChild.textContent=g.content),l.scrollHeight>v?b=M-1:(x=M,I=M+1);return lO(z,x)};
Yo1=function(z,l){var I,b;return(((I=z.content)==null?void 0:I.length)||0)>(((b=l.content)==null?void 0:b.length)||0)};
TM1=function(z,l,I,b,v,M){var x=_.VK("truncated-text-content"),g=_.VK("truncated-text-content"),G=_.VK("button"),u=_.VK("button"),Z=_.VK("button"),H=_.pG().resolve(_.vr),y=_.D(_.Br(function(){return qo5(z(),v())})),f=y.next().value,R=y.next().value;
y=_.D(_.Br(function(){return Yo1(z(),f())}));
var F=y.next().value,Y=y.next().value,c=null;_.Te(function(){function d(){if(x.value&&G.value&&Z.value){var W=M()?z():QZt(z(),v(),x,g,l(),I());R(W);requestAnimationFrame(function(){if(x.value&&G.value&&Z.value){var L=XOk(x.value)||Yo1(z(),W);Y(L);if(!b()){var lH=XOk(x.value),Gk=I(),uH=x.value,Xt=G.value,R1=Z.value,H7=H==="rtl";if(uH&&Xt){var P7=Xt.offsetLeft;H7&&(P7=uH.offsetWidth-Xt.offsetWidth-Xt.offsetLeft);if(L){L=Xt.offsetWidth;Xt=uH.offsetWidth;var o1=lH?Xt-L-70:P7-70;Gk="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Gk+"rem,\n      #000 "+Gk+"rem,\n      #000 100%), linear-gradient(\n      to "+((H7?"left":"right")+",\n      #000 0px,\n      #000 "+o1+"px,\n      transparent "+(lH?Xt-L:o1+70)+"px)");uH.style.setProperty("-webkit-mask-image",Gk);uH.style.setProperty("mask-image",Gk)}else uH.style.setProperty("-webkit-mask-image",""),uH.style.setProperty("mask-image","");lH?H7?(R1.style.setProperty("left","0"),R1.style.setProperty("right","unset")):(R1.style.setProperty("left",""),R1.style.setProperty("right",
"0")):H7?(R1.style.setProperty("left","unset"),R1.style.setProperty("right",P7+"px")):(R1.style.setProperty("left",P7+"px"),R1.style.setProperty("right","unset"))}}}})}}
var V,A;(V=c)==null||(A=V.stop)==null||A.call(V);V=new _.zD(d,17);d();c=V},"KjwIxd");
_.Sm(function(){R(qo5(z(),v()));Y(Yo1(z(),f()));var d=function(){FDk=void 0;var A,W;(A=c)==null||(W=A.fire)==null||W.call(A)};
if(window.ResizeObserver){var V=new ResizeObserver(d);V.observe(x.value);_.cb(function(){var A,W;(A=c)==null||(W=A.stop)==null||W.call(A);V.disconnect()})}else window.addEventListener("resize",d),_.cb(function(){var A,W;
(A=c)==null||(W=A.stop)==null||W.call(A);window.removeEventListener("resize",d)})});
return{isTruncated:F,displayText:f,contentRef:x,hiddenRef:g,placeholderTruncationTextRef:G,hiddenTruncationTextRef:u,truncationTextRef:Z}};
c2x=function(z){return{content:z!=null?z:""}};
SoQ=function(z){return _.Wh(z.onTap)||_.e9(z.rendererContext)};
dJx=function(z){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:z.overflowMenuA11yLabel,onTap:function(l){l.preventDefault();l.stopPropagation();if(z.overflowMenuOnTap){var I=_.LE({elementsCommand:z.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(l)}}}};
_.l7=function(z,l,I,b,v){b=b===void 0?{}:b;if(!v||Math.random()<5E-4){l=l||null;I=I||null;z=z instanceof Error?z:new _.qB(z);if(z.args)for(var M=_.D(z.args),x=M.next();!x.done;x=M.next())x=x.value,x instanceof Object&&(b=Object.assign({},x,b));b.category="H5 Ads Control Flow";l&&(b.slot=l?"slot:  "+l.slotType:"");I&&(b.layout=I?"layout:  "+I.layoutType:"",b.layoutId=I.layoutId);v&&(b.known_error_aggressively_sampled=!0);z.args=[b];_.PW(z)}};
_.o_t=function(z,l){_.Gb(z,"yt-open-popup-action",[_.pr(l),z])};
_.IF=function(z,l){_.o_t(z,_.lc(l))};
h$Q=function(z){if(!z)return"";if(P3S[z])return P3S[z];b7||(b7=_.tA("A"));b7.href!==z&&nD(b7,z);var l=b7.pathname;P3S[z]=l.startsWith("/")?l:"/"+l;return P3S[z]};
sZH=function(){var z=h$Q(window.location.href);if(z==="/")return"home";if(z.startsWith("/results"))return"search";if(z.startsWith("/watch"))return"watch";if(z.startsWith("/shorts"))return"shorts";if(z.startsWith("/hashtag"))return"hashtag";if(z.startsWith("/create_channel"))return"create_channel";if(z.startsWith("/@")||z.startsWith("/user/")||z.startsWith("/channel/"))return"channel";if(z.startsWith("/experiments"))return"experiments";if(z.startsWith("/sponsor_channel"))return"sponsorship";if(z.startsWith("/select_site"))return"settings";
if(z.startsWith("/locate"))return"locate";if(z.startsWith("/redeem"))return"redeem";if(z.startsWith("/musicpremium")||z.startsWith("/premium")||z.startsWith("/red"))return"premium";if(z.startsWith("/paid_memberships"))return"paid_memberships";if(z.startsWith("/oops"))return"oops";if(z.startsWith("/clip"))return"clip";var l;return(vt==null?void 0:(l=vt.response)==null?void 0:l.page)==="404"?"404":z.startsWith("/feed/history")?"history":z.startsWith("/feed/library")?"library":z.startsWith("/feed/subscriptions")?
"subscriptions":z.startsWith("/feed/trending")?"trending":z.startsWith("/feed/news_destination")?"news":z.startsWith("/playlist")?"playlist":z.startsWith("/minor_moment")?"minor_moment":z.startsWith("/playable/")||z.match("^/playables/(?!saved).")?"mini_app":z.startsWith("/playables")?"playables":z.startsWith("/create/live/join")?"open_in_app":z.startsWith("/feed/explore")?"explore":"browse"};
_.wO7=function(){var z=vt==null?void 0:vt.response,l=z==null?void 0:z.endpoint;if(!l)return(z==null?void 0:z.page)==="watch"?"watch":sZH();var I;z=(I=_.k(l==null?void 0:l.commandMetadata,_.kB))==null?void 0:I.webPageType;I=!1;if(z&&!r2H.includes(z))switch(z){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 b;return((b=_.k(l==null?void 0:l.commandMetadata,_.kB))==null?0:b.url)&&h$Q(_.k(l.commandMetadata,_.kB).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var v;return(l=(v=_.k(l,_.BF))==null?void 0:v.browseId)?$JG[l]||"browse":"browse";default:I=!0}if(_.k(l,_.Ma)||_.k(l,e$H))return"sponsorship";v=h$Q(window.location.href);if(v.startsWith("/experiments"))return"experiments";if(v.startsWith("/create_channel"))return"create_channel";
if(_.k(l,_.AK)&&v.startsWith("/shorts"))return"shorts";if(_.k(l,_.AK)&&v.startsWith("/watch"))return"watch";I&&(l=new _.qB("Unsupported mWeb page type",{pathname:v,webPageType:z}),_.dE(l));return"browse"};
pj=function(z,l,I,b){return z&&l?z!==I||l!==b?(_.l7(Error("Nh"),void 0,void 0,{"stored-slot":z,"stored-layout":l,"latest-slot":I,"latest-layout":b}),!1):!0:!1};
WD1=function(z,l,I){return z({targetId:l},function(b){return I.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},b,{contents:[I.continuationItems?_.k(I.continuationItems[0],A2f):{}]}):I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},b,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},b,{contents:I.continuationItems?I.continuationItems:[]})})};
n_$=function(z,l,I,b){if(l=l.trackingParams){var v,M=(v=I.getScreenLayer)==null?void 0:v.call(I);I=_.sU(M);v=_.h8(M);if(I&&v){var x=_.ch(l);_.C("combine_ve_grafts")?z.graftServerVe(l,v,M):_.LM(I,v,x);b==null||b(x)}}};
UJp=function(z){var l;return((l=LD7.get(z))==null?void 0:l.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
jZ$=function(z,l){var I={type:l.slotType,controlFlowManagerLayer:amf.get(l.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l.slotEntryTrigger&&(I.entryTriggerType=l.slotEntryTrigger.triggerType);l.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=l.slotPhysicalPosition);if(z){I.debugData={slotId:l.slotId};if(z=l.slotEntryTrigger)I.debugData.slotEntryTriggerData=VJp(z);z=l.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];z=_.D(z);for(var b=z.next();!b.done;b=z.next())I.debugData.fulfillmentTriggerData.push(VJp(b.value));
l=l.slotExpirationTriggers;I.debugData.expirationTriggerData=[];l=_.D(l);for(z=l.next();!z.done;z=l.next())I.debugData.expirationTriggerData.push(VJp(z.value))}return I};
VJp=function(z,l){var I={type:z.triggerType};l!=null&&(I.category=l);z.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=z.triggeringSlotId);z.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=z.triggeringLayoutId);return I};
J2Y=function(z,l,I,b){l={opportunityType:l};z&&(b||I)&&(b=_.s7(b||[],function(v){return jZ$(z,v)}),l.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},b.length>0?{slots:b}:{}));
return l};
z9t=function(z){return D6(z.opportunityAdapterMap).concat(D6(z.triggerAdapterMap)).concat(D6(z.fulfillmentAdapterFactoryMap)).concat(D6(z.slotAdapterFactoryMap)).concat(D6(z.layoutRenderingAdapterFactoryMap))};
D6=function(z){var l=[];z=_.D(z.values());for(var I=z.next();!I.done;I=z.next())I=I.value,I.isAdsControlFlowEventListener&&l.push(I);return l};
Oc=function(z){var l=z.slotId,I=z.slotType,b=z.slotPhysicalPosition;return l===void 0?new xM("Cannot construct a slot due to the missing id.",{adSlotMetadata:z}):I===void 0?new xM("Cannot construct a slot due to the missing type.",{adSlotMetadata:z}):b===void 0?new xM("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:z}):{slotId:l,slotType:I,slotPhysicalPosition:b,managerLayer:"external",adSlotLoggingData:z.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new lUf}};
IUY=function(z){var l=z.layoutId,I=z.layoutType;return l===void 0?new gn("Cannot construct a layout due to the missing id.",{adLayoutMetadata:z}):I===void 0?new gn("Cannot construct a layout due to the missing type.",{adLayoutMetadata:z}):{layoutId:l,layoutType:I,managerLayer:"external",adLayoutLoggingData:z.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new lUf,interactionLoggingAdsClientData:{}}};
baQ=function(z){if(z.querySelector("img")){var l=z.querySelector("img");l.addEventListener("error",function(){hif(l.src).then(function(I){(I=_.w0(I).toString())?l.src=I:l.removeAttribute("src")}).catch(function(){l.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Na=function(z,l){if(l&&(vgY(l.viewableCommand)||vgY(l.endOfSessionCommand))){var I=MEY(l==null?void 0:l.viewableCommand);l=MEY(l==null?void 0:l.endOfSessionCommand);if(!GD){var b=_.OI("custom_active_view_tos_timeout_ms");GD=b>0&&b!==36E5?new pSQ(DEH(),b):new pSQ(DEH())}xEY(GD,z);Oau(GD,z,I,l)}};
Ec=function(z){GD&&xEY(GD,z)};
DEH=function(){var z=_.sZ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(z==null?void 0:z.length)===2?z[1]:null};
vgY=function(z){z=_.Wh(z);return!(z==null||!z.loggingUrls)&&z.loggingUrls.length>0};
MEY=function(z){if(!z)return[];var l=[],I,b;((b=(I=_.Wh(z))==null?void 0:I.loggingUrls)!=null?b:[]).forEach(function(v){v.baseUrl&&l.push(v.baseUrl)});
return l};
ggS=function(z){if(_.C("stop_av_measurement_on_detach"))return function(){Ec(z)}};
GVp=function(z){return function(){_.C("stop_av_measurement_on_detach")&&Ec(z)}};
N_t=function(z){if(_.C("stop_av_measurement_on_detach"))return function(){Ec(z)}};
Egk=function(z){return z.shorts.isDesktopSmallWidth};
_.ui$=function(z){return z.shorts.isShortsActive};
_.Zaf=function(z){return z.shorts.isWatchWhileMode};
_.u7=function(z){return z.shorts.isFullscreen};
_.Z6=function(z){return z.shorts.isShortsPipActive};
y_f=function(z){var l,I;if(z=(l=_.k(z.reelsAdCardButtoned,HaH))==null?void 0:(I=l.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return z+"s"};
CkH=function(z,l,I){return _.O(function(b){return b.return(new Promise(function(v){var M=new Image;M.onload=function(){v(new fUk(z,l,I,M.naturalWidth,M.naturalHeight))};
M.src=I.toString()}))})};
kVt=function(z,l){return Math.round(z/1E-5)===Math.round(l/1E-5)};
R9u=function(z,l){return Math.round(z/1E-5)===Math.round(l/1E-5)};
mEY=function(z,l){return z.year===l.year&&z.month===l.month&&z.day===l.day};
K_5=function(z,l){return z.year!==l.year?z.year<l.year:z.month!==l.month?z.month<l.month:z.day<l.day};
B_1=function(z){return z.day===tEH(z.year,z.month)?z.month===11?{year:z.year+1,month:0,day:1}:{year:z.year,month:z.month+1,day:1}:{year:z.year,month:z.month,day:z.day+1}};
XSt=function(){var z=new Date,l={year:z.getFullYear(),month:z.getMonth(),day:z.getDate()};return{start:l,end:{year:z.getFullYear()+2,month:z.getMonth(),day:z.getDate()},selectedDate:B_1(l)}};
qPp=function(z){return(new zN(2)).format(new Date(z.year,z.month,z.day))};
iaf=function(z){return{year:z.getFullYear(),month:z.getMonth(),day:z.getDate()}};
F_x=function(z,l){z=(z+(Number(l.utcOffsetSec)+(new Date(z*1E3)).getTimezoneOffset()*60))*1E3;l=iaf(new Date(z));return{date:l,secondsSinceMidnight:Math.floor((z-(new Date(l.year,l.month,l.day)).getTime())/1E3)}};
QTt=function(z,l){l=l.months.findIndex(function(I){return I.year===z.year&&I.month===z.month});
return l>=0?l:void 0};
YPQ=function(z){if(!z)return!1;try{if(z.host&&z.host.tagName==="YT-FORMATTED-STRING"&&z.host.id==="contenteditable-textarea"||z.nodeType===Node.ELEMENT_NODE&&z.tagName==="YTD-COMMENTBOX")return!0}catch(l){return!1}return YPQ(z.parentNode)};
Ht=function(z){return z?!(z.tagName!=="A"||!z.href||!z.classList.contains("yt-simple-endpoint")):!1};
T_1=function(z){return z?z.tagName==="IMG"&&z.classList.contains("emoji"):!1};
c_7=function(z,l,I){if(!z)return null;var b=Ht(z);if(b&&I)return l=z.pathname.substring(z.pathname.indexOf("/channel/")+9),document.createTextNode("@"+l);if(b&&!I)return document.createTextNode("");if(T_1(z))return I=z.alt,z=z.dataset.emojiId,!z&&l&&(l=_.yb(l,I))&&l.isCustomEmoji&&(z=l.emojiId),z?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+z+">"):document.createTextNode(I);b=z.cloneNode(!1);for(var v=0;v<z.childNodes.length;++v){var M=c_7(z.childNodes[v],l,I);M&&b.appendChild(M)}return b};
fj=function(z){return z?Ht(z)?z:fj(z.lastChild):null};
SPQ=function(z){return z?Ht(z)?z:SPQ(z.firstChild):null};
dE5=function(z){if(!z)return null;for(var l=z.previousSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.previousSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.previousSibling;else break;(l=fj(l))?z=l:z=(z=z.parentNode)?fj(z.previousElementSibling):null;return z};
og5=function(z){if(!z)return null;for(var l=z.nextSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.nextSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.nextSibling;else break;return(l=SPQ(l))?l:og5(z.parentNode)};
Pk1=function(z){var l=_.Cj(),I=l.JSC$11349_getStartNode();if(!YPQ(I.parentNode))return null;l=l.JSC$11349_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var b=_.A7(I,Ht);if(b){if(z&&l===0||!z&&l===I.length)return b}else{if(z&&l===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.kM(I.nextElementSibling,"display")==="block"?null:SPQ(I.nextElementSibling);if(!z&&l===0)return I?fj(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(z){if(0<=l&&l<I.childNodes.length)return SPQ(I.childNodes[l])}else if(0<
l&&l<=I.childNodes.length)return fj(I.childNodes[l-1]);return null};
h95=function(z,l,I){if(!z)return null;if(z.nodeType===Node.TEXT_NODE)if(I){var b=dE5(z);if(b&&!/^\s+\S/.test(z.wholeText.substr(0,l)))return b}else if((b=og5(z))&&!/\S\s+/.test(z.wholeText.substr(l,z.wholeText.length)))return b;return z.nodeType===Node.ELEMENT_NODE?I?dE5(z.childNodes[l]):og5(z.childNodes[l]):h95(z.parentNode,l,I)};
sTk=function(z){if(z.hasChildNodes())switch(z.tagName){case "DIV":case "A":case "SPAN":var l="";for(z=z.firstChild;z;z=z.nextSibling)l+=sTk(z);return l;default:return""}else switch(z.nodeType){case 3:return z.textContent;default:return""}};
RF=function(z,l){return z.year===l.year&&z.month===l.month&&z.day===l.day};
mn=function(z,l){return z.year!==l.year?z.year<l.year:z.month!==l.month?z.month<l.month:z.day<l.day};
r_$=function(z){return{year:z.getFullYear(),month:z.getMonth(),day:z.getDate()}};
$Eu=function(z){var l=$GS;l=l===void 0?$GS:l;l(new Date(z.year,z.month,z.day))};
Kj=function(z){return r_$(new Date(Number(z.seconds)*1E3))};
e9u=function(z){return z.year!==void 0&&z.month!==void 0&&z.day!==void 0};
wSx=function(z){return z.start!==void 0&&z.end!==void 0};
A_f=function(z){return wSx(z)?z.start:z};
W_1=function(z){return wSx(z)?z.end:void 0};
L_p=function(z,l){for(var I=[],b=new Date(z.start.year,z.start.month);b.getFullYear()<z.end.year||b.getFullYear()===z.end.year&&b.getMonth()<=z.end.month;){var v=I,M=v.push,x=b.getFullYear(),g=b.getMonth(),G=z,u=l,Z=void 0,H=[],y=Object.freeze({extraCssClass:"invisible"}),f=new Date(x,g),R=r_$(f);f=f.getDay();for(var F=r_$(new Date);R.month===g;){f!==ngt&&Z||(Z=Array.from({length:7}).fill(y),H.push(Z));var Y={date:{year:x,month:g,day:R.day},extraCssClass:"",debugClass:""};Y.extraCssClass=u(Y.date,
R,F,G).trim();Z[(f-ngt+7)%7]=Y;R=R.day===tEH(R.year,R.month)?R.month===11?{year:R.year+1,month:0,day:1}:{year:R.year,month:R.month+1,day:1}:{year:R.year,month:R.month,day:R.day+1};f=(f+1)%7}M.call(v,{weeks:H,monthLabel:tQ.SHORTMONTHS[g]+" "+x,year:x,month:g,monthLabelExtraCssClass:H[0][2]===y?"shift-down-label":""});b.setMonth(b.getMonth()+1)}return I};
UEY=function(z,l){l=l.months.findIndex(function(I){return I.year===z.year&&I.month===z.month});
return l>=0?l:void 0};
VE5=function(z,l){a:{var I=I===void 0?[2,3]:I;I=_.D(I);for(var b=I.next();!b.done;b=I.next()){var v=new Date;if((new aUQ(b.value)).parse(l,v,{validate:!0})){v.setHours(0,0,0,0);l=v;break a}}l=null}if(!l)return{isValid:!1,value:void 0};l=r_$(l);I=z.end;return mn(l,z.start)||mn(I,l)?{isValid:!1,value:void 0}:{isValid:!0,value:l}};
IGY=function(z){var l=jTQ;l=l===void 0?J_5:l;var I=z.columnsToShow||[],b=zfG(z.columnDimensions,z.columnsToShow,z.leftFloatingColumns,l);return I.map(function(v,M){var x=z.columns[v];if(x===void 0)throw Error("Th");var g=b?b[M]:"";var G=z.getCustomTooltip?z.getCustomTooltip(v,x.headerTooltipParagraphs):x.headerTooltipParagraphs;var u=lGY(z,v);return{type:v,index:M,style:g,classes:u,headerName:x.headerName||"",headerIcon:x.headerIcon,headerTooltipParagraphs:G||[],headerTooltipHelpContext:x.headerTooltipHelpContext,
sortOrders:x.sortOrders||[],selectionState:x.isSelectionCheckbox?z.selectionState:void 0}})};
lGY=function(z,l){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],b=z.columns[l];if(b===void 0)return"";var v=I.includes("DEFAULTS")&&b.cssClass?[b.cssClass]:[];if(I.includes("SORTING")){b.sortOrders&&b.sortOrders.length&&v.push("sortable");if(z.sorting&&z.sorting.columnType===l)a:switch(z.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var M="column-sorted";break a;default:M=""}else M="";M&&v.push(M)}I.includes("FLOATING")&&(l=z.columnsToShow.indexOf(l),z.leftFloatingColumns&&l<z.leftFloatingColumns&&
v.push("floating-column"),z.leftFloatingColumns&&l===z.leftFloatingColumns-1&&v.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&b.rightAlignHeader&&v.push("right-align");return v.filter(function(x){return x}).join(" ")};
zfG=function(z,l,I,b){I=I===void 0?0:I;b=b===void 0?J_5:b;if(z){var v=[],M=0;bVp(z,l,b).forEach(function(x,g){var G="min-width:"+x.minWidth+"px;padding-left:"+x.paddingLeft+"px;padding-right:"+x.paddingRight+"px;flex:"+x.flexGrow+" 0 "+x.minWidth+"px;";x.maxWidth!==Infinity&&(G=[G,"max-width:"+x.maxWidth+"px;"].join(""));M>0&&g<I&&(G=[G,"left:"+M+"px;"].join(""));v.push(G);M+=x.minWidth+x.paddingLeft+x.paddingRight});
return v}};
bVp=function(z,l,I){I=I===void 0?J_5:I;return l.map(function(b,v){b=z&&z[b]||{};var M=v===0?I.paddingLeftFirstColumn:I.padding;b.paddingLeft!==void 0&&(M=b.paddingLeft);v=v===l.length-1?I.paddingRightLastColumn:I.padding;b.paddingRight!==void 0&&(v=b.paddingRight);return{paddingLeft:M,paddingRight:v,minWidth:b.minWidth!==void 0?b.minWidth:I.minWidth,maxWidth:b.maxWidth!==void 0?b.maxWidth:I.maxWidth,flexGrow:b.flexGrow!==void 0?b.flexGrow:I.flexGrow}})};
vkY=function(z){var l=z.reduce(function(b,v){var M=v.columnId,x={};v.headerText&&(x.headerName=_.ID(v.headerText));v.rightAlignHeader&&(x.rightAlignHeader=v.rightAlignHeader);var g;if((g=v.headerIcon)==null?0:g.iconType)x.headerIcon=_.Re(v.headerIcon.iconType);b[M]=x;return b},{}),I=z.filter(function(b){return!b.hideColumn}).map(function(b){return b.columnId});
z=z.filter(function(b){return!!b.dimensions}).reduce(function(b,v){b[v.columnId]=v.dimensions;
return b},{});
return{columns:l,columnsToShow:I,columnDimensions:z}};
_.M0S=function(z){return z?z.simpleText?z.simpleText:z.runs?z.runs.map(function(l){return l.text}).join(""):"":""};
gkQ=function(z){var l=z.data;var I=z.onTap;var b=z.isSelected;var v=z.onFocusIn;if(!l)return{};z=pMH(l);b===void 0&&(b=l==null?void 0:l.isSelected);var M;return{text:Dq1(l,z),startIcon:(M=l.icon)==null?void 0:M.iconType,state:b?0:2,type:0,onTap:xqG(l,I),accessibilityLabel:OVH(l,z),onFocusIn:function(){return v==null?void 0:v()}}};
Dq1=function(z,l){if(!l)return z.text?_.M0S(z.text):void 0};
xqG=function(z,l){return function(I){l==null||l(I,z)}};
pMH=function(z){z=z.style&&z.style.styleType;return!iBQ&&z==="STYLE_EXPLORE_LAUNCHER_CHIP"};
OVH=function(z,l){if(l){var I,b,v;return(v=(I=z.accessibilityData)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label)!=null?v:Dq1(z,!1)}};
Bt=function(z){return{signalAction:{signal:z}}};
Eku=function(){return _.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?GE5:_.N91};
uWf=function(z,l){z=z===void 0?"SOFT_RELOAD_PAGE":z;l=l===void 0?49504:l;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.xw(_.mY("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:l}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:z}}]}}}};
ZVG=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.xw(_.mY("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Eku()}};
HVH=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.xw(_.mY("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Eku()}};
y67=function(z,l){var I=_.xw(_.mY("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),b=_.xw(_.mY("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),v={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.xw(_.mY("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};v.serviceEndpoint=z?z:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Bt("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:b,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:v},
style:{value:l!=null?l:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
CGk=function(z){z=z===void 0?{}:z;return{title:_.xw(z.localizedZeroStateTitleText===void 0?"":z.localizedZeroStateTitleText),bodyText:_.xw(z.localizedZeroStateMessage===void 0?"":z.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.xw(z.localizedZeroStateButtonText===void 0?"":z.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[fGQ]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Rf1=function(z){z=z===void 0?{}:z;return{title:_.xw(z.localizedOptInBannerTitleText===void 0?"":z.localizedOptInBannerTitleText),titleLength:19,subtitle:_.xw(z.localizedOptInMessage===void 0?"":z.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.xw(_.mY("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:_.xw(_.mY("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:[kEG]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
t0Q=function(z,l){var I=l=l===void 0?{}:l;l=I.offlineTitleText===void 0?"":I.offlineTitleText;var b=I.offlineDescriptionText===void 0?"":I.offlineDescriptionText,v=I.formattedSupplementalText,M=I.actionButtonText===void 0?"":I.actionButtonText,x=I.titleText===void 0?"":I.titleText;I=I.descriptionText===void 0?"":I.descriptionText;var g={title:M,accessibilityText:M,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};z||(x=l,I=b,g={title:M,accessibilityText:M,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.xw(x),titleLength:x.length,overrideTitleMaxFontSize:30,subtitle:_.xw(I),supplementalText:v,primaryButton:{buttonViewModel:g},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[mq5]},darkTileImage:{thumbnails:[KV$]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.qSY=function(z,l,I,b,v,M,x,g,G,u,Z){v=v===void 0?!1:v;M=M===void 0?!1:M;x=x===void 0?0:x;g=g===void 0?-Infinity:g;G=G===void 0?!1:G;u=u===void 0?!1:u;Z=Z===void 0?!1:Z;var H=[],y=_.xw(_.mY("SMART_DOWNLOADS",void 0,"Smart downloads")),f=_.xw(B9k(x,g,z.length));g=x=void 0;u?x={statementBannerRenderer:t0Q(Z,b)}:v?z.length>0?g=XMG(z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.C("kevlar_manual_downloads_above"),y,f):G?g={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===
void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedPromptMessage===void 0?"":I.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.mY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.mY("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:_.aZH}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:M&&(g={backgroundPromoRenderer:{bodyText:_.xw(_.mY("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
M&&(g={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedOptInMessage===void 0?"":I.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.mY("TURN_ON",void 0,"Turn on"),accessibilityText:_.mY("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}}}}}});I=_.xw(_.mY("YOUR_DOWNLOADS",void 0,"Your downloads"));b=void 0;l.length>0?(b=void 0,_.C("kevlar_display_downloads_numbers")&&(b=_.xw(_.KM("VIDEO_COUNT",l.length))),b=XMG(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,b)):v||z.length||
u||(b={backgroundPromoRenderer:{bodyText:_.xw(_.mY("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}}}});x?H.push({richSectionRenderer:{content:x}}):g&&!_.C("kevlar_manual_downloads_above")&&H.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
b&&H.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:51721}}}});g&&_.C("kevlar_manual_downloads_above")&&H.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(l.length>0||v&&z.length>0&&!u)&&H.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.xw(_.mY("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:H}};
_.FVx=function(z){return iV5(z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.QSH=function(z){return iV5(z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
iV5=function(z,l){var I=[];z=XMG(z,l,!0);I.push({richSectionRenderer:{content:z}});return{contents:I}};
XMG=function(z,l,I,b,v){I=I===void 0?!1:I;var M="RESPONSIVE_SIZE_STANDARD";_.C("kevlar_modern_downloads_compact")?M="RESPONSIVE_SIZE_COMPACT":_.C("kevlar_modern_downloads_extra_compact")?M="RESPONSIVE_SIZE_EXTRA_COMPACT":_.C("kevlar_modern_downloads_tiny")&&(M="RESPONSIVE_SIZE_TINY");z={isExpanded:I,contents:Xo(z),entitySelectorType:l,responsiveContainerConfiguration:{responsiveSize:M}};b&&(z.title=b);v&&(z.subtitle=v);I||(_.C("kevlar_smart_downloads_show_more_button")?(z.showMoreButton={buttonRenderer:{accessibility:{label:_.mY("SHOW_MORE",
void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.xw(_.mY("SHOW_MORE",void 0,"Show more"))}},z.showLessButton={buttonRenderer:{accessibility:{label:_.mY("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.xw(_.mY("SHOW_LESS",void 0,"Show less"))}}):(z.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.mY("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}}}},z.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.mY("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}}}},z.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.mY("VIEW_ALL",void 0,"View all"),accessibilityText:_.mY("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:_.MF("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:z}};
Xo=function(z){var l=[];z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,Tbp(I)){var b=l,v=b.push;var M=void 0;if(I==null?0:(M=I.videoEntity)==null?0:M.videoId){M=nc(_.vF().getState(),I.videoEntity.videoId);var x=_.vF().getState();var g=_.Hg(I.videoEntity.videoId,"mainVideoEntity");x=!!_.cg(x.entities)[g];x={videoId:I.videoEntity.videoId,title:Op(I.videoEntity.title),shortBylineText:Op(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:x&&_.C("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Owf(I.videoEntity.videoId,M,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.mY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(x.thumbnailOverlays=pZY(I.videoEntity.lengthSeconds,M));x.isWatched=M>0;_.C("kevlar_modern_downloads_page")&&(x.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.mY("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},x.badges=void 0);I=x}else I={};v.call(b,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(YE$(I)){b=l;v=b.push;var G=g=M=void 0,u=void 0,Z=void 0,H=void 0,y=void 0,f=void 0,R=void 0,F=void 0,Y=void 0,c=void 0;x=I.mainPlaylistEntity.playlistId;var d=I==null?void 0:(c=I.mainPlaylistEntity)==null?void 0:(Y=c.thumbnailStyleData)==null?void 0:(F=Y[0])==null?void 0:(R=F.value)==null?void 0:(f=R.collageThumbnail)==
null?void 0:f.coverThumbnail;if(x&&d){f=gKu(x);!_.C("enable_offline_playlist_page")&&(I==null?0:(y=I.mainPlaylistEntity)==null?0:y.videos)&&(y=I==null?void 0:(H=I.mainPlaylistEntity)==null?void 0:(Z=H.videos)==null?void 0:Z[0],Z=_.Ep(y).entityId,Z=JSON.parse(Z).videoId,Z!==void 0&&(H=nc(_.vF().getState(),Z),f=_.pc(Z,x,void 0,void 0,H)));Z=[];if(I==null?0:(u=I.mainPlaylistEntity)==null?0:(G=u.videos)==null?0:G.length)Z=[rCQ(),Object.assign({},(g=sE7(I==null?void 0:I.mainPlaylistEntity.videos.length))!=
null?g:{})];I={playlistId:x,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:d}},navigationEndpoint:f,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:Z,title:Op(I.mainPlaylistEntity.title),shortBylineText:Op(I==null?void 0:(M=I.channelEntity)==null?void 0:M.title),badges:[{metadataBadgeRenderer:{label:_.mY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.C("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:YSk,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.mY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;v.call(b,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return l};
B9k=function(z,l,I){z=z?T9Y(z):"";l!==void 0&&isFinite(l)?l===0?l=_.mY("UPDATING",void 0,"Updating..."):(l=MD$(new Date(l),new Date),l=_.mY("UPDATED_TIME",{relative_time:l},"Updated "+l)):l="";var b="";z&&l&&(b=" \u2022 ");if(I&&_.C("kevlar_display_downloads_numbers")){I=_.KM("VIDEO_COUNT",I);if(z||l)b=" \u2022 ";return I+b+z+b+l}return z+b+l};
c67=function(z){return KtH(z.entities).length};
_.SSt=function(z,l){var I=bBH(z.responsiveSize),b;z=!((b=z.responsiveMap)==null||!b.some(function(v){return v.containerSize==="CONTAINER_SIZE_NARROW"&&v.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:l,sizing:I,enableFullBleedForSingleCol:!1,isCompactList:I==="COMPACT"&&z}};
dqu=function(z,l){return _.Cc(z.entities,"votingEntity",l)};
qa=function(z){if(z){var l;return((l=_.pG().resolve(_.MB(_.I2)))==null?0:l())?z.darkTheme:z.lightTheme}};
ok5=function(z,l){if(z.simpleText)return Object.assign({},z,{simpleText:jZ(z.simpleText,l)});if(!z.runs)return z;for(var I=Object.assign({},z,{runs:[]}),b=0,v=_.D(z.runs),M=v.next();!M.done;M=v.next())if(M=M.value,M.text)if(b+M.text.length<=l)I.runs.push(M),b+=M.text.length;else return I.runs.push(Object.assign({},M,{text:jZ(M.text,l-b)})),I;return z};
PGH=function(z,l){return _.Cc(z.entities,"chipBarStateEntity",l)};
hf1=function(z,l){return _.Cc(z.entities,"chipEntity",l)};
r6Y=function(z,l,I,b){return function(){var v=sSY.has(z.displayType)&&z.selected,M=v&&z.deselectCommand?z.deselectCommand:z.tapCommand;!M||v&&b||_.ae(M,{form:{element:l==null?void 0:l.value}});I==null||I()}};
$qx=function(z){switch(z){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""}};
efG=function(z,l){return{triggeringElement:z,onDwellTriggeredFn:function(){var I={triggeringElement:z,loadVideoPreviewEventData:l},b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:I}))},
onDwellEndFn:function(){var I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
wMQ=function(z,l){var I=_.pG().resolve(_.MB(wvt)),b=function(){var v=l();return I&&v?efG(z.value,v):null};
_.Te(function(){var v=b();I&&v&&Promise.resolve().then(function(){I.registerElement(v)});
_.cb(function(){I&&v&&Promise.resolve().then(function(){_.LY(I,v)})})},"csPUge")};
WVf=function(z){var l=z.dataset.resizeObserverId;if(l)return l;l=""+A6$++;return z.dataset.resizeObserverId=l};
nkf=function(z,l){var I=WVf(z);i7.has(I)||i7.set(I,new Set);i7.get(I).add(l);Fo.has(I)&&l(Object.assign({},{target:z},Fo.get(I)))};
LVt=function(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;var I=WVf(l.target),b=Object.assign({},{target:l.target},Fo.get(I));if(b!=null&&b.contentRect?b.contentRect.width!==l.contentRect.width||b.contentRect.height!==l.contentRect.height:1)for(Fo.set(I,{borderBoxSize:l.borderBoxSize,contentBoxSize:l.contentBoxSize,contentRect:l.contentRect,devicePixelContentBoxSize:l.devicePixelContentBoxSize}),I=_.D(i7.get(I)||[]),b=I.next();!b.done;b=I.next())b=b.value,b(l)}};
aGS=function(){return Qb?Qb:Qb=new UqG(LVt)};
V0x=function(z,l){var I=WVf(z);i7.has(I)&&(i7.get(I).delete(l),i7.get(I).size===0&&(i7.delete(I),Fo.delete(I),Qb.unobserve(z),delete z.dataset.resizeObserverId));i7.size===0&&Qb&&(Qb.disconnect(),Qb=void 0)};
J6f=function(z,l){var I=_.pG().resolve(Mh);return jS7.map(function(b){return I.observe(z,l,b)})};
zdx=function(z){var l=_.pG().resolve(Mh);z.forEach(function(I){l.unobserveByKey(I)})};
_.bLQ=function(z,l){var I=Object.assign({},lKf,l);l=_.D(YN7());var b=l.next().value,v=l.next().value,M=function(x){var g=x.contentRect.height;if((x=x.contentRect.width)||g||I.canHaveZeroSize)b.width()===x&&b.height()===g||v(b,{height:g,width:x})};
_.Sm(function(){var x=z instanceof HTMLElement?z:z.value,g=IK5(M,I.throttleMs),G=[];I.useVisibilityObserver&&(G=J6f(x,function(u,Z){requestAnimationFrame(function(){Z==="visible"?(nkf(x,g),aGS().observe(x)):V0x(x,g)})}));
G.length||(nkf(x,g),aGS().observe(x));_.cb(function(){G.length&&(zdx(G),G.length=0);V0x(x,g)})});
return b};
MRu=function(z,l,I,b,v){z=l?z.switchOffCommand:z.switchOnCommand;if(b&&v)vvG(z,I,v);else{var M,x;(M=_.LE({elementsCommand:z}))==null||(x=M.onclick)==null||x.call(M,I)}};
vvG=function(z,l,I){z=_.LE({elementsCommand:z,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(z==null?0:z.onclick)z.onclick(l),I(!0)};
DHu=function(z){if(z)return _.k(z,pNu)};
xHQ=function(z,l){if(!((l==null?0:l.entitySelectorType)&&(l==null?0:l.entityKey)))return{};switch(l.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var I=_.UW(z,l.entityKey);I=I==null?void 0:I.value;var b=!1;I==="CAPTIONS_UNAVAILABLE"&&(b=!0,I="");return Object.assign({},!!I&&{selectionText:{content:I}},!!I&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:b});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.C("web_shorts_audio_track_picker")){z=
_.UW(z,l.entityKey);z=z==null?void 0:z.value;l=((I=_.mE())==null?void 0:I.getAudioTrack())||void 0;z=(l==null?void 0:(b=l.getLanguageInfo())==null?void 0:b.getName())||z;var v;return Object.assign({},{selectionText:{content:z}},z&&!(l==null?0:(v=l.getLanguageInfo())==null?0:v.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}return{};default:return{}}};
OLu=function(z){var l=["A".toString(),"BUTTON".toString()];return function(I){var b=function(v){_.$U(_.r5(v),I,l)||z(v)};
I.addEventListener("click",b);return function(){I.removeEventListener("click",b)}}};
gvY=function(z){return function(){return _.k(z(),_.YM)}};
ZLf=function(z,l,I){if(l)return[Gxu];switch(z){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[TD];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[TD]:[NtQ,TD];case "TRANSFER_STATE_PAUSED_BY_USER":return[Ev1,TD];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[u4k,TD];default:return[Gxu]}};
HLY=function(z,l,I,b){return ZLf(z,l,b).map(function(v){var M=v.text,x=v.iconType,g=v.videoAction;v=v.playlistAction;M=M?{content:M}:void 0;x=x&&{sources:[{clientResource:{imageName:x}}]};var G=(0,_.h7.unsafeClone)(I);if(G){var u=_.k(G,_.qv),Z=_.k(G,_.i1);u&&g?u.action=g:Z&&v&&(Z.action=v)}return{title:M,leadingImage:x,rendererContext:G&&{commandContext:{onTap:{innertubeCommand:G}}}}})};
y0t=function(z){z=_.e9(z.rendererContext);var l;return(l=_.k(z,_.i1))==null?void 0:l.playlistId};
fKp=function(z){var l;return(l=z.listItems)==null?void 0:l.some(function(I){var b;return _.w5((b=_.k(I,_.d5))==null?void 0:b.rendererContext)})};
Rdk=function(z){var l;return(l=z.listItems)==null?void 0:l.some(function(I){var b,v,M=(v=(b=_.k(I,Cmp))==null?void 0:b.defaultListItem)!=null?v:I;I=_.k(M,_.d5);return!!_.k(I==null?void 0:I.leadingAccessory,kxt)})};
tRk=function(z){var l=z.element;var I=z.veType;var b=z.storedVisualElement===void 0?null:z.storedVisualElement;var v=z.elementIndex===void 0?0:z.elementIndex;z=z.clientYouTubeData;var M=_.sU();M!==mHS&&(KpG.clear(),mHS=M);if(l.visualElement&&KpG.has(l.visualElement))return null;if(b&&KpG.has(b))return l.visualElement=b,null;I=_.q8(_.iY(),{veType:I,elementIndex:v,clientYouTubeData:z});if(!I)return null;l.visualElement=I;KpG.add(I);return I};
_.ct=function(z,l,I,b){I=I===void 0?null:I;b=b===void 0?Hxf:b;var v=v===void 0?null:v;hx(function(){if(l){I instanceof Function&&(I=I());var M=tRk({element:l,veType:z,storedVisualElement:I,clientYouTubeData:void 0});M&&(Cax(l,v),b(M))}})};
S2=function(z,l){if(z){switch(l){case 0:z=z.primaryTitleColor;break;case 1:z=z.secondaryTitleColor;break;case 2:z=z.surgeColor;break;case 3:z=z.section2Color;break;case 4:z=z.section3Color;break;default:return}if(z)return _.Ur(z)}};
dn=function(z,l){if(z){switch(l){case 0:z=z.primaryTitleColor;break;case 1:z=z.secondaryTitleColor;break;case 2:z=z.surgeColor;break;case 3:z=z.section2Color;break;case 4:z=z.section3Color;break;default:return}if(z)return _.Ur(z)}};
Btp=function(z){return z?_.aD(z):""};
XNG=function(z){return(z==null?void 0:z.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
qax=function(z,l){return _.Cc(z.entities,"videoOverviewAsyncDataEntity",l)};
iLH=function(z,l){var I;return"linear-gradient(to bottom, "+((I=l==null?void 0:l.map(function(b){var v=z?b.darkThemeColor:b.lightThemeColor;return v?_.aD(v)+" "+((b==null?void 0:b.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
Fpt=function(z,l,I,b,v){if(!((b==null?0:b.height)&&(b==null?0:b.width)))return{size:0};var M=b.width;b=b.height;if(v)return l==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&M>b?{size:312/uKG}:l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(I!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||z!==1&&z!==2||l!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&l!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&l!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(l==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||b===M)switch(z){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b>M)switch(z){case 1:case 3:return{size:240*E_x};default:return{size:360*E_x}}switch(z){case 1:case 2:return{size:1/uKG*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Q9k=function(z){if(!("matchMedia"in window))return _.nP(Error("Uh")),function(){return!1};
var l=window.matchMedia(z);z=_.D(_.Z_(l.matches,void 0,"jLJc8e"));var I=z.next().value,b=z.next().value,v=function(M){b(M.matches)};
l.addEventListener?(l.addEventListener("change",v),_.cb(function(){l.removeEventListener("change",v)})):l.addListener&&(l.addListener(v),_.cb(function(){l.removeListener(v)}));
return I};
Yax=function(z){return z==="IMAGE_BANNER_STYLE_INSET"||z==="IMAGE_BANNER_STYLE_UNKNOWN"};
TtG=function(){if(!("matchMedia"in window))return _.nP(Error("Uh")),function(){return 0};
var z=dr(function(){return window.matchMedia("(max-width: 527.9px)")}),l=dr(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),I=dr(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),b=dr(function(){return window.matchMedia("(min-width: 1024px)")}),v=_.D(_.Z_(z.matches,void 0,"og9kEc")),M=v.next().value,x=v.next().value;
v=_.D(_.Z_(l.matches,void 0,"ybDWCb"));var g=v.next().value,G=v.next().value;v=_.D(_.Z_(I.matches,void 0,"o0Gfh"));var u=v.next().value,Z=v.next().value;v=_.D(_.Z_(b.matches,void 0,"yqUUgd"));var H=v.next().value,y=v.next().value,f=dr(function(){return function(c){x(c.matches)}}),R=dr(function(){return function(c){G(c.matches)}}),F=dr(function(){return function(c){Z(c.matches)}}),Y=dr(function(){return function(c){y(c.matches)}});
_.Sm(function(){z.addEventListener?(z.addEventListener("change",f),l.addEventListener("change",R),I.addEventListener("change",F),b.addEventListener("change",Y)):z.addListener&&(z.addListener(f),l.addListener(R),I.addListener(F),b.addListener(Y));_.cb(function(){z.removeEventListener?(z.removeEventListener("change",f),l.removeEventListener("change",R),I.removeEventListener("change",F),b.removeEventListener("change",Y)):z.removeListener&&(z.removeListener(f),l.removeListener(R),I.removeListener(F),
b.removeListener(Y))})});
return function(){return M()?1:g()?2:u()?3:H()?4:0}};
c0k=function(z){var l=0;z=_.D([z.title,z.metadata,z.actions,z.description,z.attribution]);for(var I=z.next();!I.done;I=z.next())I.value&&l++;return l};
SaQ=function(z){return z===1||z===2?1:0};
ovu=function(z){z=(new dH$).parse(z);return(new CQ).render(z).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(l){var I=l.split(":").map(Number),b=0,v=0;if(I.length===3)I=_.D(I),b=I.next().value,v=I.next().value,I=I.next().value;else if(I.length===2)I=_.D(I),v=I.next().value,I=I.next().value;else if(I.length===1)I=_.D(I).next().value;else throw Error("Vh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(b*3600+v*60+I)+'" role="button">'+l+"</span>"})};
Pmx=function(z){z=_.D(z.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var l=z.next(),I={};!l.done;I={clickHandler$jscomp$5:void 0},l=z.next()){l=l.value;I.clickHandler$jscomp$5=function(v){v=Number(v.target.getAttribute("data-time"));if(isNaN(v))throw Error("Wh");var M;(M=_.mE())==null||M.seekTo(v,!0)};
var b=function(v){return function(M){M.key!=="Enter"&&M.key!=="Space"||(0,v.clickHandler$jscomp$5)(M)}}(I);
l.setAttribute("tabindex","0");l.removeEventListener("click",I.clickHandler$jscomp$5);l.removeEventListener("keydown",b);l.addEventListener("click",I.clickHandler$jscomp$5);l.addEventListener("keydown",b)}};
hdS=function(){return _.N("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.N(oF,{percentWidth:100}),_.N(oF,{animationDelay:200}),_.N(oF,{animationDelay:400}),_.N(oF,{animationDelay:600}),_.N(oF,{animationDelay:800,percentWidth:60}),_.N("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.N(oF,{percentWidth:100}),_.N(oF,{animationDelay:200}),_.N(oF,{animationDelay:400}),_.N(oF,{animationDelay:600,percentWidth:50}))};
oF=function(z){return _.N("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(z.percentWidth===void 0?100:z.percentWidth)+"%"},_.N("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(z.animationDelay===void 0?0:z.animationDelay)+"ms"}))};
s91=function(){var z=_.D(_.Z_(function(){return""},void 0,"dXJHWc")),l=z.next().value;
return[function(){return l()()},
z.next().value]};
r05=function(z,l){z=z?T9Y(z):"";l!==void 0&&isFinite(l)?l===0?l=_.mY("UPDATING",void 0,"Updating..."):(l=MD$(new Date(l),new Date),l=_.mY("UPDATED_TIME",{relative_time:l},"Updated "+l)):l="";var I="";z&&l&&(I=" \u2022 ");return _.xw(z+I+l)};
wN5=function(z,l,I,b,v,M){l=l===void 0?0:l;var x=$Hu[l],g=x.title,G=x.iconType,u=x.topButtonRenderer,Z=x.sectionClientVE;x=x.videoClientVE;var H;if(l!==1||z.length){I=[];z=_.D(z);for(b=z.next();!b.done;b=z.next()){var y=b.value;if(Tbp(y))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:y.videoEntity.videoId,title:Op(y.videoEntity.title),shortBylineText:Op(y.channelEntity.title),thumbnail:y.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:y.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.mY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:x}}}}}});else if(YE$(y)){b=I;var f=b.push;var R=void 0,F=void 0,Y=void 0,c=void 0,d=void 0,V=void 0,A=void 0,W=void 0,L=y.mainPlaylistEntity.playlistId,lH=y==null?void 0:(W=y.mainPlaylistEntity)==null?void 0:(A=W.thumbnailStyleData)==null?void 0:(V=A[0])==null?void 0:(d=V.value)==null?void 0:(c=d.collageThumbnail)==null?void 0:c.coverThumbnail;c=gKu(L);if(!_.C("enable_offline_playlist_page")&&
(y==null?0:(Y=y.mainPlaylistEntity)==null?0:Y.videos)){b:{Y=y==null?void 0:(F=y.mainPlaylistEntity)==null?void 0:F.videos;F=_.vF().getState().entities;if(Y!=null&&Y.length&&F)for(Y=_.D(Y),d=Y.next();!d.done;d=Y.next())if(d=_.Ep(d.value).entityId,(d=JSON.parse(d).videoId)&&RXf(F,d)==="TRANSFER_STATE_COMPLETE"){F=d;break b}F=""}F!==void 0&&(c=nc(_.vF().getState(),F),c=_.pc(F,L,void 0,void 0,c))}F=NLu(_.mY("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),gKu(L));y=L&&lH&&F?{playlistId:L,navigationEndpoint:c,
viewPlaylistText:F,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:lH}},title:Op(y.mainPlaylistEntity.title),shortBylineText:Op(y==null?void 0:(R=y.channelEntity)==null?void 0:R.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:edQ,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:L,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.mY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:x}}}:
void 0;f.call(b,{gridPlaylistRenderer:y})}}x={gridRenderer:{items:I}};l===1&&(H=r05(v,M))}else if(b){var Gk=_.xw((f=I==null?void 0:I.localizedPromptMessage)!=null?f:"");x={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.xw(_.mY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.aZH}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.xw(_.mY("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};H=r05(v,M)}else Gk=_.xw(_.mY("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
x={};return{contents:[{shelfRenderer:{title:g,titleAnnotation:H,icon:{iconType:G},subtitle:Gk,content:x,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:u}]}}}}],loggingDirectives:{clientVeSpec:{uiType:Z}}}};
A0$=function(z,l,I,b,v,M,x,g,G,u,Z){I=I===void 0?{}:I;b=b===void 0?{}:b;v=v===void 0?!1:v;M=M===void 0?!1:M;x=x===void 0?!1:x;g=g===void 0?!1:g;G=G===void 0?!1:G;u=u===void 0?0:u;Z=Z===void 0?-Infinity:Z;if(!(l.length||z.length||v||g))return M?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:CGk(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.xw(_.mY("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var H=[];z.length&&H.push(wN5(z,0));g?H.push({contents:[{statementBannerRenderer:t0Q(G,b)}]}):v?H.push(wN5(l,1,I,x,u,Z)):M&&H.push({contents:[{statementBannerRenderer:Rf1(I)}]});(v&&l.length||z.length)&&H.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.xw(_.mY("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return H.map(function(y){return{itemSectionRenderer:y}})};
Pt=function(z,l){if(typeof z!=="object")return null;z=_.D(Object.entries(z));for(var I=z.next();!I.done;I=z.next()){var b=_.D(I.value);I=b.next().value;b=b.next().value;if(I===l)return I;if(b=Pt(b,l))return I+"."+b}return null};
hQ=function(z){var l=z.content;return(z=z.styleRuns)&&l?{runs:z.map(function(I){var b={text:l.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(b.textColor=I.fontColor);return b})}:{simpleText:l}};
Lp$=function(z,l,I,b){var v=WpH;b&&(z.quantity=b);if(!z.quantity||!z.maxQuantity)return{};b=z.minusButton;var M=z.plusButton,x,g,G,u;return{value:z.quantity,maxValue:z.maxQuantity,onChangeCallback:function(Z){v(z,Z)},
minusLabel:(x=_.k(b,nv5))==null?void 0:x.label,minimumReachedLabel:(g=_.k(b,nv5))==null?void 0:g.limitReachedLabel,plusLabel:(G=_.k(M,nv5))==null?void 0:G.label,maximumReachedLabel:(u=_.k(M,nv5))==null?void 0:u.limitReachedLabel,disabled:l,onRemoveCommand:I}};
WpH=function(z,l){var I=z.quantityIncrementerEntityKey;if(I){var b={};b.quantity=l;_.pE(_.sc("quantityIncrementerEntity",I,b));z.onChangeCommand&&_.ae(z.onChangeCommand)}};
VR$=function(z,l){(z=UHQ(z))&&((_.C("enable_mini_app_command_handler_mweb_fix")?0:l)?aKx.push({command:z,sourceData:{},commandContext:void 0}):_.pG().resolve(_.DQ).resolveCommand(z))};
UHQ=function(z){return _.k(z,_.Ax)};
j91=function(){var z=window.performance.timeOrigin+window.performance.now(),l=(new _.rn).setSeconds(z/1E9);return _.zT(l,2,_.vX(z%1E9),0)};
zA5=function(z,l){var I;z=(I=_.k(_.k(z,_.Ax),J01))==null?void 0:I.methodName;var b,v;(I=window.youtubewebview||((b=window.webkit)==null?void 0:(v=b.messageHandlers)==null?void 0:v.youtubewebview))&&z&&(b=new $M,z=_.Th(b,1,z),z=_.Tc(z.JSC$12394_serializeBinary()),l=_.Tc(l),I.postMessage(z+","+l))};
e2=function(z,l){var I=_.k(_.k(z,_.Ax),J01);I&&(l&&(I.serializedAdditionalMetadata=_.Tc(l)),VR$(z,!0))};
lT$=function(z){switch(z){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"}};
ITu=function(){return!!_.sZ("ID_TOKEN")};
Mwt=function(z){return z instanceof Error&&z.cause instanceof bHG&&z.cause.rpcErrorCode!==void 0?!vnQ.includes(z.cause.rpcErrorCode):!0};
DLk=function(){return _.Jr(p4G,{authuser:""+(_.sZ("SESSION_INDEX")||0)})};
wn=function(z,l,I,b){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;b=b===void 0?"":b;var v=new _.qB;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:b,sdkApi:I};z instanceof Error&&(v.message=z.message,v.name=z.name,z.cause instanceof bHG&&z.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=z.cause.rpcErrorCode));var M;(M=l.onError)==null||M.call(l,{loggingError:v,metadata:I})};
OHY=function(z,l,I,b){switch(z){case "MINI_APP_SOURCE_GAMESNACKS":return new AQ(l,I,b);default:return new xLu(l,I,b)}};
gn7=function(z){switch(z){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"}};
Gfx=function(z){switch(z){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"}};
NQG=function(z){switch(z){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
En5=function(){return Math.floor(Math.random()*4)+1};
uUp=function(z,l,I,b){z=_.D(Object.entries(z));for(var v=z.next(),M={};!v.done;M={message$jscomp$993:void 0},v=z.next()){var x=_.D(v.value);v=x.next().value;x=x.next().value;M.message$jscomp$993=x;l.push(setTimeout(function(g){return function(){b(!1);I(g.message$jscomp$993.text)}}(M),M.message$jscomp$993.delayMs));
Number(v)>0&&l.push(setTimeout(function(){b(!0)},M.message$jscomp$993.delayMs-400))}};
ZHk=function(z,l){var I=I===void 0?Hxf:I;_.C("mweb_fix_monitor_visibility_after_render")?z&&hx(function(){Cax(z,l,I)}):hx(function(){Cax(z,l,I)})};
HHk=function(z,l){var I=document.createElement("ytd-engagement-panel-section-list-renderer");I.data=z;if(l==null?0:l.isPersistentPanel)I.isPersistentPanel=!0;return I};
kfY=function(z){yuG||(yuG=fTu(new _.ah(1,void 0,void 0,CBQ),0));var l=yuG.format(Math.floor(z));l=Lc==="be"||Lc==="bg"||Lc==="es"||Lc==="et"||Lc==="hu"||Lc==="ka"||Lc==="lv"||Lc==="pl"||Lc==="pt-PT"||Lc==="sq"?l.replace(new RegExp("^(\\d)"+CBQ.GROUP_SEP.replace(".","\\.")+"(\\d+("+CBQ.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):l;return z>=1E3&&z<=9999&&l[1]==="."&&(Lc==="sl"||Lc==="it")?l.replace(".",""):l};
RAQ=function(z,l){o6Y("ytd-button-renderer",{data:z,className:l?l.className:"",overrides:l==null?void 0:l.buttonOverrides},htG)};
twQ=function(z,l,I,b){if(z)return b=b||z.likeStatus,l?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="LIKE",isDisabled:!z.likesAllowed,defaultIcon:{iconType:I},defaultText:b==="LIKE"?z.likeCountWithUnlikeText:z.likeCountText,toggledText:b==="LIKE"?z.likeCountText:z.likeCountWithLikeText,defaultNavigationEndpoint:mL5(z,"LIKE"),defaultServiceEndpoint:KbY(z,"LIKE"),toggledServiceEndpoint:KbY(z,"INDIFFERENT"),defaultTooltip:_.ID(z.likeCountTooltipText),toggledTooltip:_.ID(z.likeCountTooltipText),
targetId:z.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="DISLIKE",isDisabled:!z.likesAllowed,defaultIcon:{iconType:I},defaultText:b==="DISLIKE"?z.dislikeCountWithUndislikeText:z.dislikeCountText,toggledText:b==="DISLIKE"?z.dislikeCountText:z.dislikeCountWithDislikeText,defaultNavigationEndpoint:mL5(z,"DISLIKE"),defaultServiceEndpoint:KbY(z,"DISLIKE"),toggledServiceEndpoint:KbY(z,"INDIFFERENT"),defaultTooltip:_.ID(z.dislikeCountTooltipText),
toggledTooltip:_.ID(z.dislikeCountTooltipText)}};
mL5=function(z,l){if(l==="LIKE")return z.likeCommand;if(l==="DISLIKE")return z.dislikeNavigationEndpoint};
KbY=function(z,l){var I;return(I=z.serviceEndpoints)==null?void 0:I.find(function(b){var v;return((v=_.k(b,_.Wt))==null?void 0:v.status)===l})};
_.qRf=function(z,l,I){return window.spf&&!_.C("web_disable_spfjs_client")?BQY(z,l,I):X47(z,l)};
BQY=function(z,l,I){var b=null,v=(new _.yK(function(M,x){var g={};if(l){g.method=l.method;var G=l.postParams||{};MSQ(z,l)&&(G[_.sZ("XSRF_FIELD_NAME")]=_.sZ("XSRF_TOKEN"));g.postData=_.CG(G);l.type&&(g.type=l.type);G=l.headers}g.headers=JHf(z,G);_.C("debug_forward_web_query_parameters")&&(z=_.bcQ(z,window.location.search));g.experimental_headers=g.headers;g.onError=function(u){u.err&&u.xhr&&(u.err.params={url:u.xhr.responseURL,response:u.xhr.responseText.substr(0,64)});x(u.err)};
g.onPartDone=function(u){I&&I.call(null,u.part)};
g.onDone=function(u){var Z=iHG(u.response,"xsrf_token");I3(window.location.href,z)&&Z&&_.hr("XSRF_TOKEN",Z);if(Z=iHG(u.response,"service_worker_killswitch"))_.hr("SERVICE_WORKER_KILLSWITCH",Z),JnQ();M(u.response)};
b=spf.request(z,g)})).then(Fbk);
v.thenCatch(function(M){var x=M instanceof _.nj,g=M&&M.hasOwnProperty("params")&&M.params.response?M.params.response:"";M instanceof Error&&(g?x?$vS(M):g===')]}\'\n{"reload":"now"}'?$vS(M):(Q4f(M,z,g),YRY(M,g)?_.PW(M):_.dE(M)):$vS(M));b&&b.abort()});
return v};
Fbk=function(z){if(z.type==="multipart"){var l=z.timing;z=z.parts.reduce(function(I,b){Object.assign(I,b);return I},{});
z.timing=z.timing||{};Object.assign(z.timing,l);z.type="reduced"}return z};
X47=function(z,l){l=l===void 0?{}:l;var I=null,b=new _.yK(function(v,M){l.onFinish=function(x){if(x.readyState===XMLHttpRequest.DONE)if(x.status===200){if(x.responseType!=="json"){var g=x.response;g.substring(0,5)===")]}'\n"&&(g=g.substring(5));try{var G=JSON.parse(g)}catch(u){G=u}}else G=x.response;G instanceof Error?M(G):(g=iHG(G,"xsrf_token"),I3(window.location.href,z)&&g&&_.hr("XSRF_TOKEN",g),x=x.responseURL,window.performance&&window.performance.getEntriesByName?(g=window.performance.getEntriesByName(x).pop())?
x={responseStart:(0,_.Dr)()-(g.responseEnd-g.responseStart)}:(Math.random()<.01&&(g=Error("hi"),g.params=x,_.PW(g)),x={responseStart:-1}):x={responseStart:0},G.timing=G.timing||{},Object.assign(G.timing,x),v(G))}else M(Error("gi`"+x.status))};
(I=_.fG(z,l))||M(Error("gi`"+I.status))});
b.thenCatch(function(v){v instanceof Error&&(Q4f(v,z),YRY(v)&&(v.level="WARNING"))});
_.C("cancel_pending_navs")&&b.thenCatch(function(){I.abort()});
return b};
iHG=function(z,l){var I=z[l],b=z.parts;z.type==="multipart"&&b&&(I=(z=b.find(function(v){return l in v}))&&z[l]);
return I};
Q4f=function(z,l,I){var b=z.message||"";l={original:b,url:l};if(I)if(b=b.match(/position:?\s*(\d+)/)){b=b&&Number(b[1])?Number(b[1]):0;var v=Math.max(b-25,0);l.position=b;l.response=I.substring(v,b+25)}else l.response=I.substring(0,50);_.hK(z,l);try{z.message="JSON parse error"}catch(M){}};
YRY=function(z,l){z=z.message||"";z=!!(z.indexOf("<")>=0||z.indexOf("end of ")>=0||z.indexOf("Unterminated string")>=0||z.indexOf("Unexpected EOF"));if(!z&&l)for(var I=l.length,b=!1,v=0;v<I;v++)if(b&&l[v]==="\\")v++;else if(l[v]==='"')b=!b;else if(l[v]==="<"&&!b){z=!0;break}return z};
TQQ=function(){return document.documentElement.hasAttribute("dark")};
_.cuH=function(z,l){if(z!=="GFEEDBACK"&&z!=="GUIDED_HELP")_.$P(Error("ii`"+z));else{var I=_.pG().resolve(_.MB(_.OB));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var b=0,v;v=I[b++];)if(v.service===z){if(z=v.params)for(I=0;b=z[I++];)l[b.key]=b.value;break}}};
_.SRu=function(z){var l=_.GS();l&&(l=l.getPlayer())&&(l.pauseVideo(),z.playback_id=l.getVideoData().cpn,z.eid=l.getVideoData().eventId,Object.assign(z,l.getFeedbackProductData()))};
dLG=function(){var z={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.sZ("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(z.enableAnonymousFeedback=!0);_.sZ("SESSION_INDEX")&&(z.authuser=String(_.sZ("SESSION_INDEX")));_.C("enable_pageid_for_feedback")&&_.sZ("DELEGATED_SESSION_ID")&&(z.pageId=String(_.sZ("DELEGATED_SESSION_ID")));return z};
_.Lj=function(z){_.C("enable_ypc_spinners")&&_.Gb(z,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},z])};
_.Uc=function(z){_.C("enable_ypc_spinners")&&_.Gb(z,"yt-close-popup-action",["yt-loading-renderer"])};
onf=function(z){return new Promise(function(l,I){_.nE({verifyCommand:{recaptchaToken:z.recaptchaResponse}},{commandController:{onSuccess:function(b,v){v||I("ChallengeService did not return a response.");var M;l({challengeCompleted:(M=v.verified)!=null?M:!1})},
onServerError:function(b,v){I(v)}}})})};
PBQ=function(z,l,I,b){l({recaptchaResponse:b}).then(function(v){v.challengeCompleted?_.tE()?(I(3),_.pG().resolve(_.DQ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:z}})):I(2):I(4)},function(){I(4)})};
s4u=function(z,l,I){_.nQ(_.HR(hAp,_.sZ("HL")),function(){var b;(b=window.grecaptcha)==null||b.ready(function(){var v=window.grecaptcha;v?(I(v.render(z,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:PBQ.bind(null,z,onf,l)})),l(1)):l(4)})})};
rup=function(z,l){return function(){switch(l()){case 0:return z().captchaLoadingMessage;case 1:return z().challengeReason;case 3:return z().captchaSuccessfulMessage;case 2:return z().captchaCookieSetFailureMessage;case 4:return z().captchaFailedMessage;default:return z().challengeReason}}()};
_.aF=function(){if(!$L1){var z=document.querySelector("#player.skeleton");z&&(_.Bl(z),$L1=!0)}};
_.w4f=function(){return eA7=zFG()};
nnS=function(){return _.O(function(z){return AuQ!==void 0?z.return():z.yield(WbQ(),0)})};
WbQ=function(){return _.O(function(z){if(z.nextAddress==1)return z.yield(IWS(),2);eA7=z.yieldResult;AuQ=_.ow.addLowPriorityJob(WbQ,5E3);_.qe(z)})};
JuH=function(z){var l=l===void 0?LbY:l;var I,b,v=(I=z.responseContext)==null?void 0:(b=I.mainAppWebResponseContext)==null?void 0:b.trackingParam;if(!v){l.increment("MISSING");var M,x,g,G,u,Z;_.PW(new _.qB("282054944_a",{ooo:!!((M=z.responseContext)==null?0:(x=M.mainAppWebResponseContext)==null?0:x.loggedOut),t2Y:((g=z.responseContext)==null?void 0:g.mainAppWebResponseContext)===void 0,jYe:z.responseContext===void 0,cp:(G=z.playabilityStatus)==null?void 0:G.contextParams,f0c:(((u=z.streamingData)==
null?void 0:u.formats)||[]).length>0,sgu:(((Z=z.streamingData)==null?void 0:Z.adaptiveFormats)||[]).length>0,os:!!z.offlineState,cotn:z.cotn}));return 2}I="";try{I=UL5(v)}catch(f){return l.increment("C_ERROR"),_.dE(f),2}try{var H=_.aT5(I);var y=VwQ(H)}catch(f){return l.increment("P_ERROR"),_.dE(f),2}y=_.OA(y,j47,1,_.g1());v=[];y=_.D(y);for(H=y.next();!H.done;H=y.next())b=H.value,H=b.getPath(),I=(0,_.h7.getValueByKeys)(z,H.split(".")),I=String(I===void 0||I===null?"":I),b=b.getValue()||"",M=/[+\-\/_]/g,
I.replace(M,"")!==b.replace(M,"")&&(l.increment("MISMATCH"),_.C("ab_mis_log_err")&&(I=new _.qB("282054944_p",{iXv:H,g:String(I),e:String(b)}),_.dE(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(H)||(H.match(/enforcementMessageViewModel/i)?v.push(3):v.push(2)));if(v.length>0)return Math.max.apply(Math,_.ht(v));l.increment("SUCCESS");return 1};
IBp=function(z){var l=new Vb;if(z.interpreterJavascript){var I=_.Sxp(z.interpreterJavascript);I=xef(I).toString();var b=new z2Q;_.Th(b,6,I);_.tT(l,1,b,Qu)}else z.interpreterUrl&&(I=_.Pd(z.interpreterUrl),I=_.YR(I).toString(),b=new _.lBf,_.Th(b,4,I),_.tT(l,2,b,Qu));z.interpreterHash&&_.j2(l,3,z.interpreterHash,Qu);z.program&&_.j2(l,4,z.program,Qu);z.globalName&&_.j2(l,5,z.globalName,Qu);z.clientExperimentsStateBlob&&_.j2(l,7,z.clientExperimentsStateBlob,Qu);return l};
JQ=function(z){var l={};z=_.D(z.split("&"));for(var I=z.next();!I.done;I=z.next())I=I.value.split("="),I.length===2&&(l[I[0]]=I[1]);return l};
bb7=function(z){return Number(z.t)||7200};
YZS=function(){if(_.C("bg_st_hr"))return"havuokmhhs-0";var z,l=((z=globalThis.performance)==null?void 0:z.timeOrigin)||0;return"havuokmhhs-"+Math.floor(l)};
vep=function(){return new Promise(function(z){var l=window;l.ntpevasrs!==void 0?z(new zY(l.ntpevasrs)):(l.ntpqfbel===void 0&&(l.ntpqfbel=[]),l.ntpqfbel.push(function(I){z(new zY(I))}))})};
MkQ=function(z){var l=z.tDf.bind(z);_.vd("yt.aba.att",l);z=z.wKc.bind(z);_.vd("yt.aba.att2",z)};
DD7=function(z){switch(_.yI(z.input)){case _.Mo(pBH):var l={};return l.encryptedVideoId=z.innerTubeRequest.externalVideoId,l}return{}};
get=function(z){switch(_.yI(z.input)){case _.Mo(pBH):if(_.C("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Mo(xD7):if(_.C("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Mo(l9):if(_.C("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&z.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Mo(ObS):var l,I;if(_.C("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((I=_.k((l=z.config)==null?void 0:l.command,pkt))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.NXt=function(z){var l;if(z.playlistVideoRenderer&&((l=z.playlistVideoRenderer)==null?0:l.engagementBar))return GI1(z.playlistVideoRenderer.engagementBar);if(_.k(z,IU)){var I;if(z=(I=_.k(z,IU))==null?void 0:I.engagementBar)return GI1(z)}return""};
GI1=function(z){if(!z)return"";z=_.k(z,_.EeG);if(z==null||!z.actions)return"";z=_.D(z.actions);for(z=z.next();!z.done;z=z.next()){z=_.k(z.value,_.u27);var l=void 0;if((l=z)==null||!l.itemId)break;return z.itemId}return""};
_.Zbt=function(z){var l;if(z.playlistVideoRenderer&&((l=z.playlistVideoRenderer)==null?0:l.videoId))return z.playlistVideoRenderer.videoId;if(_.k(z,IU)){var I,b;if(z=(I=_.k(z,IU))==null?void 0:(b=I.playlistItemData)==null?void 0:b.videoId)return z}return""};
_.HbQ=function(z){var l;if(z.playlistVideoRenderer&&((l=z.playlistVideoRenderer)==null?0:l.voteCount))return z.playlistVideoRenderer.voteCount;if(_.k(z,IU)){var I,b;if(z=(I=_.k(z,IU))==null?void 0:(b=I.playlistItemData)==null?void 0:b.voteCount)return z}return 0};
_.b9=function(z,l){return _.Cc(z.entities,"flowStateEntity",l)};
fBx=function(z,l,I,b){var v=void 0;z=_.D(z[l.iconName]||[]);for(var M=z.next();!M.done;M=z.next()){M=M.value;var x=l.iconSize;var g=l.iconStyle;x=!x||x===M[2];var G=yB$[M[0]];b&&b!==M[1]||!x||g&&g!==G?g=!1:v?(g=yB$[M[0]],g=!!l.iconStyle||g==="youtube_outline",x=v.version<=M[1],g=(!!l.iconSize||M[2]===24)&&g&&x):g=!0;g&&(v={name:l.iconName,style:yB$[M[0]],size:M[2],version:M[1],allowMirroring:!!M[3],url:I(l.iconName,M)})}return v};
C6x=function(z,l,I,b){return z+(""+yB$[I[0]]+((b===void 0?0:b)?"_experimental":"")+"/"+l+"/v"+I[1]+"/")+(I[2]+"px.svg")};
kIu=function(z){return _.sZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.sZ("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":z};
R2Y=function(z,l){return C6x("https://fonts.gstatic.com/s/i/",z,l)};
mDt=function(z,l){return C6x("https://fonts.gstatic.com/s/i/",z,l,!0)};
Kox=function(z,l){return C6x("https://www.gstatic.com/youtube/img/icons/web/",z,l)};
BXu=function(z){var l=z.enabled;var I=z.itemPlaybackModel;var b=z.thumbnailElRef;var v=z.containerElRef;var M=z.options;var x;_.Te(function(){var g=v==null?void 0:v.value;var G,u=(G=b())==null?void 0:G.value;G=I();var Z=M();if(l&&G&&g&&u&&(Z==null?0:Z.thumbnail)){var H={data:G,hostElement:g},y,f,R=_.C("web_explore_hub_on_hover")||_.C("web_client_explore_hub_on_hover")?[].concat(_.ht((y=Z.thumbnailOverlays)!=null?y:[]),_.ht((f=G.overlays)!=null?f:[])):Z.thumbnailOverlays||[],F,Y;g={mediaRenderer:H,
lockupElement:g,thumbnailElement:u,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Wh((F=G.inlinePlayerData)==null?void 0:F.onVisible),navigationEndpoint:_.Wh((Y=G.inlinePlayerData)==null?void 0:Y.onSelect),thumbnail:Z.thumbnail,thumbnailOverlays:R,accessibilityText:Z.accessibilityText||""},thumbnailSize:Z.thumbnailSize,enableRounding:Z.enableRounding}}}else g=void 0;if(F=g){var c;(c=x)==null||vJ(c);x=nY(F);var d,V;((d=I())==null?0:(V=d.inlinePlayerData)==null?0:V.forceImpAutoplay)&&
tkS(x)}},"B33dEc");
_.cb(function(){var g;(g=x)==null||vJ(g)})};
XBY=function(z){z=atob(z);for(var l=[],I=0;I<z.length;I++)l.push(z.charCodeAt(I));return new Blob([new Uint8Array(l)],{type:"image/png"})};
ibx=function(z,l,I,b){b=b===void 0?"INSERTION_POSITION_UNSPECIFIED":b;return z({targetId:l},function(v){var M,x=(M=v.contents)!=null?M:[];M=I!=null?I:[];var g=qnG(x);switch(b){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},v,{contents:[].concat(_.ht(x.slice(0,g)),_.ht(M),_.ht(x.slice(g+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},v,{contents:[].concat(_.ht(M),_.ht(x))});case "INSERTION_POSITION_LAST":return Object.assign({},v,{contents:[].concat(_.ht(x),_.ht(M))});
default:return v}})};
QOH=function(z,l,I,b,v){v=v===void 0?"RELATIVE_INSERTION_POSITION_AFTER":v;return z({targetId:l},function(M){var x,g=(x=M.contents)!=null?x:[];x=FoH(g,I);if(x<0)return M;x=v==="RELATIVE_INSERTION_POSITION_BEFORE"?x:x+1;return Object.assign({},M,{contents:[].concat(_.ht(g.slice(0,x)),_.ht(b),_.ht(g.slice(x)))})})};
qnG=function(z){var l=z.findIndex(function(I){return _.k(I,_.MN)});
return l>=0?l:z.length};
FoH=function(z,l){return z.findIndex(function(I){a:{I=_.D(Object.values(I));for(var b=I.next();!b.done;b=I.next())if((b=b.value)&&b.targetId){I=b.targetId;break a}I=""}return I===l})};
TXQ=function(z,l,I){return z({targetId:l},function(b){var v,M=(v=b.contents)!=null?v:[];return Object.assign({},b,{contents:YnQ(M,I)})})};
YnQ=function(z,l){return z.filter(function(I){var b=l.includes;a:{I=_.D(Object.values(I));for(var v=I.next();!v.done;v=I.next())if((v=v.value)&&v.targetId){I=v.targetId;break a}I=""}return!b.call(l,I||"")})};
_.cBp=function(z,l){return{engagementPanelSectionListRenderer:{panelIdentifier:z,identifier:l,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Sn$=function(z,l){z=z.getAvailableAudioTracks();if(z.length)return z==null?void 0:z.find(function(I){var b;return(I==null?void 0:(b=I.getLanguageInfo())==null?void 0:b.getId())===l})};
_.oeu=function(z){var l,I=(l=z.getOption("captions","tracklist",{includeAsr:!0}))!=null?l:[];return I=dDk(I,z)};
P6Q=function(z){return z.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
dDk=function(z,l){l=P6Q(l);if(l==null||!l.length)return z;var I=l.filter(function(x){return x});
l=z.filter(function(x){return x.languageCode.startsWith("en")});
I=_.D(I);for(var b=I.next();!b.done;b=I.next())if(b=b.value,l.length){var v=l[0],M=Object.assign({},v);v.languageCode!==b.languageCode&&(M.displayName=v.languageName+" >> "+b.languageName,M.translationLanguage=b,z.push(M))}return z};
h2Q=function(z,l,I){z=_.oeu(z);if(z.length)return I?z.find(function(b){if(typeof(b==null?void 0:b.translationLanguage)==="object"){var v;return((v=b.translationLanguage)==null?void 0:v.languageCode)===l}return!1}):z==null?void 0:z.find(function(b){return b.languageCode===l})};
sOQ=function(z){return z.getOption("captions","tracklist",{includeAsr:!0})};
rBf=function(z){var l=z.getAvailableAudioTracks();if(l!=null&&l.length){var I=z.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ht(l.map(function(b){return{listItemViewModel:{title:{content:b.getLanguageInfo().getName()},isSelected:b.getLanguageInfo().getId()===(I==null?void 0:I.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:b.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
$DS=function(z){return z.getOption("captions","tracklist",{includeAsr:!0})};
e2H=function(z){var l=$DS(z);if(l==null?0:l.length)return l;z.loadModule("captions");return $DS(z)};
wBH=function(z){var l=z.getOption("captions","track");if(l)return l;z.loadModule("captions");return z.getOption("captions","track")};
Wot=function(z){var l=e2H(z);if(l!=null&&l.length){var I=wBH(z),b;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.mY("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(I==null?0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.ht(l.map(function(v){return{listItemViewModel:{title:{content:v.displayName},
isSelected:v.displayName===(I==null?void 0:I.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:v.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.mY("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!I.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!I.translationLanguage&&{selectionText:{content:(I==null?void 0:(b=I.translationLanguage)==null?void 0:b.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ABk(z)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
ABk=function(z){var l=P6Q(z);if(l==null||!l.length)throw Error("Hi");var I=wBH(z);z=l.filter(function(b){return!b.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ht(z.map(function(b){var v;return{listItemViewModel:{title:{content:b.languageName},isSelected:b.languageName===(I==null?void 0:(v=I.translationLanguage)==null?void 0:v.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:b.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
aBQ=function(z){return new Promise(function(l,I){if(z===void 0)_.dE(Error("Li"),"ERROR"),I(Error("Li"));else{I=new _.neQ;var b=_.LoQ();I=I.init();var v=_.UD5(_.sZ("YPC_MB_URL"),!0);Promise.all([I,v]).then(function(){var M=payments.business.integration.ClientTokenFactory.createClientToken(z,b);l(M)})}})};
JBu=function(z,l,I,b,v,M,x){var g=_.b1();I=I.replace(/-/g,"+").replace(/_/g,"/");var G=_.Bu().get("hl"),u=_.pI(_.vy),Z=l==null?void 0:l.element;Z&&_.Lj(Z);VkY(l,!0);_.jOG(u,I,g.resolve,function(){Z&&_.Uc(Z)},function(H){Z&&_.Uc(Z);
g.reject(H)},G,b?function(H){b&&_.I0(z,b,{backend_analytics:H})}:void 0,g.resolve,v,M,x);
return g.promise};
VkY=function(z,l){!(z=z==null?void 0:z.element)||z.tagName!=="YT-BUTTON-RENDERER"&&z.tagName!=="YTD-BUTTON-RENDERER"||(z.disabled=l)};
z0p=function(){var z=_.mY("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.xw(z),actionButton:{buttonRenderer:HVH()}}},popupType:"TOAST"}};
leQ=function(){var z=_.mY("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.xw(z),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
IeY=function(z){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:z}]}}};
Dq=function(z,l,I,b){var v;return _.O(function(M){if(M.nextAddress==1)return _.RL(M,2),M.yield(z,4);if(M.nextAddress!=2)return(v=_.QA(l.getState().entities).length>0)?M.return({title:_.xw(_.mY("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.xw(_.mY("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ZVG()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
M.return(y67(I,b));_.XP(M);return M.return(y67(I,b))})};
bCp=function(z,l){return l?l==="PPSV"||ta1(z,l):!1};
vo$=function(z){z.responseContext||(z.responseContext={});z.responseContext.maxAgeSeconds=0;return z};
O2=function(z){var l;return _.O(function(I){return I.nextAddress==1?I.yield(Mfp(z,"service:topbar:fallback"),2):(l=I.yieldResult)&&_.x1(l)?I.return(vo$(_.x1(l))):I.return()})};
p3Q=function(z){var l;return _.O(function(I){return I.nextAddress==1?I.yield(Mfp(z,"service:downloads_settings:fallback"),2):(l=I.yieldResult)&&_.x1(l)?I.return(l):I.return()})};
Mfp=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1)return z?b.yield(z.get(l),2):b.return();I=b.yieldResult;return!I||!_.x1(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?b.return():b.return(I)})};
DCt=function(z){var l=_.pG().resolve(gx).getState().entities;return z.playlistId?bCp(l,z.playlistId):!1};
xCH=function(z,l){var I;if(l==null?0:(I=l.requestTemplate)==null?0:I.panelId)z.panelId=l.requestTemplate.panelId;var b;if(l==null?0:(b=l.requestTemplate)==null?0:b.params)z.params=l.requestTemplate.params};
got=function(){if(OCQ)return OCQ();var z=!_.C("idb_response_store_auth_killswitch"),l={};OCQ=pp("yt-it-response-store",{objectStores:(l.ResponseStore={addedAtVersion:1},l),shared:!z,upgrade:function(I,b){b(1)&&(I=wi(I,"ResponseStore",{keyPath:["key","clientName"]}),AW(I,"byExpiration","expireTimestampMs"),AW(I,"byInterface","clientName"))},
version:1});return OCQ()};
GPQ=function(z){return _.jc(got(),z)};
Eop=function(z,l){var I;return _.O(function(b){return b.nextAddress==1?b.yield(_.MW(),2):(I=b.yieldResult)?b.return(new NdQ(z,l,I)):b.return()})};
ukt=function(z){var l=Object.keys(z)[0];if(l)return z.screenExit&&(l=l+";"+z.screenExit.screen),l};
ZCY=function(z){var l=new Map;z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,I!=null&&(l.has(I.taskType)||l.set(I.taskType,[]),l.get(I.taskType).push(I));return l};
HC5=function(z){z=[].concat(_.ht(z)).sort(function(I,b){return I-b});
var l=Math.floor(z.length/2);return z.length%2?z[l]:(z[l-1]+z[l])/2};
CZt=function(z,l){z=z===void 0?XUQ:z;l=l===void 0?{}:l;_.vd("yt.logging.errors.log",_.dE);t9t();ybY(YBp(),l);window.onerror=z;fek=B5Q;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var b=I.reason;_.hK(b,{source:"unhandledrejection"});b.name==="AbortError"&&(b.level="WARNING")}B5Q(I.reason);I.preventDefault()})};
_.kPf=function(z){var l,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH,Gk,uH,Xt,R1,H7,P7,o1,z_,dw,Ej,JG,yu,uu,Y0,iK,a_,pu;return _.O(function(lu){if(lu.nextAddress==1)return lu.yield(_.Bg(z,{mode:"readonly",enableRetries:!0},function(k0){return Xs(k0,"playbackData").then(function(E8){var R_=E8.map(function(gw){return gw.transfer}).filter(function(gw){return!!gw}),bK=E8.map(function(gw){return gw.offlineVideoPolicy}).filter(function(gw){return!!gw}),Ou=E8.filter(function(gw){return!!gw.key}).map(function(gw){return _.Hg(_.Ep(gw.key).entityId,
"downloadStatusEntity")});
R_=Xs(k0,"transfer",R_);bK=Xs(k0,"offlineVideoPolicy",bK);Ou=Xs(k0,"downloadStatusEntity",Ou);var lK=R_.then(function(gw){gw=gw.reduce(function(Ln,Cl){(Cl==null?0:Cl.offlineVideoStreams)&&Ln.push.apply(Ln,_.ht(Cl.offlineVideoStreams));return Ln},[]).filter(function(Ln){return!!Ln});
return Xs(k0,"offlineVideoStreams",gw)});
return AE.all([R_,bK,lK,Ou]).then(function(gw){var Ln=_.D(gw);gw=Ln.next().value;var Cl=Ln.next().value;var FA=Ln.next().value;Ln=Ln.next().value;return[E8,gw,Cl,FA,Ln]})})}),2);
if(lu.nextAddress!=3)return l=lu.yieldResult,lu.yield(_.Bg(z,{mode:"readonly",enableRetries:!0},function(k0){return Xs(k0,"mainDownloadsListEntity").then(function(E8){var R_,bK;return(bK=(R_=E8[0])==null?void 0:R_.downloads)!=null?bK:[]})}),3);
I=lu.yieldResult;b=_.D(l);v=b.next().value;M=b.next().value;x=b.next().value;g=b.next().value;G=b.next().value;u=v;Z=M;H=x;y=g;f=G;R={};F={};Y={};c={};d={};V=[];A=_.D(Z);for(W=A.next();!W.done;W=A.next())(L=W.value)&&(R[L.key]=L);lH=_.D(H);for(Gk=lH.next();!Gk.done;Gk=lH.next())(uH=Gk.value)&&(F[uH.key]=uH);Xt=_.D(f);for(R1=Xt.next();!R1.done;R1=Xt.next())(H7=R1.value)&&(Y[H7.key]=H7);P7=_.D(y);for(o1=P7.next();!o1.done;o1=P7.next())(z_=o1.value)&&(c[z_.key]=z_);dw=_.D(I);for(Ej=dw.next();!Ej.done;Ej=
dw.next())JG=Ej.value,yu=void 0,d[(yu=JG.videoItem)!=null?yu:""]=!0,JG.videoItem&&(Y0=uu=void 0,iK=(Y0=(uu=_.Ep(JG.videoItem))==null?void 0:uu.entityId)!=null?Y0:"",V.push({externalVideoId:iK}));a_=u.filter(function(k0){if(!k0||!k0.key||!k0.offlineVideoPolicy)return!1;k0=_.Ep(k0.key).entityId;k0=_.Hg(k0,"downloadStatusEntity");var E8;return!(k0&&((E8=Y[k0])==null?void 0:E8.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
pu=a_.map(function(k0){var E8=R[k0.transfer],R_=[];if(E8==null?0:E8.offlineVideoStreams)for(var bK=_.D(E8.offlineVideoStreams),Ou=bK.next();!Ou.done;Ou=bK.next())(Ou=c[Ou.value])&&R_.push(Ou);bK=F[k0.offlineVideoPolicy];Ou=d;var lK=k0==null?void 0:k0.playerResponseTimestamp,gw=_.Ep(bK.key).entityId;k0=_.Hg(gw,"mainVideoEntity");if(bK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Ln="OFFLINE_VIDEO_STATE_DISABLED";bK.expirationTimestamp&&Number(bK.expirationTimestamp)<Date.now()/1E3&&(Ln="OFFLINE_VIDEO_STATE_EXPIRED")}else if(bK.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Ln="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(E8==null?void 0:E8.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Ln="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Ln="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Ln="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Ln="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Ln="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Ln="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Ln="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Ln==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(E8==null?void 0:E8.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Ln="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Ln="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Ln=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}gw={id:gw,videoState:Ln};if(E8==null?0:E8.cotn)gw.cotn=E8.cotn;if(E8==null?0:E8.maximumDownloadQuality)gw.selectedVideoQuality=E8==null?void 0:E8.maximumDownloadQuality;if(E8==null?0:E8.lastProgressTimeMs)gw.lastProgressTimeMs=E8.lastProgressTimeMs;lK&&(gw.playerResponseSavedTimeMs=String(Number(lK)*1E3));E8=String;lK=0;R_=_.D(R_);for(Ln=R_.next();!Ln.done;Ln=R_.next())if(Ln=Ln.value,Ln.streamsProgress){Ln=_.D(Ln.streamsProgress);for(var Cl=Ln.next();!Cl.done;Cl=
Ln.next()){var FA=void 0;lK+=Number((FA=Cl.value.numBytesDownloaded)!=null?FA:0)}}gw.downloadedBytes=E8(lK);gw.selectedOfflineMode=Ou[k0]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";bK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(gw.offlinePlaybackDisabledReason=bK.offlinePlaybackDisabledReason);return gw});
return lu.return({offlineVideos:pu,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:V}}})})};
R0p=function(){var z;return _.O(function(l){return l.nextAddress==1?l.yield(_.mM(),2):(z=l.yieldResult)?l.return(_.kPf(z)):l.return({state:"PES Unavailable"})})};
tfp=function(){var z,l,I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(_.mM(),2);if(v.nextAddress!=3)return(z=v.yieldResult)?v.yield(mCp(z),3):v.return({state:"PES Unavailable"});l=v.yieldResult;I={};b=l.reduce(function(M,x){M[x.key]=x;return M},I);
return v.return(KwY(b))})};
KwY=function(z){for(var l={},I=[],b=_.D(Object.keys(z)),v=b.next();!v.done;v=b.next()){var M=v.value;v=z[M];var x=void 0;if(((x=v)==null?void 0:x.entityType)==="mainVideoEntity"){delete z[M];var g=v.data;v={};if(g){var G=void 0;x=(G=g.videoId)!=null?G:"vid-"+M;M=z;v.video=g;delete v.video.formattedDescription;delete v.video.thumbnail;g.owner&&(G=M[g.owner],G==null?0:G.data)&&(delete M[G.key],v.video.owner=G.data,delete v.video.owner.avatar);if(g=g.downloadState)if(G=M[g],G==null?0:G.data)if(delete M[g],
g=G.data.playbackData)if(G=M[g],G!=null&&G.data){delete M[g];g=G.data;delete g.playerResponseJson;v.playbackData=g;if(g.transfer&&(G=M[g.transfer],G==null?0:G.data)){delete M[G.key];var u=G.data;v.transfer=u;G=[];u=_.D(u.offlineVideoStreams||[]);for(var Z=u.next();!Z.done;Z=u.next())if(Z=M[Z.value])delete M[Z.key],G.push(Z.data);G&&(v.streams=G)}(g=g.offlineVideoPolicy)&&(g=M[g])&&g.data&&(delete M[g.key],v.offlineVideoPolicy=g.data)}l[x]=v}}else v&&v.entityType==="offlineOrchestrationActionWrapperEntity"&&
v.data&&(delete z[v.key],x=v.data,M=void 0,I.push({id:x.rootActionId,type:((M=x.actionProto)==null?void 0:M.actionType)||"",entity:v}))}l.wrapperEntities=I;Object.keys(z).length>0&&(l.unknownKeys=z);return l};
Bdu=function(){var z,l,I,b,v,M,x,g,G;return _.O(function(u){if(u.nextAddress==1)return z=!!(new _.$8("")).expiringStorage_,b=!!((l=_.v7.crypto)==null?0:(I=l.subtle)==null?0:I.importKey),v=!!_.v7.BroadcastChannel,M=!!_.v7.navigator.locks,u.yield(vWS(),2);x=u.yieldResult;g=z&&b&&v&&M&&x;G={isSupported:g};if(g)return u.return(G);G.missingBrowserFeatures=[];x||G.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");z||G.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
b||G.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");v||G.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");M||G.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return u.return(G)})};
X3Q=function(){var z;return!((z=GY?GY:null)==null||!z.window)};
_.iCf=function(z){if(_.iH()&&_.ut5("Chromium")>=120){var l=_.qQ$().mediaSession;try{l.setActionHandler("enterpictureinpicture",function(){z()})}catch(I){}}};
Fwx=function(z){for(var l=[],I=_.D(document.styleSheets),b=I.next(),v={};!b.done;v={node$jscomp$728:void 0},b=I.next())v.node$jscomp$728=b.value.ownerNode,v.node$jscomp$728&&(v.node$jscomp$728 instanceof HTMLStyleElement||v.node$jscomp$728 instanceof HTMLLinkElement)&&l.push(new Promise(function(M){return function(x){var g=M.node$jscomp$728.cloneNode(!0);g.onload=function(){x()};
g.onerror=function(){_.PW(Error("nj"));x()};
z.document.head.appendChild(g)}}(v)));
return Promise.all(l)};
sN7=function(z){var l=[_.Nj(QN1),_.Nj(YQ$),_.Nj(Td$)];cb7(window.document.documentElement,z.document.documentElement,[_.Nj(SQQ),_.Nj(dC1),_.Nj(ooH),_.Nj(PZt),_.Nj(h07)]);cb7(window.document.body,z.document.body,l)};
cb7=function(z,l,I){z=_.D(z.attributes);for(var b=z.next();!b.done;b=z.next())if(b=b.value)try{_.D1(I,l,b.name,b.value)}catch(v){}};
$CG=function(z,l){z=new _.NN(z.document.documentElement);z.start(rbp,l);return z};
e01=function(z){var l=z.document.documentElement;l.addEventListener("click",function(I){nfH(l,I)});
l.addEventListener("touchstart",function(I){joG(I)});
l.addEventListener("mousedown",function(I){joG(I)})};
AbQ=function(z,l,I,b){b=b===void 0?!1:b;l=new w3p(l||z,I||z);return{x:z.x+((b===void 0?0:b)?l.lengthX*-1:l.lengthX)*.2,y:z.y+((b===void 0?0:b)?l.lengthY*-1:l.lengthY)*.2}};
WwS=function(z){if(!z)return!1;var l=z.status==="OK"||z.status==="LIVE_STREAM_OFFLINE",I,b,v,M=(v=(I=z.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?v:(b=z.errorScreen)==null?void 0:b.ypcTrailerRenderer;return!!l||!!M};
_.nof=function(z,l){if(!z)return!1;var I,b=(I=z.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,v;l=!!(l==null?0:(v=l.playerOverlayRenderer)==null?0:v.gatedActionsOverlayRenderer);return!!WwS(z)||!!b||!!l};
aet=function(z){return Lw7(z,0,"gclid",z.search(UCu))>=0||Lw7(z,0,"gad_source",z.search(UCu))>=0};
VfG=function(z){var l=[],I=0;return{clear:function(){I=l.length=0},
push:function(b){l[I]=b;I=(I+1)%z},
iterate:function(){return function v(){var M,x,g,G;return _.E2(v,function(u){switch(u.nextAddress){case 1:_.tt(u,2),M=l.length,x=0;case 4:if(!(x<M)){u.jumpTo(2);break}g=I+x;G=_.u9;return u.yield(l[g%M],7);case 7:G(u.yieldResult);x++;u.jumpTo(4);break;case 2:_.K4(u),_.B0(u,0)}})}()}}};
jN$=function(z){z.eventsToIgnore||(z.eventsToIgnore=[]);var l=z.eventsToIgnore.map(ag5),I=new Set(l),b=VfG(z.bufferSize);return{flush:function(){var v=Array.from(b.iterate());b.clear();v=v.map(function(M){return{name:M.name,timestamp:M.startTime,attributes:M.attributes}});
return JSON.stringify(v)},
onSpanStart:function(v){v.name==="event"&&I.has(v.attributes.type)||b.push(v)}}};
JbH=function(z){z=jN$(z);var l=z.flush;bi.processors.push({onSpanStart:z.onSpanStart});oU$.subscribe("handleError",function(I){try{I.params.breadcrumbs=l()}catch(b){_.dE(b,"WARNING")}})};
z85=function(){Pu("web_tracing_action");_.hH("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
lcf=function(){Pu("web_tracing_action");_.hH("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
bix=function(z,l,I){if(l===void 0){IcG||(lcf(),setInterval(lcf,6E5),IcG=!0);var b="web_tracing_action"}else b=l;var v,M=((v=z.endTime)!=null?v:z.startTime)-z.startTime,x={};v=z.name;var g=z.startTime;x={webTracing:(x[z.name]=z.attributes,x)};I=_.em(fiH)(v,M,g,x,I,b);if(z.children)for(z=_.D(z.children),b=z.next();!b.done;b=z.next())bix(b.value,l,I)};
v21=function(z){var l=vKk.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(I){I.data&&typeof I.data==="object"&&(I=I.data,I.from==="extension"&&I.app==="yt.telemetry"&&(l("Received message from extension",I),z.onMessage(I)))});
return function(I,b){I={app:"yt.telemetry",from:"app",key:I,payload:b};l("Sending message to extension",I);window.postMessage(I,"*")}};
Mrp=function(){var z=z===void 0?3E3:z;var l=v21({onMessage:function(){}}),I=[];
return{onSpanEnd:function(b){b.parentId==null&&I.push(b)===1&&setTimeout(function(){var v=[].concat(_.ht(I));I.length=0;l("spansReported",{spans:v})},z)}}};
Ds$=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var z=window.performance.getEntriesByType("navigation");if(z.length>0){var l=z[0];bw1("pageLoad",{navigationType:pY7(l.type),unloadEventStart:Math.round(l.unloadEventStart),unloadEventEnd:Math.round(l.unloadEventEnd),domInteractive:Math.round(l.domInteractive),domContentLoadedEventStart:Math.round(l.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(l.domContentLoadedEventEnd),
domComplete:Math.round(l.domComplete),loadEventStart:Math.round(l.loadEventStart),loadEventEnd:Math.round(l.loadEventEnd),redirectCount:l.redirectCount},function(){})}}catch(I){}})};
pY7=function(z){switch(z){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"}};
g2$=function(){for(var z=Pd7.value,l={},I=_.D(z.enabledSpansArray),b=I.next();!b.done;b=I.next())l[b.value]=!0;if(z.exportToCsi||z.exportBreadcrumbs)I=hJu(),bi.initialized=!0,bi.sessionId=I||"",bi.enabledSpans=l,ltk("pageLoad")&&Ds$();z.exportBreadcrumbs&&JbH({eventsToIgnore:xst,bufferSize:z.bufferSize});z.exportToCsi&&bi.processors.push(OiH);z.exportToDevTools&&(z=Mrp(),bi.processors.push(z))};
G8t=function(z){return new Promise(function(l){window.setTimeout(l,z)})};
NVS=function(z){var l={bicf:function(M){z.bNL=M},
blc:function(){return z.getLatestChallengeResponse()},
bcr:function(M){z.wLd.push(M)}},I=window;
I.ntpevasrs=l;if(I.ntpqfbel!==void 0)for(var b=_.D(I.ntpqfbel),v=b.next();!v.done;v=b.next())v=v.value,v(l);I.ntpqfbel=void 0};
E2x=function(z){return _.O(function(l){if(l.nextAddress==1)return _.RL(l,2),l.yield(z.p58(),4);if(l.nextAddress!=2)return _.a3(l,0);_.XP(l);_.qe(l)})};
uBG=function(z){var l,I;(l=z.ytcsi)==null||(I=l.tick)==null||I.call(l,"pot_ist")};
ZiH=function(z){if(z instanceof Error){var l=_.W8("yt.logging.errors.log");l&&l(z,"WARNING")}};
HiY=function(z){try{var l=JSON.parse(z);if(l.bgChallenge)return l}catch(I){}};
fcu=function(){var z=window,l={networkStatusManagerPromise:_.pG().resolve(new $ut(_.U5)),initialChallengeSli:_.C("wpo_att_sli")?new _.v4H("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};z=z===void 0?window:z;var I=z.ytAtR,b;l==null||(b=l.initialChallengeSli)==null||_.Zq(b);if(I){if(I=HiY(I)){var v;l==null||(v=l.initialChallengeSli)==null||_.HJ(v,"SUCCESS");ykf(I,l)}z.ytAtR=void 0}else z.ytAtRC=function(M){if(M=HiY(M)){var x;l==null||(x=l.initialChallengeSli)==null||
_.HJ(x,"SUCCESS");ykf(M,l);z.ytAtRC=void 0}}};
R81=function(){if(CQ1)return CQ1;try{var z=_.tA("IFRAME");_.JT(z,_.HR(k8p));z.sandbox.add("allow-same-origin");z.style.display="none";document.body.appendChild(z);return CQ1=z}catch(l){z=new _.qB("Failed to create sandbox iframe"),_.dE(z)}};
ms7=function(z){var l,I;return(I=z==null?void 0:(l=z.contentWindow)==null?void 0:l.fetch)!=null?I:window.fetch};
KKu=function(z){var l,I;return(I=z==null?void 0:(l=z.contentWindow)==null?void 0:l.Request)!=null?I:window.Request};
tr1=function(z){var l,I;return(I=z==null?void 0:(l=z.contentWindow)==null?void 0:l.TextDecoder)!=null?I:window.TextDecoder};
BVx=function(){return function(z,l){_.sZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[z]=l}};
XYt=function(){return function(z,l){var I={};I[z]=l;z=_.em(_.HRf)(I);Object.keys(z).length>0&&_.om(z)}};
FK1=function(){if(afu()==="hidden")var z="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else afu()==="visible"&&(z="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",qwu=null);z&&iiH(z)};
iiH=function(z){if(z==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||z==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(QAx===z)return;QAx=z}var l=9E4+Math.random()*2E3;if(z!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.p2()>l)&&afu()==="visible"){l=-1;qwu&&(l=Math.round((0,_.Dr)()-qwu));var I=String;var b=_.W8("_fact",window);b=b==null||b==-1?-1:Math.max(Date.now()-b,0);_.cW("foregroundHeartbeat",{firstActivityMs:I(b),clientDocumentNonce:sr5,index:String(Ywp),lastEventDeltaMs:String(l),trigger:z});
_.vd("_fact",-1,window);Ywp++;qwu=(0,_.Dr)()}};
_.TVt=function(){try{return!!self.sessionStorage}catch(z){return!1}};
ck$=function(){var z=navigator;return new Promise(function(l,I){var b;(b=z.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?z.webkitTemporaryStorage.queryUsageAndQuota(function(v,M){l({usage:v,quota:M})},function(v){I(v)}):I(Error("xj"))})};
Swt=function(z,l){var I={errorSeverity:l.errorSeverity.toString(),wizFeatureFlags:Object.entries(l.featureFlags).join("\n")};KEt(l,I);l=l.errorSeverity;l===3?_.dE(z,"ERROR",void 0,void 0,void 0,I):l===2&&_.dE(z,"WARNING",void 0,void 0,void 0,I);_.C("cow_if_errors_in_popup")&&l===3&&z.message.indexOf("<If>")!==-1&&window.alert(z.message)};
ds$=function(z,l){var I=Ih.get(z)||{layerNode:l};I.layerNode=l;zmf(z,I);z.getScreenLayer=function(){return yF(I.layerNode)}};
o2$=function(z){var l;z=z.parentNode;for(var I;z&&((l=Ih.get(z))==null||!l.isRenderer)&&!((I=z.polymerController)!=null?I:z).isRenderer_;)z=z.parentNode||z.host;if(l=z)return Ih.get(l)};
PQf=function(z){if(z){Ih.delete(z);var l=_.pG().resolve(Mh);OA$(z,l)}};
sAS=function(z,l,I){if(I===void 0?0:I){if(I=z.getAttribute("client-ve-type"),l.data&&!l.disableReactiveLogging||I)_.oj(function(){h8Q(z,_.d2(l.data))}),_.cb(function(){return void PQf(z)})}else typeof l.data!=="function"&&h8Q(z,l.data)};
h8Q=function(z,l){rk$++;$s1(z,l)&&_.ow.addJob(function(){_.fI(_.ow,function(){if($s1(z,l)&&z.ownerDocument.documentElement===document.documentElement&&z){var I;if(z.getAttribute("layer")){var b=I=Number(z.getAttribute("layer")),v=Ih.get(z);v?v.layerNode.layer=b:ds$(z,new e8Y(b));(b=o2$(z))&&(v=Ih.get(z))!=null&&(v.layerNode.parent=b.layerNode)}else if(I=Ih.get(z))I=yF(I.layerNode);else{I=yF;b=new e8Y;if(v=o2$(z))b.parent=v.layerNode;ds$(z,b);I=I(b)}I!=null||(I=0);b=z.getAttribute("client-ve-type");
v=Number(b);var M=!1;b=!1;var x=Ih.get(z),g;if((g=x)&&!(g=x[wY7]!==l)&&(g=v)){var G;g=((G=Ih.get(z))==null?void 0:G.clientVeType)===void 0}g&&(x[wY7]=l,M=b=x.isRenderer=!0);Ih.has(z)&&(Ih.get(z).clientVeType=v);z.visualElement&&(b=!0);if(_.C("wiz_next_ld_fix_client_ve_spec")){var u;G=((u=_.k(l==null?void 0:l.rendererContext,_.Fa))==null?void 0:u.loggingDirectives)||(l==null?void 0:l.loggingDirectives)}else G=l==null?void 0:l.loggingDirectives;G&&G.clientVeSpec&&(u=AkQ(_.Xa(),z),u=_.WKY(_.iY(),G,u||
void 0,I))&&(z.visualElement=u);!z.visualElement&&v&&M&&(z.veType=v,u=void 0,_.C("wiz_next_client_ve_parent_fix")&&(u=AkQ(_.Xa(),z)),u=_.q8(_.iY(),z,u,I),z.visualElement=u);b&&(u=_.pG().resolve(Mh),E6G(z,{data:l,observer:u,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
$s1=function(z,l){return(l==null?0:l.trackingParams)||(l==null?0:l.loggingDirectives)||_.k(l==null?void 0:l.rendererContext,_.Fa)||z.getAttribute("client-ve-type")?!0:!1};
n2Y=function(z,l,I){z.componentType!==qM&&I instanceof HTMLElement&&l&&!_.C("cow_logging_in_component_wrapper")&&sAS(I,l,!0)};
VrQ=function(){if(!LKx){LKx=!0;var z=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.C("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:Swt,enableComponentStacksInErrorMessages:!1});Object.assign(D_,z);sRx=UsQ;ac1();A8x=YL$;$rQ=Tj1}};
ac1=function(){_.C("cow_logging_in_component_wrapper")?(eR7=function(z,l){l instanceof HTMLElement&&sAS(l,z,!0)},qUH=function(){}):(eR7=function(){},qUH=n2Y)};
jAQ=function(z,l,I){l=l===void 0?{}:l;var b,v=(b=_.k(z.commandMetadata,_.kB))==null?void 0:b.url;b=l.form||{};!I||b.element||b.skipDefaultElement||(l.form=l.form||{},l.form.element=I);if(v&&v!=="/service_ajax")return{type:0,command:z,form:l.form};if(_.C("kevlar_service_command_check")){if(_.l1(_.pG().resolve(_.AY),z))return Object.assign({},{type:1,command:z},l)}else{var M;if((M=_.k(z.commandMetadata,_.kB))==null?0:M.apiUrl)return Object.assign({},{type:1,command:z},l)}return{type:2,command:z,form:l.form}};
Jk1=function(z){if(z.form){var l=z.form,I=Object.assign({},l);l=l.element;I=(delete I.element,I);if(l)return[_.uJ(l,[z.command,I,z.commandController])]}return[]};
zuH=function(z){if(z.form){var l=z.form,I=Object.assign({},l);l=l.element;I=(delete I.element,I);l&&_.ZE(l,[z.command],l,I)}};
Iok=function(z,l,I){var b=new lo$(z,l),v=new CI(z,l,I);z={"/youtubei/v1/browse":new k1(z,l,I),"/youtubei/v1/player":b,"/youtubei/v1/navigation/resolve_url":new RU,"/youtubei/v1/next":v,"/youtubei/v1/guide":new mO(I),"/youtubei/v1/search":new KI(z,l,I),"/youtubei/v1/reel/reel_item_watch":new tf(z,l,I),"/youtubei/v1/get_watch":new BJ(b,v)};z["/youtubei/v1/account/account_menu"]=new XI;z["/youtubei/v1/notification/get_notification_menu"]=new qN;return z};
FI=function(){var z=_.pG().resolve(i9);return Promise.resolve(bZY(z,_.v7.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
vhk=function(z){return z&&(z=_.QF(_.sHt(z)))?(new URLSearchParams(z)).get("service"):null};
cJ=function(z,l){_.CK(_.Y1(),function(){_.sK("adl")});
_.pG().resolve(MBY)(l);z=z.root;z.loadData&&z.loadData(l);(l==null?0:l.response)?_.HJ(Dlx(),"SUCCESS"):_.PW(new _.qB("Lifecycle: No response in data",_.rr("IS_SHELL_LOAD"),l?l.page:"NO_PAGE",l?l.endpoint:"NO_ENDPOINT"));z.polymerController.$["page-manager"].lazyPrepareCriticalPages((l==null?void 0:l.page)||"",l.endpoint);var I,b;((b=_.k(l==null?void 0:(I=l.endpoint)==null?void 0:I.commandMetadata,_.kB))==null?0:b.webPageType)&&_.vF().dispatch(_.TY(_.k(l.endpoint.commandMetadata,_.kB).webPageType))};
p$x=function(){var z,l;return _.O(function(I){switch(I.nextAddress){case 1:z=window;if(!z.getDataPromise){I.jumpTo(2);break}_.RL(I,3);return I.yield(z.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.XP(I),I.yield(FI(),6);case 6:return I.return(I.yieldResult);case 2:if(z.getInitialData)return l=z.getInitialData(),z.getInitialData=void 0,I.return(l);throw Error("zj`"+_.v7.location.href);}})};
xck=function(){_.hr("CSI_SERVICE_NAME","youtube");_.om({loadType:"cold"});_.C("kevlar_log_lcp")&&DcS(function(z){_.sK("lcp",z.value)})};
OZ$=function(){var z=_.n0(document.location.href,"enable");z&&z.indexOf("scraper")>-1&&_.hr("ADD_SCRAPER_ATTRIBUTES",!0)};
u3H=function(z){var l=z.root;z=[gh7,GOk,_.SK];_.C("web_feedback_endpoint_autolog_allowlist_killswitch")&&z.push(_.hf,Nzf);EhQ(function(I,b){return jAQ(I,b,l)},function(I){if(!I.command)return[];
var b;((b=I.form)==null?0:b.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):l.handleNavigate(I);return[]},z);
_.pG().addProvider({provide:_.DQ,useValue:_.KE.instance})};
HZt=function(){var z={},l={},I;for(I in ZZf){var b=_.D(_.Z_(ZZf[I],void 0,"IAtZ7"));z[I]=b.next().value;l[I]=b.next().value}return[z,function(v){for(var M in v){var x=void 0;(x=l[M])==null||x(v[M])}}]};
_.s2=function(z,l,I){l=l===void 0?!1:l;var b=_.h7.getValueByKeys(z,"contents","twoColumnWatchNextResults","results","results","contents"),v=_.h7.getValueByKeys(z,"contents","twoColumnWatchNextResults","playlist","playlist")||null;l&&(v=null);var M=l=null;if(v)l=_.h7.getValueByKeys(v,"titleText"),M=_.h7.unsafeClone(_.h7.getValueByKeys(v,"longBylineText")),b="",M&&(b=_.ID(M)),M=_.lc(b);else if(b){b=_.D(b);for(var x=b.next();!x.done;x=b.next())x=x.value,x.videoPrimaryInfoRenderer&&(l=_.h7.getValueByKeys.apply(_.h7,
[x].concat(_.ht(ysH)))),x.videoSecondaryInfoRenderer&&(M=_.h7.getValueByKeys.apply(_.h7,[x].concat(_.ht(foG))))}else _.nP(Error("Ej"));var g;z.currentVideoEndpoint?g=z.currentVideoEndpoint:_.nP(Error("Fj"));var G;I&&(G=_.h7.getValueByKeys(I,"playabilityStatus","miniplayer","miniplayerRenderer"));z={miniplayerTitle:l,miniplayerSubtitle:M,watchEndpoint:g,playlistData:v};G&&(z.miniplayerRenderer=G);return z};
CU5=function(z){if(z)return _.$C(z)};
_.kOp=function(){return{isFullscreen:function(){throw Error("Gj");},
toggleFullscreen:function(){throw Error("Hj");},
exitFullscreen:function(){throw Error("Ij");},
isAutonavEnabled:function(){throw Error("Jj");},
setAutonavEnabled:function(){throw Error("Kj");},
isAutoplaySetExplicitly:function(){throw Error("Lj");}}};
Ruu=function(z){return z.videoDuration?z.numTaps>1&&z.tapDirection!==0?_.rx(z.draggedTime/z.videoDuration,0,1):_.rx((z.playedTime||0)/z.videoDuration,0,1):0};
mcf=function(z){return z.videoDuration?z.isDragging||z.numTaps>1&&z.tapDirection!==0?_.rx(z.draggedTime/z.videoDuration,0,1):_.rx((z.playedTime||0)/z.videoDuration,0,1):0};
tBf=function(z){var l,I,b;return _.k(z==null?void 0:(l=z.markersMap)==null?void 0:(I=l.find(function(v){return v.key==="HEATSEEKER"}))==null?void 0:(b=I.value)==null?void 0:b.heatmap,Ki$)};
BzG=function(z){var l,I;return(I=(l=tBf(z))==null?void 0:l.heatMarkersDecorations)!=null?I:[]};
X$5=function(z){if(_.C("mweb_supported_chapters_killswitch"))return!0;var l;return!!(z==null?0:(l=z.markersMap)==null?0:l.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.qgY=function(z){var l=Object,I=l.assign,b;z={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(b=z==null?void 0:z.getPlayerState())!=null?b:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(l,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},z,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
iZH=function(z){return function(l){var I=z(),b,v=(b=I.playerApi)==null?void 0:b.getPlayerState();l&&l!==I.playerState&&(l===1||l===2)&&I.setState({playerState:v})}};
QIQ=function(z){return function(l){var I=z(),b=I.playerApi;b&&(l==null?void 0:l.type)==="newdata"&&(Fi$&&(clearTimeout(Fi$),Fi$=void 0),_.C("web_shorts_use_progress_state_for_gapless")?(l=b==null?void 0:b.getProgressState(l==null?void 0:l.playertype),l=l.seekableEnd-l.seekableStart):l=b==null?void 0:b.getDuration(l==null?void 0:l.playertype),I.setState({playedTime:0,videoDuration:l}))}};
Yg$=function(z){return function(l){var I=z(),b=I.playerApi;if(b){var v=b.getPresentingPlayerType();_.C("web_shorts_use_progress_state_for_gapless")?(b=b.getProgressState(v),b=b.seekableEnd-b.seekableStart):b=b.getDuration(v);I.setState({playedTime:l,videoDuration:b})}}};
csf=function(z){_.ct(112394,z,function(){return Tzf},function(l){Tzf=l})};
ohk=function(z,l){if(!z)return[];var I,b,v;z=((I=z.markersMap)==null?void 0:(b=I.find(function(M){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(M.key)}))==null?void 0:(v=b.value)==null?void 0:v.chapters)||[];
!Sg5(z)||(l==null?0:l.ignoreStub)||(z=[dcu()].concat(_.ht(z)));return z};
dcu=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Sg5=function(z){if(z.length===0)return!1;var l;return((l=_.k(z[0],$1))==null?void 0:l.timeRangeStartMillis)!==0};
eK=function(z){return z?z.timeRangeStartMillis||0:0};
huY=function(z,l){if(z.isDragging&&l)return z=PUG(z,l),z===-1?dcu():ohk(l)[z]};
PUG=function(z,l){return z.isDragging&&l?ohk(l,{ignoreStub:!0}).findIndex(function(I,b,v){I=sIQ(z);return rsY(I,v,b).scrubberHovering}):-1};
sIQ=function(z){return Object.assign({},z,{videoDuration:z.videoDuration*1E3,playedTime:z.playedTime*1E3,draggedTime:z.draggedTime*1E3})};
rsY=function(z,l,I){var b=eK(_.k(l[I],$1));l=eK(_.k(l[I+1],$1))||z.videoDuration;I=z.isDragging;var v;if(v=z.isDragging)v=z.draggedTime,v=v!==null&&v>=b&&v<l;var M=z.playedTime;return M!==null&&M>=b&&M<l?{videoPosition:"active",isScrubbing:I,scrubberHovering:v}:z.playedTime<b?{videoPosition:"pending",isScrubbing:I,scrubberHovering:v}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:v}};
$cH=function(z,l){return z.videoPosition==="seen"||(l===void 0?0:l)>0};
eu5=function(z,l,I){l=z/l.storyboardInterval;var b=ohk(I);if(!b.length)return-l*72;I=0;b=_.D(b);for(var v=b.next();!v.done;v=b.next())if(eK(_.k(v.value,$1))/1E3<z)I++;else break;return-(l*72)-I*56};
w$k=function(z){return z?z.width/z.columns:0};
Asx=function(z){return z.isHovering?z.hoveredTime:z.draggedTime};
Wi7=function(z,l){z=z.draggedTime*1E3;return z>=l.visibleTimeRangeStartMillis&&z<=l.visibleTimeRangeEndMillis};
_.nhx=function(z){if(z===void 0||Number.isNaN(z))return"--:--";var l=Math.abs(Math.floor(z)),I=Math.floor(l/86400),b=Math.floor(l%86400/3600),v=Math.floor(l%3600/60);l=Math.floor(l%60);var M="";I>0&&(M+=I+":",b<10&&(M+="0"));if(I>0||b>0)M+=b+":",v<10&&(M+="0");M+=v+":";l<10&&(M+="0");M+=l;return z>=0?M:"-"+M};
Lix=function(z,l){return function(){var I=Asx(z());var b=l();var v=z().playerApi;if(v&&v.getNumberOfStoryboardLevels()!==0){var M=v.getStoryboardFrameIndex(I,1);M!==-1?b=v.getStoryboardFrame(M,1):(I=v.getStoryboardFrameIndex(I,0),v=v.getStoryboardFrame(I,0),b&&v&&(v.height*=3,v.width*=3),b=v)}else b=null;if(!b)return null;l()&&(b.width=90*b.columns,b.height=160*b.rows);return b}};
_.wx=function(z){if(!z||z.getVideoData)return z};
UcG=function(){var z;return{playerApi:(z=_.mE())!=null?z:void 0}};
aox=function(z){var l;_.O(function(I){if(I.nextAddress==1)return I.yield(_.R0(),2);if(l=I.yieldResult)l.unMute(!0),l.setVolume(z,!0);_.qe(I)})};
VB$=function(z,l){z&&(z.value=""+l,z.style.setProperty("--gradient-percent",l+"%"))};
jI$=function(z){var l;return(l=z==null?void 0:z.value)!=null?l:0};
Js$=function(){var z;_.O(function(l){if(l.nextAddress==1)return l.yield(_.R0(),2);z=l.yieldResult;if(!z)return l.return();z.isMuted()?z.unMute(!0):z.mute(!0);_.qe(l)})};
zwQ=function(z){var l=_.pG().resolve(_.Af).getPlayerElement();l&&z&&(z===1?l.pause():l.play())};
lnu=function(z){_.EK(z,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
In1=function(z){_.EK(z,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
vif=function(z){return _.T3(z.document.body,function(){return _.N(bF$,null)},"Hf")};
MvQ=function(){var z=window.performance.getEntriesByType("navigation");return z?z.map(function(l){return l.type}).includes("reload"):!1};
Ei7=function(){WJ(WJ(WJ(WJ(WJ(WJ(WJ(_.pG().resolve(_.nI),_.p1p),_.DPS),_.xP5),_.OF1),_.giu),_.GjS),_.Ne5)};
up5=function(z,l){l=l===void 0?!1:l;var I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return l||!_.C("kevlar_shorts_seedless_retry_initial_load")||(I=window,b=!(!I.getDataPromise&&!I.getInitialData),b)?x.yield(p$x(),2):(setTimeout(up5.bind(window,z,!0),1E3),x.return());if(x.nextAddress!=3)return v=x.yieldResult,x.yield(ZFu(v),3);M=x.yieldResult;cJ(z,M);_.qe(x)})};
ZFu=function(z){var l;if((l=z.response)==null||!l.replacementEndpoint)return _.Hu(z);l=_.pG().resolve(i9);z=z.response;_.k(z.replacementEndpoint,_.FN)&&z.sequenceContinuation&&(_.k(z.replacementEndpoint,_.FN).sequenceParams=z.sequenceContinuation);return LI(l,z.replacementEndpoint,{},_.v7.location.href,"shorts",function(){},function(){return!1})};
yF7=function(z){var l=_.pG().resolve(HF7);z.playerResponse&&l.handleResponse(z.playerResponse);z.response&&l.handleResponse(z.response)};
fn$=function(z){var l=_.vF(),I,b=_.k((I=z.response)==null?void 0:I.frameworkUpdates,Mv),v;I=_.k((v=z.playerResponse)==null?void 0:v.frameworkUpdates,Mv);var M;z=_.k((M=z.reelWatchSequenceResponse)==null?void 0:M.frameworkUpdates,Mv);b&&_.tm(b,l);I&&_.tm(I,l);z&&_.tm(z,l)};
Cbu=function(z){var l;_.C("enable_redirect_linking_for_desktop_web_client")&&((l=window.location.hash)==null?0:l.includes("redirect_state"))&&z.url&&(z.url=z.url.toString()+window.location.hash)};
mP5=function(z){var l=_.pG(),I=l.resolve(i9);l=l.resolve(_.kjQ);z.endpoint&&(I=Rwp(I,z.endpoint),I.content&&z.response&&_.U2(l,z.response,I.content),I.player&&z.playerResponse&&_.U2(l,z.playerResponse,I.player),I.reelSequence&&z.reelWatchSequenceResponse&&_.U2(l,z.reelWatchSequenceResponse,I.reelSequence))};
aU=function(z,l){_.C("web_service_params_response_processor")&&yF7(l);fn$(l);var I;(l==null?0:l.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(Cbu(l),(I=vhk(l.url))&&_.Gb(z.root,"yt-initialize-third-party",[I,l]));mP5(l);I=_.pG();var b=I.resolve(Ke1);l.playerResponse&&I.resolve(tvG).handleResponse(l.playerResponse);if(l.playerResponse){I=void 0;if(_.C("ab_v_vid_sig")&&l.endpoint){var v,M=(v=_.k(l.endpoint,_.zb))!=null?v:_.k(l.endpoint,_.FN);M&&(I=M.videoId)}BeQ(b,l.playerResponse,
I)}l.playerResponse&&if1(l.playerResponse)&&_.C("web_enable_ab_rsp_cl")?nnS().then(function(){X1p(b,l.playerResponse);cJ(z,l)}):cJ(z,l)};
iFx=function(z){if(z=z.root.data){var l=_.pG().resolve(qkf);z.endpoint&&(z.response&&l.handleResponse(z.response,void 0,document.querySelector("ytd-app")),z.playerResponse&&l.handleResponse(z.playerResponse),z.reelWatchSequenceResponse&&l.handleResponse(z.reelWatchSequenceResponse))}};
FeH=function(z){var l,I,b,v,M,x;return _.O(function(g){switch(g.nextAddress){case 1:l=window;if(!l.getDataPromise){g.jumpTo(2);break}_.RL(g,3);return g.yield(l.getDataPromise(),5);case 5:I=g.yieldResult;aU(z,I);_.a3(g,4);break;case 3:return _.XP(g),g.yield(FI(),6);case 6:b=g.yieldResult,cJ(z,b);case 4:return g.return();case 2:if(!_.C("sw_nav_preload_pbj")){g.jumpTo(7);break}l.fetchInitialData=function(){var G;return _.O(function(u){if(u.nextAddress==1)return u.yield(FI(),2);G=u.yieldResult;cJ(z,G);
_.qe(u)})};
if(l.getInitialData){l.loadInitialData=function(G){aU(z,G)};
v=l.getInitialData();l.getInitialData=void 0;aU(z,v);g.jumpTo(8);break}l.fetchInitialData=void 0;return g.yield(FI(),9);case 9:M=g.yieldResult,cJ(z,M);case 8:return g.return();case 7:l.getInitialData?(x=l.getInitialData(),l.getInitialData=void 0,aU(z,x)):l.loadInitialData=function(G){aU(z,G)},_.qe(g)}})};
Qi5=function(z){var l=0;return function(){return l<z.length?{done:!1,value:z[l++]}:{done:!0}}};
YkQ=typeof Object.defineProperties=="function"?Object.defineProperty:function(z,l,I){if(z==Array.prototype||z==Object.prototype)return z;z[l]=I.value;return z};
Tek=function(z){z=["object"==typeof globalThis&&globalThis,z,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<z.length;++l){var I=z[l];if(I&&I.Math==Math)return I}throw Error("a");};
_.vP=Tek(this);VF=function(z,l){if(l)a:{var I=_.vP;z=z.split(".");for(var b=0;b<z.length-1;b++){var v=z[b];if(!(v in I))break a;I=I[v]}z=z[z.length-1];b=I[z];l=l(b);l!=b&&l!=null&&YkQ(I,z,{configurable:!0,writable:!0,value:l})}};
VF("Symbol",function(z){if(z)return z;var l=function(M,x){this.$jscomp$symbol$id_=M;YkQ(this,"description",{configurable:!0,writable:!0,value:x})};
l.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",b=0,v=function(M){if(this instanceof v)throw new TypeError("b");return new l(I+(M||"")+"_"+b++,M)};
return v});
VF("Symbol.iterator",function(z){if(z)return z;z=Symbol("c");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),I=0;I<l.length;I++){var b=_.vP[l[I]];typeof b==="function"&&typeof b.prototype[z]!="function"&&YkQ(b.prototype,z,{configurable:!0,writable:!0,value:function(){return cF7(Qi5(this))}})}return z});
VF("Symbol.asyncIterator",function(z){return z?z:Symbol("d")});
var cF7=function(z){z={next:z};z[Symbol.iterator]=function(){return this};
return z},Sku=typeof Object.create=="function"?Object.create:function(z){var l=function(){};
l.prototype=z;return new l},dPH=function(){function z(){function I(){}
new I;Reflect.construct(I,[],function(){});
return new I instanceof I}
if(typeof Reflect!="undefined"&&Reflect.construct){if(z())return Reflect.construct;var l=Reflect.construct;return function(I,b,v){I=l(I,b);v&&Reflect.setPrototypeOf(I,v.prototype);return I}}return function(I,b,v){v===void 0&&(v=I);
v=Sku(v.prototype||Object.prototype);return Function.prototype.apply.call(I,v,b)||v}}(),oiH;
if(typeof Object.setPrototypeOf=="function")oiH=Object.setPrototypeOf;else{var Pbx;a:{var hwY={a:!0},sif={};try{sif.__proto__=hwY;Pbx=sif.a;break a}catch(z){}Pbx=!1}oiH=Pbx?function(z,l){z.__proto__=l;if(z.__proto__!==l)throw new TypeError("e`"+z);return z}:null}jK=oiH;
_.m=function(z,l){z.prototype=Sku(l.prototype);z.prototype.constructor=z;if(jK)jK(z,l);else for(var I in l)if(I!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(l,I);b&&Object.defineProperty(z,I,b)}else z[I]=l[I];z.superClass_=l.prototype};
_.D=function(z){var l=typeof Symbol!="undefined"&&Symbol.iterator&&z[Symbol.iterator];if(l)return l.call(z);if(typeof z.length=="number")return{next:Qi5(z)};throw Error("f`"+String(z));};
ze=function(z){for(var l,I=[];!(l=z.next()).done;)I.push(l.value);return I};
_.ht=function(z){return z instanceof Array?z:ze(_.D(z))};
_.zs=function(z){return Jf(z,z)};
Jf=function(z,l){z.raw=l;Object.freeze&&(Object.freeze(z),Object.freeze(l));return z};
lI=function(z,l){return Object.prototype.hasOwnProperty.call(z,l)};
rFu=function(z){if(z==null)throw new TypeError("g");return Object(z)};
$Pf=typeof Object.assign=="function"?Object.assign:function(z,l){z=rFu(z);for(var I=1;I<arguments.length;I++){var b=arguments[I];if(b)for(var v in b)lI(b,v)&&(z[v]=b[v])}return z};
VF("Object.assign",function(z){return z||$Pf});
var IX=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},ewu=function(z){if(z.isRunning_)throw new TypeError("i");
z.isRunning_=!0};
IX.prototype.JSC$8723_next_=function(z){this.yieldResult=z};
var w1Q=function(z,l){z.abruptCompletion_={exception:l,isException:!0};z.nextAddress=z.catchAddress_||z.finallyAddress_};
IX.prototype.return=function(z){this.abruptCompletion_={return:z};this.nextAddress=this.finallyAddress_};
IX.prototype.yield=function(z,l){this.nextAddress=l;return{value:z}};
IX.prototype.jumpTo=function(z){this.nextAddress=z};
_.qe=function(z){z.nextAddress=0};
_.RL=function(z,l,I){z.catchAddress_=l;I!=void 0&&(z.finallyAddress_=I)};
_.tt=function(z,l){z.catchAddress_=0;z.finallyAddress_=l||0};
_.a3=function(z,l,I){z.nextAddress=l;z.catchAddress_=I||0};
_.XP=function(z,l){z.catchAddress_=l||0;l=z.abruptCompletion_.exception;z.abruptCompletion_=null;return l};
_.K4=function(z,l,I,b){b?z.finallyContexts_[b]=z.abruptCompletion_:z.finallyContexts_=[z.abruptCompletion_];z.catchAddress_=l||0;z.finallyAddress_=I||0};
_.B0=function(z,l,I){I=z.finallyContexts_.splice(I||0)[0];(I=z.abruptCompletion_=z.abruptCompletion_||I)?I.isException?z.nextAddress=z.catchAddress_||z.finallyAddress_:I.jumpTo!=void 0&&z.finallyAddress_<I.jumpTo?(z.nextAddress=I.jumpTo,z.abruptCompletion_=null):z.nextAddress=z.finallyAddress_:z.nextAddress=l};
AF7=function(z){this.JSC$8728_context_=new IX;this.program_=z};
niu=function(z,l){ewu(z.JSC$8728_context_);var I=z.JSC$8728_context_.yieldAllIterator_;if(I)return WeS(z,"return"in I?I["return"]:function(b){return{value:b,done:!0}},l,z.JSC$8728_context_.return);
z.JSC$8728_context_.return(l);return bI(z)};
WeS=function(z,l,I,b){try{var v=l.call(z.JSC$8728_context_.yieldAllIterator_,I);if(!(v instanceof Object))throw new TypeError("h`"+v);if(!v.done)return z.JSC$8728_context_.isRunning_=!1,v;var M=v.value}catch(x){return z.JSC$8728_context_.yieldAllIterator_=null,w1Q(z.JSC$8728_context_,x),bI(z)}z.JSC$8728_context_.yieldAllIterator_=null;b.call(z.JSC$8728_context_,M);return bI(z)};
bI=function(z){for(;z.JSC$8728_context_.nextAddress;)try{var l=z.program_(z.JSC$8728_context_);if(l)return z.JSC$8728_context_.isRunning_=!1,{value:l.value,done:!1}}catch(I){z.JSC$8728_context_.yieldResult=void 0,w1Q(z.JSC$8728_context_,I)}z.JSC$8728_context_.isRunning_=!1;if(z.JSC$8728_context_.abruptCompletion_){l=z.JSC$8728_context_.abruptCompletion_;z.JSC$8728_context_.abruptCompletion_=null;if(l.isException)throw l.exception;return{value:l.return,done:!0}}return{value:void 0,done:!0}};
Lex=function(z){this.next=function(l){ewu(z.JSC$8728_context_);z.JSC$8728_context_.yieldAllIterator_?l=WeS(z,z.JSC$8728_context_.yieldAllIterator_.next,l,z.JSC$8728_context_.JSC$8723_next_):(z.JSC$8728_context_.JSC$8723_next_(l),l=bI(z));return l};
this.throw=function(l){ewu(z.JSC$8728_context_);z.JSC$8728_context_.yieldAllIterator_?l=WeS(z,z.JSC$8728_context_.yieldAllIterator_["throw"],l,z.JSC$8728_context_.JSC$8723_next_):(w1Q(z.JSC$8728_context_,l),l=bI(z));return l};
this.return=function(l){return niu(z,l)};
this[Symbol.iterator]=function(){return this}};
_.E2=function(z,l){l=new Lex(new AF7(l));jK&&z.prototype&&jK(l,z.prototype);return l};
UP7=function(z){function l(b){return z.next(b)}
function I(b){return z.throw(b)}
return new Promise(function(b,v){function M(x){x.done?b(x.value):Promise.resolve(x.value).then(l,I).then(M,v)}
M(z.next())})};
_.O=function(z){return UP7(new Lex(new AF7(z)))};
_.mX=function(z){var l=z[Symbol.asyncIterator];return l!==void 0?l.call(z):new anp(_.D(z))};
anp=function(z){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return z};
this.next=function(l){return Promise.resolve(z.next(l))};
this["throw"]=function(l){return new Promise(function(I,b){var v=z["throw"];v!==void 0?I(v.call(z,l)):(I=z["return"],I!==void 0&&I.call(z),b(new TypeError("j")))})};
z["return"]!==void 0&&(this["return"]=function(l){return Promise.resolve(z["return"](l))})};
_.AT=function(){for(var z=Number(this),l=[],I=z;I<arguments.length;I++)l[I-z]=arguments[I];return l};
_.u9=function(z){return z};
VF("globalThis",function(z){return z||_.vP});
VF("Reflect",function(z){return z?z:{}});
VF("Reflect.construct",function(){return dPH});
VF("Reflect.setPrototypeOf",function(z){return z?z:jK?function(l,I){try{return jK(l,I),!0}catch(b){return!1}}:null});
VF("Promise",function(z){function l(){this.batch_=null}
function I(x){return x instanceof v?x:new v(function(g){g(x)})}
if(z&&(typeof _.vP.PromiseRejectionEvent!=="undefined"||!_.vP.Promise||_.vP.Promise.toString().indexOf("[native code]")===-1))return z;l.prototype.asyncExecute=function(x){if(this.batch_==null){this.batch_=[];var g=this;this.asyncExecuteFunction(function(){g.executeBatch_()})}this.batch_.push(x)};
var b=_.vP.setTimeout;l.prototype.asyncExecuteFunction=function(x){b(x,0)};
l.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var x=this.batch_;this.batch_=[];for(var g=0;g<x.length;++g){var G=x[g];x[g]=null;try{G()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};
l.prototype.asyncThrow_=function(x){this.asyncExecuteFunction(function(){throw x;})};
var v=function(x){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var g=this.createResolveAndReject_();try{x(g.resolve,g.reject)}catch(G){g.reject(G)}};
v.prototype.createResolveAndReject_=function(){function x(u){return function(Z){G||(G=!0,u.call(g,Z))}}
var g=this,G=!1;return{resolve:x(this.resolveTo_),reject:x(this.JSC$8756_reject_)}};
v.prototype.resolveTo_=function(x){if(x===this)this.JSC$8756_reject_(new TypeError("n"));else if(x instanceof v)this.settleSameAsPromise_(x);else{a:switch(typeof x){case "object":var g=x!=null;break a;case "function":g=!0;break a;default:g=!1}g?this.resolveToNonPromiseObj_(x):this.fulfill_(x)}};
v.prototype.resolveToNonPromiseObj_=function(x){var g=void 0;try{g=x.then}catch(G){this.JSC$8756_reject_(G);return}typeof g=="function"?this.settleSameAsThenable_(g,x):this.fulfill_(x)};
v.prototype.JSC$8756_reject_=function(x){this.settle_(2,x)};
v.prototype.fulfill_=function(x){this.settle_(1,x)};
v.prototype.settle_=function(x,g){if(this.state_!=0)throw Error("o`"+x+"`"+g+"`"+this.state_);this.state_=x;this.result_=g;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
v.prototype.scheduleUnhandledRejectionCheck_=function(){var x=this;b(function(){if(x.notifyUnhandledRejection_()){var g=_.vP.console;typeof g!=="undefined"&&g.error(x.result_)}},1)};
v.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var x=_.vP.CustomEvent,g=_.vP.Event,G=_.vP.dispatchEvent;if(typeof G==="undefined")return!0;typeof x==="function"?x=new x("unhandledrejection",{cancelable:!0}):typeof g==="function"?x=new g("unhandledrejection",{cancelable:!0}):(x=_.vP.document.createEvent("CustomEvent"),x.initCustomEvent("unhandledrejection",!1,!0,x));x.promise=this;x.reason=this.result_;return G(x)};
v.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var x=0;x<this.onSettledCallbacks_.length;++x)M.asyncExecute(this.onSettledCallbacks_[x]);this.onSettledCallbacks_=null}};
var M=new l;v.prototype.settleSameAsPromise_=function(x){var g=this.createResolveAndReject_();x.callWhenSettled_(g.resolve,g.reject)};
v.prototype.settleSameAsThenable_=function(x,g){var G=this.createResolveAndReject_();try{x.call(g,G.resolve,G.reject)}catch(u){G.reject(u)}};
v.prototype.then=function(x,g){function G(y,f){return typeof y=="function"?function(R){try{u(y(R))}catch(F){Z(F)}}:f}
var u,Z,H=new v(function(y,f){u=y;Z=f});
this.callWhenSettled_(G(x,u),G(g,Z));return H};
v.prototype.catch=function(x){return this.then(void 0,x)};
v.prototype.callWhenSettled_=function(x,g){function G(){switch(u.state_){case 1:x(u.result_);break;case 2:g(u.result_);break;default:throw Error("p`"+u.state_);}}
var u=this;this.onSettledCallbacks_==null?M.asyncExecute(G):this.onSettledCallbacks_.push(G);this.isRejectionHandled_=!0};
v.resolve=I;v.reject=function(x){return new v(function(g,G){G(x)})};
v.race=function(x){return new v(function(g,G){for(var u=_.D(x),Z=u.next();!Z.done;Z=u.next())I(Z.value).callWhenSettled_(g,G)})};
v.all=function(x){var g=_.D(x),G=g.next();return G.done?I([]):new v(function(u,Z){function H(R){return function(F){y[R]=F;f--;f==0&&u(y)}}
var y=[],f=0;do y.push(void 0),f++,I(G.value).callWhenSettled_(H(y.length-1),Z),G=g.next();while(!G.done)})};
return v});
var vx=function(z,l,I){if(z==null)throw new TypeError("q`"+I);if(l instanceof RegExp)throw new TypeError("r`"+I);return z+""};
VF("String.prototype.startsWith",function(z){return z?z:function(l,I){var b=vx(this,l,"startsWith"),v=b.length,M=l.length;I=Math.max(0,Math.min(I|0,b.length));for(var x=0;x<M&&I<v;)if(b[I++]!=l[x++])return!1;return x>=M}});
VF("Object.setPrototypeOf",function(z){return z||jK});
VF("Symbol.dispose",function(z){return z?z:Symbol("s")});
VF("SuppressedError",function(z){function l(I,b,v){if(!(this instanceof l))return new l(I,b,v);v=Error(v);"stack"in v&&(this.stack=v.stack);this.message=v.message;this.error=I;this.suppressed=b}
if(z)return z;_.m(l,Error);l.prototype.name="SuppressedError";return l});
var Vvu=function(z,l,I){z instanceof String&&(z=String(z));for(var b=z.length,v=0;v<b;v++){var M=z[v];if(l.call(I,M,v,z))return{i:v,v:M}}return{i:-1,v:void 0}};
VF("Array.prototype.find",function(z){return z?z:function(l,I){return Vvu(this,l,I).v}});
VF("WeakMap",function(z){function l(){}
function I(G){var u=typeof G;return u==="object"&&G!==null||u==="function"}
function b(G){if(!lI(G,M)){var u=new l;YkQ(G,M,{value:u})}}
function v(G){var u=Object[G];u&&(Object[G]=function(Z){if(Z instanceof l)return Z;Object.isExtensible(Z)&&b(Z);return u(Z)})}
if(function(){if(!z||!Object.seal)return!1;try{var G=Object.seal({}),u=Object.seal({}),Z=new z([[G,2],[u,3]]);if(Z.get(G)!=2||Z.get(u)!=3)return!1;Z.delete(G);Z.set(u,4);return!Z.has(G)&&Z.get(u)==4}catch(H){return!1}}())return z;
var M="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("seal");var x=0,g=function(G){this.JSC$8763_id_=(x+=Math.random()+1).toString();if(G){G=_.D(G);for(var u;!(u=G.next()).done;)u=u.value,this.set(u[0],u[1])}};
g.prototype.set=function(G,u){if(!I(G))throw Error("t");b(G);if(!lI(G,M))throw Error("u`"+G);G[M][this.JSC$8763_id_]=u;return this};
g.prototype.get=function(G){return I(G)&&lI(G,M)?G[M][this.JSC$8763_id_]:void 0};
g.prototype.has=function(G){return I(G)&&lI(G,M)&&lI(G[M],this.JSC$8763_id_)};
g.prototype.delete=function(G){return I(G)&&lI(G,M)&&lI(G[M],this.JSC$8763_id_)?delete G[M][this.JSC$8763_id_]:!1};
return g});
VF("Map",function(z){if(function(){if(!z||typeof z!="function"||!z.prototype.entries||typeof Object.seal!="function")return!1;try{var g=Object.seal({x:4}),G=new z(_.D([[g,"s"]]));if(G.get(g)!="s"||G.size!=1||G.get({x:4})||G.set({x:4},"t")!=G||G.size!=2)return!1;var u=G.entries(),Z=u.next();if(Z.done||Z.value[0]!=g||Z.value[1]!="s")return!1;Z=u.next();return Z.done||Z.value[0].x!=4||Z.value[1]!="t"||!u.next().done?!1:!0}catch(H){return!1}}())return z;
var l=new WeakMap,I=function(g){this[0]={};this[1]=M();this.size=0;if(g){g=_.D(g);for(var G;!(G=g.next()).done;)G=G.value,this.set(G[0],G[1])}};
I.prototype.set=function(g,G){g=g===0?0:g;var u=b(this,g);u.list||(u.list=this[0][u.id]=[]);u.entry?u.entry.value=G:(u.entry={next:this[1],previous:this[1].previous,head:this[1],key:g,value:G},u.list.push(u.entry),this[1].previous.next=u.entry,this[1].previous=u.entry,this.size++);return this};
I.prototype.delete=function(g){g=b(this,g);return g.entry&&g.list?(g.list.splice(g.index,1),g.list.length||delete this[0][g.id],g.entry.previous.next=g.entry.next,g.entry.next.previous=g.entry.previous,g.entry.head=null,this.size--,!0):!1};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=M();this.size=0};
I.prototype.has=function(g){return!!b(this,g).entry};
I.prototype.get=function(g){return(g=b(this,g).entry)&&g.value};
I.prototype.entries=function(){return v(this,function(g){return[g.key,g.value]})};
I.prototype.keys=function(){return v(this,function(g){return g.key})};
I.prototype.values=function(){return v(this,function(g){return g.value})};
I.prototype.forEach=function(g,G){for(var u=this.entries(),Z;!(Z=u.next()).done;)Z=Z.value,g.call(G,Z[1],Z[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var b=function(g,G){var u=G&&typeof G;u=="object"||u=="function"?l.has(G)?u=l.get(G):(u=""+ ++x,l.set(G,u)):u="p_"+G;var Z=g[0][u];if(Z&&lI(g[0],u))for(g=0;g<Z.length;g++){var H=Z[g];if(G!==G&&H.key!==H.key||G===H.key)return{id:u,list:Z,index:g,entry:H}}return{id:u,list:Z,index:-1,entry:void 0}},v=function(g,G){var u=g[1];
return cF7(function(){if(u){for(;u.head!=g[1];)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:G(u)};u=null}return{done:!0,value:void 0}})},M=function(){var g={};
return g.previous=g.next=g.head=g},x=0;
return I});
VF("Set",function(z){if(function(){if(!z||typeof z!="function"||!z.prototype.entries||typeof Object.seal!="function")return!1;try{var I=Object.seal({x:4}),b=new z(_.D([I]));if(!b.has(I)||b.size!=1||b.add(I)!=b||b.size!=1||b.add({x:4})!=b||b.size!=2)return!1;var v=b.entries(),M=v.next();if(M.done||M.value[0]!=I||M.value[1]!=I)return!1;M=v.next();return M.done||M.value[0]==I||M.value[0].x!=4||M.value[1]!=M.value[0]?!1:v.next().done}catch(x){return!1}}())return z;
var l=function(I){this.JSC$8777_map_=new Map;if(I){I=_.D(I);for(var b;!(b=I.next()).done;)this.add(b.value)}this.size=this.JSC$8777_map_.size};
l.prototype.add=function(I){I=I===0?0:I;this.JSC$8777_map_.set(I,I);this.size=this.JSC$8777_map_.size;return this};
l.prototype.delete=function(I){I=this.JSC$8777_map_.delete(I);this.size=this.JSC$8777_map_.size;return I};
l.prototype.clear=function(){this.JSC$8777_map_.clear();this.size=0};
l.prototype.has=function(I){return this.JSC$8777_map_.has(I)};
l.prototype.entries=function(){return this.JSC$8777_map_.entries()};
l.prototype.values=function(){return this.JSC$8777_map_.values()};
l.prototype.keys=l.prototype.values;l.prototype[Symbol.iterator]=l.prototype.values;l.prototype.forEach=function(I,b){var v=this;this.JSC$8777_map_.forEach(function(M){return I.call(b,M,M,v)})};
return l});
VF("Math.log2",function(z){return z?z:function(l){return Math.log(l)/Math.LN2}});
VF("Object.values",function(z){return z?z:function(l){var I=[],b;for(b in l)lI(l,b)&&I.push(l[b]);return I}});
VF("Object.is",function(z){return z?z:function(l,I){return l===I?l!==0||1/l===1/I:l!==l&&I!==I}});
VF("Array.prototype.includes",function(z){return z?z:function(l,I){var b=this;b instanceof String&&(b=String(b));var v=b.length;I=I||0;for(I<0&&(I=Math.max(I+v,0));I<v;I++){var M=b[I];if(M===l||Object.is(M,l))return!0}return!1}});
VF("String.prototype.includes",function(z){return z?z:function(l,I){return vx(this,l,"includes").indexOf(l,I||0)!==-1}});
VF("Array.from",function(z){return z?z:function(l,I,b){I=I!=null?I:function(g){return g};
var v=[],M=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(typeof M=="function"){l=M.call(l);for(var x=0;!(M=l.next()).done;)v.push(I.call(b,M.value,x++))}else for(M=l.length,x=0;x<M;x++)v.push(I.call(b,l[x],x));return v}});
VF("Object.entries",function(z){return z?z:function(l){var I=[],b;for(b in l)lI(l,b)&&I.push([b,l[b]]);return I}});
VF("Number.isFinite",function(z){return z?z:function(l){return typeof l!=="number"?!1:!isNaN(l)&&l!==Infinity&&l!==-Infinity}});
VF("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
VF("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
VF("Number.isInteger",function(z){return z?z:function(l){return Number.isFinite(l)?l===Math.floor(l):!1}});
VF("Number.isSafeInteger",function(z){return z?z:function(l){return Number.isInteger(l)&&Math.abs(l)<=Number.MAX_SAFE_INTEGER}});
VF("String.prototype.endsWith",function(z){return z?z:function(l,I){var b=vx(this,l,"endsWith");I===void 0&&(I=b.length);I=Math.max(0,Math.min(I|0,b.length));for(var v=l.length;v>0&&I>0;)if(b[--I]!=l[--v])return!1;return v<=0}});
var jix=function(z,l){z instanceof String&&(z+="");var I=0,b=!1,v={next:function(){if(!b&&I<z.length){var M=I++;return{value:l(M,z[M]),done:!1}}b=!0;return{done:!0,value:void 0}}};
v[Symbol.iterator]=function(){return v};
return v};
VF("Array.prototype.entries",function(z){return z?z:function(){return jix(this,function(l,I){return[l,I]})}});
VF("Math.trunc",function(z){return z?z:function(l){l=Number(l);if(isNaN(l)||l===Infinity||l===-Infinity||l===0)return l;var I=Math.floor(Math.abs(l));return l<0?-I:I}});
VF("Number.isNaN",function(z){return z?z:function(l){return typeof l==="number"&&isNaN(l)}});
VF("Array.prototype.keys",function(z){return z?z:function(){return jix(this,function(l){return l})}});
VF("Array.prototype.values",function(z){return z?z:function(){return jix(this,function(l,I){return I})}});
VF("Array.prototype.fill",function(z){return z?z:function(l,I,b){var v=this.length||0;I<0&&(I=Math.max(0,v+I));if(b==null||b>v)b=v;b=Number(b);b<0&&(b=Math.max(0,v+b));for(I=Number(I||0);I<b;I++)this[I]=l;return this}});
var M5=function(z){return z?z:Array.prototype.fill};
VF("Int8Array.prototype.fill",M5);VF("Uint8Array.prototype.fill",M5);VF("Uint8ClampedArray.prototype.fill",M5);VF("Int16Array.prototype.fill",M5);VF("Uint16Array.prototype.fill",M5);VF("Int32Array.prototype.fill",M5);VF("Uint32Array.prototype.fill",M5);VF("Float32Array.prototype.fill",M5);VF("Float64Array.prototype.fill",M5);
VF("Object.fromEntries",function(z){return z?z:function(l){var I={};if(!(Symbol.iterator in l))throw new TypeError("v`"+l);l=l[Symbol.iterator].call(l);for(var b=l.next();!b.done;b=l.next()){b=b.value;if(Object(b)!==b)throw new TypeError("w");I[b[0]]=b[1]}return I}});
VF("String.prototype.replaceAll",function(z){return z?z:function(l,I){if(l instanceof RegExp&&!l.global)throw new TypeError("x");return l instanceof RegExp?this.replace(l,I):this.replace(new RegExp(String(l).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
VF("Object.getOwnPropertySymbols",function(z){return z?z:function(){return[]}});
VF("String.prototype.repeat",function(z){return z?z:function(l){var I=vx(this,null,"repeat");if(l<0||l>1342177279)throw new RangeError("y");l|=0;for(var b="";l;)if(l&1&&(b+=I),l>>>=1)I+=I;return b}});
VF("Array.prototype.findIndex",function(z){return z?z:function(l,I){return Vvu(this,l,I).i}});
VF("Array.prototype.flatMap",function(z){return z?z:function(l,I){var b=[];Array.prototype.forEach.call(this,function(v,M){v=l.call(I,v,M,this);Array.isArray(v)?b.push.apply(b,v):b.push(v)});
return b}});
VF("String.prototype.codePointAt",function(z){return z?z:function(l){var I=vx(this,null,"codePointAt"),b=I.length;l=Number(l)||0;if(l>=0&&l<b){l|=0;var v=I.charCodeAt(l);if(v<55296||v>56319||l+1===b)return v;l=I.charCodeAt(l+1);return l<56320||l>57343?v:(v-55296)*1024+l+9216}}});
VF("String.fromCodePoint",function(z){return z?z:function(l){for(var I="",b=0;b<arguments.length;b++){var v=Number(arguments[b]);if(v<0||v>1114111||v!==Math.floor(v))throw new RangeError("z`"+v);v<=65535?I+=String.fromCharCode(v):(v-=65536,I+=String.fromCharCode(v>>>10&1023|55296),I+=String.fromCharCode(v&1023|56320))}return I}});
VF("String.prototype.trimLeft",function(z){function l(){return this.replace(/^[\s\xa0]+/,"")}
return z||l});
VF("String.prototype.trimStart",function(z){return z||String.prototype.trimLeft});
VF("String.prototype.padStart",function(z){return z?z:function(l,I){var b=vx(this,null,"padStart");l-=b.length;I=I!==void 0?String(I):" ";return(l>0&&I?I.repeat(Math.ceil(l/I.length)).substring(0,l):"")+b}});
VF("Promise.prototype.finally",function(z){return z?z:function(l){return this.then(function(I){return Promise.resolve(l()).then(function(){return I})},function(I){return Promise.resolve(l()).then(function(){throw I;
})})}});
VF("Math.imul",function(z){return z?z:function(l,I){l=Number(l);I=Number(I);var b=l&65535,v=I&65535;return b*v+((l>>>16&65535)*v+b*(I>>>16&65535)<<16>>>0)|0}});
VF("Object.hasOwn",function(z){return z?z:function(l,I){return Object.prototype.hasOwnProperty.call(l,I)}});
VF("Math.sign",function(z){return z?z:function(l){l=Number(l);return l===0||isNaN(l)?l:l>0?1:-1}});
VF("Array.prototype.flat",function(z){return z?z:function(l){l=l===void 0?1:l;var I=[];Array.prototype.forEach.call(this,function(b){Array.isArray(b)&&l>0?(b=Array.prototype.flat.call(b,l-1),I.push.apply(I,b)):I.push(b)});
return I}});
VF("String.raw",function(z){return z?z:function(l,I){l=rFu(l);for(var b=l.raw,v=b.length,M="",x=0;x<v;++x)M+=b[x],x+1<v&&x+1<arguments.length&&(M+=String(arguments[x+1]));return M}});
VF("Reflect.ownKeys",function(z){return z?z:function(l){var I=[],b=Object.getOwnPropertyNames(l);l=Object.getOwnPropertySymbols(l);for(var v=0;v<b.length;v++)(b[v].substring(0,14)=="jscomp_symbol_"?l:I).push(b[v]);return I.concat(l)}});
VF("Object.getOwnPropertyDescriptors",function(z){return z?z:function(l){for(var I={},b=Reflect.ownKeys(l),v=0;v<b.length;v++)I[b[v]]=Object.getOwnPropertyDescriptor(l,b[v]);return I}});
VF("WeakSet",function(z){if(function(){if(!z||!Object.seal)return!1;try{var I=Object.seal({}),b=Object.seal({}),v=new z([I]);if(!v.has(I)||v.has(b))return!1;v.delete(I);v.add(b);return!v.has(I)&&v.has(b)}catch(M){return!1}}())return z;
var l=function(I){this.JSC$8790_map_=new WeakMap;if(I){I=_.D(I);for(var b;!(b=I.next()).done;)this.add(b.value)}};
l.prototype.add=function(I){this.JSC$8790_map_.set(I,!0);return this};
l.prototype.has=function(I){return this.JSC$8790_map_.has(I)};
l.prototype.delete=function(I){return this.JSC$8790_map_.delete(I)};
return l});
VF("Promise.allSettled",function(z){function l(b){return{status:"fulfilled",value:b}}
function I(b){return{status:"rejected",reason:b}}
return z?z:function(b){var v=this;b=Array.from(b,function(M){return v.resolve(M).then(l,I)});
return v.all(b)}});
VF("Number.parseInt",function(z){return z||parseInt});
_._DumpException=window._DumpException||function(z){throw z;};
window._DumpException=_._DumpException;var JF7=window.ytcsi;JF7&&typeof JF7.tick==="function"&&JF7.tick("rses_dpj");var zT$,pO,Ds,xx,l5x,I55,b_1,vcQ,Fq,MPY;zT$=zT$||{};_.v7=this||self;_.vd=function(z,l,I){z=z.split(".");I=I||_.v7;for(var b;z.length&&(b=z.shift());)z.length||l===void 0?I[b]&&I[b]!==Object.prototype[b]?I=I[b]:I=I[b]={}:I[b]=l};
pO=function(z,l){var I=_.W8("WIZ_global_data.oxN3nb");z=I&&I[z];return z!=null?z:l};
Ds=_.v7._F_toggles_default_kevlar_base||[];xx=function(){};
xx.get=function(){return null};
_.rQx=null;_.W8=function(z,l){z=z.split(".");l=l||_.v7;for(var I=0;I<z.length;I++)if(l=l[z[I]],l==null)return null;return l};
_.O9=function(z){z.instance_=void 0;z.getInstance=function(){return z.instance_?z.instance_:z.instance_=new z}};
_.Vu=function(z){var l=typeof z;return l!="object"?l:z?Array.isArray(z)?"array":l:"null"};
_.wf=function(z){var l=_.Vu(z);return l=="array"||l=="object"&&typeof z.length=="number"};
_.Lu=function(z){var l=typeof z;return l=="object"&&z!=null||l=="function"};
_.UY=function(z){return Object.prototype.hasOwnProperty.call(z,l5x)&&z[l5x]||(z[l5x]=++I55)};
l5x="closure_uid_"+(Math.random()*1E9>>>0);I55=0;b_1=function(z,l,I){return z.call.apply(z.bind,arguments)};
vcQ=function(z,l,I){if(!z)throw Error();if(arguments.length>2){var b=Array.prototype.slice.call(arguments,2);return function(){var v=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(v,b);return z.apply(l,v)}}return function(){return z.apply(l,arguments)}};
_.YN=function(z,l,I){_.YN=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?b_1:vcQ;return _.YN.apply(null,arguments)};
_.tH=function(z,l){var I=Array.prototype.slice.call(arguments,1);return function(){var b=I.slice();b.push.apply(b,arguments);return z.apply(this,b)}};
_.gG=function(){return Date.now()};
Fq=function(z){return z};
_.Gs=function(z,l){function I(){}
I.prototype=l.prototype;z.superClass_=l.prototype;z.prototype=new I;z.prototype.constructor=z;z.base=function(b,v,M){for(var x=Array(arguments.length-2),g=2;g<arguments.length;g++)x[g-2]=arguments[g];return l.prototype[v].apply(b,x)}};
MPY=function(z){return z};var pqu,D7p;_.e=function(z,l,I,b){var v=arguments.length,M=v<3?l:b===null?b=Object.getOwnPropertyDescriptor(l,I):b,x;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")M=Reflect.decorate(z,l,I,b);else for(var g=z.length-1;g>=0;g--)if(x=z[g])M=(v<3?x(M):v>3?x(l,I,M):x(l,I))||M;v>3&&M&&Object.defineProperty(l,I,M)};
_.w=function(z,l){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(z,l)};
pqu=function(z,l){if(l!==null&&l!==void 0){if(typeof l!=="object"&&typeof l!=="function")throw new TypeError("A");if(I===void 0){if(!Symbol.dispose)throw new TypeError("C");var I=l[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("D");z.stack.push({value:l,dispose:I,async:!1})}return l};
D7p=function(z){function l(M){z.error=z.hasError?new SuppressedError(M,z.error,"An error was suppressed during disposal."):M;z.hasError=!0}
function I(){for(;b=z.stack.pop();)try{if(!b.async&&v===1)return v=0,z.stack.push(b),Promise.resolve().then(I);if(b.dispose){var M=b.dispose.call(b.value);if(b.async)return v|=2,Promise.resolve(M).then(I,function(x){l(x);return I()})}else v|=1}catch(x){l(x)}if(v===1)return z.hasError?Promise.reject(z.error):Promise.resolve();
if(z.hasError)throw z.error;}
var b,v=0;I()};_.Gs(_.I1,Error);_.I1.prototype.name="CustomError";var x7u;var O_f=void 0,gcu,GGH=typeof TextDecoder!=="undefined",bu$,IS5=typeof String.prototype.isWellFormed==="function",lSG=typeof TextEncoder!=="undefined";var NY5;_.F7=function(z){for(var l=[],I=0,b=0;b<z.length;b++){var v=z.charCodeAt(b);v<128?l[I++]=v:(v<2048?l[I++]=v>>6|192:((v&64512)==55296&&b+1<z.length&&(z.charCodeAt(b+1)&64512)==56320?(v=65536+((v&1023)<<10)+(z.charCodeAt(++b)&1023),l[I++]=v>>18|240,l[I++]=v>>12&63|128):l[I++]=v>>12|224,l[I++]=v>>6&63|128),l[I++]=v&63|128)}return l};
NY5=function(z){for(var l=[],I=0,b=0;I<z.length;){var v=z[I++];if(v<128)l[b++]=String.fromCharCode(v);else if(v>191&&v<224){var M=z[I++];l[b++]=String.fromCharCode((v&31)<<6|M&63)}else if(v>239&&v<365){M=z[I++];var x=z[I++],g=z[I++];v=((v&7)<<18|(M&63)<<12|(x&63)<<6|g&63)-65536;l[b++]=String.fromCharCode(55296+(v>>10));l[b++]=String.fromCharCode(56320+(v&1023))}else M=z[I++],x=z[I++],l[b++]=String.fromCharCode((v&15)<<12|(M&63)<<6|x&63)}return l.join("")};var ZS=String.prototype.trim?function(z){return z.trim()}:function(z){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(z)[1]},EcQ=/&/g,u_u=/</g,Z_1=/>/g,H_x=/"/g,yDu=/'/g,f5H=/\x00/g,CNH=/[\x00&<>"']/;var N5=!!(Ds[0]>>15&1),kGt=!!(Ds[0]&1024),RTt=!!(Ds[0]>>16&1),m71=!!(Ds[0]&8),K4G=!!(Ds[0]&2),tPx=!!(Ds[0]&4),BYp=!!(Ds[0]&16),Xq5=!!(Ds[0]&128);var qGx=pO(1,!0),k5=N5?RTt:pO(610401301,!1),i_k=N5?m71:pO(772657768,!1),F4k=N5?K4G:pO(513659523,!1),QbY=N5?kGt||!tPx:pO(568333945,!0),Vdu=N5?BYp:pO(1331761403,!1),ZlG=N5?kGt||!Xq5:pO(748402147,qGx);var mQ,YG5=_.v7.navigator;mQ=YG5?YG5.userAgentData||null:null;var V1;_.sY=function(z,l){return Array.prototype.indexOf.call(z,l,void 0)};
_.UZ=function(z,l,I){Array.prototype.forEach.call(z,l,I)};
_.E9=function(z,l,I){return Array.prototype.filter.call(z,l,I)};
_.s7=function(z,l,I){return Array.prototype.map.call(z,l,I)};
V1=function(z,l,I){return Array.prototype.some.call(z,l,I)};
_.YsQ=function(z,l,I){return Array.prototype.every.call(z,l,I)};var uI=function(z){uI[" "](z);return z};
uI[" "]=function(){};
var XRQ=function(z,l){try{return uI(z[l]),!0}catch(I){}return!1},CRG=function(z,l,I,b){b=b?b(l):l;
return Object.prototype.hasOwnProperty.call(z,b)?z[b]:z[b]=I(l)};var TYG,Iw,cDY,SGS,ocx,PNx,tHt,hTQ,sbf,rD7,iBQ,eTt,wqH,L47,U7Q,a5f;_.qQ$=function(){return _.v7.navigator||null};
TYG=Dpk();_.Zs=xpY();Iw=tG("Edge");cDY=Iw||_.Zs;_.Hx=tG("Gecko")&&!(_.EY(_.Cu(),"WebKit")&&!tG("Edge"))&&!(tG("Trident")||tG("MSIE"))&&!tG("Edge");_.yk=_.EY(_.Cu(),"WebKit")&&!tG("Edge");SGS=_.yk&&tG("Mobile");_.d7H=_.yG1();ocx=_.fSS();PNx=(Q$()?mQ.platform==="Linux":tG("Linux"))||_.CHt();tHt=_.Zuu();hTQ=Huk();sbf=tG("iPad");rD7=tG("iPod");_.$7p=_.Y5();iBQ=_.EY(_.Cu(),"KaiOS");eTt=function(){var z=_.v7.document;return z?z.documentMode:void 0};
a:{var AD1="",W4x=function(){var z=_.Cu();if(_.Hx)return/rv:([^\);]+)(\)|;)/.exec(z);if(Iw)return/Edge\/([\d\.]+)/.exec(z);if(_.Zs)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(z);if(_.yk)return/WebKit\/(\S+)/.exec(z);if(TYG)return/(?:Version)[ \/]?(\S+)/.exec(z)}();
W4x&&(AD1=W4x?W4x[1]:"");if(_.Zs){var nc$=eTt();if(nc$!=null&&nc$>parseFloat(AD1)){wqH=String(nc$);break a}}wqH=AD1}L47=wqH;U7Q={};_.fO=function(z){return CRG(U7Q,z,function(){return _.y$(L47,z)>=0})};
if(_.v7.document&&_.Zs){var VPx=eTt();a5f=VPx?VPx:parseInt(L47,10)||void 0}else a5f=void 0;_.jb5=a5f;var ow$,PiS,JDx;_.CO=qp();ow$=Huk()||tG("iPod");PiS=tG("iPad");JDx=_.Gkp();_.kx=_.iH();_.ec=_.g5t()&&!_.Y5();var zg5,RX,A7H,co7,I27,l2$;zg5={};RX=null;A7H=_.Hx||_.yk||typeof _.v7.btoa=="function";_.Tc=function(z,l){l===void 0&&(l=0);l2$();l=zg5[l];for(var I=Array(Math.floor(z.length/3)),b=l[64]||"",v=0,M=0;v<z.length-2;v+=3){var x=z[v],g=z[v+1],G=z[v+2],u=l[x>>2];x=l[(x&3)<<4|g>>4];g=l[(g&15)<<2|G>>6];G=l[G&63];I[M++]=u+x+g+G}u=0;G=b;switch(z.length-v){case 2:u=z[v+1],G=l[(u&15)<<2]||b;case 1:z=z[v],I[M]=l[z>>2]+l[(z&3)<<4|u>>4]+G+b}return I.join("")};
co7=function(z){var l="";I27(z,function(I){l+=String.fromCharCode(I)});
return l};
_.aT5=function(z){var l=[];I27(z,function(I){l.push(I)});
return l};
_.jx=function(z){var l=z.length,I=l*3/4;I%3?I=Math.floor(I):_.Np("=.",z[l-1])&&(I=_.Np("=.",z[l-2])?I-2:I-1);var b=new Uint8Array(I),v=0;I27(z,function(M){b[v++]=M});
return v!==I?b.subarray(0,v):b};
I27=function(z,l){function I(G){for(;b<z.length;){var u=z.charAt(b++),Z=RX[u];if(Z!=null)return Z;if(!_.gf(u))throw Error("H`"+u);}return G}
l2$();for(var b=0;;){var v=I(-1),M=I(0),x=I(64),g=I(64);if(g===64&&v===-1)break;l(v<<2|M>>4);x!=64&&(l(M<<4&240|x>>2),g!=64&&l(x<<6&192|g))}};
l2$=function(){if(!RX){RX={};for(var z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var b=z.concat(l[I].split(""));zg5[I]=b;for(var v=0;v<b.length;v++){var M=b[v];RX[M]===void 0&&(RX[M]=v)}}}};var AGt=typeof Uint8Array!=="undefined",cGQ=!_.Zs&&typeof btoa==="function",SYY=/[-_.]/g,YYf={"-":"+",_:"/",".":"="},XA={};var B_,vt1;B_=function(z,l){if(l!==XA)throw Error("J");this.JSC$8820_value_=z;if(z!=null&&z.length===0)throw Error("I");};
_.qz=function(){return bW7||(bW7=new B_(null,XA))};
vt1=function(z){return new Uint8Array(h1H(z)||0)};
B_.prototype.isEmpty=function(){return this.JSC$8820_value_==null};
B_.prototype.sizeBytes=function(){var z=h1H(this);return z?z.length:0};
var h1H=function(z){if(XA!==XA)throw Error("J");var l=z.JSC$8820_value_;l==null||AGt&&l!=null&&l instanceof Uint8Array||(typeof l==="string"?l=dp$(l):(_.Vu(l),l=null));return l==null?l:z.JSC$8820_value_=l},bW7;var PH$=void 0;var pn=typeof Symbol==="function"&&typeof Symbol()==="symbol",MQY=Mz("jas",void 0,!0),dzG=Mz(void 0,"0di"),Iu=Mz(void 0,"1oa"),YS=Mz(void 0,Symbol()),j_x=Mz(void 0,"0ub"),z1u=Mz(void 0,"0ubs"),RZt=Mz(void 0,"0ubsb"),yyH=Mz(void 0,"0actk"),ty=Mz("m_m","messagePrototypeMarker",!0),gSY=Mz(void 0,"vps"),UzH=Mz();var rG5,s1f,Ll,paQ;rG5={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};s1f=Object.defineProperties;_.D4=pn?MQY:"internalArrayState";paQ=[];x0(paQ,7);Ll=Object.freeze(paQ);var BX={},Nz={},D6H=function(z,l,I){this.iterable=z;this.mapper=l;this.thisArg=I};
D6H.prototype.next=function(){var z=this.iterable.next();z.done||(z.value=this.mapper.call(this.thisArg,z.value));return z};
D6H.prototype[Symbol.iterator]=function(){return this};
var x6Y=Object.freeze({}),Qu={};_.OWu=c_(function(z){return z!==null&&z!==void 0});var Vxk=c_(function(z){return typeof z==="number"}),aSQ=c_(function(z){return typeof z==="string"}),JGH=c_(function(z){return typeof z==="boolean"}),gt$=c_(function(z){return z!=null&&typeof z==="object"&&typeof z.then==="function"}),FZS=c_(function(z){return typeof z==="function"}),xz=c_(function(z){return!!z&&(typeof z==="object"||typeof z==="function")});var j1G=typeof _.v7.BigInt==="function"&&typeof _.v7.BigInt(0)==="bigint";var FAY=c_(function(z){return j1G?z>=GQk&&z<=NRS:z[0]==="-"?zIp(z,Et$):zIp(z,ud7)}),Et$=Number.MIN_SAFE_INTEGER.toString(),GQk=j1G?BigInt(Number.MIN_SAFE_INTEGER):void 0,ud7=Number.MAX_SAFE_INTEGER.toString(),NRS=j1G?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ZWQ=typeof Uint8Array.prototype.slice==="function",o_=0,P_=0,bn5;var xS,Gc,jM,NK,Nw$;xS=typeof BigInt==="function"?BigInt.asIntN:void 0;_.HX=typeof BigInt==="function"?BigInt.asUintN:void 0;Gc=Number.isSafeInteger;jM=Number.isFinite;NK=Math.trunc;Nw$=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Gc1={};var WAk={},HWu=function(){try{var z=function(){return dPH(Map,[],this.constructor)};
_.m(z,Map);uI(new z);return!1}catch(l){return!0}}(),mx=function(){this.JSC$8839_map_=new Map};
_.p=mx.prototype;_.p.get=function(z){return this.JSC$8839_map_.get(z)};
_.p.set=function(z,l){this.JSC$8839_map_.set(z,l);this.size=this.JSC$8839_map_.size;return this};
_.p.delete=function(z){z=this.JSC$8839_map_.delete(z);this.size=this.JSC$8839_map_.size;return z};
_.p.clear=function(){this.JSC$8839_map_.clear();this.size=this.JSC$8839_map_.size};
_.p.has=function(z){return this.JSC$8839_map_.has(z)};
_.p.entries=function(){return this.JSC$8839_map_.entries()};
_.p.keys=function(){return this.JSC$8839_map_.keys()};
_.p.values=function(){return this.JSC$8839_map_.values()};
_.p.forEach=function(z,l){return this.JSC$8839_map_.forEach(z,l)};
mx.prototype[Symbol.iterator]=function(){return this.entries()};
var SW=function(){if(HWu)return Object.setPrototypeOf(mx.prototype,Map.prototype),Object.defineProperties(mx.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),mx;var z=function(){return dPH(Map,[],this.constructor)};
_.m(z,Map);return z}(),qK=function(z,l,I,b){I=I===void 0?rpu:I;
b=b===void 0?rpu:b;var v=SW.call(this)||this;v.arrayState=z[_.D4]|0;v.valueCtor=l;v.keyToApi=I;v.valueToApi=v.valueCtor?eIu:b;for(var M=0;M<z.length;M++){var x=z[M],g=I(x[0],!1,!0),G=x[1];l?G===void 0&&(G=null):G=b(x[1],!1,!0,void 0,void 0,v.arrayState);SW.prototype.set.call(v,g,G)}return v};
_.m(qK,SW);var yIf=function(z){if(z.arrayState&2)throw Error("N");},kct=function(z){return Array.from(SW.prototype.entries.call(z))};
_.p=qK.prototype;_.p.clear=function(){yIf(this);SW.prototype.clear.call(this)};
_.p.delete=function(z){yIf(this);return SW.prototype.delete.call(this,this.keyToApi(z,!0,!1))};
_.p.entries=function(){if(this.valueCtor){var z=SW.prototype.keys.call(this);z=new D6H(z,w_Q,this)}else z=SW.prototype.entries.call(this);return z};
_.p.values=function(){if(this.valueCtor){var z=SW.prototype.keys.call(this);z=new D6H(z,qK.prototype.get,this)}else z=SW.prototype.values.call(this);return z};
_.p.forEach=function(z,l){this.valueCtor?SW.prototype.forEach.call(this,function(I,b,v){z.call(l,v.get(b),b,v)}):SW.prototype.forEach.call(this,z,l)};
_.p.set=function(z,l){yIf(this);z=this.keyToApi(z,!0,!1);return z==null?this:l==null?(SW.prototype.delete.call(this,z),this):SW.prototype.set.call(this,z,this.valueToApi(l,!0,!0,this.valueCtor,!1,this.arrayState))};
_.p.has=function(z){return SW.prototype.has.call(this,this.keyToApi(z,!1,!1))};
_.p.get=function(z){z=this.keyToApi(z,!1,!1);var l=SW.prototype.get.call(this,z);if(l!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(l,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==l&&SW.prototype.set.call(this,z,I),I):l}};
qK.prototype[Symbol.iterator]=function(){return this.entries()};
qK.prototype.toJSON=void 0;var Ap$;var vSu=function(){},IFY=function(z,l){for(var I in z)!isNaN(I)&&l(z,+I,z[I])},MWY=function(z){var l=new vSu;
IFY(z,function(I,b,v){l[b]=ww(v)});
l.reviveUnknownFields=z.reviveUnknownFields;return l},a4$={reviveIntoImmutable:!0};var bl7;var N4t,ES$;var f2$,jW,f2,K2,Cnp,Qk,Ry,kQY,Rgx,Sy,m6Y,dG,hO,s9;f2$=_.SM(0);_.KO={};_.tO=function(z,l,I,b,v){l=jW(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,I,v);if(l!==null||b&&z.noLegacyNull!==Nz)return l};
jW=function(z,l,I,b){if(l===-1)return null;var v=l+(I?0:-1),M=z.length-1;if(!(M<1+(I?0:-1))){if(v>=M){var x=z[M];if(x!=null&&typeof x==="object"&&x.constructor===Object){I=x[l];var g=!0}else if(v===M)I=x;else return}else I=z[v];if(b&&I!=null){b=b(I);if(b==null)return b;if(!Object.is(b,I))return g?x[l]=b:z[v]=b,b}return I}};
_.NW=function(z,l,I,b){w4(z);var v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nl(v,v[_.D4]|0,l,I,b);return z};
_.Bx=function(z,l,I){z=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cy7(z,z[_.D4]|0,l,I)!==void 0};
_.Xl=function(z,l,I,b){var v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cy7(v,v[_.D4]|0,l,K2(z,b,I))!==void 0};
_.g1=function(z){return z===x6Y?2:4};
_.q5=function(z,l){z=_.tO(z,l,void 0,void 0,q81);return z==null?_.qz():z};
f2=function(z,l,I,b){w4(z);var v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=v[_.D4]|0;if(b==null){var x=QCp(v);if(Y85(x,v,M,I)===l)x.set(I,0);else return z}else M=T45(v,M,I,l);nl(v,M,l,b);return z};
_.iI=function(z,l,I,b){var v=z[_.D4]|0,M=T_(v);v=T45(z,v,I,l,M);nl(z,v,l,b,M)};
K2=function(z,l,I){return _.Fl(z,l)===I?I:-1};
_.Fl=function(z,l){z=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Y85(QCp(z),z,void 0,l,void 0)};
Cnp=function(z,l,I){var b=z[_.D4]|0,v=T_(b),M=jW(z,I,v);if(M!=null&&M[ty]===BX){if(!fn(M))return eW(M),M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var x=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(M)&&(x=M);if(x){var g=x[_.D4]|0;g&2&&(x=r4(x,g))}x=s8(x,l,!0);x!==M&&nl(z,b,I,x,v);return x};
_.gi=function(z,l,I,b){var v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=v[_.D4]|0;l=cy7(v,M,l,I,b);if(l==null)return l;M=v[_.D4]|0;if(!fn(z,M)){var x=$z5(l);x!==l&&(eW(z)&&(v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=v[_.D4]|0),l=x,M=nl(v,M,I,l,b),Ay(v,M))}return l};
_.OA=function(z,l,I,b){var v=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return S8p(z,v,v[_.D4]|0,l,I,b,!1,!0)};
_.tT=function(z,l,I,b){I=dKk(I);_.NW(z,l,I,b);I&&!fn(I)&&Ay(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return z};
_.Xr=function(z,l,I,b){b=dKk(b);f2(z,l,I,b);b&&!fn(b)&&Ay(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return z};
Qk=function(z,l,I){w4(z);var b=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=b[_.D4]|0;if(I==null)return nl(b,v,l),z;for(var M=I===Ll?7:I[_.D4]|0,x=M,g=Vs(M),G=g||Object.isFrozen(I),u=!0,Z=!0,H=0;H<I.length;H++){var y=I[H];g||(y=fn(y),u&&(u=!y),Z&&(Z=y))}g||(M=u?13:5,M=Z?M&-4097:M|4096);G&&M===x||(I=ww(I),x=0,M=U8(M,v));M!==x&&x0(I,M);v=nl(b,v,l,I);2&M||!(4096&M||16&M)||Ay(b,v);return z};
Ry=function(z,l,I,b){PK5(z,l,I,b);return z};
kQY=function(z,l,I){PK5(z,l,Yx,void 0,I,1,!0);return z};
_.Ts=function(z,l,I){z=_.tO(z,l,void 0,I);l=typeof z;z=z==null?z:l==="bigint"?_.SM((0,_.HX)(64,z)):_.Jp(z)?l==="string"?_.inY(z):_.X_Q(z):void 0;return z};
_.cx=function(z,l){var I=I===void 0?!1:I;var b;return(b=_.G_f(_.tO(z,l)))!=null?b:I};
_.Gz=function(z,l,I){I=I===void 0?0:I;var b;return(b=_.MK(_.tO(z,l)))!=null?b:I};
Rgx=function(z,l){var I=I===void 0?0:I;z=_.uAu(_.tO(z,l));return z!=null?z:I};
Sy=function(z,l,I){I=I===void 0?f2$:I;var b;return(b=_.Twp(_.tO(z,l)))!=null?b:I};
m6Y=function(z){var l=l===void 0?f2$:l;var I;return(I=_.Ts(z,23))!=null?I:l};
dG=function(z,l){var I=I===void 0?0:I;var b;return(b=_.tO(z,l,void 0,void 0,_.nn))!=null?b:I};
_.oX=function(z,l,I,b){I=I===void 0?"":I;var v;return(v=_.m0(_.tO(z,l,b)))!=null?v:I};
_.Px=function(z,l){var I=I===void 0?0:I;var b;return(b=_.IC(_.tO(z,l)))!=null?b:I};
hO=function(z,l){var I=I===void 0?"0":I;z=Yj7(_.tO(z,l),!0);return z!=null?z:I};
s9=function(z,l,I){return _.oX(z,K2(z,I,l))};
_.rG=function(z,l,I,b){return _.gi(z,l,K2(z,b,I),void 0)};
_.K0=function(z,l){return _.m0(_.tO(z,l,void 0,_.KO))};
_.Zv=function(z,l,I){return _.NW(z,l,g0t(I))};
_.dm=function(z,l,I){return _.zT(z,l,g0t(I),!1)};
_.$x=function(z,l,I){return _.NW(z,l,_.vX(I))};
_.BW=function(z,l,I){return _.NW(z,l,g4(I))};
_.Th=function(z,l,I){return _.NW(z,l,RC(I))};
_.j2=function(z,l,I,b){return _.zT(z,l,RC(I),"",b)};
_.G6=function(z,l,I){return _.NW(z,l,I==null?I:_.zc(I))};
_.ey=function(z,l,I){return _.zT(z,l,I==null?I:_.zc(I),0)};var b8=function(z,l,I){this.buffer=z;if(I&&!l)throw Error();this.JSC$8851_isImmutable=l};var Kct=function(z,l,I,b){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.init(z,l,I,b)},wG,BRp,XaQ,qOp,iWQ,Fck,gRk,tQG;
_.p=Kct.prototype;_.p.init=function(z,l,I,b){var v=b===void 0?{}:b;b=v.aliasBytesFields===void 0?!1:v.aliasBytesFields;v=v.treatNewDataAsImmutable===void 0?!1:v.treatNewDataAsImmutable;this.aliasBytesFields=b;this.treatNewDataAsImmutable=v;z&&(z=sCt(z,this.treatNewDataAsImmutable),this.bytes_=z.buffer,this.bytesAreImmutable_=z.JSC$8851_isImmutable,this.JSC$8854_start_=l||0,this.end_=I!==void 0?this.JSC$8854_start_+I:this.bytes_.length,this.cursor_=this.JSC$8854_start_)};
_.p.free=function(){this.clear();tQG.length<100&&tQG.push(this)};
_.p.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.aliasBytesFields=!1};
_.p.reset=function(){this.cursor_=this.JSC$8854_start_};
_.p.atEnd=function(){return this.cursor_==this.end_};
_.AO=function(z,l){var I=0,b=0,v=0,M=z.bytes_,x=z.cursor_;do{var g=M[x++];I|=(g&127)<<v;v+=7}while(v<32&&g&128);if(v>32)for(b|=(g&127)>>4,v=3;v<32&&g&128;v+=7)g=M[x++],b|=(g&127)<<v;wG(z,x);if(!(g&128))return l(I>>>0,b>>>0);throw Error();};
wG=function(z,l){z.cursor_=l;if(l>z.end_)throw Error();};
_.Wx=function(z){var l=z.bytes_,I=z.cursor_,b=l[I++],v=b&127;if(b&128&&(b=l[I++],v|=(b&127)<<7,b&128&&(b=l[I++],v|=(b&127)<<14,b&128&&(b=l[I++],v|=(b&127)<<21,b&128&&(b=l[I++],v|=b<<28,b&128&&l[I++]&128&&l[I++]&128&&l[I++]&128&&l[I++]&128&&l[I++]&128)))))throw Error();wG(z,I);return v};
_.nO=function(z){var l=z.bytes_,I=z.cursor_,b=l[I],v=l[I+1],M=l[I+2];l=l[I+3];wG(z,z.cursor_+4);return(b<<0|v<<8|M<<16|l<<24)>>>0};
BRp=function(z){var l=_.nO(z);z=_.nO(z);return MMf(l,z)};
XaQ=function(z){var l=_.nO(z);z=(l>>31)*2+1;var I=l>>>23&255;l&=8388607;return I==255?l?NaN:z*Infinity:I==0?z*1.401298464324817E-45*l:z*Math.pow(2,I-150)*(l+8388608)};
qOp=function(z){var l=_.nO(z),I=_.nO(z);z=(I>>31)*2+1;var b=I>>>20&2047;l=4294967296*(I&1048575)+l;return b==2047?l?NaN:z*Infinity:b==0?z*4.9E-324*l:z*Math.pow(2,b-1075)*(l+4503599627370496)};
iWQ=function(z){for(var l=0,I=z.cursor_,b=I+10,v=z.bytes_;I<b;){var M=v[I++];l|=M;if((M&128)===0)return wG(z,I),!!(l&127)}throw Error();};
Fck=function(z,l){if(l<0)throw Error();var I=z.cursor_;l=I+l;if(l>z.end_)throw Error();z.cursor_=l;return I};
gRk=function(z,l){if(l==0)return _.qz();var I=Fck(z,l);z.aliasBytesFields&&z.bytesAreImmutable_?I=z.bytes_.subarray(I,I+l):(z=z.bytes_,l=I+l,I=I===l?new Uint8Array(0):ZWQ?z.slice(I,l):new Uint8Array(z.subarray(I,l)));return I.length==0?_.qz():new B_(I,XA)};
tQG=[];var YOH=function(z,l,I,b){if(tQG.length){var v=tQG.pop();v.init(z,l,I,b);z=v}else z=new Kct(z,l,I,b);this.decoder_=z;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;QMx(this,b)},QMx=function(z,l){l=l===void 0?{}:l;
z.discardUnknownFields=l.discardUnknownFields===void 0?!1:l.discardUnknownFields},ERQ=function(z,l,I,b){if(TRu.length){var v=TRu.pop();
QMx(v,b);v.decoder_.init(z,l,I,b);return v}return new YOH(z,l,I,b)},DZ1,ODH,LO,cI$,TRu;
YOH.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;TRu.length<100&&TRu.push(this)};
YOH.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
DZ1=function(z){if(z.decoder_.atEnd())return!1;z.fieldCursor_=z.decoder_.cursor_;var l=_.Wx(z.decoder_)>>>0,I=l>>>3;l&=7;if(!(l>=0&&l<=5))throw Error();if(I<1)throw Error();z.nextField_=I;z.nextWireType_=l;return!0};
ODH=function(z){switch(z.nextWireType_){case 0:z.nextWireType_!=0?ODH(z):iWQ(z.decoder_);break;case 1:z=z.decoder_;wG(z,z.cursor_+8);break;case 2:if(z.nextWireType_!=2)ODH(z);else{var l=_.Wx(z.decoder_)>>>0;z=z.decoder_;wG(z,z.cursor_+l)}break;case 5:z=z.decoder_;wG(z,z.cursor_+4);break;case 3:l=z.nextField_;do{if(!DZ1(z))throw Error();if(z.nextWireType_==4){if(z.nextField_!=l)throw Error();break}ODH(z)}while(1);break;default:throw Error();}};
LO=function(z,l,I){var b=z.decoder_.end_,v=_.Wx(z.decoder_)>>>0;v=z.decoder_.cursor_+v;var M=v-b;M<=0&&(z.decoder_.end_=v,I(l,z,void 0,void 0,void 0),M=v-z.decoder_.cursor_);if(M)throw Error();z.decoder_.cursor_=v;z.decoder_.end_=b;return l};
cI$=function(z){var l=_.Wx(z.decoder_)>>>0;z=z.decoder_;var I=Fck(z,l);z=z.bytes_;if(GGH){var b=z,v;(v=gcu)||(v=gcu=new TextDecoder("utf-8",{fatal:!0}));l=I+l;b=I===0&&l===b.length?b:b.subarray(I,l);try{var M=v.decode(b)}catch(u){if(O_f===void 0){try{v.decode(new Uint8Array([128]))}catch(Z){}try{v.decode(new Uint8Array([97])),O_f=!0}catch(Z){O_f=!1}}!O_f&&(gcu=void 0);throw u;}}else{M=I;l=M+l;I=[];for(var x=null,g,G;M<l;)g=z[M++],g<128?I.push(g):g<224?M>=l?bH():(G=z[M++],g<194||(G&192)!==128?(M--,
bH()):I.push((g&31)<<6|G&63)):g<240?M>=l-1?bH():(G=z[M++],(G&192)!==128||g===224&&G<160||g===237&&G>=160||((v=z[M++])&192)!==128?(M--,bH()):I.push((g&15)<<12|(G&63)<<6|v&63)):g<=244?M>=l-2?bH():(G=z[M++],(G&192)!==128||(g<<28)+(G-144)>>30!==0||((v=z[M++])&192)!==128||((b=z[M++])&192)!==128?(M--,bH()):(g=(g&7)<<18|(G&63)<<12|(v&63)<<6|b&63,g-=65536,I.push((g>>10&1023)+55296,(g&1023)+56320))):bH(),I.length>=8192&&(x=zQQ(x,I),I.length=0);M=zQQ(x,I)}return M};
_.SO5=function(z){var l=_.Wx(z.decoder_)>>>0;return gRk(z.decoder_,l)};
_.d6f=function(z,l,I){var b=_.Wx(z.decoder_)>>>0;for(b=z.decoder_.cursor_+b;z.decoder_.cursor_<b;)I.push(l(z.decoder_))};
TRu=[];var otu=function(z,l){this.JSC$8861_lo=z>>>0;this.JSC$8861_hi=l>>>0},PnS=function(z){z=BigInt.asUintN(64,z);
return new otu(Number(z&BigInt(4294967295)),Number(z>>BigInt(32)))},e11=function(z){if(!z)return hgQ||(hgQ=new otu(0,0));
if(!/^\d+$/.test(z))return null;eM(z);return new otu(o_,P_)},hgQ,XQH=function(z,l){this.JSC$8863_lo=z>>>0;
this.JSC$8863_hi=l>>>0},ry1=function(z){if(!z)return sM5||(sM5=new XQH(0,0));
if(!/^-?\d+$/.test(z))return null;eM(z);return new XQH(o_,P_)},sM5;var U9=function(){this.JSC$8865_buffer_=[]},u8,HQ,rIS;
U9.prototype.length=function(){return this.JSC$8865_buffer_.length};
U9.prototype.end=function(){var z=this.JSC$8865_buffer_;this.JSC$8865_buffer_=[];return z};
u8=function(z,l,I){for(;I>0||l>127;)z.JSC$8865_buffer_.push(l&127|128),l=(l>>>7|I<<25)>>>0,I>>>=7;z.JSC$8865_buffer_.push(l)};
HQ=function(z,l){for(;l>127;)z.JSC$8865_buffer_.push(l&127|128),l>>>=7;z.JSC$8865_buffer_.push(l)};
_.qv1=function(z,l){if(l>=0)HQ(z,l);else{for(var I=0;I<9;I++)z.JSC$8865_buffer_.push(l&127|128),l>>=7;z.JSC$8865_buffer_.push(1)}};
rIS=function(z,l){eM(l);p_f(function(I,b){u8(z,I>>>0,b>>>0)})};
U9.prototype.writeUint8=function(z){this.JSC$8865_buffer_.push(z>>>0&255)};
_.Ev=function(z,l){z.JSC$8865_buffer_.push(l>>>0&255);z.JSC$8865_buffer_.push(l>>>8&255);z.JSC$8865_buffer_.push(l>>>16&255);z.JSC$8865_buffer_.push(l>>>24&255)};
U9.prototype.writeInt8=function(z){this.JSC$8865_buffer_.push(z>>>0&255)};var $6t,xR,F7p,T0x,nSf;$6t=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new U9};
xR=function(z,l){l.length!==0&&(z.blocks_.push(l),z.totalLength_+=l.length)};
_.egS=function(z,l){_.NZ(z,l,2);l=z.encoder_.end();xR(z,l);l.push(z.totalLength_);return l};
_.waQ=function(z,l){var I=l.pop();for(I=z.totalLength_+z.encoder_.length()-I;I>127;)l.push(I&127|128),I>>>=7,z.totalLength_++;l.push(I);z.totalLength_++};
_.NZ=function(z,l,I){HQ(z.encoder_,l*8+I)};
F7p=function(z,l,I){if(I!=null)switch(wXQ(I),_.NZ(z,l,1),typeof I){case "number":z=z.encoder_;l4$(I);_.Ev(z,o_);_.Ev(z,P_);break;case "bigint":I=PnS(I);z=z.encoder_;l=I.JSC$8861_hi;_.Ev(z,I.JSC$8861_lo);_.Ev(z,l);break;default:I=e11(I),z=z.encoder_,l=I.JSC$8861_hi,_.Ev(z,I.JSC$8861_lo),_.Ev(z,l)}};
T0x=function(z,l,I){_.NZ(z,l,2);HQ(z.encoder_,I.length);xR(z,z.encoder_.end());xR(z,I)};
nSf=function(z,l,I,b){I!=null&&(l=_.egS(z,l),b(I,z),_.waQ(z,l))};var Ay7,AIQ,Wcf,nt5,Lcu,a25,VQ7,JIk,z_u;Ay7=vQ();AIQ=vQ();Wcf=vQ();nt5=vQ();Lcu=vQ();_.U61=vQ();_.aX=vQ();a25=vQ();VQ7=vQ();_.jMt=vQ();JIk=vQ();z_u=vQ();_.lMx=vQ();_.IM5=vQ();_.Da=function(z,l,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,l,I)};
_.Da.prototype.toJSON=function(){return d4(this)};
_.Da.prototype.serialize=function(z){return JSON.stringify(d4(this,z))};
var $ZQ=function(z,l){if(l==null||l=="")return new z;l=JSON.parse(l);if(!Array.isArray(l))throw Error("V");return new z(w7f(l))};
_.Da.prototype.getExtension=function(z){Jpx(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z.fieldIndex);VMH(this,z.fieldIndex);return z.ctor?z.isRepeated?z.getExtensionFn(this,z.ctor,z.fieldIndex,_.g1(),z.JSC$8876_hasMessageId):z.getExtensionFn(this,z.ctor,z.fieldIndex,z.JSC$8876_hasMessageId):z.isRepeated?z.getExtensionFn(this,z.fieldIndex,_.g1(),z.JSC$8876_hasMessageId):z.getExtensionFn(this,z.fieldIndex,z.defaultValue,z.JSC$8876_hasMessageId)};
_.Da.prototype.clone=function(){var z=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=z[_.D4]|0;return K0f(this,z,l)?mKQ(this,z,!0):new this.constructor(r4(z,l,!1))};
_.Da.prototype[ty]=BX;_.Da.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var MZ=function(z,l,I){this.$$binaryReaderFn=z;this.$$binaryWriterFn=l;z=Fq(Ay7);this.$$isMsg=!!z&&I===z||!1},Jyp=W0S(function(z,l,I,b,v){if(z.nextWireType_!==2)return!1;
LO(z,Cnp(l,b,I),v);return!0},UKH),zZ$=W0S(function(z,l,I,b,v){if(z.nextWireType_!==2)return!1;
LO(z,Cnp(l,b,I),v);return!0},UKH),ZDQ=Symbol(),bD1=Symbol(),pQ$=Symbol(),faG=Symbol(),GTQ=Symbol(),aFk,VWH;var hZf,b$1,Vk,vLQ,MtS,pI5,D27,JO,x2Y,zn,O$p,gL7,Glu,N$Y,ELt,unx,Z$G,yhG,fMS,Cy7,klk;hZf=function(z,l){var I=new $6t;C8k(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,pD(ZDQ,ur$,HDt,l));xR(I,I.encoder_.end());z=new Uint8Array(I.totalLength_);l=I.blocks_;for(var b=l.length,v=0,M=0;M<b;M++){var x=l[M];z.set(x,v);v+=x.length}I.blocks_=[z];return z};
b$1=W0S(function(z,l,I,b,v){if(z.nextWireType_!==2)return!1;z=LO(z,s8([void 0,void 0],b,!0),v);b=l[_.D4]|0;v=T_(b);if(b&2)throw Error();var M=jW(l,I,v);M instanceof qK?(M.arrayState&2)!=0?(M=kct(M),M.push(z),nl(l,b,I,M,v)):(l=M,I=l.keyToApi(z[0],!1,!0),z=z[1],z=l.valueCtor?z===void 0?null:z:l.valueToApi(z,!1,!0,void 0,!1,l.arrayState),SW.prototype.set.call(l,I,z)):Array.isArray(M)?((M[_.D4]|0)&2&&(M=ilG(M),nl(l,b,I,M,v)),M.push(z)):nl(l,b,I,[z],v);return!0},function(z,l,I,b,v){if(l instanceof qK)l.forEach(function(g,
G){nSf(z,I,s8([G,
g],b,!1),v)});
else if(Array.isArray(l))for(var M=0;M<l.length;M++){var x=l[M];Array.isArray(x)&&nSf(z,I,s8(x,b,!1),v)}});
Vk=_.g0(function(z,l,I){if(z.nextWireType_!==1)return!1;_.GT(l,I,qOp(z.decoder_));return!0},tA1,z_u);
vLQ=_.g0(function(z,l,I,b){if(z.nextWireType_!==1)return!1;_.iI(l,I,b,qOp(z.decoder_));return!0},tA1,z_u);
MtS=_.g0(function(z,l,I){if(z.nextWireType_!==5)return!1;_.GT(l,I,XaQ(z.decoder_));return!0},B0$,JIk);
pI5=_.K7p(function(z,l,I){if(z.nextWireType_!==5&&z.nextWireType_!==2)return!1;l=_.l8(l,l[_.D4]|0,I);z.nextWireType_==2?_.d6f(z,XaQ,l):l.push(XaQ(z.decoder_));return!0},function(z,l,I){l=_.mZk(_.nn,l,!0);
if(l!=null&&l.length)for(_.NZ(z,I,2),HQ(z.encoder_,l.length*4),I=0;I<l.length;I++){var b=z.encoder_;v0S(l[I]);_.Ev(b,o_)}},JIk);
D27=_.g0(function(z,l,I,b){if(z.nextWireType_!==5)return!1;_.iI(l,I,b,XaQ(z.decoder_));return!0},B0$,JIk);
_.jy=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,_.AO(z.decoder_,rw));return!0},_.Za,_.aX);
JO=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;z=_.AO(z.decoder_,rw);_.GT(l,I,z===0?void 0:z);return!0},_.Za,_.aX);
x2Y=_.g0(function(z,l,I,b){if(z.nextWireType_!==0)return!1;_.iI(l,I,b,_.AO(z.decoder_,rw));return!0},_.Za,_.aX);
zn=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,_.AO(z.decoder_,MMf));return!0},function(z,l,I){l=Sjx(l);
if(l!=null&&(wXQ(l),l!=null))switch(_.NZ(z,I,0),typeof l){case "number":z=z.encoder_;hp(l);u8(z,o_,P_);break;case "bigint":I=PnS(l);u8(z.encoder_,I.JSC$8861_lo,I.JSC$8861_hi);break;default:I=e11(l),u8(z.encoder_,I.JSC$8861_lo,I.JSC$8861_hi)}},a25);
_.l2=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,_.Wx(z.decoder_));return!0},iDQ,nt5);
O$p=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;z=_.Wx(z.decoder_);_.GT(l,I,z===0?void 0:z);return!0},iDQ,nt5);
gL7=_.g0(function(z,l,I,b){if(z.nextWireType_!==0)return!1;_.iI(l,I,b,_.Wx(z.decoder_));return!0},iDQ,nt5);
Glu=_.g0(function(z,l,I){if(z.nextWireType_!==1)return!1;_.GT(l,I,BRp(z.decoder_));return!0},_.Qu$,_.jMt);
N$Y=_.K7p(function(z,l,I){if(z.nextWireType_!==1&&z.nextWireType_!==2)return!1;l=_.l8(l,l[_.D4]|0,I);z.nextWireType_==2?_.d6f(z,BRp,l):l.push(BRp(z.decoder_));return!0},function(z,l,I){l=_.mZk(Sjx,l,!1);
if(l!=null)for(var b=0;b<l.length;b++)F7p(z,I,l[b])},_.jMt);
_.Iq=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,iWQ(z.decoder_));return!0},Yvu,AIQ);
_.b2=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;z=iWQ(z.decoder_);_.GT(l,I,z===!1?void 0:z);return!0},Yvu,AIQ);
ELt=_.g0(function(z,l,I,b){if(z.nextWireType_!==0)return!1;_.iI(l,I,b,iWQ(z.decoder_));return!0},Yvu,AIQ);
_.vc=_.g0(function(z,l,I){if(z.nextWireType_!==2)return!1;_.GT(l,I,cI$(z));return!0},cT5,Wcf);
_.Mi=_.g0(function(z,l,I){if(z.nextWireType_!==2)return!1;z=cI$(z);_.GT(l,I,z===""?void 0:z);return!0},cT5,Wcf);
_.pN=_.g0(function(z,l,I,b){if(z.nextWireType_!==2)return!1;_.iI(l,I,b,cI$(z));return!0},cT5,Wcf);
unx=_.K7p(function(z,l,I){if(z.nextWireType_!==2)return!1;z=cI$(z);_.l8(l,l[_.D4]|0,I).push(z);return!0},function(z,l,I){l=_.mZk(_.m0,l,!0);
if(l!=null)for(var b=0;b<l.length;b++){var v=z,M=I,x=l[b];x!=null&&T0x(v,M,v5p(x))}},Wcf);
Z$G=void 0;Z$G=Z$G===void 0?Ay7:Z$G;_.Db=new MZ(function(z,l,I,b,v){if(z.nextWireType_!==2)return!1;b=s8(void 0,b,!0);_.l8(l,l[_.D4]|0,I).push(b);LO(z,b,v);return!0},function(z,l,I,b,v){if(Array.isArray(l))for(var M=0;M<l.length;M++)Sv7(z,l[M],I,b,v)},Z$G);
_.xA=W0S(function(z,l,I,b,v,M){if(z.nextWireType_!==2)return!1;var x=l[_.D4]|0;T45(l,x,M,I,T_(x));l=Cnp(l,b,I);LO(z,l,v);return!0},Sv7);
_.H$t=_.g0(function(z,l,I){if(z.nextWireType_!==2)return!1;_.GT(l,I,_.SO5(z));return!0},_.dZS,_.lMx);
yhG=_.g0(function(z,l,I,b){if(z.nextWireType_!==2)return!1;_.iI(l,I,b,_.SO5(z));return!0},_.dZS,_.lMx);
fMS=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,_.Wx(z.decoder_)>>>0);return!0},oRu,Lcu);
Cy7=_.g0(function(z,l,I,b){if(z.nextWireType_!==0)return!1;_.iI(l,I,b,_.Wx(z.decoder_)>>>0);return!0},oRu,Lcu);
_.Oz=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,_.Wx(z.decoder_));return!0},_.P8Y,_.IM5);
_.gy=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;z=_.Wx(z.decoder_);_.GT(l,I,z===0?void 0:z);return!0},_.P8Y,_.IM5);
klk=_.g0(function(z,l,I){if(z.nextWireType_!==0)return!1;_.GT(l,I,_.AO(z.decoder_,DzS));return!0},function(z,l,I){l=cpu(l);
if(l!=null&&($K5(l),l!=null))switch(_.NZ(z,I,0),typeof l){case "number":z=z.encoder_;I=l;l=I<0;I=Math.abs(I)*2;l4$(I);I=o_;var b=P_;l&&(I==0?b==0?b=I=4294967295:(b--,I=4294967295):I--);o_=I;P_=b;u8(z,o_,P_);break;case "bigint":z=z.encoder_;l=l<<BigInt(1)^l>>BigInt(63);o_=Number(BigInt.asUintN(32,l));P_=Number(BigInt.asUintN(32,l>>BigInt(32)));u8(z,o_,P_);break;default:rIS(z.encoder_,l)}},VQ7);var KCS=function(){var z=R_Q,l=m2p;this.fieldIndex=175237375;this.ctor=l;this.isRepeated=0;this.getExtensionFn=_.gi;this.defaultValue=void 0;this.JSC$8876_hasMessageId=z.messageId!=null?Qu:void 0};
KCS.prototype.register=function(){uI(this)};var ttY=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(ttY,_.Da);var B$H=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(B$H,_.Da);var AT7=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(AT7,_.Da);var XI7=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(XI7,_.Da);var qJ5=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(qJ5,_.Da);var i$Q=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(i$Q,_.Da);var FCp=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(FCp,_.Da);FCp.prototype.getData=function(){return _.q5(this,2)};var Qkk=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Qkk,_.Da);var YJk=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(YJk,_.Da);YJk.prototype.getStyle=function(){return _.gi(this,ttY,1)};var KD=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(KD,_.Da);KD.prototype.getPayloadCase=function(){return _.Fl(this,qZ)};
KD.prototype.getStyle=function(){return _.rG(this,YJk,6,qZ)};
var T$k=function(){var z=new KD,l=new qJ5;return _.Xr(z,7,qZ,l)},chG=function(){var z=new KD,l=new i$Q;
return _.Xr(z,8,qZ,l)},qZ=[1,
2,3,4,5,6,7,8];var SJ7=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(SJ7,_.Da);var d2t=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(d2t,_.Da);var oL1=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(oL1,_.Da);var Py1=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Py1,_.Da);var h_H=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(h_H,_.Da);var skY=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(skY,_.Da);var rhQ=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(rhQ,_.Da);var $2G=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m($2G,_.Da);$2G.prototype.getData=function(){return _.q5(this,2)};var e_Y=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(e_Y,_.Da);var wQf=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(wQf,_.Da);wQf.prototype.getPayloadCase=function(){return _.Fl(this,Gn)};
var Gn=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ni=function(z,l){z=Error.call(this,z);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=l===void 0?2:l};
_.m(Ni,Error);var wIS=Promise;var Ah$=function(z){this.channelPromise=z};
Ah$.prototype.send=function(z,l,I){this.channelPromise.then(function(b){b.send(z,l,I)})};var WCS=function(z,l){this.data=z;this.channel=l};
WCS.prototype.reply=function(z,l,I){this.channel.send(z,l,I)};var nLG=function(z){this.JSC$8942_port_=z};
nLG.prototype.send=function(z,l,I){I=I===void 0?[]:I;var b=new MessageChannel;LCY(b.port1,l);this.JSC$8942_port_.postMessage(z,[b.port2].concat(I))};
var U2p=function(z,l){LCY(z,l);return new nLG(z)},LCY=function(z,l){l&&(z.onmessage=function(I){l(new WCS(I.data,U2p(I.ports[0])))})};var aMx=function(z){this.verifier_=z};
aMx.prototype.verify=function(z){return this.verifier_(z)};
var Vtp=function(z){var l=Object.create(null);(typeof z==="string"?[z]:z).forEach(function(I){if(I==="null")throw Error("X");l[I]=!0});
return function(I){return l[I]===!0}};_.jkt=function(){if(!_.v7.addEventListener||!Object.defineProperty)return!1;var z=!1,l=Object.defineProperty({},"passive",{get:function(){z=!0}});
try{var I=function(){};
_.v7.addEventListener("test",I,l);_.v7.removeEventListener("test",I,l)}catch(b){}return z}();var Jhf;_.Ez=function(z){var l=z.destination;var I=z.iframe;var b=z.origin;var v=z.channelName===void 0?"ZNWN1d":z.channelName;var M=z.onMessage===void 0?void 0:z.onMessage;z=z.onEstablished===void 0?void 0:z.onEstablished;return Jhf({destination:l,getSource:function(){return I.contentWindow},
originVerifier:b instanceof aMx?b:typeof b==="function"?new aMx(b):new aMx(Vtp(b)),channelName:v,onMessage:M,onEstablished:z})};
Jhf=function(z){var l=z.destination;var I=z.getSource;var b=z.originVerifier;var v=z.token===void 0?void 0:z.token;var M=z.channelName;var x=z.onMessage===void 0?void 0:z.onMessage;var g=z.onEstablished===void 0?void 0:z.onEstablished;return new Ah$(new wIS(function(G,u){var Z=function(H){H.source&&H.source===I()&&b.verify(H.origin)&&(H.data.n||H.data)===M&&(l.removeEventListener("message",Z,!1),v&&H.data.t!==v?u(Error("Y`"+M+"`"+v+"`"+H.data.t)):(G(U2p(H.ports[0],x)),g&&g(H)))};
l.addEventListener("message",Z,!1)}))};var zQA=function(z){try{z()}catch(l){Mp(l)}};var IS0=function(z){var l=this;var I=z.getMessageType;var b=z.onUnregisteredMessage===void 0?function(){}:z.onUnregisteredMessage;
var v=z.onBeforeRegisteredMessage===void 0?function(){}:z.onBeforeRegisteredMessage;
z=z.onAfterRegisteredMessage===void 0?function(){}:z.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=b;this.onBeforeRegisteredMessage_=v;this.onAfterRegisteredMessage_=z;this.onMessage=function(M){return lSp(l,M)}};
IS0.prototype.register=function(z,l){this.registry_.set(z,l);return this};
var lSp=function(z,l){var I=z.getMessageType_(l.data),b=z.registry_.get(I);b?(zQA(function(){return z.onBeforeRegisteredMessage_(l,I)}),zQA(function(){return b(l)}),zQA(function(){return z.onAfterRegisteredMessage_(l,I)})):zQA(function(){return z.onUnregisteredMessage_(l,I)})};var buu=function(z){this.JSC$8959_channel_=z},MxA,p70;
buu.prototype.send=function(z,l,I){this.JSC$8959_channel_.send(d4(z),l,I)};
_.v5z=function(z,l){return function(I){var b=new z(I.data);return l(new WCS(b,I.channel))}};
MxA=function(z){return function(l){return z(new WCS(l.data,new buu(l.channel)))}};
p70=function(z,l){return MxA(_.v5z(z,l))};var Dp_=function(z,l,I,b){this.registry=z;this.delegate=l;this.receiveMessageConstructor=I;this.createInitMessage=b;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},eZu=function(z){var l=new IS0({getMessageType:z.getPayloadCase});
return new Dp_(l,new buu(_.Ez({iframe:z.child,destination:window,origin:z.origin,channelName:z.channelName,onMessage:p70(z.receiveMessageConstructor,l.onMessage)})),z.receiveMessageConstructor,z.createInitMessage)},xpj=function(z,l){z.createInitMessage=l};
Dp_.prototype.send=function(z){if(!this.initialised)throw new Ni("Attempted to send a message before initialisation.");this.delegate.send(z)};
var Ouw=function(z,l){return _.O(function(I){if(!z.initialised)throw new Ni("Attempted to send a message before initialisation.");return I.return(new Promise(function(b){z.delegate.send(l,p70(z.receiveMessageConstructor,b))}))})};
Dp_.prototype.init=function(){var z=this;return _.O(function(l){if(z.initialised)throw new Ni("Attempted to initialise twice. The SDK can only be initialised once.");if(z.createInitMessage!==void 0){var I=z.delegate,b=I.send,v=z.createInitMessage;var M=new B$H;var x=[].concat(_.ht(z.features));M=_.Jy(M,1,x,_.zc);b.call(I,v.call(z,M))}z.initialised=!0;_.qe(l)})};
var u2=function(z,l){if(z.initialised)throw new Ni('Attempted to set up API "'+l+'" after initialisation. All APIs must be set up before initialising the SDK.');z.features.add(l);return z.registry};
_.vP.Object.defineProperties(Dp_.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var g5A=function(z){this.channel=z;this.registered=!1};
g5A.prototype.update=function(z){if(this.channel.isInitialised){if(!this.registered)throw new Ni("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var l=new KD;var I=new XI7;I=_.Zv(I,1,z);l=_.Xr(l,2,qZ,I);this.channel.send(l)}else this.register();this.JSC$8973_audioEnabled=z};
g5A.prototype.register=function(){u2(this.channel,1);this.registered=!0};
g5A.prototype.isAudioEnabled=function(){return this.JSC$8973_audioEnabled};var Gkz=function(z){this.channel=z};
_.p=Gkz.prototype;_.p.onFirstFrameReady=function(z){u2(this.channel,2).register(11,function(l){l=_.rG(l.data,SJ7,11,Gn);if(!l)throw new Ni("Unexpectedly nonexistent GameFirstFrameReadyEvent");z(_.oX(l,1))})};
_.p.onReady=function(z){u2(this.channel,2).register(4,function(l){l=_.rG(l.data,oL1,4,Gn);if(!l)throw new Ni("Unexpectedly nonexistent GameReadyEvent");z(_.oX(l,1))})};
_.p.onLevelComplete=function(z){u2(this.channel,2).register(5,function(l){l=_.rG(l.data,Py1,5,Gn);if(!l)throw new Ni("Unexpectedly nonexistent LevelCompleteEvent");z(_.oX(l,1),_.Gz(l,2))})};
_.p.onGameOver=function(z){u2(this.channel,2).register(6,function(l){l=_.rG(l.data,d2t,6,Gn);if(!l)throw new Ni("Unexpectedly nonexistent GameOverEvent");z(_.oX(l,1))})};
_.p.pause=function(){var z=this;if(!this.channel.isInitialised)return u2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ni("Using unregistered Game Feature: pause.");var l=T$k();return new Promise(function(I){return _.O(function(b){if(b.nextAddress==1)return b.yield(Ouw(z.channel,l),2);I();_.qe(b)})})};
_.p.resume=function(){var z=this;if(!this.channel.isInitialised)return u2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ni("Using unregistered Game Feature: resume.");var l=chG();return new Promise(function(I){return _.O(function(b){if(b.nextAddress==1)return b.yield(Ouw(z.channel,l),2);I();_.qe(b)})})};var Nfp=function(z){this.channel=z};
Nfp.prototype.onReady=function(z){u2(this.channel,5).register(8,function(l){if(!_.rG(l.data,h_H,8,Gn))throw new Ni("Unexpectedly nonexistent PageReadyEvent");z()})};var E5M=function(z){this.channel=z};
E5M.prototype.onChange=function(z){u2(this.channel,3).register(7,function(l){l=_.rG(l.data,skY,7,Gn);if(!l)throw new Ni("Unexpectedly nonexistent ScoreEvent");z(_.oX(l,1),_.Gz(l,2))})};var ut0={load:function(){throw new Ni("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ni("Storage used, but storage.onSave() listener not set!");}},Zun=function(z){this.channel=z;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Hu_=function(z){u2(z.channel,4).register(2,ut0.load).register(3,ut0.save);
z.initialSetupDone=!0};
Zun.prototype.onLoad=function(z){this.initialSetupDone||Hu_(this);this.loadRegistered||(this.loadRegistered=!0,u2(this.channel,4).register(2,function(l){var I,b,v;return _.O(function(M){if(M.nextAddress==1){I=_.rG(l.data,rhQ,2,Gn);if(!I)throw new Ni("Unexpectedly nonexistent StorageLoad");b=_.oX(I,1);return M.yield(z(b),2)}v=M.yieldResult;var x=l.reply,g=new KD;var G=new FCp;G=_.Th(G,1,b);G=_.NW(G,2,_.iu(v,!1));g=_.Xr(g,3,qZ,G);x.call(l,g);_.qe(M)})}))};
Zun.prototype.onSave=function(z){this.initialSetupDone||Hu_(this);this.saveRegistered||(this.saveRegistered=!0,u2(this.channel,4).register(3,function(l){var I,b,v;return _.O(function(M){if(M.nextAddress==1){I=_.rG(l.data,$2G,3,Gn);if(!I)throw new Ni("Unexpectedly nonexistent StorageSave");b=_.oX(I,1);v=vt1(I.getData());return M.yield(z(b,v),2)}var x=l.reply,g=new KD;var G=new Qkk;G=_.Th(G,1,b);g=_.Xr(g,4,qZ,G);x.call(l,g);_.qe(M)})}))};var yG_=function(z){this.channel=z};
yG_.prototype.update=function(z){if(!this.channel.features.has(6))throw new Ni("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var l=new KD,I=new YJk;z=_.tT(I,1,z);l=_.Xr(l,6,qZ,z);this.channel.send(l)};
yG_.prototype.register=function(){u2(this.channel,6)};var fS4=function(z){this.channel=z;this.userActivityLoggingIntervalMs=0};
fS4.prototype.onUserActivity=function(z,l){this.userActivityLoggingIntervalMs=l;u2(this.channel,7).register(9,function(I){if(!_.rG(I.data,e_Y,9,Gn))throw new Ni("Unexpectedly nonexistent ClickEvent");z()})};var CHA=function(z){var l=this;this.channel=z;this.init=this.channel.init.bind(this.channel);this.page=new Nfp(this.channel);this.game=new Gkz(this.channel);this.audio=new g5A(this.channel);this.score=new E5M(this.channel);this.storage=new Zun(this.channel);this.style=new yG_(this.channel);this.userActivity=new fS4(this.channel);xpj(this.channel,function(I){var b=new AT7;I=_.tT(b,1,I);I=_.$x(I,3,l.userActivity.userActivityLoggingIntervalMs);b=l.audio.isAudioEnabled();b!==void 0&&_.Zv(I,2,b);b=new KD;
return _.Xr(b,5,qZ,I)})};var kkj=function(){this.timedFunctionContext=0};
kkj.prototype.timeExecution=function(z,l){var I=this;return function(){var b=_.AT.apply(0,arguments);I.timedFunctionContext=z;return l.apply(null,_.ht(b))}};var RQM=function(){var z={};this.priorityTasks=(z[3]=[],z[2]=[],z[1]=[],z);this.isFlushing=!1},K7=function(z,l,I){var b=mpu(z,I);
z.priorityTasks[I].push(l);b&&z.priorityTasks[I].length===1&&z.flush()},mpu=function(z,l){return Object.keys(z.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>l}).every(function(I){return z.priorityTasks[I].length===0})};
RQM.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(z){return z.length>0});)KQ0(this,3),KQ0(this,2),KQ0(this,1)}catch(z){throw Object.values(this.priorityTasks).forEach(function(l){return void l.splice(0,l.length)}),z;
}finally{this.isFlushing=!1}}};
var KQ0=function(z,l){for(;mpu(z,l)&&z.priorityTasks[l].length>0;)z.priorityTasks[l][0](),z.priorityTasks[l].shift()};
_.vP.Object.defineProperties(RQM.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(z){return z.length>0})}}});var juQ={};var txu=globalThis.trustedTypes,nRu=txu,UZ1;var Fr=function(z){this.privateDoNotAccessOrElseWrappedResourceUrl=z};
Fr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Bf0,X7A,qYA,iu_,FQ_,Q1j,YYw,Tf_;Bf0=_.zs([""]);X7A=Jf(["\x00"],["\\0"]);qYA=Jf(["\n"],["\\n"]);iu_=Jf(["\x00"],["\\u0000"]);FQ_=_.zs([""]);Q1j=Jf(["\x00"],["\\0"]);YYw=Jf(["\n"],["\\n"]);Tf_=Jf(["\x00"],["\\u0000"]);_.cGI=VAQ(function(z){return z(Bf0)})||VAQ(function(z){return z(X7A)})||VAQ(function(z){return z(qYA)})||VAQ(function(z){return z(iu_)});
_.SYj=_.cQ(FQ_)&&_.cQ(Q1j)&&_.cQ(YYw)&&_.cQ(Tf_);var $R;_.SA=function(z,l){this.privateDoNotAccessOrElseWrappedUrl=l};
_.SA.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.dpu=d0("about:blank");$R=d0("about:invalid#zClosurez");var JTH=function(z){this.isValid=z},o5j=new JTH(function(z){return/^[^:]*([/?#]|$)/.test(z)}),PHu=sv("data"),hQu=sv("http"),s1w=sv("https"),rG0=sv("ftp"),$pu=sv("mailto"),eQu=sv("intent"),w7w=sv("vnd.youtube"),zPx=[PHu,
hQu,s1w,$pu,rG0,o5j],I1G=i8(function(){return typeof URL==="function"}),AGA=["data:",
"http:","https:","mailto:","ftp:"],vdk=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var LD=function(z){this.privateDoNotAccessOrElseWrappedHtml=z};
LD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var HpG=i8(function(){return new LD(txu?txu.emptyHTML:"")});var WQ4={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"},p0k=function(z,l){var I=Error.call(this,z+" cannot be used with intent "+WQ4[l]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=z;this.intent=l;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.m(p0k,Error);_.IL=function(z){this.privateDoNotAccessOrElseWrappedScript=z};
_.IL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var gdu=function(z){this.privateDoNotAccessOrElseWrappedAttributePrefix=z};
gdu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var GgQ="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var gH=function(z){this.privateDoNotAccessOrElseWrappedStyleSheet=z};
gH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Q0Q=function(z){var l=_.W8("window.location.href");z==null&&(z='Unknown Error of type "null/undefined"');if(typeof z==="string")return{message:z,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};var I=!1;try{var b=z.lineNumber||z.line||"Not available"}catch(x){b="Not available",I=!0}try{var v=z.fileName||z.filename||z.sourceURL||_.v7.$googDebugFname||l}catch(x){v="Not available",I=!0}l=n5u(z);if(!(!I&&z.lineNumber&&z.fileName&&z.stack&&z.message&&z.name)){I=z.message;
if(I==null){if(z.constructor&&z.constructor instanceof Function){if(z.constructor.name)I=z.constructor.name;else if(I=z.constructor,Zb[I])I=Zb[I];else{I=String(I);if(!Zb[I]){var M=/function\s+([^\(]+)/m.exec(I);Zb[I]=M?M[1]:"[Anonymous]"}I=Zb[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof z.toString==="function"&&Object.prototype.toString!==z.toString&&(I+=": "+z.toString())}return{message:I,name:z.name||"UnknownError",lineNumber:b,fileName:v,stack:l||"Not available"}}return{message:z.message,
name:z.name,lineNumber:z.lineNumber,fileName:z.fileName,stack:l}},n5u=function(z,l){l||(l={});
l[LQ0(z)]=!0;var I=z.stack||"",b=z.cause;b&&!l[LQ0(b)]&&(I+="\nCaused by: ",b.stack&&b.stack.indexOf(b.toString())==0||(I+=typeof b==="string"?b:b.message+"\n"),I+=n5u(b,l));z=z.errors;if(Array.isArray(z)){b=1;var v;for(v=0;v<z.length&&!(b>4);v++)l[LQ0(z[v])]||(I+="\nInner error "+b++ +": ",z[v].stack&&z[v].stack.indexOf(z[v].toString())==0||(I+=typeof z[v]==="string"?z[v]:z[v].message+"\n"),I+=n5u(z[v],l));v<z.length&&(I+="\n... "+(z.length-v)+" more inner errors")}return I},LQ0=function(z){var l=
"";
typeof z.toString==="function"&&(l=""+z);return l+z.stack},Zb={};var Up_,vV,CY,Vx_,j1p,aSI,L0,LQ,zIz;Up_=function(z,l){for(var I=z.split("%s"),b="",v=Array.prototype.slice.call(arguments,1);v.length&&I.length>1;)b+=I.shift()+v.shift();return b+I.join("%s")};
_.LP=function(z){return encodeURIComponent(String(z))};
vV=function(z){return decodeURIComponent(z.replace(/\+/g," "))};
CY=function(z){CNH.test(z)&&(z.indexOf("&")!=-1&&(z=z.replace(EcQ,"&amp;")),z.indexOf("<")!=-1&&(z=z.replace(u_u,"&lt;")),z.indexOf(">")!=-1&&(z=z.replace(Z_1,"&gt;")),z.indexOf('"')!=-1&&(z=z.replace(H_x,"&quot;")),z.indexOf("'")!=-1&&(z=z.replace(yDu,"&#39;")),z.indexOf("\x00")!=-1&&(z=z.replace(f5H,"&#0;")));return z};
Vx_=function(z){var l={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.v7.document.createElement("div");return z.replace(aSI,function(b,v){var M=l[b];if(M)return M;v.charAt(0)=="#"&&(v=Number("0"+v.slice(1)),isNaN(v)||(M=String.fromCharCode(v)));M||(_.p4(I,au(b+" ")),M=I.firstChild.nodeValue.slice(0,-1));return l[b]=M})};
j1p=function(z){return z.replace(/&([^;]+);/g,function(l,I){switch(I){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return I.charAt(0)!="#"||(I=Number("0"+I.slice(1)),isNaN(I))?l:String.fromCharCode(I)}})};
aSI=/&([^;\s<&]+);?/g;_.xRQ=function(z){return String(z).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.JGu=String.prototype.repeat?function(z,l){return z.repeat(l)}:function(z,l){return Array(l+1).join(z)};
_.Hc=function(z,l){if(!Number.isFinite(z))return String(z);z=String(z);var I=z.indexOf(".");I===-1&&(I=z.length);var b=z[0]==="-"?"-":"";b&&(z=z.substring(1));return b+(0,_.JGu)("0",Math.max(0,l-I))+z};
L0=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.gG()).toString(36)};
LQ=function(z){for(var l=0,I=0;I<z.length;++I)l=31*l+z.charCodeAt(I)>>>0;return l};
_.t8=function(z){return String(z).replace(/\-([a-z])/g,function(l,I){return I.toUpperCase()})};
_.KQ=function(z){return String(z).replace(/([A-Z])/g,"-$1").toLowerCase()};
zIz=function(z){return z.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,I,b){return I+b.toUpperCase()})};var l4u=function(){this.names=new Map};
l4u.prototype.getName=function(z){var l=this.names.get(z);if(l)return l;var I;l=(I=z.description)!=null?I:L0();this.names.set(z,l);return l};var I4A=function(z){var l=Error.call(this,z?z.length+" errors occurred during unsubscription:\n"+z.map(function(I,b){return b+1+") "+I.toString()}).join("\n  "):"");
this.message=l.message;"stack"in l&&(this.stack=l.stack);this.errors=z;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.m(I4A,Error);var Ne=function(z){this.initialTeardown=z;this.closed=!1;this._teardowns=this._parentage=null};
_.p=Ne.prototype;
_.p.unsubscribe=function(){if(!this.closed){this.closed=!0;var z=this._parentage;if(Array.isArray(z))for(var l=_.D(z),I=l.next();!I.done;I=l.next())I.value.remove(this);else z==null||z.remove(this);l=this.initialTeardown;if(Gg(l))try{l()}catch(M){var b=M instanceof I4A?M.errors:[M]}var v=this._teardowns;if(v)for(this._teardowns=null,l=_.D(v),I=l.next();!I.done;I=l.next()){I=I.value;try{Gg(I)?I():I.unsubscribe()}catch(M){I=void 0,b=(I=b)!=null?I:[],M instanceof I4A?b=[].concat(_.ht(b),_.ht(M.errors)):
b.push(M)}}if(b)throw new I4A(b);}};
_.p.add=function(z){if(z&&z!==this)if(this.closed)Gg(z)?z():z.unsubscribe();else{if(z instanceof Ne){if(z.closed||z._hasParent(this))return;z._addParent(this)}var l;(this._teardowns=(l=this._teardowns)!=null?l:[]).push(z)}};
_.p._hasParent=function(z){var l=this._parentage;return l===z||Array.isArray(l)&&l.includes(z)};
_.p._addParent=function(z){var l=this._parentage;this._parentage=Array.isArray(l)?(l.push(z),l):l?[l,z]:z};
_.p._removeParent=function(z){var l=this._parentage;l===z?this._parentage=null:Array.isArray(l)&&Z4H(l,z)};
_.p.remove=function(z){var l=this._teardowns;l&&Z4H(l,z);z instanceof Ne&&z._removeParent(this)};
var bn0=new Ne;bn0.closed=!0;Ne.JSC$9069_EMPTY=bn0;var ytt=function(){setTimeout.apply(null,_.ht(_.AT.apply(0,arguments)))};var yl=function(z){Ne.call(this);this.JSC$9074_isStopped=!1;this.destination=z instanceof yl?z:new fN(!z||Gg(z)?{next:z!=null?z:void 0}:z);H4u(z)&&z.add(this)};
_.m(yl,Ne);yl.JSC$9069_EMPTY=Ne.JSC$9069_EMPTY;yl.create=function(z,l,I){return new CN(z,l,I)};
_.p=yl.prototype;_.p.next=function(z){this.JSC$9074_isStopped||this._next(z)};
_.p.error=function(z){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._error(z))};
_.p.complete=function(){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._complete())};
_.p.unsubscribe=function(){this.closed||(this.JSC$9074_isStopped=!0,Ne.prototype.unsubscribe.call(this))};
_.p._next=function(z){this.destination.next(z)};
_.p._error=function(z){this.destination.error(z);this.unsubscribe()};
_.p._complete=function(){this.destination.complete();this.unsubscribe()};
var fN=function(z){this.partialObserver=z};
fN.prototype.next=function(z){var l=this.partialObserver;if(l.next)try{l.next(z)}catch(I){ut(I)}};
fN.prototype.error=function(z){var l=this.partialObserver;if(l.error)try{l.error(z)}catch(I){ut(I)}else ut(z)};
fN.prototype.complete=function(){var z=this.partialObserver;if(z.complete)try{z.complete()}catch(l){ut(l)}};
var CN=function(z,l,I){yl.call(this);var b;Gg(z)||!z?b={next:z!=null?z:void 0,error:l!=null?l:void 0,complete:I!=null?I:void 0}:b=z;this.destination=new fN(b)};
_.m(CN,yl);CN.JSC$9069_EMPTY=yl.JSC$9069_EMPTY;CN.create=yl.create;var f4=typeof Symbol==="function"&&Symbol.observable||"@@observable";var yZ=function(z){z&&(this._subscribe=z)};
_.p=yZ.prototype;_.p.lift=function(z){var l=new yZ;l.source=this;l.operator=z;return l};
_.p.subscribe=function(z,l,I){z=z&&z instanceof yl||z&&Gg(z.next)&&Gg(z.error)&&Gg(z.complete)&&H4u(z)?z:new CN(z,l,I);l=this.operator;I=this.source;z.add(l?l.call(z,I):I?this._subscribe(z):this._trySubscribe(z));return z};
_.p._trySubscribe=function(z){try{return this._subscribe(z)}catch(l){z.error(l)}};
_.p.forEach=function(z,l){var I=this;l=Ct$(l);return new l(function(b,v){var M=I.subscribe(function(x){try{z(x)}catch(g){v(g),M==null||M.unsubscribe()}},v,b)})};
_.p._subscribe=function(z){var l;return(l=this.source)==null?void 0:l.subscribe(z)};
yZ.prototype[f4]=function(){return this};
yZ.prototype.pipe=function(){var z=_.AT.apply(0,arguments);return z.length?f1Q(z)(this):this};
yZ.create=function(z){return new yZ(z)};var v04=function(){var z=Error.call(this,"object unsubscribed");this.message=z.message;"stack"in z&&(this.stack=z.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.m(v04,Error);var kq=function(){this.observers=[];this.hasError=this.JSC$9090_isStopped=this.closed=!1;this.thrownError=null};
_.m(kq,yZ);_.p=kq.prototype;_.p.lift=function(z){var l=new kA(this,this);l.operator=z;return l};
_.p._throwIfClosed=function(){if(this.closed)throw new v04;};
_.p.next=function(z){this._throwIfClosed();if(!this.JSC$9090_isStopped){var l=this.observers.slice();l=_.D(l);for(var I=l.next();!I.done;I=l.next())I.value.next(z)}};
_.p.error=function(z){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.hasError=this.JSC$9090_isStopped=!0;this.thrownError=z;for(var l=this.observers;l.length;)l.shift().error(z)}};
_.p.complete=function(){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.JSC$9090_isStopped=!0;for(var z=this.observers;z.length;)z.shift().complete()}};
_.p.unsubscribe=function(){this.JSC$9090_isStopped=this.closed=!0;this.observers=null};
_.p._trySubscribe=function(z){this._throwIfClosed();return yZ.prototype._trySubscribe.call(this,z)};
_.p._subscribe=function(z){this._throwIfClosed();this._checkFinalizedStatuses(z);return this._innerSubscribe(z)};
_.p._innerSubscribe=function(z){var l=this,I=this.JSC$9090_isStopped,b=this.observers;return this.hasError||I?Ne.JSC$9069_EMPTY:(b.push(z),new Ne(function(){return Z4H(l.observers,z)}))};
_.p._checkFinalizedStatuses=function(z){var l=this.thrownError,I=this.JSC$9090_isStopped;this.hasError?z.error(l):I&&z.complete()};
kq.create=function(z,l){return new kA(z,l)};
var kA=function(z,l){kq.call(this);this.destination=z;this.source=l};
_.m(kA,kq);kA.create=kq.create;kA.prototype.next=function(z){var l,I;(l=this.destination)==null||(I=l.next)==null||I.call(l,z)};
kA.prototype.error=function(z){var l,I;(l=this.destination)==null||(I=l.error)==null||I.call(l,z)};
kA.prototype.complete=function(){var z,l;(z=this.destination)==null||(l=z.complete)==null||l.call(z)};
kA.prototype._subscribe=function(z){var l,I;return(I=(l=this.source)==null?void 0:l.subscribe(z))!=null?I:Ne.JSC$9069_EMPTY};var ax=function(z){kq.call(this);this._value=z};
_.m(ax,kq);ax.create=kq.create;ax.prototype._subscribe=function(z){var l=kq.prototype._subscribe.call(this,z);!l.closed&&z.next(this._value);return l};
ax.prototype.getValue=function(){var z=this.thrownError,l=this._value;if(this.hasError)throw z;this._throwIfClosed();return l};
ax.prototype.next=function(z){kq.prototype.next.call(this,this._value=z)};
_.vP.Object.defineProperties(ax.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var wH=new yZ(function(z){return z.complete()});var KX7=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var i4x=function(z){return z&&typeof z.length==="number"&&typeof z!=="function"};var MMw={now:function(){return(MMw.delegate||Date).now()},
delegate:void 0};var p7=function(z,l,I){z=z===void 0?Infinity:z;l=l===void 0?Infinity:l;I=I===void 0?MMw:I;kq.call(this);this.bufferSize=z;this.windowTime=l;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=l===Infinity;this.bufferSize=Math.max(1,z);this.windowTime=Math.max(1,l)};
_.m(p7,kq);p7.create=kq.create;p7.prototype.next=function(z){var l=this.buffer,I=this.infiniteTimeWindow,b=this.timestampProvider,v=this.windowTime;this.JSC$9090_isStopped||(l.push(z),!I&&l.push(b.now()+v));p_w(this);kq.prototype.next.call(this,z)};
p7.prototype._subscribe=function(z){this._throwIfClosed();p_w(this);for(var l=this._innerSubscribe(z),I=this.infiniteTimeWindow,b=this.buffer.slice(),v=0;v<b.length&&!z.closed;v+=I?1:2)z.next(b[v]);this._checkFinalizedStatuses(z);return l};
var p_w=function(z){var l=z.bufferSize,I=z.timestampProvider,b=z.buffer;z=z.infiniteTimeWindow;var v=(z?1:2)*l;l<Infinity&&v<b.length&&b.splice(0,b.length-v);if(!z){l=I.now();I=0;for(z=1;z<b.length&&b[z]<=l;z+=2)I=z;I&&b.splice(0,I+1)}};var xzw=function(z,l){l=l===void 0?Dz4:l;this.schedulerActionCtor=z;this.now=l};
xzw.prototype.schedule=function(z,l,I){l=l===void 0?0:l;return(new this.schedulerActionCtor(this,z)).schedule(I,l)};
var Dz4=MMw.now;var khQ=function(){var z=Error.call(this,"no elements in sequence");this.message=z.message;"stack"in z&&(this.stack=z.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.m(khQ,Error);var SY=function(z,l,I,b,v){yl.call(this,z);this.onUnsubscribe=v;l&&(this._next=function(M){try{l(M)}catch(x){this.destination.error(x)}});
I&&(this._error=function(M){try{I(M)}catch(x){this.destination.error(x)}this.unsubscribe()});
b&&(this._complete=function(){try{b()}catch(M){this.destination.error(M)}this.unsubscribe()})};
_.m(SY,yl);SY.JSC$9069_EMPTY=yl.JSC$9069_EMPTY;SY.create=yl.create;SY.prototype.unsubscribe=function(){var z;this.closed||(z=this.onUnsubscribe)!=null&&z.call(this);yl.prototype.unsubscribe.call(this)};var vR=function(z,l){this.source=z;this.subjectFactory=l;this._subject=null;this._refCount=0;this._connection=null};
_.m(vR,yZ);vR.create=yZ.create;vR.prototype._subscribe=function(z){return Onn(this).subscribe(z)};
var Onn=function(z){var l=z._subject;if(!l||l.JSC$9090_isStopped)z._subject=z.subjectFactory();return z._subject};
vR.prototype._teardown=function(){this._refCount=0;var z=this._connection;this._subject=this._connection=null;z==null||z.unsubscribe()};
vR.prototype.connect=function(){var z=this,l=this._connection;if(!l){l=this._connection=new Ne;var I=Onn(this);l.add(this.source.subscribe(new SY(I,void 0,function(b){z._teardown();I.error(b)},function(){z._teardown();
I.complete()},function(){return z._teardown()})));
l.closed&&(this._connection=null,l=Ne.JSC$9069_EMPTY)}return l};var rtx=Array.isArray;var ePp=Array.isArray,g0A=Object,w0k=g0A.getPrototypeOf,AtQ=g0A.prototype,WXt=g0A.keys;var rH=function(z,l,I){yl.call(this,z);this._next=l;this.shouldComplete=I};
_.m(rH,yl);rH.JSC$9069_EMPTY=yl.JSC$9069_EMPTY;rH.create=yl.create;rH.prototype._complete=function(){this.shouldComplete()?yl.prototype._complete.call(this):this.unsubscribe()};var lCx=["addListener","removeListener"],zxQ=["addEventListener","removeEventListener"],b7p=["on","off"];var Rq=function(){Ne.call(this)};
_.m(Rq,Ne);Rq.JSC$9069_EMPTY=Ne.JSC$9069_EMPTY;Rq.prototype.schedule=function(){return this};var G_w=function(z,l){return setInterval.apply(null,[z,l].concat(_.ht(_.AT.apply(2,arguments))))};var mT=function(z,l){Ne.call(this);this.scheduler=z;this.work=l;this.pending=!1};
_.m(mT,Rq);mT.JSC$9069_EMPTY=Rq.JSC$9069_EMPTY;mT.prototype.schedule=function(z,l){l=l===void 0?0:l;if(this.closed)return this;this.state=z;z=this.id;var I=this.scheduler;z!=null&&(this.id=Nwu(this,z,l));this.pending=!0;this.delay=l;this.id=this.id||this.requestAsyncId(I,this.id,l);return this};
mT.prototype.requestAsyncId=function(z,l,I){I=I===void 0?0:I;return G_w(z.flush.bind(z,this),I)};
var Nwu=function(z,l,I){I=I===void 0?0:I;if(I!=null&&z.delay===I&&z.pending===!1)return l;clearInterval(l)};
mT.prototype.execute=function(z,l){if(this.closed)return Error("ha");this.pending=!1;if(z=this._execute(z,l))return z;this.pending===!1&&this.id!=null&&(this.id=Nwu(this,this.id,null))};
mT.prototype._execute=function(z){var l=!1;try{this.work(z)}catch(b){l=!0;var I=!!b&&b||Error(b)}if(l)return this.unsubscribe(),I};
mT.prototype.unsubscribe=function(){if(!this.closed){var z=this.id,l=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Z4H(l,this);z!=null&&(this.id=Nwu(this,z,null));this.delay=null;Rq.prototype.unsubscribe.call(this)}};var E0A=function(z,l){l=l===void 0?Dz4:l;xzw.call(this,z,l);this.actions=[];this.active=!1;this.scheduled=void 0};
_.m(E0A,xzw);E0A.prototype.flush=function(z){var l=this.actions;if(this.active)l.push(z);else{var I;this.active=!0;do if(I=z.execute(z.state,z.delay))break;while(z=l.shift());this.active=!1;if(I){for(;z=l.shift();)z.unsubscribe();throw I;}}};var ds=new yZ(Eu);var vqu=Array.isArray;var KN=function(z,l){mT.call(this,z,l);this.scheduler=z;this.work=l};
_.m(KN,mT);KN.JSC$9069_EMPTY=mT.JSC$9069_EMPTY;KN.prototype.schedule=function(z,l){l=l===void 0?0:l;if(l>0)return mT.prototype.schedule.call(this,z,l);this.delay=l;this.state=z;this.scheduler.flush(this);return this};
KN.prototype.execute=function(z,l){return l>0||this.closed?mT.prototype.execute.call(this,z,l):this._execute(z,l)};
KN.prototype.requestAsyncId=function(z,l,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?mT.prototype.requestAsyncId.call(this,z,l,I):z.flush(this)};var uAn=function(){E0A.apply(this,arguments)};
_.m(uAn,E0A);var hP$=new uAn(KN);var Znz=function(){this.performanceMonitor=new kkj;this.queue=new RQM;this.internalSymbol=Symbol();this.debugNames=new l4u};
Znz.prototype.getOnBackgrounded=function(){return ds};
_.vP.Object.defineProperties(Znz.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var t5=function(z,l){l=Error.call(this,l?z+": "+l:String(z));this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=z;this.__proto__=t5.prototype;this.name=String(z)};
_.m(t5,Error);var ox=function(z){t5.call(this,1E3,'sfr:"'+z+'"');this.measurementStrategyFailureReason=z;this.__proto__=ox.prototype};
_.m(ox,t5);var PR=function(){t5.call(this,1003);this.__proto__=PR.prototype};
_.m(PR,t5);var Bc=function(){t5.call(this,1009);this.__proto__=Bc.prototype};
_.m(Bc,t5);var Hnw=function(){t5.call(this,1011);this.__proto__=Hnw.prototype};
_.m(Hnw,t5);var yp_=function(){t5.call(this,1007);this.__proto__=PR.prototype};
_.m(yp_,t5);var cR=function(z){t5.call(this,1004,String(z));this.inputObservableIndex=z;this.__proto__=cR.prototype};
_.m(cR,t5);var d4t=function(z){t5.call(this,1010,z);this.__proto__=oNp.prototype};
_.m(d4t,t5);var oNp=function(z){t5.call(this,1005,z);this.__proto__=oNp.prototype};
_.m(oNp,t5);var f40=function(z){var l=_.AT.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(z);l.forEach(function(b){I.orderedFactories.push(b)})};
f40.prototype.isSupported=function(z){return this.orderedFactories.some(function(l){return l.isSupported(z)})};
f40.prototype.makeBeacon=function(z,l){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(l))return this.orderedFactories[I].makeBeacon(z,l);throw new Bc;};var t31=Symbol("ia"),Cuj=Symbol("ja"),Uu=function(z,l){this.value=z;this.timeline=l},L4=function(z,l){if(l.timeline!==z.timeline)throw new yp_;
return z.value-l.value};
_.p=Uu.prototype;_.p.equals=function(z){return L4(this,z)===0};
_.p.maximum=function(z){if(z.timeline!==this.timeline)throw new yp_;return this.value>=z.value?this:z};
_.p.round=function(){return new Uu(Math.round(this.value),this.timeline)};
_.p.add=function(z){return new Uu(this.value+z,this.timeline)};
_.p.toString=function(){return String(this.value)};var qi=function(z,l){this.context=z;this.JSC$9196_pinger=l};
qi.prototype.isSupported=function(z){return this.JSC$9196_pinger.isSupported(z)};
qi.prototype.makeBeacon=function(z,l){if(!this.isSupported(l))throw new Bc;return new i2(this.context,this.JSC$9196_pinger,l!=null?l:void 0,z)};
var i2=function(z,l,I,b){var v=this;this.JSC$9202_pinger=l;this.properties=I;this.url=b;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var M;this.method=(M=I==null?void 0:I.beaconMethod)!=null?M:"GET";this.backgroundedSubscription=z.getOnBackgrounded().subscribe(function(){v.sendNow()})};
i2.prototype.deactivate=function(){this.internalIsPending=!1};
i2.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9202_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var z,l;this.JSC$9202_pinger.pingWithHeadersAndBody((z=this.properties)!=null?z:{},this.customHeaders,(l=this.body)!=null?l:"",this.url)}else this.JSC$9202_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
i2.prototype.setHeader=function(z,l){this.customHeaders.set(z,l)};
_.vP.Object.defineProperties(i2.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var RII=function(){for(var z=_.D(_.AT.apply(0,arguments)),l=z.next();!l.done;l=z.next())if(l=l.value,l.available()){this.timeProvider=l;return}this.timeProvider=new k_p};
_.p=RII.prototype;_.p.available=function(){return this.timeProvider.available()};
_.p.now=function(){return this.timeProvider.now()};
_.p.setTimeout=function(z,l){return this.timeProvider.setTimeout(z,l)};
_.p.clearTimeout=function(z){this.timeProvider.clearTimeout(z)};
_.p.interval=function(z,l){var I=this.intervalObservable(z).subscribe(l);return function(){return void I.unsubscribe()}};
_.p.intervalObservable=function(z){return this.timeProvider.intervalObservable(z)};
_.vP.Object.defineProperties(RII.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var k_p=function(){this.timeline=Symbol()};
_.p=k_p.prototype;_.p.available=function(){return!1};
_.p.now=function(){return new Uu(0,this.timeline)};
_.p.setTimeout=function(){return 0};
_.p.clearTimeout=function(){};
_.p.interval=function(){return function(){}};
_.p.intervalObservable=function(){return ds};var Fz=function(z,l){this.intrinsicFunctionNamespace=z;this.performanceMonitor=l};
_.p=Fz.prototype;_.p.setTimeout=function(z,l){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,z),l)};
_.p.clearTimeout=function(z){this.intrinsicFunctionNamespace.clearTimeout(z)};
_.p.interval=function(z,l){var I=this.intervalObservable(z).subscribe(l);return function(){return void I.unsubscribe()}};
_.p.intervalObservable=function(z){var l=this;return new yZ(function(I){var b=0,v=l.intrinsicFunctionNamespace.setInterval(function(){I.next(b++)},z);
return function(){l.intrinsicFunctionNamespace.clearInterval(v)}})};
_.p.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var mz_=function(z,l){Fz.call(this,z,l);this.timeline=Cuj};
_.m(mz_,Fz);mz_.prototype.now=function(){return new Uu(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
mz_.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Fz.prototype.available.call(this)};var KAz=function(z,l){Fz.call(this,z,l);this.timeline=t31};
_.m(KAz,Fz);KAz.prototype.now=function(){return new Uu(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
KAz.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Fz.prototype.available.call(this)};var Bw_=function(z){this.context=z;if(tMA===void 0)a:{var l,I,b=(l=z.global)==null?void 0:(I=l.document)==null?void 0:I.createElement("meta");if(b)try{b.httpEquiv="origin-trial";b.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";z.global.document.head.append(b);tMA=b;break a}catch(v){}tMA=void 0}},
tMA;
Bw_.prototype.isSupported=function(z){return u5u(this.context)!==void 0&&!(z==null||!z.endOfSession)&&!Ql(this.context)&&!(z==null?0:z.attributionEnabled)&&!(z==null?0:z.customHeaders)&&!(z==null?0:z.customBody)};
Bw_.prototype.makeBeacon=function(z,l){if(!this.isSupported(l))throw new Bc;return new YA(this.context,z,l)};
var YA=function(z,l,I){this.context=z;this.properties=I;this.JSC$9229_urlWithoutToken=l;var b;this.beaconMethod=(b=I==null?void 0:I.beaconMethod)!=null?b:"GET";z=u5u(this.context);if(z===void 0)throw Error();this.fetchLater=z;X_A(this,qjA(this))},X_A=function(z,l){z.beaconResult&&z.beaconResult.activated||(z.beaconAbort=new AbortController,z.beaconResult=z.fetchLater(l,{method:z.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:z.beaconAbort.signal,activateAfter:96E4}))},qjA=function(z){z=z.JSC$9229_urlWithoutToken;
return(z.slice(-1)[0]==="&"?z:z+"&")+"flapi=1"};
YA.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
YA.prototype.sendNow=function(){};
YA.prototype.setHeader=function(){};
_.vP.Object.defineProperties(YA.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9229_urlWithoutToken},
set:function(z){this.JSC$9229_urlWithoutToken=z;z=qjA(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);X_A(this,z)}},
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 inj=function(z){this.context=z};
inj.prototype.isSupported=function(){return!Ql(this.context)&&!!this.context.global.fetch};
inj.prototype.ping=function(){var z=this;return At.apply(null,_.ht(_.AT.apply(0,arguments).map(function(l){return kd(z.context.global.fetch(l,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(P0(function(I){return I.status===200}))}))).pipe(Rx$(function(l){return l}),KHQ())};
inj.prototype.pingWithHeadersAndBody=function(z,l,I){for(var b=_.AT.apply(3,arguments),v=this,M=new Headers,x=_.D(l.entries()),g=x.next();!g.done;g=x.next()){var G=_.D(g.value);g=G.next().value;G=G.next().value;M.set(g,G)}var u,Z=(u=z.keepAlive)!=null?u:!1;At.apply(null,_.ht(b.map(function(H){return kd(v.context.global.fetch(H,Object.assign({},{method:String(z.beaconMethod),cache:"no-cache"},Z?{keepalive:!0}:{},{mode:"no-cors",headers:M,body:I}))).pipe(P0(function(y){return y.status===200}))}))).pipe(Rx$(function(H){return H}),
KHQ())};var FAj,IK5;_.Tn=function(){};
_.df=function(z){return z};
FAj=function(z){var l=l||0;return function(){return z.apply(this,Array.prototype.slice.call(arguments,0,l))}};
_.cc=function(z){var l=!1,I;return function(){l||(I=z(),l=!0);return I}};
_.S1=function(z,l){var I=0;return function(b){_.v7.clearTimeout(I);var v=arguments;I=_.v7.setTimeout(function(){z.apply(void 0,v)},l)}};
IK5=function(z,l){var I=0,b=!1,v=[],M=function(){I=0;b&&(b=!1,x())},x=function(){I=_.v7.setTimeout(M,l);
var g=v;v=[];z.apply(void 0,g)};
return function(g){v=arguments;I?b=!0:x()}};var Yj_=function(){return k5&&mQ?mQ.mobile:!Q_4()&&(tG("iPod")||tG("iPhone")||tG("Android")||tG("IEMobile"))},Q_4=function(){return k5&&mQ?!mQ.mobile&&(tG("iPad")||tG("Android")||tG("Silk")):tG("iPad")||tG("Android")&&!tG("Mobile")||tG("Silk")};var Twz;_.h7={};Twz="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.h7.add=function(z,l,I){if(z!==null&&l in z)throw Error("la`"+l);z[l]=I};
_.h7.clear=function(z){for(var l in z)delete z[l]};
_.h7.clone=function(z){var l={},I;for(I in z)l[I]=z[I];return l};
_.h7.contains=function(z,l){return FHY(z,l)};
_.h7.containsKey=function(z,l){return z!==null&&l in z};
_.h7.containsValue=FHY;_.h7.create=Tsu;_.h7.createImmutableView=function(z){var l=z;Object.isFrozen&&!Object.isFrozen(z)&&(l=Object.create(z),Object.freeze(l));return l};
_.h7.createSet=c7f;_.h7.equals=function(z,l){for(var I in z)if(!(I in l)||z[I]!==l[I])return!1;for(var b in l)if(!(b in z))return!1;return!0};
_.h7.every=function(z,l,I){for(var b in z)if(!l.call(I,z[b],b,z))return!1;return!0};
_.h7.extend=function(z,l){for(var I,b,v=1;v<arguments.length;v++){b=arguments[v];for(I in b)z[I]=b[I];for(var M=0;M<Twz.length;M++)I=Twz[M],Object.prototype.hasOwnProperty.call(b,I)&&(z[I]=b[I])}};
_.h7.filter=function(z,l,I){var b={},v;for(v in z)l.call(I,z[v],v,z)&&(b[v]=z[v]);return b};
_.h7.findKey=QxQ;_.h7.findValue=function(z,l,I){return(l=QxQ(z,l,I))&&z[l]};
_.h7.forEach=function(z,l,I){for(var b in z)l.call(I,z[b],b,z)};
_.h7.get=function(z,l,I){return z!==null&&l in z?z[l]:I};
_.h7.getAllPropertyNames=function(z,l,I){if(!z)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return i71(z);for(var b={};z&&(z!==Object.prototype||l)&&(z!==Function.prototype||I);){for(var v=Object.getOwnPropertyNames(z),M=0;M<v.length;M++)b[v[M]]=!0;z=Object.getPrototypeOf(z)}return i71(b)};
_.h7.getAnyKey=function(z){for(var l in z)return l};
_.h7.getAnyValue=function(z){for(var l in z)return z[l]};
_.h7.getCount=function(z){var l=0,I;for(I in z)l++;return l};
_.h7.getKeys=i71;_.h7.getSuperClass=function(z){return(z=Object.getPrototypeOf(z.prototype))&&z.constructor};
_.h7.getValueByKeys=function(z,l){var I=_.wf(l),b=I?l:arguments;for(I=I?0:1;I<b.length;I++){if(z==null)return;z=z[b[I]]}return z};
_.h7.getValues=function(z){var l=[],I=0,b;for(b in z)l[I++]=z[b];return l};
_.h7.isEmpty=function(z){for(var l in z)return!1;return!0};
_.h7.isImmutableView=function(z){return!!Object.isFrozen&&Object.isFrozen(z)};
_.h7.map=function(z,l,I){var b={},v;for(v in z)b[v]=l.call(I,z[v],v,z);return b};
_.h7.remove=function(z,l){var I;(I=l in z)&&delete z[l];return I};
_.h7.set=function(z,l,I){z[l]=I};
_.h7.setIfUndefined=function(z,l,I){return l in z?z[l]:z[l]=I};
_.h7.setWithReturnValueIfNotSet=function(z,l,I){if(l in z)return z[l];I=I();return z[l]=I};
_.h7.some=function(z,l,I){for(var b in z)if(l.call(I,z[b],b,z))return!0;return!1};
_.h7.transpose=function(z){var l={},I;for(I in z)l[z[I]]=I;return l};
_.h7.unsafeClone=Y7p;var dy=function(z,l,I,b,v){this.allowedElements=z;this.elementPolicies=l;this.allowedGlobalAttributes=I;this.globalAttributePolicies=b;this.globallyAllowedAttributePrefixes=v},cpn=function(z,l,I){I=z.elementPolicies.get(I);
return(I==null?0:I.has(l))?I.get(l):z.allowedGlobalAttributes.has(l)?{policyAction:1}:(I=z.globalAttributePolicies.get(l))?I:z.globallyAllowedAttributePrefixes&&[].concat(_.ht(z.globallyAllowedAttributePrefixes)).some(function(b){return l.indexOf(b)===0})?{policyAction:1}:{policyAction:0}};var SjM="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(" "),
dzp=[["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}]])]],o0p="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(" "),
Pu_=[["dir",{policyAction:3,conditions:i8(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:i8(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:i8(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:i8(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],hIu=new dy(new Set(SjM),new Map(dzp),new Set(o0p),new Map(Pu_)),s_0=new dy(new Set(SjM.concat(["BUTTON",
"INPUT"])),new Map(dzp),new Set(i8(function(){return o0p.concat(["class","id","name"])})),new Map(i8(function(){return Pu_.concat([["style",
{policyAction:1}]])})));var rpn,$z0,w_I;rpn=function(z,l,I,b,v){this.JSC$9290_sanitizerTable=z;this.styleElementSanitizer=l;this.styleAttributeSanitizer=I;this.JSC$9290_resourceUrlPolicy=b;this.JSC$9290_navigationUrlPolicy=v;this.changes=[]};
_.eIn=function(z,l){var I=document.implementation.createHTMLDocument("");z=$z0(z,l,I);I=I.body;I.appendChild(z);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return au(I)};
$z0=function(z,l,I){l=oqS(l,I);l=document.createTreeWalker(l,5,function(g){if(g.nodeType===3)g=1;else if(hxY(g))if(g=Plk(g),g===null)g=2;else{var G=z.JSC$9290_sanitizerTable;g=g!=="FORM"&&(G.allowedElements.has(g)||G.elementPolicies.has(g))?1:2}else g=2;return g});
for(var b=l.nextNode(),v=I.createDocumentFragment(),M=v;b!==null;){var x=void 0;if(b.nodeType===3)z.styleElementSanitizer&&M.nodeName==="STYLE"?(b=z.styleElementSanitizer(b.data),x=z.createTextNode(b)):x=z.createTextNode(b.data);else if(hxY(b))x=w_I(z,b,I);else throw Error("Z");M.appendChild(x);if(b=l.firstChild())M=x;else for(;!(b=l.nextSibling())&&(b=l.parentNode());)M=M.parentNode}return v};
rpn.prototype.createTextNode=function(z){return document.createTextNode(z)};
w_I=function(z,l,I){var b,v=Plk(l);I=I.createElement(v);l=l.attributes;for(var M=_.D(l),x=M.next();!x.done;x=M.next()){var g=x.value;x=g.name;g=g.value;var G=cpn(z.JSC$9290_sanitizerTable,x,v);a:{if(b=G.conditions){b=_.D(b);for(var u=b.next();!u.done;u=b.next()){var Z=_.D(u.value);u=Z.next().value;Z=Z.next().value;var H=void 0;if((u=(H=l.getNamedItem(u))==null?void 0:H.value)&&!Z.has(u)){b=!1;break a}}}b=!0}if(b)switch(G.policyAction){case 1:ul(I,x,g);break;case 2:throw Error();case 3:ul(I,x,g.toLowerCase());
break;case 4:z.styleAttributeSanitizer?(g=z.styleAttributeSanitizer(g),ul(I,x,g)):ul(I,x,g);break;case 5:z.JSC$9290_resourceUrlPolicy?(G={type:2,attributeName:x,elementName:v},g=djf(g),(g=z.JSC$9290_resourceUrlPolicy(g,G))&&ul(I,x,g.toString())):ul(I,x,g);break;case 6:if(z.JSC$9290_resourceUrlPolicy){G={type:2,attributeName:x,elementName:v};b=[];g=_.D(g.split(","));for(u=g.next();!u.done;u=g.next())Z=_.D(u.value.trim().split(/\s+/,2)),u=Z.next().value,Z=Z.next().value,b.push({url:u,descriptor:Z});
g={parts:[]};b=_.D(b);for(u=b.next();!u.done;u=b.next())u=u.value,Z=djf(u.url),(Z=z.JSC$9290_resourceUrlPolicy(Z,G))&&g.parts.push({url:Z.toString(),descriptor:u.descriptor});ul(I,x,sxf(g))}else ul(I,x,g);break;case 7:G=g;if(z.JSC$9290_navigationUrlPolicy){G={type:2,attributeName:x,elementName:v};g=djf(g);g=z.JSC$9290_navigationUrlPolicy(g,G);if(g===null)break;G=g.toString()}g=G;G=_.b4u(g);G=G!==void 0&&AGA.indexOf(G.toLowerCase())!==-1?g:"about:invalid#zClosurez";ul(I,x,G)}}return I};
_.Apu=i8(function(){return new rpn(hIu)});
_.WA_=i8(function(){return new rpn(s_0)});var n0u=function(){this.calledBuild=!1;this.JSC$9302_sanitizerTable=hIu},LA_=function(){n0u.apply(this,arguments)};
_.m(LA_,n0u);LA_.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new rpn(this.JSC$9302_sanitizerTable,void 0,void 0,this.JSC$9302_resourceUrlPolicy,this.JSC$9302_navigationUrlPolicy)};var Uzu=/[^#]*/;var VMu=function(z){var l=a4u;if(l)for(var I in l)Object.prototype.hasOwnProperty.call(l,I)&&z(l[I],I,l)},j_M=function(){var z=[];
VMu(function(l){z.push(l)});
return z},a4u={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"},JpM=_.cc(function(){return j_M()}),lFu=function(){var z=z1n("IFRAME"),
l={};
_.UZ(JpM(),function(I){z.sandbox&&z.sandbox.supports&&z.sandbox.supports(I)&&(l[I]=!0)});
return l},z1n=function(z,l){l=l===void 0?document:l;
return l.createElement(String(z).toLowerCase())};var oq;_.rx=function(z,l,I){return Math.min(Math.max(z,l),I)};
oq=function(z,l,I){return z+I*(l-z)};_.rs=function(z,l){this.x=z!==void 0?z:0;this.y=l!==void 0?l:0};
_.p=_.rs.prototype;_.p.clone=function(){return new _.rs(this.x,this.y)};
_.p.equals=function(z){return z instanceof _.rs&&(this==z?!0:this&&z?this.x==z.x&&this.y==z.y:!1)};
_.p.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.p.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.p.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.p.translate=function(z,l){z instanceof _.rs?(this.x+=z.x,this.y+=z.y):(this.x+=Number(z),typeof l==="number"&&(this.y+=l));return this};
_.p.scale=function(z,l){this.x*=z;this.y*=typeof l==="number"?l:z;return this};_.X5=function(z,l){this.width=z;this.height=l};
_.p=_.X5.prototype;_.p.clone=function(){return new _.X5(this.width,this.height)};
_.p.area=function(){return this.width*this.height};
_.p.aspectRatio=function(){return this.width/this.height};
_.p.isEmpty=function(){return!this.area()};
_.p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.p.scale=function(z,l){this.width*=z;this.height*=typeof l==="number"?l:z;return this};var sN=function(z,l){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=z===cRk&&l||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=IFj};
sN.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var bl_=function(z){return z instanceof sN&&z.constructor===sN&&z.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===IFj?z.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},IFj={},cRk={};
new sN(cRk,"");var Q6,X7,h5,vSn,DKu,pXw,$q,OlI,Gc_,gSj,e1,N4A,CKM,fFz,yyu,kcA,R1_,mKI,K0w,Jxk,tWj,XXA,q8_,B4M,Pc;Q6=function(z){return z?new Pc(_.e6(z)):x7u||(x7u=new Pc)};
_.EB=function(z,l){return typeof l==="string"?z.getElementById(l):l};
X7=function(z,l){return(l||document).getElementsByTagName(String(z))};
_.MWj=function(z){return vSn("yt-formatted-string","paper-input-input",z)};
h5=function(z,l,I,b){z=b||z;return(l=l&&l!="*"?String(l).toUpperCase():"")||I?z.querySelectorAll(l+(I?"."+I:"")):z.getElementsByTagName("*")};
vSn=function(z,l,I){var b=document,v=z&&z!="*"?String(z).toUpperCase():"";return v||l?(I||b).querySelector(v+(l?"."+l:"")):h5(b,z,l,I)[0]||null};
DKu=function(z,l){_.h7.forEach(l,function(I,b){b=="style"?z.style.cssText=I:b=="class"?z.className=I:b=="for"?z.htmlFor=I:pXw.hasOwnProperty(b)?z.setAttribute(pXw[b],I):_.DS(b,"aria-")||_.DS(b,"data-")?z.setAttribute(b,I):z[b]=I})};
pXw={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"};_.il=function(z){z=(z||window).document;z=z.compatMode=="CSS1Compat"?z.documentElement:z.body;return new _.X5(z.clientWidth,z.clientHeight)};
_.xK4=function(z){var l=_.sz(z);z=z.defaultView;return new _.rs(z.pageXOffset||l.scrollLeft,z.pageYOffset||l.scrollTop)};
_.sz=function(z){return z.scrollingElement?z.scrollingElement:_.yk||z.compatMode!="CSS1Compat"?z.body||z.documentElement:z.documentElement};
$q=function(z){return z?z.defaultView:window};
_.ry=function(z,l,I){return OlI(document,arguments)};
OlI=function(z,l){var I=l[1],b=gSj(z,String(l[0]));I&&(typeof I==="string"?b.className=I:Array.isArray(I)?b.className=I.join(" "):DKu(b,I));l.length>2&&Gc_(z,b,l,2);return b};
Gc_=function(z,l,I,b){function v(g){g&&l.appendChild(typeof g==="string"?z.createTextNode(g):g)}
for(;b<I.length;b++){var M=I[b];if(!_.wf(M)||_.Lu(M)&&M.nodeType>0)v(M);else{a:{if(M&&typeof M.length=="number"){if(_.Lu(M)){var x=typeof M.item=="function"||typeof M.item=="string";break a}if(typeof M==="function"){x=typeof M.item=="function";break a}}x=!1}_.UZ(x?_.ex(M):M,v)}}};
_.tA=function(z){return gSj(document,z)};
gSj=function(z,l){l=String(l);z.contentType==="application/xhtml+xml"&&(l=l.toLowerCase());return z.createElement(l)};
_.$A=function(){return document.createTextNode("\n")};
e1=function(z){if(z.nodeType!=1)return!1;switch(z.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};
N4A=function(z,l){Gc_(_.e6(z),z,arguments,1)};
_.wy=function(z){for(var l;l=z.firstChild;)z.removeChild(l)};
_.A5=function(z,l){l.parentNode&&l.parentNode.insertBefore(z,l)};
_.Wc=function(z,l){l.parentNode&&l.parentNode.insertBefore(z,l.nextSibling)};
_.Bl=function(z){return z&&z.parentNode?z.parentNode.removeChild(z):null};
_.ESu=function(z,l){var I=l.parentNode;I&&I.replaceChild(z,l)};
_.uqn=function(z){var l,I=z.parentNode;if(I&&I.nodeType!=11)if(z.removeNode)z.removeNode(!1);else{for(;l=z.firstChild;)I.insertBefore(l,z);_.Bl(z)}};
_.nN=function(z){return z.children!=void 0?z.children:Array.prototype.filter.call(z.childNodes,function(l){return l.nodeType==1})};
_.Hl_=function(z){return z.nextElementSibling!==void 0?z.nextElementSibling:_.Zlp(z.nextSibling,!0)};
_.Zlp=function(z,l){for(;z&&z.nodeType!=1;)z=l?z.nextSibling:z.previousSibling;return z};
_.zu=function(z){return _.Lu(z)&&z.nodeType==1};
_.Wl=function(z,l){if(!z||!l)return!1;if(z.contains&&l.nodeType==1)return z==l||z.contains(l);if(typeof z.compareDocumentPosition!="undefined")return z==l||!!(z.compareDocumentPosition(l)&16);for(;l&&z!=l;)l=l.parentNode;return l==z};
CKM=function(z,l){if(z==l)return 0;if(z.compareDocumentPosition)return z.compareDocumentPosition(l)&2?1:-1;if("sourceIndex"in z||z.parentNode&&"sourceIndex"in z.parentNode){var I=z.nodeType==1,b=l.nodeType==1;if(I&&b)return z.sourceIndex-l.sourceIndex;var v=z.parentNode,M=l.parentNode;return v==M?yyu(z,l):!I&&_.Wl(v,l)?-1*fFz(z,l):!b&&_.Wl(M,z)?fFz(l,z):(I?z.sourceIndex:v.sourceIndex)-(b?l.sourceIndex:M.sourceIndex)}b=_.e6(z);I=b.createRange();I.selectNode(z);I.collapse(!0);z=b.createRange();z.selectNode(l);
z.collapse(!0);return I.compareBoundaryPoints(_.v7.Range.START_TO_END,z)};
fFz=function(z,l){var I=z.parentNode;if(I==l)return-1;for(;l.parentNode!=I;)l=l.parentNode;return yyu(l,z)};
yyu=function(z,l){for(;l=l.previousSibling;)if(l==z)return-1;return 1};
kcA=function(z){var l,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var b=[],v=Infinity;for(l=0;l<I;l++){for(var M=[],x=arguments[l];x;)M.unshift(x),x=x.parentNode;b.push(M);v=Math.min(v,M.length)}M=null;for(l=0;l<v;l++){x=b[0][l];for(var g=1;g<I;g++)if(x!=b[g][l])return M;M=x}return M};
_.e6=function(z){return z.nodeType==9?z:z.ownerDocument||z.document};
R1_=function(z){return z.contentDocument||z.contentWindow.document};
_.LN=function(z,l){if("textContent"in z)z.textContent=l;else if(z.nodeType==3)z.data=String(l);else if(z.firstChild&&z.firstChild.nodeType==3){for(;z.lastChild!=z.firstChild;)z.removeChild(z.lastChild);z.firstChild.data=String(l)}else _.wy(z),z.appendChild(_.e6(z).createTextNode(String(l)))};
mKI={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};K0w={IMG:" ",BR:"\n"};Jxk=function(z){var l;z.tagName=="A"&&z.hasAttribute("href")||z.tagName=="INPUT"||z.tagName=="TEXTAREA"||z.tagName=="SELECT"||z.tagName=="BUTTON"?l=!z.disabled&&(!z.hasAttribute("tabindex")||tWj(z)):l=z.hasAttribute("tabindex")&&tWj(z);return l};
tWj=function(z){z=z.tabIndex;return typeof z==="number"&&z>=0&&z<32768};
XXA=function(z){var l=[];B4M(z,l,!0);z=l.join("");z=z.replace(/ \xAD /g," ").replace(/\xAD/g,"");z=z.replace(/\u200B/g,"");z=z.replace(/ +/g," ");z!=" "&&(z=z.replace(/^\s*/,""));return z};
q8_=function(z){var l=[];B4M(z,l,!1);return l.join("")};
B4M=function(z,l,I){if(!(z.nodeName in mKI))if(z.nodeType==3)I?l.push(String(z.nodeValue).replace(/(\r\n|\r|\n)/g,"")):l.push(z.nodeValue);else if(z.nodeName in K0w)l.push(K0w[z.nodeName]);else for(z=z.firstChild;z;)B4M(z,l,I),z=z.nextSibling};
_.ilp=function(z,l,I){if(!l&&!I)return null;var b=l?String(l).toUpperCase():null;return _.A7(z,function(v){return(!b||v.nodeName==b)&&(!I||typeof v.className==="string"&&_.rf(v.className.split(/\s+/),I))},!0)};
_.A7=function(z,l,I){z&&!I&&(z=z.parentNode);for(I=0;z;){if(l(z))return z;z=z.parentNode;I++}return null};
Pc=function(z){this.JSC$9327_document_=z||_.v7.document||document};
_.p=Pc.prototype;_.p.getElement=function(z){return _.EB(this.JSC$9327_document_,z)};
_.p.$=Pc.prototype.getElement;_.p.getElementsByTagName=function(z,l){return(l||this.JSC$9327_document_).getElementsByTagName(String(z))};
_.p.getElementsByTagNameAndClass=function(z,l,I){return h5(this.JSC$9327_document_,z,l,I)};
_.p.$$=Pc.prototype.getElementsByTagNameAndClass;_.p.setProperties=DKu;_.p.JSC$9329_createDom=function(z,l,I){return OlI(this.JSC$9327_document_,arguments)};
_.p.createElement=function(z){return gSj(this.JSC$9327_document_,z)};
_.p.createTextNode=function(z){return this.JSC$9327_document_.createTextNode(String(z))};
_.p.getWindow=function(){return this.JSC$9327_document_.defaultView};
var F5=function(z){return _.xK4(z.JSC$9327_document_)};
_.p=Pc.prototype;_.p.appendChild=function(z,l){z.appendChild(l)};
_.p.append=N4A;_.p.canHaveChildren=e1;_.p.removeNode=_.Bl;_.p.getChildren=_.nN;_.p.contains=_.Wl;_.p=C7.prototype;_.p.getWidth=function(){return this.right-this.left};
_.p.getHeight=function(){return this.bottom-this.top};
_.p.clone=function(){return new C7(this.top,this.right,this.bottom,this.left)};
_.p.contains=function(z){return this&&z?z instanceof C7?z.left>=this.left&&z.right<=this.right&&z.top>=this.top&&z.bottom<=this.bottom:z.x>=this.left&&z.x<=this.right&&z.y>=this.top&&z.y<=this.bottom:!1};
_.p.expand=function(z,l,I,b){_.Lu(z)?(this.top-=z.top,this.right+=z.right,this.bottom+=z.bottom,this.left-=z.left):(this.top-=z,this.right+=Number(l),this.bottom+=Number(I),this.left-=Number(b));return this};
_.p.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};
_.p.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};
_.p.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};
_.p.translate=function(z,l){z instanceof _.rs?(this.left+=z.x,this.right+=z.x,this.top+=z.y,this.bottom+=z.y):(this.left+=z,this.right+=z,typeof l==="number"&&(this.top+=l,this.bottom+=l));return this};
_.p.scale=function(z,l){l=typeof l==="number"?l:z;this.left*=z;this.right*=z;this.top*=l;this.bottom*=l;return this};var Uz=function(z,l,I,b){this.left=z;this.top=l;this.width=I;this.height=b};
_.p=Uz.prototype;_.p.clone=function(){return new Uz(this.left,this.top,this.width,this.height)};
_.p.boundingRect=function(z){var l=Math.max(this.left+this.width,z.left+z.width),I=Math.max(this.top+this.height,z.top+z.height);this.left=Math.min(this.left,z.left);this.top=Math.min(this.top,z.top);this.width=l-this.left;this.height=I-this.top};
_.p.contains=function(z){return z instanceof _.rs?z.x>=this.left&&z.x<=this.left+this.width&&z.y>=this.top&&z.y<=this.top+this.height:this.left<=z.left&&this.left+this.width>=z.left+z.width&&this.top<=z.top&&this.top+this.height>=z.top+z.height};
_.p.distance=function(z){var l=z.x<this.left?this.left-z.x:Math.max(z.x-(this.left+this.width),0);z=z.y<this.top?this.top-z.y:Math.max(z.y-(this.top+this.height),0);return Math.sqrt(l*l+z*z)};
_.p.getSize=function(){return new _.X5(this.width,this.height)};
_.p.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};
_.p.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};
_.p.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};
_.p.translate=function(z,l){z instanceof _.rs?(this.left+=z.x,this.top+=z.y):(this.left+=z,typeof l==="number"&&(this.top+=l));return this};
_.p.scale=function(z,l){l=typeof l==="number"?l:z;this.left*=z;this.width*=z;this.top*=l;this.height*=l;return this};var QCz,j1,N2Q,Vl,S8z,cy_,dK_,J5k,oSA,h1u;_.aq=function(z,l,I){if(typeof l==="string")(l=_.F0I(z,l))&&(z.style[l]=I);else for(var b in l){I=z;var v=l[b],M=_.F0I(I,b);M&&(I.style[M]=v)}};
QCz={};_.F0I=function(z,l){var I=QCz[l];if(!I){var b=_.t8(l);I=b;z.style[b]===void 0&&(b=(_.yk?"Webkit":_.Hx?"Moz":null)+zIz(b),z.style[b]!==void 0&&(I=b));QCz[l]=I}return I};
_.kM=function(z,l){var I=_.e6(z);return I.defaultView&&I.defaultView.getComputedStyle&&(z=I.defaultView.getComputedStyle(z,null))?z[l]||z.getPropertyValue(l)||"":""};
_.AA=function(z,l){return _.kM(z,l)||(z.currentStyle?z.currentStyle[l]:null)||z.style&&z.style[l]};
_.Y80=function(z){return _.AA(z,"position")};
j1=function(z,l,I){if(l instanceof _.rs){var b=l.x;l=l.y}else b=l,l=I;z.style.left=Vl(b,!1);z.style.top=Vl(l,!1)};
N2Q=function(z){try{return z.getBoundingClientRect()}catch(l){return{left:0,top:0,right:0,bottom:0}}};
_.ws=function(z){var l=_.e6(z),I=new _.rs(0,0);if(z==(l?_.e6(l):document).documentElement)return I;z=N2Q(z);l=F5(Q6(l));I.x=z.left+l.x;I.y=z.top+l.y;return I};
_.T40=function(z,l,I){if(l instanceof _.X5)I=l.height,l=l.width;else if(I==void 0)throw Error("oa");z.style.width=Vl(l,!0);z.style.height=Vl(I,!0)};
Vl=function(z,l){typeof z=="number"&&(z=(l?Math.round(z):z)+"px");return z};
S8z=function(z){return cy_(z)};
cy_=function(z){var l=dK_;if(_.AA(z,"display")!="none")return l(z);var I=z.style,b=I.display,v=I.visibility,M=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";z=l(z);I.display=b;I.position=M;I.visibility=v;return z};
dK_=function(z){var l=z.offsetWidth,I=z.offsetHeight,b=_.yk&&!l&&!I;return(l===void 0||b)&&z.getBoundingClientRect?(z=N2Q(z),new _.X5(z.right-z.left,z.bottom-z.top)):new _.X5(l,I)};
J5k=function(z){var l=_.ws(z);z=cy_(z);return new Uz(l.x,l.y,z.width,z.height)};
oSA=function(z,l){z=z.style;"opacity"in z?z.opacity=l:"MozOpacity"in z?z.MozOpacity=l:"filter"in z&&(z.filter=l===""?"":"alpha(opacity="+Number(l)*100+")")};
_.jN=function(z,l){z.style.display=l?"":"none"};
_.PK0=function(z){return"rtl"==_.AA(z,"direction")};
h1u=function(z){var l=_.kM(z,"marginLeft"),I=_.kM(z,"marginRight"),b=_.kM(z,"marginTop");z=_.kM(z,"marginBottom");return new C7(parseFloat(b),parseFloat(I),parseFloat(z),parseFloat(l))};
_.sCA=function(z){var l=_.kM(z,"borderLeftWidth"),I=_.kM(z,"borderRightWidth"),b=_.kM(z,"borderTopWidth");z=_.kM(z,"borderBottomWidth");return new C7(parseFloat(b),parseFloat(I),parseFloat(z),parseFloat(l))};var J5=function(z){this.context=z};
J5.prototype.isSupported=function(z){return(z==null?0:z.attributionEnabled)||(z==null?void 0:z.beaconMethod)==="POST"||(z==null?0:z.customHeaders)||(z==null?0:z.customBody)||(z==null?0:z.keepAlive)?!1:!Ql(this.context)};
J5.prototype.ping=function(){var z=this;return Yd(_.AT.apply(0,arguments).map(function(l){try{var I=z.context.global,b=!1;b=b===void 0?!1:b;I.google_image_requests||(I.google_image_requests=[]);var v=z1n("IMG",I.document);b&&(v.attributionSrc="");v.src=l;I.google_image_requests.push(v);return!0}catch(M){return!1}}).every(function(l){return l}))};
J5.prototype.pingWithHeadersAndBody=function(z,l,I){this.ping.apply(this,_.ht(_.AT.apply(3,arguments)))};var ry_=function(z){this.context=z};
ry_.prototype.isSupported=function(z){return $K0&&!Ql(this.context)&&$j7(this.context)!==void 0&&!(z==null?0:z.attributionEnabled)&&(z==null?void 0:z.beaconMethod)!=="POST"&&!(z==null?0:z.customHeaders)&&!(z==null?0:z.customBody)};
ry_.prototype.makeBeacon=function(z,l){if(!this.isSupported(l))throw new Bc;return new zL(this.context,z)};
var $K0=!1,zL=function(z,l){this.context=z;this.JSC$9348_urlWithoutToken=l;z=$j7(this.context);if(z===void 0)throw Error();this.wrappedBeacon=new z(e1_(this),{})},e1_=function(z){z=z.JSC$9348_urlWithoutToken;
return(z.slice(-1)[0]==="&"?z:z+"&")+"pbapi=1"};
zL.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
zL.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
zL.prototype.setHeader=function(){};
_.vP.Object.defineProperties(zL.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9348_urlWithoutToken},
set:function(z){this.JSC$9348_urlWithoutToken=z;this.wrappedBeacon.setURL(e1_(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(z){if(z!=="GET")throw new Bc;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var wXI=function(z){this.context=z};
wXI.prototype.isSupported=function(z){if((z==null?0:z.attributionEnabled)||(z==null?void 0:z.beaconMethod)==="GET"||(z==null?0:z.customHeaders)||(z==null?0:z.customBody)||(z==null?0:z.keepAlive))return!1;var l;return!Ql(this.context)&&((l=this.context.global.navigator)==null?void 0:l.sendBeacon)!==void 0};
wXI.prototype.ping=function(){var z=this;return Yd(_.AT.apply(0,arguments).map(function(l){var I;return(I=z.context.global.navigator)==null?void 0:I.sendBeacon(l)}).every(function(l){return l}))};
wXI.prototype.pingWithHeadersAndBody=function(z,l,I){this.ping.apply(this,_.ht(_.AT.apply(3,arguments)))};var t7=function(z){this.value=z},IQ=function(z,l){return Yd(z.value).pipe(mH(l))},vl=new t7(!1),tmQ=new t7(!0);var WR=function(z){this.value=z;this.releasedSubject=new kq};
WR.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.vP.Object.defineProperties(WR.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9361_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var lvY=["FRAME","IMG","IFRAME"],UjY=/^[01](px)?$/,z7x=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},J7p=function(){var z=new z7x;
z.crossDomainLoadedDefault=!0;z.pendingImagesBlockLoad=!0;return z};var Ay_=function(z,l){var I=x4$(z);if(I)if(I.onCreativeLoad)I.onCreativeLoad(l);else{var b=l?[l]:[],v=function(M){for(var x=0;x<b.length;++x)try{b[x](1,M)}catch(g){}b={push:function(g){g(1,M)}}};
I.onCreativeLoad=function(M){b.push(M)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(M){v(M.detail)});
_.v7.addEventListener("message",function(M){D4G(I,v,M)})}};var lT=function(z,l){var I=this;this.global=z;this.parentContext=l;this.JSC$9372_onVisibilityChange=this.document?At(Yd(!0),eY(this.document,"visibilitychange")).pipe(aL(this.parentContext.performanceMonitor,748),P0(function(){return I.getVisibilityState()}),Ix()):Yd("visible");
this.document?eY(this.document,"DOMContentLoaded").pipe(aL(this.parentContext.performanceMonitor,739),zh(1)):Yd(nqQ("DOMContentLoaded"))},KFf=function(z){return z.document!==null&&z.document.visibilityState!==void 0};
lT.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
lT.prototype.querySelector=function(z){return this.document?this.document.querySelector(z):null};
lT.prototype.querySelectorAll=function(z){return this.document?_.ex(this.document.querySelectorAll(z)):[]};
lT.prototype.elementFromPoint=function(z,l){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;z=this.document.elementFromPoint(z,l);return z===null?null:new WR(z)};
var Nrt=function(z,l,I){I=I===void 0?!1:I;if(l.ref===void 0||!z.document)return Yd(l).pipe(aL(z.parentContext.performanceMonitor,749));var b=new p7(1),v=function(){b.next(l)};
I||Ay_(l.ref,v);Ivt(l.ref,v);return b.pipe(aL(z.parentContext.performanceMonitor,749),zh(1))};
_.vP.Object.defineProperties(lT.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return XRQ(this.global,"document")?this.global.document||null:null}}});var O0G=_.zs(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),gNf=_.zs(["./reach_worklet.js"]),Gzt=_.zs(["./reach_worklet.js"]),W04=_.zs(["./reach_worklet.html"]),nSw=_.zs(["./reach_worklet.js"]),L0p=_.zs(["./reach_worklet.js"]);_.HR(W04);_.HR(nSw);_.HR(L0p);var V6={left:0,top:0,width:0,height:0};var UKu,aF_,VWu,jCA,I3,zZu,laA,Ia0,Lw7,UCu,MAI,pQu;UKu=function(z,l,I,b,v,M,x){var g="";z&&(g+=z+":");I&&(g+="//",l&&(g+=l+"@"),g+=I,b&&(g+=":"+b));v&&(g+=v);M&&(g+="?"+M);x&&(g+="#"+x);return g};
aF_=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.zo=function(z){return z.match(aF_)};
_.QF=function(z,l){return z?l?decodeURI(z):decodeURIComponent(z):z};
VWu=function(z){z=_.zo(z)[1]||null;!z&&_.v7.self&&_.v7.self.location&&(z=_.v7.self.location.protocol.slice(0,-1));return z?z.toLowerCase():""};
_.lf=function(z){return _.QF(_.zo(z)[3]||null,!0)};
_.yI=function(z){return _.QF(_.zo(z)[5]||null,!0)};
_.sHt=function(z){var l=z.indexOf("#");return l<0?null:z.slice(l+1)};
jCA=function(z){z=_.zo(z);return UKu(z[1],z[2],z[3],z[4])};
_.Jyz=function(z){z=_.zo(z);return UKu(z[1],null,z[3],z[4])};
_.UU=function(z){z=_.zo(z);return UKu(null,null,null,null,z[5],z[6],z[7])};
_.bJ=function(z){var l=z.indexOf("#");return l<0?z:z.slice(0,l)};
I3=function(z,l){z=_.zo(z);l=_.zo(l);return z[3]==l[3]&&z[1]==l[1]&&z[4]==l[4]};
zZu=function(z,l){if(z){z=z.split("&");for(var I=0;I<z.length;I++){var b=z[I].indexOf("="),v=null;if(b>=0){var M=z[I].substring(0,b);v=z[I].substring(b+1)}else M=z[I];l(M,v?vV(v):"")}}};
laA=function(z){var l=z.indexOf("#");l<0&&(l=z.length);var I=z.indexOf("?");if(I<0||I>l){I=l;var b=""}else b=z.substring(I+1,l);return[z.slice(0,I),b,z.slice(l)]};
Ia0=function(z,l){return l?z?z+"&"+l:l:z};
_.bD_=function(z,l){if(!l)return z;z=laA(z);z[1]=Ia0(z[1],l);return z[0]+(z[1]?"?"+z[1]:"")+z[2]};
_.vRj=function(z,l,I){if(Array.isArray(l))for(var b=0;b<l.length;b++)_.vRj(z,String(l[b]),I);else l!=null&&I.push(z+(l===""?"":"="+_.LP(l)))};
_.CG=function(z){var l=[],I;for(I in z)_.vRj(I,z[I],l);return l.join("&")};
_.Jr=function(z,l){l=_.CG(l);return _.bD_(z,l)};
_.IW=function(z,l,I){I=I!=null?"="+_.LP(I):"";return _.bD_(z,l+I)};
Lw7=function(z,l,I,b){for(var v=I.length;(l=z.indexOf(I,l))>=0&&l<b;){var M=z.charCodeAt(l-1);if(M==38||M==63)if(M=z.charCodeAt(l+v),!M||M==61||M==38||M==35)return l;l+=v+1}return-1};
UCu=/#|$/;_.n0=function(z,l){var I=z.search(UCu),b=Lw7(z,0,l,I);if(b<0)return null;var v=z.indexOf("&",b);if(v<0||v>I)v=I;b+=l.length+1;return vV(z.slice(b,v!==-1?v:0))};
MAI=/[?&]($|#)/;_.Mu=function(z,l){for(var I=z.search(UCu),b=0,v,M=[];(v=Lw7(z,b,l,I))>=0;)M.push(z.substring(b,v)),b=Math.min(z.indexOf("&",v)+1||I,I);M.push(z.slice(b));return M.join("").replace(MAI,"$1")};
_.rE=function(z,l,I){return _.IW(_.Mu(z,l),l,I)};
pQu=function(z){var l=laA(window.location.href),I=l[1],b=[];I&&I.split("&").forEach(function(v){var M=v.indexOf("=");M=M>=0?v.slice(0,M):v;z.hasOwnProperty(M)||b.push(v)});
l[1]=Ia0(b.join("&"),_.CG(z));return l[0]+(l[1]?"?"+l[1]:"")+l[2]};var YAS=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(YAS,_.Da);YAS.prototype.getVersion=function(){return _.oX(this,2)};var QQG=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(QQG,_.Da);var tN$=function(z,l){return _.Th(z,2,l)},Fst=function(z,l){return _.Th(z,3,l)};
QQG.prototype.getModel=function(){return _.oX(this,4)};
var XlY=function(z,l){return _.Th(z,4,l)},Ksk=function(z,l){return _.Th(z,5,l)},i0k=function(z,l){return _.Th(z,9,l)},m47=function(z,l){return Qk(z,10,l)},R7x=function(z,l){return _.Zv(z,11,l)},B15=function(z,l){return _.Th(z,1,l)},qAu=function(z,l){return _.Zv(z,7,l)};var CWG="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var bW=function(z,l,I,b){z=z===void 0?window:z;l=l===void 0?null:l;I=I===void 0?new kkj:I;b=b===void 0?N1k():b;Znz.call(this);var v=this;this.global=z;this.debugChannel=l;this.performanceMonitor=I;this.onPageHide=Jt$(function(){return eY(v.global,"pagehide")}).pipe(aL(this.performanceMonitor,941));
this.onLoad=Jt$(function(){return eY(v.global,"load")}).pipe(aL(this.performanceMonitor,738),zh(1));
this.onResize=Jt$(function(){return eY(v.global,"resize")}).pipe(aL(this.performanceMonitor,741));
this.onMessage=Jt$(function(){return eY(v.global,"message")}).pipe(aL(this.performanceMonitor,740));
this.document=new lT(this.global,this);this.timeProvider=new RII(new KAz(this.intrinsicFunctionNamespace,this.performanceMonitor),new mz_(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new f40(new Bw_(this),new ry_(this),new qi(this,new inj(this)),new qi(this,new wXI(this)),new qi(this,new J5(this)))};
_.m(bW,Znz);var Ql=function(z){var l=z.global;return!!z.global.HTMLFencedFrameElement&&!!l.fence&&typeof l.fence.reportEvent==="function"};
_.p=bW.prototype;_.p.reportFencedFrameEvent=function(z){Ql(this)&&this.global.fence.reportEvent(z)};
_.p.getOnBackgrounded=function(){return this.onPageHide.pipe(aL(this.performanceMonitor,942),mH(this.queue),P0(function(){}))};
_.p.postMessage=function(z,l,I){I=I===void 0?[]:I;this.global.postMessage(z,l,I)};
_.p.getWidth=function(){return q7k(this.global)?this.global.width:0};
_.p.getHeight=function(){return q7k(this.global)?this.global.height:0};
_.p.isMobile=function(){return Q_4()||Yj_()};
var n7=function(z,l){try{var I=H0G(l,z.global,z.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(b){return V6}};
bW.prototype.validate=function(){var z=this.beaconFactory.isSupported()||Ql(this);return this.global&&this.timeProvider.available()&&z};
var wRQ=function(z){return(z=cAx(z.global))?kd(z):null};
_.vP.Object.defineProperties(bW.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(z){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!q7k(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}}});_.DZ_=!_.Zs&&!_.g5t();var Brt=function(z){return z};var qZu=function(z){return z.pipe(n4(function(l){var I=l.endOfSessionReason;var b;return((b=l.viewable)==null?void 0:b.extrapolateToNow().value)||I!=void 0}),zh(1),jY())};var rAk=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},$4p=function(z){var l=z.sequenceNumber.toString(10).padStart(2,"0");
l=""+z.startTime+l;z.sequenceNumber<99&&z.sequenceNumber++;return l};var myQ=H0(Gh(function(z){return z.endOfSessionReason===void 0}),P0(function(z){return Object.assign({},z,{timestamps:S6(z)})}),n4(function(z){var l=z.viewable;
z=z.timestamps;var I;return(I=l==null?void 0:l.extrapolateUsingTimestampMap(z).value)!=null?I:!1}),P0(function(z){var l=z.beaconFactory;
var I=z.timestampedExposureHistory;var b=z.timeOnScreen;var v=z.binaryContext;z=z.timestamps;if(l===void 0||I===void 0||b===void 0||v===void 0)return!1;if(b.extrapolateUsingTimestampMap(z).value.every(function(M){return M>=0}))return!0;
I=I.map(function(M){return M.timestamp+":"+M.value}).join(",");
b=e7k({bin:v,tos:b},z);l.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+b+("&eh="+I)).sendNow();return!0}),Gh(function(z){return!z}),jY());var AAQ=function(z){return{id:z.pingId,mcvt:z.maxConsecutiveViewTime,p:z.creativePosition,asp:z.adSpeedPosition,tm:z.totalMeasurementTime,tu:z.totalUnviewedTime,mtos:z.maxTimeOnScreen,tos:z.timeOnScreen,v:z.binaryVersion,bin:z.binaryContext,avms:z.measurementStrategy,bs:z.browserSize,mc:z.maximumExposure,"if":z.crossDomainIframeState,vu:z.delayedImpressionJsState,app:z.inApp,mse:z.mraidError,mtop:z.mraidSituation,itpl:z.injectedTemplateId,adk:z.adKey,exk:z.awbidKey,rs:z.requestSource,la:z.isLargeAd,
cr:z.isContentRecommendationAd,uach:z.userAgentClientHints,vs:z.viewState,r:z.reasonCode,pay:z.hasCpmavUrl,co:z.clientPingOrderCounter,rst:z.adRenderStartTime,rpt:z.adRenderPeriodTime,isd:z.initialScrollDepth,lsd:z.loadedScrollDepth,context:z.errorContext,msg:z.errorMessage,stack:z.errorStack,name:z.errorName,ec:z.hasElementChanged,sfr:z.strategyFailureReasons,met:z.creativeSearchResult,wmsd:z.webMeasurementStartDiagnostic,pv:z.pageVisible,epv:z.eosPageVisible,pbe:z.inStatefulBeaconExperiment,fle:z.inFetchLaterBeaconExperiment,
vae:z.inViewableAttributionExperiment,spb:z.supportsPendingBeacon,sfl:z.supportsFetchLater,ffslot:z.isFencedFrameSlotTurtlex,reach:z.sharedStorageReachMode,io2:z.v2VisibilityBitVector,rxdbg:z.rxDebugger,omida:z.omidAppId,omidp:z.omidPartner,omidpv:z.omidPartnerVersion,omidor:z.omidOcclusionReasons,omidv:z.omidVersion,omids:z.omidSessionType,omidam:z.omidAccessMode,omidct:z.omidCreativeType,omidia:z.omidInApp,omiddc:z.omidDeviceCategory,omidlat:z.omidLastActivity,omiddit:z.omidDeviceIdleTime,qid:z.errorEscapedQueryId}};var X85=function(z){var l=[];return z.pipe(P0(function(I){var b=I.beaconFactory,v=I.fetchBeaconFactory,M=I.timeOnScreen,x=I.timeOnScreenUrlPrefixes,g=I.payloadMapper,G=I.timeOnScreenPingId,u=I.timeOnScreenReason,Z=I.urlSerializer,H=I.viewable,y=I.hasImpressionFired,f=I.inStatefulBeaconExperiment,R=I.supportsPendingBeacon,F=I.supportsFetchLater,Y=I.turtlexReportEventData;if(!I.geometryMeasurable||!y||I.maxTimeOnScreen===void 0||M===void 0||x===void 0||g===void 0||G===void 0||Z===void 0||b===void 0)return!1;
if(I.isTurtlex){if(u===void 0)return!1;x=I.reportFencedFrameEvent;if(!x)return!1;x({eventType:"active-view-time-on-screen",eventData:Y!=null?Y:"",destination:["buyer"]});return!0}if(!(f||F||u))return!1;Y=S6(I);var c;H=(c=H==null?void 0:H.extrapolateUsingTimestampMap(Y).value)!=null?c:!1;c=Z(Object.assign({},I,{pingId:G,viewState:H?4:3,reasonCode:u!=null?u:"u",payloadMapper:g,urlPrefixes:x}),Y);if(f){for(;l.length>x.length;)I=void 0,(I=l.shift())==null||I.deactivate();c.forEach(function(V,A){A>=l.length?
l.push(b.makeBeacon(V)):l[A].url=V});
return R&&v&&u!==void 0?(c.forEach(function(V){v.makeBeacon(V).sendNow()}),!0):u!==void 0}if(R&&v&&u!==void 0)return c.forEach(function(V){v.makeBeacon(V).sendNow()}),!0;
if(F&&v){for(;l.length>x.length;)R=void 0,(R=l.shift())==null||R.deactivate();var d=Z(Object.assign({},I,{pingId:G,viewState:H?4:3,reasonCode:u!=null?u:"u",payloadMapper:g,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),Y)[0];c.forEach(function(V,A){A>=l.length?l.push(b.makeBeacon(d,{endOfSession:!0})):l[A].url=d});
return u!==void 0?(c.forEach(function(V){v.makeBeacon(V).sendNow()}),!0):u!==void 0}return u!==void 0?(c.forEach(function(V){b.makeBeacon(V).sendNow()}),!0):!1}),Gh(function(I){return!I}),jY())};var iPQ=H0(n4(function(z){return z.immediateUrlPrefixes!==void 0&&z.payloadMapper!==void 0&&z.urlSerializer!==void 0&&z.inferredPingId!==void 0&&z.beaconFactory!==void 0}),n4(function(z){return JAY(z)!==null}),VN7(function(z){return z.activeViewUnmeasurableEvent},function(z){return z.emit}),P0(function(z){if(z.isTurtlex){var l=z.reportFencedFrameEvent;
if(l){var I;l({eventType:"active-view-unmeasurable",eventData:(I=z.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var b=JAY(z);if(b==="x"){var v,M=(v=z.geometricMeasurementErrors)!=null?v:z.contextValidationErrors;M&&(l=M.stack,I=M.message)}z.urlSerializer(Object.assign({},z,{urlPrefixes:z.immediateUrlPrefixes,payloadMapper:z.payloadMapper,pingId:z.inferredPingId,viewState:2,reasonCode:b,errorMessage:I,errorStack:l}),S6(z)).forEach(function(x){z.beaconFactory.makeBeacon(x).sendNow()})}}),
zh(1),jY());var zeH=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var RbH=H0(n4(function(z){return z.payloadMapper!==void 0&&z.immediateUrlPrefixes!==void 0&&z.urlSerializer!==void 0&&z.inferredPingId!==void 0&&z.beaconFactory!==void 0}),P0(function(z){return Object.assign({},z,{timestamps:S6(z)})}),n4(function(z){var l=z.viewable;
var I=z.hasImpressionFired;z=z.timestamps;var b;return!!I&&((b=l==null?void 0:l.extrapolateUsingTimestampMap(z).value)!=null?b:!1)}),VN7(function(z){return z.activeViewViewableEvent},function(z){return z.emit}),P0(function(z){var l=z.beaconFactory,I=z.turtlexReportEventData;
if(z.isTurtlex){var b=z.reportFencedFrameEvent;if(!b)return!1;b({eventType:"active-view-viewable",eventData:I!=null?I:"",destination:["buyer"]});return!0}I=z.urlSerializer(Object.assign({},z,{urlPrefixes:z.immediateUrlPrefixes,payloadMapper:z.payloadMapper,pingId:z.inferredPingId,viewState:4,reasonCode:"v"}),z.timestamps);(b=z.cpmavUrls)&&b.length>0&&z.viewUrlSerializer&&z.viewUrlSerializer(b,z).forEach(function(v){l.makeBeacon(v).sendNow()});
(b=z.viewableRelayUrls)&&b.length>0&&z.viewUrlSerializer&&z.viewUrlSerializer(b,z).forEach(function(v){l.makeBeacon(v).sendNow()});
I.forEach(function(v){l.makeBeacon(v,{attributionEnabled:z.isViewableAttributionEnabled}).sendNow()});
return!0}),Gh(function(z){return!z}),jY());var AXH=P0(function(z){return[z.value.topWindowViewportExternalGeometry.width,z.value.topWindowViewportExternalGeometry.height]});var L7=function(z,l){this.callback=z;this.options=l;this.intersectionObserverV2=this.intersectionObserverV1=null},Xbt=function(z,l){l?z.intersectionObserverV2||(l=Object.assign({},z.options,{delay:100,
trackVisibility:!0}),z.intersectionObserverV2=new IntersectionObserver(z.callback,l)):z.intersectionObserverV1||(z.intersectionObserverV1=new IntersectionObserver(z.callback,z.options))},xZu=function(z,l){z=l?z.intersectionObserverV2:z.intersectionObserverV1;
if(!z)throw new Hnw;return z};
L7.prototype.observe=function(z,l){xZu(this,z).observe(l)};
L7.prototype.unobserve=function(z,l){xZu(this,z).unobserve(l)};
L7.prototype.disconnect=function(z){xZu(this,z).disconnect()};
L7.prototype.takeRecords=function(z){return xZu(this,z).takeRecords()};var uQt={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:V6,topWindowViewportExternalGeometry:V6,measurementRequests:new kq,elementGeometrySourceName:"ns",elementGeometry:V6,intersectionGeometry:V6,viewportLocalAppOffset:{x:0,y:0}};var cX1=j6(H0(P0(function(z){var l;return(l=z.exposureOverride)!=null?l:ioQ(z)}),P0(function(z){return isFinite(z)?z:0}))),rX1=j6(H0(P0(function(z){var l;
return(l=z.exposureOverride)!=null?l:ioQ(z)}),P0(function(z){return isFinite(z)?z:-1})));var bT=function(z,l){this.a=z;this.b=l;if(z.clock.timeline!==l.clock.timeline)throw Error();};
bT.prototype.equivalentTo=function(z){return z instanceof bT?this.a.equivalentTo(z.a)&&this.b.equivalentTo(z.b):!1};
bT.prototype.extrapolateToTime=function(z){var l=this.a.extrapolateToTime(z).value,I=this.b.extrapolateToTime(z).value;return{timestamp:z,value:[l,I]}};
_.vP.Object.defineProperties(bT.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 z=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),l=this.a.lastMeasurement.timestamp.equals(z)?this.a.lastMeasurement.value:this.a.extrapolateToTime(z).value,I=this.b.lastMeasurement.timestamp.equals(z)?this.b.lastMeasurement.value:this.b.extrapolateToTime(z).value;return{timestamp:z,value:[l,I]}}}});var vn=function(z,l){this.input=z;this.mapFunction=l;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
vn.prototype.equivalentTo=function(z){return z instanceof vn?this.input.equivalentTo(z.input)&&this.mapFunction===z.mapFunction:!1};
vn.prototype.extrapolateToTime=function(z){z=this.input.extrapolateToTime(z);return{timestamp:z.timestamp,value:this.mapFunction(z.value)}};
_.vP.Object.defineProperties(vn.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Mg=function(){};
Mg.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Mg.prototype.extrapolateUsingTimestampMap=function(z){var l=this.clock.timeline,I,b=(I=z.get(l))!=null?I:this.clock.now();z.set(l,b);return this.extrapolateToTime(b)};
Mg.prototype.map=function(z){return new ODu(this,z)};
Mg.prototype.joinWith=function(z){return new gR_(this,z)};
var gR_=function(){bT.apply(this,arguments);this.map=Mg.prototype.map;this.joinWith=Mg.prototype.joinWith;this.extrapolateToNow=Mg.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Mg.prototype.extrapolateUsingTimestampMap};
_.m(gR_,bT);var ODu=function(){vn.apply(this,arguments);this.map=Mg.prototype.map;this.joinWith=Mg.prototype.joinWith;this.extrapolateToNow=Mg.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Mg.prototype.extrapolateUsingTimestampMap};
_.m(ODu,vn);var zz=function(z,l){this.lastMeasurement=l;this.extrapolateToNow=Mg.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Mg.prototype.extrapolateUsingTimestampMap;this.map=Mg.prototype.map;this.joinWith=Mg.prototype.joinWith;this.clock=z};
zz.prototype.equivalentTo=function(z){return z.active};
zz.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.vP.Object.defineProperties(zz.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var wbQ=P0(function(z){if(z.value.viewportGeometrySourceName==="omid"){if(z.value.elementGeometrySourceName==="nio")return"omio";if(z.value.elementGeometrySourceName==="geo")return"omgeo"}return z.value.elementGeometrySourceName==="geo"||z.value.elementGeometrySourceName==="nio"?z.value.viewportGeometrySourceName:z.value.elementGeometrySourceName});var Qj7=H0(n4(function(z){return!isNaN(z)}),xq(function(z,l){return isNaN(z)?l:Math.min(z,l)},NaN),Ix());var Sf$=j6(H0(P0(function(z){return z.intersectionGeometry.width*z.intersectionGeometry.height/(z.exposedViewportLocalGeometry.width*z.exposedViewportLocalGeometry.height)}),P0(function(z){return isFinite(z)?Math.min(1,z):0})));var ee1=H0(j6(P0(function(z){z=z.exposureOverride?z.elementGeometry.width*z.elementGeometry.height*z.exposureOverride/(z.topWindowViewportExternalGeometry.width*z.topWindowViewportExternalGeometry.height):z.intersectionGeometry.width*z.intersectionGeometry.height/(z.topWindowViewportExternalGeometry.width*z.topWindowViewportExternalGeometry.height);return isFinite(z)?z:0})));var LyG=function(z,l){var I=this;this.timeProvider=z;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=l.pipe(Ix()).subscribe(function(b){a_$(I);I.measurementRequestObserver=b})},V3$=function(z,l){a_$(z);
z.lastMeasurementRequest=z.timeProvider.setTimeout(function(){var I;return void((I=z.measurementRequestObserver)==null?void 0:I.next())},l)},a_$=function(z){z.lastMeasurementRequest!==null&&z.timeProvider.clearTimeout(z.lastMeasurementRequest);
z.lastMeasurementRequest=null};
LyG.prototype.dispose=function(){a_$(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var GTA=function(){};var fJx=function(z,l){this.context=z;this.strategies=l};
_.m(fJx,GTA);fJx.prototype.buildGeometrySource=function(z,l){var I=this.strategies.map(function(M){return M.buildGeometrySource(z,l)}),b=IJx(I.map(function(M){return M.geometrySource})),v=b.capturedErrors.pipe(N0A());
return{geometrySource:b.chain.pipe(mH(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:v,strategyErrors:b.capturedErrors}].concat(_.ht(I.map(function(M){return M.additionalOutputs}))))}};
var N0A=function(){return xq(function(z,l){l instanceof ox?z.push(l.measurementStrategyFailureReason):z.push(-1);return z},[])};var k3f=function(z,l){this.context=z;this.poller=l};
_.m(k3f,GTA);k3f.prototype.buildGeometrySource=function(z,l){var I=bPQ(Mm1(this.context,this.poller),Zot(this.context,l.requestSource));return{geometrySource:lJ5(z.measurableCreative.pipe(I),l.inApp),additionalOutputs:{}}};var Cs1=function(z,l,I){I=I===void 0?Ret(z,l):I;this.context=z;this.intersectionObserverStrategy=I};
_.m(Cs1,GTA);Cs1.prototype.buildGeometrySource=function(z,l){var I=this.intersectionObserverStrategy(l.useV2);return{geometrySource:lJ5(z.measurableCreative.pipe(I,mMG(this.context)),l.inApp),additionalOutputs:{}}};var ERA=function(z,l,I){var b=b===void 0?Symbol():b;this.element=z;this.immediateUrls=l;this.timeOnScreenUrls=I;this.symbol=b};var nzk=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),gPH=Object.freeze([1,.75,nzk.exposureThreshold,nzk.largeAdExposureThreshold,0]);var pSQ=function(z,l){l=l===void 0?36E5:l;var I=I===void 0?!0:I;this.creatives=new kq;this.elementsToUnregister=new kq;this.elementMap=new Map;var b=new bW(window,null);b.beaconFactory=new qi(b,new J5(b));yrt(b,this.creatives,this.elementsToUnregister,z,l,I).subscribe()},Oau=function(z,l,I,b){if(!z.elementMap.has(l)){var v=new WR(l);
z.elementMap.set(l,v);z.creatives.next(new ERA(v,I,b))}},xEY=function(z,l){z.elementsToUnregister.next(l);
var I=z.elementMap.get(l);I!==void 0&&(I.release(),z.elementMap.delete(l))};var iE1=function(z){var l=z.url;z=z.uaDataValues;this.JSC$9477_url_=l;this.uaDataValues_=z;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var I=/[?&]([^&=]+)=([^&]*)/g;z=I.exec(l);)this.urlParamValues_[z[1]]=z[2]},Fhp=function(z){z=z.uaDataValues_;
if(!z)return"";var l=M4("uap",z.platform)+M4("uapv",z.platformVersion)+M4("uafv",z.uaFullVersion)+M4("uaa",z.architecture)+M4("uam",z.model)+M4("uab",z.bitness);z.fullVersionList&&(l+="&uafvl="+encodeURIComponent(z.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
z.wow64!=null&&(l+="&uaw="+Number(z.wow64));return l.slice(1)};var uru=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(uru,_.Da);uru.prototype.getId=function(){return _.oX(this,1)};var pd=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(pd,_.Da);pd.prototype.getSeconds=function(){return Sy(this,1)};
pd.prototype.setSeconds=function(z){return _.zT(this,1,g4(z),"0")};_.rn=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(_.rn,_.Da);_.rn.prototype.getSeconds=function(){return Sy(this,1)};
_.rn.prototype.setSeconds=function(z){return _.zT(this,1,g4(z),"0")};
_.ZDI=function(z){var l=Number(hO(z,1));z=_.Gz(z,2);return new Date(l*1E3+z/1E6)};var DI=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(DI,_.Da);DI.prototype.getUrl=function(){return _.oX(this,1)};
DI.prototype.setUrl=function(z){return _.j2(this,1,z)};
DI.prototype.getHeight=function(){return _.Gz(this,2)};
DI.prototype.getWidth=function(){return _.Gz(this,3)};var x9=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(x9,_.Da);x9.prototype.getAspectRatio=function(){return dG(this,1)};
x9.prototype.getDuration=function(){return _.gi(this,pd,2)};var HDA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(HDA,_.Da);var yT0=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(yT0,_.Da);var fap=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(fap,_.Da);var C8_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(C8_,_.Da);var kT_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(kT_,_.Da);var RZA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(RZA,_.Da);var mZ_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(mZ_,_.Da);var K7z=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(K7z,_.Da);var tA_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(tA_,_.Da);var Ob=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Ob,_.Da);var gO=[2,4,5,6,7];var B0u=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(B0u,_.Da);var Yx=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Yx,_.Da);_.p=Yx.prototype;_.p.getId=function(){return _.gi(this,uru,1)};
_.p.getName=function(){return _.oX(this,2)};
_.p.setDescription=function(z){return _.j2(this,3,z)};
_.p.getUrl=function(){return _.oX(this,8)};
_.p.setUrl=function(z){return _.j2(this,8,z)};
var GL=function(z){return _.OA(z,DI,10,_.g1())};
Yx.prototype.getOwner=function(z){var l=_.aC(this,40,_.m0,3,!0);WQS(l,z);return l[z]};
Yx.prototype.getVersion=function(){return Sy(this,45)};
var Ng=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Ng,_.Da);_.Eb=[0,JO,O$p];_.uT=[0,JO,O$p];var XQu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(XQu,_.Da);var ZI=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(ZI,_.Da);ZI.prototype.getStatus=function(){return _.Px(this,1)};
ZI.prototype.removeItem=function(z){return kQY(this,2,z)};var qv_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(qv_,_.Da);qv_.prototype.getName=function(){return _.oX(this,8)};var Hn=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Hn,_.Da);Hn.prototype.getCommand=function(){return _.Px(this,1)};
Hn.prototype.getSource=function(){return _.gi(this,qv_,2)};
Hn.prototype.setVisible=function(z){return _.dm(this,5,z)};
Hn.prototype.removeItem=function(z){return kQY(this,7,z)};var iDA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(iDA,_.Da);iDA.prototype.getCommand=function(){return _.Px(this,1)};
iDA.prototype.removeItem=function(z){return kQY(this,4,z)};
var F7z=_.kR(iDA);var yL=function(z,l,I){I=I===void 0?Error():I;var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=z;l+=":";I instanceof Error?(this.message=l+I.message,this.stack=I.stack||""):(this.message=l+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(yL,Error);_.Q9=function(){this.JSC$9535_disposed_=this.JSC$9535_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Q9.prototype.JSC$9535_disposed_=!1;_.Q9.prototype.isDisposed=function(){return this.JSC$9535_disposed_};
_.Q9.prototype.dispose=function(){this.JSC$9535_disposed_||(this.JSC$9535_disposed_=!0,this.disposeInternal())};
_.Q9.prototype[Symbol.dispose]=function(){this.dispose()};
_.kN=function(z,l){z.addOnDisposeCallback(_.tH(_.p0,l))};
_.Q9.prototype.addOnDisposeCallback=function(z,l){this.JSC$9535_disposed_?l!==void 0?z.call(l):z():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),l&&(z=z.bind(l)),this.onDisposeCallbacks_.push(z))};
_.Q9.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var fd=function(z){_.Q9.call(this);this.wpc=z};
_.m(fd,_.Q9);fd.prototype.p58=function(){return this.wpc.f()};
fd.prototype.xT0=function(z){return this.wpc.c(z)};
fd.prototype.vX=function(z){return this.wpc.m(crt(z))};
fd.prototype.aH0=function(z){return this.wpc.mws(crt(z))};
var xN=function(z){_.Q9.call(this);var l=this;this.vm=z;this.t9i="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.x4W=void 0;this.cCN=this.vm.p;this.pXc=this.qSf.bind(this);this.addOnDisposeCallback(function(){return void Quu(l)})};
_.m(xN,_.Q9);var Yvn=function(z){var l;return _.O(function(I){if(I.nextAddress==1){if(!z.vm.wpc)throw new yL(30,"NWA");return z.knf?I.return(z.knf):I.yield(z.vm.wpc(),2)}l=I.yieldResult;z.knf=new fd(l);return I.return(z.knf)})};
xN.prototype.snapshot=function(z){return this.vm.s(Object.assign({},z.jy&&{c:z.jy},z.loM&&{s:z.loM},z.xCn!==void 0&&{p:z.xCn}))};
xN.prototype.qSf=function(z){this.vm.e(z)};
xN.prototype.wlf=function(z,l){return this.vm.c(z,l,!1)};
var Quu=function(z){z.x4W!==void 0&&(z.t9i.forEach(function(l){var I;(I=z.x4W)==null||I.removeEventListener(l,z.pXc)}),z.x4W=void 0)};
xN.prototype.muc=function(){return this.vm.l()};var Cd=function(){_.Q9.apply(this,arguments);this.jMi=1};
_.m(Cd,_.Q9);Cd.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.jMi++;return this};
Cd.prototype.dispose=function(){--this.jMi||_.Q9.prototype.dispose.call(this)};var T0M=function(z){this.fyd=z;z.addNewEventMetric("/client_streamz/bg/frs",_.uW("mk"))};
T0M.prototype.record=function(z,l){this.fyd.record("/client_streamz/bg/frs",z,l)};
var cT0=function(z){this.vI1=z;z.addNewEventMetric("/client_streamz/bg/wrl",_.uW("mn"),EA("ac"),EA("sc"),_.uW("rk"),_.uW("mk"))};
cT0.prototype.record=function(z,l,I,b,v,M){this.vI1.record("/client_streamz/bg/wrl",z,l,I,b,v,M)};
var Sv_=function(z){this.zjO=z;z.addNewCounter("/client_streamz/bg/ec",_.uW("en"),_.uW("mk"))};
Sv_.prototype.increment=function(z,l){this.zjO.JSC$9788_incrementCounter("/client_streamz/bg/ec",z,l)};
var dZ4=function(z){this.r6B=z;z.addNewEventMetric("/client_streamz/bg/el",_.uW("en"),_.uW("mk"))};
dZ4.prototype.record=function(z,l,I){this.r6B.record("/client_streamz/bg/el",z,l,I)};
var oRn=function(z){this.uFf=z;z.addNewCounter("/client_streamz/bg/cec",EA("ec"),_.uW("mk"))};
oRn.prototype.increment=function(z,l){this.uFf.JSC$9788_incrementCounter("/client_streamz/bg/cec",z,l)};
var P8j=function(z){this.d7S=z;z.addNewCounter("/client_streamz/bg/po/csc",EA("cs"),_.uW("mk"))};
P8j.prototype.increment=function(z,l){this.d7S.JSC$9788_incrementCounter("/client_streamz/bg/po/csc",z,l)};
var hZw=function(z){this.oIS=z;z.addNewCounter("/client_streamz/bg/po/ctav",_.uW("av"),_.uW("mk"))};
hZw.prototype.increment=function(z,l){this.oIS.JSC$9788_incrementCounter("/client_streamz/bg/po/ctav",z,l)};
var su_=function(z){this.ayx=z;z.addNewCounter("/client_streamz/bg/po/cwsc",_.uW("su"),_.uW("mk"))};
su_.prototype.increment=function(z,l){this.ayx.JSC$9788_incrementCounter("/client_streamz/bg/po/cwsc",z,l)};var xBt=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(xBt,_.Da);var DBp=function(z,l){return _.Jy(z,3,l,E0t)};var rTu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(rTu,_.Da);var $ZI=[1,2,3];var eZn=[0,$ZI,_.pN,gL7,ELt];var wQw=[0,_.Db,[0,Vk,_.jy]];var AT_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(AT_,_.Da);var W7M=[1,2,3];var nRn=[0,W7M,x2Y,vLQ,_.xA,wQw];var L7p=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(L7p,_.Da);var UZ_=[0,_.Db,eZn,nRn];var aau=[0,_.vc];var VAA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(VAA,_.Da);var juA=[0,_.vc,-1,_.Iq];var JTu=[0,_.vc,-1,_.l2,_.Iq];var zPM=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(zPM,_.Da);var l10=[1,2,3];var I1p=[0,l10,_.xA,juA,_.xA,JTu,_.xA,aau];var b4n=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(b4n,_.Da);b4n.prototype.JSC$9608_serializeBinary=su1([0,_.vc,I1p,unx,_.Db,UZ_,Glu,N$Y]);var vd_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(vd_,_.Da);var De_=function(z){var l=new b4n;l=_.Th(l,1,z.JSC$9724_metricName);var I=MYI(z);l=_.Jy(l,3,I,_.fl);I=[];for(var b=[],v=_.D(z.cellMap.keys()),M=v.next();!M.done;M=v.next())b.push(M.value.split(","));for(v=0;v<b.length;v++){M=b[v];for(var x=z.cellType,g=z.getCells(M)||[],G=[],u=0;u<g.length;u++){var Z=g[u],H=Z&&Z.cellValue;Z=new AT_;switch(x){case 3:H=Number(H);Number.isFinite(H)&&f2(Z,1,W7M,g4(H));break;case 2:f2(Z,2,W7M,_.W_(Number(H)))}G.push(Z)}x=G;for(g=0;g<x.length;g++){G=x[g];u=new L7p;G=_.tT(u,
2,G);u=[];Z=p0_(z);for(H=0;H<Z.length;H++){var y=Z[H],f=M[H],R=new rTu;switch(y){case 3:f2(R,1,$ZI,RC(String(f)));break;case 2:y=Number(f);Number.isFinite(y)&&f2(R,2,$ZI,_.vX(y));break;case 1:f2(R,3,$ZI,g0t(f==="true"))}u.push(R)}Qk(G,1,u);I.push(G)}}Qk(l,4,I);return l};var xew=function(z){if(!z)return"";if(/^about:(?:blank|srcdoc)$/.test(z))return window.origin||"";z.indexOf("blob:")===0&&(z=z.substring(5));z=z.split("#")[0].split("?")[0];z=z.toLowerCase();z.indexOf("//")==0&&(z=window.location.protocol+z);/^[\w\-]*:\/\//.test(z)||(z=window.location.href);var l=z.substring(z.indexOf("://")+3),I=l.indexOf("/");I!=-1&&(l=l.substring(0,I));I=z.substring(0,z.indexOf("://"));if(!I)throw Error("qa`"+z);if(I!=="http"&&I!=="https"&&I!=="chrome-extension"&&I!=="moz-extension"&&
I!=="file"&&I!=="android-app"&&I!=="chrome-search"&&I!=="chrome-untrusted"&&I!=="chrome"&&I!=="app"&&I!=="devtools")throw Error("ra`"+I);z="";var b=l.indexOf(":");if(b!=-1){var v=l.substring(b+1);l=l.substring(0,b);if(I==="http"&&v!=="80"||I==="https"&&v!=="443")z=":"+v}return I+"://"+l+z};var gdn=function(z,l,I){var b=String(_.v7.location.href);return b&&z&&l?[l,O4_(xew(b),z,I||null)].join(" "):null},O4_=function(z,l,I){var b=[],v=[];
if((Array.isArray(I)?2:1)==1)return v=[l,z],_.UZ(b,function(g){v.push(g)}),GgI(v.join(" "));
var M=[],x=[];_.UZ(I,function(g){x.push(g.key);M.push(g.value)});
I=Math.floor((new Date).getTime()/1E3);v=M.length==0?[I,l,z]:[M.join(":"),I,l,z];_.UZ(b,function(g){v.push(g)});
z=GgI(v.join(" "));z=[I,z];x.length==0||z.push(x.join(""));return z.join("_")},GgI=function(z){var l=$yQ();
l.update(z);return l.digestString().toLowerCase()};var k9=function(z){this.JSC$9619_document_=z||{cookie:""}},NH_;
_.p=k9.prototype;_.p.isEnabled=function(){if(!_.v7.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};
_.p.set=function(z,l,I){var b=!1;if(typeof I==="object"){var v=I.sameSite;b=I.secure||!1;var M=I.domain||void 0;var x=I.path||void 0;var g=I.maxAge}if(/[;=\s]/.test(z))throw Error("sa`"+z);if(/[;\r\n]/.test(l))throw Error("ta`"+l);g===void 0&&(g=-1);I=M?";domain="+M:"";x=x?";path="+x:"";b=b?";secure":"";g=g<0?"":g==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+g*1E3)).toUTCString();this.JSC$9619_document_.cookie=z+"="+l+I+x+g+b+(v!=null?";samesite="+v:"")};
_.p.get=function(z,l){for(var I=z+"=",b=(this.JSC$9619_document_.cookie||"").split(";"),v=0,M;v<b.length;v++){M=ZS(b[v]);if(M.lastIndexOf(I,0)==0)return M.slice(I.length);if(M==z)return""}return l};
_.p.remove=function(z,l,I){var b=this.containsKey(z);this.set(z,"",{maxAge:0,path:l,domain:I});return b};
_.p.getKeys=function(){return NH_(this).keys};
_.p.getValues=function(){return NH_(this).values};
_.p.isEmpty=function(){return!this.JSC$9619_document_.cookie};
_.p.getCount=function(){return this.JSC$9619_document_.cookie?(this.JSC$9619_document_.cookie||"").split(";").length:0};
_.p.containsKey=function(z){return this.get(z)!==void 0};
_.p.containsValue=function(z){for(var l=NH_(this).values,I=0;I<l.length;I++)if(l[I]==z)return!0;return!1};
_.p.clear=function(){for(var z=NH_(this).keys,l=z.length-1;l>=0;l--)this.remove(z[l])};
NH_=function(z){z=(z.JSC$9619_document_.cookie||"").split(";");for(var l=[],I=[],b,v,M=0;M<z.length;M++)v=ZS(z[M]),b=v.indexOf("="),b==-1?(l.push(""),I.push(v)):(l.push(v.substring(0,b)),I.push(v.substring(b+1)));return{keys:l,values:I}};
_.mZ=new k9(typeof document=="undefined"?null:document);var K1x,Edp;K1x=function(){var z=_.v7.__SAPISID||_.v7.__APISID||_.v7.__3PSAPISID||_.v7.__1PSAPISID||_.v7.__OVERRIDE_SID;if(z)return!0;typeof document!=="undefined"&&(z=new k9(document),z=z.get("SAPISID")||z.get("APISID")||z.get("__Secure-3PAPISID")||z.get("__Secure-1PAPISID"));return!!z};
Edp=function(z,l,I,b){(z=_.v7[z])||typeof document==="undefined"||(z=(new k9(document)).get(l));return z?gdn(z,I,b):null};
_.vCQ=function(z){var l=xew(_.v7==null?void 0:_.v7.location.href),I=[];if(K1x()){l=l.indexOf("https:")==0||l.indexOf("chrome-extension:")==0||l.indexOf("chrome-untrusted://new-tab-page")==0||l.indexOf("moz-extension:")==0;var b=l?_.v7.__SAPISID:_.v7.__APISID;b||typeof document==="undefined"||(b=new k9(document),b=b.get(l?"SAPISID":"APISID")||b.get("__Secure-3PAPISID"));(b=b?gdn(b,l?"SAPISIDHASH":"APISIDHASH",z):null)&&I.push(b);l&&((l=Edp("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",z))&&I.push(l),
(z=Edp("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",z))&&I.push(z))}return I.length==0?null:I.join(" ")};var uPw=function(){this.minSize=1024};
uPw.prototype.compress=function(z){var l,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return l=new CompressionStream("gzip"),I=(new Response(l.readable)).arrayBuffer(),b=l.writable.getWriter(),M.yield(b.write((new TextEncoder).encode(z)),2);case 2:return M.yield(b.close(),3);case 3:return v=Uint8Array,M.yield(I,4);case 4:return M.return(new v(M.yieldResult))}})};
uPw.prototype.isSupported=function(z){return z<this.minSize?!1:typeof CompressionStream!=="undefined"};var Z4u=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Z4u,_.Da);var RW=function(z,l){this.intervalMs=z;this.callback=l;this.enabled=!1;this.nowFn=function(){return _.gG()};
this.lastTimeMs=this.nowFn()};
RW.prototype.setInterval=function(z){this.intervalMs=z;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
RW.prototype.start=function(){var z=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){z.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
RW.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
RW.prototype.tick=function(){var z=this;if(this.enabled){var l=Math.max(this.nowFn()-this.lastTimeMs,0);l<this.intervalMs*.8?this.timer=setTimeout(function(){z.tick()},this.intervalMs-l):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var H4n=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(H4n,_.Da);var ytA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(ytA,_.Da);var f1A=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(f1A,_.Da);f1A.prototype.getTransmissionType=function(){return _.Px(this,1)};var WFQ=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(WFQ,_.Da);WFQ.prototype.getVersion=function(){return _.oX(this,2)};var mJ=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(mJ,_.Da);var Ark=function(z){Qk(nPx,1,z)};
mJ.prototype.getModel=function(){return _.oX(this,6)};
var Ctu=_.kR(mJ);var kg_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(kg_,_.Da);var ebf=["platform","platformVersion","architecture","model","uaFullVersion"],nPx=new mJ,w81=null;var Kd=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Kd,_.Da);var RPp=function(z){return _.G6(z,1,1)};var meM=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,4)};
_.m(meM,_.Da);_.tz=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,36)};
_.m(_.tz,_.Da);_.tz.prototype.getExperimentIds=function(){return _.gi(this,Z4u,16)};var KX_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,19)};
_.m(KX_,_.Da);KX_.prototype.setLogSource=function(z){return _.G6(this,2,z)};
KX_.prototype.setScheduler=function(z){return _.G6(this,10,z)};var BHA=function(z,l){this.isServiceWorkerScope=l=l===void 0?!1:l;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new KX_;Number.isInteger(z)&&this.logRequest.setLogSource(z);l||(this.locale=document.documentElement.getAttribute("lang"));tYp(this,new Kd)};
BHA.prototype.setLogSource=function(z){this.logRequest.setLogSource(z);return this};
var tYp=function(z,l){_.tT(z.logRequest,1,l);_.Px(l,1)||RPp(l);z.isServiceWorkerScope||(l=Bn(z),_.oX(l,5)||_.Th(l,5,z.locale));z.uach&&(l=Bn(z),_.gi(l,mJ,9)||_.tT(l,9,z.uach))},X0n=function(z,l){z.transmissionType=l},quu=function(z){var l=l===void 0?ebf:l;
var I=z.isServiceWorkerScope?void 0:$q();I?LFp(I,l).then(function(b){z.uach=Ctu(b!=null?b:"[]");b=Bn(z);_.tT(b,9,z.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Bn=function(z){var l=_.gi(z.logRequest,Kd,1);
l||(l=new Kd,tYp(z,l));z=l;l=_.gi(z,kg_,11);l||(l=new kg_,_.tT(z,11,l));return l};
BHA.prototype.build=function(z,l,I,b,v,M){l=l===void 0?0:l;I=I===void 0?0:I;b=b===void 0?null:b;v=v===void 0?0:v;M=M===void 0?0:M;if(!this.isServiceWorkerScope){var x=Bn(this);var g=new f1A;g=_.G6(g,1,this.transmissionType);g=_.Zv(g,2,this.isFinal);I=_.$x(g,3,I>0?I:void 0);I=_.$x(I,4,v>0?v:void 0);I=_.$x(I,5,M>0?M:void 0);v=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=v[_.D4]|0;I=fn(I,M)?I:K0f(I,v,M)?mKQ(I,v):new I.constructor(r4(v,M,!0));_.tT(x,10,I)}x=this.logRequest.clone();I=Date.now().toString();
x=_.NW(x,4,g4(I));z=z.slice();z=Qk(x,3,z);b&&(x=new H4n,b=_.$x(x,13,b),x=new ytA,b=_.tT(x,2,b),x=new meM,b=_.tT(x,1,b),b=_.G6(b,2,9),_.tT(z,18,b));l&&_.BW(z,14,l);return z};Hl.prototype.currBackoffCount_=0;Hl.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Hl.prototype.getValue=function(){return this.currValue_};
var i4M=function(z){z.currBaseValue_=Math.min(z.maxValue_,z.currBaseValue_*z.backoffFactor_);z.currValue_=Math.min(z.maxValue_,z.currBaseValue_+(z.randomFactor_?Math.round(z.randomFactor_*(Math.random()-.5)*2*z.currBaseValue_):0));z.currBackoffCount_++};var R_Q=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,8)};
_.m(R_Q,_.Da);var FX0=_.kR(R_Q);var m2p=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(m2p,_.Da);var XS;XS=new KCS;var qg=function(z){_.Q9.call(this);var l=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9697_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$9697_sendBeaconApiEnabled=!1;this.logSource=z.logSource;this.getAuthHeaderValue=
z.getAuthHeaderValue||function(){};
this.logRequestBuilder=new BHA(z.logSource,z.isServiceWorkerScope);this.network=z.network||null;this.productID=z.productID||null;this.bufferSize=1E3;this.clearcutUrl=z.urlOverride||null;this.sessionIndex=z.sessionIndex||null;this.disableAutomaticFlush=z.disableAutomaticFlush||!1;this.withCredentials=!z.disableWithCredentials;this.isServiceWorkerScope=z.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!$q()&&!!$q().navigator&&$q().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(QLp())).searchParams&&!!(new URL(QLp())).searchParams.set;var I=RPp(new Kd);tYp(this.logRequestBuilder,I);this.flushBackoff=new Hl(1E4,3E5,.1);z=YuA(this,z.backgroundJobDeferrer);this.JSC$9697_flushTimer=new RW(this.flushBackoff.getValue(),z);this.backupTimer=new RW(6E5,z);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){TH4(l);
var b;(b=l.metalogService)==null||b.flush()}}),document.addEventListener("pagehide",function(){TH4(l);
var b;(b=l.metalogService)==null||b.flush()}))};
_.m(qg,_.Q9);var YuA=function(z,l){return z.isBrowserSupported?l?function(){l().then(function(){z.flush()})}:function(){z.flush()}:function(){}};
qg.prototype.disposeInternal=function(){TH4(this);this.JSC$9697_flushTimer.stop();this.backupTimer.stop();_.Q9.prototype.disposeInternal.call(this)};
var ct_=function(z){z.clearcutUrl||(z.clearcutUrl=QLp());try{return(new URL(z.clearcutUrl)).toString()}catch(l){return(new URL(z.clearcutUrl,$q().location.origin)).toString()}};
qg.prototype.dispatch=function(z){if(z instanceof _.tz)this.log(z);else try{var l=new _.tz,I=z.serialize();var b=_.Th(l,8,I);this.log(b)}catch(v){iT(this,4,1)}};
var iT=function(z,l,I){z.metalogService&&z.metalogService.increment(l,I)};
qg.prototype.log=function(z){iT(this,2,1);if(this.isBrowserSupported){z=z.clone();var l=this.sequencePosition++;z=_.BW(z,21,l);this.componentId&&_.Th(z,26,this.componentId);l=z;if(Yj7(_.tO(l,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.NW(l,1,g4(I))}_.Q_S(_.tO(l,15))!=null||_.BW(l,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.tT(l,16,I));iT(this,1,1);l=this.pendingEvents.length-this.bufferSize+1;l>0&&(this.pendingEvents.splice(0,l),
this.numLogsDroppedSinceLastFlush+=l,iT(this,3,l));this.pendingEvents.push(z);this.disableAutomaticFlush||this.JSC$9697_flushTimer.enabled||this.JSC$9697_flushTimer.start()}};
qg.prototype.flush=function(z,l){var I=this;if(this.pendingEvents.length===0)z&&z();else if(this.JSC$9697_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Suu(this);else{var b=Date.now();if(this.noFlushUntilMs>b&&this.startWaitingMs<b)l&&l("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?X0n(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var v=this.pendingEvents.length,
M=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),x=this.getAuthHeaderValue();if(x&&this.lastFailedAuth===x)l&&l("stale-auth-token");else{this.pendingEvents=[];this.JSC$9697_flushTimer.enabled&&this.JSC$9697_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;b=M.serialize();var g;this.JSC$9697_compressor&&this.JSC$9697_compressor.isSupported(b.length)&&
(g=this.JSC$9697_compressor.compress(b));var G=deu(this,b,x),u=function(y){I.flushBackoff.reset();I.JSC$9697_flushTimer.setInterval(I.flushBackoff.getValue());if(y){var f=null;try{var R=JSON.stringify(JSON.parse(y.replace(")]}'\n","")));f=FX0(R)}catch(F){}f&&(y=Number(Sy(f,1,_.SM("-1"))),y>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+y),Jpx(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,XS.fieldIndex),VMH(f,XS.fieldIndex),f=XS.ctor?XS.getExtensionFn(f,XS.ctor,XS.fieldIndex,
XS.JSC$8876_hasMessageId):XS.getExtensionFn(f,XS.fieldIndex,null,XS.JSC$8876_hasMessageId),f=f===null?void 0:f)&&(f=_.Gz(f,1,-1),f!==-1&&(I.flushBackoff=new Hl(f<1?1:f,3E5,.1),I.JSC$9697_flushTimer.setInterval(I.flushBackoff.getValue())))}z&&z();I.numRetriesSinceLastSuccessfulFlush=0},Z=function(y,f){var R=_.OA(M,_.tz,3,_.g1());
var F=Number(Sy(M,14));i4M(I.flushBackoff);I.JSC$9697_flushTimer.setInterval(I.flushBackoff.getValue());y===401&&x&&(I.lastFailedAuth=x);F&&(I.numLogsDroppedSinceLastFlush+=F);f===void 0&&(f=I.isRetryable(y));f&&(I.pendingEvents=R.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$9697_flushTimer.enabled||I.JSC$9697_flushTimer.start());iT(I,7,1);l&&l("net-send-failed",y);++I.numRetriesSinceLastSuccessfulFlush},H=function(){I.network&&I.network.send(G,u,Z)};
g?g.then(function(y){iT(I,5,v);G.requestHeaders["Content-Encoding"]="gzip";G.requestHeaders["Content-Type"]="application/binary";G.body=y;G.bodyType=2;H()},function(){iT(I,6,v);
H()}):H()}}}};
var deu=function(z,l,I){I=I===void 0?null:I;var b=b===void 0?z.withCredentials:b;var v={},M=new URL(ct_(z));I&&(v.Authorization=I);z.sessionIndex&&(v["X-Goog-AuthUser"]=z.sessionIndex,M.searchParams.set("authuser",z.sessionIndex));z.pageId&&(Object.defineProperty(v,"X-Goog-PageId",{value:z.pageId}),M.searchParams.set("pageId",z.pageId));return{url:M.toString(),body:l,bodyType:1,requestHeaders:v,requestType:"POST",withCredentials:b,timeoutMillis:z.timeoutMillis}},TH4=function(z){z.logRequestBuilder.isFinal=
!0;
z.flush();z.logRequestBuilder.isFinal=!1},Suu=function(z){od_(z,function(l,I){l=new URL(l);
l.searchParams.set("format","json");var b=!1;try{b=$q().navigator.sendBeacon(l.toString(),I.serialize())}catch(v){}b||(z.isSendBeaconSupported=!1);return b})},od_=function(z,l){if(z.pendingEvents.length!==0){var I=new URL(ct_(z));
I.searchParams.delete("format");var b=z.getAuthHeaderValue();b&&I.searchParams.set("auth",b);I.searchParams.set("authuser",z.sessionIndex||"0");for(b=0;b<10&&z.pendingEvents.length;++b){var v=z.pendingEvents.slice(0,32),M=z.logRequestBuilder.build(v,z.numLogsDroppedSinceLastFlush,z.numRetriesSinceLastSuccessfulFlush,z.productID,z.persistedLogRecoveredCount,z.persistedLogExpiredCount);if(!l(I.toString(),M)){++z.numRetriesSinceLastSuccessfulFlush;break}z.numLogsDroppedSinceLastFlush=0;z.numRetriesSinceLastSuccessfulFlush=
0;z.persistedLogRecoveredCount=0;z.persistedLogExpiredCount=0;z.pendingEvents=z.pendingEvents.slice(v.length)}z.JSC$9697_flushTimer.enabled&&z.JSC$9697_flushTimer.stop()}};
qg.prototype.isRetryable=function(z){return 500<=z&&z<600||z===401||z===0};
var QLp=function(){return"https://play.google.com/log?format=json&hasfast=true"};var PtA=function(){this.abortSupported=typeof AbortController!=="undefined"};
PtA.prototype.send=function(z,l,I){var b=this,v,M,x,g,G,u,Z,H,y,f;return _.O(function(R){switch(R.nextAddress){case 1:return M=(v=b.abortSupported?new AbortController:void 0)?setTimeout(function(){v.abort()},z.timeoutMillis):void 0,_.RL(R,2,3),x=Object.assign({},{method:z.requestType,
headers:Object.assign({},z.requestHeaders)},z.body&&{body:z.body},z.withCredentials&&{credentials:"include"},{signal:z.timeoutMillis&&v?v.signal:null}),R.yield(fetch(z.url,x),5);case 5:g=R.yieldResult;if(g.status!==200){(G=I)==null||G(g.status);R.jumpTo(3);break}if((u=l)==null){R.jumpTo(7);break}return R.yield(g.text(),8);case 8:u(R.yieldResult);case 7:case 3:_.K4(R);clearTimeout(M);_.B0(R,0);break;case 2:Z=_.XP(R);switch((H=Z)==null?void 0:H.name){case "AbortError":(y=I)==null||y(408);break;default:(f=
I)==null||f(400)}R.jumpTo(3)}})};
PtA.prototype.getTransmissionType=function(){return 4};_.C0=function(z,l){l=l===void 0?"0":l;_.Q9.call(this);this.logSource=z;this.sessionIndex=l;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9715_clearExperimentIds=this.productID=null;this.JSC$9715_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.m(_.C0,_.Q9);var vs$=function(z,l){z.buildLabel=l;return z},bG1=function(z,l){z.network=l;
return z},pVQ=function(z,l){z.JSC$9715_clearExperimentIds=l},IQS=function(z){z.JSC$9715_sendBeaconApiEnabled=!0;
return z};
_.C0.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.C0.prototype.build=function(){this.network||(this.network=new PtA);var z=new qg({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.vCQ,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.kN(this,z);if(this.buildLabel){var l=this.buildLabel,I=
Bn(z.logRequestBuilder);_.Th(I,7,l)}z.JSC$9697_compressor=new uPw;this.componentId&&(z.componentId=this.componentId);this.productID&&(z.productID=this.productID);this.pageId&&(z.pageId=this.pageId);this.JSC$9715_clearExperimentIds&&((I=this.JSC$9715_clearExperimentIds)?(z.experimentIds||(z.experimentIds=new Z4u),l=z.experimentIds,I=I.serialize(),_.Th(l,4,I)):z.experimentIds&&_.NW(z.experimentIds,4));this.JSC$9715_sendBeaconApiEnabled&&(z.JSC$9697_sendBeaconApiEnabled=z.isSendBeaconSupported);quu(z.logRequestBuilder);
this.bufferSize&&(z.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(z);return z};var OGH=function(z,l,I,b,v,M,x){z=z===void 0?-1:z;l=l===void 0?"":l;I=I===void 0?"":I;b=b===void 0?!1:b;v=v===void 0?"":v;_.Q9.call(this);this.logSource=z;this.componentId=l;M?l=M:(z=new _.C0(z,"0"),z.componentId=l,_.kN(this,z),I!==""&&(z.destinationUrl=I),b&&(z.serviceWorkerScopeEnabled=!0),v&&vs$(z,v),x&&bG1(z,x),l=z.build());this.JSC$9719_transport=l};
_.m(OGH,_.Q9);OGH.prototype.flush=function(z){z=z||[];if(z.length){for(var l=new vd_,I=[],b=0;b<z.length;b++){var v=z[b],M=De_(v);I.push(M);v.clear()}Qk(l,1,I);this.JSC$9719_transport.dispatch(l);this.JSC$9719_transport.flush()}};var hPu=function(z){this.cellValue=z};var FS=function(z,l,I){this.JSC$9724_metricName=z;this.cellType=l;this.fields=I||[];this.cellMap=new Map},p0_=function(z){return z.fields.map(function(l){return l.fieldType})},MYI=function(z){return z.fields.map(function(l){return l.fieldName})};
_.p=FS.prototype;_.p.addCell=function(z){var l=_.AT.apply(1,arguments),I=this.getCells(l);I?I.push(new hPu(z)):this.JSC$9724_setCell(z,l)};
_.p.JSC$9724_setCell=function(z){var l=this.JSC$9724_getKey(_.AT.apply(1,arguments));this.cellMap.set(l,[new hPu(z)])};
_.p.getCells=function(){var z=this.JSC$9724_getKey(_.AT.apply(0,arguments));return this.cellMap.has(z)?this.cellMap.get(z):void 0};
_.p.getCell=function(){var z=this.getCells(_.AT.apply(0,arguments));return z&&z.length?z[0]:void 0};
_.p.clear=function(){this.cellMap.clear()};
_.p.JSC$9724_getKey=function(){var z=_.AT.apply(0,arguments);return z?z.join(","):"key"};var sL_=function(z,l){FS.call(this,z,3,l)};
_.m(sL_,FS);sL_.prototype.JSC$9727_incrementCounterBy=function(z){var l=_.AT.apply(1,arguments),I=0,b=this.getCell(l);b&&(I=b.cellValue);this.JSC$9724_setCell(I+z,l)};var rtM=function(z,l){FS.call(this,z,2,l)};
_.m(rtM,FS);rtM.prototype.record=function(z){this.addCell(z,_.AT.apply(1,arguments))};_.QL=function(z){this.id=z};
_.QL.prototype.toString=function(){return this.id};_.Y9=function(z,l){this.type=z instanceof _.QL?String(z):z;this.currentTarget=this.target=l;this.defaultPrevented=this.propagationStopped_=!1};
_.Y9.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Y9.prototype.preventDefault=function(){this.defaultPrevented=!0};_.TL=function(z,l){_.Y9.call(this,z?z.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;z&&this.init(z,l)};
_.Gs(_.TL,_.Y9);
_.TL.prototype.init=function(z,l){var I=this.type=z.type,b=z.changedTouches&&z.changedTouches.length?z.changedTouches[0]:null;this.target=z.target||z.srcElement;this.currentTarget=l;l=z.relatedTarget;l||(I=="mouseover"?l=z.fromElement:I=="mouseout"&&(l=z.toElement));this.relatedTarget=l;b?(this.clientX=b.clientX!==void 0?b.clientX:b.pageX,this.clientY=b.clientY!==void 0?b.clientY:b.pageY,this.screenX=b.screenX||0,this.screenY=b.screenY||0):(this.offsetX=_.yk||z.offsetX!==void 0?z.offsetX:z.layerX,
this.offsetY=_.yk||z.offsetY!==void 0?z.offsetY:z.layerY,this.clientX=z.clientX!==void 0?z.clientX:z.pageX,this.clientY=z.clientY!==void 0?z.clientY:z.pageY,this.screenX=z.screenX||0,this.screenY=z.screenY||0);this.button=z.button;this.keyCode=z.keyCode||0;this.key=z.key||"";this.charCode=z.charCode||(I=="keypress"?z.keyCode:0);this.ctrlKey=z.ctrlKey;this.altKey=z.altKey;this.shiftKey=z.shiftKey;this.metaKey=z.metaKey;this.pointerId=z.pointerId||0;this.pointerType=z.pointerType;this.state=z.state;
this.timeStamp=z.timeStamp;this.event_=z;z.defaultPrevented&&_.TL.superClass_.preventDefault.call(this)};
_.TL.prototype.isButton=function(z){return this.event_.button==z};
_.TL.prototype.stopPropagation=function(){_.TL.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.TL.prototype.preventDefault=function(){_.TL.superClass_.preventDefault.call(this);var z=this.event_;z.preventDefault?z.preventDefault():z.returnValue=!1};var $eM="closure_listenable_"+(Math.random()*1E6|0),cn=function(z){return!(!z||!z[$eM])};var ePz=0;var w0_=function(z,l,I,b,v){this.listener=z;this.proxy=null;this.src=l;this.type=I;this.capture=!!b;this.handler=v;this.key=++ePz;this.removed=this.callOnce=!1},AtI=function(z){z.removed=!0;
z.listener=null;z.proxy=null;z.src=null;z.handler=null};y9.prototype.add=function(z,l,I,b,v){var M=z.toString();z=this.listeners[M];z||(z=this.listeners[M]=[],this.typeCount_++);var x=WXA(z,l,b,v);x>-1?(l=z[x],I||(l.callOnce=!1)):(l=new w0_(l,this.src,M,!!b,v),l.callOnce=I,z.push(l));return l};
y9.prototype.remove=function(z,l,I,b){z=z.toString();if(!(z in this.listeners))return!1;var v=this.listeners[z];l=WXA(v,l,I,b);return l>-1?(AtI(v[l]),_.KQ5(v,l),v.length==0&&(delete this.listeners[z],this.typeCount_--),!0):!1};
var ndI=function(z,l){var I=l.type;if(!(I in z.listeners))return!1;var b=_.$5(z.listeners[I],l);b&&(AtI(l),z.listeners[I].length==0&&(delete z.listeners[I],z.typeCount_--));return b};
y9.prototype.removeAll=function(z){z=z&&z.toString();var l=0,I;for(I in this.listeners)if(!z||I==z){for(var b=this.listeners[I],v=0;v<b.length;v++)++l,AtI(b[v]);delete this.listeners[I];this.typeCount_--}return l};
y9.prototype.getListener=function(z,l,I,b){z=this.listeners[z.toString()];var v=-1;z&&(v=WXA(z,l,I,b));return v>-1?z[v]:null};
y9.prototype.hasListener=function(z,l){var I=z!==void 0,b=I?z.toString():"",v=l!==void 0;return _.h7.some(this.listeners,function(M){for(var x=0;x<M.length;++x)if(!(I&&M[x].type!=b||v&&M[x].capture!=l))return!0;return!1})};
var WXA=function(z,l,I,b){for(var v=0;v<z.length;++v){var M=z[v];if(!M.removed&&M.listener==l&&M.capture==!!I&&M.handler==b)return v}return-1};var LXw,Ueu,a1M,jLu,Jtu,YC,T4,ICA,zxA,lCM,Si,b7z,VYu;LXw="closure_lm_"+(Math.random()*1E6|0);Ueu={};a1M=0;_.dZ=function(z,l,I,b,v){if(b&&b.once)return YC(z,l,I,b,v);if(Array.isArray(l)){for(var M=0;M<l.length;M++)_.dZ(z,l[M],I,b,v);return null}I=VYu(I);return cn(z)?z.listen(l,I,_.Lu(b)?!!b.capture:!!b,v):jLu(z,l,I,!1,b,v)};
jLu=function(z,l,I,b,v,M){if(!l)throw Error("va");var x=_.Lu(v)?!!v.capture:!!v,g=Si(z);g||(z[LXw]=g=new y9(z));I=g.add(l,I,b,x,M);if(I.proxy)return I;b=Jtu();I.proxy=b;b.src=z;b.listener=I;if(z.addEventListener)_.jkt||(v=x),v===void 0&&(v=!1),z.addEventListener(l.toString(),b,v);else if(z.attachEvent)z.attachEvent(zxA(l.toString()),b);else if(z.addListener&&z.removeListener)z.addListener(b);else throw Error("wa");a1M++;return I};
Jtu=function(){var z=lCM,l=function(I){return z.call(l.src,l.listener,I)};
return l};
YC=function(z,l,I,b,v){if(Array.isArray(l)){for(var M=0;M<l.length;M++)YC(z,l[M],I,b,v);return null}I=VYu(I);return cn(z)?z.listenOnce(l,I,_.Lu(b)?!!b.capture:!!b,v):jLu(z,l,I,!0,b,v)};
_.dO=function(z,l,I,b,v){if(Array.isArray(l))for(var M=0;M<l.length;M++)_.dO(z,l[M],I,b,v);else b=_.Lu(b)?!!b.capture:!!b,I=VYu(I),cn(z)?z.unlisten(l,I,b,v):z&&(z=Si(z))&&(l=z.getListener(l,I,b,v))&&T4(l)};
T4=function(z){if(typeof z==="number"||!z||z.removed)return!1;var l=z.src;if(cn(l))return ndI(l.eventTargetListeners_,z);var I=z.type,b=z.proxy;l.removeEventListener?l.removeEventListener(I,b,z.capture):l.detachEvent?l.detachEvent(zxA(I),b):l.addListener&&l.removeListener&&l.removeListener(b);a1M--;(I=Si(l))?(ndI(I,z),I.typeCount_==0&&(I.src=null,l[LXw]=null)):AtI(z);return!0};
ICA=function(z,l,I,b,v){I=VYu(I);b=!!b;return cn(z)?z.getListener(l,I,b,v):z?(z=Si(z))?z.getListener(l,I,b,v):null:null};
zxA=function(z){return z in Ueu?Ueu[z]:Ueu[z]="on"+z};
lCM=function(z,l){if(z.removed)z=!0;else{l=new _.TL(l,this);var I=z.listener,b=z.handler||z.src;z.callOnce&&T4(z);z=I.call(b,l)}return z};
Si=function(z){z=z[LXw];return z instanceof y9?z:null};
b7z="__closure_events_fn_"+(Math.random()*1E9>>>0);VYu=function(z){if(typeof z==="function")return z;z[b7z]||(z[b7z]=function(l){return z.handleEvent(l)});
return z[b7z]};_.oW=function(){_.Q9.call(this);this.eventTargetListeners_=new y9(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Gs(_.oW,_.Q9);_.oW.prototype[$eM]=!0;_.p=_.oW.prototype;_.p.setParentEventTarget=function(z){this.parentEventTarget_=z};
_.p.addEventListener=function(z,l,I,b){_.dZ(this,z,l,I,b)};
_.p.removeEventListener=function(z,l,I,b){_.dO(this,z,l,I,b)};
_.p.dispatchEvent=function(z){var l,I=this.parentEventTarget_;if(I)for(l=[];I;I=I.parentEventTarget_)l.push(I);I=this.actualEventTarget_;var b=z.type||z;if(typeof z==="string")z=new _.Y9(z,I);else if(z instanceof _.Y9)z.target=z.target||I;else{var v=z;z=new _.Y9(b,I);_.h7.extend(z,v)}v=!0;var M;if(l)for(M=l.length-1;!z.propagationStopped_&&M>=0;M--){var x=z.currentTarget=l[M];v=vqn(x,b,!0,z)&&v}z.propagationStopped_||(x=z.currentTarget=I,v=vqn(x,b,!0,z)&&v,z.propagationStopped_||(v=vqn(x,b,!1,z)&&
v));if(l)for(M=0;!z.propagationStopped_&&M<l.length;M++)x=z.currentTarget=l[M],v=vqn(x,b,!1,z)&&v;return v};
_.p.disposeInternal=function(){_.oW.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.p.listen=function(z,l,I,b){return this.eventTargetListeners_.add(String(z),l,!1,I,b)};
_.p.listenOnce=function(z,l,I,b){return this.eventTargetListeners_.add(String(z),l,!0,I,b)};
_.p.unlisten=function(z,l,I,b){return this.eventTargetListeners_.remove(String(z),l,I,b)};
_.p.removeAllListeners=function(z){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(z):0};
var vqn=function(z,l,I,b){l=z.eventTargetListeners_.listeners[String(l)];if(!l)return!0;l=l.concat();for(var v=!0,M=0;M<l.length;++M){var x=l[M];if(x&&!x.removed&&x.capture==I){var g=x.listener,G=x.handler||x.src;x.callOnce&&ndI(z.eventTargetListeners_,x);v=g.call(G,b)!==!1&&v}}return v&&!b.defaultPrevented};
_.oW.prototype.getListener=function(z,l,I,b){return this.eventTargetListeners_.getListener(String(z),l,I,b)};
_.oW.prototype.hasListener=function(z,l){return this.eventTargetListeners_.hasListener(z!==void 0?String(z):void 0,l)};var Pn=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(z){return z&&AsyncContext.Snapshot.wrap(z)}:function(z){return z};var M6M=function(z,l){this.create_=z;this.reset_=l;this.occupants_=0;this.JSC$9759_head_=null};
M6M.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var z=this.JSC$9759_head_;this.JSC$9759_head_=z.next;z.next=null}else z=this.create_();return z};
M6M.prototype.put=function(z){this.reset_(z);this.occupants_<100&&(this.occupants_++,z.next=this.JSC$9759_head_,this.JSC$9759_head_=z)};var pRn=function(){this.workTail_=this.workHead_=null};
pRn.prototype.add=function(z,l){var I=aJY.get();I.set(z,l);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
pRn.prototype.remove=function(){var z=null;this.workHead_&&(z=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),z.next=null);return z};
var aJY=new M6M(function(){return new Dj0},function(z){return z.reset()}),Dj0=function(){this.next=this.scope=this.fn=null};
Dj0.prototype.set=function(z,l){this.fn=z;this.scope=l;this.next=null};
Dj0.prototype.reset=function(){this.next=this.scope=this.fn=null};var xju,Vmu,Uyk,O74;Vmu=!1;Uyk=new pRn;_.hz=function(z,l){xju||O74();Vmu||(xju(),Vmu=!0);Uyk.add(z,l)};
O74=function(){var z=Promise.resolve(void 0);xju=function(){z.then(jYS)}};var gq_=function(z){z.prototype.$goog_Thenable=!0},Ghz=function(z){if(!z)return!1;
try{return!!z.$goog_Thenable}catch(l){return!1}};var Ns_,EqA,u5n,H7u,y7p,fCj,mjn,Bsn,FHj,q7_,fek;_.yK=function(z,l){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(z!=_.Tn)try{var I=this;z.call(l,function(b){I.resolve_(2,b)},function(b){I.resolve_(3,b)})}catch(b){this.resolve_(3,b)}};
Ns_=function(){this.next=this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
Ns_.prototype.reset=function(){this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
EqA=new M6M(function(){return new Ns_},function(z){z.reset()});
u5n=function(z,l,I){var b=EqA.get();b.JSC$9770_onFulfilled=z;b.JSC$9770_onRejected=l;b.context=I;return b};
_.Hu=function(z){if(z instanceof _.yK)return z;var l=new _.yK(_.Tn);l.resolve_(2,z);return l};
_.Ph=function(z){return new _.yK(function(l,I){I(z)})};
H7u=function(z,l,I){Z7M(z,l,I,null)||_.hz(_.tH(l,z))};
_.sb=function(z){return new _.yK(function(l,I){var b=z.length,v=[];if(b)for(var M=function(u,Z){b--;v[u]=Z;b==0&&l(v)},x=function(u){I(u)},g,G=0;G<z.length;G++)g=z[G],H7u(g,_.tH(M,G),x);
else l(v)})};
y7p=function(z){return new _.yK(function(l){var I=z.length,b=[];if(I)for(var v=function(g,G,u){I--;b[g]=G?{fulfilled:!0,value:u}:{fulfilled:!1,reason:u};I==0&&l(b)},M,x=0;x<z.length;x++)M=z[x],H7u(M,_.tH(v,x,!0),_.tH(v,x,!1));
else l(b)})};
fCj=function(z){return new _.yK(function(l,I){var b=z.length,v=[];if(b)for(var M=function(u){l(u)},x=function(u,Z){b--;
v[u]=Z;b==0&&I(v)},g,G=0;G<z.length;G++)g=z[G],H7u(g,M,_.tH(x,G));
else l(void 0)})};
_.b1=function(){var z,l,I=new _.yK(function(b,v){z=b;l=v});
return new Cl4(I,z,l)};
_.yK.prototype.then=function(z,l,I){return khA(this,Pn(typeof z==="function"?z:null),Pn(typeof l==="function"?l:null),I)};
gq_(_.yK);mjn=function(z,l,I,b){Rxu(z,u5n(l||_.Tn,I||null,b))};
_.rO=function(z,l){l=Pn(l);l=u5n(l,l);l.always=!0;Rxu(z,l);return z};
_.yK.prototype.finally=function(z){var l=this;z=Pn(z);return new _.yK(function(I,b){mjn(l,function(v){z();I(v)},function(v){z();
b(v)})})};
_.yK.prototype.thenCatch=function(z,l){return khA(this,null,Pn(z),l)};
_.yK.prototype.catch=_.yK.prototype.thenCatch;_.yK.prototype.cancel=function(z){if(this.state_==0){var l=new _.nj(z);_.hz(function(){KHA(this,l)},this)}};
var KHA=function(z,l){if(z.state_==0)if(z.parent_){var I=z.parent_;if(I.callbackEntries_){for(var b=0,v=null,M=null,x=I.callbackEntries_;x&&(x.always||(b++,x.child==z&&(v=x),!(v&&b>1)));x=x.next)v||(M=x);v&&(I.state_==0&&b==1?KHA(I,l):(M?(b=M,b.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=b),b.next=b.next.next):t6_(I),Bsn(I,v,3,l)))}z.parent_=null}else z.resolve_(3,l)},Rxu=function(z,l){z.callbackEntries_||z.state_!=2&&z.state_!=3||XRA(z);
z.callbackEntriesTail_?z.callbackEntriesTail_.next=l:z.callbackEntries_=l;z.callbackEntriesTail_=l},khA=function(z,l,I,b){var v=u5n(null,null,null);
v.child=new _.yK(function(M,x){v.JSC$9770_onFulfilled=l?function(g){try{var G=l.call(b,g);M(G)}catch(u){x(u)}}:M;
v.JSC$9770_onRejected=I?function(g){try{var G=I.call(b,g);G===void 0&&g instanceof _.nj?x(g):M(G)}catch(u){x(u)}}:x});
v.child.parent_=z;Rxu(z,v);return v.child};
_.yK.prototype.unblockAndFulfill_=function(z){this.state_=0;this.resolve_(2,z)};
_.yK.prototype.unblockAndReject_=function(z){this.state_=0;this.resolve_(3,z)};
_.yK.prototype.resolve_=function(z,l){this.state_==0&&(this===l&&(z=3,l=new TypeError("xa")),this.state_=1,Z7M(l,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=l,this.state_=z,this.parent_=null,XRA(this),z!=3||l instanceof _.nj||q7_(this,l)))};
var Z7M=function(z,l,I,b){if(z instanceof _.yK)return mjn(z,l,I,b),!0;if(Ghz(z))return z.then(l,I,b),!0;if(_.Lu(z))try{var v=z.then;if(typeof v==="function")return i7_(z,v,l,I,b),!0}catch(M){return I.call(b,M),!0}return!1},i7_=function(z,l,I,b,v){var M=!1,x=function(G){M||(M=!0,I.call(v,G))},g=function(G){M||(M=!0,b.call(v,G))};
try{l.call(z,x,g)}catch(G){g(G)}},XRA=function(z){z.executing_||(z.executing_=!0,_.hz(z.executeCallbacks_,z))},t6_=function(z){var l=null;
z.callbackEntries_&&(l=z.callbackEntries_,z.callbackEntries_=l.next,l.next=null);z.callbackEntries_||(z.callbackEntriesTail_=null);return l};
_.yK.prototype.executeCallbacks_=function(){for(var z;z=t6_(this);)Bsn(this,z,this.state_,this.result_);this.executing_=!1};
Bsn=function(z,l,I,b){if(I==3&&l.JSC$9770_onRejected&&!l.always)for(;z&&z.hadUnhandledRejection_;z=z.parent_)z.hadUnhandledRejection_=!1;if(l.child)l.child.parent_=null,FHj(l,I,b);else try{l.always?l.JSC$9770_onFulfilled.call(l.context):FHj(l,I,b)}catch(v){fek.call(null,v)}EqA.put(l)};
FHj=function(z,l,I){l==2?z.JSC$9770_onFulfilled.call(z.context,I):z.JSC$9770_onRejected&&z.JSC$9770_onRejected.call(z.context,I)};
q7_=function(z,l){z.hadUnhandledRejection_=!0;_.hz(function(){z.hadUnhandledRejection_&&fek.call(null,l)})};
fek=Mp;_.nj=function(z){_.I1.call(this,z)};
_.Gs(_.nj,_.I1);_.nj.prototype.name="cancel";var Cl4=function(z,l,I){this.promise=z;this.resolve=l;this.reject=I};var $9;_.gm=function(z,l){_.oW.call(this);this.JSC$9782_interval_=z||1;this.timerObject_=l||_.v7;this.boundTick_=(0,_.YN)(this.tick_,this);this.last_=_.gG()};
_.Gs(_.gm,_.oW);_.p=_.gm.prototype;_.p.enabled=!1;_.p.JSC$9784_timer_=null;_.p.setInterval=function(z){this.JSC$9782_interval_=z;this.JSC$9784_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9784_timer_&&this.stop()};
_.p.tick_=function(){if(this.enabled){var z=_.gG()-this.last_;z>0&&z<this.JSC$9782_interval_*.8?this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_-z):(this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.p.start=function(){this.enabled=!0;this.JSC$9784_timer_||(this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_),this.last_=_.gG())};
_.p.stop=function(){this.enabled=!1;this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null)};
_.p.disposeInternal=function(){_.gm.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
$9=function(z,l,I){if(typeof z==="function")I&&(z=(0,_.YN)(z,I));else if(z&&typeof z.handleEvent=="function")z=(0,_.YN)(z.handleEvent,z);else throw Error("ya");return Number(l)>2147483647?-1:_.v7.setTimeout(z,l||0)};
_.QxI=function(z){var l=null;return(new _.yK(function(I,b){l=$9(function(){I(void 0)},z);
l==-1&&b(Error("za"))})).thenCatch(function(I){_.v7.clearTimeout(l);
throw I;})};var RQ=function(z){_.Q9.call(this);this.streamzLogger=z;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9788_flushTimer=new _.gm(this.flushInterval);this.JSC$9788_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.kN(this,this.JSC$9788_flushTimer)};
_.m(RQ,_.Q9);RQ.prototype.sendIsolatedPayload=function(z){this.shouldSendIsolatedPayload=z;this.invocationLimit=1};
var Y7z=function(z){z.JSC$9788_flushTimer.enabled||z.JSC$9788_flushTimer.start();z.invocationCount++;z.invocationCount>=z.invocationLimit&&z.snapshotAndFlush()};
RQ.prototype.snapshotAndFlush=function(){var z=this.metricMap.values();z=[].concat(_.ht(z)).filter(function(l){return l.cellMap.size});
z.length&&this.streamzLogger.flush(z,this.shouldSendIsolatedPayload);Tsn(z);this.invocationCount=0;this.JSC$9788_flushTimer.enabled&&this.JSC$9788_flushTimer.stop()};
RQ.prototype.addNewCounter=function(z){var l=_.AT.apply(1,arguments);this.metricMap.has(z)||this.metricMap.set(z,new sL_(z,l))};
RQ.prototype.addNewEventMetric=function(z){var l=_.AT.apply(1,arguments);this.metricMap.has(z)||this.metricMap.set(z,new rtM(z,l))};
var c7w=function(z,l){return z.disabledMetrics.has(l)?void 0:z.metricMap.get(l)};
RQ.prototype.JSC$9788_incrementCounter=function(z){this.JSC$9788_incrementCounterBy(z,1,_.AT.apply(1,arguments))};
RQ.prototype.JSC$9788_incrementCounterBy=function(z,l){var I=_.AT.apply(2,arguments),b=c7w(this,z);b&&b instanceof sL_&&(b.JSC$9727_incrementCounterBy(l,I),Y7z(this))};
RQ.prototype.record=function(z,l){var I=_.AT.apply(2,arguments),b=c7w(this,z);b&&b instanceof rtM&&(b.record(l,I),Y7z(this))};
var Tsn=function(z){for(var l=0;l<z.length;l++)z[l].clear()};_.ei=function(z,l,I){I=I===void 0?{}:I;l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=z;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.ei,Error);_.ei.prototype.toString=function(){var z="RpcError("+(zM5(this.code)||String(this.code))+")";this.message&&(z+=": "+this.message);return z};_.S7u=_.v7.JSON.parse;_.wO=_.v7.JSON.stringify;_.Sn=_.v7.JSON.parse;_.djw=function(z){switch(z){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 oq4=function(z){switch(z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Pl_,hxj=function(){};
_.Gs(hxj,_.lQt);hxj.prototype.createInstance=function(){return new XMLHttpRequest};
Pl_=new hxj;_.Az=function(z){_.oW.call(this);this.headers=new Map;this.JSC$9797_xmlHttpFactory_=z||null;this.JSC$9797_active_=!1;this.JSC$9797_xhr_=null;this.JSC$9797_lastUri_="";this.JSC$9797_lastErrorCode_=0;this.JSC$9797_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9797_timeoutId_=null;this.responseType_="";this.JSC$9797_withCredentials_=!1};
_.Gs(_.Az,_.oW);var sxw=/^https?$/i,r7A=["POST","PUT"],$j_=[],XGx=function(z,l,I,b,v,M,x){var g=new _.Az;$j_.push(g);l&&g.listen("complete",l);g.listenOnce("ready",g.cleanupSend_);M&&(g.timeoutInterval_=Math.max(0,M));x&&(g.JSC$9797_withCredentials_=x);g.send(z,I,b,v)};
_.Az.prototype.cleanupSend_=function(){this.dispose();_.$5($j_,this)};
_.Az.prototype.send=function(z,l,I,b){if(this.JSC$9797_xhr_)throw Error("Aa`"+this.JSC$9797_lastUri_+"`"+z);l=l?l.toUpperCase():"GET";this.JSC$9797_lastUri_=z;this.JSC$9797_lastError_="";this.JSC$9797_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9797_active_=!0;this.JSC$9797_xhr_=this.createXhr();this.JSC$9797_xhr_.onreadystatechange=Pn((0,_.YN)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9797_xhr_.open(l,String(z),!0),this.inOpen_=!1}catch(x){exu(this,x);return}z=I||"";I=new Map(this.headers);
if(b)if(Object.getPrototypeOf(b)===Object.prototype)for(var v in b)I.set(v,b[v]);else if(typeof b.keys==="function"&&typeof b.get==="function"){v=_.D(b.keys());for(var M=v.next();!M.done;M=v.next())M=M.value,I.set(M,b.get(M))}else throw Error("Ba`"+String(b));b=Array.from(I.keys()).find(function(x){return"content-type"==x.toLowerCase()});
v=_.v7.FormData&&z instanceof _.v7.FormData;!_.rf(r7A,l)||b||v||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");l=_.D(I);for(b=l.next();!b.done;b=l.next())I=_.D(b.value),b=I.next().value,I=I.next().value,this.JSC$9797_xhr_.setRequestHeader(b,I);this.responseType_&&(this.JSC$9797_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9797_xhr_&&this.JSC$9797_xhr_.withCredentials!==this.JSC$9797_withCredentials_&&(this.JSC$9797_xhr_.withCredentials=this.JSC$9797_withCredentials_);
try{this.JSC$9797_timeoutId_&&(clearTimeout(this.JSC$9797_timeoutId_),this.JSC$9797_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9797_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9797_xhr_.send(z),this.inSend_=!1}catch(x){exu(this,x)}};
_.Az.prototype.createXhr=function(){return this.JSC$9797_xmlHttpFactory_?this.JSC$9797_xmlHttpFactory_.createInstance():Pl_.createInstance()};
_.Az.prototype.timeout_=function(){typeof zT$!="undefined"&&this.JSC$9797_xhr_&&(this.JSC$9797_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9797_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var exu=function(z,l){z.JSC$9797_active_=!1;z.JSC$9797_xhr_&&(z.inAbort_=!0,z.JSC$9797_xhr_.abort(),z.inAbort_=!1);z.JSC$9797_lastError_=l;z.JSC$9797_lastErrorCode_=5;wRI(z);A7u(z)},wRI=function(z){z.errorDispatched_||(z.errorDispatched_=!0,z.dispatchEvent("complete"),z.dispatchEvent("error"))};
_.Az.prototype.abort=function(z){this.JSC$9797_xhr_&&this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1,this.JSC$9797_lastErrorCode_=z||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),A7u(this))};
_.Az.prototype.disposeInternal=function(){this.JSC$9797_xhr_&&(this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1),A7u(this,!0));_.Az.superClass_.disposeInternal.call(this)};
_.Az.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)WHA(this);else this.onReadyStateChangeEntryPoint_()};
_.Az.prototype.onReadyStateChangeEntryPoint_=function(){WHA(this)};
var WHA=function(z){if(z.JSC$9797_active_&&typeof zT$!="undefined")if(z.inSend_&&_.Wn(z)==4)setTimeout(z.onReadyStateChange_.bind(z),0);else if(z.dispatchEvent("readystatechange"),z.isComplete()){z.JSC$9797_active_=!1;try{if(z.isSuccess())z.dispatchEvent("complete"),z.dispatchEvent("success");else{z.JSC$9797_lastErrorCode_=6;try{var l=_.Wn(z)>2?z.JSC$9797_xhr_.statusText:""}catch(I){l=""}z.JSC$9797_lastError_=l+" ["+z.getStatus()+"]";wRI(z)}}finally{A7u(z)}}},A7u=function(z,l){if(z.JSC$9797_xhr_){z.JSC$9797_timeoutId_&&
(clearTimeout(z.JSC$9797_timeoutId_),z.JSC$9797_timeoutId_=null);
var I=z.JSC$9797_xhr_;z.JSC$9797_xhr_=null;l||z.dispatchEvent("ready");try{I.onreadystatechange=null}catch(b){}}};
_.Az.prototype.isActive=function(){return!!this.JSC$9797_xhr_};
_.Az.prototype.isComplete=function(){return _.Wn(this)==4};
_.Az.prototype.isSuccess=function(){var z=this.getStatus(),l;if(!(l=oq4(z))){if(z=z===0)z=VWu(String(this.JSC$9797_lastUri_)),z=!sxw.test(z);l=z}return l};
_.Wn=function(z){return z.JSC$9797_xhr_?z.JSC$9797_xhr_.readyState:0};
_.p=_.Az.prototype;_.p.getStatus=function(){try{return _.Wn(this)>2?this.JSC$9797_xhr_.status:-1}catch(z){return-1}};
_.p.getResponseText=function(){try{return this.JSC$9797_xhr_?this.JSC$9797_xhr_.responseText:""}catch(z){return""}};
_.p.getResponse=function(){try{if(!this.JSC$9797_xhr_)return null;if("response"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9797_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.mozResponseArrayBuffer}return null}catch(z){return null}};
_.p.getAllResponseHeaders=function(){return this.JSC$9797_xhr_&&_.Wn(this)>=2?this.JSC$9797_xhr_.getAllResponseHeaders()||"":""};
_.p.getLastError=function(){return typeof this.JSC$9797_lastError_==="string"?this.JSC$9797_lastError_:String(this.JSC$9797_lastError_)};var Mc1=function(){};
Mc1.prototype.send=function(z,l,I){l=l===void 0?function(){}:l;
I=I===void 0?function(){}:I;
XGx(z.url,function(b){b=b.target;b.isSuccess()?l(b.getResponseText()):I(b.getStatus())},z.requestType,z.body,z.requestHeaders,z.timeoutMillis,z.withCredentials)};
Mc1.prototype.getTransmissionType=function(){return 1};var nqI=function(z,l){this.x7Y=z;this.event=l;this.startTime=ms()},GoQ;
nqI.prototype.done=function(){this.x7Y.dD(this.event,ms()-this.startTime)};
var nd=function(){Cd.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.m(nd,Cd);_.Ld=function(z,l,I){var b=ms();l=l();z.dD(I,ms()-b);return l};
GoQ=function(){nd.apply(this,arguments)};
_.m(GoQ,nd);_.p=GoQ.prototype;_.p.s4A=function(){};
_.p.e5=function(){};
_.p.dD=function(){};
_.p.logError=function(){};
_.p.sL=function(){};
_.p.v70=function(){};
_.p.sxf=function(){};
_.p.f2M=function(){};
var LHw=function(z){nd.call(this);var l=this;this.s4=z;this.TEST_ONLY={x1e:function(){return l.s4},
getExperimentIds:function(){return l.s4.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void l.s4.dispose()})};
_.m(LHw,nd);_.p=LHw.prototype;_.p.update=function(z){this.s4.dispose();this.s4=z};
_.p.e5=function(z){this.s4.e5(z)};
_.p.dD=function(z,l){this.s4.dD(z,l)};
_.p.logError=function(z){this.s4.logError(z)};
_.p.sL=function(){this.s4.sL()};
_.p.v70=function(z){this.s4.v70(z)};
_.p.sxf=function(z){this.s4.sxf(z)};
_.p.f2M=function(z){this.s4.f2M(z)};
_.p.s4A=function(z){this.s4.s4A(z)};
var Ujj=function(z,l){_.Q9.call(this);var I=this;this.callback=z;this.fan=l;this.jiL=-l;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.m(Ujj,_.Q9);var aCu=function(z){if(z.timer===void 0){var l=Math.max(0,z.jiL+z.fan-ms());z.timer=setTimeout(function(){try{z.callback()}finally{z.jiL=ms(),z.timer=void 0}},l)}},V6w=function(z,l){nd.call(this);
this.metrics=z;this.gV=l};
_.m(V6w,nd);_.p=V6w.prototype;_.p.s4A=function(z){this.metrics.lMe.record(z,this.gV)};
_.p.e5=function(z){this.metrics.eventCount.increment(z,this.gV)};
_.p.dD=function(z,l){this.metrics.vcU.record(l,z,this.gV)};
_.p.logError=function(z){this.metrics.errorCount.increment(z,this.gV)};
_.p.v70=function(z){this.metrics.lg2.increment(z,this.gV)};
_.p.sxf=function(z){this.metrics.gDS.increment(z,this.gV)};
_.p.f2M=function(z){this.metrics.ywv.increment(z,this.gV)};
var NkQ=function(z,l){l=l===void 0?[]:l;var I={gV:z.gV||"_",pMs:z.pMs||[],jZW:z.jZW|0,destinationUrl:z.destinationUrl,j0s:z.j0s||function(){},
zcf:z.zcf||function(M,x){return gsQ(M,x,I.j0s,I.destinationUrl)}},b=I.zcf("51",I.pMs.concat(l));
V6w.call(this,{lMe:new T0M(b),errorCount:new oRn(b),eventCount:new Sv_(b),vcU:new dZ4(b),c75:new cT0(b),lg2:new P8j(b),gDS:new hZw(b),ywv:new su_(b)},I.gV);var v=this;this.TEST_ONLY={getExperimentIds:function(){return v.options.pMs.concat(v.sYd).sort(function(M,x){return M-x})}};
this.options=I;this.service=b;this.hpU=!z.zcf;this.flushDebouncer=new Ujj(function(){return void v.service.snapshotAndFlush()},I.jZW);
this.addOnDisposeCallback(function(){v.flushDebouncer.dispose();v.hpU&&v.service.dispose()});
(this.sYd=l.slice()).sort(_.qYQ)};
_.m(NkQ,V6w);NkQ.prototype.sL=function(){aCu(this.flushDebouncer)};var z2Q=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(z2Q,_.Da);_.lBf=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(_.lBf,_.Da);var Vb=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,0,Vb.messageId)};
_.m(Vb,_.Da);var jxA=_.rT$(Vb);Vb.messageId="bfkj";var PsQ=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(PsQ,_.Da);var J7z=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(J7z,_.Da);var z7M=_.kR(J7z);_.yX=function(){var z=this;this.promise=new Promise(function(l,I){z.resolve=l;z.reject=I})};_.Ub=function(z){_.Q9.call(this);var l=this;this.aOp=Math.floor(Math.random()*200);this.dZH=new J7z;if("challenge"in z&&jxA(z.challenge)){var I=_.oX(z.challenge,4,void 0,Qu);var b=_.oX(z.challenge,5,void 0,Qu);_.oX(z.challenge,7,void 0,Qu)&&(this.dZH=z7M(_.oX(z.challenge,7,void 0,Qu)))}else I=z.program,b=z.globalName;this.addOnDisposeCallback(function(){var R,F,Y;return _.O(function(c){if(c.nextAddress==1)return c.yield(l.byL,2);R=c.yieldResult;F=R.xEu;(Y=F)==null||Y();_.qe(c)})});
this.kd=Es7(z.oWW||{},this.dZH);_.kN(this,this.kd);var v=new _.yX;this.byL=v.promise;this.kd.e5("t");var M=this.kd.share(),x=new nqI(M,"t"),g=function(R,F,Y,c){if(!l.kd.isDisposed()){var d="k";F?d="h":Y&&(d="u");d!=="k"?c!==0&&(l.kd.e5(d),l.kd.dD(d,R)):l.aOp<=0?(l.kd.e5(d),l.kd.dD(d,R),l.aOp=Math.floor(Math.random()*200)):l.aOp--}},G=function(R,F,Y,c){Promise.resolve().then(function(){x.done();
M.sL();M.dispose();v.resolve({aEB:R,xEu:F,wfn:Y,r5S:c})})};
if(!_.v7[b])throw this.kd.logError(25),Error("Ca");if(!_.v7[b].a)throw this.kd.logError(26),Error("Da");try{var u=_.v7[b].a;b=[];for(var Z=[],H=hb$(this.dZH),y=0;y<H.length;y++)b.push(H[y]),Z.push(1);var f=sYx(this.dZH);for(H=0;H<f.length;H++)b.push(f[H]),Z.push(2);this.uUi=_.D(u(I,G,!0,z.dEf,g,[b,Z],_.oX(this.dZH,5),!1)).next().value;this.cCN=v.promise.then(function(){})}catch(R){throw this.kd.logError(28),R;
}};
_.m(_.Ub,_.Q9);_.Ub.prototype.snapshot=function(z){if(this.isDisposed())throw Error("Ea");this.kd.e5("n");var l=this.kd.share();return this.byL.then(function(I){var b=I.aEB;return new Promise(function(v){var M=new nqI(l,"n");b(function(x){M.done();l.s4A(x.length);l.sL();l.dispose();v(x)},[z.jy,
z.loM,z.hZc,z.xCn])})})};
_.Ub.prototype.qSf=function(z){this.byL.then(function(l){var I;(I=l.wfn)==null||I(z)})};
_.Ub.prototype.wlf=function(z,l){return this.byL.then(function(I){var b;return(b=I.r5S)==null?void 0:b(z,l,!1)})};
_.Ub.prototype.muc=function(){return this.kd.share()};var lvj=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(lvj,_.Da);var xru=_.rT$(lvj);var IvA=function(){this.promises={};this.yX0=null},b0u=function(){IvA.instance||(IvA.instance=new IvA);
return IvA.instance},MNz=function(z,l){return vNn(z,_.gi(l,z2Q,1,Qu),_.gi(l,_.lBf,2,Qu),_.oX(l,3,void 0,Qu))},vNn=function(z,l,I,b){if(!l&&!I)return Promise.resolve();
if(!b)return fQt(l,I);var v;(v=z.promises)[b]||(v[b]=new Promise(function(M,x){fQt(l,I).then(function(){z.yX0=b;M()},function(g){delete z.promises[b];
x(g)})}));
return z.promises[b]};var plz=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(plz,_.Da);var D4p=function(z,l){return _.j2(z,1,l)},x4u=function(z,l){return _.j2(z,2,l)};var aW=function(z){_.Q9.call(this);var l=this;this.options=z;this.gGf=new _.yX;this.cCN=this.gGf.promise;this.abN=new _.yX;this.si0=1;this.lSz=new _.yX;this.tmf=[];this.hpN=z.hpN||function(){};
this.hKf=new LHw(Es7(z.oWW||{}));O0p(this,z.fi,z.zYn,z.h9n,z.ckl,Object.assign({},gNw,z.k8P||{}));this.addOnDisposeCallback(function(){return void GzA(l)})};
_.m(aW,_.Q9);aW.prototype.snapshot=function(z){var l=this;return _.O(function(I){switch(I.nextAddress){case 1:if(l.isDisposed())throw Error("Ea");if(l.vN||l.qmW){I.jumpTo(2);break}return I.yield(l.abN.promise,2);case 2:if(!l.vN){I.jumpTo(4);break}return I.yield(l.vN.snapshot(z),5);case 5:return I.return(I.yieldResult);case 4:throw l.qmW;}})};
var N1_=function(z){var l;return _.O(function(I){if(z.isDisposed())throw Error("Ea");(l=z.n8)!=null&&(l.endTimeMs=0,l.resolver(1));return I.yield(z.lSz.promise,0)})},GzA=function(z){z.qmW=Error("Ga");
z.abN.resolve();rr7(z.gGf.promise);z.gGf.reject(Error("Ga"));z.hKf.dispose();Promise.all(z.tmf).then(function(){var I;return _.O(function(b){(I=z.vN)==null||I.dispose();z.vN=void 0;_.qe(b)})});
z.tmf=[];var l;(l=z.n8)!=null&&(l.endTimeMs=0,l.resolver(1));rr7(z.lSz.promise);z.lSz.reject(Error("Ga"))};
aW.prototype.qSf=function(z){var l,I;(l=this.vN)==null||(I=l.qSf)==null||I.call(l,z)};
aW.prototype.wlf=function(z,l){var I,b,v;return(v=(I=this.vN)==null?void 0:(b=I.wlf)==null?void 0:b.call(I,z,l))!=null?v:Promise.resolve()};
var ENu=function(z,l){var I=z.hpN;z.hpN=function(){I();l()}},u7n=function(z,l){z.isDisposed()||(z.vN=l,z.hKf.update(l.muc()),z.abN.resolve(),z.gGf.resolve(void 0),z.hpN())};
aW.prototype.handleError=function(z){if(!this.isDisposed()){this.qmW=z;this.abN.resolve();var l,I;(I=(l=this.options).efC)==null||I.call(l,z)}};
var Z0j=function(z,l){l&&(Promise.all(z.tmf).then(function(){return void l.dispose()}),z.tmf=[])},VL=function(z,l){z.si0=l;
var I,b;(b=(I=z.options).lWI)==null||b.call(I,l)},H0p=function(z){z.isDisposed()||(z.lSz.resolve(),z.lSz=new _.yX)},O0p=function(z,l,I,b,v,M){b=b===void 0?b0u():b;
v=v===void 0?Promise.resolve(void 0):v;var x,g,G,u,Z,H,y,f,R,F,Y,c;_.O(function(d){switch(d.nextAddress){case 1:return d.yield(0,3);case 3:g=null;if(!x){d.jumpTo(6);break}VL(z,7);_.RL(d,7);return d.yield(q4(x.snapshot({}),M.i4d,function(){return Promise.resolve("E:CTO")}),9);
case 9:g=d.yieldResult;_.a3(d,6);break;case 7:_.XP(d),g="E:UCE";case 6:G=void 0,u=x?M.kXx:M.bpa,Z=new Hl(u,M.ipc,M.hIS,M.lUc),H=1;case 10:if(!(H<=M.maxAttempts)){d.jumpTo(12);break}if(H===1){d.jumpTo(13);break}VL(z,0);z.n8=new yA4(Z.getValue(),M.fRf,M.gdY);return d.yield(z.n8.promise,14);case 14:y=d.yieldResult,z.n8=void 0,y===1?(H=1,Z.reset()):i4M(Z);case 13:_.RL(d,15);f=void 0;if(I){f=I;d.jumpTo(17);break}VL(z,5);R=b.yX0;return d.yield(q4(fvp(l,R,g),M.imc,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:f=d.yieldResult;case 17:return VL(z,3),d.yield(q4(MNz(b,f),M.i7q,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return VL(z,8),d.yield(v,20);case 20:return F=new _.Ub({challenge:f,oWW:z.options.oWW,dEf:z.options.dEf}),d.yield(q4(F.cCN,M.dZe,function(){return Promise.reject(Error("Ja"))}),21);
case 21:G=F;d.jumpTo(12);break;case 15:Y=_.XP(d),z.handleError(Y),H0p(z);case 11:H++;d.jumpTo(10);break;case 12:if(z.isDisposed()){d.jumpTo(5);break}G&&(I=void 0,Z0j(z,x),x=G,u7n(z,G),H0p(z));VL(z,2);z.n8=new yA4(M.nZi,M.fRf,M.gdY);return d.yield(z.n8.promise,22);case 22:z.n8=void 0;if(z.isDisposed()){d.jumpTo(5);break}d.jumpTo(3);break;case 5:(c=x)==null||c.dispose(),_.qe(d)}})};
aW.prototype.muc=function(){return this.hKf.share()};
var gNw={nZi:432E5,fRf:3E5,gdY:10,i4d:1E4,imc:3E4,i7q:3E4,dZe:6E4,bpa:1E3,kXx:6E4,ipc:6E5,hIS:.25,lUc:2,maxAttempts:10},yA4=function(z,l,I){var b=this;this.endTimeMs=Date.now()+z;this.promise=new Promise(function(M){b.resolver=M});
var v=function(){var M=b.endTimeMs-Date.now();M<=I?b.resolver(0):setTimeout(v,Math.min(M,l))};
v()};var CWp,RMk=(CWp=Math.imul)!=null?CWp:function(z,l){return z*l|0},iW=[196,
200,224,18],ji=function(z,l,I){I=I===void 0?[]:I;this.maxItems=z;this.tJ=l===void 0?0:l;this.py=I},kzp=function(z){var l=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!l)return new ji(z);var I=l.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ji(z);l=I.slice(1);l.length===1&&l[0]===""&&(l=[]);I=Number(I[0]);return isNaN(I)||I<0||I>l.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ji(z)):new ji(z,I,l)};
ji.prototype.serialize=function(){return String(this.tJ)+","+this.py.join()};
ji.prototype.insert=function(z,l){var I=void 0;if(this.py[this.tJ]!==z){var b=this.py.indexOf(z);b!==-1?(this.py.splice(b,1),b<this.tJ&&this.tJ--,this.py.splice(this.tJ,0,z)):(I=this.py[this.tJ],this.py[this.tJ]=z)}this.tJ=(this.tJ+1)%this.maxItems;z=CfS("iU5q-!O9@$",this.serialize());I&&z&&l(I);return z};
var R7M=function(z,l){this.ogW=l;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(b){I=!1}I&&(this.index=kzp(z))},m4_=function(z,l,I,b,v){var M=z.index?_.Ld(z.ogW,function(){return BkY(z.index,KZY(l),I,b,v)},"W"):"u";
z.ogW.f2M(M)},Ks_=function(z,l,I){var b=_.D(z.index?_.Ld(z.ogW,function(){return XVS(KZY(l),I)},"R"):["u"]),v=b.next().value;
b=b.next().value;z.ogW.sxf(v);return b};var tNu={toString:function(z){var l=[],I=0;z-=-2147483648;l[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(z%52);for(z=Math.floor(z/52);z>0;)l[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(z%62),z=Math.floor(z/62);return l.join("")}};var qAn=function(z){z=B10(z);for(var l=2654435769,I=2654435769,b=314159265,v=z.length,M=v,x=0,g=function(){l-=I;l-=b;l^=b>>>13;I-=b;I-=l;I^=l<<8;b-=l;b-=I;b^=I>>>13;l-=I;l-=b;l^=b>>>12;I-=b;I-=l;I^=l<<16;b-=l;b-=I;b^=I>>>5;l-=I;l-=b;l^=b>>>3;I-=b;I-=l;I^=l<<10;b-=l;b-=I;b^=I>>>15};M>=12;M-=12,x+=12)l+=Xlj(z,x),I+=Xlj(z,x+4),b+=Xlj(z,x+8),g();
b+=v;switch(M){case 11:b+=z[x+10]<<24;case 10:b+=z[x+9]<<16;case 9:b+=z[x+8]<<8;case 8:I+=z[x+7]<<24;case 7:I+=z[x+6]<<16;case 6:I+=z[x+5]<<8;case 5:I+=z[x+4];case 4:l+=z[x+3]<<24;case 3:l+=z[x+2]<<16;case 2:l+=z[x+1]<<8;case 1:l+=z[x]}g();return tNu.toString(b)},B10=function(z){for(var l=[],I=0;I<z.length;I++)l.push(z.charCodeAt(I));
return l},Xlj=function(z,l){return z[l]+(z[l+1]<<8)+(z[l+2]<<16)+(z[l+3]<<24)};var Jz=function(z){_.Q9.call(this);this.tb=z;this.snT=new _.yX};
_.m(Jz,_.Q9);var i0_=function(z,l){var I=setTimeout(function(){z.snT.resolve()},l);
z.addOnDisposeCallback(function(){return void clearTimeout(I)})};
Jz.prototype.aH0=function(z,l){var I=this.vX(z);l==null||l(I);return _.Ld(this.tb,function(){return _.Tc(I,2)},this.pAA)};
var FsA=function(z,l,I,b){return _.Ld(z.tb,function(){return I?z.aH0(l,b):z.vX(l,b)},z.efz)},QQp=function(z,l,I,b){Jz.call(this,z);
this.rUS=l;this.dNi=I;this.efz="m";this.pAA="x";this.uN1=0;i0_(this,b)};
_.m(QQp,Jz);QQp.prototype.vX=function(z,l){var I=this;this.tb.e5(this.efz);++this.uN1>=this.dNi&&this.snT.resolve();var b=z();z=_.Ld(this.tb,function(){return I.rUS(b)},"C");
if(z===void 0)throw new yL(17,"YNJ:Undefined");if(!(z instanceof Uint8Array))throw new yL(18,"ODM:Invalid");l==null||l(z);return z};
var YA4=function(z,l,I){Jz.call(this,z);this.lNS=l;this.efz="f";this.pAA="z";i0_(this,I)};
_.m(YA4,Jz);YA4.prototype.vX=function(){return this.lNS};
var T1_=function(z,l,I){Jz.call(this,z);this.s1c=l;this.efz="w";this.pAA="z";i0_(this,I)};
_.m(T1_,Jz);T1_.prototype.vX=function(){var z=this;return _.Ld(this.tb,function(){return _.jx(z.s1c)},"d")};
T1_.prototype.aH0=function(){return this.s1c};
var cAM=function(z,l){Jz.call(this,z);this.error=l;this.efz="e";this.pAA="y"};
_.m(cAM,Jz);var SA4=function(z,l){var I=(l(z.error.message)+":"+l(z.error.stack)).substring(0,2048);l=I.length+1;I=qIY(I);var b=new Uint8Array(4+I.length);b.set([42,l&127|128,l>>7,z.error.code]);b.set(I,4);return b};
cAM.prototype.vX=function(){if(this.hIn)return this.hIn;this.hIn=SA4(this,function(z){return"_"+qAn(z)});
return SA4(this,function(z){return z})};
var d4A=function(z,l,I){Jz.call(this,z);this.ahf=l;this.clientState=I;this.efz="S";this.pAA="q"};
_.m(d4A,Jz);d4A.prototype.vX=function(){var z=Math.floor(Date.now()/1E3),l=[Math.random()*255,Math.random()*255],I=l.concat([this.ahf&255,this.clientState],[z>>24&255,z>>16&255,z>>8&255,z&255]);z=new Uint8Array(2+I.length);z[0]=34;z[1]=I.length;z.set(I,2);I=z.subarray(2);for(var b=l=l.length;b<I.length;++b)I[b]^=I[b%l];this.tb.v70(this.clientState);return z};var oNz={pix:3E4,kII:2E4},zp=function(z){_.Q9.call(this);var l=this;this.sq0=new _.yX;this.fHz=0;this.vM=void 0;this.state=2;this.vm=z.vm;this.fi=z.fi;this.k8P=Object.assign({},oNz,z.k8P||{});this.eh=z.vm.muc();var I;this.onError=(I=z.onError)!=null?I:function(){};
this.pIL=z.pIL||!1;if(PW4(z)){var b=this.vm;this.wkt=function(){return N1_(b).catch(function(x){x=l.reportError(new yL(l.pw?20:32,"TRG:Disposed",x));l.vM=x;var g;(g=l.pw)==null||g.dispose();l.pw=void 0;l.sq0.reject(x)})};
ENu(b,function(){return void h70(l)});
b.si0===2&&h70(this)}else this.wkt=z.wKl,h70(this);var v=this.eh.share();v.e5("o");var M=new nqI(v,"o");this.sq0.promise.then(function(){M.done();v.sL();v.dispose()},function(){return void v.dispose()});
this.addOnDisposeCallback(function(){l.pw?(l.pw.dispose(),l.pw=void 0):l.vM?l.eh.sL():(l.vM=l.reportError(new yL(32,"TNP:Disposed")),l.eh.sL(),l.sq0.reject(l.vM))});
_.kN(this,this.eh)};
_.m(zp,_.Q9);zp.prototype.p58=function(){return this.sq0.promise};
var sQI=function(z,l){if(!(l instanceof yL))if(l instanceof _.ei){var I=Error(l.toString());I.stack=l.stack;l=new yL(11,"EBH:Error",I)}else l=new yL(12,"BSO:Unknown",l);return z.reportError(l)},h70=function(z){var l,I,b,v,M,x,g,G,u,Z,H,y,f,R,F;
return _.O(function(Y){switch(Y.nextAddress){case 1:l=void 0;z.fHz++;I=new _.yX;z.vm instanceof aW&&z.vm.tmf.push(I.promise);if(!z.pIL){Y.jumpTo(2);break}b=new _.yX;setTimeout(function(){return void b.resolve()});
return Y.yield(b.promise,2);case 2:return v=z.eh.share(),_.RL(Y,4,5),z.state=5,M={},x=[],Y.yield(q4(z.vm.snapshot({jy:M,hZc:x}),z.k8P.kII,function(){return Promise.reject(new yL(15,"MDA:Timeout"))}),7);
case 7:g=Y.yieldResult;if(z.isDisposed())throw new yL(z.pw?20:32,"MDA:Disposed");G=x[0];z.state=6;return Y.yield(q4(rA_(z.fi,g),z.k8P.pix,function(){return Promise.reject(new yL(10,"BWB:Timeout"))}),8);
case 8:u=Y.yieldResult;if(z.isDisposed())throw new yL(z.pw?20:32,"BWB:Disposed");z.state=7;l=_.Ld(v,function(){var d=$4z(z,u,I,G);d.snT.promise.then(function(){return void z.wkt()});
return d},"i");
case 5:_.K4(Y);v.dispose();_.B0(Y,6);break;case 4:Z=_.XP(Y);(H=l)==null||H.dispose();if(!z.vM){y=sQI(z,Z);I.resolve();var c;if(c=z.vm instanceof aW&&z.fHz<2)a:if(Z instanceof yL)c=Z.code!==32&&Z.code!==20&&Z.code!==10;else{if(Z instanceof _.ei)switch(Z.code){case 2:case 13:case 14:case 4:break;default:c=!1;break a}c=!0}if(c)return f=(1+Math.random()*.25)*(z.pw?6E4:1E3),R=setTimeout(function(){return void z.wkt()},f),z.addOnDisposeCallback(function(){return void clearTimeout(R)}),Y.return();
z.vM=y}v.logError(z.pw?13:14);z.sq0.reject(z.vM);return Y.return();case 6:z.state=8,z.fHz=0,(F=z.pw)==null||F.dispose(),z.pw=l,z.sq0.resolve(),_.qe(Y)}})},$4z=function(z,l,I,b){var v=Rgx(l,2)*1E3;
if(v<=0)throw new yL(31,"TTM:Invalid");if(_.oX(l,4))return new T1_(z.eh,_.oX(l,4),v);if(!Rgx(l,3))return new YA4(z.eh,vt1(_.q5(l,1)),v);if(!b)throw new yL(4,"PMD:Undefined");b=b(vt1(_.q5(l,1)));if(!(b instanceof Function))throw new yL(16,"APF:Failed");z.kAc=Math.floor((Date.now()+v)/1E3);z=new QQp(z.eh,b,Rgx(l,3),v);z.addOnDisposeCallback(function(){return void I.resolve()});
return z};
zp.prototype.vX=function(z){return e7_(this,Object.assign({},z),!1)};
zp.prototype.aH0=function(z){return e7_(this,Object.assign({},z),!0)};
zp.prototype.xT0=function(z){if(z>150)return!1;try{return this.cache=new R7M(z,this.eh),!0}catch(l){return this.reportError(new yL(22,"GBJ:init",l)),!1}};
zp.prototype.reportError=function(z){this.eh.logError(z.code);this.onError(z);return z};
var wlI=function(z,l){l=l instanceof yL?l:new yL(5,"TVD:error",l);return z.reportError(l)},e7_=function(z,l,I){try{if(z.isDisposed())throw new yL(21,"BNT:disposed");
if(!z.pw&&z.vM)throw z.vM;var b,v;return(v=(b=AAA(z,l,I))!=null?b:WsA(z,l,I))!=null?v:nN0(z,l,I)}catch(M){if(!l.hx8)throw wlI(z,M);return LsA(z,I,M)}},AAA=function(z,l,I){var b;
return(b=z.pw)==null?void 0:FsA(b,function(){return U4u(z,l)},I,function(v){var M;
if(z.pw instanceof QQp&&((M=l.cY)==null?0:M.yiY))try{var x;(x=z.cache)==null||m4_(x,U4u(z,l),v,l.cY.xNA,z.kAc-120)}catch(g){z.reportError(new yL(24,"ELX:write",g))}})},WsA=function(z,l,I){var b;
if((b=l.cY)!=null&&b.yPW)try{var v,M=(v=z.cache)==null?void 0:Ks_(v,U4u(z,l),l.cY.xNA);return M?I?_.Ld(z.eh,function(){return _.Tc(M,2)},"a"):M:void 0}catch(x){z.reportError(new yL(23,"RXO:read",x))}},nN0=function(z,l,I){var b={stack:[],
error:void 0,hasError:!1};try{if(!l.iQL)throw new yL(29,"SDF:notready");return FsA(pqu(b,new d4A(z.eh,0,z.state)),function(){return U4u(z,l)},I)}catch(v){b.error=v,b.hasError=!0}finally{D7p(b)}},LsA=function(z,l,I){var b={stack:[],
error:void 0,hasError:!1};try{var v=wlI(z,I);return FsA(pqu(b,new cAM(z.eh,v)),function(){return[]},l)}catch(M){b.error=M,b.hasError=!0}finally{D7p(b)}},U4u=function(z,l){return l.wMN?l.wMN:l.jy?_.Ld(z.eh,function(){return l.wMN=qIY(l.jy)},"c"):[]},PW4=function(z){return c_(function(l){if(!xz(l))return!1;
for(var I=_.D(Object.entries(z)),b=I.next();!b.done;b=I.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;if(!(b in l)){if(v.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!v(l[b]))return!1}return!0})}({vm:function(z){return c_(function(l){return l instanceof z})}(aW)},"");var av_=function(){var z=_.Er();this.JSC$9915_streamzService=z;z.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",N4("cookie_enabled"),N4("cookie_3p_enabled"),_.uW("browser"))};
av_.prototype.increment=function(z,l,I){this.JSC$9915_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",z,l,I)};
var nJG=function(){var z=_.Er();this.JSC$9939_streamzService=z;z.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",EA("tick"),N4("from_st_cookie"))};
nJG.prototype.increment=function(z,l){this.JSC$9939_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",z,l)};
var VN_=function(){var z=_.Er();this.JSC$9945_streamzService=z;z.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.uW("status"))};
VN_.prototype.increment=function(z){this.JSC$9945_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",z)};
var jQ_=function(){var z=_.Er();this.JSC$9948_streamzService=z;z.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.uW("stage"),N4("is_using_ytd_player"),N4("has_expandable_tiles"))};
jQ_.prototype.increment=function(z,l,I){this.JSC$9948_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",z,l,I)};
var JAj=function(){var z=_.Er();this.JSC$9951_streamzService=z;z.addNewCounter("/client_streamz/youtube/web/response_signature",_.uW("check_status"))};
JAj.prototype.increment=function(z){this.JSC$9951_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/response_signature",z)};
var zeu=function(){var z=_.Er();this.JSC$9954_streamzService=z;z.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.uW("sig"),EA("de"))};
zeu.prototype.increment=function(z,l){this.JSC$9954_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_log",z,l)};
var l__=function(){var z=_.Er();this.JSC$9957_streamzService=z;z.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.uW("sig"),EA("de"))};
l__.prototype.increment=function(z,l){this.JSC$9957_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_en",z,l)};
_.I_j=function(){var z=_.Er();this.JSC$9960_streamzService=z;z.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.uW("action"))};
_.I_j.prototype.increment=function(z){this.JSC$9960_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/enforcement_intent",z)};var Il=window;var boA=(new Date).getTime();_.h7.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.h7.createSet("action","cite","data","formaction","href","manifest","poster","src");var vzu=function(z){this.servicePromise_=z;z.then((0,_.YN)(function(){},this),function(){},this)},M3u=function(z,l,I){z.servicePromise_.then(function(b){var v=b[l];
if(!v)throw Error("Ka`"+l);return v.apply(b,I)})},xMM=function(z,l,I){for(var b=Array(arguments.length-2),v=2;v<arguments.length;v++)b[v-2]=arguments[v];
v=pbI(z,l).then(function(M){return M.apply(null,b)},function(M){M=Error("La`"+l+"`"+z,{cause:M});
delete DMw[l];return _.Ph(M)});
return new vzu(v)},DMw={},pbI=function(z,l){var I=DMw[l];
if(I)return I;I=(I=_.W8(l))?_.Hu(I):(new _.yK(function(b,v){var M=(new Pc(document)).createElement("SCRIPT");M.async=!0;_.Me(M,_.QR(bl_(z)));M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||b()};
M.onerror=function(x){v(Error("Ma`"+l+"`"+z,{cause:x}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(M)})).then(function(){var b=_.W8(l);
if(!b)throw Error("Na`"+l+"`"+z);return b});
return DMw[l]=I};var Oo_={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Ge0=function(){var z=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=iG$(function(){return _.O(function(l){if(l.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?l.return(Promise.resolve()):l.yield(gzI(z),2);z.rsaForList.length>
0&&document.addEventListener("click",z.requestAccessForHelpPanel);_.qe(l)})});
this.requestAccessForHelpPanel=function(){if(!(z.rsaForPromises.length>0)){for(var l=_.D(z.rsaForList),I=l.next();!I.done;I=l.next()){I=I.value;try{z.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(b){}}Promise.all(z.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){z.reset()})}}};
Ge0.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var gzI=function(z){var l,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:l=_.D(Object.values(Oo_)),I=l.next();case 2:if(I.done){M.jumpTo(0);break}b=I.value;_.RL(M,5);return M.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:b}),7);case 7:v=M.yieldResult;v.state!=="granted"&&z.rsaForList.push(b);_.a3(M,3);break;case 5:_.XP(M);M.jumpTo(0);break;case 3:I=l.next(),M.jumpTo(2)}})};(new Ge0).initialize();var N2A=function(z){this.JSC$9974_loader_=z};
N2A.prototype.startHelp=function(z){M3u(this.JSC$9974_loader_,"startHelp",arguments)};
N2A.prototype.JSC$9976_loadChatSupport=function(z){M3u(this.JSC$9974_loader_,"loadChatSupport",arguments)};
var uQA=function(z,l){l=l||{};z=xMM(Ezp,"help.service.Lazy.create",z,{apiKey:l.apiKey||l.apiKey,asxUiUri:l.asxUiUri||l.asxUiUri,environment:l.environment||l.environment,flow:l.flow||l.flow,frdProductData:l.frdProductData||l.frdProductData,frdProductDataSerializedJspb:l.frdProductDataSerializedJspb||l.frdProductDataSerializedJspb,helpCenterPath:l.helpCenterPath||l.helpCenterPath,locale:l.locale||l.locale||"en-US".replace(/-/g,"_"),nonce:l.nonce||l.nonce,productData:l.productData||l.productData,receiverUri:l.receiverUri||
l.receiverUri,renderApiUri:l.renderApiUri||l.renderApiUri,theme:l.theme||l.theme,window:l.window||l.window});return new N2A(z)},Ezp=new sN(cRk,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ZoA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(ZoA,_.Da);var HoA=_.kR(ZoA);var yXI=[0,_.Mi,JO,O$p];_.f_u=new function(z,l,I,b){this.configType=z;this.flagName=I;this.defaultValue=b;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 keu=function(){this.retriever=_.pG().resolve(CEI)};Q3S(Node);Q3S(Element);var ReA=Q3S(HTMLElement);Q3S(SVGElement);var mMp,Kyw,MR,t3_;mMp=function(z){return typeof z.className=="string"?z.className:z.getAttribute&&z.getAttribute("class")||""};
Kyw=function(z){return z.classList?z.classList:mMp(z).match(/\S+/g)||[]};
_.bC=function(z,l){typeof z.className=="string"?z.className=l:z.setAttribute&&z.setAttribute("class",l)};
_.vH=function(z,l){return z.classList?z.classList.contains(l):_.rf(Kyw(z),l)};
_.DY=function(z,l){if(z.classList)z.classList.add(l);else if(!_.vH(z,l)){var I=mMp(z);_.bC(z,I+(I.length>0?" "+l:l))}};
MR=function(z,l){if(z.classList)Array.prototype.forEach.call(l,function(v){_.DY(z,v)});
else{var I={};Array.prototype.forEach.call(Kyw(z),function(v){I[v]=!0});
Array.prototype.forEach.call(l,function(v){I[v]=!0});
l="";for(var b in I)l+=l.length>0?" "+b:b;_.bC(z,l)}};
_.Mt=function(z,l){z.classList?z.classList.remove(l):_.vH(z,l)&&_.bC(z,Array.prototype.filter.call(Kyw(z),function(I){return I!=l}).join(" "))};
t3_=function(z,l){z.classList?Array.prototype.forEach.call(l,function(I){_.Mt(z,I)}):_.bC(z,Array.prototype.filter.call(Kyw(z),function(I){return!_.rf(l,I)}).join(" "))};var B2u=function(z){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=z.document},ioI=function(z,l){XbA(z);
var I=document.createElement("div"),b;(b=l.parentNode)==null||b.insertBefore(I,l);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var v;(v=l.parentNode)==null||v.insertBefore(I,l.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var M=qfA(z,l),x=qfA(z,l,!0);M&&x&&(z.focusChangeHandler=function(){var g=z.document.activeElement;if(g)if(_.Wl(l,g))z.previouslyFocusedElement=g;else if(g===z.document.activeElement)switch(z.previouslyFocusedElement){case M:x.focus();z.previouslyFocusedElement=
x;break;default:M.focus(),z.previouslyFocusedElement=M}},z.document.addEventListener("focus",z.focusChangeHandler,!0),z.document.addEventListener("focusin",z.focusChangeHandler))},XbA=function(z){z.focusChangeHandler&&(document.removeEventListener("focus",z.focusChangeHandler,!0),document.removeEventListener("focusin",z.focusChangeHandler),z.focusChangeHandler=null);
var l;(l=document.getElementById("fc-focus-trap-pre-div"))==null||l.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},FyA=function(z,l,I,b,v){I=I===void 0?!0:I;
var M;v=(M=v===void 0?null:v)!=null?M:qfA(z,l,b===void 0?!1:b);v!==null&&(v.focus(),I&&ioI(z,l))};
B2u.prototype.disableButton=function(z,l){l=l===void 0?null:l;z.disabled=!0;l&&_.DY(z,l)};
var qfA=function(z,l,I){I=I===void 0?!1:I;if(Jxk(l)&&!I)return l;var b=I?[].slice.call(l.children,0).reverse():l.children;b=_.D(b);for(var v=b.next();!v.done;v=b.next())if(v=v.value,ReA(v)&&(v=qfA(z,v,I)))return v;return Jxk(l)&&I?l:null};var Qj_=function(z){this.originalBodyOverflow="";this.JSC$10000_domHelper=Q6(z)};
Qj_.prototype.enableScrolling=function(){this.JSC$10000_domHelper.JSC$9327_document_.body.style.overflow=this.originalBodyOverflow};_.Gs(_.Tz,_.Q9);_.p=_.Tz.prototype;_.p.JSC$10003_id_=0;_.p.disposeInternal=function(){_.Tz.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10001_listener_;delete this.handler_};
_.p.start=function(z){this.stop();this.JSC$10003_id_=$9(this.callback_,z!==void 0?z:this.JSC$10001_interval_)};
_.p.stop=function(){this.isActive()&&_.v7.clearTimeout(this.JSC$10003_id_);this.JSC$10003_id_=0};
_.p.fire=function(){this.stop();this.JSC$10003_doAction_()};
_.p.isActive=function(){return this.JSC$10003_id_!=0};
_.p.JSC$10003_doAction_=function(){this.JSC$10003_id_=0;this.JSC$10001_listener_&&this.JSC$10001_listener_.call(this.handler_)};_.GR=function(z){_.Q9.call(this);this.handler_=z;this.JSC$10004_keys_={}};
_.Gs(_.GR,_.Q9);var Yfp=[];_.GR.prototype.listen=function(z,l,I,b){Array.isArray(l)||(l&&(Yfp[0]=l.toString()),l=Yfp);for(var v=0;v<l.length;v++){var M=_.dZ(z,l[v],I||this.handleEvent,b||!1,this.handler_||this);if(!M)break;this.JSC$10004_keys_[M.key]=M}return this};
_.GR.prototype.listenOnce=function(z,l,I,b){return T2w(this,z,l,I,b)};
var T2w=function(z,l,I,b,v,M){if(Array.isArray(I))for(var x=0;x<I.length;x++)T2w(z,l,I[x],b,v,M);else{l=YC(l,I,b||z.handleEvent,v,M||z.handler_||z);if(!l)return z;z.JSC$10004_keys_[l.key]=l}return z};
_.GR.prototype.unlisten=function(z,l,I,b,v){if(Array.isArray(l))for(var M=0;M<l.length;M++)this.unlisten(z,l[M],I,b,v);else if(z=ICA(z,l,I||this.handleEvent,_.Lu(b)?!!b.capture:!!b,v||this.handler_||this))T4(z),delete this.JSC$10004_keys_[z.key];return this};
_.GR.prototype.removeAll=function(){_.h7.forEach(this.JSC$10004_keys_,function(z,l){this.JSC$10004_keys_.hasOwnProperty(l)&&T4(z)},this);
this.JSC$10004_keys_={}};
_.GR.prototype.disposeInternal=function(){_.GR.superClass_.disposeInternal.call(this);this.removeAll()};
_.GR.prototype.handleEvent=function(){throw Error("Oa");};var pm=function(){_.Q9.call(this);this.services_={}};
_.Gs(pm,_.Q9);pm.prototype.connect=function(z){z&&z()};
pm.prototype.isConnected=function(){return!0};
pm.prototype.registerService=function(z,l,I){this.services_[z]={callback:l,objectPayload:!!I}};
pm.prototype.getService=function(z,l){var I=this.services_[z];return I?I:this.defaultService_?{callback:_.tH(this.defaultService_,z),objectPayload:_.Lu(l)}:null};
var cX_=function(z,l){if(l&&typeof z==="string")try{return JSON.parse(z)}catch(I){return null}else if(!l&&typeof z!=="string")return(0,_.wO)(z);return z};
pm.prototype.disposeInternal=function(){pm.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 D9=function(z,l){this.sequence_=[];this.onCancelFunction_=z;this.defaultScope_=l||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
D9.prototype.cancel=function(z){if(this.fired_)this.result_ instanceof D9&&this.result_.cancel();else{if(this.parent_){var l=this.parent_;delete this.parent_;z?l.cancel(z):(l.branches_--,l.branches_<=0&&l.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new xZ(this))}};
D9.prototype.continue_=function(z,l){this.blocked_=!1;Sfu(this,z,l)};
var Sfu=function(z,l,I){z.fired_=!0;z.result_=I;z.hadError_=!l;dMn(z)},PEn=function(z){if(z.fired_){if(!z.silentlyCanceled_)throw new ozI(z);
z.silentlyCanceled_=!1}};
D9.prototype.callback=function(z){PEn(this);Sfu(this,!0,z)};
D9.prototype.errback=function(z){PEn(this);Sfu(this,!1,z)};
var he_=function(z,l,I){Oh(z,l,null,I)};
D9.prototype.finally=function(z){var l=this;return sjA(new Promise(function(I,b){Oh(l,function(v){z();I(v)},function(v){z();
b(v)})}))};
var Oh=function(z,l,I,b){var v=z.fired_;v||(l===I?l=I=Pn(l):(l=Pn(l),I=Pn(I)));z.sequence_.push([l,I,b]);v&&dMn(z)};
D9.prototype.then=function(z,l,I){var b,v,M=new _.yK(function(x,g){v=x;b=g});
Oh(this,v,function(x){x instanceof xZ?M.cancel():b(x);return rX_},this);
return M.then(z,l,I)};
gq_(D9);var $M_=function(z,l){l instanceof D9?he_(z,(0,_.YN)(l.branch,l)):he_(z,function(){return l})};
D9.prototype.branch=function(z){var l=new D9;Oh(this,l.callback,l.errback,l);z&&(l.parent_=this,this.branches_++);return l};
D9.prototype.isError=function(z){return z instanceof Error};
var ee_=function(z){return V1(z.sequence_,function(l){return typeof l[1]==="function"})},rX_={},dMn=function(z){if(z.unhandledErrorId_&&z.fired_&&ee_(z)){var l=z.unhandledErrorId_,I=wbA[l];
I&&(_.v7.clearTimeout(I.JSC$10021_id_),delete wbA[l]);z.unhandledErrorId_=0}z.parent_&&(z.parent_.branches_--,delete z.parent_);l=z.result_;for(var b=I=!1;z.sequence_.length&&!z.blocked_;){var v=z.sequence_.shift(),M=v[0],x=v[1];v=v[2];if(M=z.hadError_?x:M)try{var g=M.call(v||z.defaultScope_,l);g===rX_&&(g=void 0);g!==void 0&&(z.hadError_=z.hadError_&&(g==l||z.isError(g)),z.result_=l=g);if(Ghz(l)||typeof _.v7.Promise==="function"&&l instanceof _.v7.Promise)b=!0,z.blocked_=!0}catch(G){l=G,z.hadError_=
!0,ee_(z)||(I=!0)}}z.result_=l;b&&(g=(0,_.YN)(z.continue_,z,!0),b=(0,_.YN)(z.continue_,z,!1),l instanceof D9?(Oh(l,g,b),l.blocking_=!0):l.then(g,b));I&&(l=new AXu(l),wbA[l.JSC$10021_id_]=l,z.unhandledErrorId_=l.JSC$10021_id_)},sjA=function(z){var l=new D9;
z.then(function(I){l.callback(I)},function(I){l.errback(I)});
return l},ozI=function(){_.I1.call(this)};
_.Gs(ozI,_.I1);ozI.prototype.message="Deferred has already fired";ozI.prototype.name="AlreadyCalledError";var xZ=function(){_.I1.call(this)};
_.Gs(xZ,_.I1);xZ.prototype.message="Deferred was canceled";xZ.prototype.name="CanceledError";var AXu=function(z){this.JSC$10021_id_=_.v7.setTimeout((0,_.YN)(this.throwError,this),0);this.JSC$10021_error_=z};
AXu.prototype.throwError=function(){delete wbA[this.JSC$10021_id_];throw this.JSC$10021_error_;};
var wbA={};var Wyu={1:"NativeMessagingTransport"},nz_=["pu","lru","pru","lpu","ppu"],UMj=function(){for(var z=10,l=Lyp,I=l.length,b="";z-- >0;)b+=l.charAt(Math.floor(Math.random()*I));return b},Lyp="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var gT=function(z){_.Q9.call(this);this.JSC$10024_domHelper_=z||Q6()};
_.Gs(gT,_.Q9);gT.prototype.transportType=0;gT.prototype.getWindow=function(){return this.JSC$10024_domHelper_.getWindow()};
gT.prototype.getName=function(){return Wyu[String(this.transportType)]||""};var Gp=function(z,l,I,b,v){gT.call(this,I);this.JSC$10027_channel_=z;this.protocolVersion_=v||2;this.peerHostname_=l||"*";this.JSC$10027_eventHandler_=new _.GR(this);this.maybeAttemptToConnectTimer_=new _.gm(100,this.getWindow());this.oneSidedHandshake_=!!b;this.setupAckReceived_=new D9;this.setupAckSent_=new D9;this.JSC$10027_connected_=new D9;this.endpointId_=UMj();this.peerEndpointId_=null;this.oneSidedHandshake_?a_u(this.JSC$10027_channel_)==1?$M_(this.JSC$10027_connected_,this.setupAckReceived_):
$M_(this.JSC$10027_connected_,this.setupAckSent_):($M_(this.JSC$10027_connected_,this.setupAckReceived_),this.protocolVersion_==2&&$M_(this.JSC$10027_connected_,this.setupAckSent_));he_(this.JSC$10027_connected_,this.notifyConnected_,this);this.JSC$10027_connected_.callback(!0);this.JSC$10027_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Gs(Gp,gT);Gp.prototype.peerProtocolVersion_=null;Gp.prototype.initialized_=!1;Gp.prototype.transportType=1;var V3u={};Gp.prototype.sendTimerId_=0;
var zbw=function(z){var l=z.event_.data;if(typeof l!=="string")return!1;var I=l.indexOf("|"),b=l.indexOf(":");if(I==-1||b==-1)return!1;var v=l.substring(0,I);I=l.substring(I+1,b);l=l.substring(b+1);if(b=NR[v])return b.xpcDeliver(I,l,z.event_.origin),!0;b=jju(l)[0];for(var M in NR){var x=NR[M];if(a_u(x)==1&&!x.isConnected()&&I=="tp"&&(b=="SETUP"||b=="SETUP_NTPV2")&&JXA(x,z.event_.origin))return delete NR[x.name],x.name=v,NR[v]=x,x.xpcDeliver(I,l),!0}return!1},lJ0=function(z){z.protocolVersion_!=2||
z.peerProtocolVersion_!=null&&z.peerProtocolVersion_!=2||z.send("tp","SETUP_NTPV2,"+z.endpointId_);
z.peerProtocolVersion_!=null&&z.peerProtocolVersion_!=1||z.send("tp","SETUP")},IJM=function(z,l){if(z.protocolVersion_!=2||z.peerProtocolVersion_!=null&&z.peerProtocolVersion_!=2||l!=2){if(z.peerProtocolVersion_!=null&&z.peerProtocolVersion_!=1||l!=1)return;
z.send("tp","SETUP_ACK")}else z.send("tp","SETUP_ACK_NTPV2");z.setupAckSent_.fired_||z.setupAckSent_.callback(!0)},bPA=function(z,l){l>z.peerProtocolVersion_&&(z.peerProtocolVersion_=l);
z.peerProtocolVersion_==1&&(z.setupAckSent_.fired_||z.oneSidedHandshake_||z.setupAckSent_.callback(!0),z.peerEndpointId_=null)};
_.p=Gp.prototype;_.p.connect=function(){var z=this.getWindow(),l=_.UY(z),I=V3u[l];typeof I!=="number"&&(I=0);I==0&&_.dZ(z.postMessage?z:z.document,"message",zbw,!1,Gp);V3u[l]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.p.maybeAttemptToConnect_=function(){var z=a_u(this.JSC$10027_channel_)==0;this.oneSidedHandshake_&&z||this.JSC$10027_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),lJ0(this))};
_.p.send=function(z,l){var I=this.JSC$10027_channel_.peerWindowObject_;I&&(this.send=function(b,v){var M=this,x=this.JSC$10027_channel_.name;this.sendTimerId_=$9(function(){M.sendTimerId_=0;try{var g=I.postMessage?I:I.document;g.postMessage&&g.postMessage(x+"|"+b+":"+v,M.peerHostname_)}catch(G){}},0)},this.send(z,l))};
_.p.notifyConnected_=function(){var z=this.JSC$10027_channel_,l=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;z.isConnected()||z.connectionDelay_&&z.connectionDelay_.isActive()||(z.state_=2,_.p0(z.connectionDelay_),l!==void 0?(z.connectionDelay_=new _.Tz(z.connectCb_,l),z.connectionDelay_.start()):(z.connectionDelay_=null,z.connectCb_()))};
_.p.disposeInternal=function(){if(this.initialized_){var z=this.getWindow(),l=_.UY(z),I=V3u[l];V3u[l]=I-1;I==1&&_.dO(z.postMessage?z:z.document,"message",zbw,!1,Gp)}this.sendTimerId_&&(_.v7.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.p0(this.JSC$10027_eventHandler_);delete this.JSC$10027_eventHandler_;_.p0(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10027_connected_.cancel();delete this.JSC$10027_connected_;delete this.send;Gp.superClass_.disposeInternal.call(this)};
var jju=function(z){z=z.split(",");z[1]=z[1]||null;return z};var Mm_;_.Eh=function(z){if(z.getValues&&typeof z.getValues=="function")return z.getValues();if(typeof Map!=="undefined"&&z instanceof Map||typeof Set!=="undefined"&&z instanceof Set)return Array.from(z.values());if(typeof z==="string")return z.split("");if(_.wf(z)){for(var l=[],I=z.length,b=0;b<I;b++)l.push(z[b]);return l}return _.h7.getValues(z)};
_.vPu=function(z){if(z.getKeys&&typeof z.getKeys=="function")return z.getKeys();if(!z.getValues||typeof z.getValues!="function"){if(typeof Map!=="undefined"&&z instanceof Map)return Array.from(z.keys());if(!(typeof Set!=="undefined"&&z instanceof Set)){if(_.wf(z)||typeof z==="string"){var l=[];z=z.length;for(var I=0;I<z;I++)l.push(I);return l}return _.h7.getKeys(z)}}};
Mm_=function(z,l,I){if(z.forEach&&typeof z.forEach=="function")z.forEach(l,I);else if(_.wf(z)||typeof z==="string")Array.prototype.forEach.call(z,l,I);else for(var b=_.vPu(z),v=_.Eh(z),M=v.length,x=0;x<M;x++)l.call(I,v[x],b&&b[x],z)};var VT1,kZ,m3,NrA,p8j,xy_,Dyp,G3_,OP0;
_.lJ=function(z,l){this.JSC$10032_domain_=this.userInfo_=this.scheme_="";this.JSC$10032_port_=null;this.fragment_=this.JSC$10032_path_="";this.JSC$10032_ignoreCase_=!1;var I;z instanceof _.lJ?(this.JSC$10032_ignoreCase_=l!==void 0?l:z.JSC$10032_ignoreCase_,_.uC(this,z.scheme_),this.userInfo_=z.userInfo_,_.Z9(this,z.JSC$10032_domain_),_.HH(this,z.JSC$10032_port_),_.y4(this,z.getPath()),_.fm(this,z.JSC$10032_queryData_.clone()),_.Cm(this,z.fragment_)):z&&(I=_.zo(String(z)))?(this.JSC$10032_ignoreCase_=
!!l,_.uC(this,I[1]||"",!0),this.userInfo_=kZ(I[2]||""),_.Z9(this,I[3]||"",!0),_.HH(this,I[4]),_.y4(this,I[5]||"",!0),_.fm(this,I[6]||"",!0),_.Cm(this,I[7]||"",!0)):(this.JSC$10032_ignoreCase_=!!l,this.JSC$10032_queryData_=new _.Rl(null,this.JSC$10032_ignoreCase_))};
_.lJ.prototype.toString=function(){var z=[],l=this.scheme_;l&&z.push(m3(l,p8j,!0),":");var I=this.JSC$10032_domain_;if(I||l=="file")z.push("//"),(l=this.userInfo_)&&z.push(m3(l,p8j,!0),"@"),z.push(_.LP(I).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I=this.JSC$10032_port_,I!=null&&z.push(":",String(I));if(I=this.getPath())this.JSC$10032_domain_&&I.charAt(0)!="/"&&z.push("/"),z.push(m3(I,I.charAt(0)=="/"?Dyp:xy_,!0));(I=this.JSC$10032_queryData_.toString())&&z.push("?",I);(I=this.fragment_)&&z.push("#",
m3(I,OP0));return z.join("")};
_.lJ.prototype.resolve=function(z){var l=this.clone(),I=!!z.scheme_;I?_.uC(l,z.scheme_):I=!!z.userInfo_;I?l.userInfo_=z.userInfo_:I=!!z.JSC$10032_domain_;I?_.Z9(l,z.JSC$10032_domain_):I=z.JSC$10032_port_!=null;var b=z.getPath();if(I)_.HH(l,z.JSC$10032_port_);else if(I=!!z.JSC$10032_path_){if(b.charAt(0)!="/")if(this.JSC$10032_domain_&&!this.JSC$10032_path_)b="/"+b;else{var v=l.getPath().lastIndexOf("/");v!=-1&&(b=l.getPath().slice(0,v+1)+b)}v=b;if(v==".."||v==".")b="";else if(_.Np(v,"./")||_.Np(v,
"/.")){b=_.DS(v,"/");v=v.split("/");for(var M=[],x=0;x<v.length;){var g=v[x++];g=="."?b&&x==v.length&&M.push(""):g==".."?((M.length>1||M.length==1&&M[0]!="")&&M.pop(),b&&x==v.length&&M.push("")):(M.push(g),b=!0)}b=M.join("/")}else b=v}I?_.y4(l,b):I=z.JSC$10032_queryData_.toString()!=="";I?_.fm(l,z.JSC$10032_queryData_.clone()):I=!!z.fragment_;I&&_.Cm(l,z.fragment_);return l};
_.lJ.prototype.clone=function(){return new _.lJ(this)};
_.uC=function(z,l,I){z.scheme_=I?kZ(l,!0):l;z.scheme_&&(z.scheme_=z.scheme_.replace(/:$/,""));return z};
_.Z9=function(z,l,I){z.JSC$10032_domain_=I?kZ(l,!0):l;return z};
_.HH=function(z,l){if(l){l=Number(l);if(isNaN(l)||l<0)throw Error("Pa`"+l);z.JSC$10032_port_=l}else z.JSC$10032_port_=null;return z};
_.lJ.prototype.getPath=function(){return this.JSC$10032_path_};
_.y4=function(z,l,I){z.JSC$10032_path_=I?kZ(l,!0):l;return z};
_.fm=function(z,l,I){l instanceof _.Rl?(z.JSC$10032_queryData_=l,gPu(z.JSC$10032_queryData_,z.JSC$10032_ignoreCase_)):(I||(l=m3(l,G3_)),z.JSC$10032_queryData_=new _.Rl(l,z.JSC$10032_ignoreCase_));return z};
_.V9=function(z,l,I){z.JSC$10032_queryData_.set(l,I);return z};
_.aQ=function(z,l){return z.JSC$10032_queryData_.get(l)};
_.Cm=function(z,l,I){z.fragment_=I?kZ(l):l;return z};
_.Km=function(z){_.V9(z,"zx",L0());return z};
_.UA=function(z,l){return z instanceof _.lJ?z.clone():new _.lJ(z,l)};
VT1=function(z,l){z instanceof _.lJ||(z=_.UA(z));l instanceof _.lJ||(l=_.UA(l));return z.resolve(l)};
kZ=function(z,l){return z?l?decodeURI(z.replace(/%25/g,"%2525")):decodeURIComponent(z):""};
m3=function(z,l,I){return typeof z==="string"?(z=encodeURI(z).replace(l,NrA),I&&(z=z.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),z):null};
NrA=function(z){z=z.charCodeAt(0);return"%"+(z>>4&15).toString(16)+(z&15).toString(16)};
p8j=/[#\/\?@]/g;xy_=/[#\?:]/g;Dyp=/[#\?]/g;G3_=/[#\?@]/g;OP0=/#/g;_.Rl=function(z,l){this.count_=this.keyMap_=null;this.encodedQuery_=z||null;this.JSC$10033_ignoreCase_=!!l};
_.tJ=function(z){z.keyMap_||(z.keyMap_=new Map,z.count_=0,z.encodedQuery_&&zZu(z.encodedQuery_,function(l,I){z.add(vV(l),I)}))};
_.p=_.Rl.prototype;_.p.getCount=function(){_.tJ(this);return this.count_};
_.p.add=function(z,l){_.tJ(this);this.encodedQuery_=null;z=BH(this,z);var I=this.keyMap_.get(z);I||this.keyMap_.set(z,I=[]);I.push(l);this.count_+=1;return this};
_.p.remove=function(z){_.tJ(this);z=BH(this,z);return this.keyMap_.has(z)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(z).length,this.keyMap_.delete(z)):!1};
_.p.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.p.isEmpty=function(){_.tJ(this);return this.count_==0};
_.p.containsKey=function(z){_.tJ(this);z=BH(this,z);return this.keyMap_.has(z)};
_.p.containsValue=function(z){var l=this.getValues();return _.rf(l,z)};
_.p.forEach=function(z,l){_.tJ(this);this.keyMap_.forEach(function(I,b){I.forEach(function(v){z.call(l,v,b,this)},this)},this)};
_.p.getKeys=function(){_.tJ(this);for(var z=Array.from(this.keyMap_.values()),l=Array.from(this.keyMap_.keys()),I=[],b=0;b<l.length;b++)for(var v=z[b],M=0;M<v.length;M++)I.push(l[b]);return I};
_.p.getValues=function(z){_.tJ(this);var l=[];if(typeof z==="string")this.containsKey(z)&&(l=l.concat(this.keyMap_.get(BH(this,z))));else{z=Array.from(this.keyMap_.values());for(var I=0;I<z.length;I++)l=l.concat(z[I])}return l};
_.p.set=function(z,l){_.tJ(this);this.encodedQuery_=null;z=BH(this,z);this.containsKey(z)&&(this.count_-=this.keyMap_.get(z).length);this.keyMap_.set(z,[l]);this.count_+=1;return this};
_.p.get=function(z,l){if(!z)return l;z=this.getValues(z);return z.length>0?String(z[0]):l};
_.EP_=function(z,l,I){z.remove(l);I.length>0&&(z.encodedQuery_=null,z.keyMap_.set(BH(z,l),_.ex(I)),z.count_+=I.length)};
_.Rl.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var z=[],l=Array.from(this.keyMap_.keys()),I=0;I<l.length;I++){var b=l[I],v=_.LP(b);b=this.getValues(b);for(var M=0;M<b.length;M++){var x=v;b[M]!==""&&(x+="="+_.LP(b[M]));z.push(x)}}return this.encodedQuery_=z.join("&")};
_.Rl.prototype.clone=function(){var z=new _.Rl;z.encodedQuery_=this.encodedQuery_;this.keyMap_&&(z.keyMap_=new Map(this.keyMap_),z.count_=this.count_);return z};
var BH=function(z,l){l=String(l);z.JSC$10033_ignoreCase_&&(l=l.toLowerCase());return l},gPu=function(z,l){l&&!z.JSC$10033_ignoreCase_&&(_.tJ(z),z.encodedQuery_=null,z.keyMap_.forEach(function(I,b){var v=b.toLowerCase();
b!=v&&(this.remove(b),_.EP_(this,v,I))},z));
z.JSC$10033_ignoreCase_=l};
_.Rl.prototype.extend=function(z){for(var l=0;l<arguments.length;l++)Mm_(arguments[l],function(I,b){this.add(b,I)},this)};var XE=function(z,l){pm.call(this);for(var I=0,b;b=nz_[I];I++)if(b in z&&!/^https?:\/\//.test(z[b]))throw Error("Ra`"+z[b]+"`"+b);this.cfg_=z;this.name=this.cfg_.cn||UMj();this.JSC$10028_domHelper_=l||Q6();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.GR(this);z.lpu=z.lpu||jCA(this.JSC$10028_domHelper_.getWindow().location.href)+"/robots.txt";z.ppu=z.ppu||jCA(z.pu||"")+"/robots.txt";NR[this.name]=this;ICA(window,"unload",u0n)||YC(window,"unload",u0n)};
_.Gs(XE,pm);var ZPu=RegExp("^%*tp$"),HP_=RegExp("^%+tp$");_.p=XE.prototype;_.p.connectionDelay_=null;_.p.peerWindowDeferred_=null;_.p.transport_=null;_.p.state_=1;_.p.isConnected=function(){return this.state_==2};
_.p.peerWindowObject_=null;_.p.iframeElement_=null;_.p.connect=function(z){this.connectCb_=z||_.Tn;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?he_(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.p.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10028_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var z=this.iframeElement_.contentWindow;z||(z=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=z}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$10028_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Gp(this,this.cfg_.ph,this.JSC$10028_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()()};
_.p.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.p0(this.transport_);this.connectCb_=this.transport_=null;_.p0(this.connectionDelay_);this.connectionDelay_=null};
_.p.send=function(z,l){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(v){I=!1}if(I){_.Lu(l)&&(l=(0,_.wO)(l));I=this.transport_;var b=I.send;ZPu.test(z)&&(z="%"+z);z=z.replace(/[%:|]/g,encodeURIComponent);b.call(I,z,l)}else this.close()}};
_.p.xpcDeliver=function(z,l,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.YN)(this.xpcDeliver,this,z,l,I));else if(JXA(this,I)&&!this.isDisposed()&&this.state_!=3)if(z&&z!="tp")this.isConnected()&&(z=z.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),z=HP_.test(z)?z.substring(1):z,z=this.getService(z,l))&&(l=cX_(l,z.objectPayload),l!=null&&z.callback(l));else switch(z=this.transport_,I=jju(l),l=I[1],I[0]){case "SETUP_ACK":bPA(z,1);z.setupAckReceived_.fired_||z.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":z.protocolVersion_==2&&(bPA(z,2),z.setupAckReceived_.fired_||z.setupAckReceived_.callback(!0));break;case "SETUP":bPA(z,1);IJM(z,1);break;case "SETUP_NTPV2":z.protocolVersion_==2&&(I=z.peerProtocolVersion_,bPA(z,2),IJM(z,2),I!=1&&z.peerEndpointId_==null||z.peerEndpointId_==l||lJ0(z),z.peerEndpointId_=l)}};
var a_u=function(z){var l=z.cfg_.role;return typeof l==="number"?l:window.parent==z.peerWindowObject_?1:0},JXA=function(z,l){var I=z.cfg_.ph;
return _.gf(l==null?"":String(l))||_.gf(I==null?"":String(I))||l==z.cfg_.ph};
XE.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete NR[this.name];_.p0(this.peerLoadHandler_);delete this.peerLoadHandler_;XE.superClass_.disposeInternal.call(this)};
var u0n=function(){for(var z in NR)_.p0(NR[z])},NR={};var fJM=function(z,l){this.JSC$10042_win=z;this.allowAdsHttpEndpoint=l;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10042_domHelper=Q6(z);this.scrollManager=new Qj_(z);this.accessibilityManager=new B2u(z);yrA(this)},yrA=function(z){var l=function(){z.allowAdsPopup&&z.allowAdsPopup.style.setProperty("display","none","important");
z.wallElement.style.setProperty("display","","important");XbA(z.accessibilityManager);FyA(z.accessibilityManager,z.wallElement.querySelector(".fc-dialog-container"),!1,!1,z.wallElement.querySelector(".fc-button-whitelist"));z.scrollManager.enableScrolling()};
z.allowAdsPopup=z.JSC$10042_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-root"});z.allowAdsPopup.style.setProperty("display","none","important");z.JSC$10042_domHelper.appendChild(z.JSC$10042_domHelper.JSC$9327_document_.body,z.allowAdsPopup);var I=z.JSC$10042_domHelper.JSC$9329_createDom("DIV",{"class":"fc-dialog-overlay"});z.JSC$10042_domHelper.appendChild(z.allowAdsPopup,I);var b=z.JSC$10042_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:l});z.JSC$10042_domHelper.appendChild(z.allowAdsPopup,
b);I=z.JSC$10042_domHelper.JSC$9329_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.JT(I,z.allowAdsHttpEndpoint);z.JSC$10042_domHelper.appendChild(b,I);b={};b.pu=_.YR(z.allowAdsHttpEndpoint).toString();b.tp=1;b.cn="fc-whitelist-channel";b.ifrid=I.id;b.osh=!0;z.allowAdsCrossPageChannel=new XE(b);z.allowAdsCrossPageChannel.registerService("close",l);z.allowAdsCrossPageChannel.registerService("refresh",function(){z.JSC$10042_win.location.reload()});
z.allowAdsCrossPageChannel.registerService("resize",function(v){if(v){var M=z.allowAdsPopup.querySelector(".fc-whitelist-dialog");v.width&&M.style.setProperty("width",v.width,"important");v.height&&M.style.setProperty("height",v.height,"important")}},!0);
z.allowAdsCrossPageChannel.connect()};
fJM.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10042_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var qR=window,iC=document,Cs_=qR.location,k3w=function(){},Rbu=/\[native code\]/,Q4=function(z,l,I){return z[l]=z[l]||I},myI=function(z){z=z.sort();
for(var l=[],I=void 0,b=0;b<z.length;b++){var v=z[b];v!=I&&l.push(v);I=v}return l},YZ=function(){var z;
if((z=Object.create)&&Rbu.test(z))z=z(null);else{z={};for(var l in z)z[l]=void 0}return z},Tp=Q4(qR,"gapi",{});var cH={};cH=Q4(qR,"___jsl",YZ());Q4(cH,"I",0);Q4(cH,"hel",10);var KFw=function(){var z=Cs_.href;if(cH.dpo)var l=cH.h;else{l=cH.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),b=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(z=z&&(I.exec(z)||b.exec(z)))try{l=decodeURIComponent(z[2])}catch(v){}}return l},tmI=function(z){var l=Q4(cH,"PQ",[]);
cH.PQ=[];var I=l.length;if(I===0)z();else for(var b=0,v=function(){++b===I&&z()},M=0;M<I;M++)l[M](v)},BrA=function(z){return Q4(Q4(cH,"H",YZ()),z,YZ())};var S7=function(z){this.JSC$10044_obj_=z};
S7.prototype.value=function(){return this.JSC$10044_obj_};
S7.prototype.getWidth=function(){return this.JSC$10044_obj_.width};
S7.prototype.getHeight=function(){return this.JSC$10044_obj_.height};
S7.prototype.getStyle=function(){return this.JSC$10044_obj_.style};var X80=function(z){this.JSC$10047_obj_=z||{}};
_.p=X80.prototype;_.p.value=function(){return this.JSC$10047_obj_};
_.p.setUrl=function(z){this.JSC$10047_obj_.url=z;return this};
_.p.getUrl=function(){return this.JSC$10047_obj_.url};
_.p.getStyle=function(){return this.JSC$10047_obj_.style};
_.p.getId=function(){return this.JSC$10047_obj_.id};
_.p.getContext=function(){return this.JSC$10047_obj_.context};
var qZn=function(z){z.JSC$10047_obj_.attributes=z.JSC$10047_obj_.attributes||{};return new S7(z.JSC$10047_obj_.attributes)};var iPA=function(){X80.apply(this,arguments)};
_.m(iPA,X80);var FFz=Q4(cH,"perf",YZ());Q4(FFz,"g",YZ());var QYI=Q4(FFz,"i",YZ());Q4(FFz,"r",[]);YZ();YZ();var Trj=function(z,l,I){l&&l.length>0&&(l=YZ4(l),I&&I.length>0&&(l+="___"+YZ4(I)),l.length>28&&(l=l.substr(0,28)+(l.length-28)),I=l,l=Q4(QYI,"_p",YZ()),Q4(l,I,YZ())[z]=(new Date).getTime(),l=FFz.r,typeof l==="function"?l(z,"_p",I):l.push([z,"_p",I]))},YZ4=function(z){return z.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var crA=YZ(),SZj=[],dT=function(z){throw Error("Ua`"+z);};
SZj.push(["jsl",function(z){for(var l in z)if(Object.prototype.hasOwnProperty.call(z,l)){var I=z[l];typeof I=="object"?cH[l]=Q4(cH,l,[]).concat(I):Q4(cH,l,I)}if(l=z.u)z=Q4(cH,"us",[]),z.push(l),(l=/^https:(.*)$/.exec(l))&&z.push("http:"+l[1])}]);
var dyz=/^(\/[a-zA-Z0-9_\-]+)+$/,oPu=[/\/amp\//,/\/amp$/,/^\/amp$/],PsI=/^[a-zA-Z0-9\-_\.,!]+$/,hbu=/^gapi\.loaded_[0-9]+$/,sYM=/^[a-zA-Z0-9,._-]+$/,w8_=function(z,l,I,b,v){var M=z.split(";"),x=M.shift(),g=crA[x],G=null;g?G=g(M,l,I,b):dT("no hint processor for: "+x);G||dT("failed to generate load url");l=G;I=l.match(rr_);(b=l.match($yA))&&b.length===1&&ebw.test(l)&&I&&I.length===1||dT("failed sanity: "+z);try{z="?";if(v&&v.length>0){X7Q(v);var u=v.join(",");G=G+"?le="+u;z="&"}if(cH.rol){var Z=cH.ol;
Z&&Z.length&&(G=""+G+z+"ol="+Z.length)}}catch(H){}return G},nPM=function(z,l,I,b){z=Ar_(z);
hbu.test(I)||dT("invalid_callback");l=WFA(l);b=b&&b.length?WFA(b):null;var v=function(M){return encodeURIComponent(M).replace(/%2C/g,",")};
return[encodeURIComponent(z.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",v(z.version),"/m=",v(l),b?"/exm="+v(b):"","/rt=j/sv=1/d=1/ed=1",z.activeMods?"/am="+v(z.activeMods):"",z.resourceSig?"/rs="+v(z.resourceSig):"",z.zcms?"/t="+v(z.zcms):"","/cb=",v(I)].join("")},Ar_=function(z){z.charAt(0)!=="/"&&dT("relative path");
for(var l=z.substring(1).split("/"),I=[];l.length;){z=l.shift();if(!z.length||z.indexOf(".")==0)dT("empty/relative directory");else if(z.indexOf("=")>0){l.unshift(z);break}I.push(z)}z={};for(var b=0,v=l.length;b<v;++b){var M=l[b].split("="),x=decodeURIComponent(M[0]),g=decodeURIComponent(M[1]);M.length==2&&x&&g&&(z[x]=z[x]||g)}l="/"+I.join("/");dyz.test(l)||dT("invalid_prefix");I=0;for(b=oPu.length;I<b;++I)oPu[I].test(l)&&dT("invalid_prefix");I=LFz(z,"k",!0);b=LFz(z,"am");v=LFz(z,"rs");z=LFz(z,"t");
return{pathPrefix:l,version:I,activeMods:b,resourceSig:v,zcms:z}},WFA=function(z){for(var l=[],I=0,b=z.length;I<b;++I){var v=z[I].replace(/\./g,"_").replace(/-/g,"_");
sYM.test(v)&&l.push(v)}return l.join(",")},LFz=function(z,l,I){z=z[l];
!z&&I&&dT("missing: "+l);if(z){if(PsI.test(z))return z;dT("invalid: "+l)}return null},ebw=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,$yA=/\/cb=/g,rr_=/\/\//g;
crA.m=function(z,l,I,b){(z=z[0])||dT("missing_hint");return"https://apis.google.com"+nPM(z,l,I,b)};
var Uy_=decodeURI("%73cript"),aJj=/^[-+_0-9\/A-Za-z]+={0,2}$/,Vmn=function(z,l){for(var I=[],b=0;b<z.length;++b){var v=z[b],M;if(M=v){a:{for(M=0;M<l.length;M++)if(l[M]===v)break a;M=-1}M=M<0}M&&I.push(v)}return I},jY4=function(){var z=cH.nonce;
return z!==void 0?z&&z===String(z)&&z.match(aJj)?z:cH.nonce=null:iC.querySelector?(z=iC.querySelector("script[nonce]"))?(z=z.nonce||z.getAttribute("nonce")||"",z&&z===String(z)&&z.match(aJj)?cH.nonce=z:cH.nonce=null):null:null},lQA=function(z){if(iC.readyState!="loading")Jrj(z);
else{var l=jY4(),I="";l!==null&&(I=' nonce="'+l+'"');z="<"+Uy_+' src="'+encodeURI(z)+'"'+I+"></"+Uy_+">";iC.write(zM0?zM0.createHTML(z):z)}},Jrj=function(z){var l=iC.createElement(Uy_);
l.setAttribute("src",zM0?zM0.createScriptURL(z):z);z=jY4();z!==null&&l.setAttribute("nonce",z);l.async="true";(z=iC.getElementsByTagName(Uy_)[0])?z.parentNode.insertBefore(l,z):(iC.head||iC.body||iC.documentElement).appendChild(l)},bG_=function(z,l,I){IQ4(function(){var b=l===KFw()?Q4(Tp,"_",YZ()):YZ();
b=Q4(BrA(l),"_",b);z(b)},I)},PgH=function(z,l){var I=l||{};
typeof l=="function"&&(I={},I.callback=l);var b=(l=I)&&l._c;if(b)for(var v=0;v<SZj.length;v++){var M=SZj[v][0],x=SZj[v][1];x&&Object.prototype.hasOwnProperty.call(b,M)&&x(b[M],z,l)}l=[];z?l=z.split(":"):I.features&&(l=I.features);if(!(z=I.h)&&(z=KFw(),!z))throw Error("Va");vsu(l||[],I,z)},vsu=function(z,l,I){z=myI(z)||[];
var b=l.callback,v=l.config,M=l.timeout,x=l.ontimeout,g=l.onerror,G=void 0;typeof g=="function"&&(G=g);var u=null,Z=!1;if(M&&!x||!M&&x)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";g=Q4(BrA(I),"r",[]).sort();var H=Q4(BrA(I),"L",[]).sort(),y=cH.le||[],f=[].concat(g),R=function(V,A){if(Z)return 0;qR.clearTimeout(u);H.push.apply(H,F);var W=((Tp||{}).config||{}).update;W?W(v):v&&Q4(cH,"cu",[]).push(v);if(A){Trj("me0",V,f);try{bG_(A,I,G)}finally{Trj("me1",V,f)}}return 1};
M>0&&(u=qR.setTimeout(function(){Z=!0;x()},M));
var F=Vmn(z,H);if(F.length){F=Vmn(z,g);var Y=Q4(cH,"CP",[]),c=Y.length;Y[c]=function(V){if(!V)return 0;Trj("ml1",F,f);var A=function(L){Y[c]=null;R(F,V)&&tmI(function(){b&&b();L()})},W=function(){var L=Y[c+1];
L&&L()};
c>0&&Y[c-1]?Y[c]=function(){A(W)}:A(W)};
if(F.length){var d="loaded_"+cH.I++;Tp[d]=function(V){Y[c](V);Tp[d]=null};
z=w8_(I,F,"gapi."+d,g,y);g.push.apply(g,F);Trj("ml0",F,f);l.sync||qR.___gapisync?lQA(z):Jrj(z)}else Y[c](k3w)}else R(F)&&b&&b()},Mc_;
var pVI=null,DBz=_.v7.trustedTypes;if(DBz&&DBz.createPolicy){try{pVI=DBz.createPolicy("goog#gapi",{createHTML:MPY,createScript:MPY,createScriptURL:MPY})}catch(z){_.v7.console&&_.v7.console.error(z.message)}Mc_=pVI}else Mc_=pVI;var zM0=Mc_,IQ4=function(z,l){if(cH.hee&&cH.hel>0)try{return z()}catch(I){l&&l(I),cH.hel--,PgH("debug_error",function(){try{window.___jsl.hefn(I)}catch(b){throw I;}})}else try{return z()}catch(I){throw l&&l(I),I;
}},xBA=Tp.load;
xBA&&Q4(cH,"ol",[]).push(xBA);Tp.load=function(z,l){return IQ4(function(){return PgH(z,l)})};var dBt;var gsA=function(z,l){var I=I||[];this.serviceId_=z;this.moduleId_=l||null;this.dependencies_=[];OGu(this,I)};
gsA.prototype.toString=function(){return this.serviceId_};
gsA.prototype.getModuleId=function(){return this.moduleId_};
var OGu=function(z,l){var I=!1;I=I===void 0?!1:I;z.dependencies_=z.dependencies_.concat(l);if(I){if(!z.moduleId_)throw Error("Wa`"+z.serviceId_);l.map(function(b){return b.getModuleId()}).forEach(function(b){osG(function(v){v.addExtraEdge(z.moduleId_,b)})})}};var EB1=new gsA("MpJwZc","MpJwZc");var ZM$=new _.QL("a"),uGk=function(z,l,I){_.Y9.call(this,z,l);this.node=l;this.kind=I};
_.m(uGk,_.Y9);var GoI=function(){this.JSC$10060_keys_={};this.urlPrefix_="";this.JSC$10060_queryData_={}};
GoI.prototype.toString=function(){var z=this.urlPrefix_+NkA(this),l=_.CG(this.JSC$10060_queryData_),I="";l!=""&&(I="?"+l);return z+I};
var Es_=function(z){z=ol(z,"md");return!!z&&z!=="0"},NkA=function(z){var l=[],I=(0,_.YN)(function(b){this.JSC$10060_keys_[b]!==void 0&&l.push(b+"="+this.JSC$10060_keys_[b])},z);
Es_(z)?(I("md"),I("k"),I("ck"),I("am"),I("rs"),I("gssmodulesetproto"),I("slk"),I("dti")):(I("sdch"),I("k"),I("ck"),I("am"),I("rt"),"d"in z.JSC$10060_keys_||PH(z,"d","0"),I("d"),I("exm"),I("excm"),(z.JSC$10060_keys_.excm||z.JSC$10060_keys_.exm)&&l.push("ed=1"),I("im"),I("dg"),I("sm"),ol(z,"br")!="1"&&ol(z,"br")!="0"||I("br"),I("br-d"),ol(z,"rb")=="1"&&I("rb"),ol(z,"zs")!=="0"&&I("zs"),umn(z)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return l.join("/")},
ol=function(z,l){return z.JSC$10060_keys_[l]?z.JSC$10060_keys_[l]:null},PH=function(z,l,I){I?z.JSC$10060_keys_[l]=I:delete z.JSC$10060_keys_[l]},ZG_=function(z,l){z.urlPrefix_=l},HGn=function(z,l){l&&l.length>0?(l.sort(),PH(z,"exm",l.join(","))):PH(z,"exm",null)},yE0=function(z,l){l&&l.length>0?(l.sort(),PH(z,"excm",l.join(","))):PH(z,"excm",null)},fQA=function(z){return(z=ol(z,"m"))?z.split(","):[]},umn=function(z){switch(ol(z,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Cf4=function(z,l){var I=Object.keys(l).filter(function(b){return!!Object.keys(l[b]).length}).map(function(b){var v=Object.keys(l[b]);
v.length>1&&v.sort();return b+":"+v.join(",")});
I.sort();PH(z,"ee",I.join(";"))},W5S=function(z){var l=ol(z,"ee");
if(!l)return{};z={};l=_.D(l.split(";"));for(var I=l.next();!I.done;I=l.next()){var b=_.D(I.value.split(":"));I=b.next().value;b=b.next().value;z[I]={};b=_.D(b.split(","));for(var v=b.next();!v.done;v=b.next())z[I][v.value]=!0}return z},kow=function(z){delete z.JSC$10060_keys_.m;
delete z.JSC$10060_keys_.exm;delete z.JSC$10060_keys_.ed};
GoI.prototype.clone=function(){var z=new GoI;z.JSC$10060_keys_=Object.assign({},this.JSC$10060_keys_);z.urlPrefix_=this.urlPrefix_;z.JSC$10060_queryData_=Object.assign({},this.JSC$10060_queryData_);return z};
var n85=function(z,l){l=l===void 0?!0:l;var I=RM_(z),b=new GoI,v=_.zo(I)[5];_.h7.forEach(mB_,function(x){var g=v.match("/"+x+"=([^/]+)");g&&PH(b,x,g[1])});
var M="";M=z.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";ZG_(b,z.substr(0,z.indexOf(M)+M.length));if(!l)return b;(z=_.zo(I)[6]||null)&&zZu(z,function(x,g){b.JSC$10060_queryData_[x]=g});
return b},enG=function(z){z=_.yI(RM_(z));
return z===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(z)?/\/k=/.test(z):!1},RM_=function(z){return z.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?z.substr(65):z},mB_={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},KZj=RegExp("^loaded_(g|h)?[_\\d]+$");_.hJ=function(z){this.JSC$10072_id_=z;this.opts={}};
_.hJ.prototype.JSC$10074_setLabel=function(z){this.label_=z||void 0;return this};
_.hJ.prototype.addUploadMetadata=function(z,l){var I=this.opts.data||{};I[z]=l;this.opts.data=I;return this};
var tcp=function(z){var l=_.h7.filter(z.opts,function(I){return I!==null});
l=_.h7.isEmpty(l)?null:l;z=[z.JSC$10072_id_,z.label_,l];l=RQx(z);return z=z.slice(0,l+1)};
_.hJ.prototype.toString=function(){var z=tcp(this);return"("+_.s7(z,function(l){return JSON.stringify(l)}).join(",")+")"};
_.hJ.prototype.getId=function(){return this.JSC$10072_id_};
_.hJ.prototype.getOptions=function(){return _.h7.clone(this.opts)};var sh=function(){_.hJ.call(this,"image-search")};
_.m(sh,_.hJ);sh.prototype.setSize=function(z){this.opts.imgsz=z;return this};
sh.prototype.JSC$10074_setLabel=function(z){_.hJ.prototype.JSC$10074_setLabel.call(this,z);return this};
sh.prototype.addUploadMetadata=function(z,l){_.hJ.prototype.addUploadMetadata.call(this,z,l);return this};var rT=function(){_.hJ.call(this,"maps")};
_.m(rT,_.hJ);rT.prototype.setZoom=function(z){this.opts.zoom=z;return this};
rT.prototype.JSC$10074_setLabel=function(z){_.hJ.prototype.JSC$10074_setLabel.call(this,z);return this};
rT.prototype.addUploadMetadata=function(z,l){_.hJ.prototype.addUploadMetadata.call(this,z,l);return this};_.$Z=function(){_.hJ.call(this,"photos")};
_.m(_.$Z,_.hJ);_.$Z.prototype.JSC$10074_setLabel=function(z){_.hJ.prototype.JSC$10074_setLabel.call(this,z);return this};
_.$Z.prototype.addUploadMetadata=function(z,l){_.hJ.prototype.addUploadMetadata.call(this,z,l);return this};var e7=function(){_.hJ.call(this,"url")};
_.m(e7,_.hJ);var Bkj=function(){var z=new e7;z.opts.type="video";z.opts.site="youtube.com";return z};
e7.prototype.JSC$10074_setLabel=function(z){_.hJ.prototype.JSC$10074_setLabel.call(this,z);return this};
e7.prototype.addUploadMetadata=function(z,l){_.hJ.prototype.addUploadMetadata.call(this,z,l);return this};var wT=function(){_.hJ.call(this,"video-search")};
_.m(wT,_.hJ);var XV4=function(){var z=new wT;z.opts.site="youtube.com";return z};
wT.prototype.JSC$10074_setLabel=function(z){_.hJ.prototype.JSC$10074_setLabel.call(this,z);return this};
wT.prototype.addUploadMetadata=function(z,l){_.hJ.prototype.addUploadMetadata.call(this,z,l);return this};var qIj=function(){_.hJ.call(this,"web")};
_.m(qIj,_.hJ);qIj.prototype.JSC$10074_setLabel=function(z){_.hJ.prototype.JSC$10074_setLabel.call(this,z);return this};
qIj.prototype.addUploadMetadata=function(z,l){_.hJ.prototype.addUploadMetadata.call(this,z,l);return this};var AJ=function(){this.items_=[];this.opts={}},iGu=function(z){switch(z){case "image-search":return new sh;
case "maps":return new rT;case "photos":return new _.$Z;case "url":return new e7;case "video-search":return new wT;case "web":return new qIj}return new _.hJ(z)};
AJ.prototype.addView=function(z){this.items_.push(typeof z==="string"?iGu(z):z);return this};
var FZ4=function(z){return"("+_.s7(z.items_,function(l){return l.toString()}).join(",")+")"};
AJ.prototype.toString=function(){return FZ4(this)};
AJ.prototype.getViews=function(z,l){l=l===void 0?[]:l;for(var I=this.items_,b=0;b<I.length;b++){var v=I[b];v instanceof AJ?v.getViews(z,l):v.getId()==z&&l.push(v)}return l};
AJ.prototype.getOptions=function(){return _.h7.clone(this.opts)};var eN=function(z){this.basePickerUrl_=z||"https://docs.google.com/picker";this.nav_=new AJ};
eN.prototype.nav_=null;eN.prototype.addView=function(z){this.nav_.addView(z);return this};
eN.prototype.getBaseUrl=function(){return this.basePickerUrl_};
eN.prototype.getViews=function(z){return this.nav_.getViews(z)};
_.Q34=function(z,l){z.callback_=l;return z};var YI4=new Map;YI4.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");YI4.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");YI4.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Tkj=new Set;Tkj.add("application/vnd.google-apps.kix");Tkj.add("application/vnd.google-apps.ritz");Tkj.add("application/vnd.google-apps.punch");var AEz=function(z,l,I){var b=I&&_.oX(I,1);I=cEw(I);var v=z[0].getId();switch(_.Px(v,2)){case 13:return SI_(z,l,b,I);case 3:return dBA(z,l,b,I);case 10:return osp(z,l,b,I);case 27:return osp(z,l,b,I);case 12:return Pf0(z,l);case 2:return hMz(z,l,b,I);case 5:return s3n(z,l,b,I);case 9:return rEA(z,l,b,I);case 6:return $Bp(z,l,b,I);case 25:return eMw(z,l,b,I);case 1:return _.Bx(z[0],HDA,26)?wV_(z,l,b,I):osp(z,l,b,I);default:return{}}},$Bp=function(z,l,I,b){z=z.map(function(v){return{id:v.getId().getId(),
serviceId:"youtube",name:v.getName(),description:_.oX(v,3),type:WH(v),lastEditedUtc:_.ZDI(_.gi(v,_.rn,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:v.getUrl(),embedUrl:_.oX(v,13),thumbnails:nm(GL(v))}});
return{action:l,docs:z,viewToken:b,view:I||"youtube",v2Translated:!0}},hMz=function(z,l,I,b){var v=z.map(function(M){var x=M.getId().getId(),g=_.oX(M,7),G=M.getName(),u=WH(M),Z=_.ZDI(_.gi(M,_.rn,12)).getTime(),H=M.getUrl(),y=Number(m6Y(M)),f=_.oX(M,3),R=_.oX(M,11),F=nm(GL(M));
var Y=_.gi(M,Ng,21);Y=_.cx(Y,1);var c=_.gi(M,Ng,21);c=_.oX(c,10);var d=_.oX(M,13);var V=_.gi(M,Ng,21);V=_.cx(V,9);var A=_.gi(M,Ng,21);A=_.oX(A,11);x={id:x,serviceId:"docs",mimeType:g,name:G,type:u,lastEditedUtc:Z,url:H,sizeBytes:y,description:f,iconUrl:R,thumbnails:F,isShared:Y,downloadUrl:c,embedUrl:d,copyable:V,resourceKey:A};g=_.gi(M,Ng,21);_.cx(g,12)&&(x.uploadState="success",x.isNew=!0);g=_.gi(M,Ng,21);_.Bx(g,x9,3)&&(M=_.gi(M,Ng,21),M=_.gi(M,x9,3),_.Bx(M,pd,2)&&(g=sA(M.getDuration().getSeconds()),
G=M.getDuration(),G=_.Gz(G,2),x.duration=g+G/1E9),x.aspectRatio=M.getAspectRatio());return x});
return{action:l,docs:v,viewToken:b,view:I||"all",extraUserInputs:WZI(z),v2Translated:!0}},s3n=function(z,l,I,b){z=z.map(function(v){var M=_.gi(v,B0u,15);
M=_.gi(M,DI,1);Ry(v,10,DI,M);return{id:v.getId().getId(),serviceId:"web",mimeType:_.oX(v,7),name:v.getName(),type:WH(v),url:v.getUrl(),description:_.oX(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:nm(GL(v))}});
return{action:l,docs:z,viewToken:b,view:I||"image-search",v2Translated:!0}},rEA=function(z,l,I,b){z=z.map(function(v){return{serviceId:"url",
name:GL(v)[0].getUrl().split("/").pop(),type:WH(v),mimeType:_.oX(v,7),url:v.getUrl(),description:_.oX(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:nm(GL(v))}});
return{action:l,docs:z,viewToken:b,view:I||"url",v2Translated:!0}},wV_=function(z,l,I,b){z=z.map(function(v){return{id:v.getId().getId(),
serviceId:"picasa",name:v.getName(),type:WH(v),description:_.oX(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:nm(GL(v))}});
return{action:l,docs:z,viewToken:b,view:I||"webcam",v2Translated:!0}},osp=function(z,l,I,b){return{action:l,
docs:z.map(ns_),viewToken:b,view:LZ_(I||"upload",z),extraUserInputs:WZI(z),v2Translated:!0}},LZ_=function(z,l){return l.some(function(I){var b;
return((b=_.gi(I,Ob,30))==null?void 0:_.Px(b,3))===9})?z+"/gmailphotos":z},dBA=function(z,l,I,b){var v=z.map(function(M){var x={id:M.getId().getId(),
serviceId:"picasa",mimeType:_.oX(M,7),name:M.getName(),type:WH(M),lastEditedUtc:_.ZDI(_.gi(M,_.rn,12)).getTime(),url:M.getUrl(),sizeBytes:Number(m6Y(M)),description:_.oX(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:nm(GL(M)),mediaKey:M.getId().getId(),parentId:_.oX(M,4)},g,G=(g=_.gi(M,C8_,18))==null?void 0:_.gi(g,fap,3);G&&(x.latitude=dG(G,1),x.longitude=dG(G,2));var u;M=(u=_.gi(M,C8_,18))==null?void 0:Sy(u,6);u=M!=null?sA(M):void 0;u&&(x.version=
u);return x});
return{action:l,docs:v,viewToken:b,view:I||"photos",extraUserInputs:WZI(z),v2Translated:!0}},SI_=function(z,l,I,b){z=z.map(function(v){return{id:v.getId().getId(),
serviceId:"et",name:GL(v)[0].getUrl().split("/").pop(),description:_.oX(v,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:nm(GL(v),"etjpg")}});
return{action:l,docs:z,viewToken:b,view:I||"et",v2Translated:!0}},eMw=function(z,l,I,b){z=z.map(function(v){var M=v.getId().getId(),x=b["2"];
return{id:M,serviceId:x.type!=="gmail_themes"&&x.parent==="6226252643674576769"?"picasa":"static_themes",name:v.getName(),mimeType:_.oX(v,7),type:WH(v),description:_.oX(v,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:v.getUrl(),embedUrl:v.getUrl(),thumbnails:nm(GL(v))}});
return{action:l,docs:z,viewToken:b,view:I||"photos",v2Translated:!0}},Pf0=function(z,l){z=z.map(function(I){var b=_.gi(I,yT0,27);
b=_.aC(b,1,_.m0,_.g1())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.oX(I,7),name:I.getName(),description:_.oX(I,3),url:"mailto:"+b,thumbnail:[{url:_.oX(I,11)}],email:b}});
return{action:l,docs:z,view:"contacts",v2Translated:!0}},cEw=function(z){if(!z)return{};
var l=_.oX(z,3);l=l&&JSON.parse(l)||{};return{0:_.oX(z,1),1:_.oX(z,2),2:l}},nm=function(z,l){l=l===void 0?"":l;
if(!z.length)return null;l=="etjpg"&&(z=z.filter(function(I){return I.getUrl().includes("w1200-h300")}));
return z.map(function(I){return{url:I.getUrl(),height:I.getHeight(),width:I.getWidth(),type:l}})},WZI=function(z){return{isAttachment:z.some(function(l){return _.cx(l,31)})}},ns_=function(z){var l,I={id:(l=z.getId())==null?void 0:l.getId(),
serviceId:UB_(z),mimeType:_.oX(z,7),name:z.getName(),type:WH(z),sizeBytes:Number(m6Y(z)),description:_.oX(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:nm(GL(z)),isNew:!0};if(l=_.gi(z,Ob,30)){I.dataUrl=_.oX(l,1)||null;a:{var b=_.gi(z,Ob,30);switch(_.Px(b,3)){case 9:b=_.rG(b,K7z,2,gO);b={remoteRefs:b&&_.oX(b,1)};break a;case 10:case 15:b=_.rG(b,mZ_,4,gO);var v=GL(z);b={photo_id:b&&_.oX(b,1),media_key:z.getId().getId(),media_type:_.Px(z,6)===1?1:2,image_url:v&&
v[0].getUrl(),width:v&&String(v[0].getWidth()),height:v&&String(v[0].getHeight())};break a}b=null}I.uploadMetadata=b;I.uploadId=_.oX(l,9)||null;I.uploadState=aQA(l)||null}(b=l&&_.rG(l,mZ_,4,gO))&&(I.id=_.oX(b,1));(b=l&&_.rG(l,tA_,5,gO))&&(I.contentId=_.oX(b,1));(b=l&&_.rG(l,kT_,7,gO))&&(I.contentId=_.oX(b,1));(b=l&&_.rG(l,RZA,6,gO))&&(I.contentId=_.oX(b,1));(l==null?void 0:_.Px(l,3))===1&&(I.mediaKey=z.getId().getId());return I},UB_=function(z){var l;
switch(((l=_.gi(z,Ob,30))==null?void 0:_.Px(l,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},WH=function(z){switch(_.Px(z,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 _.oX(z,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},aQA=function(z){switch(z==null?void 0:_.Px(z,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 znn,Vc4,j3w,JE_;_.lr0=function(z,l){var I=l||{};l=I.document||document;var b=_.YR(z).toString(),v=(new Pc(l)).createElement("SCRIPT"),M={script_:v,timeout_:void 0},x=new D9(Vc4,M),g=null,G=I.timeout!=null?I.timeout:5E3;G>0&&(g=window.setTimeout(function(){j3w(v,!0);x.errback(new JE_(1,"Timeout reached for loading script "+b))},G),M.timeout_=g);
v.onload=v.onreadystatechange=function(){v.readyState&&v.readyState!="loaded"&&v.readyState!="complete"||(j3w(v,I.cleanupWhenDone||!1,g),x.callback(null))};
v.onerror=function(){j3w(v,!0,g);x.errback(new JE_(0,"Error while loading script "+b))};
M=I.attributes||{};_.h7.extend(M,{type:"text/javascript",charset:"UTF-8"});DKu(v,M);_.Me(v,z);znn(l).appendChild(v);return x};
znn=function(z){var l=X7("HEAD",z);return l&&l.length!==0?l[0]:z.documentElement};
Vc4=function(){if(this&&this.script_){var z=this.script_;z&&z.tagName=="SCRIPT"&&j3w(z,!0,this.timeout_)}};
j3w=function(z,l,I){I!=null&&_.v7.clearTimeout(I);z.onload=function(){};
z.onerror=function(){};
z.onreadystatechange=function(){};
l&&window.setTimeout(function(){_.Bl(z)},0)};
JE_=function(z,l){var I="Jsloader error (code #"+z+")";l&&(I+=": "+l);_.I1.call(this,I);this.code=z};
_.Gs(JE_,_.I1);var Ir_=_.zs(["https://apis.google.com/js/api.js"]),bpI=_.HR(Ir_),DW_=function(z,l,I){I=I===void 0?{}:I;var b=!1,v=v8_(z,l,I).then(function(x){b=!0;return x}),M=_.QxI(5E3).then(function(){return b?v8_(z,l,I):M8j(l,I).then(function(x){return pdj(x,z)})});
return fCj([v,M])},v8_=function(z,l,I){I=I===void 0?{}:I;
return xWz(l,I).then(function(b){return pdj(b,z)})},pdj=function(z,l){var I=_.DS(l,"gapi.")?l.slice(5):l;
return z[I]?_.Hu(z[I]):new _.yK(function(b,v){var M=$9(function(){v(Error("Ya"))},3E4);
z.load(l,{callback:function(){_.v7.clearTimeout(M);b(z[I])},
onerror:function(x){_.v7.clearTimeout(M);v(x)}})})},xWz=function(z,l){l=l===void 0?{}:l;
return z.gapi&&z.gapi.load?_.Hu(z.gapi):M8j(z,l)},M8j=function(z,l){l=l===void 0?{}:l;
return _.lr0(bpI,{document:z.document,attributes:l}).then(function(){return z.gapi})},Opz=function(){};
Opz.prototype.load=function(z,l,I){l=l===void 0?window:l;I=I===void 0?{}:I;var b=Date.now();return DW_(z,l,I).then(function(v){var M=Date.now();return{library:v,loadStartMs:b,loadEndMs:M}},function(v){throw v instanceof Error?v:Error(String(v));
})};var NiQ=function(){_.Q9.call(this);this.gapiLoader_=new Opz;this.origin_=null;this.gapiPickerIframeResolver_=_.b1();this.gapiIframesResolver_=_.b1();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.m(NiQ,_.Q9);var g8M=function(z,l){var I=_.W8("gapi.iframes",l);return I?(z=Date.now(),_.Hu({library:I,loadStartMs:z,loadEndMs:z})):z.gapiLoader_.load("gapi.iframes",l)},G60=function(z,l,I,b,v,M){var x=!1;
x=x===void 0?!1:x;g8M(z,$q(l.ownerDocument)).then(function(g){var G=g.library;z.gapiIframesResolver_.resolve(G);g=z.gapiPickerIframeResolver_;var u=g.resolve,Z=x;Z=Z===void 0?!1:Z;var H={};H["host-message-handler"]=I;z.hostMessageHandlerInternal_=H;var y=_.UA(b);y=_.UA(y);y=_.HH(_.Z9(_.uC(new _.lJ,y.scheme_),y.JSC$10032_domain_),y.JSC$10032_port_).toString();z.origin_=y;y=(new iPA).setUrl(b);y.JSC$10047_obj_.where=l;y.JSC$10047_obj_.allowPost=Z;y.JSC$10047_obj_.messageHandlers=H;Z=_.W8("makeWhiteListIframesFilter",
G)([z.origin_]);y.JSC$10047_obj_.messageHandlersFilter=Z;v!=null&&(y.JSC$10047_obj_.id=v);M!=null&&(y.JSC$10047_obj_.rpctoken=M);Z=qZn(y);Z.JSC$10044_obj_.style={display:"block","min-width":"100%",width:"1px"};Z.JSC$10044_obj_.height="100%";qZn(y).value().allow="camera 'src' "+z.origin_;G=G.getContext().openChild(y.value());u.call(g,G)},function(g){z.gapiIframesResolver_.reject(g);
z.gapiPickerIframeResolver_.reject(g)});
return z.gapiPickerIframeResolver_.promise},NiA=function(z,l){return _.sb([z.gapiIframesResolver_.promise,
z.gapiPickerIframeResolver_.promise]).then(function(I){var b=_.D(I);I=b.next().value;return(b=b.next().value)?b.send("picker-message-handler",l,void 0,_.W8("makeWhiteListIframesFilter",I)([z.origin_])):_.Ph(Error("Za"))})};
NiQ.prototype.disposeInternal=function(){E8_(this);_.Q9.prototype.disposeInternal.call(this)};
var E8_=function(z){z.gapiPickerIframeResolver_.promise.then(function(l){l&&(l.unregister("host-message-handler"),delete z.hostMessageHandlerInternal_["host-message-handler"])})};var uhA=function(){this.JSC$10134_nextId=0};var Hpp=function(z,l){switch(z.action){case "select-contacts":z=Zpn(z.contacts);break;case "visibility":z=z.visible;var I=new Hn;z=_.ey(I,1,7).setVisible(z);I={};I["iframe-command"]=z.serialize();z=I;break;default:z=null}return z?NiA(l,z):_.Hu()},Zpn=function(z){if(!z||z.length==0)return null;
var l=new Hn;_.ey(l,1,11);var I=new uhA;z.forEach(function(b){if(b.email){var v=new Yx;v=_.j2(v,2,b.name?b.name:b.email);var M=new yT0;b=_.oSt(M,1,_.fl,b.email,_.m0);b=_.tT(v,27,b);v=new uru;M=":"+(I.JSC$10134_nextId++).toString(36);v=_.j2(v,1,M);v=_.ey(v,2,12);b=_.tT(b,1,v)}else b=null;b&&Ry(l,7,Yx,b)});
z={};z["iframe-command"]=l.serialize();return z};_.yWI=function(){if(ocx){var z=/Windows NT ([0-9.]+)/;return(z=z.exec(_.Cu()))?z[1]:"0"}return _.d7H?(z=/1[0|1][_.][0-9_.]+/,(z=z.exec(_.Cu()))?z[0].replace(/_/g,"."):"10"):tHt?(z=/Android\s+([^\);]+)(\)|;)/,(z=z.exec(_.Cu()))?z[1]:""):hTQ||sbf||rD7?(z=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(z=z.exec(_.Cu()))?z[1].replace(/_/g,"."):""):""}();var Lm;Lm=function(z){return(z=z.exec(_.Cu()))?z[1]:""};
_.fr_=function(){if(_.CO)return Lm(/Firefox\/([0-9.]+)/);if(_.Zs||Iw||TYG)return L47;if(_.kx){if(_.Y5()||_.yG1()){var z=Lm(/CriOS\/([0-9.]+)/);if(z)return z}return Lm(/Chrome\/([0-9.]+)/)}if(_.ec&&!_.Y5())return Lm(/Version\/([0-9.]+)/);if(ow$||PiS){if(z=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Cu()))return z[1]+"."+z[2]}else if(JDx)return(z=Lm(/Android\s+([0-9.]+)/))?z:Lm(/Version\/([0-9.]+)/);return""}();var CRp=function(){};
_.O9(CRp);CRp.prototype.nextId_=0;_.Uh=function(z){return":"+(z.nextId_++).toString(36)};var al=function(z){_.oW.call(this);this.JSC$10142_dom_=z||Q6();this.JSC$10142_id_=null;this.inDocument_=!1;this.JSC$10142_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Gs(al,_.oW);al.prototype.idGenerator_=CRp.getInstance();al.prototype.getId=function(){return this.JSC$10142_id_||(this.JSC$10142_id_=_.Uh(this.idGenerator_))};
al.prototype.getElement=function(){return this.JSC$10142_element_};
var V4=function(z){z.googUiComponentHandler_||(z.googUiComponentHandler_=new _.GR(z));return z.googUiComponentHandler_},k6j=function(z,l){if(z==l)throw Error("$a");
var I;if(I=l&&z.parent_&&z.JSC$10142_id_){I=z.parent_;var b=z.JSC$10142_id_;I=I.childIndex_&&b?_.h7.get(I.childIndex_,b)||null:null}if(I&&z.parent_!=l)throw Error("$a");z.parent_=l;al.superClass_.setParentEventTarget.call(z,l)};
al.prototype.setParentEventTarget=function(z){if(this.parent_&&this.parent_!=z)throw Error("ab");al.superClass_.setParentEventTarget.call(this,z)};
al.prototype.JSC$10144_createDom=function(){this.JSC$10142_element_=this.JSC$10142_dom_.createElement("DIV")};
al.prototype.render=function(z){Rnp(this,z)};
var Rnp=function(z,l,I){if(z.inDocument_)throw Error("bb");z.JSC$10142_element_||z.JSC$10144_createDom();l?l.insertBefore(z.JSC$10142_element_,I||null):z.JSC$10142_dom_.JSC$9327_document_.body.appendChild(z.JSC$10142_element_);z.parent_&&!z.parent_.inDocument_||z.enterDocument()};
_.p=al.prototype;_.p.decorate=function(z){if(this.inDocument_)throw Error("bb");if(z&&this.canDecorate(z)){this.wasDecorated_=!0;var l=_.e6(z);this.JSC$10142_dom_&&this.JSC$10142_dom_.JSC$9327_document_==l||(this.JSC$10142_dom_=Q6(z));this.decorateInternal(z);this.enterDocument()}else throw Error("cb");};
_.p.canDecorate=function(){return!0};
_.p.decorateInternal=function(z){this.JSC$10142_element_=z};
_.p.enterDocument=function(){this.inDocument_=!0;mWu(this,function(z){!z.inDocument_&&z.getElement()&&z.enterDocument()})};
_.p.exitDocument=function(){mWu(this,function(z){z.inDocument_&&z.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.p.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);mWu(this,function(z){z.dispose()});
!this.wasDecorated_&&this.JSC$10142_element_&&_.Bl(this.JSC$10142_element_);this.parent_=this.model_=this.JSC$10142_element_=this.childIndex_=this.children_=null;al.superClass_.disposeInternal.call(this)};
_.p.getModel=function(){return this.model_};
_.p.addChild=function(z,l){var I=this.children_?this.children_.length:0;if(z.inDocument_&&(l||!this.inDocument_))throw Error("bb");if(I<0||I>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);z.parent_==this?(_.h7.set(this.childIndex_,z.getId(),z),_.$5(this.children_,z)):_.h7.add(this.childIndex_,z.getId(),z);k6j(z,this);_.Bf5(this.children_,I,0,z);z.inDocument_&&this.inDocument_&&z.parent_==this?(l=this.getContentElement(),
(l.childNodes[I]||null)!=z.getElement()&&(z.getElement().parentElement==l&&l.removeChild(z.getElement()),I=l.childNodes[I]||null,l.insertBefore(z.getElement(),I))):l?(this.JSC$10142_element_||this.JSC$10144_createDom(),I=this.children_?this.children_[I+1]||null:null,Rnp(z,this.getContentElement(),I?I.JSC$10142_element_:null)):this.inDocument_&&!z.inDocument_&&z.JSC$10142_element_&&z.JSC$10142_element_.parentNode&&z.JSC$10142_element_.parentNode.nodeType==1&&z.enterDocument()};
_.p.getContentElement=function(){return this.JSC$10142_element_};
var mWu=function(z,l){z.children_&&z.children_.forEach(l,void 0)};
al.prototype.removeChild=function(z,l){if(z){var I=typeof z==="string"?z:z.getId();z=this.childIndex_&&I?_.h7.get(this.childIndex_,I)||null:null;I&&z&&(_.h7.remove(this.childIndex_,I),_.$5(this.children_,z),l&&(z.exitDocument(),z.JSC$10142_element_&&_.Bl(z.JSC$10142_element_)),k6j(z,null))}if(!z)throw Error("eb");return z};_.Gs(s3u,hMp);_.Gs(rEQ,hMp);var K5M;_.h7.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var t8A=function(z,l){l?z.setAttribute("role",l):z.removeAttribute("role")},j7=function(z,l,I){Array.isArray(I)&&(I=I.join(" "));
var b="aria-"+l;I===""||I==void 0?(K5M||(I={},K5M=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=K5M,l in I?z.setAttribute(b,I[l]):z.removeAttribute(b)):z.setAttribute(b,I)};var Biw;_.JJ=function(z,l,I){_.oW.call(this);this.target=z;this.handle=l||z;this.limits=I||new Uz(NaN,NaN,NaN,NaN);this.JSC$10147_document_=_.e6(z);this.JSC$10147_eventHandler_=new _.GR(this);_.kN(this,this.JSC$10147_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;_.dZ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Biw};
_.Gs(_.JJ,_.oW);Biw=_.v7.document&&_.v7.document.documentElement&&!!_.v7.document.documentElement.setCapture&&!!_.v7.document.releaseCapture;_.Xd0=function(z,l){z.hysteresisDistanceSquared_=Math.pow(l,2)};
_.p=_.JJ.prototype;_.p.setEnabled=function(z){this.enabled_=z};
_.p.disposeInternal=function(){_.JJ.superClass_.disposeInternal.call(this);_.dO(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10147_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10147_document_.releaseCapture();this.handle=this.target=null};
_.p.startDrag=function(z){var l=z.type=="mousedown";if(!this.enabled_||this.dragging_||l&&(!z.isButton(0)||_.d7H&&z.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new zF("start",this,z.clientX,z.clientY,z)))this.dragging_=!0,l&&z.preventDefault();else return;else l&&z.preventDefault();l=this.JSC$10147_document_;var I=l.documentElement,b=!this.useSetCapture_;this.JSC$10147_eventHandler_.listen(l,["touchmove","mousemove"],this.handleMove_,
{capture:b,passive:!1});this.JSC$10147_eventHandler_.listen(l,["touchend","mouseup"],this.endDrag,b);this.useSetCapture_?(I.setCapture(!1),this.JSC$10147_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$10147_eventHandler_.listen($q(l),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10147_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,b);this.clientX=this.startX=z.clientX;this.clientY=this.startY=z.clientY;this.screenX=z.screenX;this.screenY=z.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=F5(Q6(this.JSC$10147_document_))}};
_.p.endDrag=function(z,l){this.JSC$10147_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10147_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new zF("end",this,z.clientX,z.clientY,z,q54(this,this.deltaX),ipw(this,this.deltaY),l||z.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.p.handleMove_=function(z){if(this.enabled_){var l=z.clientX-this.clientX,I=z.clientY-this.clientY;this.clientX=z.clientX;this.clientY=z.clientY;this.screenX=z.screenX;this.screenY=z.screenY;if(!this.dragging_){var b=this.startX-this.clientX,v=this.startY-this.clientY;if(b*b+v*v>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new zF("start",this,z.clientX,z.clientY,z)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(z);return}}I=F5p(this,l,I);l=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new zF("beforedrag",
this,z.clientX,z.clientY,z,l,I))&&(Qwz(this,z,l,I),z.preventDefault())}};
var F5p=function(z,l,I){var b=F5(Q6(z.JSC$10147_document_));l+=b.x-z.pageScroll.x;I+=b.y-z.pageScroll.y;z.pageScroll=b;z.deltaX+=l;z.deltaY+=I;return new _.rs(q54(z,z.deltaX),ipw(z,z.deltaY))};
_.JJ.prototype.onScroll_=function(z){var l=F5p(this,0,0);z.clientX=this.clientX;z.clientY=this.clientY;Qwz(this,z,l.x,l.y)};
var Qwz=function(z,l,I,b){z.target.style.left=I+"px";z.target.style.top=b+"px";z.dispatchEvent(new zF("drag",z,l.clientX,l.clientY,l,I,b))},q54=function(z,l){var I=z.limits;
z=isNaN(I.left)?null:I.left;I=isNaN(I.width)?0:I.width;return Math.min(z!=null?z+I:Infinity,Math.max(z!=null?z:-Infinity,l))},ipw=function(z,l){var I=z.limits;
z=isNaN(I.top)?null:I.top;I=isNaN(I.height)?0:I.height;return Math.min(z!=null?z+I:Infinity,Math.max(z!=null?z:-Infinity,l))};
_.JJ.prototype.isDragging=function(){return this.dragging_};
var zF=function(z,l,I,b,v,M,x){_.Y9.call(this,z);this.clientX=I;this.clientY=b;this.browserEvent=v;this.left=M!==void 0?M:l.deltaX;this.top=x!==void 0?x:l.deltaY};
_.Gs(zF,_.Y9);var lo=function(z){this.JSC$10154_map_=new Map;var l=arguments.length;if(l>1){if(l%2)throw Error("ka");for(var I=0;I<l;I+=2)this.set(arguments[I],arguments[I+1])}else z&&this.addAll(z)};
_.p=lo.prototype;_.p.getCount=function(){return this.JSC$10154_map_.size};
_.p.getValues=function(){return Array.from(this.JSC$10154_map_.values())};
_.p.getKeys=function(){return Array.from(this.JSC$10154_map_.keys())};
_.p.containsKey=function(z){return this.JSC$10154_map_.has(z)};
_.p.containsValue=function(z){return this.getValues().some(function(l){return l==z})};
_.p.equals=function(z,l){var I=this;l=l===void 0?function(b,v){return b===v}:l;
return this===z?!0:this.JSC$10154_map_.size!=z.getCount()?!1:this.getKeys().every(function(b){return l(I.JSC$10154_map_.get(b),z.get(b))})};
_.p.isEmpty=function(){return this.JSC$10154_map_.size==0};
_.p.clear=function(){this.JSC$10154_map_.clear()};
_.p.remove=function(z){return this.JSC$10154_map_.delete(z)};
_.p.get=function(z,l){return this.JSC$10154_map_.has(z)?this.JSC$10154_map_.get(z):l};
_.p.set=function(z,l){this.JSC$10154_map_.set(z,l);return this};
_.p.addAll=function(z){if(z instanceof lo){z=_.D(z.JSC$10154_map_);for(var l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;this.JSC$10154_map_.set(l,I)}}else if(z)for(z=_.D(Object.entries(z)),l=z.next();!l.done;l=z.next())I=_.D(l.value),l=I.next().value,I=I.next().value,this.JSC$10154_map_.set(l,I)};
_.p.forEach=function(z,l){var I=this;l=l===void 0?this:l;this.JSC$10154_map_.forEach(function(b,v){return z.call(l,b,v,I)})};
_.p.clone=function(){return new lo(this)};(function(){for(var z=["ms","moz","webkit","o"],l,I=0;l=z[I]&&!_.v7.requestAnimationFrame;++I)_.v7.requestAnimationFrame=_.v7[l+"RequestAnimationFrame"],_.v7.cancelAnimationFrame=_.v7[l+"CancelAnimationFrame"]||_.v7[l+"CancelRequestAnimationFrame"];if(!_.v7.requestAnimationFrame){var b=0;_.v7.requestAnimationFrame=function(v){var M=(new Date).getTime(),x=Math.max(0,16-(M-b));b=M+x;return _.v7.setTimeout(function(){v(M+x)},x)};
_.v7.cancelAnimationFrame||(_.v7.cancelAnimationFrame=function(v){clearTimeout(v)})}})();
var Y5_=[[],[]],Ti0=0,cWu=!1,S50=0,o8u=function(z,l){var I=S50++,b={measureTask:{id:I,fn:z.measure,context:l},mutateTask:{id:I,fn:z.mutate,context:l},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(b.args||(b.args=[]),b.args.length=0,b.args.push.apply(b.args,arguments),b.args.push(b.state)):b.args&&b.args.length!=0?(b.args[0]=b.state,b.args.length=1):b.args=[b.state];b.isScheduled||(b.isScheduled=!0,Y5_[Ti0].push(b));cWu||(cWu=!0,window.requestAnimationFrame(dWI))}},dWI=
function(){cWu=!1;
var z=Y5_[Ti0],l=z.length;Ti0=(Ti0+1)%2;for(var I,b=0;b<l;++b){I=z[b];var v=I.measureTask;I.isScheduled=!1;v.fn&&v.fn.apply(v.context,I.args)}for(b=0;b<l;++b)I=z[b],v=I.mutateTask,I.isScheduled=!1,v.fn&&v.fn.apply(v.context,I.args),I.state={};z.length=0};var PR_=_.zs(["about:blank"]),hnM=_.zs(["javascript:undefined"]),swz=_.HR(PR_);_.YR(swz);var rWA=_.HR(hnM);_.YR(rWA);var Ir=function(z){_.oW.call(this);this.JSC$10160_element_=z;this.listenKeyIn_=_.dZ(this.JSC$10160_element_,"focus",this,!0);this.listenKeyOut_=_.dZ(this.JSC$10160_element_,"blur",this,!0)};
_.Gs(Ir,_.oW);Ir.prototype.handleEvent=function(z){var l=new _.TL(z.event_);l.type=z.type=="focusin"||z.type=="focus"?"focusin":"focusout";this.dispatchEvent(l)};
Ir.prototype.disposeInternal=function(){Ir.superClass_.disposeInternal.call(this);T4(this.listenKeyIn_);T4(this.listenKeyOut_);delete this.JSC$10160_element_};var $W4=function(z,l){this.JSC$10163_element_=z;this.JSC$10163_dom_=l};var bo=function(z,l){al.call(this,l);this.useIframeMask_=!!z;this.lastFocus_=null;this.resizeBackgroundTask_=o8u({mutate:this.resizeBackground_},this);o8u({mutate:this.updateModalAndBackground_},this)};
_.Gs(bo,al);_.p=bo.prototype;_.p.focusHandler_=null;_.p.visible_=!1;_.p.bgEl_=null;_.p.bgIframeEl_=null;_.p.tabCatcherElement_=null;_.p.backwardTabWrapInProgress_=!1;_.p.getCssClass=function(){return"goog-modalpopup"};
_.p.getBackgroundElement=function(){return this.bgEl_};
_.p.JSC$10144_createDom=function(){bo.superClass_.JSC$10144_createDom.call(this);var z=this.getElement(),l=ZS(this.getCssClass()).split(" ");MR(z,l);z.tabIndex=0;_.jN(z,!1);enp(this);wd4(this)};
var enp=function(z){if(z.useIframeMask_&&!z.bgIframeEl_){var l=z.JSC$10142_dom_.JSC$9329_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.JT(l,swz);z.bgIframeEl_=l;z.bgIframeEl_.className=z.getCssClass()+"-bg";_.jN(z.bgIframeEl_,!1);oSA(z.bgIframeEl_,0)}z.bgEl_||(z.bgEl_=z.JSC$10142_dom_.JSC$9329_createDom("DIV",z.getCssClass()+"-bg"),_.jN(z.bgEl_,!1))},wd4=function(z){z.tabCatcherElement_||(z.tabCatcherElement_=z.JSC$10142_dom_.createElement("SPAN"),_.jN(z.tabCatcherElement_,
!1),z.tabCatcherElement_.tabIndex=0,z.tabCatcherElement_.style.position="absolute")};
_.p=bo.prototype;_.p.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.p.canDecorate=function(z){return!!z&&z.tagName=="DIV"};
_.p.decorateInternal=function(z){bo.superClass_.decorateInternal.call(this,z);z=ZS(this.getCssClass()).split(" ");MR(this.getElement(),z);enp(this);wd4(this);this.getElement().tabIndex=0;_.jN(this.getElement(),!1)};
_.p.enterDocument=function(){this.bgIframeEl_&&_.A5(this.bgIframeEl_,this.getElement());_.A5(this.bgEl_,this.getElement());bo.superClass_.enterDocument.call(this);_.Wc(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Ir(this.JSC$10142_dom_.JSC$9327_document_);V4(this).listen(this.focusHandler_,"focusin",this.onFocus);AWA(this,!1)};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.p0(this.focusHandler_);bo.superClass_.exitDocument.call(this);_.Bl(this.bgIframeEl_);_.Bl(this.bgEl_);_.Bl(this.tabCatcherElement_)};
_.p.setVisible=function(z){if(z!=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_&&AWA(this,z),z){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10142_dom_.JSC$9327_document_.activeElement}catch(v){}this.updateModalAndBackground_();V4(this).listen(this.JSC$10142_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10142_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);W54(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)YC(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){V4(this).unlisten(this.JSC$10142_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10142_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)YC(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var l=this.JSC$10142_dom_,I=l.JSC$9327_document_.body,b=l.JSC$9327_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(b==I||l.contains(this.getElement(),b))&&this.lastFocus_.focus()}catch(v){}this.lastFocus_=
null}}};
var AWA=function(z,l){z.modalAriaVisibilityHelper_||(z.modalAriaVisibilityHelper_=new $W4(z.JSC$10142_element_,z.JSC$10142_dom_));z=z.modalAriaVisibilityHelper_;if(l){z.hiddenElements_||(z.hiddenElements_=[]);l=z.JSC$10163_dom_.getChildren(z.JSC$10163_dom_.JSC$9327_document_.body);for(var I=0;I<l.length;I++){var b=l[I],v;if(v=b!=z.JSC$10163_element_)v=b.getAttribute("aria-hidden"),v=!(v==null||v==void 0?0:String(v));v&&(j7(b,"hidden",!0),z.hiddenElements_.push(b))}}else if(z.hiddenElements_){for(l=
0;l<z.hiddenElements_.length;l++)z.hiddenElements_[l].removeAttribute("aria-hidden");z.hiddenElements_=null}};
bo.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var W54=function(z,l){z.bgIframeEl_&&_.jN(z.bgIframeEl_,l);z.bgEl_&&_.jN(z.bgEl_,l);_.jN(z.getElement(),l);_.jN(z.tabCatcherElement_,l)};
_.p=bo.prototype;_.p.onShow=function(){this.dispatchEvent("show")};
_.p.onHide=function(){W54(this,!1);this.dispatchEvent("hide")};
_.p.isVisible=function(){return this.visible_};
_.p.focus=function(){this.focusElement_()};
_.p.resizeBackground_=function(){this.bgIframeEl_&&_.jN(this.bgIframeEl_,!1);this.bgEl_&&_.jN(this.bgEl_,!1);var z=this.JSC$10142_dom_.JSC$9327_document_;var l=_.il($q(this.JSC$10142_dom_.JSC$9327_document_)||window);var I=Math.max(l.width,Math.max(z.body.scrollWidth,z.documentElement.scrollWidth));z=Math.max(l.height,Math.max(z.body.scrollHeight,z.documentElement.scrollHeight));this.bgIframeEl_&&(_.jN(this.bgIframeEl_,!0),_.T40(this.bgIframeEl_,I,z));this.bgEl_&&(_.jN(this.bgEl_,!0),_.T40(this.bgEl_,
I,z))};
_.p.reposition=function(){var z;if(_.Y80(this.getElement())=="fixed")var l=z=0;else l=F5(this.JSC$10142_dom_),z=l.x,l=l.y;var I=S8z(this.getElement());var b=_.il($q(this.JSC$10142_dom_.JSC$9327_document_)||window);z=Math.max(z+b.width/2-I.width/2,0);l=Math.max(l+b.height/2-I.height/2,0);j1(this.getElement(),z,l);j1(this.tabCatcherElement_,z,l)};
_.p.onFocus=function(z){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():z.target==this.tabCatcherElement_&&$9(this.focusElement_,0,this)};
_.p.focusElement_=function(){try{this.getElement().focus()}catch(z){}};
_.p.disposeInternal=function(){_.p0(this.popupShowTransition_);this.popupShowTransition_=null;_.p0(this.popupHideTransition_);this.popupHideTransition_=null;_.p0(this.bgShowTransition_);this.bgShowTransition_=null;_.p0(this.bgHideTransition_);this.bgHideTransition_=null;bo.superClass_.disposeInternal.call(this)};var r1=function(z,l,I){bo.call(this,l,I);this.JSC$10173_class_=z||"modal-dialog";this.buttons_=(new vG).addButton(n80,!0).addButton(L5A,!1,!0)};
_.Gs(r1,bo);_.p=r1.prototype;_.p.escapeToCancel_=!0;_.p.hasTitleCloseButton_=!0;_.p.modal_=!0;_.p.draggable_=!0;_.p.backgroundElementOpacity_=.5;_.p.title_="";_.p.JSC$10175_dragger_=null;_.p.JSC$10175_disposeOnHide_=!1;_.p.titleEl_=null;_.p.titleTextEl_=null;_.p.titleTextId_=null;_.p.titleCloseEl_=null;_.p.contentEl_=null;_.p.buttonEl_=null;_.p.getCssClass=function(){return this.JSC$10173_class_};
_.p.setTitle=function(z){this.title_=z;this.titleTextEl_&&_.LN(this.titleTextEl_,z)};
_.p.getTitle=function(){return this.title_};
_.p.getContent=function(){return""};
_.p.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var UWA=function(z){z.getElement()||z.render();return z.getElement()};
r1.prototype.getBackgroundElement=function(){this.getElement()||this.render();return r1.superClass_.getBackgroundElement.call(this)};
var aru=function(z,l){z.backgroundElementOpacity_=l;z.getElement()&&(l=z.getBackgroundElement())&&oSA(l,z.backgroundElementOpacity_)};
r1.prototype.setDraggable=function(z){this.draggable_=z;V8A(this,z&&this.inDocument_)};
r1.prototype.handleDrag=function(){};
var V8A=function(z,l){var I=ZS(z.JSC$10173_class_+"-title-draggable").split(" ");z.getElement()&&(l?MR(z.titleEl_,I):t3_(z.titleEl_,I));l&&!z.JSC$10175_dragger_?(l=new _.JJ(z.getElement(),z.titleEl_),z.JSC$10175_dragger_=l,MR(z.titleEl_,I),_.dZ(z.JSC$10175_dragger_,"start",z.setDraggerLimits_,!1,z),_.dZ(z.JSC$10175_dragger_,"drag",z.handleDrag,!1,z)):!l&&z.JSC$10175_dragger_&&(z.JSC$10175_dragger_.dispose(),z.JSC$10175_dragger_=null)};
_.p=r1.prototype;
_.p.JSC$10144_createDom=function(){r1.superClass_.JSC$10144_createDom.call(this);var z=this.getElement(),l=this.JSC$10142_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=l.JSC$9329_createDom("DIV",this.JSC$10173_class_+"-title",this.titleTextEl_=l.JSC$9329_createDom("SPAN",{className:this.JSC$10173_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=l.JSC$9329_createDom("SPAN",this.JSC$10173_class_+"-title-close"));N4A(z,this.titleEl_,this.contentEl_=
l.JSC$9329_createDom("DIV",{className:this.JSC$10173_class_+"-content",id:I}),this.buttonEl_=l.JSC$9329_createDom("DIV",this.JSC$10173_class_+"-buttons"));t8A(this.titleTextEl_,"heading");t8A(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;j7(this.titleCloseEl_,"label","Close");t8A(z,"dialog");j7(z,"labelledby",this.titleTextId_||"");_.jN(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(z=this.buttons_,z.JSC$10176_element_=this.buttonEl_,z.render());_.jN(this.buttonEl_,!!this.buttons_);
aru(this,this.backgroundElementOpacity_)};
_.p.decorateInternal=function(z){r1.superClass_.decorateInternal.call(this,z);z=this.getElement();var l=this.JSC$10173_class_+"-content";this.contentEl_=h5(document,null,l,z)[0];this.contentEl_||(this.contentEl_=this.JSC$10142_dom_.JSC$9329_createDom("DIV",l),z.appendChild(this.contentEl_));l=this.JSC$10173_class_+"-title";var I=this.JSC$10173_class_+"-title-text",b=this.JSC$10173_class_+"-title-close";(this.titleEl_=h5(document,null,l,z)[0])?(this.titleTextEl_=h5(document,null,I,this.titleEl_)[0],
this.titleCloseEl_=h5(document,null,b,this.titleEl_)[0]):(this.titleEl_=this.JSC$10142_dom_.JSC$9329_createDom("DIV",l),z.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=XXA(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.ry("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;j7(z,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10142_dom_.JSC$9329_createDom("SPAN",b),this.titleEl_.appendChild(this.titleCloseEl_));_.jN(this.titleCloseEl_,this.hasTitleCloseButton_);l=this.JSC$10173_class_+"-buttons";(this.buttonEl_=h5(document,null,l,z)[0])?(this.buttons_=new vG(this.JSC$10142_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10142_dom_.JSC$9329_createDom("DIV",l),z.appendChild(this.buttonEl_),this.buttons_&&(z=this.buttons_,z.JSC$10176_element_=this.buttonEl_,z.render()),_.jN(this.buttonEl_,
!!this.buttons_));aru(this,this.backgroundElementOpacity_)};
_.p.enterDocument=function(){r1.superClass_.enterDocument.call(this);V4(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);V4(this).listen(this.buttonEl_,"click",this.onButtonClick_);V8A(this,this.draggable_);V4(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var z=this.getElement();t8A(z,"dialog");this.titleTextEl_.id!==""&&j7(z,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){z=this.JSC$10142_dom_;
var l=this.getBackgroundElement();z.removeNode(this.bgIframeEl_);z.removeNode(l)}this.isVisible()&&AWA(this,!1)}};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);V8A(this,!1);r1.superClass_.exitDocument.call(this)};
_.p.setVisible=function(z){z!=this.isVisible()&&(this.inDocument_||this.render(),r1.superClass_.setVisible.call(this,z))};
_.p.onShow=function(){r1.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.p.onHide=function(){r1.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10175_disposeOnHide_&&this.dispose()};
_.p.setDraggerLimits_=function(){var z=this.JSC$10142_dom_.JSC$9327_document_,l=_.il($q(z)||window),I=Math.max(z.body.scrollWidth,l.width);z=Math.max(z.body.scrollHeight,l.height);var b=S8z(this.getElement());_.Y80(this.getElement())=="fixed"?this.JSC$10175_dragger_.limits=new Uz(0,0,Math.max(0,l.width-b.width),Math.max(0,l.height-b.height)):this.JSC$10175_dragger_.limits=new Uz(0,0,I-b.width,z-b.height)};
_.p.onTitleCloseClick_=function(){jwu(this)};
var jwu=function(z){if(z.hasTitleCloseButton_){var l=z.buttons_,I=l&&l.cancelButton_;I?(l=l.get(I),z.dispatchEvent(new Mx(I,l))&&z.setVisible(!1)):z.setVisible(!1)}},JWz=function(z){z.hasTitleCloseButton_=!1;
z.titleCloseEl_&&_.jN(z.titleCloseEl_,z.hasTitleCloseButton_)};
r1.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;r1.superClass_.disposeInternal.call(this)};
r1.prototype.onButtonClick_=function(z){a:{for(z=z.target;z!=null&&z!=this.buttonEl_;){if(z.tagName=="BUTTON")break a;z=z.parentNode}z=null}if(z&&!z.disabled){z=z.name;var l=this.buttons_.get(z);this.dispatchEvent(new Mx(z,l))&&this.setVisible(!1)}};
r1.prototype.onKey_=function(z){var l=!1,I=!1,b=this.buttons_,v=z.target;if(z.type=="keydown")if(this.escapeToCancel_&&z.keyCode==27){var M=b&&b.cancelButton_;v=v.tagName=="SELECT"&&!v.disabled;M&&!v?(I=!0,l=b.get(M),l=this.dispatchEvent(new Mx(M,l))):v||(l=!0)}else{if(z.keyCode==9&&z.shiftKey&&v==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(Z){}$9(this.resetBackwardTabWrap_,0,this)}}else if(z.keyCode==13){if(v.tagName=="BUTTON"&&!v.disabled)M=v.name;
else if(v==this.titleCloseEl_)jwu(this);else if(b){var x=b.defaultButton_,g;if(g=x)a:{g=X7("BUTTON",b.JSC$10176_element_);for(var G,u=0;G=g[u];u++)if(G.name==x||G.id==x){g=G;break a}g=null}v=(v.tagName=="TEXTAREA"||v.tagName=="SELECT"||v.tagName=="A")&&!v.disabled;!g||g.disabled||v||(M=x)}M&&b&&(I=!0,l=this.dispatchEvent(new Mx(M,String(b.get(M)))))}else v!=this.titleCloseEl_||z.keyCode!=32&&z.key!=" "||jwu(this);if(l||I)z.stopPropagation(),z.preventDefault();l&&this.setVisible(!1)};
var Mx=function(z,l){this.type="dialogselect";this.key=z;this.caption=l};
_.Gs(Mx,_.Y9);var vG=function(z){lo.call(this);z||Q6();this.cancelButton_=this.JSC$10176_element_=this.defaultButton_=null};
_.Gs(vG,lo);_.p=vG.prototype;_.p.clear=function(){lo.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.p.set=function(z,l,I,b){lo.prototype.set.call(this,z,l);I&&(this.defaultButton_=z);b&&(this.cancelButton_=z);return this};
_.p.addButton=function(z,l,I){return this.set(z.key,z.caption,l,I)};
_.p.render=function(){if(this.JSC$10176_element_){_.p4(this.JSC$10176_element_,HpG);var z=Q6(this.JSC$10176_element_);this.forEach(function(l,I){l=z.JSC$9329_createDom("BUTTON",{name:I},l);I==this.defaultButton_&&(l.className="goog-buttonset-default");this.JSC$10176_element_.appendChild(l)},this)}};
_.p.decorate=function(z){if(z&&z.nodeType==1){this.JSC$10176_element_=z;z=X7("BUTTON",this.JSC$10176_element_);for(var l,I,b,v=0;l=z[v];v++)if(I=l.name||l.id,b=XXA(l)||l.value,I){var M=v==0;this.set(I,b,M,l.name=="cancel");M&&_.DY(l,"goog-buttonset-default")}}};
_.p.getElement=function(){return this.JSC$10176_element_};
var n80={key:"ok",caption:"OK"},L5A={key:"cancel",caption:"Cancel"},zqj={key:"yes",caption:"Yes"},lxu={key:"no",caption:"No"},Ix0={key:"save",caption:"Save"},b2p={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new vG).addButton(n80,!0,!0),(new vG).addButton(n80,!0).addButton(L5A,!1,!0),(new vG).addButton(zqj,!0).addButton(lxu,!1,!0),(new vG).addButton(zqj).addButton(lxu,!0).addButton(L5A,!1,!0),(new vG).addButton(b2p).addButton(Ix0).addButton(L5A,!0,!0));_.Gs($BG,r1);_.Gs(eMf,eN);var v7M=_.zs(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),MXA=_.zs(["//apis.google.com/js/rpc.js"]),Zpu=_.HR(v7M),uht=_.HR(MXA),xWp=null;var w1=function(z,l){_.oW.call(this);this.JSC$10185_element_=z;z=_.zu(this.JSC$10185_element_)?this.JSC$10185_element_:this.JSC$10185_element_?this.JSC$10185_element_.body:null;this.isRtl_=!!z&&_.PK0(z);this.listenKey_=_.dZ(this.JSC$10185_element_,_.Hx?"DOMMouseScroll":"mousewheel",this,l)};
_.Gs(w1,_.oW);w1.prototype.handleEvent=function(z){var l=0,I=0,b=z.event_;b.type=="mousewheel"?(z=pWI(-b.wheelDelta),b.wheelDeltaX!==void 0?(l=pWI(-b.wheelDeltaX),I=pWI(-b.wheelDeltaY)):I=z):(z=b.detail,z>100?z=3:z<-100&&(z=-3),b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS?l=z:I=z);typeof this.maxDeltaX_==="number"&&(l=_.rx(l,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.rx(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(l=-l);l=new DA4(z,b,l,I);this.dispatchEvent(l)};
var pWI=function(z){return _.yk&&(_.d7H||PNx)&&z%40!=0?z:z/40};
w1.prototype.disposeInternal=function(){w1.superClass_.disposeInternal.call(this);T4(this.listenKey_);this.listenKey_=null};
var DA4=function(z,l,I,b){_.TL.call(this,l);this.type="mousewheel";this.detail=z;this.deltaX=I;this.deltaY=b};
_.Gs(DA4,_.TL);_.pI=function(z){var l="instance_";if(z.instance_&&z.hasOwnProperty(l))return z.instance_;l=new z;return z.instance_=l};var E8k;var xAp=_.zs(["https://about:blank"]),O2n=_.zs(['javascript:""']),g7u=_.zs(["about:blank"]);_.Gs(JA,$BG);_.p=JA.prototype;_.p.JSC$10193_url_="";_.p.JSC$10193_iframe_=null;_.p.iframeLoaded_=!1;_.p.loadedFired_=!1;_.p.callback_=function(){};
_.p.enterDocument=function(){JA.superClass_.enterDocument.call(this);G65(this.getBackgroundElement(),V4(this))};
_.p.render=function(z){var l=this;JA.superClass_.render.call(this,z);this.useGapi_?g8M(this.iframeManager_,window).then(function(){return Gu_(l)}).then(null,function(){l.callback_({action:"error"})}):NEw(this)};
var Gu_=function(z){var l=z.JSC$10142_dom_.JSC$9329_createDom("div",["picker-dialog-content","picker-frame"]);_.jN(l,!1);z.getContentElement().appendChild(l);return G60(z.iframeManager_,l,function(I){var b=F7z(I["iframe-command"]);switch(b.getCommand()){case 1:I=z.callback_;b=_.gi(b,ZI,2);var v="";switch(b.getStatus()){case 2:v="cancel";break;case 1:v="picked";break;case 3:v="error"}var M=_.OA(b,Yx,2,_.g1(x6Y));b=M.length===0?{action:v}:AEz(M,v,_.gi(b,XQu,7));I.call(z,b);z.setVisible(!1);break;case 4:JWz(z);
z.callback_({action:"loaded"});break;case 7:case 8:I=z.callback_;a:{v=b.getCommand();M=_.gi(b,ZI,2);switch(v){case 7:v="uploadScheduled";break;case 8:v="uploadStateChange";break;default:b={};break a}b=_.OA(M,Yx,2,_.g1(x6Y));if(b.length===0)b={action:v};else{var x=_.gi(M,XQu,7);M=x&&_.oX(x,1);x=cEw(x);b=osp(b,v,M,x)}}I.call(z,b)}},z.JSC$10193_url_,z.targetId_,z.rpcToken_).then(function(I){z.JSC$10193_iframe_=I.getIframeEl();
E7_(z);_.jN(z.JSC$10193_iframe_.parentElement,!0);_.DY(z.getElement(),"picker-dialog");uL0(z);return I})},NEw=function(z){z.JSC$10193_iframe_=z.JSC$10142_dom_.JSC$9329_createDom("IFRAME",{id:z.targetId_,
name:z.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.JT(z.JSC$10193_iframe_,Z2j(z));_.DY(z.getElement(),"picker-dialog");z.getContentElement().appendChild(z.JSC$10193_iframe_);V4(z).listen(z.JSC$10193_iframe_,"load",function(){return void E7_(z)});
z.JSC$10193_iframe_.src=z.JSC$10193_url_;uL0(z)},yK_=function(z){H2w(z,(0,_.YN)(function(l){l.setAuthToken(this.targetId_,this.rpcToken_)},z))},uL0=function(z){var l=_.aQ(_.UA(z.JSC$10193_url_),"title");
l&&z.setTitle(l)},Z2j=function(z){return _.ut5("Internet Explorer")>=7&&_.DS(z.JSC$10193_url_,"https")?_.HR(xAp):_.Zs?_.HR(O2n):_.HR(g7u)},E7_=function(z){yK_(z);
z.iframeLoaded_=!0;z.JSC$10193_iframe_.tabIndex=0;z.isVisible()&&z.focus()};
JA.prototype.handleKeydown_=function(z){z.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),z.stopPropagation(),z.preventDefault())};
var H2w=function(z,l){var I=z.JSC$10191_gadgetsDomHelper_;Opp(function(){l(I.getWindow().gadgets.rpc)},I)};
JA.prototype.setUrl=function(z){z=_.V9(new _.lJ(z),"rpcService",this.targetId_);_.V9(z,"rpctoken",this.rpcToken_);_.Cm(z,"rpctoken="+this.rpcToken_);_.uC(z,"https");this.JSC$10193_url_=z.toString();this.JSC$10193_iframe_&&(this.JSC$10193_iframe_.src=this.JSC$10193_url_)};
var fxA=function(z,l){z.callback_=l;H2w(z,(0,_.YN)(function(I){I.register(this.targetId_,(0,_.YN)(this.handlePickerAction_,this))},z))};
JA.prototype.handlePickerAction_=function(z){var l=z.action;l=="loaded"&&(this.loadedFired_=!0,C_4(this,new rEQ(this.isVisible())),kuu(this),JWz(this),V4(this).unlisten(this.JSC$10142_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10193_iframe_.tabIndex=0);l!="picked"&&l!="cancel"||this.setVisible(!1);this.callback_(z)};
var kuu=function(z){z.JSC$10193_appId_&&C_4(z,new s3u(z.JSC$10193_appId_,window.location.protocol+"//"+window.location.host))};
JA.prototype.setRelayUrl=function(z){H2w(this,(0,_.YN)(function(l){l.setRelayUrl(this.targetId_,z)},this))};
var C_4=function(z,l){z.useGapi_&&Hpp(l,z.iframeManager_).then(null,function(){z.callback_({action:"error"})});
H2w(z,(0,_.YN)(function(I){I.call(this.targetId_,"picker",null,l)},z))};
JA.prototype.resizePicker_=function(){var z=$q(this.JSC$10142_dom_.JSC$9327_document_)||window;if(_.aQ(_.UA(this.JSC$10193_url_),"ignoreLimits")=="true")z=new _.X5(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.aQ(_.UA(this.JSC$10193_url_),"shadeDialog")=="true"){var l=UWA(this);l=h1u(l);var I=_.il(z);z=I.width-80;I=I.height-40;l&&(z-=l.left?l.left:0,z-=l.right?l.right:0,I-=l.top?l.top:0,I-=l.bottom?l.bottom:0);z=new _.X5(z>0?z:0,I>0?I:0)}else(l=this.preferredDialogWidth_)?(l=Math.max(320,
Math.min(1051,l)),(I=this.preferredDialogHeight_)||(I=_.il(z).height*.85),I=Math.max(480,Math.min(650,I))):(l=_.il(z),I=l.width*.618,I=I<l.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,l.height*.85))),l=Math.round(I/.618)),z=_.il(z),l=Math.min(l,Math.max(z.width,320)),I=Math.min(I,Math.max(z.height,480)),z=new _.X5(l,I);_.T40(this.getContentElement(),z);this.reposition()};
JA.prototype.reposition=function(){if(_.aQ(_.UA(this.JSC$10193_url_),"shadeDialog")=="true"){var z=S8z(this.getElement()),l=_.il(this.JSC$10142_dom_.getWindow());z=Math.floor(l.width/2-z.width/2);l=UWA(this);if(l=h1u(l)){var I=l.left?l.left:0;I+=l.right?l.right:0;z=Math.floor(z-I/2)}z=z>0?z:0;l=F5(this.JSC$10142_dom_).y;j1(this.getElement(),z,l)}else JA.superClass_.reposition.call(this)};
JA.prototype.setVisible=function(z){if(z!=this.isVisible()&&this.autoSizeDialog_){var l=this.JSC$10142_dom_.getWindow();z?(this.resizePicker_(),V4(this).listen(l,"resize",this.resizePicker_),this.iframeLoaded_||V4(this).listen(l,"keydown",this.handleKeydown_)):(V4(this).unlisten(l,"resize",this.resizePicker_),this.iframeLoaded_||V4(this).unlisten(l,"keydown",this.handleKeydown_))}JA.superClass_.setVisible.call(this,z);C_4(this,new rEQ(z))};
JA.prototype.focus=function(){JA.superClass_.focus.call(this);if(this.JSC$10193_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10193_iframe_.focus()}catch(z){}};var eb=function(z,l){l=l===void 0?JA:l;eN.call(this,z);this.pickerConstructor=l;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(z=window.location.origin)||(z=window.location.protocol+"//"+window.location.host);z&&this.urlParamMap_.set("origin",z);this.postProcessors_=[]};
_.m(eb,eMf);eb.prototype.JSC$10198_disposeOnHide_=!1;
eb.prototype.build=function(){this.JSC$10099_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10099_appId_);this.getRelayUrl()||this.setRelayUrl(_.y4(_.Cm(_.fm(_.UA(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var z=new this.pickerConstructor(Rq0(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);z.JSC$10175_disposeOnHide_=this.JSC$10198_disposeOnHide_;
z.JSC$10193_appId_=this.JSC$10099_appId_;z.loadedFired_&&kuu(z);fxA(z,this.callback_);return z};
var mAA=function(z){z.urlParamMap_.set("multiselectEnabled","true");return z};
_.p=eb.prototype;_.p.getHeight=function(){return this.dialogHeight_};
_.p.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.p.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.p.getTitle=function(){return this.urlParamMap_.get("title")};
_.p.getWidth=function(){return this.dialogWidth_};
var Kgu=function(z){z.JSC$10198_disposeOnHide_=void 0;return z};
eb.prototype.setRelayUrl=function(z){this.urlParamMap_.set("parent",z);return this};
var tXM=function(z,l){z.urlParamMap_.set("selectButtonLabel",l);return z};
eb.prototype.setSize=function(z,l){this.dialogWidth_=z;this.dialogHeight_=l;return this};
eb.prototype.setTitle=function(z){this.urlParamMap_.set("title",z);return this};
var Rq0=function(z){z.postProcessors_.length&&z.urlParamMap_.set("pp",JSON.stringify(z.postProcessors_));z.urlParamMap_.set("nav",FZ4(z.nav_));var l=new _.lJ(z.getBaseUrl());z.urlParamMap_.forEach(function(I,b){_.V9(l,b,I)});
return l};var qN_=function(z,l){z.name!==void 0?(this.name=z.name,this.code=BE_[z.name]):(this.code=z=z.code,this.name=XWu(z));_.I1.call(this,Up_("%s %s",this.name,l))};
_.Gs(qN_,_.I1);var XWu=function(z){var l=_.h7.findKey(BE_,function(I){return z==I});
if(l===void 0)throw Error("hb`"+z);return l},p9={},BE_=(p9.AbortError=3,p9.EncodingError=5,p9.InvalidModificationError=9,p9.InvalidStateError=7,p9.NotFoundError=1,p9.NotReadableError=4,p9.NoModificationAllowedError=6,p9.PathExistsError=12,p9.QuotaExceededError=10,p9.SecurityError=2,p9.SyntaxError=8,p9.TypeMismatchError=11,p9);var i2A=function(z,l){_.Y9.call(this,z.type,l);this.event_=z};
_.Gs(i2A,_.Y9);var Fg_=function(z,l,I){I===void 0&&(I=z.size);return z.slice?z.slice(l,I):null};var fr1=new WeakMap,yWQ=function(z,l){z=[z];for(var I=l.length-1;I>=0;--I)z.push(typeof l[I],l[I]);return z.join("\v")};_.k6Y(function(){if(!_.v7.Blob)return!1;var z=new Uint8Array(100);try{var l=new Blob([z])}catch(I){return!1}return l.size!=100?!1:!0});
var QyM=_.k6Y(function(){if(!_.v7.Blob)return!1;var z=new Uint8Array(100);try{var l=new Blob([z])}catch(I){return!1}return Fg_(l,0,1)===null?!1:!0});_.v7.U3bHHf!=null||(_.v7.U3bHHf=0);_.v7.U3bHHf++;_.YN_=new WeakMap;_.TE0=new WeakMap;var mW$={};var Ij=void 0;var t8t=Symbol("pb");var PRk=MM("WizInjectionContext_Dispatcher");var vO5=Symbol("qb");var RY,X0;RY=function(){this.afterRenderCallbacks=null};
_.pu$=Symbol("rb");X0=function(z){this.props=z;this.__unmounted=!1};
X0.prototype.didPatch=function(){};
X0.prototype.didMount=function(){};
X0.prototype.didUnmount=function(){};
X0.prototype.didUpdate=function(){};_.Ti5=MM("WizInjectionContext_RootElement");var S55=MM("WizInjectionContext_AppContext"),cW$=MM("WizInjectionContext_ModelRootElement"),dWQ=MM("WizInjectionContext_RendererData"),o8H=MM("WizInjectionContext_InjectingConstructor"),Y57=MM("WizInjectionContext_AsyncDeps"),hnx={};var AWt=!1;var UWt={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:F4k,enableLazyTsx:QbY,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:i_k,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var D_=Object.assign({},{attributes:{},handleError:function(z){throw z;}},UWt);var cKI=Symbol("vb"),my=Symbol("wb"),AKf=Symbol("xb"),eqS=Symbol("yb"),jyk=c_(function(z){return xz(z)&&cKI in z});var Ix5=Symbol("zb"),D0={},zqY=(D0[Ix5]=!0,D0.debugName="[component]",D0.getComponentStack=function(){for(var z=[],l=this;l;)b2G(l)&&z.push(l.debugName),l=l.parent;return z},D0.registerSignal=function(){},D0.registerEffect=function(){},D0);var Of=null,Ge=!1,DAS=1,H2f=Symbol("Db"),Co={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 xI=Symbol("Eb"),OX=Symbol("Fb"),Ef=Symbol("Gb"),Z2Y=Object.assign({},Co,{value:xI,dirty:!0,error:null,equal:v7x,kind:"computed",producerMustRecompute:function(z){return z.value===xI||z.value===OX},
producerRecomputeValue:function(z){if(z.value===OX)throw Error("Z");var l=z.value;z.value=OX;var I=NEf(z),b=!1;try{var v=z.computation();g2(null);b=l!==xI&&l!==Ef&&v!==Ef&&z.equal(l,v)}catch(M){v=Ef,z.error=M}finally{uL5(z,I)}b?z.value=l:(z.value=v,z.version++)}});Object.assign({},Co,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var kuH=function(){throw Error();};var mAQ=null,fxt=Object.assign({},Co,{equal:v7x,value:void 0,kind:"signal"});Object.assign({},Co,{value:xI,dirty:!0,error:null,equal:v7x,kind:"linkedSignal",producerMustRecompute:function(z){return z.value===xI||z.value===OX},
producerRecomputeValue:function(z){if(z.value===OX)throw Error("Z");var l=z.value;z.value=OX;var I=NEf(z);try{var b=z.source();var v=z.computation(b,l===xI||l===Ef?void 0:{source:z.sourceValue,value:l});z.sourceValue=b}catch(M){v=Ef,z.error=M}finally{uL5(z,I)}l!==xI&&v!==Ef&&z.equal(l,v)?z.value=l:(z.value=v,z.version++)}});Object.assign({},Co,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(z){z.schedule!==null&&z.schedule(z.ref)},
hasRun:!1,cleanupFn:function(){}});var tXx=Symbol("Hb"),Hb=Symbol("Ib");var y3=Array.isArray;var cKQ;var SNu={},dAt=TE5(Object.assign({},{consumerAllowSignalWrites:!0},SNu)),KP=TE5(Object.assign({},{consumerAllowSignalWrites:!0},SNu));var Ko=0,tX=!1,gp=function(){this.queue=new Set};
gp.prototype.schedule=function(z){this.queue.add(z)};
gp.prototype.remove=function(z){this.queue.delete(z)};
gp.prototype.clear=function(){this.queue.clear()};
var hqt=Symbol("Nb"),o7t=Symbol("Ob"),GF=function(){gp.apply(this,arguments)};
_.m(GF,gp);GF.prototype.flush=function(){if(this.queue.size){tX=!0;for(var z=_.D(this.queue),l=z.next();!l.done;l=z.next()){l=l.value;this.queue.delete(l);try{l.run()}catch(I){dAA(I)}}tX=!1}};
var o7A=function(){GF.apply(this,arguments)};
_.m(o7A,GF);var P_G=new o7A,P_p=function(){GF.apply(this,arguments)};
_.m(P_p,GF);P_p.prototype.schedule=function(z){var l=this;return _.O(function(I){if(I.nextAddress==1)return D_.enableQueueEffectAndOnInitInitialRuns?I.jumpTo(2):I.yield(Promise.resolve(),3);if(I.nextAddress!=2)return z.run(),I.return();l.queue.add(z);_.qe(I)})};
var syf=new P_p,Nx=function(){gp.apply(this,arguments)};
_.m(Nx,gp);Nx.prototype.flush=function(){this.queue.size&&JK$(this.queue)};
var hqA=function(){Nx.apply(this,arguments)};
_.m(hqA,Nx);hqA.prototype.schedule=function(z){z.hasRun?this.queue.add(z):z.run()};
hqA.prototype.flush=function(){if(this.queue.size)if(D_.flushRenderEffectsDuringRender){var z=this.queue;this.queue=new Set;JK$(z)}else JK$(this.queue)};
var $Au=new hqA,syw=function(){Nx.apply(this,arguments)};
_.m(syw,Nx);syw.prototype.schedule=function(z){var l=this;return _.O(function(I){if(I.nextAddress==1)return D_.enableQueueEffectAndOnInitInitialRuns||z.hasRun?I.jumpTo(2):I.yield(Promise.resolve(),3);if(I.nextAddress!=2)return z.run(),I.return();l.queue.add(z);_.qe(I)})};
var Wg5=new syw,rKw=function(){Nx.apply(this,arguments)};
_.m(rKw,Nx);var wW$=new rKw,LgY=[$Au,P_G,wW$],VX5=[syf,Wg5],$An=[$Au,wW$,Wg5],ztH=[].concat(_.ht(LgY),_.ht(VX5)),eq4=[];mAQ=function(){ax$();for(var z=_.D(eq4),l=z.next();!l.done;l=z.next())l=l.value,l()};
var dAA=Mp;var qM=Symbol("Pb");var XQ=null,bsu,vFQ=null,Mj7;var EX={},wWu=Object.assign({},Co,(EX[cKI]=!0,EX.effectType=my,EX.isResettableContext=!0,EX.hasRun=!1,EX.effectFn=null,EX.consumerIsAlwaysLive=!0,EX.consumerAllowSignalWrites=!0,EX.consumerMarkedDirty=n7Q,EX.kind="effect",EX.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ge)throw Error("Qb");this.dirty=!1;if(!this.hasRun||xAG(this)){this.hasRun=!0;Qwp(this);var z=_.bE(this),l=NEf(this);V8Q("effectRun",this.debugName);try{Yz(this.effectFn,this.componentStack,this)}catch(I){throw D_.enableContextBasedComponentStacks&&
Q3(I),I;}finally{jw$("effectRun",this.debugName),uL5(this,l),_.bE(z)}}}},EX.componentStack=void 0,EX.debugName="[effect]",EX[Symbol.dispose]=function(){if(NM(this))for(var z=this.producers;z!==void 0;)z=E71(z);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;z=_.D($An);for(var l=z.next();!l.done;l=z.next())l.value.remove(this);F5G(this)},EX));var xhk=Object.assign({},wWu,{effectType:AKf});var OsG=Symbol("Rb");var gFS=Object.assign({},wWu,{effectType:my});var nFQ=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 EFk={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},NSQ=
{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}]}},zNk={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},Hst=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Zsf={"*":{async:1,dir:0,loading:2,target:3}};var AKw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,uo={},fAu=(uo[1]=null,uo[2]=function(z,l){return l instanceof LD?VR(l):$R.toString()},uo[3]=function(z,l){return ou(l)?_.hT(l):AKw.test(String(l))?String(l):$R.toString()},uo[4]=function(z,l){return l instanceof Fr?_.YR(l):$R.toString()},uo[5]=function(z,l){return String(l)},uo[7]=null,uo[8]=null,uo[10]=null,uo);var EMQ=Symbol("Ub");var T9Y=function(z){var l=Wg0,I=z,b="",v="",M=1;z<0&&(z=-z);if(z===Infinity)z=(Infinity*Math.sign(I)).toString();else{for(var x=0;x<n7A.length;x++){var g=n7A[x];M=l[g];if(z>=M||M<=1&&z>.1*M){b=g;break}}b?(b+="B",v=" "):M=1;z=Math.round(I/M*10)/10+v+b}return z},n7A="Y Z E P T G M K  m u n".split(" "),Wg0={"":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};_.Lgj=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 EZ={};RegExp.prototype.hasOwnProperty("sticky");var Uh$=function(z){z=String(z);for(var l=function(b,v,M){for(var x=Math.min(v.length-M,b.length),g=0;g<x;g++){var G=v[M+g];if(b[g]!==("A"<=G&&G<="Z"?G.toLowerCase():G))return!1}return!0},I=0;(I=z.indexOf("<",I))!=-1;){if(l("\x3c/script",z,I)||l("\x3c!--",z,I))return"zSoyz";
I+=1}return z};var $z={default:"__default"};var tjx=Object.prototype.hasOwnProperty;Rtt.prototype=Object.create(null);var bq=qd1();var IY=null;var sKG=function(z){this.created=[];this.deleted=[];this.node=z};var reQ=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var z=this,l=z;z;)l=z,z=z.parentNode;return l};var FIS=function(z,l){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=z;this.key=l;this.text=void 0};var aj=null,V3=null,Wb=null,JX=null,Sdf=[],cek=YdY,z3=[],ls=[],NnG=function(z){return $ht(function(l,I,b){Wb=V3=l;V3=null;I(b);TSY(null);V3=Wb;Wb=Wb.parentNode;return l},z)}(),GDk=function(z){return $ht(function(l,I,b){var v={nextSibling:l};
V3=v;I(b);Wb&&TSY(l.nextSibling);return v===V3?null:V3},z)}();var bs=[],wCG=0;var My=new Rtt;var si=new Rtt;var UAA=qd1(),jKS=UAA[$z.default],Vju=UAA.style,LI1=["focusin","focusout"],lVY="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var sRx=function(){},qUH=function(){},A8x=function(){},$rQ=function(){};var DJ=Symbol("bc");var Dr7,pP$=Mnt;var y7=Symbol("cc");var wPS=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(" ")),
e4Y=new Set(["a","font","script","style","title"]);var H8={setUp:kRQ,tearDown:kRQ,log:kRQ,logNodeRange:kRQ,graft:function(z,l){l()}};var tr={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var QRQ=null,B8=function(z,l){X0.call(this,z);var I=this;this.functionComponent=l;this.hooks=[];this.hookCounter=0;this.disposeEffects=S3(function(b){I.effectContext=b;_.cb(function(){Tmf(I,I.el)})},D_.alwaysTrackContexts||!!Ij)};
_.m(B8,X0);B8.prototype.render=function(z){var l=QRQ;QRQ=this;this.hookCounter=0;var I=g2(KP),b=_.bE(this.effectContext);try{return V8Q("render",this.componentName),this.functionComponent(z)}finally{jw$("render",this.componentName),_.bE(b),g2(I),QRQ=l}};
_.vP.Object.defineProperties(B8.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return lAu(this.functionComponent)}}});var WGG=Symbol("qc"),PM$=function(z,l,I){this.afterRenderCallbacks=null;this.kind=z;this.props=l;this.children=I};
_.m(PM$,RY);PM$.prototype.render=function(){var z=oOH(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var l=_.D(this.afterRenderCallbacks),I=l.next();!I.done;I=l.next())I=I.value,z=I(z);return z};
PM$.prototype.getChildren=function(){return this.children};var LGS=[];kuH=function(z){throw Error("ob`"+z.debugName);};
(function(){var z=IY;IY=function(l){z==null||z(l);UrY(l)}})();Object.assign({},wWu,{effectType:my,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var z=this.elementRef;var l;z.element!=null||(z.element=(l=z.document.getElementById(z.value))!=null?l:void 0);z=z.element;for(l=this.attributes;l;){var I=l.signal();I!==l.prevValue&&(l.prevValue=I,l.namespace===1?z[l.name]=I:nFQ.has(l.name)?r2(z,l.name,I?"":null):r2(z,l.name,I));l=l.next}}});Object.assign({},wWu,{effectType:my,hasRun:!0});_.E.debugName="RlDudd";var aVQ={nonNullableCondIsNull:function(){return Error("vc")}};var IEQ=function(){this.map=new Map};
IEQ.prototype.push=function(z,l){var I=this.map;I.has(z)&&(this.multi||(this.multi=new Map),this.multi.set(l,I.get(z)));I.set(z,l)};
IEQ.prototype.pop=function(z){var l=this.map,I=l.get(z),b;I!==void 0&&((b=this.multi)==null?0:b.has(I))?(l.set(z,this.multi.get(I)),this.multi.delete(I)):l.delete(z);return I};_.qy.debugName="nsTGHd";_.is.debugName="tbhMcf";_.F0.debugName="zyMFzb";_.Q7.debugName="vI1rtf";_.xup={OUT_OF_ORDER_HOOK_CALL:function(z){return Error("wc`"+z)},
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(z,l){return Error("Ac`"+((l===void 0?0:l)?"IDOM":"Reactive")+"`"+(YP(z)?z.description:z))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(z,l){return Error("Bc`"+(YP(z)?z.description:z)+"`"+l)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(z){return Error("Cc`"+(YP(z)?z.description:z))},
USE_ELEMENT_NOT_ASSIGNED:function(z){return Error("Dc`"+(YP(z)?z.description:z))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(z){return Error("Ec`"+(YP(z)?z.description:z))}};Dr7=h4$;var HMu=Symbol("Fc");FGH({beforeRender:function(z){var l=_.bE(z.effectContext);try{var I;((I=z.__syncEffects)==null?0:I.length)&&CJG(z.__syncEffects)}finally{_.bE(l)}},
didPatch:function(z){var l=_.bE(z.effectContext);try{var I;((I=z.__syncEffects)==null?0:I.length)&&CJG(z.__syncEffects)}finally{_.bE(l)}},
didUnmount:function(z){var l;((l=z.hooks)==null?0:l.length)&&z.hooks.forEach(fEQ)}});var axu,VX0,jy_;axu=_.v7.window;_.P8=(axu==null?void 0:(VX0=axu.yt)==null?void 0:VX0.config_)||(axu==null?void 0:(jy_=axu.ytcfg)==null?void 0:jy_.data_)||{};_.vd("yt.config_",_.P8);var JKu={},t_t=[];_.qB=function(z){var l=_.AT.apply(1,arguments);var I=Error.call(this,z);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.ht(l));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.qB,Error);var o4Q=function(z,l,I){this.actionName=z;this.optionalAction=l===void 0?!1:l;this.args=I===void 0?null:I;this.returnValue=[]};_.Z0=function(z){this.name=z};_.eX=new _.Z0("signalAction");var duH=/^[\w.]*$/,FY1={q:!0,search_query:!0},iMH=String(qKY);var HG;HG=Symbol("Gc");_.yH=function(z){this.name=z};
_.yH.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var oBf=function(z){this.key=z},$ut=function(z){this.deferredKey=z},hck=function(){var z=this;
this.providers=new Map;this.JSC$10492_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(z.providers)}}};
hck.prototype.addProvider=function(z){this.providers.set(z.provide,z);var l=this.JSC$10492_deferred.get(z.provide);if(l)try{l.resolver(this.resolve(z.provide))}catch(I){l.rejector(I)}};
hck.prototype.resolve=function(z){return z instanceof $ut?ztu(this,z):z instanceof oBf?lAn(this,z.key,[],!0):lAn(this,z,[])};
var ztu=function(z,l){l=l.deferredKey;if(z.JSC$10492_deferred.has(l))return z.JSC$10492_deferred.get(l).promise;var I={};I.promise=new Promise(function(b,v){I.resolver=b;I.rejector=v});
z.JSC$10492_deferred.set(l,I);return I.promise},lAn=function(z,l,I,b){b=b===void 0?!1:b;
if(I.indexOf(l)>-1)throw Error("Hc`"+l);if(z.cachedValues.has(l))return z.cachedValues.get(l);if(!z.providers.has(l)){if(b)return;throw Error("Ic`"+l);}b=z.providers.get(l);I.push(l);if(b.useValue!==void 0)var v=b.useValue;else if(b.useFactory)v=b[HG]?IAA(z,b[HG],I):[],v=b.useFactory.apply(b,_.ht(v));else if(b.useClass){v=b.useClass;var M=v[HG]?IAA(z,v[HG],I):[];v=new (Function.prototype.bind.apply(v,[null].concat(_.ht(M))))}else throw Error("Jc`"+l);I.pop();b.skipCache||z.cachedValues.set(l,v);return v},
IAA=function(z,l,I){return l?l.map(function(b){return b instanceof oBf?lAn(z,b.key,I,!0):lAn(z,b,I)}):[]};var PJQ;var wE=new _.yH("ENDPOINT_HANDLER_TOKEN");_.AK=new _.Z0("urlEndpoint");var bsn=function(){this.data=[];this.cachedPackedInt52=-1};
bsn.prototype.set=function(z,l){l=l===void 0?!0:l;0<=z&&z<52&&Number.isInteger(z)&&this.data[z]!==l&&(this.data[z]=l,this.cachedPackedInt52=-1)};
bsn.prototype.get=function(z){return!!this.data[z]};
var vFI=function(z){z.cachedPackedInt52===-1&&(z.cachedPackedInt52=z.data.reduce(function(l,I,b){return l+(I?Math.pow(2,b):0)},0));
return z.cachedPackedInt52};var Ip1=function(z){var l=Mj_;z=z===void 0?_.W8("yt.ads.biscotti.lastId_")||"":z;var I=Object,b=I.assign,v={};v.dt=boA;v.flash="0";a:{try{var M=l.JSC$10498_win_.top.location.href}catch(lH){M=2;break a}M=M?M===l.doc_.location.href?0:1:2}v=(v.frm=M,v);try{v.u_tz=-(new Date).getTimezoneOffset();try{var x=Il.history.length}catch(lH){x=0}v.u_his=x;var g;v.u_h=(g=Il.screen)==null?void 0:g.height;var G;v.u_w=(G=Il.screen)==null?void 0:G.width;var u;v.u_ah=(u=Il.screen)==null?void 0:u.availHeight;var Z;v.u_aw=
(Z=Il.screen)==null?void 0:Z.availWidth;var H;v.u_cd=(H=Il.screen)==null?void 0:H.colorDepth}catch(lH){}x=l.JSC$10498_win_;try{var y=x.screenX;var f=x.screenY}catch(lH){}try{var R=x.outerWidth;var F=x.outerHeight}catch(lH){}try{var Y=x.innerWidth;var c=x.innerHeight}catch(lH){}try{var d=x.screenLeft;var V=x.screenTop}catch(lH){}try{Y=x.innerWidth,c=x.innerHeight}catch(lH){}try{var A=x.screen.availWidth;var W=x.screen.availTop}catch(lH){}y=[d,V,y,f,A,W,R,F,Y,c];f=Z0Y(!1,l.JSC$10498_win_.top);R={};
var L=L===void 0?_.v7:L;F=new bsn;"SVGElement"in L&&"createElementNS"in L.document&&F.set(0);Y=lFu();Y["allow-top-navigation-by-user-activation"]&&F.set(1);Y["allow-popups-to-escape-sandbox"]&&F.set(2);L.crypto&&L.crypto.subtle&&F.set(3);"TextDecoder"in L&&"TextEncoder"in L&&F.set(4);L=vFI(F);l=(R.bc=L,R.bih=f.height,R.biw=f.width,R.brdim=y.join(),R.vis=p8Y(l.doc_),R.wgl=!!Il.WebGLRenderingContext,R);I=b.call(I,v,l);I.ca_type="image";z&&(I.bid=z);return I},Mj_=new function(){var z=window.document;
this.JSC$10498_win_=window;this.doc_=z};
_.vd("yt.ads_.signals_.getAdSignalsString",function(z){return QmQ(Ip1(z))});_.gG();navigator.userAgent.indexOf(" (CrKey ");var nB1="XMLHttpRequest"in _.v7?function(){return new XMLHttpRequest}:null;var pC_="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Dhu=[].concat(_.ht(pC_),["client_dev_set_cookie"]);var lp5={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"},aEY="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(_.ht(pC_)),GZH=!1,jmt=_.bcQ,xFH=zv5;var T5$=[{messageFn:function(z){return"Cannot read property '"+z.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(z){return"Cannot call '"+z.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(z){return z.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var xh_={messageWeights:[],callbackWeights:[{callback:Zcf,weight:500},{callback:Hcu,weight:500}]};var Osp=function(){this.callbackWeights=[];this.messageWeights=[]},gF4,YBp=function(){if(!gF4){var z=gF4=new Osp;
z.messageWeights.length=0;z.callbackWeights.length=0;ybY(z,xh_)}return gF4},ybY=function(z,l){l.messageWeights&&z.messageWeights.push.apply(z.messageWeights,l.messageWeights);
l.callbackWeights&&z.callbackWeights.push.apply(z.callbackWeights,l.callbackWeights)};_.Gs(_.ks,_.Q9);_.ks.prototype.subscribe=function(z,l,I){var b=this.topics_[z];b||(b=this.topics_[z]=[]);var v=this.JSC$10522_key_;this.subscriptions_[v]=z;this.subscriptions_[v+1]=l;this.subscriptions_[v+2]=I;this.JSC$10522_key_=v+3;b.push(v);return v};
var G1A=function(z){var l=oU$,I=!1,b=l.subscribe("handleError",function(v){I||(I=!0,this.unsubscribeByKey(b),z.apply(void 0,arguments))},l)};
_.ks.prototype.unsubscribe=function(z,l,I){if(z=this.topics_[z]){var b=this.subscriptions_;if(z=z.find(function(v){return b[v+1]==l&&b[v+2]==I}))return this.unsubscribeByKey(z)}return!1};
_.ks.prototype.unsubscribeByKey=function(z){var l=this.subscriptions_[z];if(l){var I=this.topics_[l];this.publishDepth_!=0?(this.pendingKeys_.push(z),this.subscriptions_[z+1]=function(){}):(I&&_.$5(I,z),delete this.subscriptions_[z],delete this.subscriptions_[z+1],delete this.subscriptions_[z+2])}return!!l};
_.ks.prototype.publish=function(z,l){var I=this.topics_[z];if(I){var b=Array(arguments.length-1),v=arguments.length,M;for(M=1;M<v;M++)b[M-1]=arguments[M];if(this.async_)for(M=0;M<I.length;M++)v=I[M],NSI(this.subscriptions_[v+1],this.subscriptions_[v+2],b);else{this.publishDepth_++;try{for(M=0,v=I.length;M<v&&!this.isDisposed();M++){var x=I[M];this.subscriptions_[x+1].apply(this.subscriptions_[x+2],b)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return M!=
0}return!1};
var NSI=function(z,l,I){_.hz(function(){z.apply(l,I)})};
_.ks.prototype.clear=function(z){if(z){var l=this.topics_[z];l&&(l.forEach(this.unsubscribeByKey,this),delete this.topics_[z])}else this.subscriptions_.length=0,this.topics_={}};
_.ks.prototype.getCount=function(z){if(z){var l=this.topics_[z];return l?l.length:0}z=0;for(l in this.topics_)z+=this.getCount(l);return z};
_.ks.prototype.disposeInternal=function(){_.ks.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var oU$=new _.ks;var E5=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(E5,_.Da);E5.prototype.getColdHashData=function(){return _.oX(this,3)};
E5.prototype.getHotHashData=function(){return _.oX(this,5)};
E5.prototype.setHotHashData=function(z){return _.Th(this,5,z)};var FaQ=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(FaQ,_.Da);var bYf=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(bYf,_.Da);_.p=bYf.prototype;_.p.getDeviceId=function(){return _.oX(this,6)};
_.p.getExperimentIds=function(z){var l=_.aC(this,9,_.MK,3,!0);WQS(l,z);return l[z]};
_.p.getPlayerType=function(){return _.Px(this,36)};
_.p.setHomeGroupInfo=function(z){return _.tT(this,81,z)};
_.p.clearLocationPlayabilityToken=function(){return _.NW(this,89)};var k7=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(k7,_.Da);k7.prototype.setKey=function(z){return _.Th(this,1,z)};
k7.prototype.getValue=function(){return s9(this,2,M9k)};
var M9k=[2,3,4,5,6];var EF_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(EF_,_.Da);EF_.prototype.setTrackingParams=function(z){return _.NW(this,1,_.iu(z,!1))};var vUS=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(vUS,_.Da);var TDS=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(TDS,_.Da);TDS.prototype.getExperimentIds=function(z){var l=_.aC(this,5,_.uAu,3,!0);WQS(l,z);return l[z]};var tK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(tK,_.Da);tK.prototype.getToken=function(){return _.K0(this,2)};
tK.prototype.setToken=function(z){return _.Th(this,2,z)};var mg=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(mg,_.Da);mg.prototype.setSafetyMode=function(z){return _.G6(this,5,z)};var C2=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(C2,_.Da);C2.prototype.setClient=function(z){return _.tT(this,1,z)};var Yrf={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 QDQ;_.oD=function(){var z=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.v7.addEventListener("beforeinstallprompt",function(l){l.preventDefault();z.deferredInstallPrompt=l});
_.v7.addEventListener("appinstalled",function(){z.appInstalledEventFired=!0},{once:!0})};
QDQ=function(){if(!_.v7.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.v7.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.v7.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.v7.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.v7.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(z){return"WEB_DISPLAY_MODE_UNKNOWN"}};var dok=function(){this.syncHeaders=!0},oW5=function(z){var l={},I=[];
"USER_SESSION_ID"in _.P8&&I.push({key:"u",value:_.sZ("USER_SESSION_ID")});if(I=_.vCQ(I))l.Authorization=I,I=z=z==null?void 0:z.sessionIndex,I===void 0&&(I=Number(_.sZ("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.C("voice_search_auth_header_removal")||(l["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.P8||(l["X-Origin"]=window.location.origin),z===void 0&&"DELEGATED_SESSION_ID"in _.P8&&(l["X-Goog-PageId"]=_.sZ("DELEGATED_SESSION_ID"));return l};var uYu={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var f9=_.W8("ytglobal.prefsUserPrefsPrefs_")||{},Zsw;_.vd("ytglobal.prefsUserPrefsPrefs_",f9);_.C9=function(){this.cookieName=_.sZ("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.sZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var z=_.mZ.get(this.cookieName,void 0);z&&this.parse(z)};
_.Bu=function(){Zsw||(Zsw=new _.C9);return Zsw};
_.C9.prototype.get=function(z,l){HsA(z);yep(z);z=f9[z]!==void 0?f9[z].toString():null;return z!=null?z:l?l:""};
_.C9.prototype.set=function(z,l){HsA(z);yep(z);if(l==null)throw Error("Mc");f9[z]=l.toString()};
_.C9.prototype.getFlag=function(z){return!!((fAn("f"+(Math.floor(z/31)+1))||0)&1<<z%31)};
_.XG=function(z,l,I){z="f"+(Math.floor(l/31)+1);l=1<<l%31;var b=fAn(z)||0;b=I?b|l:b&~l;b===0?delete f9[z]:(I=b.toString(16),f9[z]=I.toString())};
_.C9.prototype.remove=function(z){HsA(z);yep(z);delete f9[z]};
_.C9.prototype.save=function(){var z=!0;_.C("web_secure_pref_cookie_killswitch")&&(z=!1);_.KG(this.cookieName,this.dump(),63072E3,this.cookieDomain,z)};
_.C9.prototype.clear=function(){_.h7.clear(f9)};
_.C9.prototype.dump=function(){var z=[],l;for(l in f9)f9.hasOwnProperty(l)&&z.push(l+"="+encodeURIComponent(String(f9[l])));return z.join("&")};
var yep=function(z){if(/^f([1-9][0-9]*)$/.test(z))throw Error("Nc`"+z);},HsA=function(z){if(!/^\w+$/.test(z))throw Error("Oc`"+z);
},fAn=function(z){z=f9[z]!==void 0?f9[z].toString():null;
return z!=null&&/^[A-Fa-f0-9]+$/.test(z)?parseInt(z,16):null};
_.C9.prototype.parse=function(z){z=decodeURIComponent(z).split("&");for(var l=0;l<z.length;l++){var I=z[l].split("="),b=I[0];(I=I[1])&&(f9[b]=I.toString())}};var Bgf={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"},cYp={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},SrQ={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},qp1={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var fK;_.kI=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.qA=function(z,l,I){return z.addJob(l,0,I)};
_.kI.prototype.addLowPriorityJob=function(z,l){return this.addJob(z,1,l)};
_.o0=function(z,l,I){return z.addJob(l,2,I)};
_.fI=function(z,l,I){return z.addJob(l,3,I)};
_.CK=function(z,l,I){return z.addJob(l,4,I)};
fK=function(z){var l=_.W8("yt.scheduler.instance.addImmediateJob");l?l(z):z()};
_.kI.prototype.debounce=function(z,l,I){var b=this,v=0,M=function(){v&&b.cancelJob(v);v=b.addJob(z,l,I);b.cancelDebouncedJobMap.set(M,v)};
return M};
_.kI.prototype.cancelThrottle=function(z){(z=this.cancelThrottledJobMap.get(z))&&z()};var Rr=function(){_.kI.apply(this,arguments)};
_.m(Rr,_.kI);_.Y1=function(){Rr.instance||(Rr.instance=new Rr);return Rr.instance};
Rr.prototype.addJob=function(z,l,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var b=_.W8("yt.scheduler.instance.addJob");return b?b(z,l,I):I===void 0?(z(),NaN):_.EI(z,I||0)};
Rr.prototype.cancelJob=function(z){if(z===void 0||!Number.isNaN(Number(z))){var l=_.W8("yt.scheduler.instance.cancelJob");l?l(z):_.HV(z)}};
Rr.prototype.start=function(){var z=_.W8("yt.scheduler.instance.start");z&&z()};
Rr.prototype.pause=function(){var z=_.W8("yt.scheduler.instance.pause");z&&z()};
_.ow=_.Y1();_.Fm.prototype.set=function(z,l){l===void 0?this.mechanism.remove(z):this.mechanism.set(z,(0,_.wO)(l))};
_.Fm.prototype.get=function(z){try{var l=this.mechanism.get(z)}catch(I){return}if(l!==null)try{return JSON.parse(l)}catch(I){throw"Storage: Invalid value was encountered";}};
_.Fm.prototype.remove=function(z){this.mechanism.remove(z)};var mf=function(z){this.mechanism=z};
_.Gs(mf,_.Fm);var CqA=function(z){this.data=z},k1p=function(z){return z===void 0||z instanceof CqA?z:new CqA(z)};
mf.prototype.set=function(z,l){mf.superClass_.set.call(this,z,k1p(l))};
mf.prototype.getWrapper=function(z){z=mf.superClass_.get.call(this,z);if(z===void 0||z instanceof Object)return z;throw"Storage: Invalid value was encountered";};
mf.prototype.get=function(z){if(z=this.getWrapper(z)){if(z=z.data,z===void 0)throw"Storage: Invalid value was encountered";}else z=void 0;return z};_.Gs(QI,mf);_.RtA=function(z){var l=z.creation;z=z.expiration;return!!z&&z<_.gG()||!!l&&l>_.gG()};
QI.prototype.set=function(z,l,I){if(l=k1p(l)){if(I){if(I<_.gG()){QI.prototype.remove.call(this,z);return}l.expiration=I}l.creation=_.gG()}QI.superClass_.set.call(this,z,l)};
QI.prototype.getWrapper=function(z,l){var I=QI.superClass_.getWrapper.call(this,z);if(I)if(!l&&_.RtA(I))QI.prototype.remove.call(this,z);else return I};var K9=function(){};
K9.prototype.next=function(){return tg};
var tg={done:!0,value:void 0},BG=function(z){return{value:z,done:!1}};
K9.prototype.__iterator__=function(){return this};
_.mhj=function(z){if(z instanceof K9)return z;if(typeof z.__iterator__=="function")return z.__iterator__(!1);if(_.wf(z)){var l=0,I=new K9;I.next=function(){for(;;){if(l>=z.length)return tg;if(l in z)return BG(z[l++]);l++}};
return I}throw Error("Pc");};var KI4=function(z){if(z instanceof X$||z instanceof qx||z instanceof io)return z;if(typeof z.next=="function")return new X$(function(){return z});
if(typeof z[Symbol.iterator]=="function")return new X$(function(){return z[Symbol.iterator]()});
if(typeof z.__iterator__=="function")return new X$(function(){return z.__iterator__()});
throw Error("Qc");},X$=function(z){this.func_=z};
X$.prototype.__iterator__=function(){return new qx(this.func_())};
X$.prototype[Symbol.iterator]=function(){return new io(this.func_())};
X$.prototype.toEs6=function(){return new io(this.func_())};
var qx=function(z){this.JSC$10606_iter_=z};
_.m(qx,K9);qx.prototype.next=function(){return this.JSC$10606_iter_.next()};
qx.prototype[Symbol.iterator]=function(){return new io(this.JSC$10606_iter_)};
qx.prototype.toEs6=function(){return new io(this.JSC$10606_iter_)};
var io=function(z){X$.call(this,function(){return z});
this.JSC$10609_iter_=z};
_.m(io,X$);io.prototype.next=function(){return this.JSC$10609_iter_.next()};var tjM=function(){};var F$=function(){};
_.Gs(F$,tjM);F$.prototype.getCount=function(){for(var z=0,l=_.D(this),I=l.next();!I.done;I=l.next())z++;return z};
F$.prototype[Symbol.iterator]=function(){return KI4(this.__iterator__(!0)).toEs6()};
F$.prototype.clear=function(){var z=Array.from(this);z=_.D(z);for(var l=z.next();!l.done;l=z.next())this.remove(l.value)};_.Gs(Ys,F$);_.p=Ys.prototype;_.p.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var z=this.storage_;if(z)try{z.setItem("__sak","1");z.removeItem("__sak");var l=!0}catch(I){l=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&z&&z.length!==0}else l=!1;this.cachedIsStorageAvailable_=l}return this.cachedIsStorageAvailable_};
_.p.set=function(z,l){QH(this);try{this.storage_.setItem(z,l)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.p.get=function(z){QH(this);z=this.storage_.getItem(z);if(typeof z!=="string"&&z!==null)throw"Storage mechanism: Invalid value was encountered";return z};
_.p.remove=function(z){QH(this);this.storage_.removeItem(z)};
_.p.getCount=function(){QH(this);return this.storage_.length};
_.p.__iterator__=function(z){QH(this);var l=0,I=this.storage_,b=new K9;b.next=function(){if(l>=I.length)return tg;var v=I.key(l++);if(z)return BG(v);v=I.getItem(v);if(typeof v!=="string")throw"Storage mechanism: Invalid value was encountered";return BG(v)};
return b};
_.p.clear=function(){QH(this);this.storage_.clear()};
_.p.key=function(z){QH(this);return this.storage_.key(z)};
var QH=function(z){if(z.storage_==null)throw Error("Rc");z.isAvailable()||Mp(Error("Rc"))};_.Gs(FMY,Ys);_.Gs(QhY,Ys);_.Gs(To,F$);To.prototype.set=function(z,l){this.mechanism_.set(this.JSC$10624_prefix_+z,l)};
To.prototype.get=function(z){return this.mechanism_.get(this.JSC$10624_prefix_+z)};
To.prototype.remove=function(z){this.mechanism_.remove(this.JSC$10624_prefix_+z)};
To.prototype.__iterator__=function(z){var l=this.mechanism_[Symbol.iterator](),I=this,b=new K9;b.next=function(){var v=l.next();if(v.done)return v;for(v=v.value;v.slice(0,I.JSC$10624_prefix_.length)!=I.JSC$10624_prefix_;){v=l.next();if(v.done)return v;v=v.value}return BG(z?v.slice(I.JSC$10624_prefix_.length):I.mechanism_.get(v))};
return b};_.$8=function(z){this.expiringStorage_=(z=_.YpY(z))?new QI(z):null;this.JSC$10628_domain_=document.domain||window.location.hostname};
_.$8.prototype.set=function(z,l,I,b){I=I||31104E3;this.remove(z);if(this.expiringStorage_)try{this.expiringStorage_.set(z,l,Date.now()+I*1E3);return}catch(M){}var v="";if(b)try{v=escape((0,_.wO)(l))}catch(M){return}else v=escape(l);_.KG(z,v,I,this.JSC$10628_domain_)};
_.$8.prototype.get=function(z,l){var I=void 0,b=!this.expiringStorage_;if(!b)try{I=this.expiringStorage_.get(z)}catch(v){b=!0}if(b&&(I=_.mZ.get(z,void 0))&&(I=unescape(I),l))try{I=JSON.parse(I)}catch(v){this.remove(z),I=void 0}return I};
_.$8.prototype.remove=function(z){this.expiringStorage_&&this.expiringStorage_.remove(z);_.mFf(z,"/",this.JSC$10628_domain_)};
_.$8.prototype.getCreationTime=function(z){return this.expiringStorage_&&(z=(this.expiringStorage_.getWrapper(z)||{}).creation,typeof z==="number")?z:null};var cmk=function(){var z;return function(){z||(z=new _.$8("ytidb"));return z}}();var dF$;_.Sc=[];dF$=!1;var zWS=ow$||PiS;var YI={},BS4=(YI.AUTH_INVALID="No user identifier specified.",YI.EXPLICIT_ABORT="Transaction was explicitly aborted.",YI.IDB_NOT_SUPPORTED="IndexedDB is not supported.",YI.MISSING_INDEX="Index not created.",YI.MISSING_OBJECT_STORES="Object stores not created.",YI.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",YI.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",YI.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",YI.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",YI.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",YI.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",YI.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",YI),TF={},XCA=(TF.AUTH_INVALID="ERROR",TF.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",TF.EXPLICIT_ABORT="IGNORED",
TF.IDB_NOT_SUPPORTED="ERROR",TF.MISSING_INDEX="WARNING",TF.MISSING_OBJECT_STORES="ERROR",TF.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",TF.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",TF.QUOTA_EXCEEDED="WARNING",TF.QUOTA_MAYBE_EXCEEDED="WARNING",TF.UNKNOWN_ABORT="WARNING",TF.INCOMPATIBLE_DB_VERSION="WARNING",TF),cG={},qd_=(cG.AUTH_INVALID=!1,cG.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,cG.EXPLICIT_ABORT=!1,cG.IDB_NOT_SUPPORTED=!1,cG.MISSING_INDEX=!1,cG.MISSING_OBJECT_STORES=!1,cG.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,cG.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,cG.QUOTA_EXCEEDED=!1,cG.QUOTA_MAYBE_EXCEEDED=!0,cG.UNKNOWN_ABORT=!0,cG.INCOMPATIBLE_DB_VERSION=!1,cG),$s=function(z,l,I,b,v){l=l===void 0?{}:l;I=I===void 0?BS4[z]:I;b=b===void 0?XCA[z]:b;v=v===void 0?qd_[z]:v;_.qB.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:z},l));this.type=z;this.message=I;this.level=b;this.retryable=v;Object.setPrototypeOf(this,$s.prototype)};
_.m($s,_.qB);var is_=function(z,l){$s.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:l,foundObjectStores:z},BS4.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,is_.prototype)};
_.m(is_,$s);var sh7=function(z,l){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=z;this.objectStore=l;Object.setPrototypeOf(this,sh7.prototype)};
_.m(sh7,Error);var rmQ=["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 WV=function(z){this.executor=z},AE=function(z){var l=this;
this.state={status:"PENDING"};this.JSC$10656_onFulfilled=[];this.JSC$10656_onRejected=[];z=z.executor;var I=function(v){if(l.state.status==="PENDING"){l.state={status:"FULFILLED",value:v};v=_.D(l.JSC$10656_onFulfilled);for(var M=v.next();!M.done;M=v.next())M=M.value,M()}},b=function(v){if(l.state.status==="PENDING"){l.state={status:"REJECTED",
reason:v};v=_.D(l.JSC$10656_onRejected);for(var M=v.next();!M.done;M=v.next())M=M.value,M()}};
try{z(I,b)}catch(v){b(v)}};
AE.all=function(z){return new AE(new WV(function(l,I){var b=[],v=z.length;v===0&&l(b);for(var M={i$jscomp$468:0};M.i$jscomp$468<z.length;M={i$jscomp$468:M.i$jscomp$468},++M.i$jscomp$468)AE.resolve(z[M.i$jscomp$468]).then(function(x){return function(g){b[x.i$jscomp$468]=g;v--;v===0&&l(b)}}(M)).catch(function(x){I(x)})}))};
AE.resolve=function(z){return new AE(new WV(function(l,I){z instanceof AE?z.then(l,I):l(z)}))};
AE.reject=function(z){return new AE(new WV(function(l,I){I(z)}))};
AE.prototype.then=function(z,l){var I=this,b=z!=null?z:wgQ,v=l!=null?l:evu;return new AE(new WV(function(M,x){I.state.status==="PENDING"?(I.JSC$10656_onFulfilled.push(function(){FI4(I,I,b,M,x)}),I.JSC$10656_onRejected.push(function(){QKu(I,I,v,M,x)})):I.state.status==="FULFILLED"?FI4(I,I,b,M,x):I.state.status==="REJECTED"&&QKu(I,I,v,M,x)}))};
AE.prototype.catch=function(z){return this.then(void 0,z)};
var FI4=function(z,l,I,b,v){try{if(z.state.status!=="FULFILLED")throw Error("Uc");var M=I(z.state.value);M instanceof AE?Ydj(z,l,M,b,v):b(M)}catch(x){v(x)}},QKu=function(z,l,I,b,v){try{if(z.state.status!=="REJECTED")throw Error("Vc");
var M=I(z.state.reason);M instanceof AE?Ydj(z,l,M,b,v):b(M)}catch(x){v(x)}},Ydj=function(z,l,I,b,v){l===I?v(new TypeError("Wc")):I.then(function(M){M instanceof AE?Ydj(z,l,M,b,v):b(M)},function(M){v(M)})};var SG;SG=window;_.Dr=SG.ytcsi&&SG.ytcsi.now?SG.ytcsi.now:SG.performance&&SG.performance.timing&&SG.performance.now&&SG.performance.timing.navigationStart?function(){return SG.performance.timing.navigationStart+SG.performance.now()}:function(){return(new Date).getTime()};var LG=function(z,l){this.JSC$10668_wrapped=z;this.options=l;this.transactionCount=0;this.startedMs=Math.round((0,_.Dr)());this.hasUnknownAbortedTransaction=!1},dp=function(){return _.C("idb_immediate_commit")},Sdw,dh_,hg,htp;
LG.prototype.add=function(z,l,I){return _.JE(this,[z],{mode:"readwrite",enableRetries:!0,commit:dp()},function(b){return b.objectStore(z).add(l,I)})};
LG.prototype.clear=function(z){return _.JE(this,[z],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore(z).clear()})};
LG.prototype.close=function(){this.JSC$10668_wrapped.close();var z;((z=this.options)==null?0:z.closed)&&this.options.closed()};
LG.prototype.count=function(z,l){return _.JE(this,[z],{mode:"readonly",enableRetries:!0,commit:dp()},function(I){return I.objectStore(z).count(l)})};
var wi=function(z,l,I){z=z.JSC$10668_wrapped.createObjectStore(l,I);return new or(z)};
LG.prototype.delete=function(z,l){return _.JE(this,[z],{mode:"readwrite",enableRetries:!0,commit:dp()&&!(l instanceof IDBKeyRange)},function(I){return I.objectStore(z).delete(l)})};
var TSj=function(z,l){return _.JE(z,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(l)})};
LG.prototype.get=function(z,l){return _.JE(this,[z],{mode:"readonly",enableRetries:!0,commit:dp()},function(I){return I.objectStore(z).get(l)})};
LG.prototype.getAll=function(z,l,I){return _.JE(this,[z],{mode:"readonly",enableRetries:!0},function(b){return b.objectStore(z).getAll(l,I)})};
LG.prototype.put=function(z,l,I){return _.JE(this,[z],{mode:"readwrite",enableRetries:!0,commit:dp()},function(b){return b.objectStore(z).put(l,I)})};
LG.prototype.objectStoreNames=function(){return Array.from(this.JSC$10668_wrapped.objectStoreNames)};
_.JE=function(z,l,I,b){var v,M,x,g,G,u,Z,H,y,f,R,F;return _.O(function(Y){switch(Y.nextAddress){case 1:var c={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?c.mode=I:Object.assign(c,I);v=c;z.transactionCount++;M=v.enableRetries?3:1;x=0;case 2:if(g){Y.jumpTo(4);break}x++;G=Math.round((0,_.Dr)());_.RL(Y,5);u=z.JSC$10668_wrapped.transaction(l,v.mode);c=Y.yield;var d=!!v.commit;var V=new UI(u);d=ce_(V,b,d);return c.call(Y,d,7);case 7:return Z=Y.yieldResult,H=Math.round((0,_.Dr)()),
Sdw(z,G,H,x,void 0,l.join(),v),Y.return(Z);case 5:y=_.XP(Y);f=Math.round((0,_.Dr)());R=$F5(y,z.JSC$10668_wrapped.name,l.join(),z.JSC$10668_wrapped.version);if((F=R instanceof $s&&!R.retryable)||x>=M)Sdw(z,G,f,x,R,l.join(),v),g=R;Y.jumpTo(2);break;case 4:return Y.return(Promise.reject(g))}})};
Sdw=function(z,l,I,b,v,M,x){l=I-l;v?(v instanceof $s&&(v.type==="QUOTA_EXCEEDED"||v.type==="QUOTA_MAYBE_EXCEEDED")&&o3("QUOTA_EXCEEDED",{dbName:hE(z.JSC$10668_wrapped.name),objectStoreNames:M,transactionCount:z.transactionCount,transactionMode:x.mode}),v instanceof $s&&v.type==="UNKNOWN_ABORT"&&(I-=z.startedMs,I<0&&I>=2147483648&&(I=0),o3("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:M,transactionDuration:l,transactionCount:z.transactionCount,dbDuration:I}),z.hasUnknownAbortedTransaction=!0),
dh_(z,!1,b,M,l,x.tag),_.dk(v)):dh_(z,!0,b,M,l,x.tag)};
dh_=function(z,l,I,b,v,M){o3("TRANSACTION_ENDED",{objectStoreNames:b,connectionHasUnknownAbortedTransaction:z.hasUnknownAbortedTransaction,duration:v,isSuccessful:l,tryCount:I,tag:M===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":M})};
LG.prototype.getVersion=function(){return this.JSC$10668_wrapped.version};
LG.prototype.getName=function(){return this.JSC$10668_wrapped.name};
var or=function(z){this.JSC$10683_wrapped=z};
or.prototype.add=function(z,l){return nG(this.JSC$10683_wrapped.add(z,l))};
or.prototype.autoIncrement=function(){return this.JSC$10683_wrapped.autoIncrement};
or.prototype.clear=function(){return nG(this.JSC$10683_wrapped.clear()).then(function(){})};
var AW=function(z,l,I){z.JSC$10683_wrapped.createIndex(l,I,{unique:!1})};
or.prototype.count=function(z){return nG(this.JSC$10683_wrapped.count(z))};
var oF_=function(z,l){return lR(z,{query:l},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
or.prototype.delete=function(z){return z instanceof IDBKeyRange?oF_(this,z):nG(this.JSC$10683_wrapped.delete(z))};
or.prototype.get=function(z){return nG(this.JSC$10683_wrapped.get(z))};
or.prototype.getAll=function(z,l){return"getAll"in IDBObjectStore.prototype?nG(this.JSC$10683_wrapped.getAll(z,l)):PqA(this,z,l)};
var PqA=function(z,l,I){var b=[];return lR(z,{query:l},function(v){if(!(I!==void 0&&b.length>=I))return b.push(v.getValue()),v.continue()}).then(function(){return b})};
or.prototype.index=function(z){try{return new PG(this.JSC$10683_wrapped.index(z))}catch(l){if(l instanceof Error&&l.name==="NotFoundError")throw new sh7(z,this.JSC$10683_wrapped.name);throw l;}};
or.prototype.getName=function(){return this.JSC$10683_wrapped.name};
or.prototype.keyPath=function(){return this.JSC$10683_wrapped.keyPath};
or.prototype.put=function(z,l){return nG(this.JSC$10683_wrapped.put(z,l))};
var lR=function(z,l,I){z=z.JSC$10683_wrapped.openCursor(l.query,l.direction);return htp(z).then(function(b){return nwf(b,I)})},UI=function(z){var l=this;
this.JSC$10691_wrapped=z;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(I,b){l.JSC$10691_wrapped.addEventListener("complete",function(){I()});
l.JSC$10691_wrapped.addEventListener("error",function(v){v.currentTarget===v.target&&b(l.JSC$10691_wrapped.error)});
l.JSC$10691_wrapped.addEventListener("abort",function(){var v=l.JSC$10691_wrapped.error;if(v)b(v);else if(!l.aborted){v=$s;for(var M=l.JSC$10691_wrapped.objectStoreNames,x=[],g=0;g<M.length;g++){var G=M.item(g);if(G===null)throw Error("Xc");x.push(G)}v=new v("UNKNOWN_ABORT",{objectStoreNames:x.join(),dbName:l.JSC$10691_wrapped.db.name,mode:l.JSC$10691_wrapped.mode});b(v)}})})},ce_=function(z,l,I){var b=new Promise(function(v,M){try{var x=l(z);
I&&z.commit();x.then(function(g){v(g)}).catch(M)}catch(g){M(g),z.abort()}});
return Promise.all([b,z.done]).then(function(v){return _.D(v).next().value})};
UI.prototype.abort=function(){this.JSC$10691_wrapped.abort();this.aborted=!0;throw new $s("EXPLICIT_ABORT");};
UI.prototype.commit=function(){if(!this.aborted){var z,l;(l=(z=this.JSC$10691_wrapped).commit)==null||l.call(z)}};
UI.prototype.objectStore=function(z){z=this.JSC$10691_wrapped.objectStore(z);var l=this.objectStoreCache.get(z);l||(l=new or(z),this.objectStoreCache.set(z,l));return l};
var PG=function(z){this.JSC$10693_wrapped=z};
PG.prototype.count=function(z){return nG(this.JSC$10693_wrapped.count(z))};
PG.prototype.delete=function(z){return _.x8(this,{query:z},function(l){return l.delete().then(function(){return l.continue()})})};
PG.prototype.get=function(z){return nG(this.JSC$10693_wrapped.get(z))};
PG.prototype.getAll=function(z,l){return"getAll"in IDBIndex.prototype?nG(this.JSC$10693_wrapped.getAll(z,l)):sKp(this,z,l)};
var sKp=function(z,l,I){var b=[];return _.x8(z,{query:l},function(v){if(!(I!==void 0&&b.length>=I))return b.push(v.getValue()),v.continue()}).then(function(){return b})};
PG.prototype.keyPath=function(){return this.JSC$10693_wrapped.keyPath};
PG.prototype.unique=function(){return this.JSC$10693_wrapped.unique};
_.x8=function(z,l,I){z=z.JSC$10693_wrapped.openCursor(l.query===void 0?null:l.query,l.direction===void 0?"next":l.direction);return htp(z).then(function(b){return nwf(b,I)})};
hg=function(z,l){this.request=z;this.cursor=l};
htp=function(z){return nG(z).then(function(l){return l?new hg(z,l):null})};
hg.prototype.continue=function(z){this.cursor.continue(z);return htp(this.request)};
hg.prototype.delete=function(){return nG(this.cursor.delete()).then(function(){})};
hg.prototype.getValue=function(){return this.cursor.value};
hg.prototype.update=function(z){return nG(this.cursor.update(z))};var sX=function(z,l){this.name=z;this.options=l;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},reA;
sX.prototype.openDb=function(z,l,I){I=I===void 0?{}:I;return UFt(z,l,I)};
sX.prototype.delete=function(z){z=z===void 0?{}:z;return _.VI(this.name,z)};
reA=function(z,l){return new $s("INCOMPATIBLE_DB_VERSION",{dbName:z.name,oldVersion:z.options.version,newVersion:l})};
_.jc=function(z,l){if(!l)throw wk("openWithToken",hE(z.name));return z.open()};
sX.prototype.open=function(){var z=this;if(!this.isCompatible)throw reA(this);if(this.connectionPromise)return this.connectionPromise;var l,I=function(){z.connectionPromise===l&&(z.connectionPromise=void 0)},b={blocking:function(M){M.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},v=function(){var M,x,g,G,u,Z,H,y,f,R;return _.O(function(F){switch(F.nextAddress){case 1:return x=(M=Error().stack)!=null?M:"",_.RL(F,2),F.yield(z.openDb(z.name,z.options.version,b),4);case 4:for(var Y=g=F.yieldResult,c=z.options,d=[],V=_.D(Object.keys(c.objectStores)),A=V.next();!A.done;A=V.next()){A=A.value;var W=c.objectStores[A],L=W.removedAtVersion===void 0?Number.MAX_VALUE:W.removedAtVersion;!(Y.JSC$10668_wrapped.version>=W.addedAtVersion)||
Y.JSC$10668_wrapped.version>=L||Y.JSC$10668_wrapped.objectStoreNames.contains(A)||d.push(A)}G=d;if(G.length===0){F.jumpTo(5);break}u=Object.keys(z.options.objectStores);Z=g.objectStoreNames();if(z.timesReopenedToFixMissingObjectStore<_.OI("ytidb_reopen_db_retries",0))return z.timesReopenedToFixMissingObjectStore++,g.close(),_.dk(new $s("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:z.name,expectedObjectStores:u,foundObjectStores:Z})),F.return(v());if(!(z.timesDeletedToFixMissingObjectStore<_.OI("ytidb_remake_db_retries",
1))){F.jumpTo(6);break}z.timesDeletedToFixMissingObjectStore++;return F.yield(z.delete(),7);case 7:return _.dk(new $s("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:z.name,expectedObjectStores:u,foundObjectStores:Z})),F.return(v());case 6:throw new is_(Z,u);case 5:return F.return(g);case 2:H=_.XP(F);if(H instanceof DOMException?H.name!=="VersionError":"DOMError"in self&&H instanceof DOMError?H.name!=="VersionError":!(H instanceof Object&&"message"in H)||H.message!=="An attempt was made to open a database using a lower version than the existing version."){F.jumpTo(8);
break}return F.yield(z.openDb(z.name,void 0,Object.assign({},b,{upgrade:void 0})),9);case 9:y=F.yieldResult;f=y.getVersion();if(z.options.version!==void 0&&f>z.options.version+1)throw y.close(),z.isCompatible=!1,reA(z,f);return F.return(y);case 8:throw I(),H instanceof Error&&!_.C("ytidb_async_stack_killswitch")&&(H.stack=H.stack+"\n"+x.substring(x.indexOf("\n")+1)),$F5(H,z.name,"",(R=z.options.version)!=null?R:-1);}})};
return this.connectionPromise=l=v()};var apH=new sX("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(z,l){l(1)&&wi(z,"databases",{keyPath:"actualName"})}});var brQ,lk5=new function(){}(new function(){});new _.yX;var $hA=function(z,l){sX.call(this,z,l);this.options=l;PV(z)};
_.m($hA,sX);var EW7=function(z,l){var I;return function(){I||(I=new $hA(z,l));return I}};
$hA.prototype.openDb=function(z,l,I){I=I===void 0?{}:I;return(this.options.shared?xoQ:Do5)(z,l,Object.assign({},I))};
$hA.prototype.delete=function(z){z=z===void 0?{}:z;return(this.options.shared?NDQ:OrH)(this.name,z)};var et0={},uNk=pp("ytGcfConfig",{objectStores:(et0.coldConfigStore={addedAtVersion:1},et0.hotConfigStore={addedAtVersion:1},et0),shared:!1,upgrade:function(z,l){l(1)&&(AW(wi(z,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),AW(wi(z,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var wCp=function(){_.Q9.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var z=_.W8("yt.gcf.config.hotUpdateCallbacks");z?(this.localHotConfigJobQueue=[].concat(_.ht(z)),this.sharedHotConfigJobQueue=z):(this.sharedHotConfigJobQueue=[],_.vd("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.m(wCp,_.Q9);wCp.prototype.disposeInternal=function(){for(var z=_.D(this.localHotConfigJobQueue),l=z.next();!l.done;l=z.next()){var I=this.sharedHotConfigJobQueue;l=I.indexOf(l.value);l>=0&&I.splice(l,1)}this.localHotConfigJobQueue.length=0;_.Q9.prototype.disposeInternal.call(this)};var i_=function(){var z=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new wCp;this.TEST_ONLY={initializeConfigDb:function(){z.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return z.coldGlobalConfigGroup},
setHotConfigGroup:function(l){Aen(z,l)},
setHotHashData:function(l){z.setHotHashData(l)},
setColdConfigGroup:function(l){WII(z,l)},
getColdHashData:function(){return z.coldHashData},
getHotHashData:function(){return z.hotHashData},
getHotConfigGroup:function(){return z.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return nFA()},
getExportedHotConfigGroup:function(){return rp()},
getExportedColdHashData:function(){return _.W8("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.W8("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){LI_(z)},
resetInstance:function(){z.setHotHashData(void 0);Uhu(z);delete i_.instance},
setDebounceTimer:function(l){z.debounceTimer=l},
getDebounceTimer:function(){return z.debounceTimer}}},aAj=function(){if(!i_.instance){var z=new i_;
i_.instance=z}return i_.instance},Je4=function(z){var l;
_.O(function(I){if(I.nextAddress==1)return _.C("start_client_gcf")||_.C("delete_gcf_config_db")?_.C("start_client_gcf")?I.yield(_.MW(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((l=I.yieldResult)&&_.Xm()&&!_.C("delete_gcf_config_db")?(z.isConfigDbInitialized=!0,LI_(z)):(Vjn(z),jK4(z)));return _.C("delete_gcf_config_db")?I.yield(kN$(),0):I.jumpTo(0)})},FL=function(){var z;
return(z=rp())!=null?z:_.sZ("RAW_HOT_CONFIG_GROUP")},z4j=function(z){var l,I,b,v,M,x;
return _.O(function(g){switch(g.nextAddress){case 1:if(z.hotGlobalConfigGroup)return g.return(rp());if(!z.isConfigDbInitialized)return l=wk("getHotConfig IDB not initialized"),_.nP(l),g.return(Promise.reject(l));I=bR();b=_.sZ("TIME_CREATED_MS");if(!I){v=wk("getHotConfig token error");_.nP(v);g.jumpTo(2);break}return g.yield(Cct(I),3);case 3:if((M=g.yieldResult)&&M.timestamp>b)return Aen(z,M.config),z.setHotHashData(M.hashData),g.return(rp());case 2:jK4(z);if(!(I&&z.hotGlobalConfigGroup&&z.hotHashData)){g.jumpTo(4);
break}return g.yield(Hr$(z.hotGlobalConfigGroup,z.hotHashData,I,b),4);case 4:return z.hotGlobalConfigGroup?g.return(rp()):(x=new _.qB("Config not available in ytConfig"),_.nP(x),g.return(Promise.reject(x)))}})},IVj=function(z){var l,I,b,v,M,x;
return _.O(function(g){switch(g.nextAddress){case 1:if(z.coldGlobalConfigGroup)return g.return(nFA());if(!z.isConfigDbInitialized)return l=wk("getColdConfig IDB not initialized"),_.nP(l),g.return(Promise.reject(l));I=bR();b=_.sZ("TIME_CREATED_MS");if(!I){v=wk("getColdConfig");_.nP(v);g.jumpTo(2);break}return g.yield(fkY(I),3);case 3:if((M=g.yieldResult)&&M.timestamp>b)return WII(z,M.config),lVj(z,M.configData),Uhu(z,M.hashData),g.return(nFA());case 2:Vjn(z);if(!(I&&z.coldGlobalConfigGroup&&z.coldHashData&&
z.configData)){g.jumpTo(4);break}return g.yield(yYS(z.coldGlobalConfigGroup,z.coldHashData,z.configData,I,b),4);case 4:return z.coldGlobalConfigGroup?g.return(nFA()):(x=new _.qB("Config not available in ytConfig"),_.nP(x),g.return(Promise.reject(x)))}})},LI_=function(z){if(!z.hotGlobalConfigGroup||!z.coldGlobalConfigGroup){if(!bR()){var l=wk("scheduleGetConfigs");
_.nP(l)}z.initJob||(z.initJob=_.ow.addLowPriorityJob(function(){return _.O(function(I){switch(I.nextAddress){case 1:return _.RL(I,2),I.yield(z4j(z),4);case 4:_.a3(I,3);break;case 2:_.XP(I);case 3:return _.RL(I,5),I.yield(IVj(z),7);case 7:_.a3(I,6);break;case 5:_.XP(I);case 6:z.initJob&&(z.initJob=0),_.qe(I)}})},100))}},HYH=function(z,l,I){var b,v,M;
return _.O(function(x){switch(x.nextAddress){case 1:if(!_.C("start_client_gcf")){x.jumpTo(0);break}I&&Aen(z,I);z.setHotHashData(l);b=bR();if(!b){x.jumpTo(3);break}if(I){x.jumpTo(4);break}return x.yield(Cct(b),5);case 5:v=x.yieldResult,I=(M=v)==null?void 0:M.config;case 4:return x.yield(Hr$(I,l,b),3);case 3:if(I)for(var g=I,G=_.D(z.configUpdateService.sharedHotConfigJobQueue),u=G.next();!u.done;u=G.next())u=u.value,u(g);_.qe(x)}})},yRS=function(z,l,I){var b,v,M,x;
return _.O(function(g){if(g.nextAddress==1){if(!_.C("start_client_gcf"))return g.jumpTo(0);Uhu(z,l);return(b=bR())?I?g.jumpTo(4):g.yield(fkY(b),5):g.jumpTo(0)}g.nextAddress!=4&&(v=g.yieldResult,I=(M=v)==null?void 0:M.config);if(!I)return g.jumpTo(0);x=I.configData;return g.yield(yYS(I,l,x,b),0)})},hWk=function(){var z=aAj(),l=(0,_.Dr)()-z.debounceTimer;
if(!(z.debounceTimer!==0&&l<_.OI("send_config_hash_timer"))){l=_.W8("yt.gcf.config.coldConfigData");var I=_.W8("yt.gcf.config.hotHashData"),b=_.W8("yt.gcf.config.coldHashData");l&&I&&b&&(z.debounceTimer=(0,_.Dr)());return{coldConfigData:l,hotHashData:I,coldHashData:b}}},Vjn=function(z){WII(z,_.sZ("RAW_COLD_CONFIG_GROUP"));
Uhu(z,_.sZ("SERIALIZED_COLD_HASH_DATA"));var l;lVj(z,(l=z.coldGlobalConfigGroup)==null?void 0:l.configData)},jK4=function(z){Aen(z,_.sZ("RAW_HOT_CONFIG_GROUP"));
z.setHotHashData(_.sZ("SERIALIZED_HOT_HASH_DATA"))},Aen=function(z,l){z.hotGlobalConfigGroup=l;
_.vd("yt.gcf.config.hotConfigGroup",z.hotGlobalConfigGroup||null)},WII=function(z,l){z.coldGlobalConfigGroup=l;
_.vd("yt.gcf.config.coldConfigGroup",z.coldGlobalConfigGroup||null)};
i_.prototype.setHotHashData=function(z){this.hotHashData=z;_.vd("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Uhu=function(z,l){z.coldHashData=l;_.vd("yt.gcf.config.coldHashData",z.coldHashData||null)},lVj=function(z,l){z.configData=l;
_.vd("yt.gcf.config.coldConfigData",z.configData||null)},rp=function(){return _.W8("yt.gcf.config.hotConfigGroup")},nFA=function(){return _.W8("yt.gcf.config.coldConfigGroup")};var fp={},bQz=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";fp.assign=function(z){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var I=l.shift();if(I){if(typeof I!=="object")throw new TypeError("$c`"+I);for(var b in I)Object.prototype.hasOwnProperty.call(I,b)&&(z[b]=I[b])}}return z};
fp.shrinkBuf=function(z,l){if(z.length===l)return z;if(z.subarray)return z.subarray(0,l);z.length=l;return z};
var vO0={arraySet:function(z,l,I,b,v){if(l.subarray&&z.subarray)z.set(l.subarray(I,I+b),v);else for(var M=0;M<b;M++)z[v+M]=l[I+M]},
flattenChunks:function(z){var l,I;var b=I=0;for(l=z.length;b<l;b++)I+=z[b].length;var v=new Uint8Array(I);b=I=0;for(l=z.length;b<l;b++){var M=z[b];v.set(M,I);I+=M.length}return v}},MnA={arraySet:function(z,l,I,b,v){for(var M=0;M<b;M++)z[v+M]=l[I+M]},
flattenChunks:function(z){return[].concat.apply([],z)}};
fp.setTyped=function(){bQz?(fp.Buf8=Uint8Array,fp.Buf16=Uint16Array,fp.Buf32=Int32Array,fp.assign(fp,vO0)):(fp.Buf8=Array,fp.Buf16=Array,fp.Buf32=Array,fp.assign(fp,MnA))};
fp.setTyped();var pPu=!0;try{new Uint8Array(1)}catch(z){pPu=!1}
var C5f=function(z){var l,I,b=z.length,v=0;for(l=0;l<b;l++){var M=z.charCodeAt(l);if((M&64512)===55296&&l+1<b){var x=z.charCodeAt(l+1);(x&64512)===56320&&(M=65536+(M-55296<<10)+(x-56320),l++)}v+=M<128?1:M<2048?2:M<65536?3:4}var g=new fp.Buf8(v);for(l=I=0;I<v;l++)M=z.charCodeAt(l),(M&64512)===55296&&l+1<b&&(x=z.charCodeAt(l+1),(x&64512)===56320&&(M=65536+(M-55296<<10)+(x-56320),l++)),M<128?g[I++]=M:(M<2048?g[I++]=192|M>>>6:(M<65536?g[I++]=224|M>>>12:(g[I++]=240|M>>>18,g[I++]=128|M>>>12&63),g[I++]=
128|M>>>6&63),g[I++]=128|M&63);return g};var pyu={};pyu=function(z,l,I,b){var v=z&65535|0;z=z>>>16&65535|0;for(var M;I!==0;){M=I>2E3?2E3:I;I-=M;do v=v+l[b++]|0,z=z+v|0;while(--M);v%=65521;z%=65521}return v|z<<16|0};for(var Y8={},$I,Dr_=[],xrn=0;xrn<256;xrn++){$I=xrn;for(var OQ_=0;OQ_<8;OQ_++)$I=$I&1?3988292384^$I>>>1:$I>>>1;Dr_[xrn]=$I}Y8=function(z,l,I,b){I=b+I;for(z^=-1;b<I;b++)z=z>>>8^Dr_[(z^l[b])&255];return z^-1};var m5={};m5={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 Uop=[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],Vbt=[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],fPQ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vEt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Xh=Array(576);uR(Xh);var qW=Array(60);uR(qW);var k8=Array(512);uR(k8);var Cp=Array(256);uR(Cp);var akf=Array(29);uR(akf);var jD5=Array(30);uR(jD5);var ZJp,HJ7,yP$,u6Q=!1;var di;
di=[new S8(0,0,0,0,function(z,l){var I=65535;for(I>z.pending_buf_size-5&&(I=z.pending_buf_size-5);;){if(z.lookahead<=1){T6(z);if(z.lookahead===0&&l===0)return 1;if(z.lookahead===0)break}z.strstart+=z.lookahead;z.lookahead=0;var b=z.block_start+I;if(z.strstart===0||z.strstart>=b)if(z.lookahead=z.strstart-b,z.strstart=b,iR(z,!1),z.strm.avail_out===0)return 1;if(z.strstart-z.block_start>=z.w_size-262&&(iR(z,!1),z.strm.avail_out===0))return 1}z.insert=0;if(l===4)return iR(z,!0),z.strm.avail_out===0?3:
4;z.strstart>z.block_start&&iR(z,!1);return 1}),
new S8(4,4,8,4,DX5),new S8(4,5,16,8,DX5),new S8(4,6,32,32,DX5),new S8(4,4,16,16,cd),new S8(8,16,32,32,cd),new S8(8,16,128,128,cd),new S8(8,32,128,256,cd),new S8(32,128,258,1024,cd),new S8(32,258,258,4096,cd)];var EE7={};EE7=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 k9G=Object.prototype.toString;
NcQ.prototype.push=function(z,l){var I=this.strm,b=this.options.chunkSize;if(this.ended)return!1;var v=l===~~l?l:l===!0?4:0;typeof z==="string"?I.input=C5f(z):k9G.call(z)==="[object ArrayBuffer]"?I.input=new Uint8Array(z):I.input=z;I.next_in=0;I.avail_in=I.input.length;do{I.avail_out===0&&(I.output=new fp.Buf8(b),I.next_out=0,I.avail_out=b);z=G9Y(I,v);if(z!==1&&z!==0)return gO_(this,z),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(v===4||v===2))if(this.options.to==="string"){var M=fp.shrinkBuf(I.output,
I.next_out);l=M;M=M.length;if(M<65537&&(l.subarray&&pPu||!l.subarray))l=String.fromCharCode.apply(null,fp.shrinkBuf(l,M));else{for(var x="",g=0;g<M;g++)x+=String.fromCharCode(l[g]);l=x}this.chunks.push(l)}else l=fp.shrinkBuf(I.output,I.next_out),this.chunks.push(l)}while((I.avail_in>0||I.avail_out===0)&&z!==1);if(v===4)return(I=this.strm)&&I.state?(b=I.state.status,b!==42&&b!==69&&b!==73&&b!==91&&b!==103&&b!==113&&b!==666?z=Kp(I,-2):(I.state=null,z=b===113?Kp(I,-3):0)):z=-2,gO_(this,z),this.ended=
!0,z===0;v===2&&(gO_(this,0),I.avail_out=0);return!0};
var gO_=function(z,l){l===0&&(z.result=z.options.to==="string"?z.chunks.join(""):fp.flattenChunks(z.chunks));z.chunks=[];z.err=l;z.msg=z.strm.msg};var GR_=typeof TextEncoder!=="undefined"?new TextEncoder:null,aPG=GR_?function(z){return GR_.encode(z)}:function(z){z=_.F7(z);
for(var l=new Uint8Array(z.length),I=0;I<l.length;I++)l[I]=z[I];return l};var Qpx={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},TBH={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var eG=function(z,l){this.version=z;this.args=l};
eG.prototype.serialize=function(){return{version:this.version,args:this.args}};var BcS=function(z,l){this.topic=z;this.dataClass=l};
BcS.prototype.toString=function(){return this.topic};var Nmn=_.W8("ytPubsub2Pubsub2Instance")||new _.ks;_.ks.prototype.subscribe=_.ks.prototype.subscribe;_.ks.prototype.unsubscribeByKey=_.ks.prototype.unsubscribeByKey;_.ks.prototype.publish=_.ks.prototype.publish;_.ks.prototype.clear=_.ks.prototype.clear;_.vd("ytPubsub2Pubsub2Instance",Nmn);var tgt=_.W8("ytPubsub2Pubsub2SubscribedKeys")||{};_.vd("ytPubsub2Pubsub2SubscribedKeys",tgt);var qxt=_.W8("ytPubsub2Pubsub2TopicToKeys")||{};_.vd("ytPubsub2Pubsub2TopicToKeys",qxt);
var Xyx=_.W8("ytPubsub2Pubsub2IsAsync")||{};_.vd("ytPubsub2Pubsub2IsAsync",Xyx);_.vd("ytPubsub2Pubsub2SkipSubKey",null);var P5H=void 0,dXQ=void 0;var W2Y=_.OI("max_body_size_to_compress",5E5),nEY=_.OI("min_body_size_to_compress",500),hW=!0,JPQ=0,s5=0,j85=_.OI("compression_performance_threshold_lr",250),zKk=_.OI("slow_compressions_before_abandon_count",4),rPt=!1,$XS=new Map,UX7=1,L2Q=!0;_.Gs(ri,bES);ri.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 EOA=function(z,l,I){I||(I=0);var b=z.W_;if(typeof l==="string")for(var v=0;v<16;v++)b[v]=l.charCodeAt(I)<<24|l.charCodeAt(I+1)<<16|l.charCodeAt(I+2)<<8|l.charCodeAt(I+3),I+=4;else for(v=0;v<16;v++)b[v]=l[I]<<24|l[I+1]<<16|l[I+2]<<8|l[I+3],I+=4;for(l=16;l<80;l++)I=b[l-3]^b[l-8]^b[l-14]^b[l-16],b[l]=(I<<1|I>>>31)&4294967295;l=z.chain_[0];I=z.chain_[1];v=z.chain_[2];for(var M=z.chain_[3],x=z.chain_[4],g,G,u=0;u<80;u++)u<40?u<20?(g=M^I&(v^M),G=1518500249):(g=I^v^M,G=1859775393):u<60?(g=I&v|M&(I|v),
G=2400959708):(g=I^v^M,G=3395469782),g=(l<<5|l>>>27)+g+x+G+b[u]&4294967295,x=M,M=v,v=(I<<30|I>>>2)&4294967295,I=l,l=g;z.chain_[0]=z.chain_[0]+l&4294967295;z.chain_[1]=z.chain_[1]+I&4294967295;z.chain_[2]=z.chain_[2]+v&4294967295;z.chain_[3]=z.chain_[3]+M&4294967295;z.chain_[4]=z.chain_[4]+x&4294967295};
ri.prototype.update=function(z,l){if(z!=null){l===void 0&&(l=z.length);for(var I=l-this.blockSize,b=0,v=this.buf_,M=this.inbuf_;b<l;){if(M==0)for(;b<=I;)EOA(this,z,b),b+=this.blockSize;if(typeof z==="string")for(;b<l;){if(v[M]=z.charCodeAt(b),++M,++b,M==this.blockSize){EOA(this,v);M=0;break}}else for(;b<l;)if(v[M]=z[b],++M,++b,M==this.blockSize){EOA(this,v);M=0;break}}this.inbuf_=M;this.total_+=l}};
ri.prototype.digest=function(){var z=[],l=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var I=this.blockSize-1;I>=56;I--)this.buf_[I]=l&255,l/=256;EOA(this,this.buf_);for(I=l=0;I<5;I++)for(var b=24;b>=0;b-=8)z[l]=this.chain_[I]>>b&255,++l;return z};var phu;var Ag=function(z){var l=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(Z){l.databaseToken=Z},
triggerThrottle:function(){l.throttledSend()},
cancelThrottle:function(){l.cancelThrottledSend()},
immediateSend:function(Z){return _.O(function(H){return H.yield(l.immediateSend(Z),0)})},
requestWithinAgeLimit:function(Z,H){return l.requestWithinAgeLimit(Z,H)},
retryQueuedRequests:function(){l.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=z.throttleTimeout)!=null?I:100;var b;this.retryMaxAttempts=(b=z.retryMaxAttempts)!=null?b:1;var v;this.requestAgeLimitMs=(v=z.requestAgeLimitMs)!=null?v:2592E6;var M;this.queuedRequestAgeLimitMs=(M=z.queuedRequestAgeLimitMs)!=null?M:12E4;var x;this.retryDelayMs=(x=z.retryDelayMs)!=null?x:5E3;var g;this.databaseToken=(g=z.databaseToken)!=null?g:void 0;this.enableCleaning=!!z.enableCleaning;var G;this.cleaningRate=(G=z.cleaningRate)!=null?G:.1;var u;this.potentialEsfErrorLimit=
(u=z.potentialEsfErrorLimit)!=null?u:10;z.handleError&&(this.handleError=z.handleError);z.handleWarning&&(this.handleWarning=z.handleWarning);z.disableYtIdbTransactions&&(this.disableYtIdbTransactions=z.disableYtIdbTransactions);z.bypassDbTokenDependency&&(this.bypassDbTokenDependency=z.bypassDbTokenDependency);this.getBooleanFlag=z.getBooleanFlag;this.jobManager=z.jobManager;this.logsStore=z.logsStore;this.networkManager=z.networkManager;this.sendFn=z.sendFn;this.onlineEvent=z.onlineEvent;this.offlineEvent=
z.offlineEvent;wp(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&ugI(this)},ugI=function(z){wp(z)&&!z.disableYtIdbTransactions&&(z.initialized=!0,z.enableCleaning&&Math.random()<=z.cleaningRate&&z.logsStore.cleanLogsStore(z.databaseToken),z.retryQueuedRequests(),z.networkManager.isNetworkAvailable()&&z.throttledSend(),z.networkManager.listen(z.onlineEvent,z.throttledSend.bind(z)),z.networkManager.listen(z.offlineEvent,z.cancelThrottledSend.bind(z)))};
_.p=Ag.prototype;_.p.writeThenSend=function(z,l){var I=this;l=l===void 0?{}:l;if(wp(this)&&this.initialized){var b={url:z,options:l,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(b,this.databaseToken).then(function(v){b.id=v;I.networkManager.isNetworkAvailable()&&I.immediateSend(b)}).catch(function(v){I.immediateSend(b);
ZQn(I,v)})}else this.sendFn(z,l)};
_.p.sendThenWrite=function(z,l,I){var b=this;l=l===void 0?{}:l;if(wp(this)&&this.initialized){var v={url:z,options:l,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(v.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!v.skipRetry){if(!v.skipRetry){var M=l.onError?l.onError:function(){};
l.onError=function(x,g){return _.O(function(G){if(G.nextAddress==1)return G.yield(b.logsStore.set(v,b.databaseToken).catch(function(u){ZQn(b,u)}),2);
M(x,g);_.qe(G)})}}this.sendFn(z,l,v.skipRetry)}else this.logsStore.set(v,this.databaseToken).catch(function(x){b.sendFn(z,l,v.skipRetry);
ZQn(b,x)})}else this.sendFn(z,l,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.p.sendAndWrite=function(z,l){var I=this;l=l===void 0?{}:l;if(wp(this)&&this.initialized){var b={url:z,options:l,timestamp:this.now(),status:"NEW",sendCount:0},v=!1,M=l.onSuccess?l.onSuccess:function(){};
b.options.onSuccess=function(x,g){b.id!==void 0?I.logsStore.deleteRequest(b.id,I.databaseToken):v=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);M(x,g)};
this.sendFn(b.url,b.options,void 0,!0);this.logsStore.set(b,this.databaseToken).then(function(x){b.id=x;v&&I.logsStore.deleteRequest(b.id,I.databaseToken)}).catch(function(x){ZQn(I,x)})}else this.sendFn(z,l,void 0,!0)};
_.p.throttledSend=function(){var z=this;if(!wp(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z.logsStore.getMostRecentByStatus("NEW",z.databaseToken),2);if(I.nextAddress!=3)return l=I.yieldResult,l?I.yield(z.immediateSend(l),3):(z.cancelThrottledSend(),I.return());z.intervalJob&&(z.intervalJob=0,z.throttledSend());_.qe(I)})},this.throttleTimeout))};
_.p.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.p.immediateSend=function(z){var l=this,I;return _.O(function(b){switch(b.nextAddress){case 1:if(!wp(l))throw Error("dd");if(z.id===void 0){b.jumpTo(2);break}return b.yield(l.logsStore.markAsQueued(z.id,l.databaseToken),3);case 3:(I=b.yieldResult)||l.handleWarning(Error("ed"));case 2:if(l.requestWithinAgeLimit(z,l.requestAgeLimitMs)){b.jumpTo(4);break}l.handleWarning(Error("fd"));if(z.id===void 0){b.jumpTo(5);break}return b.yield(l.logsStore.deleteRequest(z.id,l.databaseToken),5);case 5:return b.return();
case 4:z.skipRetry||(z=HQj(l,z));if(!z){b.jumpTo(0);break}if(!z.skipRetry||z.id===void 0){b.jumpTo(8);break}return b.yield(l.logsStore.deleteRequest(z.id,l.databaseToken),8);case 8:l.sendFn(z.url,z.options,!!z.skipRetry),_.qe(b)}})};
var HQj=function(z,l){if(!wp(z))throw Error("gd");var I=l.options.onError?l.options.onError:function(){};
l.options.onError=function(v,M){var x,g,G,u;return _.O(function(Z){switch(Z.nextAddress){case 1:x=G4Q(M);(g=NZG(M))&&z.getBooleanFlag&&z.getBooleanFlag("web_enable_error_204")&&z.handleError(Error("hd"),l.url,M);if(!(z.getBooleanFlag&&z.getBooleanFlag("nwl_consider_error_code")&&x||z.getBooleanFlag&&!z.getBooleanFlag("nwl_consider_error_code")&&z.potentialEsfErrorCounter<=z.potentialEsfErrorLimit)){Z.jumpTo(2);break}if(!z.networkManager.sendNetworkCheckRequest){Z.jumpTo(3);break}return Z.yield(z.networkManager.sendNetworkCheckRequest(),
3);case 3:if(z.networkManager.isNetworkAvailable()){Z.jumpTo(2);break}I(v,M);if(!z.getBooleanFlag||!z.getBooleanFlag("nwl_consider_error_code")||((G=l)==null?void 0:G.id)===void 0){Z.jumpTo(6);break}return Z.yield(z.logsStore.resetRequest(l.id,z.databaseToken,!1),6);case 6:return Z.return();case 2:if(z.getBooleanFlag&&z.getBooleanFlag("nwl_consider_error_code")&&!x&&z.potentialEsfErrorCounter>z.potentialEsfErrorLimit)return Z.return();z.potentialEsfErrorCounter++;if(((u=l)==null?void 0:u.id)===void 0){Z.jumpTo(8);
break}return l.sendCount<z.retryMaxAttempts?Z.yield(z.logsStore.resetRequest(l.id,z.databaseToken,!0,g?!1:void 0),12):Z.yield(z.logsStore.deleteRequest(l.id,z.databaseToken),8);case 12:z.jobManager.addLowPriorityJob(function(){z.networkManager.isNetworkAvailable()&&z.throttledSend()},z.retryDelayMs);
case 8:I(v,M),_.qe(Z)}})};
var b=l.options.onSuccess?l.options.onSuccess:function(){};
l.options.onSuccess=function(v,M){var x;return _.O(function(g){if(g.nextAddress==1)return((x=l)==null?void 0:x.id)===void 0?g.jumpTo(2):g.yield(z.logsStore.deleteRequest(l.id,z.databaseToken),2);z.networkManager.networkStatusHint&&z.getBooleanFlag&&z.getBooleanFlag("vss_network_hint")&&z.networkManager.networkStatusHint(!0);b(v,M);_.qe(g)})};
return l};
Ag.prototype.requestWithinAgeLimit=function(z,l){z=z.timestamp;return this.now()-z>=l?!1:!0};
Ag.prototype.retryQueuedRequests=function(){var z=this;if(!wp(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(l){l&&!z.requestWithinAgeLimit(l,z.queuedRequestAgeLimitMs)?z.jobManager.addLowPriorityJob(function(){return _.O(function(I){if(I.nextAddress==1)return l.id===void 0?I.jumpTo(2):I.yield(z.logsStore.resetRequest(l.id,z.databaseToken),2);z.retryQueuedRequests();_.qe(I)})}):z.networkManager.isNetworkAvailable()&&z.throttledSend()})};
var ZQn=function(z,l){z.writeError&&!z.networkManager.isNetworkAvailable()?z.writeError(l):z.handleError(l)},wp=function(z){return!!z.databaseToken||z.bypassDbTokenDependency};var ECH;var kS$={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var y8j={},Kh5=pp("ServiceWorkerLogsDatabase",{objectStores:(y8j.SWHealthLog={addedAtVersion:1},y8j),shared:!0,upgrade:function(z,l){l(1)&&AW(wi(z,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Yi$={},Qep=0;var d8G;var WG=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},aw=function(){if(!WG.instance){var z=_.W8("yt.networkRequestMonitor.instance")||new WG;
_.vd("yt.networkRequestMonitor.instance",z);WG.instance=z}return WG.instance};
WG.prototype.requestComplete=function(z,l){l&&(this.anyRequestHasSucceeded=!0);z=this.removeParams(z);this.requestMap.get(z)||this.requestMap.set(z,l)};
WG.prototype.isEndpointCFR=function(z){z=this.removeParams(z);return(z=this.requestMap.get(z))?!1:z===!1&&this.anyRequestHasSucceeded?!0:null};
WG.prototype.removeParams=function(z){return z.split("?")[0]};
WG.prototype.removeParams=WG.prototype.removeParams;WG.prototype.isEndpointCFR=WG.prototype.isEndpointCFR;WG.prototype.requestComplete=WG.prototype.requestComplete;WG.getInstance=aw;var n9=function(z){_.oW.call(this);var l=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=z!=null?z:{addLowPriorityJob:function(v,M){return setTimeout(v,M)},
cancelJob:function(v){clearTimeout(v)}};
var I,b;this.isOnline=(b=(I=window.navigator)==null?void 0:I.onLine)!=null?b:!0;this.onNavigatorChange=function(){return _.O(function(v){return v.yield(fVI(l),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||CMu(this)};
_.m(n9,_.oW);n9.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete n9.instance};
n9.prototype.isNetworkAvailable=function(){return this.isOnline};
var CMu=function(z){z.pollingJob=z.jobManager.addLowPriorityJob(function(){var l;return _.O(function(I){if(I.nextAddress==1)return z.isOnline?((l=window.navigator)==null?0:l.onLine)?I.jumpTo(3):I.yield(fVI(z),3):I.yield(fVI(z),3);CMu(z);_.qe(I)})},3E4)},fVI=function(z,l){return z.networkRequestPromise?z.networkRequestPromise:z.networkRequestPromise=new Promise(function(I){var b,v,M,x;
return _.O(function(g){switch(g.nextAddress){case 1:return b=window.AbortController?new window.AbortController:void 0,M=(v=b)==null?void 0:v.signal,x=!1,_.RL(g,2,3),b&&(z.abortTimeoutKey=z.jobManager.addLowPriorityJob(function(){b.abort()},l||2E4)),g.yield(fetch("/generate_204",{method:"HEAD",
signal:M}),5);case 5:x=!0;case 3:_.K4(g);z.networkRequestPromise=void 0;z.abortTimeoutKey&&(z.jobManager.cancelJob(z.abortTimeoutKey),z.abortTimeoutKey=0);x!==z.isOnline&&(z.isOnline=x,z.isOnline?z.dispatchEvent("networkstatus-online"):z.dispatchEvent("networkstatus-offline"));I(x);_.B0(g,0);break;case 2:_.XP(g),x=!1,g.jumpTo(3)}})})};var L9=function(){_.oW.call(this);var z=this;this.shouldFlushErrors=!1;n9.instance||(n9.instance=new n9(_.ow));this.sharedNetworkStatusManager=n9.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(z.shouldFlushErrors&&_.C("offline_error_handling")){var l=oC5().get("errors",!0);if(l){for(var I in l)if(l[I]){var b=new _.qB(I,"sent via offline_errors");b.name=l[I].name;b.stack=l[I].stack;b.level=l[I].level;_.$P(b)}oC5().set("errors",{},2592E3,!0)}}})};
_.m(L9,_.oW);var kRA=function(){if(!L9.instance){var z=_.W8("yt.networkStatusManager.instance")||new L9;_.vd("yt.networkStatusManager.instance",z);L9.instance=z}return L9.instance};
_.p=L9.prototype;_.p.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.p.networkStatusHint=function(z){this.sharedNetworkStatusManager.isOnline=z};
_.p.getWindowStatus=function(){var z=window.navigator.onLine;return z===void 0?!0:z};
_.p.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.p.listen=function(z,l){return this.sharedNetworkStatusManager.listen(z,l)};
_.p.sendNetworkCheckRequest=function(z){z=fVI(this.sharedNetworkStatusManager,z);z.then(function(l){_.C("use_cfr_monitor")&&aw().requestComplete("generate_204",l)});
return z};
L9.prototype.sendNetworkCheckRequest=L9.prototype.sendNetworkCheckRequest;L9.prototype.listen=L9.prototype.listen;L9.prototype.enableErrorFlushing=L9.prototype.enableErrorFlushing;L9.prototype.getWindowStatus=L9.prototype.getWindowStatus;L9.prototype.networkStatusHint=L9.prototype.networkStatusHint;L9.prototype.isNetworkAvailable=L9.prototype.isNetworkAvailable;L9.getInstance=kRA;_.U5=function(z){z=z===void 0?{}:z;_.oW.call(this);var l=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=kRA();var I=_.W8("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(z.rateLimit?(this.rateLimit=z.rateLimit,I("networkstatus-online",function(){R4z(l,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){R4z(l,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){l.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){l.dispatchEvent("publicytnetworkstatus-offline")})))};
_.m(_.U5,_.oW);_.U5.prototype.isNetworkAvailable=function(){var z=_.W8("yt.networkStatusManager.instance.isNetworkAvailable");return z?z.bind(this.nsmInstance)():!0};
_.U5.prototype.networkStatusHint=function(z){var l=_.W8("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);l&&l(z)};
_.U5.prototype.sendNetworkCheckRequest=function(z){var l=this,I;return _.O(function(b){I=_.W8("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(l.nsmInstance);return _.C("skip_network_check_if_cfr")&&aw().isEndpointCFR("generate_204")?b.return(new Promise(function(v){var M;l.networkStatusHint(((M=window.navigator)==null?void 0:M.onLine)||!0);v(l.isNetworkAvailable())})):I?b.return(I(z)):b.return(!0)})};
var R4z=function(z,l){z.rateLimit?z.lastJobTime?(_.ow.cancelJob(z.schedulerJob),z.schedulerJob=_.ow.addLowPriorityJob(function(){z.lastPublicSignalSent!==l&&(z.dispatchEvent(l),z.lastPublicSignalSent=l,z.lastJobTime=(0,_.Dr)())},z.rateLimit-((0,_.Dr)()-z.lastJobTime))):(z.dispatchEvent(l),z.lastPublicSignalSent=l,z.lastJobTime=(0,_.Dr)()):z.dispatchEvent(l)};var $8H,UX=function(){Ag.call(this,{logsStore:{cleanLogsStore:RKY,deleteRequest:k45,getMostRecentByStatus:yxt,markAsQueued:ffx,resetRequest:CYG,set:HE$},networkManager:_.eKQ(),handleError:function(z,l,I){var b,v=I==null?void 0:(b=I.error)==null?void 0:b.code;if(v===400||v===415){var M;z=new _.qB(z.message,l,I==null?void 0:(M=I.error)==null?void 0:M.code);_.nP(z,void 0,void 0,void 0,!0)}else _.$P(z)},
handleWarning:_.nP,sendFn:seS,now:_.Dr,writeError:PYx,jobManager:_.Y1(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.OI("potential_esf_error_limit",10),getBooleanFlag:_.C,disableYtIdbTransactions:!(_.Xm()&&_.whx())});this.initializationPromise=new _.yX;_.C("networkless_immediately_drop_all_requests")&&m8u();NDQ("LogsDatabaseV2")};
_.m(UX,Ag);_.KGn=function(){var z=_.W8("yt.networklessRequestController.instance");z||(z=new UX,_.vd("yt.networklessRequestController.instance",z),_.C("networkless_logging")&&_.MW().then(function(l){z.databaseToken=l;ugI(z);z.initializationPromise.resolve();z.enableCleaning&&Math.random()<=z.cleaningRate&&z.databaseToken&&BZt(z.databaseToken);_.C("networkless_immediately_drop_sw_health_store")&&mru(z)}));
return z};
UX.prototype.writeThenSend=function(z,l){l||(l={});l=rx5(z,l);_.Xm()||(this.initialized=!1);Ag.prototype.writeThenSend.call(this,z,l)};
UX.prototype.sendThenWrite=function(z,l,I){l||(l={});l=rx5(z,l);_.Xm()||(this.initialized=!1);Ag.prototype.sendThenWrite.call(this,z,l,I)};
UX.prototype.sendAndWrite=function(z,l){l||(l={});l=rx5(z,l);_.Xm()||(this.initialized=!1);Ag.prototype.sendAndWrite.call(this,z,l)};
UX.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var mru=function(z){var l;_.O(function(I){if(!z.databaseToken)throw l=wk("clearSWHealthLogsDb"),l;return I.return(XhQ(z.databaseToken).catch(function(b){z.handleError(b)}))})};_.Wh7=!1;_.Axx=_.v7.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Wh7};_.vd("ytNetworklessLoggingInitializationOptions",_.Axx);var Tu=function(z){var l=this;this.config_=null;z?this.config_=z:RWf()&&(this.config_=_.O5());_.qA(_.ow,function(){gCG(l)},5E3)};
Tu.prototype.isReady=function(){!this.config_&&RWf()&&(this.config_=_.O5());return!!this.config_};
var OEf=function(z,l,I,b){!_.sZ("VISITOR_DATA")&&l!=="visitor_id"&&Math.random()<.01&&_.nP(new _.qB("Missing VISITOR_DATA when sending innertube request.",l,I,b));if(!z.isReady()){var v=new _.qB("innertube xhrclient not ready",l,I,b);_.$P(v);throw v;}var M={headers:b.headers||{},method:"POST",postParams:I,postBody:b.postBody,postBodyFormat:b.postBodyFormat||"JSON",onTimeout:function(){b.onTimeout()},
onFetchTimeout:b.onTimeout,onSuccess:function(H,y){if(b.onSuccess)b.onSuccess(y)},
onFetchSuccess:function(H){if(b.onSuccess)b.onSuccess(H)},
onProgress:function(H){if(b.onProgress)b.onProgress(H)},
onError:function(H,y){if(b.onError)b.onError(y)},
onFetchError:function(H){if(b.onError)b.onError(H)},
timeout:b.timeout,withCredentials:!0,compress:b.compress};M.headers["Content-Type"]||(M.headers["Content-Type"]="application/json");var x="";(v=z.config_.innertubeHostOverride)&&(x=v);var g=z.config_.innertubeUseThirdPartyAuth||!1,G=_.Pcf(g,x,b);Object.assign(M.headers,G);M.headers.Authorization&&!x&&g&&(M.headers["x-origin"]=window.location.origin);var u=_.jm(x+("/youtubei/"+z.config_.innertubeApiVersion+"/"+l),{alt:"json"}),Z=function(H){H=H===void 0?!1:H;var y;if(b.retry&&x!="www.youtube-nocookie.com"&&
(H||_.C("skip_ls_gel_retry")||M.headers["Content-Type"]!=="application/json"||(y=D85(l,I,G,g)),y)){var f=M.onSuccess,R=M.onFetchSuccess;M.onSuccess=function(c,d){x8$(y);f(c,d)};
I.onFetchSuccess=function(c,d){x8$(y);R(c,d)}}try{if(H&&b.retry&&!b.networklessOptions.bypassNetworkless)M.method="POST",b.networklessOptions.writeThenSend?_.KGn().writeThenSend(u,M):_.KGn().sendAndWrite(u,M);
else if(b.compress){var F=!b.networklessOptions.writeThenSend;if(M.postBody){var Y=M.postBody;typeof Y!=="string"&&(Y=JSON.stringify(M.postBody));Vgp(u,Y,M,_.fG,F)}else Vgp(u,JSON.stringify(M.postParams),M,vwQ,F)}else _.C("web_all_payloads_via_jspb")?_.fG(u,M):vwQ(u,M)}catch(c){if(c.name==="InvalidAccessError")y&&(x8$(y),y=0),_.nP(Error("jd"));else throw c;}y&&_.qA(_.ow,function(){gCG(z)},5E3)};
_.nCY()?vWS().then(function(H){Z(H)}):Z(!1)};var MFH=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(MFH,_.Da);var tnw=0,U87=_.yk?"webkit":_.Hx?"moz":_.Zs?"ms":TYG?"o":"";_.vd("ytDomDomGetNextId",_.W8("ytDomDomGetNextId")||function(){return++tnw});var Bmu={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},Iy=function(z){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(z=
z||window.event){this.event=z;for(var l in z)l in Bmu||(this[l]=z[l]);this.scale=z.scale;this.rotation=z.rotation;var I=z.target||z.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var b=z.relatedTarget;if(b)try{b=b.nodeName?b:null}catch(v){b=null}else this.type=="mouseover"?b=z.fromElement:this.type=="mouseout"&&(b=z.toElement);this.relatedTarget=b;this.clientX=z.clientX!=void 0?z.clientX:z.pageX;this.clientY=z.clientY!=void 0?z.clientY:z.pageY;this.keyCode=z.keyCode?z.keyCode:z.which;
this.charCode=z.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=z.altKey;this.ctrlKey=z.ctrlKey;this.shiftKey=z.shiftKey;this.metaKey=z.metaKey;this.pageX_=z.pageX;this.pageY_=z.pageY}}catch(v){}},XPp=function(z){if(document.body&&document.documentElement){var l=document.body.scrollTop+document.documentElement.scrollTop;
z.pageX_=z.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);z.pageY_=z.clientY+l}};
Iy.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Iy.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Iy.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var l_=_.v7.ytEventsEventsListeners||{};_.vd("ytEventsEventsListeners",l_);var lYt=_.v7.ytEventsEventsCounter||{count:0};_.vd("ytEventsEventsCounter",lYt);var IYG=_.cc(function(){var z=!1;try{var l=Object.defineProperty({},"capture",{get:function(){z=!0}});
window.addEventListener("test",null,l)}catch(I){}return z});_.Gs(vW,_.Q9);vW.prototype.onMouseMove_=function(z){z.pageX_===void 0&&XPp(z);var l=z.pageX_;z.pageY_===void 0&&XPp(z);this.position_=new _.rs(l,z.pageY_)};
vW.prototype.checkPosition_=function(){if(this.position_){var z=(0,_.Dr)();if(this.previousTime_!=0){var l=this.previousPosition_,I=this.position_,b=l.x-I.x;l=l.y-I.y;b=Math.sqrt(b*b+l*l)/(z-this.previousTime_);this.cycles_[this.index_]=Math.abs((b-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=l=0;I<4;I++)l+=this.cycles_[I]||0;l>=3&&this.callback_();this.previousVelocity_=b}this.previousTime_=z;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
vW.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.bK7(this.mouseListenerKey_)};var Dt1={};var ZY1=new _.Z0("rawColdConfigGroup");var u1f=new _.Z0("rawHotConfigGroup");var qUu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(qUu,_.Da);var vbG=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(vbG,_.Da);var XL=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z,500)};
_.m(XL,_.Da);XL.prototype.getPayloadCase=function(){return _.Fl(this,iQ0)};
XL.prototype.getContext=function(){return _.gi(this,vbG,33)};
var iQ0=[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];var xvx=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(xvx,_.Da);var POu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(POu,_.Da);POu.prototype.setVideoId=function(z){return f2(this,1,hSS,RC(z))};
POu.prototype.getPlaylistId=function(){return _.K0(this,K2(this,hSS,2))};
var hSS=[1,2];var IXS=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(IXS,_.Da);IXS.prototype.getContext=function(){return _.gi(this,C2,1)};
IXS.prototype.getTier=function(){return _.Px(this,7)};var FGu,x7,gE;FGu=_.v7.ytPubsubPubsubInstance||new _.ks;x7=_.v7.ytPubsubPubsubSubscribedKeys||{};gE=_.v7.ytPubsubPubsubTopicToKeys||{};_.xtQ=_.v7.ytPubsubPubsubIsSynchronous||{};_.ks.prototype.subscribe=_.ks.prototype.subscribe;_.ks.prototype.unsubscribeByKey=_.ks.prototype.unsubscribeByKey;_.ks.prototype.publish=_.ks.prototype.publish;_.ks.prototype.clear=_.ks.prototype.clear;_.vd("ytPubsubPubsubInstance",FGu);_.vd("ytPubsubPubsubTopicToKeys",gE);_.vd("ytPubsubPubsubIsSynchronous",_.xtQ);
_.vd("ytPubsubPubsubSubscribedKeys",x7);var NA=window;var ar=_.C("web_enable_lifecycle_monitoring")&&ElG()!==0,QRI=_.C("web_enable_lifecycle_monitoring");var YUu=function(z){var l=this;var I=I===void 0?0:I;var b=b===void 0?_.Y1():b;this.JSC$10890_defaultPriority=I;this.scheduler=b;this.completedResolver=new _.yX;this.scheduledPayloads=z;for(z={i$jscomp$492:0};z.i$jscomp$492<this.scheduledPayloads.length;z={payload$jscomp$20:void 0,i$jscomp$492:z.i$jscomp$492},z.i$jscomp$492++)z.payload$jscomp$20=this.scheduledPayloads[z.i$jscomp$492],I=function(v){return function(){v.payload$jscomp$20.job();l.scheduledPayloads[v.i$jscomp$492].processed=!0;l.scheduledPayloads.every(function(M){return M.processed===
!0})&&l.completedResolver.resolve()}}(z),b=this.getPriority(z.payload$jscomp$20),b=this.scheduler.addJob(I,b),this.scheduledPayloads[z.i$jscomp$492]=Object.assign({},z.payload$jscomp$20,{job:I,
jobId:b})};
YUu.prototype.flushJobs=function(){var z=this,l=Array.from(this.scheduledPayloads.keys()).sort(function(b,v){return z.getPriority(z.scheduledPayloads[v])-z.getPriority(z.scheduledPayloads[b])});
l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
YUu.prototype.cancel=function(){for(var z=_.D(this.scheduledPayloads),l=z.next();!l.done;l=z.next())l=l.value,l.jobId===void 0||l.processed||this.scheduler.cancelJob(l.jobId),l.processed=!0;this.completedResolver.resolve()};
YUu.prototype.getPriority=function(z){var l;return(l=z.priority)!=null?l:this.JSC$10890_defaultPriority};var VH=function(z){this.state=z;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};ar&&uVf(this.state)};
VH.prototype.install=function(z){this.plugins.push(z);return this};
VH.prototype.uninstall=function(){var z=this;_.AT.apply(0,arguments).forEach(function(l){l=z.plugins.indexOf(l);l>-1&&z.plugins.splice(l,1)})};
VH.prototype.transition=function(z,l){var I=this;ar&&ZK7(this.state);var b=this.transitions.find(function(M){return Array.isArray(M.from)?M.from.find(function(x){return x===I.state&&M.to===z}):M.from===I.state&&M.to===z});
if(b){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Tmw(this,z,l);this.state=z;ar&&uVf(this.state);b=b.action.bind(this);var v=this.plugins.filter(function(M){return M[z]}).map(function(M){return M[z]});
b(c8A(this,v),l)}else throw Error("kd`"+this.state+"`"+z);};
var c8A=function(z,l){var I=l.filter(function(v){return SU_(z,v)===10}),b=l.filter(function(v){return SU_(z,v)!==10});
return z.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var v=_.AT.apply(0,arguments);return _.O(function(M){if(M.nextAddress==1)return M.yield(z.runImmediateJobsAsync.apply(z,[I].concat(_.ht(v))),2);z.setJobSetWithScheduledJobs.apply(z,[b].concat(_.ht(v)));_.qe(M)})}:function(){var v=_.AT.apply(0,arguments);
z.runImmediateJobsSync.apply(z,[I].concat(_.ht(v)));z.setJobSetWithScheduledJobs.apply(z,[b].concat(_.ht(v)))}};
VH.prototype.runImmediateJobsSync=function(z){var l=_.AT.apply(1,arguments);_.Y1();for(var I=_.D(z),b=I.next(),v={};!b.done;v={lifecycle$jscomp$2:void 0},b=I.next())v.lifecycle$jscomp$2=b.value,fK(function(M){return function(){drI(M.lifecycle$jscomp$2.name);yNx(function(){return M.lifecycle$jscomp$2.callback.apply(M.lifecycle$jscomp$2,_.ht(l))});
jG(M.lifecycle$jscomp$2.name)}}(v))};
VH.prototype.runImmediateJobsAsync=function(z){var l=_.AT.apply(1,arguments),I,b,v,M;return _.O(function(x){x.nextAddress==1&&(_.Y1(),I=_.D(z),b=I.next(),v={});if(x.nextAddress!=3){if(b.done)return x.jumpTo(0);v.lifecycle$jscomp$3=b.value;v.asyncJobCompletion=void 0;M=function(g){return function(){drI(g.lifecycle$jscomp$3.name);var G=yNx(function(){return g.lifecycle$jscomp$3.callback.apply(g.lifecycle$jscomp$3,_.ht(l))});
gt$(G)?g.asyncJobCompletion=_.C("web_lifecycle_error_handling_killswitch")?G.then(function(){jG(g.lifecycle$jscomp$3.name)}):G.then(function(){jG(g.lifecycle$jscomp$3.name)},function(u){HKG(u);
jG(g.lifecycle$jscomp$3.name)}):jG(g.lifecycle$jscomp$3.name)}}(v);
fK(M);return v.asyncJobCompletion?x.yield(v.asyncJobCompletion,3):x.jumpTo(3)}v={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};b=I.next();return x.jumpTo(2)})};
VH.prototype.setJobSetWithScheduledJobs=function(z){var l=_.AT.apply(1,arguments),I=this,b=z.map(function(v){return{job:function(){drI(v.name);yNx(function(){return v.callback.apply(v,_.ht(l))});
jG(v.name)},
priority:SU_(I,v)}});
b.length&&(this.jobSet=new YUu(b))};
var SU_=function(z,l){var I,b;return(b=(I=z.overridePriority)!=null?I:l.priority)!=null?b:0},drI=function(z){ar&&z&&uVf(z)},jG=function(z){ar&&z&&ZK7(z)},Tmw=function(z,l,I){QRI&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+z.constructor.name+"] '"+z.state+"' to '"+l+"'"),console.log("with message: ",I),console.groupEnd())};
_.vP.Object.defineProperties(VH.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var oOu=function(z){VH.call(this,z===void 0?"none":z);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(){}}]},PMu;
_.m(oOu,VH);oOu.prototype.runApplicationNavigationBegin=function(z,l){var I=this;this.navigationTimer=_.qA(_.ow,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
z(l==null?void 0:l.event)};
oOu.prototype.runApplicationNavigationEnd=function(z,l){this.navigationTimer&&(_.ow.cancelJob(this.navigationTimer),this.navigationTimer=null);z(l==null?void 0:l.event)};
_.EUQ=function(){PMu||(PMu=new oOu);return PMu};var N51=[];_.vd("yt.logging.transport.getScrapedGelPayloads",function(){return N51});var EN=function(){var z=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return z.totalEntries}}};
EN.prototype.storePayload=function(z,l){z=fYt(z);this.store[z]?this.store[z].push(l):(this.memoizedKeySequences={},this.store[z]=[l]);this.totalEntries++;_.C("more_accurate_gel_parser")&&(l=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(l));return z};
EN.prototype.smartExtractMatchingEntries=function(z){if(!z.keys.length)return[];for(var l=h4u(this,z.keys.splice(0,1)[0]),I=[],b=0;b<l.length;b++)this.store[l[b]]&&z.sizeLimit&&(this.store[l[b]].length<=z.sizeLimit?(I.push.apply(I,_.ht(this.store[l[b]])),delete this.store[l[b]]):I.push.apply(I,_.ht(this.store[l[b]].splice(0,z.sizeLimit))));this.totalEntries-=I.length;(z==null?0:z.sizeLimit)&&I.length<(z==null?void 0:z.sizeLimit)&&(z.sizeLimit-=I.length,I.push.apply(I,_.ht(this.smartExtractMatchingEntries(z))));
return I};
EN.prototype.extractMatchingEntries=function(z){z=h4u(this,z);for(var l=[],I=0;I<z.length;I++)this.store[z[I]]&&(l.push.apply(l,_.ht(this.store[z[I]])),delete this.store[z[I]]);this.totalEntries-=l.length;return l};
EN.prototype.getSequenceCount=function(z){z=h4u(this,z);for(var l=0,I=0;I<z.length;I++){var b=void 0;l+=((b=this.store[z[I]])==null?void 0:b.length)||0}return l};
var h4u=function(z,l){var I=fYt(l);if(z.memoizedKeySequences[I])return z.memoizedKeySequences[I];var b=Object.keys(z.store)||[];if(b.length<=1&&fYt(l)===b[0])return b;for(var v=[],M=0;M<b.length;M++){var x=b[M].split("/");if(sRM(l.auth,x[0])){var g=l.isJspb;sRM(g===void 0?"undefined":g?"true":"false",x[1])&&sRM(l.cttAuthInfo,x[2])&&(g=l.tier,g=g===void 0?"undefined":JSON.stringify(g),sRM(g,x[3])&&v.push(b[M]))}}return z.memoizedKeySequences[I]=v},sRM=function(z,l){return z===void 0||z==="undefined"?
!0:z===l};
EN.prototype.getSequenceCount=EN.prototype.getSequenceCount;EN.prototype.extractMatchingEntries=EN.prototype.extractMatchingEntries;EN.prototype.smartExtractMatchingEntries=EN.prototype.smartExtractMatchingEntries;EN.prototype.storePayload=EN.prototype.storePayload;var L9H,W97,UtQ,HW,r8n,C17,fX5,AN1,wrQ,ToG,nlS,gUf,rNH;L9H=_.OI("initial_gel_batch_timeout",2E3);W97=_.OI("gel_queue_timeout_max_ms",6E4);UtQ=_.OI("gel_min_batch_size",5);HW=void 0;r8n=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
C17=new r8n;fX5=new r8n;AN1=new r8n;wrQ=new r8n;nlS=!0;gUf=1;_.OY$=new Map;rNH=_.v7.ytLoggingTransportTokensToCttTargetIds_||{};_.vd("ytLoggingTransportTokensToCttTargetIds_",rNH);var s2Y=_.v7.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.vd("ytLoggingTransportTokensToJspbCttTargetIds_",s2Y);var Zx={};var QK=_.v7.ytLoggingGelSequenceIdObj_||{};_.vd("ytLoggingGelSequenceIdObj_",QK);var mv$=[];var SB5=new Set,qBG=0,hyG=0,P1H=0,FE7=[],iY7=[],s0f=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var JRS=function(){};
JRS.prototype.getUrl=function(z,l){l=l===void 0?!1:l;return z.hasOwnProperty("shareEndpoint")?null:_.wUQ(z,null,l)};
var UV1=function(z,l,I){z={endpoint:l,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";l=I.indexOf(":");l>0&&(I=I.substr(l+1));I&&z.actions.push(I);return z};var aX1=/Command$/,Uv5=/Endpoint$/,WEp=new Map;var $rI,e4j;$rI=1;_.WW=function(){this.actionRoutingMap=new Map};
_.WW.prototype.triggerAction=function(z){var l=new o4Q(z,!1,_.AT.apply(1,arguments));this.handleAction(l);return l.returnValue};
_.WW.prototype.triggerOptionalAction=function(z){var l=new o4Q(z,!0,_.AT.apply(1,arguments));this.handleAction(l);return l.returnValue};
_.Jg=function(z,l,I){l.forEach(function(b){var v=LEf(b);v&&z.triggerOptionalAction(v,b,I,void 0)})};
_.WW.prototype.handleAction=function(z){var l=this.actionRoutingMap.get(z.actionName);l&&e4j(z,l);z.optionalAction||z.returnValue.length!==0||(z=new _.qB("Unhandled action",z.actionName),_.nP(z))};
e4j=function(z,l){l.forEach(function(I){var b=null;I?b=I.apply(null,z.args):(I=Error("ld"),I.params=z.actionName,_.$P(I));z.returnValue.push(b)})};
_.n2=function(z,l,I){I||(I=$rI++);for(var b=_.D(Object.keys(l)),v=b.next();!v.done;v=b.next()){v=v.value;var M=z.actionRoutingMap.get(v);M||(M=new Map,z.actionRoutingMap.set(v,M));z.registerActionHandler(I,v,l[v],M)}return I};
_.WW.prototype.registerActionHandler=function(z,l,I,b){b.set(z,_.em(I))};
_.UN=function(z,l,I){l=_.D(Object.keys(l));for(var b=l.next();!b.done;b=l.next())(b=z.actionRoutingMap.get(b.value))&&b.delete(I)};
_.O9(_.WW);var I67=function(z,l){var I=_.WW.getInstance();_.Sm(function(){var b={},v=_.n2(I,(b[z]=l,b));_.cb(function(){var M={};_.UN(I,(M[z]="",M),v)})})};var D$f=Symbol("nd");Dr7=h4$;var f6t=new Set(["For","If","Match","Watch"]),wP4={},A8M=(wP4[$z.default]=function(){return JeS},wP4.style=function(){return JeS},wP4),WGp;
for(WGp in A8M)D_.attributes[WGp]=A8M[WGp](D_.attributes[WGp]);var Mh=new _.yH("VISIBILITY_OBSERVER");var qcx={retrieve:function(z){return this.id.\u0275prov.token===z.\u0275prov.token?this.contextValue:this?_.vb(this,this.id):t8t}};var UsQ=function(z,l,I){if(z!==lq)return!1;z=NnG(document.createElement("div"),function(){var b=OZ(!1);try{I[0]()}finally{OZ(b)}});
z=Array.from(z.childNodes);z.length===1&&(z=z[0]);return z};var nOI=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(z){}var LG4=typeof WeakRef==="function";var Urj=function(z){this.value=z};
Urj.prototype.deref=function(){return this.value};
var aVI=LG4?WeakRef:Urj,Vnz=function(z){this.newKeyHandler=z;this.map=new WeakMap};
Vnz.prototype.add=function(z,l){this.map.has(z)||(this.newKeyHandler(z),this.map.set(z,[]));this.map.get(z).push(new aVI(l))};
Vnz.prototype.get=function(z){var l=this;return function b(){var v,M,x,g,G,u,Z,H,y,f,R;return _.E2(b,function(F){switch(F.nextAddress){case 1:_.tt(F,2);v=l.map.get(z);if(!v)return F.return();M=0;x=_.D(v);g=x.next();case 4:if(g.done){F.jumpTo(6);break}G=g.value;u=G.deref();if(!u){F.jumpTo(5);break}M++;Z=_.u9;return F.yield(u,8);case 8:Z(F.yieldResult);case 5:g=x.next();F.jumpTo(4);break;case 6:if(2*M<v.length){H=0;y=_.D(v);for(f=y.next();!f.done;f=y.next())R=f.value,R.deref()&&(v[H++]=R);v.length=
H}case 2:_.K4(F),_.B0(F,0)}})}()};var jR_=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Scu=new Vnz(function(z){z.addEventListener("abort",oMt,{once:!0})}),cQt=new WeakMap,J8u=function(z){z=z===void 0?zC:z;
this.signal=new z};
J8u.prototype.abort=function(z){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=z,z=new Event("abort"),this.signal.dispatchEvent(z))};
var zC=function(){this.target=jR_();this.aborted=!1;this.onabort=null};
zC.prototype.throwIfAborted=function(){Tnp.call(this)};
zC.prototype.addEventListener=function(z,l,I){this.target.addEventListener(z,l,I)};
zC.prototype.removeEventListener=function(z,l,I){this.target.removeEventListener(z,l,I)};
zC.prototype.dispatchEvent=function(z){if(this.onabort&&z.type==="abort")this.onabort(z);return this.target.dispatchEvent(z)};
zC.abort=YcS;zC.timeout=P7Y;zC.any=dau;var QFY=nOI?AbortController:J8u,lg=nOI?AbortSignal:zC;typeof lg.abort!=="function"&&(lg.abort=YcS);typeof lg.prototype.throwIfAborted!=="function"&&(lg.prototype.throwIfAborted=Tnp);typeof lg.any!=="function"&&(lg.any=dau);typeof lg.timeout!=="function"&&(lg.timeout=P7Y);var zcI=function(z){z=z.clone();kow(z);PH(z,"dg",null);PH(z,"d","0");HGn(z,null);yE0(z,null);return z},lE_=!0,IEI=function(z,l,I){var b=I===void 0?{}:I;
I=b.cssRowKey===void 0?void 0:b.cssRowKey;var v=b.combinedSignature===void 0?void 0:b.combinedSignature;var M=b.extraEdges===void 0?void 0:b.extraEdges;b=b.callback===void 0?void 0:b.callback;PH(z,"m",l.join(","));M&&Cf4(z,M);I&&(PH(z,"ck",I),v?PH(z,"rs",v):lE_&&(lE_=!1));if(b){if(b!=null&&!KZj.test(b))throw Error("Xa`"+b);PH(z,"cb",b)}z=z.toString();_.DS(z,"/")&&(z=jCA(document.location.href)+z);return _.QR(z)};var vB0=function(z){return bMw(z).then(function(l){return JSON.parse(l.responseText)})},bMw=function(z){var l={},I=l.xmlHttpFactory?l.xmlHttpFactory.createInstance():Pl_.createInstance();
return(new _.yK(function(b,v){var M;try{I.open("GET",z,!0)}catch(G){v(new I5("Error opening XHR: "+G.message,z,I))}I.onreadystatechange=function(){if(I.readyState==4){_.v7.clearTimeout(M);var G;!(G=oq4(I.status))&&(G=I.status===0)&&(G=VWu(z),G=!(G=="http"||G=="https"||G==""));G?b(I):v(new M_j(I.status,z,I))}};
I.onerror=function(){v(new I5("Network error",z,I))};
if(l.headers)for(var x in l.headers){var g=l.headers[x];g!=null&&I.setRequestHeader(x,g)}l.withCredentials&&(I.withCredentials=l.withCredentials);l.responseType&&(I.responseType=l.responseType);l.mimeType&&I.overrideMimeType(l.mimeType);l.timeoutMs>0&&(M=_.v7.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();v(new puu(z,I))},l.timeoutMs));
try{I.send(null)}catch(G){I.onreadystatechange=function(){},_.v7.clearTimeout(M),v(new I5("Error sending XHR: "+G.message,z,I))}})).thenCatch(function(b){b instanceof _.nj&&I.abort();
throw b;})},I5=function(z,l,I){_.I1.call(this,z+", url="+l);
this.url=l;this.xhr=I};
_.Gs(I5,_.I1);I5.prototype.name="XhrError";var M_j=function(z,l,I){I5.call(this,"Request Failed, status="+z,l,I);this.status=z};
_.Gs(M_j,I5);M_j.prototype.name="XhrHttpError";var puu=function(z,l){I5.call(this,"Request timed out",z,l)};
_.Gs(puu,I5);puu.prototype.name="XhrTimeoutError";xx=xx||{};var bg=function(){_.Q9.call(this)};
_.Gs(bg,_.Q9);bg.prototype.initialize=function(){};var DuA=function(z,l){this.fn_=z;this.handler_=l};
DuA.prototype.execute=function(z){this.fn_&&(this.fn_.call(this.handler_||null,z),this.fn_=this.handler_=null)};
DuA.prototype.abort=function(){this.handler_=this.fn_=null};var vK=function(z,l){_.Q9.call(this);this.deps_=z;this.JSC$11044_id_=l;this.onloadCallbacks_=[];this.JSC$11044_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Gs(vK,_.Q9);vK.prototype.moduleConstructor_=bg;vK.prototype.module_=null;vK.prototype.getId=function(){return this.JSC$11044_id_};
vK.prototype.registerCallback=function(z,l){return xuz(this.onloadCallbacks_,z,l)};
var OMu=function(z,l){xuz(z.JSC$11044_onErrorCallbacks_,l)},xuz=function(z,l,I){l=new DuA(l,I);
z.push(l);return l};
vK.prototype.isLoaded=function(){return!!this.module_};
vK.prototype.onLoad=function(z){var l=new this.moduleConstructor_;l.initialize(z());this.module_=l;l=(l=gBw(this.earlyOnloadCallbacks_,z()))||gBw(this.onloadCallbacks_,z());l||(this.JSC$11044_onErrorCallbacks_.length=0);return l};
vK.prototype.onError=function(z){(z=gBw(this.JSC$11044_onErrorCallbacks_,z))&&Mp(Error("qd`"+z));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var gBw=function(z,l){for(var I=[],b=0;b<z.length;b++)try{z[b].execute(l)}catch(v){Mp(v),I.push(v)}z.length=0;return I.length?I:null};
vK.prototype.disposeInternal=function(){vK.superClass_.disposeInternal.call(this);_.p0(this.module_)};var Gbp,yHw,ZMu,HMn,EB_,uG_,mu_,kbn,Rcp;
_.xF=function(z,l,I,b,v){b=b===void 0?!1:b;v=v===void 0?!1:v;var M=M===void 0?!0:M;this.scsReferenceUrl_=n85(_.YR(z).toString(),M);this.cssRowKey_=l;this.combinedSignature_=I;this.useNegativeLoading_=b;this.requestedModuleMap_={};this.JSC$11047_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(z=ol(this.scsReferenceUrl_,"excm"))?z.split(","):[];this.shouldScanForCss_=v;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;L5Q();_.Ml(this,fQA(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Gbp=function(z,l){if(l.href||l.getAttribute("data-href"))if(l=l.href||l.getAttribute("data-href"),enG(l)&&!n85(l).urlPrefix_.endsWith("_/js/")){l=fQA(n85(l));l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,z.loadedCssModuleList_.includes(I)||z.loadedCssModuleList_.push(I)}};
_.xF.prototype.JSC$11049_loadModules=function(z,l,I){var b=I===void 0?{}:I;I=b.extraEdges;var v=b.onError;var M=b.onSuccess;b=b.forceReload;this.JSC$11047_moduleInfoMap_=l;if(!z)throw Error("rd");if(this.shouldScanForCss_){l=_.D(document.getElementsByTagName("style"));for(var x=l.next();!x.done;x=l.next())Gbp(this,x.value);l=_.D(document.getElementsByTagName("link"));for(x=l.next();!x.done;x=l.next())Gbp(this,x.value)}NCn(this,EB_(this,z),I,v,M,b)};
var NCn=function(z,l,I,b,v,M){b=b===void 0?function(){}:b;
v=v===void 0?function(){}:v;
M=M===void 0?!1:M;uG_(z,l,function(x,g,G){G=G===void 0?g:G;z.enableFallbackFetch&&M?z.loadWithFetch(x,g,b,v,G):z.load(x,g,b,v,G,I)},I)||b(-1)};
_.xF.prototype.loadWithFetch=function(){_.O(function(){throw Error("sd");})};
_.xF.prototype.maybeSetAdditionalFields=function(){};
yHw=function(z,l,I){if(z.useNegativeLoading_){var b=z.scsReferenceUrl_;z={cssRowKey:z.cssRowKey_,combinedSignature:z.combinedSignature_,extraEdges:I,requestedModuleIds:ZMu(z),requestedCssModuleIds:HMn(z)};var v=z===void 0?{}:z;z=v.requestedModuleIds===void 0?[]:v.requestedModuleIds;I=v.requestedCssModuleIds===void 0?[]:v.requestedCssModuleIds;var M=v.cssRowKey===void 0?void 0:v.cssRowKey;var x=v.combinedSignature===void 0?void 0:v.combinedSignature;var g=v.extraEdges===void 0?void 0:v.extraEdges;
v=v.callback===void 0?void 0:v.callback;b=zcI(b);PH(b,"d","1");HGn(b,z);yE0(b,I);l=IEI(b,l,{cssRowKey:M,combinedSignature:x,extraEdges:g,callback:v})}else b=z.scsReferenceUrl_,z={cssRowKey:z.cssRowKey_,combinedSignature:z.combinedSignature_,requestedModuleIds:ZMu(z),requestedCssModuleIds:HMn(z)},g=z===void 0?{}:z,z=g.requestedCssModuleIds===void 0?[]:g.requestedCssModuleIds,I=g.cssRowKey===void 0?void 0:g.cssRowKey,M=g.combinedSignature===void 0?void 0:g.combinedSignature,x=g.extraEdges===void 0?
void 0:g.extraEdges,g=g.callback===void 0?void 0:g.callback,b=zcI(b),yE0(b,z),l=IEI(b,l,{cssRowKey:I,combinedSignature:M,extraEdges:x,callback:g});return l};
_.Ml=function(z,l){for(var I=!1,b=[],v=0;v<l.length;++v){var M=l[v];z.requestedModuleMap_[M]||(z.requestedModuleMap_[M]=!0,z.requestedModuleList_.push(M),I=!0,b.push(M))}I&&(z.requestedModuleListSorted_=!1)};
_.pk=function(z,l){for(var I=[],b=0;b<l.length;++b){var v=l[b];z.requestedModuleMap_[v]&&(delete z.requestedModuleMap_[v],_.$5(z.requestedModuleList_,v),I.push(v))}};
_.xF.prototype.load=function(z,l,I,b,v){v=v===void 0?l:v;_.YR(z);var M=this.useCors_,x=this.corsMode_,g=this.fetchPriority,G=_.tA("SCRIPT");_.Me(G,z);M&&(G.crossOrigin=x);G.async=!1;g&&G.setAttribute("fetchpriority",g);_.Ml(this,l);_.fEA(this,z,G,l,I,b,v)};
_.fEA=function(z,l,I,b,v,M,x){x=x===void 0?b:x;z.lastScript_=I;z.insertPos.insertBefore(I,z.insertPos.firstChild);_.CJp(I,b,function(){I.parentElement.removeChild(I);z.lastScript_==I&&(z.lastScript_=null);var g=new Set;b.map(function(u){return g.add(u)});
for(var G in z.JSC$11047_moduleInfoMap_)z.JSC$11047_moduleInfoMap_[G].isLoaded()&&g.add(G);Array.from(g);M()},function(g){I.parentElement.removeChild(I);
z.lastScript_==I&&(z.lastScript_=null);_.pk(z,g);z.pendingModuleGraphUpdate_?z.pendingModuleGraphUpdate_.then(function(){v(-1,l)}):v(-1,l)},x)};
_.CJp=function(z,l,I,b,v){v=v===void 0?l:v;var M=l.length,x=function(){M=0;z.onload=null;z.onerror=null;g=function(){}},g=function(){x();
var u=v.filter(function(Z){return!oQ().getModuleInfo(Z).isLoaded()});
u.length!==0?b(u,"Response was successful but was missing module(s) "+u+"."):I()},G=function(){M--;
M==0&&g()};
l.forEach(function(u){u=oQ().getModuleInfo(u);u.isLoaded()?G():(xuz(u.earlyOnloadCallbacks_,G),OMu(u,G))});
z.onload=function(){return g()};
z.onerror=function(){x();b(l)}};
ZMu=function(z){z.requestedModuleListSorted_||(z.requestedModuleListSorted_=!0,z.requestedModuleList_.sort());return z.requestedModuleList_};
HMn=function(z){z=z.loadedCssModuleList_;z.sort();return z};
EB_=function(z,l){return l.filter(function(I){return!z.requestedModuleMap_[I]})};
uG_=function(z,l,I,b){if(z.pendingModuleGraphUpdate_)return z.pendingModuleGraphUpdate_.then(function(){uG_(z,l,I,b)}),!0;
if(!z.useNegativeLoading_){var v=[],M=Object.assign({},z.requestedModuleMap_);kbn(z,l,function(Z){v.push(Z.getId())},b,function(Z){return!Z.isLoaded()},M);
l=v}for(M=0;M<l.length;){for(var x=l.length-M,g=M==0?l:l.slice(M,l.length),G=yHw(z,g,b),u=_.YR(G).toString();u.length>z.urlMaxLength;)if(x>1)x-=Math.ceil((u.length-z.urlMaxLength)/6),x=Math.max(x,1),g=l.slice(M,M+x),G=yHw(z,g,b),u=_.YR(G).toString();else return z.useNegativeLoading_?(z.useNegativeLoading_=!1,z.pendingModuleGraphUpdate_=Rcp(z).then(function(Z){mu_(z,Z,b)}),uG_(z,l.slice(M),I,b)):!1;
M+=x;z.useNegativeLoading_?I(G,g):I(G,g,M===l.length?l:[])}return!0};
mu_=function(z,l,I){oQ().setAllModuleInfoString((l||{}).moduleGraph);kbn(z,ZMu(z),function(b){_.Ml(z,[b.getId()])},I);
z.pendingModuleGraphUpdate_=null};
kbn=function(z,l,I,b,v,M){M=M===void 0?{}:M;var x=oQ();l=_.D(l);for(var g=l.next();!g.done;g=l.next()){g=g.value;var G=x.getModuleInfo(g);if(!(M[g]||v&&!v(G))){M[g]=!0;var u=G.deps_||[];if(b){var Z=[];b[g]&&(Z=Object.keys(b[g]));u=u.concat(Z)}kbn(z,u,I,b,v,M);I(G)}}};
Rcp=function(z){z=z.scsReferenceUrl_.clone();kow(z);PH(z,"dg",null);PH(z,"md","1");return vB0(z.toString())};var hL7=new Uint8Array(123);var KYu=[];var t_A=function(){this.JSC$10054_loader_=null};
_.p=t_A.prototype;_.p.setBatchModeEnabled=function(){};
_.p.setAllModuleInfoString=function(){};
_.p.addExtraEdge=function(){throw Error("td");};
_.p.removeExtraEdge=function(){throw Error("ud");};
_.p.getModuleContext=function(){return null};
_.p.isActive=function(){return!1};
_.p.isUserActive=function(){return!1};
_.p.registerCallback=function(){};var Dj=function(z,l,I,b,v){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.name="ModuleLoadFailure";this.type=z;this.status=l;this.requestedModuleIds=I;this.url=b;this.cause=v;this.message=this.toString()};
_.m(Dj,Error);Dj.prototype.toString=function(){return BC4(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var BC4=function(z){switch(z.type){case Dj.Type.UNAUTHORIZED:return"Unauthorized";case Dj.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Dj.Type.TIMEOUT:return"Timed out";case Dj.Type.OLD_CODE_GONE:return"Out of date module id";case Dj.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+z.type}};
xx.ModuleLoadFailure=Dj;xx.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var x4=function(){this.moduleIds_=this.JSC$10054_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11062_extraEdges_={};this.JSC$11062_callbackMap_={};this.JSC$11062_currentlyLoadingModule_=this.baseModuleInfo_=new vK([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new D9;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Gs(x4,t_A);var Xuu=function(z,l){_.I1.call(this,"Error loading "+z+": "+l)};
_.Gs(Xuu,_.I1);x4.prototype.setBatchModeEnabled=function(z){this.batchModeEnabled_=z};
x4.prototype.setAllModuleInfoString=function(z,l){if(!(this instanceof x4))this.setAllModuleInfoString(z,l);else if(typeof z==="string"){if(z.startsWith("d$")){z=z.substring(2);for(var I=[],b=0,v=z.indexOf("/"),M=0,x=!1,g=0;;){var G=x?z.substring(M):z.substring(M,v);if(G.length===0)b++,M="sy"+b.toString(36),G=[];else{var u=G.indexOf(":");if(u<0)M=G,G=[];else if(u===G.length-1)M=G.substring(0,u),G=Array(I[g-1]);else{M=G.substring(0,u);G=G.substring(u+1).split(",");u=g;for(var Z=0;Z<G.length;Z++)u-=
G[Z].length===0?1:Number(G[Z]),G[Z]=I[u]}u=0;if(M.length===0)u=1;else if(M.charAt(0)==="+"||M.charAt(0)==="-")u=Number(M);u!==0&&(b+=u,M="sy"+b.toString(36))}I.push(M);qKj(this,M,G);if(x)break;M=v+1;v=z.indexOf("/",M);v===-1&&(x=!0);g++}this.moduleIds_=I}else if(z.startsWith("p$"))iMu(this,z);else{z=z.split("/");I=[];for(b=0;b<z.length;b++){g=z[b].split(":");v=g[0];x=[];if(g[1])for(x=g[1].split(","),g=0;g<x.length;g++)x[g]=I[parseInt(x[g],36)];I.push(v);qKj(this,v,x)}this.moduleIds_=I}l&&l.length?
(_.AG(this.loadingModuleIds_,l),this.lastInitialModuleId_=_.c7(l)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11062_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11062_currentlyLoadingModule_=null,(l=this.baseModuleInfo_.onLoad((0,_.YN)(this.getModuleContext,this)))&&l.length&&FY_(this,new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,l[0])),Ol(this))}};
var iMu=function(z,l){var I=l.substring(2);for(l=0;l<64;l++)hL7["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(l)]=l;var b={buf:I,pos:0};DA(b);var v=DA(b),M=DA(b)+1;l=Array(v);var x=Array(v),g=Array(v);M=Array(M);var G=0,u=0,Z=b.pos,H=b.buf.indexOf("|",b.pos);b.pos=H+1;for(H=0;H<v;H++){var y=DA(b),f=y&2,R=y&1;y>>>=2;R?(G+=y>>>1^-(y&1),y="sy"+G.toString(36)):(R=Z,Z+=y,y=I.substring(R,Z));l[H]=y;f&&(M[u++]=y)}M[u]="";b.pos++;u=v&-2;I=v&1;for(G=0;G<u;G+=2)Z=sFQ(b),g[G]=
Z&7,g[G+1]=Z>>>3&7;I&&(I=sFQ(b),g[u]=I&7);b.pos++;for(u=0;u<v;u++)g[u]===7&&(g[u]=DA(b));b.pos++;for(I=u=0;I<v;I++){G=g[I];Z=G===0?KYu:Array(G);x[I]=Z;H=u;for(f=0;f<G;f++)H-=DA(b),Z[f]=M[H];M[u]===l[I]&&u++}for(b=0;b<l.length;b++)qKj(z,l[b],x[b]);z.moduleIds_=l};
_.p=x4.prototype;_.p.getModuleInfo=function(z){return this.moduleInfoMap[z]};
_.p.addExtraEdge=function(z,l){var I=this.getModuleInfo(z);I&&I.isLoaded()?this.load(l):(this.JSC$11062_extraEdges_[z]||(this.JSC$11062_extraEdges_[z]={}),this.JSC$11062_extraEdges_[z][l]=!0)};
_.p.removeExtraEdge=function(z,l){if(this.JSC$11062_extraEdges_[z]){delete this.JSC$11062_extraEdges_[z][l];for(var I in this.JSC$11062_extraEdges_[z])return;delete this.JSC$11062_extraEdges_[z]}};
_.p.isActive=function(){return this.loadingModuleIds_.length>0};
_.p.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Ol=function(z){var l=z.lastActive_,I=z.isActive();I!=l&&(z.executeCallbacks_(I?"active":"idle"),z.lastActive_=I);l=z.isUserActive();l!=z.userLastActive_&&(z.executeCallbacks_(l?"userActive":"userIdle"),z.userLastActive_=l)},qKj=function(z,l,I){z.moduleInfoMap[l]?(z=z.moduleInfoMap[l].deps_,z!=I&&z.splice.apply(z,[0,
z.length].concat(_.ht(I)))):z.moduleInfoMap[l]=new vK(I,l)},YKu=function(z,l,I){var b=[];
X7Q(l,b);l=[];for(var v={},M=0;M<b.length;M++){var x=b[M],g=z.getModuleInfo(x);if(!g)throw Error("vd`"+x);var G=new D9;v[x]=G;g.isLoaded()?G.callback(null):(QmI(z,x,g,!!I,G),z.isModuleLoading(x)||l.push(x))}l.length>0&&(z.loadingModuleIds_.length===0?z.loadModules_(l):(z.requestedModuleIdsQueue_.push(l),Ol(z)));return v},QmI=function(z,l,I,b,v){I.registerCallback(v.callback,v);
OMu(I,function(M){v.errback(new Xuu(l,M))});
z.isModuleLoading(l)?b&&(TCw(z,l),Ol(z)):b&&TCw(z,l)};
x4.prototype.loadModules_=function(z,l,I){var b=this;l||(this.consecutiveFailures_=0);var v=cHu(this,z);this.loadingModuleIds_=v;this.requestedLoadingModuleIds_=this.batchModeEnabled_?z:_.ex(v);Ol(this);if(v.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,v);z=this.JSC$10054_loader_;if(!z)throw Error("wd");if(Object.keys(this.JSC$11062_extraEdges_).length>0&&!z.supportsExtraEdges)throw Error("xd");I=(0,_.YN)(z.JSC$11049_loadModules,z,_.ex(v),this.moduleInfoMap,{extraEdges:this.JSC$11062_extraEdges_,
forceReload:!!I,onError:function(M,x){var g=b.requestedLoadingModuleIds_;M=M!=null?M:void 0;b.consecutiveFailures_++;var G=_.ex(v);b.requestedLoadingModuleIds_=g;v.forEach(_.tH(_.$5,b.requestedModuleIds_),b);M==401?(FY_(b,new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.UNAUTHORIZED,M)),b.requestedModuleIdsQueue_.length=0):M==410?(SK_(b,new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.OLD_CODE_GONE,M)),duu(b)):b.consecutiveFailures_>=3?(SK_(b,new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
M,G,x)),duu(b)):b.loadModules_(b.requestedLoadingModuleIds_,!0,M==8001||!1)},
onTimeout:(0,_.YN)(this.handleLoadTimeout_,this)});(z=Math.pow(this.consecutiveFailures_,2)*5E3)?_.v7.setTimeout(I,z):I()}};
var cHu=function(z,l){l=l.filter(function(v){return z.moduleInfoMap[v].isLoaded()?(_.v7.setTimeout(function(){return Error("yd`"+v)},0),!1):!0});
for(var I=[],b=0;b<l.length;b++)I=I.concat(oBw(z,l[b]));X7Q(I);return!z.batchModeEnabled_&&I.length>1?(l=I.shift(),z.requestedModuleIdsQueue_=I.map(function(v){return[v]}).concat(z.requestedModuleIdsQueue_),[l]):I},oBw=function(z,l){var I=_.h7.createSet(z.requestedModuleIds_),b=[];
I[l]||b.push(l);l=[l];for(var v=0;v<l.length;v++)for(var M=z.getModuleInfo(l[v]).deps_,x=M.length-1;x>=0;x--){var g=M[x];z.getModuleInfo(g).isLoaded()||I[g]||(b.push(g),l.push(g))}b.reverse();X7Q(b);return b};
x4.prototype.JSC$11057_setLoaded=function(){if(this.JSC$11062_currentlyLoadingModule_){var z=this.JSC$11062_currentlyLoadingModule_.getId(),l=[];if(this.JSC$11062_extraEdges_[z]){for(var I=_.D(Object.keys(this.JSC$11062_extraEdges_[z])),b=I.next();!b.done;b=I.next()){b=b.value;var v=this.getModuleInfo(b);v&&!v.isLoaded()&&(this.removeExtraEdge(z,b),l.push(b))}this.loadMultiple(l)}this.isDisposed()||((l=this.moduleInfoMap[z].onLoad((0,_.YN)(this.getModuleContext,this)))&&l.length&&FY_(this,new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,l[0])),_.$5(this.userInitiatedLoadingModuleIds_,z),_.$5(this.loadingModuleIds_,z),this.loadingModuleIds_.length===0&&duu(this),this.lastInitialModuleId_&&z==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Ol(this),this.JSC$11062_currentlyLoadingModule_=null)}};
x4.prototype.isModuleLoading=function(z){if(_.rf(this.loadingModuleIds_,z))return!0;for(var l=0;l<this.requestedModuleIdsQueue_.length;l++)if(_.rf(this.requestedModuleIdsQueue_[l],z))return!0;return!1};
x4.prototype.load=function(z,l){return YKu(this,[z],l)[z]};
x4.prototype.loadMultiple=function(z){return YKu(this,z)};
var TCw=function(z,l){_.rf(z.userInitiatedLoadingModuleIds_,l)||z.userInitiatedLoadingModuleIds_.push(l)};
x4.prototype.beforeLoadModuleCode=function(z){var l=this;this.JSC$11062_currentlyLoadingModule_&&this.JSC$11062_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11057_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[z]&&PJI(this,this.moduleInfoMap[z].deps_||[],function(I){I.module_=new bg;_.$5(l.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$11062_currentlyLoadingModule_=this.getModuleInfo(z)};
x4.prototype.handleLoadTimeout_=function(){SK_(this,new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.TIMEOUT));duu(this)};
var SK_=function(z,l){z.requestedLoadingModuleIds_.length>1?z.requestedModuleIdsQueue_=z.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(z.requestedModuleIdsQueue_):FY_(z,l)},FY_=function(z,l){var I=z.requestedLoadingModuleIds_;
z.loadingModuleIds_.length=0;for(var b=[],v=0;v<z.requestedModuleIdsQueue_.length;v++){var M=z.requestedModuleIdsQueue_[v].filter(function(G){var u=oBw(this,G);return V1(I,function(Z){return _.rf(u,Z)})},z);
_.AG(b,M)}for(v=0;v<I.length;v++)_.mp$(b,I[v]);for(v=0;v<b.length;v++){for(M=0;M<z.requestedModuleIdsQueue_.length;M++)_.$5(z.requestedModuleIdsQueue_[M],b[v]);_.$5(z.userInitiatedLoadingModuleIds_,b[v])}if(v=z.JSC$11062_callbackMap_.error)for(M=0;M<v.length;M++)for(var x=v[M],g=0;g<b.length;g++)x("error",b[g],l);for(b=0;b<I.length;b++)if(z.moduleInfoMap[I[b]])z.moduleInfoMap[I[b]].onError(l);z.requestedLoadingModuleIds_.length=0;Ol(z)},duu=function(z){for(;z.requestedModuleIdsQueue_.length;){var l=
z.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},z);
if(l.length>0){z.loadModules_(l);return}}Ol(z)};
x4.prototype.registerCallback=function(z,l){Array.isArray(z)||(z=[z]);for(var I=0;I<z.length;I++){var b=z[I],v=l,M=this.JSC$11062_callbackMap_;M[b]||(M[b]=[]);M[b].push(v)}};
x4.prototype.executeCallbacks_=function(z){for(var l=this.JSC$11062_callbackMap_[z],I=0;l&&I<l.length;I++)l[I](z)};
var PJI=function(z,l,I,b,v){b=b===void 0?function(){return!0}:b;
v=v===void 0?{}:v;l=_.D(l);for(var M=l.next();!M.done;M=l.next()){M=M.value;var x=z.getModuleInfo(M);!v[M]&&b(x)&&(v[M]=!0,PJI(z,x.deps_||[],I,b,v),I(x))}};
x4.prototype.dispose=function(){_.Dv(_.h7.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11062_callbackMap_={};this.isDisposed_=!0};
x4.prototype.isDisposed=function(){return this.isDisposed_};
_.d1=function(){return new x4};var hc_=[5E3,2E4],smu=function(){this.JSC$10054_loader_=null;this.JSC$11070_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11070_queue_=[];this.JSC$11070_extraEdges_=Object.create(null);this.JSC$11070_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.m(smu,t_A);_.p=smu.prototype;_.p.setAllModuleInfoString=function(){this.JSC$11070_currentlyLoadingModule_&&this.JSC$11070_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11057_setLoaded()};
_.p.getModuleInfo=function(z){var l=this.JSC$11070_moduleInfoMap_[z];l||(l=new vK([],z),this.JSC$11070_moduleInfoMap_[z]=l);return l};
_.p.addExtraEdge=function(z,l){this.getModuleInfo(z).isLoaded()?this.load(l):(this.JSC$11070_extraEdges_[z]||(this.JSC$11070_extraEdges_[z]={}),this.JSC$11070_extraEdges_[z][l]=!0)};
_.p.removeExtraEdge=function(z,l){if(this.JSC$11070_extraEdges_[z]){delete this.JSC$11070_extraEdges_[z][l];for(var I in this.JSC$11070_extraEdges_[z])return;delete this.JSC$11070_extraEdges_[z]}};
_.p.isModuleLoading=function(z){return!!this.loadingModules_[z]};
_.p.load=function(z){rHp(this,[z]);return $uA(this,z)};
_.p.loadMultiple=function(z){var l=this,I=Object.create(null),b=[];z.forEach(function(v){I[v]||(I[v]=$uA(l,v),b.push(v))});
rHp(this,b);return I};
_.p.beforeLoadModuleCode=function(z){var l;((l=this.JSC$11070_currentlyLoadingModule_)==null?void 0:l.getId())==="synthetic_module_overhead"&&this.JSC$11057_setLoaded();var I,b;ecu(this,(b=(I=this.JSC$11070_moduleInfoMap_[z])==null?void 0:I.deps_)!=null?b:[],function(v){v.module_=new bg},function(v){return!v.isLoaded()});
this.JSC$11070_currentlyLoadingModule_=this.getModuleInfo(z)};
_.p.JSC$11057_setLoaded=function(){if(this.JSC$11070_currentlyLoadingModule_){var z=this.JSC$11070_currentlyLoadingModule_.getId(),l=[];if(this.JSC$11070_extraEdges_[z]){for(var I=_.D(Object.keys(this.JSC$11070_extraEdges_[z])),b=I.next();!b.done;b=I.next())b=b.value,this.getModuleInfo(b).isLoaded()||(this.removeExtraEdge(z,b),l.push(b));this.loadMultiple(l)}this.JSC$11070_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11070_currentlyLoadingModule_=null;(!this.isModuleLoading(z)&&/^sy[0-9a-z]{0,4}$/.test(z)||z==="synthetic_module_overhead")&&delete this.JSC$11070_moduleInfoMap_[z];this.unsetModulesAsLoading(z)}};
_.p.setModulesAsLoading=function(){var z=this;_.AT.apply(0,arguments).forEach(function(l){z.loadingModules_[l]=!0})};
_.p.unsetModulesAsLoading=function(){var z=this;_.AT.apply(0,arguments).forEach(function(l){delete z.loadingModules_[l]})};
var $uA=function(z,l){return new _.yK(function(I,b){var v=z.getModuleInfo(l);v.isLoaded()?I(null):(v.registerCallback(function(){I(null)}),OMu(v,function(M){var x="Error loading "+l+": "+M;
M instanceof xx.ModuleLoadFailure&&M.url&&(x=x+", requested url: "+M.url.toString());b(Error(x))}))})},rHp=function(z,l){l=l.filter(function(I){return!z.isModuleLoading(I)&&!z.getModuleInfo(I).isLoaded()});
l.length>0&&(z.setModulesAsLoading.apply(z,_.ht(l)),z.JSC$11070_queue_.push(l),wuu(z))},wuu=function(z){for(var l={};z.activeLoads_<Infinity&&z.JSC$11070_queue_.length>0;l={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})l.ids$jscomp$36=z.JSC$11070_queue_.shift().filter(function(I){return!z.getModuleInfo(I).isLoaded()}),l.ids$jscomp$36.length>0&&(z.activeLoads_++,l.finishLoad=function(I){return function(){z.activeLoads_--;
wuu(z);I.finishLoad=function(){}}}(l),_.sb(l.ids$jscomp$36.map(function(I){return $uA(z,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(l)),l.attempt$jscomp$6=0,l.load$jscomp$1=function(I){return function(){if(Object.keys(z.JSC$11070_extraEdges_).length>0&&!z.JSC$10054_loader_.supportsExtraEdges)throw Error("xd");
z.JSC$10054_loader_.JSC$11049_loadModules(I.ids$jscomp$36,z.JSC$11070_moduleInfoMap_,{extraEdges:z.JSC$11070_extraEdges_,onError:function(b,v){var M=hc_[I.attempt$jscomp$6++];M!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},M):(z.unsetModulesAsLoading.apply(z,_.ht(I.ids$jscomp$36)),(0,I.finishLoad)(),I.ids$jscomp$36.forEach(function(x){x=z.getModuleInfo(x);
if(!x.isLoaded())x.onError(new xx.ModuleLoadFailure(xx.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,b,I.ids$jscomp$36,v))}))}})}}(l),(0,l.load$jscomp$1)())},ecu=function(z,l,I,b,v){b=b===void 0?function(){return!0}:b;
v=v===void 0?{}:v;l=_.D(l);for(var M=l.next();!M.done;M=l.next()){M=M.value;var x=z.getModuleInfo(M);!v[M]&&b(x)&&(v[M]=!0,ecu(z,x.deps_||[],I,b,v),I(x))}};var AHA=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var wtk=Symbol("Ad");window.JSCompiler_renameProperty=function(z){return z};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var WYA=!AHA||HTMLElement.es5Shimmed||_.v7.Reflect===void 0||_.v7.customElements===void 0||_.v7.customElements.polyfillWrapFlushCallback||!1,nB_,fg7=function(){var z=HTMLElement;if(WYA)return z;if(nB_!==void 0)return nB_;var l=_.v7.Reflect,I=function(){return l.construct(z,[],this.constructor)};
I.prototype=z.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,z);return nB_=I},LY0=!1;WYA||LY0||(LY0=!0,_.v7.HTMLElement=fg7());/*

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 Uat=/(url\()([^)]*)(\))/g,nMY=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Lnp,Od;var Ae=!window.ShadyDOM||!window.ShadyDOM.inUse,UuA=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),aEj=!window.customElements.polyfillWrapFlushCallback,V_0;if(V_0=Ae&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var jmA=new CSSStyleSheet;jmA.replaceSync("");var JHw=document.createElement("div");JHw.attachShadow({mode:"open"});JHw.shadowRoot.adoptedStyleSheets=[jmA];V_0=JHw.shadowRoot.adoptedStyleSheets[0]===jmA}catch(z){V_0=!1}
var zv0=V_0,lp0=window.Polymer&&window.Polymer.rootPath||V2H(document.baseURI||window.location.href),te=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,MyH=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Ud=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ip_=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,wS=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ls=window.Polymer&&window.Polymer.legacyWarnings||!1,bcA=window.Polymer&&window.Polymer.syncInitialRender||
!1,XY=window.Polymer&&window.Polymer.legacyUndefined||!1,vwI=window.Polymer&&window.Polymer.orderedComputed||!1,g7=window.Polymer&&window.Polymer.removeNestedTemplates||!1,GC=window.Polymer&&window.Polymer.fastDomIf||!1,Nl=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,MSI=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,pg_=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var El={},DFu={},iq=function(){return HTMLElement.apply(this,arguments)||this};
_.m(iq,HTMLElement);iq.import=function(z,l){return z?(z=El[z]||DFu[z.toLowerCase()])&&l?z.querySelector(l):z:null};
iq.prototype.attributeChangedCallback=function(z,l,I){l!==I&&this.register()};
iq.prototype.register=function(z){if(z=z||this.id){if(Ud&&(El[z]||DFu[z.toLowerCase()])!==void 0)throw El[z]=DFu[z.toLowerCase()]=null,Error("Bd`"+z);this.id=z;El[z]=DFu[z.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.vP.Object.defineProperties(iq.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var z=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;z=_.gS(this.getAttribute("assetpath")||"",z.baseURI);this.__assetpath=V2H(z)}return this.__assetpath}}});
_.vP.Object.defineProperties(iq,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
iq["import"]=iq.import;iq.prototype.modules=El;customElements.define("dom-module",iq);var xFu=0,JQS=0,G1=[],Oc_=0,jFQ=!1,gwM=document.createTextNode(""),GZu,$F;(new window.MutationObserver(zVp)).observe(gwM,{characterData:!0});_.ug={after:function(z){return{run:function(l){return window.setTimeout(l,z)},
cancel:function(l){window.clearTimeout(l)}}},
run:function(z,l){return window.setTimeout(z,l)},
cancel:function(z){window.clearTimeout(z)}};
_.oe={run:function(z){return window.requestAnimationFrame(z)},
cancel:function(z){window.cancelAnimationFrame(z)}};
GZu={run:function(z){return window.requestIdleCallback?window.requestIdleCallback(z):window.setTimeout(z,16)},
cancel:function(z){window.cancelIdleCallback?window.cancelIdleCallback(z):window.clearTimeout(z)}};
$F={run:function(z){jFQ||(jFQ=!0,gwM.textContent=Oc_++);G1.push(z);return xFu++},
cancel:function(z){var l=z-JQS;if(l>=0){if(!G1[l])throw Error("Cd`"+z);G1[l]=null}}};var Ngj=0,Zj=function(z){var l=z.__mixinApplications;l||(l=new WeakMap,z.__mixinApplications=l);var I=Ngj++;return function(b){var v=b.__mixinSet;if(v&&v[I])return b;var M=l,x=M.get(b);x||(x=z(b),M.set(b,x),b=Object.create(x.__mixinSet||v||null),b[I]=!0,x.__mixinSet=b);return x}};_.Ks=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(z){return ShadyDOM.patch(z)}:function(z){return z};var Ew_=Zj(function(z){var l=function(){var I=z.call(this)||this;I.__dataEnabled=!1;I.__dataReady=!1;I.__dataInvalid=!1;I.__data={};I.__dataPending=null;I.__dataOld=null;I.__dataInstanceProps=null;I.__dataCounter=0;I.__serializing=!1;I._initializeProperties();return I};
_.m(l,z);l.createProperties=function(I){var b=this.prototype,v;for(v in I)v in b||b._createPropertyAccessor(v)};
l.attributeNameForProperty=function(I){return I.toLowerCase()};
l.typeForProperty=function(){};
l.prototype._createPropertyAccessor=function(I,b){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,b))};
l.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var b=this.__dataAttributes[I];b||(b=this.constructor.attributeNameForProperty(I),this.__dataAttributes[b]=I);return b};
l.prototype._definePropertyAccessor=function(I,b){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:b?function(){}:function(v){this._setPendingProperty(I,v,!0)&&this._invalidateProperties()}})};
l.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
l.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
l.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
l.prototype._setProperty=function(I,b){this._setPendingProperty(I,b)&&this._invalidateProperties()};
l.prototype._getProperty=function(I){return this.__data[I]};
l.prototype._setPendingProperty=function(I,b){var v=this.__data[I],M=this._shouldPropertyChange(I,b,v);M&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=v),this.__data[I]=b,this.__dataPending[I]=b);return M};
l.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
l.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,$F.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
l.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
l.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,b=this.__dataPending,v=this.__dataOld;this._shouldPropertiesChange(I,b,v)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,b,v));this.__dataCounter--};
l.prototype._shouldPropertiesChange=function(I,b){return!!b};
l.prototype._propertiesChanged=function(){};
l.prototype._shouldPropertyChange=function(I,b,v){return v!==b&&(v===v||b===b)};
l.prototype.attributeChangedCallback=function(I,b,v,M){b!==v&&this._attributeToProperty(I,v);z.prototype.attributeChangedCallback&&z.prototype.attributeChangedCallback.call(this,I,b,v,M)};
l.prototype._attributeToProperty=function(I,b,v){if(!this.__serializing){var M=this.__dataAttributes;I=M&&M[I]||I;this[I]=this._deserializeValue(b,v||this.constructor.typeForProperty(I))}};
l.prototype._propertyToAttribute=function(I,b,v){this.__serializing=!0;v=arguments.length<3?this[I]:v;this._valueToNodeAttribute(this,v,b||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
l.prototype._valueToNodeAttribute=function(I,b,v){b=this._serializeValue(b);if(v==="class"||v==="name"||v==="slot")I=(0,_.Ks)(I);b===void 0?I.removeAttribute(v):I.setAttribute(v,b===""&&window.trustedTypes?window.trustedTypes.emptyScript:b)};
l.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
l.prototype._deserializeValue=function(I,b){switch(b){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return l});var usA=0,lqu=[];var Zcw=Zj(function(z){function l(M){M=Object.getPrototypeOf(M);return M.prototype instanceof v?M:null}
function I(M){if(!M.hasOwnProperty("__ownProperties")){var x=null;if(M.hasOwnProperty("properties")){var g=M.properties;if(g){x={};for(var G in g){var u=g[G];x[G]=typeof u==="function"?{type:u}:u}}}M.__ownProperties=x}return M.__ownProperties}
var b=Ew_(z),v=function(){return b.apply(this,arguments)||this};
_.m(v,b);v.finalize=function(){if(!this.hasOwnProperty("__finalized")){var M=l(this);M&&M.finalize();this.__finalized=!0;this._finalizeClass()}};
v._finalizeClass=function(){var M=I(this);M&&this.createProperties(M)};
v.typeForProperty=function(M){return(M=this._properties[M])&&M.type};
v.prototype._initializeProperties=function(){usA++;this.constructor.finalize();b.prototype._initializeProperties.call(this)};
v.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this._enableProperties()};
v.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this)};
_.vP.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var M=this;if(!this.hasOwnProperty("__observedAttributes")){Iq$(this.prototype);var x=this._properties;this.__observedAttributes=x?Object.keys(x).map(function(g){return M.prototype._addPropertyToAttributeMap(g)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var M=l(this);this.__properties=Object.assign({},M&&M._properties,I(this))}return this.__properties}}});
return v});var bIx={},v1Q=/-[a-z]/g,MK$=/([A-Z])/g;for(var Hcn={},ymz=HTMLElement.prototype;ymz;){for(var fpp=Object.getOwnPropertyNames(ymz),Ci_=0;Ci_<fpp.length;Ci_++)Hcn[fpp[Ci_]]=!0;ymz=Object.getPrototypeOf(ymz)}var kZu=window.trustedTypes?function(z){return trustedTypes.isHTML(z)||trustedTypes.isScript(z)||trustedTypes.isScriptURL(z)}:function(){return!1},Rv_=Zj(function(z){var l=Ew_(z);
z=function(){return l.apply(this,arguments)||this};
_.m(z,l);z.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,b=0;b<I.length;b++)this.prototype._createPropertyAccessor(Nh(I[b]))};
z.attributeNameForProperty=function(I){return Ed(I)};
z.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);l.prototype._initializeProperties.call(this)};
z.prototype._initializeProtoProperties=function(I){for(var b in I)this._setProperty(b,I[b])};
z.prototype._ensureAttribute=function(I,b){this.hasAttribute(I)||this._valueToNodeAttribute(this,b,I)};
z.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(kZu(I))return I;try{return JSON.stringify(I)}catch(b){return""}}default:return l.prototype._serializeValue.call(this,I)}};
z.prototype._deserializeValue=function(I,b){switch(b){case Object:try{var v=JSON.parse(I)}catch(M){v=I}break;case Array:try{v=JSON.parse(I)}catch(M){v=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:v=isNaN(I)?String(I):Number(I);v=new Date(v);break;default:v=l.prototype._deserializeValue.call(this,I,b)}return v};
z.prototype._definePropertyAccessor=function(I,b){if(!Hcn[I]){var v=this[I];v!==void 0&&(this.__data?this._setPendingProperty(I,v):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=v))}l.prototype._definePropertyAccessor.call(this,I,b)};
z.prototype._hasAccessor=function(I){return this.__dataHasAccessor&&this.__dataHasAccessor[I]};
z.prototype._isPropertyPending=function(I){return!!(this.__dataPending&&I in this.__dataPending)};
return z});var mFw={"dom-if":!0,"dom-repeat":!0},KMj=!1,tS0=!1,Bgw=function(){var z=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(l){return l}});
return function(l,I,b){I=I.getAttribute(b);z&&b.startsWith("on-")?l.setAttribute(b,z.createScript(I,b)):l.setAttribute(b,I)}}(),XgA=Zj(function(z){var l=function(){return z.apply(this,arguments)||this};
_.m(l,z);l._parseTemplate=function(I,b){if(!I._templateInfo){var v=I._templateInfo={};v.nodeInfoList=[];v.nestedTemplate=!!b;v.stripWhiteSpace=b&&b.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,v,{parent:null})}return I._templateInfo};
l._parseTemplateContent=function(I,b,v){return this._parseTemplateNode(I.content,b,v)};
l._parseTemplateNode=function(I,b,v){var M=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(b.hasInsertionPoint=!0):M=this._parseTemplateNestedTemplate(I,b,v)||M;if(!KMj){KMj=!0;var x=document.createElement("textarea");x.placeholder="a";tS0=x.placeholder===x.textContent}tS0&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,b,v);I.hasAttributes&&I.hasAttributes()&&(M=this._parseTemplateNodeAttributes(I,
b,v)||M);return M||v.noted};
l._parseTemplateChildNodes=function(I,b,v){if(I.localName!=="script"&&I.localName!=="style")for(var M=I.firstChild,x=0,g;M;M=g){if(M.localName=="template"){var G=M.getAttribute("is");if(G&&mFw[G])for(g=M,g.removeAttribute("is"),M=g.ownerDocument.createElement(G),g.parentNode.replaceChild(M,g),M.appendChild(g);g.attributes.length;)G=g.attributes[0].name,Bgw(M,g,G),g.removeAttribute(G)}g=M.nextSibling;if(M.nodeType===Node.TEXT_NODE){for(G=g;G&&G.nodeType===Node.TEXT_NODE;)M.textContent+=G.textContent,
g=G.nextSibling,I.removeChild(G),G=g;if(b.stripWhiteSpace&&!M.textContent.trim()){I.removeChild(M);continue}}G={parentIndex:x,parentInfo:v};this._parseTemplateNode(M,b,G)&&(G.infoIndex=b.nodeInfoList.push(G)-1);M.parentNode&&x++}};
l._parseTemplateNestedTemplate=function(I,b,v){b=this._parseTemplate(I,b);(b.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);v.templateInfo=b;return!0};
l._parseTemplateNodeAttributes=function(I,b,v){for(var M=!1,x=Array.from(I.attributes),g=x.length-1,G;G=x[g];g--)M=this._parseTemplateNodeAttribute(I,b,v,G.name,G.value)||M;return M};
l._parseTemplateNodeAttribute=function(I,b,v,M,x){return M.slice(0,3)==="on-"?(I.removeAttribute(M),v.events=v.events||[],v.events.push({name:M.slice(3),value:x}),!0):M==="id"?(v.id=x,!0):!1};
l._contentForTemplate=function(I){var b=I._templateInfo;return b&&b.content||I.content};
l.prototype._stampTemplate=function(I,b){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);b=b||this.constructor._parseTemplate(I);var v=b.nodeInfoList;I=document.importNode(b.content||I.content,!0);I.__noInsertionPoint=!b.hasInsertionPoint;var M=I.nodeList=Array(v.length);I.$={};for(var x=0,g=v.length,G=void 0;x<g&&(G=v[x]);x++){var u=M[x]=pJk(I,G);G.id&&(I.$[G.id]=u);var Z=u,H=G,y=b;H.templateInfo&&(Z._templateInfo=H.templateInfo,Z._parentTemplateInfo=
y);if(G.events&&G.events.length)for(Z=0,H=G.events,y=void 0;Z<H.length&&(y=H[Z]);Z++)this._addMethodEventListenerToNode(u,y.name,y.value,this)}return I};
l.prototype._addMethodEventListenerToNode=function(I,b,v,M){v=DNS(M||I,v);this._addEventListenerToNode(I,b,v);return v};
l.prototype._addEventListenerToNode=function(I,b,v){I.addEventListener(b,v)};
l.prototype._removeEventListenerFromNode=function(I,b,v){I.removeEventListener(b,v)};
return l});var RK=0,BC=[],qp_={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},icw=/[A-Z]/,FMj=function(z,l,I,b,v){var M=v?ZA(z):z;if(l=l[M])for(M=0;M<l.length;M++){var x=l[M];if(x.info.lastRun!==RK&&(!v||E1$(z,x.trigger))){x.info.lastRun=RK;x=x.info;for(var g=I,G=b,u=0,Z=g.length-1,H=-1;u<=Z;){var y=u+Z>>1,f=G.get(g[y].methodInfo)-G.get(x.methodInfo);if(f<0)u=y+1;else if(f>0)Z=y-1;else{H=y;break}}H<
0&&(H=Z+1);g.splice(H,0,x)}}},iIu=[],Qhj=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"),yw=Zj(function(z){var l=XgA(Rv_(z));
z=function(){var I=l.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.m(z,l);z.prototype._initializeProperties=function(){l.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
z.prototype._registerHost=function(){if(HK.length){var I=HK[HK.length-1];I._enqueueClient(this);this.__dataHost=I}};
z.prototype._initializeProtoProperties=function(I){this.__data=Object.create(I);this.__dataPending=Object.create(I);this.__dataOld={}};
z.prototype._initializeInstanceProperties=function(I){var b=this.__readOnly,v;for(v in I)b&&b[v]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[v]=this.__dataPending[v]=I[v])};
z.prototype._addPropertyEffect=function(I,b,v){this._createPropertyAccessor(I,b=="__readOnly");var M=NxH(this,b,!0)[I];M||(M=this[b][I]=[]);M.push(v)};
z.prototype._removePropertyEffect=function(I,b,v){I=NxH(this,b,!0)[I];v=I.indexOf(v);v>=0&&I.splice(v,1)};
z.prototype._hasPropertyEffect=function(I,b){b=this[b];return!(!b||!b[I])};
z.prototype._hasReadOnlyEffect=function(I){return this._hasPropertyEffect(I,"__readOnly")};
z.prototype._hasNotifyEffect=function(I){return this._hasPropertyEffect(I,"__notifyEffects")};
z.prototype._hasReflectEffect=function(I){return this._hasPropertyEffect(I,"__reflectEffects")};
z.prototype._hasComputedEffect=function(I){return this._hasPropertyEffect(I,"__computeEffects")};
z.prototype._setPendingPropertyOrPath=function(I,b,v,M){if(M||ZA(Array.isArray(I)?I[0]:I)!==I){if(!M&&(M=kF(this,I),I=GYS(this,I,b),!I||!l.prototype._shouldPropertyChange.call(this,I,b,M)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,b,v)){if(v=this.__dataLinkedPaths)for(var x in v)M=v[x],HC(x,I)?(M=yd(x,M,I),this._setPendingPropertyOrPath(M,b,!0,!0)):HC(M,I)&&(M=yd(M,x,I),this._setPendingPropertyOrPath(M,b,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
b,v);this[I]=b}return!1};
z.prototype._setUnmanagedPropertyToNode=function(I,b,v){if(v!==I[b]||typeof v=="object")b==="className"&&(I=(0,_.Ks)(I)),I[b]=v};
z.prototype._setPendingProperty=function(I,b,v){var M=this.__dataHasPaths&&uq(I);if(this._shouldPropertyChange(I,b,(M?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);M?this.__dataTemp[I]=b:this.__data[I]=b;this.__dataPending[I]=b;if(M||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=v;return!0}return!1};
z.prototype._setProperty=function(I,b){this._setPendingProperty(I,b,!0)&&this._invalidateProperties()};
z.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
z.prototype._enqueueClient=function(I){this.__dataPendingClients=this.__dataPendingClients||[];I!==this&&this.__dataPendingClients.push(I)};
z.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
z.prototype.__enableOrFlushClients=function(){var I=this.__dataPendingClients;if(I){this.__dataPendingClients=null;for(var b=0;b<I.length;b++){var v=I[b];v.__dataEnabled?v.__dataPending&&v._flushProperties():v._enableProperties()}}};
z.prototype._readyClients=function(){this.__enableOrFlushClients()};
z.prototype.setProperties=function(I,b){for(var v in I)!b&&this.__readOnly&&this.__readOnly[v]||this._setPendingPropertyOrPath(v,I[v],!0);this._invalidateProperties()};
z.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
z.prototype._propertiesChanged=function(I,b,v){I=this.__dataHasPaths;this.__dataHasPaths=!1;var M;if(M=this.__computeEffects)if(vwI){RK++;var x=C9H(this),g=[],G;for(G in b)FMj(G,M,g,x,I);for(;G=g.shift();)RVQ(this,"",b,v,G)&&FMj(G.methodInfo,M,g,x,I);Object.assign(v,this.__dataOld);Object.assign(b,this.__dataPending);this.__dataPending=null}else for(x=b;mI(this,M,x,v,I);)Object.assign(v,this.__dataOld),Object.assign(b,this.__dataPending),x=this.__dataPending,this.__dataPending=null;M=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(b,v,I);this._flushClients();mI(this,this.__reflectEffects,b,v,I);mI(this,this.__observeEffects,b,v,I);if(M){x=this.__notifyEffects;g=RK++;for(var u in M)if(M[u]){if(G=x){var Z=x;G=g;var H=u,y=b,f=v,R=I,F=!1,Y=R?ZA(H):H;if(Z=Z[Y]){Y=0;for(var c=Z.length,d=void 0;Y<c&&(d=Z[Y]);Y++)d.info&&d.info.lastRun===G||R&&!E1$(H,d.trigger)||(d.info&&(d.info.lastRun=G),d.fn(this,H,y,f,d.info,R,void 0),F=!0)}G=F}if(G)var V=!0;else{if(G=I)G=u,H=b,y=ZA(G),y!==
G?(y=Ed(y)+"-changed",ZI7(this,y,H[G],G),G=!0):G=!1;G&&(V=!0)}}var A;V&&(A=this.__dataHost)&&A._invalidateProperties&&A._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
z.prototype._propagatePropertyChanges=function(I,b,v){this.__propagateEffects&&mI(this,this.__propagateEffects,I,b,v);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,b,v)};
z.prototype._runEffectsForTemplate=function(I,b,v,M){var x=this,g=function(G,u){mI(x,I.propertyEffects,G,v,u,I.nodeList);for(var Z=I.firstChild;Z;Z=Z.nextSibling)x._runEffectsForTemplate(Z,G,v,u)};
I.runEffects?I.runEffects(g,b,M):g(b,M)};
z.prototype.linkPaths=function(I,b){I=Cs(I);b=Cs(b);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=b};
z.prototype.unlinkPaths=function(I){I=Cs(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
z.prototype.notifySplices=function(I,b){var v={path:""};I=kF(this,I,v);Txu(this,I,v.path,b)};
z.prototype.get=function(I,b){return kF(b||this,I)};
z.prototype.set=function(I,b,v){v?GYS(v,I,b):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,b,!0)&&this._invalidateProperties()};
z.prototype.push=function(I){var b=_.AT.apply(1,arguments),v={path:""},M=kF(this,I,v),x=M.length,g=M.push.apply(M,_.ht(b));b.length&&qh(this,M,v.path,x,b.length,[]);return g};
z.prototype.pop=function(I){var b={path:""};I=kF(this,I,b);var v=!!I.length,M=I.pop();v&&qh(this,I,b.path,I.length,0,[M]);return M};
z.prototype.splice=function(I,b,v){var M=_.AT.apply(3,arguments),x={path:""},g=kF(this,I,x);b<0?b=g.length-Math.floor(-b):b&&(b=Math.floor(b));var G=arguments.length===2?g.splice(b):g.splice.apply(g,[b,v].concat(_.ht(M)));(M.length||G.length)&&qh(this,g,x.path,b,M.length,G);return G};
z.prototype.shift=function(I){var b={path:""};I=kF(this,I,b);var v=!!I.length,M=I.shift();v&&qh(this,I,b.path,0,0,[M]);return M};
z.prototype.unshift=function(I){var b=_.AT.apply(1,arguments),v={path:""},M=kF(this,I,v),x=M.unshift.apply(M,_.ht(b));b.length&&qh(this,M,v.path,0,b.length,[]);return x};
z.prototype.notifyPath=function(I,b){if(arguments.length==1){var v={path:""};b=kF(this,I,v);v=v.path}else v=Array.isArray(I)?Cs(I):I;this._setPendingPropertyOrPath(v,b,!0,!0)&&this._invalidateProperties()};
z.prototype._createReadOnlyProperty=function(I,b){this._addPropertyEffect(I,"__readOnly");b&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(v){this._setProperty(I,v)})};
z.prototype._createPropertyObserver=function(I,b,v){var M={property:I,method:b,dynamicFn:!!v};this._addPropertyEffect(I,"__observeEffects",{fn:uIt,info:M,trigger:{name:I}});v&&this._addPropertyEffect(b,"__observeEffects",{fn:uIt,info:M,trigger:{name:b}})};
z.prototype._createMethodObserver=function(I,b){var v=QU7(I);if(!v)throw Error("Dd`"+I);XJG(this,v,"__observeEffects",kY$,null,b)};
z.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:HIQ,info:{eventName:Ed(I)+"-changed",property:I}})};
z.prototype._createReflectedProperty=function(I){var b=this.constructor.attributeNameForProperty(I);b[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+b+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:yfu,info:{attrName:b}})};
z.prototype._createComputedProperty=function(I,b,v){var M=QU7(b);if(!M)throw Error("Ed`"+b);b=XJG(this,M,"__computeEffects",RVQ,I,v);NxH(this,"__computeInfo")[I]=b};
z.prototype._marshalArgs=function(I,b,v){for(var M=this.__data,x=[],g=0,G=I.length;g<G;g++){var u=I[g],Z=u.name,H=u.structured,y=u.wildcard,f=u.value;u.literal||(y?(u=HC(Z,b),H=Y2Q(M,v,u?b:Z),f={path:u?b:Z,value:H,base:u?kF(M,Z):H}):f=H?Y2Q(M,v,Z):M[Z]);if(XY&&!this._overrideLegacyUndefined&&f===void 0&&I.length>1)return BC;x[g]=f}return x};
z.addPropertyEffect=function(I,b,v){this.prototype._addPropertyEffect(I,b,v)};
z.createPropertyObserver=function(I,b,v){this.prototype._createPropertyObserver(I,b,v)};
z.createMethodObserver=function(I,b){this.prototype._createMethodObserver(I,b)};
z.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
z.createReadOnlyProperty=function(I,b){this.prototype._createReadOnlyProperty(I,b)};
z.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
z.createComputedProperty=function(I,b,v){this.prototype._createComputedProperty(I,b,v)};
z.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
z.prototype._bindTemplate=function(I,b){var v=this.constructor._parseTemplate(I),M=this.__preBoundTemplateInfo==v;if(!M)for(var x in v.propertyEffects)this._createPropertyAccessor(x);b?(v=Object.create(v),v.wasPreBound=M,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,b=I.lastChild,v.parent=I,I.lastChild=v,(v.previousSibling=b)?b.nextSibling=v:I.firstChild=v):this.__templateInfo=v):this.__preBoundTemplateInfo=v;return v};
z._addTemplatePropertyEffect=function(I,b,v){(I.hostProps=I.hostProps||{})[b]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[b]=I[b]||[]).push(v)};
z.prototype._stampTemplate=function(I,b){b=b||this._bindTemplate(I,!0);HK.push(this);I=l.prototype._stampTemplate.call(this,I,b);HK.pop();b.nodeList=I.nodeList;if(!b.wasPreBound)for(var v=b.childNodes=[],M=I.firstChild;M;M=M.nextSibling)v.push(M);I.templateInfo=b;v=b.nodeList;M=b.nodeInfoList;if(M.length)for(var x=0;x<M.length;x++){var g=v[x],G=M[x].bindings;if(G)for(var u=0;u<G.length;u++){var Z=G[u],H=g,y=Z;if(y.isCompound){for(var f=H.__dataCompoundStorage||(H.__dataCompoundStorage={}),R=y.parts,
F=Array(R.length),Y=0;Y<R.length;Y++)F[Y]=R[Y].literal;R=y.target;f[R]=F;y.literal&&y.kind=="property"&&(R==="className"&&(H=(0,_.Ks)(H)),H[R]=y.literal)}Bxx(g,this,Z)}g.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(b,this.__data,null,!1),this._flushClients());return I};
z.prototype._removeBoundDom=function(I){I=I.templateInfo;var b=I.previousSibling,v=I.nextSibling,M=I.parent;b?b.nextSibling=v:M&&(M.firstChild=v);v?v.previousSibling=b:M&&(M.lastChild=b);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(b=0;b<I.length;b++)v=I[b],(0,_.Ks)((0,_.Ks)(v).parentNode).removeChild(v)};
z._parseTemplateNode=function(I,b,v){var M=l._parseTemplateNode.call(this,I,b,v);if(I.nodeType===Node.TEXT_NODE){var x=this._parseBindings(I.textContent,b);x&&(I.textContent=q21(x)||" ",tKQ(this,b,v,"text","textContent",x),M=!0)}return M};
z._parseTemplateNodeAttribute=function(I,b,v,M,x){var g=this._parseBindings(x,b);if(g){x=M;var G="property";icw.test(M)?G="attribute":M[M.length-1]=="$"&&(M=M.slice(0,-1),G="attribute");var u=q21(g);u&&G=="attribute"&&(M=="class"&&I.hasAttribute("class")&&(u+=" "+I.getAttribute(M)),I.setAttribute(M,u));G=="attribute"&&x=="disable-upgrade$"&&I.setAttribute(M,"");I.localName==="input"&&x==="value"&&I.setAttribute(x,"");I.removeAttribute(x);G==="property"&&(M=Nh(M));tKQ(this,b,v,G,M,g,u);return!0}return l._parseTemplateNodeAttribute.call(this,
I,b,v,M,x)};
z._parseTemplateNestedTemplate=function(I,b,v){var M=l._parseTemplateNestedTemplate.call(this,I,b,v),x=I.parentNode,g=v.templateInfo,G=x.localName==="dom-if",u=x.localName==="dom-repeat";g7&&(G||u)&&(x.removeChild(I),v=v.parentInfo,v.templateInfo=g,v.noted=!0,M=!1);I=g.hostProps;if(GC&&G)I&&(b.hostProps=Object.assign(b.hostProps||{},I),g7||(v.parentInfo.noted=!0));else for(var Z in I)tKQ(this,b,v,"property","_host_"+Z,[{mode:"{",source:Z,dependencies:[Z],hostProp:!0}]);return M};
z._parseBindings=function(I,b){for(var v=[],M=0,x;(x=Qhj.exec(I))!==null;){x.index>M&&v.push({literal:I.slice(M,x.index)});M=x[1][0];var g=!!x[2];x=x[3].trim();var G=!1,u="",Z=-1;M=="{"&&(Z=x.indexOf("::"))>0&&(u=x.substring(Z+2),x=x.substring(0,Z),G=!0);Z=QU7(x);var H=[];if(Z){var y=Z,f=y.args;y=y.methodName;for(var R=0;R<f.length;R++){var F=f[R];F.literal||H.push(F)}if((f=b.dynamicFns)&&f[y]||Z.static)H.push(y),Z.dynamicFn=!0}else H.push(x);v.push({source:x,mode:M,negate:g,customEvent:G,signature:Z,
dependencies:H,event:u});M=Qhj.lastIndex}M&&M<I.length&&(I=I.substring(M))&&v.push({literal:I});return v.length?v:null};
z._evaluateBinding=function(I,b,v,M,x,g){I=b.signature?kY$(I,v,M,x,b.signature):v!=b.source?kF(I,b.source):g&&uq(v)?kF(I,v):I.__data[v];b.negate&&(I=!I);return I};
_.vP.Object.defineProperties(z.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return qp_}}});
return z}),HK=[];var Ypj=window.ShadyCSS&&window.ShadyCSS.cssBuild,fk=Zj(function(z){function l(b,v,M,x){if(!Ypj){for(var g=v.content.querySelectorAll("style"),G=o1$(v),u=P9x(M),Z=v.content.firstElementChild,H=0;H<u.length;H++){var y=u[H];y.textContent=b._processStyleText(y.textContent,x);v.content.insertBefore(y,Z)}for(Z=u=0;Z<G.length;Z++)H=G[Z],y=g[u],y!==H?(H=H.cloneNode(!0),y.parentNode.insertBefore(H,y)):u++,H.textContent=b._processStyleText(H.textContent,x)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(v,
M);if(pg_&&Ypj&&zv0&&(v=v.content.querySelectorAll("style"))){var f="";Array.from(v).forEach(function(R){f+=R.textContent;R.parentNode.removeChild(R)});
b._styleSheet=new CSSStyleSheet;b._styleSheet.replaceSync(f)}}
var I=Zcw(yw(z));z=function(){return I.call(this)||this};
_.m(z,I);z._finalizeClass=function(){I._finalizeClass.call(this);var b;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(b=this.__ownObservers)&&this.createObservers(b,this._properties);this._prepareTemplate()};
z._prepareTemplate=function(){var b=this.template;b&&(typeof b==="string"?(console.error("template getter must return HTMLTemplateElement"),b=null):wS||(b=b.cloneNode(!0)));this.prototype._template=b};
z.createProperties=function(b){for(var v in b){var M=this.prototype,x=v,g=b[v],G=b;g.computed&&(g.readOnly=!0);g.computed&&(M._hasReadOnlyEffect(x)?console.warn("Cannot redefine computed property '"+x+"'."):M._createComputedProperty(x,g.computed,G));g.readOnly&&!M._hasReadOnlyEffect(x)?M._createReadOnlyProperty(x,!g.computed):g.readOnly===!1&&M._hasReadOnlyEffect(x)&&console.warn("Cannot make readOnly property '"+x+"' non-readOnly.");g.reflectToAttribute&&!M._hasReflectEffect(x)?M._createReflectedProperty(x):
g.reflectToAttribute===!1&&M._hasReflectEffect(x)&&console.warn("Cannot make reflected property '"+x+"' non-reflected.");g.notify&&!M._hasNotifyEffect(x)?M._createNotifyingProperty(x):g.notify===!1&&M._hasNotifyEffect(x)&&console.warn("Cannot make notify property '"+x+"' non-notify.");g.observer&&M._createPropertyObserver(x,g.observer,G[g.observer]);M._addPropertyToAttributeMap(x)}};
z.createObservers=function(b,v){for(var M=this.prototype,x=0;x<b.length;x++)M._createMethodObserver(b[x],v)};
z.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=lp0;this.importPath=this.constructor.importPath;var b=this.constructor;if(!b.hasOwnProperty("__propertyDefaults")){b.__propertyDefaults=null;var v=b._properties,M;for(M in v){var x=v[M];"value"in x&&(b.__propertyDefaults=b.__propertyDefaults||{},b.__propertyDefaults[M]=x)}}if(b=b.__propertyDefaults)for(var g in b)v=b[g],
this._canApplyPropertyDefault(g)&&(v=typeof v.value=="function"?v.value.call(this):v.value,this._hasAccessor(g)?this._setPendingProperty(g,v,!0):this[g]=v)};
z.prototype._canApplyPropertyDefault=function(b){return!this.hasOwnProperty(b)};
z._processStyleText=function(b,v){return a6Y(b,v)};
z._finalizeTemplate=function(b){var v=this.prototype._template;if(v&&!v.__polymerFinalized){v.__polymerFinalized=!0;var M=this.importPath;M=M?_.gS(M):"";l(this,v,b,M);this.prototype._bindTemplate(v)}};
z.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);I.prototype.connectedCallback.call(this)};
z.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);I.prototype.ready.call(this)};
z.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));I.prototype._readyClients.call(this)};
z.prototype._attachDom=function(b){var v=(0,_.Ks)(this);if(v.attachShadow)return b?(v.shadowRoot||(v.attachShadow({mode:"open",shadyUpgradeFragment:b}),v.shadowRoot.appendChild(b),this.constructor._styleSheet&&(v.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),bcA&&window.ShadyDOM&&window.ShadyDOM.flushInitial(v.shadowRoot),v.shadowRoot):null;throw Error("Gd");};
z.prototype.updateStyles=function(b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,b)};
z.prototype.resolveUrl=function(b,v){!v&&this.importPath&&(v=_.gS(this.importPath));return _.gS(b,v)};
z._parseTemplateContent=function(b,v,M){v.dynamicFns=v.dynamicFns||this._properties;return I._parseTemplateContent.call(this,b,v,M)};
z._addTemplatePropertyEffect=function(b,v,M){!Ls||v in this._properties||M.info.part.signature&&M.info.part.signature.static||M.info.part.hostProp||b.nestedTemplate||console.warn("Property '"+v+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,b,v,M)};
_.vP.Object.defineProperties(z,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var b=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof b==="function"&&(b=b());if(b===void 0){if(b=this.hasOwnProperty("is")){b=this.is;var v=null;if(b&&(!Ud||Ip_)&&(v=iq.import(b,"template"),Ud&&!v))throw Error("Fd`"+b);b=v}b=b||Object.getPrototypeOf(this.prototype).constructor.template}this._template=b}return this._template},
set:function(b){this._template=b}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var b=this.importMeta;b?this._importPath=V2H(b.url):this._importPath=(b=iq.import(this.is))&&b.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return z});var Tgp=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(z){return z}}),AfQ=function(z,l){cm_(z,l);
this.value=l.reduce(function(I,b,v){return I+WOQ(b)+z[v+1]},z[0]).toString()},cm_;
AfQ.prototype.toString=function(){return this.value};
_.Spu=function(z){var l=_.AT.apply(1,arguments);cm_(z,l);var I=document.createElement("template");l=l.reduce(function(b,v,M){if(v instanceof HTMLTemplateElement)v=v.innerHTML;else if(v instanceof AfQ)v=WOQ(v);else throw Error("Id`"+v);return b+v+z[M+1]},z[0]);
Tgp&&(l=Tgp.createHTML(l));I.innerHTML=l;return I};
cm_=function(z,l){if(!Array.isArray(z)||!Array.isArray(z.raw)||l.length!==z.length-1)throw new TypeError("Jd");};var Ck=fk(HTMLElement);var dFu=Zj(function(z){var l=fk(z);z=function(){var I=l.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.m(z,l);z.prototype.__updateSelection=function(I,b){var v=b.path;v=="items"?(b=b.base||[],v=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),v&&(v=wJH(b,v),this.__applySplices(v)),this.__lastItems=b,this.__lastMulti=I):b.path=="items.splices"?this.__applySplices(b.value.indexSplices):(I=v.slice(6),b=parseInt(I,10),I.indexOf(".")<0&&I==b&&this.__deselectChangedIdx(b))};
z.prototype.__applySplices=function(I){for(var b=this,v=this.__selectedMap,M={},x=0;x<I.length;M={s$jscomp$109:void 0},x++){M.s$jscomp$109=I[x];v.forEach(function(Z){return function(H,y){H<Z.s$jscomp$109.index||(H>=Z.s$jscomp$109.index+Z.s$jscomp$109.removed.length?v.set(y,H+Z.s$jscomp$109.addedCount-Z.s$jscomp$109.removed.length):v.set(y,-1))}}(M));
for(var g=0;g<M.s$jscomp$109.addedCount;g++){var G=M.s$jscomp$109.index+g;v.has(this.items[G])&&v.set(this.items[G],G)}}this.__updateLinks();var u=0;v.forEach(function(Z,H){Z<0?(b.multi?b.splice("selected",u,1):b.selected=b.selectedItem=null,v.delete(H)):u++})};
z.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var b=0;this.__selectedMap.forEach(function(v){v>=0&&I.linkPaths("items."+v,"selected."+b++)})}else this.__selectedMap.forEach(function(v){I.linkPaths("selected","items."+v);
I.linkPaths("selectedItem","items."+v)})};
z.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
z.prototype.isSelected=function(I){return this.__selectedMap.has(I)};
z.prototype.isIndexSelected=function(I){return this.isSelected(this.items[I])};
z.prototype.__deselectChangedIdx=function(I){var b=this,v=this.__selectedIndexForItemIndex(I);if(v>=0){var M=0;this.__selectedMap.forEach(function(x,g){v==M++&&b.deselect(g)})}};
z.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
z.prototype.deselect=function(I){var b=this.__selectedMap.get(I);if(b>=0){this.__selectedMap.delete(I);var v;this.multi&&(v=this.__selectedIndexForItemIndex(b));this.__updateLinks();this.multi?this.splice("selected",v,1):this.selected=this.selectedItem=null}};
z.prototype.deselectIndex=function(I){this.deselect(this.items[I])};
z.prototype.select=function(I){this.selectIndex(this.items.indexOf(I))};
z.prototype.selectIndex=function(I){var b=this.items[I];this.isSelected(b)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(b,I),this.__updateLinks(),this.multi?this.push("selected",b):this.selected=this.selectedItem=b)};
_.vP.Object.defineProperties(z,{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 z}),owu=dFu(Ck),k4=function(){return owu.apply(this,arguments)||this};
_.m(k4,owu);_.vP.Object.defineProperties(k4,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(k4.is,k4);var Pi4=window.Polymer;window.Polymer=function(z){return window.Polymer._polymerFn(z)};
Pi4&&Object.assign(Polymer,Pi4);Polymer._polymerFn=function(){throw Error("Kd");};/*

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:a6Y,resolveUrl:_.gS,pathFromUrl:V2H};Polymer.DomModule=iq;Polymer.Async={timeOut:_.ug,animationFrame:_.oe,idlePeriod:GZu,microTask:$F};Polymer.dedupingMixin=Zj;Polymer.wrap=_.Ks;Polymer.PropertiesChanged=Ew_;Polymer.telemetry={instanceCount:usA,incrementInstanceCount:function(){usA++},
registrations:lqu,register:Iq$,dumpRegistrations:function(){lqu.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Zcw;Polymer.CaseMap={dashToCamelCase:Nh,camelToDashCase:Ed};Polymer.PropertyAccessors=Rv_;Polymer.TemplateStamp=XgA;Polymer.Path={isPath:uq,root:ZA,isAncestor:xNu,isDescendant:HC,translate:yd,matches:OI$,normalize:Cs,split:g1S,get:kF,set:GYS,isDeep:uq};Polymer.Settings={useShadow:Ae,useNativeCSSProperties:UuA,useNativeCustomElements:aEj,get rootPath(){return lp0},setRootPath:function(z){lp0=z},
get sanitizeDOMValue(){return te},setSanitizeDOMValue:function(z){te=z},
get passiveTouchGestures(){return MyH},setPassiveTouchGestures:function(z){MyH=z},
get strictTemplatePolicy(){return Ud},setStrictTemplatePolicy:function(z){Ud=z},
get allowTemplateFromDomModule(){return Ip_},setAllowTemplateFromDomModule:function(z){Ip_=z},
get legacyOptimizations(){return wS},setLegacyOptimizations:function(z){wS=z},
get syncInitialRender(){return bcA},setSyncInitialRender:function(z){bcA=z},
get legacyUndefined(){return XY},setLegacyUndefined:function(z){XY=z},
get legacyWarnings(){return Ls},setLegacyWarnings:function(z){Ls=z},
get orderedComputed(){return vwI},setOrderedComputed:function(z){vwI=z},
get fastDomIf(){return GC},setFastDomIf:function(z){GC=z},
get removeNestedTemplates(){return g7},setRemoveNestedTemplates:function(z){g7=z},
get suppressTemplateNotifications(){return Nl},setSuppressTemplateNotifications:Nl};Polymer.rootPath!==void 0&&(lp0=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(te=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(MyH=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Ud=Polymer.strictTemplatePolicy);Ip_=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(wS=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(bcA=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(XY=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Ls=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(vwI=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(GC=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(g7=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Nl=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return te},
set:function(z){te=z}});Polymer.PropertyEffects=yw;Polymer.StyleGather={stylesFromModules:dNt,stylesFromModule:S2k,stylesFromTemplate:o1$,stylesFromModuleImports:P9x,cssFromModules:sUQ,cssFromModule:hV1,cssFromTemplate:rfH,cssFromModuleImports:function(z){return(z=iq.import(z))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z):""}};Polymer.ElementMixin=fk;Polymer.updateStyles=function(z){window.ShadyCSS&&window.ShadyCSS.styleDocument(z)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:wJH};Polymer.html=_.Spu;Polymer.htmlLiteral=function(z){return new AfQ(z,_.AT.apply(1,arguments))};Polymer.Element=Ck;Polymer.ArraySelectorMixin=dFu;Polymer.ArraySelector=k4;var hvw=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,sh_=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ByG=/@media\s(.*)/;var aq5=null,UNt=window.HTMLImports&&window.HTMLImports.whenReady||null,VKf;var rmI=null,R5=null,m1=function(){this.customStyles=[];this.enqueued=!1;jUx(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$F0=function(z){!z.enqueued&&R5&&(z.enqueued=!0,jUx(R5))};
m1.prototype.addCustomStyle=function(z){z.__seenByShadyCSS||(z.__seenByShadyCSS=!0,this.customStyles.push(z),$F0(this))};
m1.prototype.getStyleForCustomStyle=function(z){if(z.__shadyCSSCachedStyle)return z.__shadyCSSCachedStyle;var l;z.getStyle?l=z.getStyle():l=z;return l};
m1.prototype.processStyles=function(){for(var z=this.customStyles,l=0;l<z.length;l++){var I=z[l];if(!I.__shadyCSSCachedStyle){var b=this.getStyleForCustomStyle(I);b&&(b=b.__appliedElement||b,rmI&&rmI(b),I.__shadyCSSCachedStyle=b)}}return z};
m1.prototype.addCustomStyle=m1.prototype.addCustomStyle;m1.prototype.getStyleForCustomStyle=m1.prototype.getStyleForCustomStyle;m1.prototype.processStyles=m1.prototype.processStyles;Object.defineProperties(m1.prototype,{transformCallback:{get:function(){return rmI},
set:function(z){rmI=z}},
validateCallback:{get:function(){return R5},
set:function(z){var l=!1;R5||(l=!0);R5=z;l&&$F0(this)}}});var zhG=!(window.ShadyDOM&&window.ShadyDOM.inUse),Jfk,bM;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(bM=window.ShadyCSS.cssBuild);var evn=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Jfk=window.ShadyCSS.nativeCss:window.ShadyCSS?(lsu(window.ShadyCSS),window.ShadyCSS=void 0):lsu(window.WebComponents&&window.WebComponents.flags);var miS=Jfk;var wgI=new m1;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(z,l){wgI.processStyles();n17(z,l)},
styleElement:function(){wgI.processStyles()},
styleDocument:function(z){wgI.processStyles();n17(document.body,z)},
getComputedStyleValue:function(z,l){return LOx(z,l)},
flushCustomStyles:function(){},
nativeCss:miS,nativeShadow:zhG,cssBuild:bM,disableRuntime:evn});window.ShadyCSS.CustomStyleInterface=wgI;var Amn=window.ShadyCSS.CustomStyleInterface,Kk=function(){var z=HTMLElement.call(this)||this;z._style=null;Amn.addCustomStyle(z);return z};
_.m(Kk,HTMLElement);Kk.prototype.getStyle=function(){if(this._style)return this._style;var z=this.querySelector("style");if(!z)return null;this._style=z;var l=z.getAttribute("include");l&&(z.removeAttribute("include"),z.textContent=sUQ(l)+z.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Kk.prototype.getStyle=Kk.prototype.getStyle;window.customElements.define("custom-style",Kk);Polymer.CustomStyle=Kk;var tv=function(){this._timer=this._callback=this._asyncModule=null},BK,nww;
tv.prototype.setConfig=function(z,l){var I=this;this._asyncModule=z;this._callback=l;this._timer=this._asyncModule.run(function(){I._timer=null;BK.delete(I);I._callback()})};
tv.prototype.cancel=function(){this.isActive()&&(WM_(this),BK.delete(this))};
var WM_=function(z){z.isActive()&&(z._asyncModule.cancel(z._timer),z._timer=null)};
tv.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
tv.prototype.isActive=function(){return this._timer!=null};
_.Xb=function(z,l,I){z instanceof tv?WM_(z):z=new tv;z.setConfig(l,I);return z};
BK=new Set;_.ql=function(z){BK.add(z)};
nww=function(){var z=!!BK.size;BK.forEach(function(l){try{l.flush()}catch(I){setTimeout(function(){throw I;})}});
return z};var bO1=typeof document.head.style.touchAction==="string",Isf=["mousedown","mousemove","mouseup","click"],NGY=[0,1,4,2],LMj;try{LMj=(new MouseEvent("test",{buttons:1})).buttons===1}catch(z){LMj=!1}var Gsx=LMj,vxH=!1;(function(){try{var z=Object.defineProperty({},"passive",{get:function(){vxH=!0}});
window.addEventListener("test",null,z);window.removeEventListener("test",null,z)}catch(l){}})();
var D5x=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),x5f=[],UFA={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},ty5={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},OOu=function(z){var l=z.sourceCapabilities;if(!l||l.firesTouchEvents)if(z.__polymerGesturesHandled={skip:!0},z.type==="click"){l=!1;for(var I=HOf(z),b=0;b<I.length;b++){if(I[b].nodeType===Node.ELEMENT_NODE)if(I[b].localName==="label")x5f.push(I[b]);
else if(UFA[I[b].localName]){var v=I[b];var M=Array.prototype.slice.call(v.labels||[]);if(!M.length){M=[];try{var x=v.getRootNode();if(v.id){var g=x.querySelectorAll("label[for = '"+v.id+"']");for(v=0;v<g.length;v++)M.push(g[v])}}catch(G){}}for(v=0;v<M.length;v++)l=l||x5f.indexOf(M[v])>-1}if(I[b]===apu)return}l||(z.preventDefault(),z.stopPropagation())}},apu=null,ig=null,fsY=0,CI7=0,yO7=-1,ksp=!1;
document.addEventListener("touchend",function(z){ig||gxu(!0);apu=HOf(z)[0];ig=_.Xb(ig,_.ug.after(2500),function(){gxu();ig=apu=null})},vxH?{passive:!0}:!1);
var HOf=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(z){return z.composedPath&&z.composedPath()||[]},dS={},cC=[];
RhQ({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){T1(this.info)},
mousedown:function(z){if(YF(z)){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z),I=this;ul1(this.info,function(b){YF(b)||(ej("up",l,b),T1(I.info))},function(b){YF(b)&&ej("up",l,b);
T1(I.info)});
ej("down",l,z)}},
touchstart:function(z){ej("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z),z.changedTouches[0],z)},
touchend:function(z){ej("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z),z.changedTouches[0],z)}});
RhQ({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(z){this.moves.length>2&&this.moves.shift();this.moves.push(z)},
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;T1(this.info)},
mousedown:function(z){if(YF(z)){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z),I=this,b=function(v){var M=v.clientX,x=v.clientY;m5$(I.info,M,x)&&(I.info.state=I.info.started?v.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&Sj("tap"),I.info.addMove({x:M,y:x}),YF(v)||(I.info.state="end",T1(I.info)),l&&Kxx(I.info,l,v),I.info.started=!0)};
ul1(this.info,b,function(v){I.info.started&&b(v);T1(I.info)});
this.info.x=z.clientX;this.info.y=z.clientY}},
touchstart:function(z){z=z.changedTouches[0];this.info.x=z.clientX;this.info.y=z.clientY},
touchmove:function(z){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z);z=z.changedTouches[0];var I=z.clientX,b=z.clientY;m5$(this.info,I,b)&&(this.info.state==="start"&&Sj("tap"),this.info.addMove({x:I,y:b}),Kxx(this.info,l,z),this.info.state="track",this.info.started=!0)},
touchend:function(z){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z);z=z.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:z.clientX,y:z.clientY}),Kxx(this.info,l,z))}});
RhQ({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(z){YF(z)&&(this.info.x=z.clientX,this.info.y=z.clientY)},
click:function(z){YF(z)&&BGQ(this.info,z)},
touchstart:function(z){z=z.changedTouches[0];this.info.x=z.clientX;this.info.y=z.clientY},
touchend:function(z){BGQ(this.info,z.changedTouches[0],z)}});var VSA=Zj(function(z){var l=function(){return z.apply(this,arguments)||this};
_.m(l,z);l.prototype._addEventListenerToNode=function(I,b,v){oK(I,b,v)||z.prototype._addEventListenerToNode.call(this,I,b,v)};
l.prototype._removeEventListenerFromNode=function(I,b,v){sd(I,b,v)||z.prototype._removeEventListenerFromNode.call(this,I,b,v)};
return l});var Fb=Zj(function(z){var l=function(){return z.apply(this,arguments)||this};
_.m(l,z);l.prototype._shouldPropertyChange=function(I,b,v){return Xxu(this,I,b,v,!0)};
return l}),jhI=Zj(function(z){var l=function(){return z.apply(this,arguments)||this};
_.m(l,z);l.prototype._shouldPropertyChange=function(I,b,v){return Xxu(this,I,b,v,this.mutableData)};
_.vP.Object.defineProperties(l,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return l});
Fb._mutablePropertyChange=Xxu;var q9S=!1;var Jmu=VSA(jhI(yw(HTMLElement))),Qw=function(){var z=Jmu.call(this)||this;if(Ud)throw Error("Ld");z.root=null;z.$=null;z.__children=null;return z};
_.m(Qw,Jmu);_.p=Qw.prototype;_.p.attributeChangedCallback=function(){this.mutableData=!0};
_.p.connectedCallback=function(){iOS()||(this.style.display="none");this.render()};
_.p.disconnectedCallback=function(){this.__removeChildren()};
_.p.__insertChildren=function(){(0,_.Ks)((0,_.Ks)(this).parentNode).insertBefore(this.root,this)};
_.p.__removeChildren=function(){if(this.__children)for(var z=0;z<this.__children.length;z++)this.root.appendChild(this.__children[z])};
_.p.render=function(){var z=this;if(!this.__children){var l=l||this.querySelector("template");if(!l){var I=new MutationObserver(function(){if(l=z.querySelector("template"))I.disconnect(),z.render();else throw Error("Md");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(l);this.$=this.root.$;this.__children=[];for(var b=this.root.firstChild;b;b=b.nextSibling)this.__children[this.__children.length]=b;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.vP.Object.defineProperties(Qw,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Qw);Polymer.Debouncer=tv;Polymer.Gestures={gestures:dS,recognizers:cC,deepTargetFind:ZOS,addListener:oK,removeListener:sd,register:RhQ,setTouchAction:_.rS,prevent:Sj,resetMouseCanceller:function(){ig&&ig.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:oK,remove:sd};Polymer.GestureEventListeners=VSA;Polymer.MutableData=Fb;Polymer.OptionalMutableData=jhI;Polymer.DomBind=Qw;_.Y4=function(){do{var z=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var l=nww()}while(z||l)};var FxS=null;QXQ.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:QXQ,writable:!0}});var hhk=yw(QXQ),PI1=Fb(hhk),zW4=yw(function(){}),WC=function(z){var l=zW4.call(this)||this;
l._configureProperties(z);l.root=l._stampTemplate(l.__dataHost);var I=[];l.children=I;for(var b=l.root.firstChild;b;b=b.nextSibling)I.push(b),b.__templatizeInstance=l;l.__templatizeOwner&&l.__templatizeOwner.__hideTemplateChildren__&&l._showHideChildren(!0);I=l.__templatizeOptions;(z&&I.instanceProps||!I.instanceProps)&&l._enableProperties();return l};
_.m(WC,zW4);_.p=WC.prototype;_.p._configureProperties=function(z){if(this.__templatizeOptions.forwardHostProp)for(var l in this.__hostProps)this._setPendingProperty(l,this.__dataHost["_host_"+l]);for(var I in z)this._setPendingProperty(I,z[I])};
_.p.forwardHostProp=function(z,l){this._setPendingPropertyOrPath(z,l,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.p._addEventListenerToNode=function(z,l,I){var b=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(z,l,function(M){M.model=b;I(M)});
else{var v=this.__dataHost.__dataHost;v&&v._addEventListenerToNode(z,l,I)}};
_.p._showHideChildren=function(z){TGt(z,this.children)};
_.p._setUnmanagedPropertyToNode=function(z,l,I){z.__hideTemplateChildren__&&z.nodeType==Node.TEXT_NODE&&l=="textContent"?z.__polymerTextContent__=I:zW4.prototype._setUnmanagedPropertyToNode.call(this,z,l,I)};
_.p.dispatchEvent=function(){return!0};
_.vP.Object.defineProperties(WC.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var z=this.__parentModel;if(!z){var l;z=this;do z=z.__dataHost.__dataHost;while((l=z.__templatizeOptions)&&!l.parentModel);this.__parentModel=z}return z}}});
var S9k=Fb(WC);var TC=function(){var z=Ck.call(this)||this;z.__renderDebouncer=null;z._lastIf=!1;z.__hideTemplateChildren__=!1;return z};
_.m(TC,Ck);_.p=TC.prototype;_.p.__debounceRender=function(){var z=this;this.__renderDebouncer=_.Xb(this.__renderDebouncer,$F,function(){return z.__render()});
_.ql(this.__renderDebouncer)};
_.p.disconnectedCallback=function(){Ck.prototype.disconnectedCallback.call(this);var z=(0,_.Ks)(this).parentNode;z&&(z.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Ks)(z).host)||this.__teardownInstance()};
_.p.connectedCallback=function(){Ck.prototype.connectedCallback.call(this);iOS()||(this.style.display="none");this.if&&this.__debounceRender()};
_.p.__ensureTemplate=function(){var z=this;if(!this.__template){var l=this._templateInfo?this:(0,_.Ks)(this).querySelector("template");if(!l){var I=new MutationObserver(function(){if((0,_.Ks)(z).querySelector("template"))I.disconnect(),z.__render();else throw Error("Pd");});
I.observe(this,{childList:!0});return!1}this.__template=l}return!0};
_.p.__ensureInstance=function(){var z=(0,_.Ks)(this).parentNode;if(this.__hasInstance()){var l=this.__getInstanceNodes();if(l&&l.length&&(0,_.Ks)(this).previousSibling!==l[l.length-1])for(var I=0,b=void 0;I<l.length&&(b=l[I]);I++)(0,_.Ks)(z).insertBefore(b,this)}else{if(!z||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(z)}return!0};
_.p.render=function(){_.Y4()};
_.p.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Nl&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.p.__hasInstance=function(){};
_.p.__getInstanceNodes=function(){};
_.p.__createAndInsertInstance=function(){};
_.p.__teardownInstance=function(){};
_.p._showHideChildren=function(){};
_.vP.Object.defineProperties(TC,{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:TC.prototype.__debounceRender},restamp:{type:Boolean,observer:TC.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var lk0=function(){var z=TC.call(this)||this;z.__instance=null;z.__syncInfo=null;return z};
_.m(lk0,TC);_.p=lk0.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.p.__createAndInsertInstance=function(z){var l=this,I=this.__dataHost||this;if(Ud&&!this.__dataHost)throw Error("Nd");var b=I._bindTemplate(this.__template,!0);b.runEffects=function(v,M,x){var g=l.__syncInfo;if(l.if)g&&(l.__syncInfo=null,l._showHideChildren(),M=Object.assign(g.changedProps,M)),v(M,x);else if(l.__instance)if(g||(g=l.__syncInfo={runEffects:v,changedProps:{}}),x)for(var G in M)v=ZA(G),g.changedProps[v]=l.__dataHost[v];else Object.assign(g.changedProps,M)};
this.__instance=I._stampTemplate(this.__template,b);(0,_.Ks)(z).insertBefore(this.__instance,this)};
_.p.__syncHostProperties=function(){var z=this.__syncInfo;z&&(this.__syncInfo=null,z.runEffects(z.changedProps,!1))};
_.p.__teardownInstance=function(){var z=this.__dataHost||this;this.__instance&&(z._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.p._showHideChildren=function(){var z=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==z&&(this.__instance.__hidden=z,TGt(z,this.__instance.templateInfo.childNodes));z||this.__syncHostProperties()};
var Ik0=function(){var z=TC.call(this)||this;z.__ctor=null;z.__instance=null;z.__invalidProps=null;return z};
_.m(Ik0,TC);_.p=Ik0.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.children};
_.p.__createAndInsertInstance=function(z){this.__ctor||(this.__ctor=ns(this.__template,this,{mutableData:!0,forwardHostProp:function(l,I){this.__instance&&(this.if?this.__instance.forwardHostProp(l,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ZA(l)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Ks)(z).insertBefore(this.__instance.root,this)};
_.p.__teardownInstance=function(){if(this.__instance){var z=this.__instance.children;if(z&&z.length){var l=(0,_.Ks)(z[0]).parentNode;if(l){l=(0,_.Ks)(l);for(var I=0,b=void 0;I<z.length&&(b=z[I]);I++)l.removeChild(b)}}this.__instance=this.__invalidProps=null}};
_.p.__syncHostProperties=function(){var z=this.__invalidProps;if(z){this.__invalidProps=null;for(var l in z)this.__instance._setPendingProperty(l,this.__dataHost[l]);this.__instance._flushProperties()}};
_.p._showHideChildren=function(){var z=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==z&&(this.__instance.__hidden=z,this.__instance._showHideChildren(z));z||this.__syncHostProperties()};
_.rc=GC?lk0:Ik0;customElements.define(_.rc.is,_.rc);Polymer.enqueueDebouncer=_.ql;Polymer.flush=_.Y4;Polymer.Templatize={templatize:ns,modelForElement:AOQ};Polymer.TemplateInstanceBase=WC;Polymer.DomIf=_.rc;var brI=jhI(Ck),sx=function(){var z=brI.call(this)||this;z.__instances=[];z.__renderDebouncer=null;z.__itemsIdxToInstIdx={};z.__chunkCount=null;z.__renderStartTime=null;z.__itemsArrayChanged=!1;z.__shouldMeasureChunk=!1;z.__shouldContinueChunking=!1;z.__chunkingId=0;z.__sortFn=null;z.__filterFn=null;z.__observePaths=null;z.__ctor=null;z.__isDetached=!0;z.template=null;return z};
_.m(sx,brI);_.p=sx.prototype;_.p.disconnectedCallback=function(){brI.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var z=0;z<this.__instances.length;z++)this.__detachInstance(z);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.p.connectedCallback=function(){brI.prototype.connectedCallback.call(this);iOS()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var z=(0,_.Ks)((0,_.Ks)(this).parentNode),l=0;l<this.__instances.length;l++)this.__attachInstance(l,z);this.__chunkingId&&this.__render()}};
_.p.__ensureTemplatized=function(){var z=this;if(!this.__ctor){var l=this.template=this._templateInfo?this:this.querySelector("template");if(!l){var I=new MutationObserver(function(){if(z.querySelector("template"))I.disconnect(),z.__render();else throw Error("Qd");});
I.observe(this,{childList:!0});return!1}var b={};b[this.as]=!0;b[this.indexAs]=!0;b[this.itemsIndexAs]=!0;this.__ctor=ns(l,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:b,forwardHostProp:function(v,M){for(var x=this.__instances,g=0,G=void 0;g<x.length&&(G=x[g]);g++)G.forwardHostProp(v,M)},
notifyInstanceProp:function(v,M,x){OI$(this.as,M)&&(v=v[this.itemsIndexAs],M==this.as&&(this.items[v]=x),M=yd(this.as,"items."+v,M),this.notifyPath(M,x))}})}return!0};
_.p.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.p.__functionFromPropertyValue=function(z){if(typeof z==="string"){var l=this.__getMethodHost();return function(){return l[z].apply(l,arguments)}}return z};
_.p.__sortChanged=function(z){this.__sortFn=this.__functionFromPropertyValue(z);this.items&&this.__debounceRender(this.__render)};
_.p.__filterChanged=function(z){this.__filterFn=this.__functionFromPropertyValue(z);this.items&&this.__debounceRender(this.__render)};
_.p.__computeFrameTime=function(z){return Math.ceil(1E3/z)};
_.p.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.p.__handleObservedPaths=function(z){if(this.__sortFn||this.__filterFn)if(!z)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var l=this.__observePaths,I=0;I<l.length;I++)z.indexOf(l[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.p.__itemsChanged=function(z){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(z.path,z.value)||(z.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.p.__debounceRender=function(z,l){l=l===void 0?0:l;this.__renderDebouncer=_.Xb(this.__renderDebouncer,l>0?_.ug.after(l):$F,z.bind(this));_.ql(this.__renderDebouncer)};
_.p.render=function(){this.__debounceRender(this.__render);_.Y4()};
_.p.__render=function(){var z=this;if(this.__ensureTemplatized()){var l=this.items||[],I=this.__sortAndFilterItems(l),b=this.__calculateLimit(I.length);this.__updateInstances(l,b,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){z.__chunkingId=null;z.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Nl&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.__sortAndFilterItems=function(z){for(var l=this,I=Array(z.length),b=0;b<z.length;b++)I[b]=b;this.__filterFn&&(I=I.filter(function(v,M,x){return l.__filterFn(z[v],M,x)}));
this.__sortFn&&I.sort(function(v,M){return l.__sortFn(z[v],z[M])});
return I};
_.p.__calculateLimit=function(z){var l=z,I=this.__instances.length;if(this.initialCount){var b;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(l=Math.min(z,this.initialCount),this.__chunkCount=(b=Math.max(l-I,0))||1):(b=Math.min(Math.max(z-I,0),this.__chunkCount),l=Math.min(I+b,z));this.__shouldMeasureChunk=b===this.__chunkCount;this.__shouldContinueChunking=l<z;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return l};
_.p.__continueChunking=function(){if(this.__shouldMeasureChunk){var z=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/z*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.p.__updateInstances=function(z,l,I){var b=this.__itemsIdxToInstIdx={},v;for(v=0;v<l;v++){var M=this.__instances[v],x=I[v],g=z[x];b[x]=v;M?(M._setPendingProperty(this.as,g),M._setPendingProperty(this.indexAs,v),M._setPendingProperty(this.itemsIndexAs,x),M._flushProperties()):this.__insertInstance(g,v,x)}for(z=this.__instances.length-1;z>=v;z--)this.__detachAndRemoveInstance(z)};
_.p.__detachInstance=function(z){z=this.__instances[z];for(var l=(0,_.Ks)(z.root),I=0;I<z.children.length;I++)l.appendChild(z.children[I]);return z};
_.p.__attachInstance=function(z,l){l.insertBefore(this.__instances[z].root,this)};
_.p.__detachAndRemoveInstance=function(z){this.__detachInstance(z);this.__instances.splice(z,1)};
_.p.__stampInstance=function(z,l,I){var b={};b[this.as]=z;b[this.indexAs]=l;b[this.itemsIndexAs]=I;return new this.__ctor(b)};
_.p.__insertInstance=function(z,l,I){z=this.__stampInstance(z,l,I);I=(I=this.__instances[l+1])?I.children[0]:this;(0,_.Ks)((0,_.Ks)(this).parentNode).insertBefore(z.root,I);return this.__instances[l]=z};
_.p._showHideChildren=function(z){for(var l=0;l<this.__instances.length;l++)this.__instances[l]._showHideChildren(z)};
_.p.__handleItemPath=function(z,l){var I=z.slice(6),b=I.indexOf(".");z=b<0?I:I.substring(0,b);if(z==parseInt(z,10)){I=b<0?"":I.substring(b+1);this.__handleObservedPaths(I);if(z=this.__instances[this.__itemsIdxToInstIdx[z]])z._setPendingPropertyOrPath(this.as+(I?"."+I:""),l,!1,!0),z._flushProperties();return!0}};
_.p.itemForElement=function(z){return(z=this.modelForElement(z))&&z[this.as]};
_.p.indexForElement=function(z){return(z=this.modelForElement(z))&&z[this.indexAs]};
_.p.modelForElement=function(z){return AOQ(this.template,z)};
_.vP.Object.defineProperties(sx,{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:sx.prototype.__sortChanged},filter:{type:Function,observer:sx.prototype.__filterChanged},observe:{type:String,observer:sx.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Nl,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.*)"]}}});
sx.prototype._setRenderedItemCount=function(){};
customElements.define(sx.is,sx);Polymer.DomRepeat=sx;var vW4=function(z,l){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=z;this.callback=l;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},MbM=function(z){var l=(0,_.Ks)(z);
if(aK(z))return l.assignedNodes({flatten:!0});z=[];for(var I=0;I<l.childNodes.length;I++){var b=l.childNodes[I];aK(b)?z.push.apply(z,_.ht((0,_.Ks)(b).assignedNodes({flatten:!0}))):z.push(b)}return z};
_.p=vW4.prototype;_.p.connect=function(){var z=this;aK(this._target)?this._listenSlots([this._target]):(0,_.Ks)(this._target).children&&(this._listenSlots((0,_.Ks)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(l){z._processMutations(l)}):(this._nativeChildrenObserver=new MutationObserver(function(l){z._processMutations(l)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.p.disconnect=function(){aK(this._target)?this._unlistenSlots([this._target]):(0,_.Ks)(this._target).children&&(this._unlistenSlots((0,_.Ks)(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};
_.p._schedule=function(){var z=this;this._scheduled||(this._scheduled=!0,$F.run(function(){return z.flush()}))};
_.p._processMutations=function(z){this._processSlotMutations(z);this.flush()};
_.p._processSlotMutations=function(z){if(z)for(var l=0;l<z.length;l++){var I=z[l];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.removedNodes)}};
_.p.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 z={target:this._target,addedNodes:[],removedNodes:[]},l=MbM(this._target),I=wJH(l,this._effectiveNodes),b=0,v=void 0;b<I.length&&(v=I[b]);b++)for(var M=0,x=void 0;M<v.removed.length&&(x=v.removed[M]);M++)z.removedNodes.push(x);
b=0;for(v=void 0;b<I.length&&(v=I[b]);b++)for(M=v.index;M<v.index+v.addedCount;M++)z.addedNodes.push(l[M]);this._effectiveNodes=l;l=!1;if(z.addedNodes.length||z.removedNodes.length)l=!0,this.callback.call(this._target,z);return l};
_.p._listenSlots=function(z){for(var l=0;l<z.length;l++){var I=z[l];aK(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.p._unlistenSlots=function(z){for(var l=0;l<z.length;l++){var I=z[l];aK(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var cK=Element.prototype,pFp=cK.matches||cK.matchesSelector||cK.mozMatchesSelector||cK.msMatchesSelector||cK.oMatchesSelector||cK.webkitMatchesSelector,Do0=function(z,l){return pFp.call(z,l)},Vd=function(z){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(z);
this.node=z},GNA;
_.p=Vd.prototype;_.p.observeNodes=function(z){return new vW4(this.node,z)};
_.p.unobserveNodes=function(z){z.disconnect()};
_.p.notifyObserver=function(){};
_.p.deepContains=function(z){if((0,_.Ks)(this.node).contains(z))return!0;var l=z;for(z=z.ownerDocument;l&&l!==z&&l!==this.node;)l=(0,_.Ks)(l).parentNode||(0,_.Ks)(l).host;return l===this.node};
_.p.getOwnerRoot=function(){return(0,_.Ks)(this.node).getRootNode()};
_.p.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Ks)(this.node).assignedNodes({flatten:!0}):[]};
_.p.getDestinationInsertionPoints=function(){for(var z=[],l=(0,_.Ks)(this.node).assignedSlot;l;)z.push(l),l=(0,_.Ks)(l).assignedSlot;return z};
_.p.importNode=function(z,l){return(0,_.Ks)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(z,l)};
_.p.getEffectiveChildNodes=function(){return MbM(this.node)};
_.p.queryDistributedElements=function(z){for(var l=this.getEffectiveChildNodes(),I=[],b=0,v=l.length,M=void 0;b<v&&(M=l[b]);b++)M.nodeType===Node.ELEMENT_NODE&&Do0(M,z)&&I.push(M);return I};
_.vP.Object.defineProperties(Vd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var z=this.node;return z._activeElement!==void 0?z._activeElement:z.activeElement}}});
var SH=function(z){this.event=z};
_.vP.Object.defineProperties(SH.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 xoA=Vd;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Oru=window.ShadyDOM.Wrapper,gWn=function(){return Oru.apply(this,arguments)||this};
_.m(gWn,Oru);Object.getOwnPropertyNames(Vd.prototype).forEach(function(z){z!="activeElement"&&z!="constructor"&&(gWn.prototype[z]=Vd.prototype[z])});
nxp(gWn.prototype,["classList"]);xoA=gWn;Object.defineProperties(SH.prototype,{localTarget:{get:function(){var z=this.event.currentTarget;z=z&&_.YO(z).getOwnerRoot();for(var l=this.path,I=0;I<l.length;I++){var b=l[I];if(_.YO(b).getOwnerRoot()===z)return b}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Wxt(),nxp(Vd.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Lxp();GNA=xoA;_.YO=function(z){z=z||document;if(z instanceof xoA)return z;if(z instanceof SH)return z;var l=z.__domApi;l||(z instanceof Event?l=new SH(z):l=new xoA(z),z.__domApi=l);return l};var NDA=/:host\(:dir\((ltr|rtl)\)\)/g,EW_=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,uN_=/:dir\((?:ltr|rtl)\)/,ZrA=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Je=[],d7=null,jj="",Hru=Zj(function(z){ZrA||d7||(jj=document.documentElement.getAttribute("dir"),d7=new MutationObserver(U57),d7.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var l=Rv_(z);z=function(){var I=l.call(this)||this;I.__autoDirOptOut=!1;return I};
_.m(z,l);z._processStyleText=function(I,b){I=l._processStyleText.call(this,I,b);!ZrA&&uN_.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
z._replaceDirInCssText=function(I){I=I.replace(NDA,':host([dir="$1"])');return I=I.replace(EW_,':host([dir="$2"]) $1')};
z.prototype.ready=function(){l.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
z.prototype.connectedCallback=function(){l.prototype.connectedCallback&&l.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(d7&&d7.takeRecords().length&&U57(),Je.push(this),this.__autoDirOptOut||this.setAttribute("dir",jj))};
z.prototype.disconnectedCallback=function(){l.prototype.disconnectedCallback&&l.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=Je.indexOf(this);I>-1&&Je.splice(I,1)}};
z.__activateDir=!1;return z});var yY4=function(z){for(;z;){var l=Object.getOwnPropertyDescriptor(z,"observedAttributes");if(l)return l.get;z=Object.getPrototypeOf(z.prototype).constructor}return function(){return[]}};
Zj(function(z){var l=fk(z),I=yY4(l);z=function(){return l.call(this)||this};
_.m(z,l);z.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:l.prototype._initializeProperties.call(this)};
z.prototype._enableProperties=function(){this.__isUpgradeDisabled||l.prototype._enableProperties.call(this)};
z.prototype._canApplyPropertyDefault=function(b){return l.prototype._canApplyPropertyDefault.call(this,b)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(b))};
z.prototype.attributeChangedCallback=function(b,v,M,x){b=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(l.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Ks)(this).isConnected&&l.prototype.connectedCallback.call(this)):l.prototype.attributeChangedCallback.call(this,b,v,M,x)};
z.prototype.connectedCallback=function(){this.__isUpgradeDisabled||l.prototype.connectedCallback.call(this)};
z.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||l.prototype.disconnectedCallback.call(this)};
_.vP.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return z});var zR=!1,Vyx=[],lM=[];var lbQ=window.ShadyDOM,Ibu=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",vA$):document.readyState==="interactive"||document.readyState==="complete"?vA$():window.addEventListener("DOMContentLoaded",vA$);var DiH=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=""},M1k=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,pcf=/@import[^;]*;/gim,EA1=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,uzH=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,ZNx=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,HN7=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,GnY=/^@[^\s]*keyframes/,
gAp=/\s+/g;var y5u={};var knf=Promise.resolve();var fkj=new Set;var CcA=/;\s*/m,kNu=/^\s*(initial)|(inherit)\s*$/,RWw=/\s*!important/,mo_=function(){this._map={}};
mo_.prototype.set=function(z,l){z=z.trim();this._map[z]={properties:l,dependants:{}}};
mo_.prototype.get=function(z){z=z.trim();return this._map[z]||null};
var Ka0=null,o5=function(){this._measureElement=this._currentElement=null;this._map=new mo_};
_.p=o5.prototype;_.p.detectMixin=function(z){z=sh_.test(z)||hvw.test(z);sh_.lastIndex=0;hvw.lastIndex=0;return z};
_.p.transformTemplate=function(z,l){if(z._gatheredStyle===void 0){var I=[];for(var b=z.content.querySelectorAll("style"),v=0;v<b.length;v++){var M=b[v];if(M.hasAttribute("shady-unscoped")){if(!zhG){var x=M.textContent;if(!fkj.has(x)){fkj.add(x);var g=document.createElement("style");g.setAttribute("shady-unscoped","");g.textContent=x;document.head.appendChild(g)}M.parentNode.removeChild(M)}}else I.push(M.textContent),M.parentNode.removeChild(M)}(I=I.join("").trim())?(b=document.createElement("style"),
b.textContent=I,z.content.insertBefore(b,z.content.firstChild),I=b):I=null;z._gatheredStyle=I}return(z=z._gatheredStyle)?this.JSC$11273_transformStyle(z,l):null};
_.p.JSC$11273_transformStyle=function(z,l){l=l===void 0?"":l;var I=t1x(z);this.transformRules(I,l);z.textContent=KTp(I);return I};
_.p.transformCustomStyle=function(z){var l=this,I=t1x(z);XcQ(I,function(b){b.selector===":root"&&(b.selector="html");l.transformRule(b)});
z.textContent=KTp(I);return I};
_.p.transformRules=function(z,l){var I=this;this._currentElement=l;XcQ(z,function(b){I.transformRule(b)});
this._currentElement=null};
_.p.transformRule=function(z){z.cssText=tb_(this,z.parsedCssText,z);z.selector===":root"&&(z.selector=":host > *")};
var tb_=function(z,l,I){l=l.replace(hvw,function(b,v,M,x){return z._produceCssProperties(b,v,M,x,I)});
return z._consumeCssProperties(l,I)};
_.p=o5.prototype;_.p._getInitialValueForProperty=function(z){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(z)};
_.p._fallbacksFromPreviousRules=function(z){for(var l=this,I=z;I.parent;)I=I.parent;var b={},v=!1;XcQ(I,function(M){(v=v||M===z)||M.selector===z.selector&&Object.assign(b,l._cssTextToMap(M.parsedCssText))});
return b};
_.p._consumeCssProperties=function(z,l){for(var I;I=sh_.exec(z);){var b=I[0],v=I[1];I=I.index;var M=I+b.indexOf("@apply"),x=I+b.length;b=z.slice(0,M);z=z.slice(x);M=l?this._fallbacksFromPreviousRules(l):{};Object.assign(M,this._cssTextToMap(b));v=this._atApplyToCssProperties(v,M);z=b+v+z;sh_.lastIndex=I+v.length}return z};
_.p._atApplyToCssProperties=function(z,l){z=z.replace(CcA,"");var I=[],b=this._map.get(z);b||(this._map.set(z,{}),b=this._map.get(z));if(b){this._currentElement&&(b.dependants[this._currentElement]=!0);var v,M=b.properties;for(v in M){var x=l&&l[v];b=[v,": var(",z,"_-_",v];x&&b.push(",",x.replace(RWw,""));b.push(")");RWw.test(M[v])&&b.push(" !important");I.push(b.join(""))}}return I.join("; ")};
_.p._replaceInitialOrInherit=function(z,l){var I=kNu.exec(l);I&&(l=I[1]?this._getInitialValueForProperty(z):"apply-shim-inherit");return l};
_.p._cssTextToMap=function(z,l){l=l===void 0?!1:l;z=z.split(";");for(var I,b,v={},M=0;M<z.length;M++)if(I=z[M])b=I.split(":"),b.length>1&&(I=b[0].trim(),b=b.slice(1).join(":"),l&&(b=this._replaceInitialOrInherit(I,b)),v[I]=b);return v};
_.p._invalidateMixinEntry=function(z){if(Ka0)for(var l in z.dependants)l!==this._currentElement&&Ka0(l)};
_.p._produceCssProperties=function(z,l,I,b,v){var M=this;I&&qzt(I,function(R,F){F&&M._map.get(F)&&(b="@apply "+F+";")});
if(!b)return z;var x=this._consumeCssProperties(""+b,v);v=z.slice(0,z.indexOf("--"));var g=x=this._cssTextToMap(x,!0),G=this._map.get(l),u=G&&G.properties;u?g=Object.assign(Object.create(u),x):this._map.set(l,g);var Z=[],H,y=!1;for(H in g){var f=x[H];f===void 0&&(f="initial");!u||H in u||(y=!0);Z.push(l+"_-_"+H+": "+f)}y&&this._invalidateMixinEntry(G);G&&(G.properties=g);I&&(v=z+";"+v);return v+Z.join("; ")+";"};
o5.prototype.detectMixin=o5.prototype.detectMixin;o5.prototype.transformStyle=o5.prototype.JSC$11273_transformStyle;o5.prototype.transformCustomStyle=o5.prototype.transformCustomStyle;o5.prototype.transformRules=o5.prototype.transformRules;o5.prototype.transformRule=o5.prototype.transformRule;o5.prototype.transformTemplate=o5.prototype.transformTemplate;o5.prototype._separator="_-_";Object.defineProperty(o5.prototype,"invalidCallback",{get:function(){return Ka0},
set:function(z){Ka0=z}});var PK=new o5,BDu=function(){this.customStyleInterface=null;PK.invalidCallback=fbY},hv=function(z){!z.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(z.customStyleInterface=window.ShadyCSS.CustomStyleInterface,z.customStyleInterface.transformCallback=function(l){PK.transformCustomStyle(l)},z.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){z.customStyleInterface.enqueued&&z.flushCustomStyles()})})};
_.p=BDu.prototype;_.p.prepareTemplate=function(z,l){hv(this);iNH(z)===""&&(y5u[l]=z,l=PK.transformTemplate(z,l),z._styleAst=l)};
_.p.flushCustomStyles=function(){hv(this);if(this.customStyleInterface){var z=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var l=0;l<z.length;l++){var I=this.customStyleInterface.getStyleForCustomStyle(z[l]);I&&PK.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.p.styleSubtree=function(z,l){hv(this);l&&n17(z,l);if(z.shadowRoot)for(this.styleElement(z),z=z.shadowRoot.children||z.shadowRoot.childNodes,l=0;l<z.length;l++)this.styleSubtree(z[l]);else for(z=z.children||z.childNodes,l=0;l<z.length;l++)this.styleSubtree(z[l])};
_.p.styleElement=function(z){hv(this);var l=z.localName,I;l?l.indexOf("-")>-1?I=l:I=z.getAttribute&&z.getAttribute("is")||"":I=z.is;l=y5u[I];if(!(l&&iNH(l)!==""||!l||C2S(l))){if(C2S(l)||l._applyShimValidatingVersion!==l._applyShimNextVersion)this.prepareTemplate(l,I),R3k(l);if(z=z.shadowRoot)if(z=z.querySelector("style"))z.__cssRules=l._styleAst,z.textContent=KTp(l._styleAst)}};
_.p.styleDocument=function(z){hv(this);this.styleSubtree(document.body,z)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var sl=new BDu,XFn=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(z,l){sl.flushCustomStyles();sl.prepareTemplate(z,l)},
prepareTemplateStyles:function(z,l,I){window.ShadyCSS.prepareTemplate(z,l,I)},
prepareTemplateDom:function(){},
styleSubtree:function(z,l){sl.flushCustomStyles();sl.styleSubtree(z,l)},
styleElement:function(z){sl.flushCustomStyles();sl.styleElement(z)},
styleDocument:function(z){sl.flushCustomStyles();sl.styleDocument(z)},
getComputedStyleValue:function(z,l){return LOx(z,l)},
flushCustomStyles:function(){sl.flushCustomStyles()},
nativeCss:miS,nativeShadow:zhG,cssBuild:bM,disableRuntime:evn};XFn&&(window.ShadyCSS.CustomStyleInterface=XFn)}window.ShadyCSS.ApplyShim=PK;var qrj;qrj=window.ShadyCSS;_.r7=Zj(function(z){z=VSA(fk(z));var l=Ypj?z:Hru(z),I=yY4(l),b={x:"pan-x",y:"pan-y",none:"none",all:"auto"};z=function(){return l.call(this)||this};
_.m(z,l);z.prototype.created=function(){};
z.prototype.__attributeReaction=function(v,M,x){(this.__dataAttributes&&this.__dataAttributes[v]||v==="disable-upgrade")&&this.attributeChangedCallback(v,M,x,null)};
z.prototype.setAttribute=function(v,M){if(MSI&&!this._legacyForceObservedAttributes){var x=this.getAttribute(v);l.prototype.setAttribute.call(this,v,M);this.__attributeReaction(v,x,String(M))}else l.prototype.setAttribute.call(this,v,M)};
z.prototype.removeAttribute=function(v){if(MSI&&!this._legacyForceObservedAttributes){var M=this.getAttribute(v);l.prototype.removeAttribute.call(this,v);this.__attributeReaction(v,M,null)}else l.prototype.removeAttribute.call(this,v)};
z.prototype._enableProperties=function(){this.__isUpgradeDisabled||l.prototype._enableProperties.call(this)};
z.prototype._canApplyPropertyDefault=function(v){return l.prototype._canApplyPropertyDefault.call(this,v)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(v))};
z.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(l.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
z.prototype.attached=function(){};
z.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(l.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
z.prototype.detached=function(){};
z.prototype.attributeChangedCallback=function(v,M,x,g){M!==x&&(v=="disable-upgrade"?this.__isUpgradeDisabled&&x==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Ks)(this).isConnected&&this.connectedCallback()):(l.prototype.attributeChangedCallback.call(this,v,M,x,g),this.attributeChanged(v,M,x)))};
z.prototype.attributeChanged=function(){};
z.prototype._initializeProperties=function(){if(wS&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var v=Object.getPrototypeOf(this);v.hasOwnProperty("__hasRegisterFinished")||(this._registered(),v.__hasRegisterFinished=!0);l.prototype._initializeProperties.call(this);this.root=this;this.created();MSI&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
z.prototype._takeAttributes=function(){for(var v=this.attributes,M=0,x=v.length;M<x;M++){var g=v[M];this.__attributeReaction(g.name,null,g.value)}};
z.prototype._registered=function(){};
z.prototype.ready=function(){this._ensureAttributes();l.prototype.ready.call(this)};
z.prototype._ensureAttributes=function(){};
z.prototype._applyListeners=function(){};
z.prototype.serialize=function(v){return this._serializeValue(v)};
z.prototype.deserialize=function(v,M){return this._deserializeValue(v,M)};
z.prototype.reflectPropertyToAttribute=function(v,M,x){this._propertyToAttribute(v,M,x)};
z.prototype.serializeValueToAttribute=function(v,M,x){this._valueToNodeAttribute(x||this,v,M)};
z.prototype.extend=function(v,M){if(!v||!M)return v||M;for(var x=Object.getOwnPropertyNames(M),g=0,G=void 0;g<x.length&&(G=x[g]);g++){var u=Object.getOwnPropertyDescriptor(M,G);u&&Object.defineProperty(v,G,u)}return v};
z.prototype.mixin=function(v,M){for(var x in M)v[x]=M[x];return v};
z.prototype.chainObject=function(v,M){v&&M&&v!==M&&(v.__proto__=M);return v};
z.prototype.instanceTemplate=function(v){v=this.constructor._contentForTemplate(v);return document.importNode(v,!0)};
z.prototype.fire=function(v,M,x){x=x||{};M=M===null||M===void 0?{}:M;v=new Event(v,{bubbles:x.bubbles===void 0?!0:x.bubbles,cancelable:!!x.cancelable,composed:x.composed===void 0?!0:x.composed});v.detail=M;(0,_.Ks)(x.node||this).dispatchEvent(v);return v};
z.prototype.listen=function(v,M,x){v=v||this;var g=this.__boundListeners||(this.__boundListeners=new WeakMap),G=g.get(v);G||(G={},g.set(v,G));g=M+x;G[g]||(G[g]=this._addMethodEventListenerToNode(v,M,x,this))};
z.prototype.unlisten=function(v,M,x){v=v||this;var g=this.__boundListeners&&this.__boundListeners.get(v);x=M+x;var G=g&&g[x];G&&(this._removeEventListenerFromNode(v,M,G),g[x]=null)};
z.prototype.setScrollDirection=function(v,M){_.rS(M||this,b[v]||"auto")};
z.prototype.$$=function(v){return this.root.querySelector(v)};
z.prototype.distributeContent=function(){var v=_.YO(this);window.ShadyDOM&&v.shadowRoot&&ShadyDOM.flush()};
z.prototype.getEffectiveChildNodes=function(){return _.YO(this).getEffectiveChildNodes()};
z.prototype.queryDistributedElements=function(v){return _.YO(this).queryDistributedElements(v)};
z.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(v){return v.nodeType===Node.ELEMENT_NODE})};
z.prototype.getEffectiveTextContent=function(){for(var v=this.getEffectiveChildNodes(),M=[],x=0,g;g=v[x];x++)g.nodeType!==Node.COMMENT_NODE&&M.push(g.textContent);return M.join("")};
z.prototype.queryEffectiveChildren=function(v){return(v=this.queryDistributedElements(v))&&v[0]};
z.prototype.queryAllEffectiveChildren=function(v){return this.queryDistributedElements(v)};
z.prototype.getContentChildNodes=function(v){return(v=this.root.querySelector(v||"slot"))?_.YO(v).getDistributedNodes():[]};
z.prototype.getContentChildren=function(v){return this.getContentChildNodes(v).filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
z.prototype.isLightDescendant=function(v){return this!==v&&(0,_.Ks)(this).contains(v)&&(0,_.Ks)(this).getRootNode()===(0,_.Ks)(v).getRootNode()};
z.prototype.isLocalDescendant=function(v){return this.root===(0,_.Ks)(v).getRootNode()};
z.prototype.scopeSubtree=function(v,M){return bNx(v,M===void 0?!1:M)};
z.prototype.getComputedStyleValue=function(v){return qrj.getComputedStyleValue(this,v)};
z.prototype.debounce=function(v,M,x){this._debouncers=this._debouncers||{};return this._debouncers[v]=_.Xb(this._debouncers[v],x>0?_.ug.after(x):$F,M.bind(this))};
z.prototype.isDebouncerActive=function(v){this._debouncers=this._debouncers||{};v=this._debouncers[v];return!(!v||!v.isActive())};
z.prototype.flushDebouncer=function(v){this._debouncers=this._debouncers||{};(v=this._debouncers[v])&&v.flush()};
z.prototype.cancelDebouncer=function(v){this._debouncers=this._debouncers||{};(v=this._debouncers[v])&&v.cancel()};
z.prototype.async=function(v,M){return M>0?_.ug.run(v.bind(this),M):~$F.run(v.bind(this))};
z.prototype.cancelAsync=function(v){v<0?$F.cancel(~v):_.ug.cancel(v)};
z.prototype.create=function(v,M){v=document.createElement(v);if(M)if(v.setProperties)v.setProperties(M);else for(var x in M)v[x]=M[x];return v};
z.prototype.elementMatches=function(v,M){return Do0(M||this,v)};
z.prototype.toggleAttribute=function(v,M){var x=this;arguments.length===3&&(x=arguments[2]);arguments.length==1&&(M=!x.hasAttribute(v));if(M)return(0,_.Ks)(x).setAttribute(v,""),!0;(0,_.Ks)(x).removeAttribute(v);return!1};
z.prototype.toggleClass=function(v,M,x){x=x||this;arguments.length==1&&(M=!x.classList.contains(v));M?x.classList.add(v):x.classList.remove(v)};
z.prototype.transform=function(v,M){M=M||this;M.style.webkitTransform=v;M.style.transform=v};
z.prototype.translate3d=function(v,M,x,g){this.transform("translate3d("+v+","+M+","+x+")",g||this)};
z.prototype.arrayDelete=function(v,M){if(Array.isArray(v)){if(M=v.indexOf(M),M>=0)return v.splice(M,1)}else if(M=kF(this,v).indexOf(M),M>=0)return this.splice(v,M,1);return null};
z.prototype._logger=function(v,M){Array.isArray(M)&&M.length===1&&Array.isArray(M[0])&&(M=M[0]);switch(v){case "log":case "warn":case "error":console[v].apply(console,_.ht(M))}};
z.prototype._log=function(){this._logger("log",_.AT.apply(0,arguments))};
z.prototype._warn=function(){this._logger("warn",_.AT.apply(0,arguments))};
z.prototype._error=function(){this._logger("error",_.AT.apply(0,arguments))};
z.prototype._logf=function(v){return["[%s::%s]",this.is,v].concat(_.ht(_.AT.apply(1,arguments)))};
_.vP.Object.defineProperties(z.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var v=(0,_.Ks)(this).getRootNode();return v instanceof DocumentFragment?v.host:v}}});
_.vP.Object.defineProperties(z,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return MSI&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Iq$(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
z.prototype.is="";return z});Polymer.FlattenedNodesObserver=vW4;Polymer.DomApi=GNA;Polymer.EventApi=SH;Polymer.dom=_.YO;Polymer.dom.matchesSelector=Do0;Polymer.dom.flush=_.Y4;Polymer.dom.addDebouncer=_.ql;Polymer.DirMixin=Hru;Polymer.RenderStatus={beforeNextRender:_.z3u,afterNextRender:_.IR,flush:function(){for(;Vyx.length||lM.length;)as7(Vyx),as7(lM);zR=!1}};Polymer.LegacyElementMixin=_.r7;var irM;irM=Fb._mutablePropertyChange;var FaI={properties:{mutableData:Boolean},_shouldPropertyChange:function(z,l,I){return irM(this,z,l,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(z,l,I){return irM(this,z,l,I,!0)}};
Polymer.OptionalMutableDataBehavior=FaI;var FTu={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},SzQ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},c57=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},SzQ),QDA=(0,_.r7)(HTMLElement),q0k=function(z,l){z||console.warn("Polymer.Class requires `info` argument");l=l?l(QDA):QDA;l=dix(z,l,z.behaviors);l.is=l.prototype.is=
z.is;return l};Polymer.Class=q0k;Polymer.mixinBehaviors=function(z,l){return dix({},(0,_.r7)(l),z)};
Polymer.GenerateClassFromInfo=dix;_.hP=function(z){var l=typeof z==="function"?z:_.hP.Class(z);z._legacyForceObservedAttributes&&(l.prototype._legacyForceObservedAttributes=z._legacyForceObservedAttributes);customElements.define(l.is,l);return l};
_.hP.Class=q0k;Polymer._polymerFn=_.hP;var Yrw=window.onLegacyPolymerFunctionDefinedCallback;Yrw&&Yrw();var FLx={templatize:function(z,l){this._templatizerTemplate=z;this.ctor=ns(z,this,{mutableData:!!l,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(z){return new this.ctor(z)},
modelForElement:function(z){return AOQ(this._templatizerTemplate,z)}};Polymer.Templatizer=FLx;_.$4=(0,_.r7)(HTMLElement).prototype;Polymer.Base=_.$4;var P2u=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Mr=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(_.Mr,PolymerFakeBaseClass);var pQ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(pQ,PolymerFakeBaseClass);var h3$=Symbol("Rd"),nAH=[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 TD4=TD4||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},cYz;(function(z){function l(A,W,L){var lH=V.get(A);if(!lH){if(!L)return;lH=new c;V.set(A,lH)}A=lH.get(W);if(!A){if(!L)return;A=new c;lH.set(W,A)}return A}
function I(A,W,L){if(b(A,W,L))return!0;W=y(W);return W!==null?I(A,W,L):!1}
function b(A,W,L){W=l(W,L,!1);return W===void 0?!1:!!W.has(A)}
function v(A,W,L){if(b(A,W,L))return M(A,W,L);W=y(W);if(W!==null)return v(A,W,L)}
function M(A,W,L){W=l(W,L,!1);if(W!==void 0)return W.get(A)}
function x(A,W){var L=g(A,W);A=y(A);if(A===null)return L;var lH=x(A,W);if(lH.length<=0)return L;if(L.length<=0)return lH;W=new d;A=[];L=_.D(L);for(var Gk=L.next();!Gk.done;Gk=L.next())Gk=Gk.value,W.has(Gk)||(W.add(Gk),A.push(Gk));L=_.D(lH);for(lH=L.next();!lH.done;lH=L.next())lH=lH.value,W.has(lH)||(W.add(lH),A.push(lH));return A}
function g(A,W){A=l(A,W,!1);var L=[];A&&A.forEach(function(lH,Gk){return L.push(Gk)});
return L}
function G(A){return A===void 0}
function u(A){return typeof A==="object"?A!==null:typeof A==="function"}
function Z(A){return typeof A==="function"}
function H(A){return typeof A==="symbol"?A:String(A)}
function y(A){var W=Object.getPrototypeOf(A);if(typeof A!=="function"||A===Y||W!==Y)return W;var L=Object.getPrototypeOf(A.prototype);if(L==null||L===Object.prototype)return W;L=L.constructor;return typeof L!=="function"||L===A?W:L}
function f(){function A(){this._keys=[];this._values=[];this._cache=W}
var W={};A.prototype={get size(){return this._keys.length},has:function(L){return L===this._cache?!0:this._find(L)>=0?(this._cache=L,!0):!1},
get:function(L){var lH=this._find(L);if(lH>=0)return this._cache=L,this._values[lH]},
set:function(L,lH){this.delete(L);this._keys.push(L);this._values.push(lH);this._cache=L;return this},
delete:function(L){L=this._find(L);return L>=0?(this._keys.splice(L,1),this._values.splice(L,1),this._cache=W,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=W},
forEach:function(L){for(var lH=this.size,Gk=0;Gk<lH;++Gk){var uH=this._keys[Gk],Xt=this._values[Gk];this._cache=uH;L.call(this,Xt,uH,this)}},
_find:function(L){for(var lH=this._keys,Gk=lH.length,uH=0;uH<Gk;++uH)if(lH[uH]===L)return uH;return-1}};
return A}
function R(){function A(){this._map=new c}
A.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,L){this._map.forEach(W,L)}};
return A}
function F(){function A(){this._key=L()}
function W(H7,P7){for(var o1=0;o1<P7;++o1)H7[o1]=Math.random()*255|0}
function L(){do{if(Gk)var H7=Gk.randomBytes(16);else typeof Uint8Array==="function"?(H7=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(H7):W(H7,16)):(H7=Array(16),W(H7,16));H7[6]=H7[6]&79|64;H7[8]=H7[8]&191|128;for(var P7="",o1=0;o1<16;++o1){var z_=H7[o1];if(o1===4||o1===6||o1===8)P7+="-";z_<16&&(P7+="0");P7+=z_.toString(16).toLowerCase()}H7="@@WeakMap@@"+P7}while(uH.call(Xt,H7));Xt[H7]=!0;return H7}
function lH(H7,P7){if(!uH.call(H7,R1)){if(!P7)return;Object.defineProperty(H7,R1,{value:Object.create(null)})}return H7[R1]}
var Gk=typeof global!=="undefined"&&typeof TD4==="object"&&typeof require==="function"&&require("crypto"),uH=Object.prototype.hasOwnProperty,Xt={},R1=L();A.prototype={has:function(H7){return(H7=lH(H7,!1))?this._key in H7:!1},
get:function(H7){if(H7=lH(H7,!1))return H7[this._key]},
set:function(H7,P7){lH(H7,!0)[this._key]=P7;return this},
delete:function(H7){return(H7=lH(H7,!1))&&this._key in H7?delete H7[this._key]:!1},
clear:function(){this._key=L()}};
return A}
var Y=Object.getPrototypeOf(Function),c=typeof Map==="function"?Map:f(),d=typeof Set==="function"?Set:R(),V=new (typeof WeakMap==="function"?WeakMap:F());z.decorate=function(A,W,L,lH){if(G(lH)){if(G(L)){if(!Array.isArray(A))throw new TypeError;if(!Z(W))throw new TypeError;for(L=A.length-1;L>=0;--L)if(lH=(0,A[L])(W),!G(lH)){if(!Z(lH))throw new TypeError;W=lH}return W}if(!Array.isArray(A))throw new TypeError;if(!u(W))throw new TypeError;L=H(L);for(lH=A.length-1;lH>=0;--lH)(0,A[lH])(W,L)}else{if(Array.isArray(A))if(u(W)){if(G(L))throw new TypeError;
if(!u(lH))throw new TypeError;}else throw new TypeError;else throw new TypeError;L=H(L);for(var Gk=A.length-1;Gk>=0;--Gk){var uH=(0,A[Gk])(W,L,lH);if(!G(uH)){if(!u(uH))throw new TypeError;lH=uH}}return lH}};
z.metadata=function(A,W){return function(L,lH){if(G(lH)){if(!Z(L))throw new TypeError;l(L,void 0,!0).set(A,W)}else{if(!u(L))throw new TypeError;lH=H(lH);l(L,lH,!0).set(A,W)}}};
z.defineMetadata=function(A,W){var L;if(u(W))G(L)||(L=H(L));else throw new TypeError;l(W,L,!0).set("parameters",A)};
z.hasMetadata=function(A,W,L){if(u(W))G(L)||(L=H(L));else throw new TypeError;return I(A,W,L)};
z.hasOwnMetadata=function(A,W,L){if(u(W))G(L)||(L=H(L));else throw new TypeError;return b(A,W,L)};
z.getMetadata=function(A,W,L){if(u(W))G(L)||(L=H(L));else throw new TypeError;return v(A,W,L)};
z.getOwnMetadata=function(A,W,L){if(u(W))G(L)||(L=H(L));else throw new TypeError;return M(A,W,L)};
z.getMetadataKeys=function(A,W){if(u(A))G(W)||(W=H(W));else throw new TypeError;return x(A,W)};
z.getOwnMetadataKeys=function(A,W){if(u(A))G(W)||(W=H(W));else throw new TypeError;return g(A,W)};
z.deleteMetadata=function(A,W,L){if(u(W))G(L)||(L=H(L));else throw new TypeError;var lH=l(W,L,!1);if(!G(lH)){if(!lH.delete(A))return!1;if(lH.size>0)return!0;A=V.get(W);A.delete(L);if(A.size>0)return!0;V.delete(W);return!0}};
(function(A){if(typeof A.Reflect!=="undefined"){if(A.Reflect!==z)for(var W in z)A.Reflect[W]=z[W]}else A.Reflect=z})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(cYz||(cYz={}));var EJQ=self;var SrA=[0,_.l2,_.vc,_.l2];var do_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(do_,_.Da);var oW0=_.yR(do_,[0,_.H$t,_.Db,SrA,_.vc,_.Oz]);_.Gs(_.DV,_.Q9);_.p=_.DV.prototype;_.p.start=function(){this.stop();this.usingListeners_=!1;var z=Pcw(this),l=hW_(this);z&&!l&&this.JSC$11316_win_.mozRequestAnimationFrame?(this.JSC$11316_id_=_.dZ(this.JSC$11316_win_,"MozBeforePaint",this.callback_),this.JSC$11316_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11316_id_=z&&l?z.call(this.JSC$11316_win_,this.callback_):this.JSC$11316_win_.setTimeout(FAj(this.callback_),20)};
_.p.stop=function(){if(this.isActive()){var z=Pcw(this),l=hW_(this);z&&!l&&this.JSC$11316_win_.mozRequestAnimationFrame?T4(this.JSC$11316_id_):z&&l?l.call(this.JSC$11316_win_,this.JSC$11316_id_):this.JSC$11316_win_.clearTimeout(this.JSC$11316_id_)}this.JSC$11316_id_=null};
_.p.fire=function(){this.stop();this.JSC$11318_doAction_()};
_.p.isActive=function(){return this.JSC$11316_id_!=null};
_.p.JSC$11318_doAction_=function(){this.usingListeners_&&this.JSC$11316_id_&&T4(this.JSC$11316_id_);this.JSC$11316_id_=null;this.JSC$11316_listener_.call(this.handler_,_.gG())};
_.p.disposeInternal=function(){this.stop();_.DV.superClass_.disposeInternal.call(this)};
var Pcw=function(z){z=z.JSC$11316_win_;return z.requestAnimationFrame||z.webkitRequestAnimationFrame||z.mozRequestAnimationFrame||z.oRequestAnimationFrame||z.msRequestAnimationFrame||null},hW_=function(z){z=z.JSC$11316_win_;
return z.cancelAnimationFrame||z.cancelRequestAnimationFrame||z.webkitCancelRequestAnimationFrame||z.mozCancelRequestAnimationFrame||z.oCancelRequestAnimationFrame||z.msCancelRequestAnimationFrame||null};_.zD=function(z,l,I){_.Q9.call(this);this.JSC$11319_listener_=I!=null?z.bind(I):z;this.JSC$11319_interval_=l;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11319_timer_=null};
_.m(_.zD,_.Q9);_.p=_.zD.prototype;_.p.fire=function(z){this.args_=arguments;this.JSC$11319_timer_||this.pauseCount_?this.shouldFire_=!0:sDp(this)};
_.p.stop=function(){this.JSC$11319_timer_&&(_.v7.clearTimeout(this.JSC$11319_timer_),this.JSC$11319_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.p.pause=function(){this.pauseCount_++};
_.p.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11319_timer_||(this.shouldFire_=!1,sDp(this))};
_.p.disposeInternal=function(){_.Q9.prototype.disposeInternal.call(this);this.stop()};
var sDp=function(z){z.JSC$11319_timer_=$9(function(){z.JSC$11319_timer_=null;z.shouldFire_&&!z.pauseCount_&&(z.shouldFire_=!1,sDp(z))},z.JSC$11319_interval_);
var l=z.args_;z.args_=null;z.JSC$11319_listener_.apply(null,l)};var rYw=function(z,l){this.childIterator_=z[_.v7.Symbol.iterator]();this.mapFn_=l};
rYw.prototype[Symbol.iterator]=function(){return this};
rYw.prototype.next=function(){var z=this.childIterator_.next();return{value:z.done?void 0:this.mapFn_.call(void 0,z.value),done:z.done}};
var $on=function(z,l){return new rYw(z,l)};var eWj={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 wAp=function(z){var l=wF_(z);if(!l)throw Error("Vd`"+z);return l},wF_=function(z){var l={};
z=String(z);var I=z.charAt(0)=="#"?z:"#"+z;if(AYu.test(I))return l.hex=PpS(I),l.type="hex",l;I=Ll5(z);return I.length?(l.hex=Qnt(I[0],I[1],I[2]),l.type="rgb",l):eWj&&(z=eWj[z.toLowerCase()])?(l.hex=z,l.type="named",l):null},Waj=/#(.)(.)(.)/,PpS=function(z){if(!AYu.test(z))throw Error("Xd`"+z);
z.length==4&&(z=z.replace(Waj,"#$1$1$2$2$3$3"));return z.toLowerCase()},Al7=function(z){z=PpS(z);
z=parseInt(z.slice(1),16);return[z>>16,z>>8&255,z&255]},Qnt=function(z,l,I){z=Number(z);
l=Number(l);I=Number(I);if(z!=(z&255)||l!=(l&255)||I!=(I&255))throw Error("Yd`"+z+"`"+l+"`"+I);l=z<<16|l<<8|I;return z<16?"#"+(16777216|l).toString(16).slice(1):"#"+l.toString(16)},AYu=/^#(?:[0-9a-f]{3}){1,2}$/i,nW0=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Ll5=function(z){var l=z.match(nW0);
if(l){z=Number(l[1]);var I=Number(l[2]);l=Number(l[3]);if(z>=0&&z<=255&&I>=0&&I<=255&&l>=0&&l<=255)return[z,I,l]}return[]};var Lau={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},tQ=Lau;tQ=Lau;var tEH,Uoz,akw;tEH=function(z,l){switch(l){case 1:return z%4!=0||z%100==0&&z%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Uoz=function(z,l,I,b,v){z=new Date(z,l,I);v=v||0;return z.valueOf()+(((b!==void 0?b:3)-v+7)%7-((z.getDay()+6)%7-v+7)%7)*864E5};
_.eH=function(z,l,I){typeof z==="number"?(this.date=akw(z,l||0,I||1),VbA(this,I||1)):_.Lu(z)?(this.date=akw(z.getFullYear(),z.getMonth(),z.getDate()),VbA(this,z.getDate())):(this.date=new Date(_.gG()),z=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),VbA(this,z))};
akw=function(z,l,I){l=new Date(z,l,I);z>=0&&z<100&&l.setFullYear(l.getFullYear()-1900);return l};
_.p=_.eH.prototype;_.p.firstDayOfWeek_=tQ.FIRSTDAYOFWEEK;_.p.firstWeekCutOffDay_=tQ.FIRSTWEEKCUTOFFDAY;_.p.clone=function(){var z=new _.eH(this.date);z.firstDayOfWeek_=this.firstDayOfWeek_;z.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return z};
_.p.getFullYear=function(){return this.date.getFullYear()};
_.p.getYear=function(){return this.getFullYear()};
_.p.getMonth=function(){return this.date.getMonth()};
_.p.getDate=function(){return this.date.getDate()};
_.p.getTime=function(){return this.date.getTime()};
_.p.getDay=function(){return this.date.getDay()};
_.p.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.p.getUTCMonth=function(){return this.date.getUTCMonth()};
_.p.getUTCDate=function(){return this.date.getUTCDate()};
_.p.getUTCDay=function(){return this.date.getDay()};
_.p.getUTCHours=function(){return this.date.getUTCHours()};
_.p.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.p.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.p.set=function(z){this.date=new Date(z.getFullYear(),z.getMonth(),z.getDate())};
_.p.setFullYear=function(z){this.date.setFullYear(z)};
_.p.setYear=function(z){this.setFullYear(z)};
_.p.setMonth=function(z){this.date.setMonth(z)};
_.p.setDate=function(z){this.date.setDate(z)};
_.p.setTime=function(z){this.date.setTime(z)};
_.p.setUTCFullYear=function(z){this.date.setUTCFullYear(z)};
_.p.setUTCMonth=function(z){this.date.setUTCMonth(z)};
_.p.setUTCDate=function(z){this.date.setUTCDate(z)};
_.p.add=function(z){if(z.years||z.months){var l=this.getMonth()+z.months+z.years*12,I=this.getYear()+Math.floor(l/12);l%=12;l<0&&(l+=12);var b=Math.min(tEH(I,l),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(l);this.setDate(b)}z.days&&(I=this.getYear(),l=I>=0&&I<=99?-1900:0,z=new Date((new Date(I,this.getMonth(),this.getDate(),12)).getTime()+z.days*864E5),this.setDate(1),this.setFullYear(z.getFullYear()+l),this.setMonth(z.getMonth()),this.setDate(z.getDate()),VbA(this,z.getDate()))};
_.p.JSC$11332_toIsoString=function(z){var l=this.getFullYear(),I=l<0?"-":l>=1E4?"+":"";return[I+_.Hc(Math.abs(l),I?6:4),_.Hc(this.getMonth()+1,2),_.Hc(this.getDate(),2)].join(z?"-":"")};
_.p.equals=function(z){return!(!z||this.getYear()!=z.getYear()||this.getMonth()!=z.getMonth()||this.getDate()!=z.getDate())};
_.p.toString=function(){return this.JSC$11332_toIsoString()};
var VbA=function(z,l){z.getDate()!=l&&z.date.setUTCHours(z.date.getUTCHours()+(z.getDate()<l?1:-1))};
_.eH.prototype.valueOf=function(){return this.date.valueOf()};var Av=function(z,l,I,b,v){this.reversed=!!l;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;z&&w7(this,z,b);this.depth=v!=void 0?v:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Gs(Av,K9);var w7=function(z,l,I,b){if(z.node=l)z.tagType=typeof I==="number"?I:z.node.nodeType!=1?0:z.reversed?-1:1;typeof b==="number"&&(z.depth=b)};
_.p=Av.prototype;_.p.JSC$11347_copyFrom=function(z){this.node=z.node;this.tagType=z.tagType;this.depth=z.depth;this.reversed=z.reversed;this.constrained=z.constrained};
_.p.clone=function(){return new Av(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.p.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return tg;var z=this.node;var l=this.reversed?-1:1;if(this.tagType==l){var I=this.reversed?z.lastChild:z.firstChild;I?w7(this,I):w7(this,z,l*-1)}else(I=this.reversed?z.previousSibling:z.nextSibling)?w7(this,I):w7(this,z.parentNode,l*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(z=this.node)?BG(z):tg};
_.p.equals=function(z){return z.node==this.node&&(!this.node||z.tagType==this.tagType)};
_.p.splice=function(z){var l=this.node,I=this.reversed?1:-1;this.tagType==I&&(this.tagType=I*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Av.prototype.next.call(this);this.reversed=!this.reversed;I=_.wf(arguments[0])?arguments[0]:arguments;for(var b=I.length-1;b>=0;b--)_.Wc(I[b],l);_.Bl(l)};var jD0=function(){},WK=function(z){for(var l=[],I=z.getTextRangeCount(),b=0;b<I;b++)l.push(z.getTextRange(b));
return l};
jD0.prototype.isReversed=function(){return!1};
jD0.prototype.getWindow=function(){return $q(_.e6(this.JSC$11349_getStartNode()))};
var JY_=function(z,l){Av.call(this,z,l,!0)};
_.Gs(JY_,Av);var nk=function(z,l,I,b,v){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!v;if(z){this.startNode_=z;this.startOffset_=l;this.endNode_=I;this.endOffset_=b;if(z.nodeType==1&&z.tagName!="BR")if(z=z.childNodes,l=z[l])this.startNode_=l,this.startOffset_=0;else{z.length&&(this.startNode_=_.c7(z));var M=!0}I.nodeType==1&&((this.endNode_=I.childNodes[b])?this.endOffset_=0:this.endNode_=I)}Av.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);M&&this.next()};
_.Gs(nk,JY_);_.p=nk.prototype;_.p.JSC$11355_getStartNode=function(){return this.startNode_};
_.p.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)};
_.p.next=function(){return this.isLast()?tg:nk.superClass_.next.call(this)};
_.p.JSC$11347_copyFrom=function(z){this.startNode_=z.startNode_;this.endNode_=z.endNode_;this.startOffset_=z.startOffset_;this.endOffset_=z.endOffset_;this.isReversed_=z.isReversed_;nk.superClass_.JSC$11347_copyFrom.call(this,z)};
_.p.clone=function(){var z=new nk(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);z.JSC$11347_copyFrom(this);return z};var zHp=function(){};
zHp.prototype.__iterator__=function(){return new nk(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Lk=function(z){this.range_=z};
_.Gs(Lk,zHp);var lP_=function(z){var l=_.e6(z).createRange();if(z.nodeType==3)l.setStart(z,0),l.setEnd(z,z.length);else if(e1(z)||z.nodeType==3){for(var I,b=z;(I=b.firstChild)&&(e1(I)||I.nodeType==3);)b=I;l.setStart(b,0);for(b=z;(I=b.lastChild)&&(e1(I)||I.nodeType==3);)b=I;l.setEnd(b,b.nodeType==1?b.childNodes.length:b.length)}else I=z.parentNode,z=Array.prototype.indexOf.call(I.childNodes,z),l.setStart(I,z),l.setEnd(I,z+1);return l},IP0=function(z,l,I,b){var v=_.e6(z).createRange();
v.setStart(z,l);v.setEnd(I,b);return v};
_.p=Lk.prototype;_.p.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.p.getContainer=function(){return this.range_.commonAncestorContainer};
_.p.compareBrowserRangeEndpoints=function(z,l,I){return this.range_.compareBoundaryPoints(I==1?l==1?_.v7.Range.START_TO_START:_.v7.Range.START_TO_END:l==1?_.v7.Range.END_TO_START:_.v7.Range.END_TO_END,z)};
_.p.isCollapsed=function(){return this.range_.collapsed};
_.p.select=function(z){this.selectInternal($q(_.e6(this.range_.startContainer)).getSelection(),z)};
_.p.selectInternal=function(z){z.removeAllRanges();z.addRange(this.range_)};
_.p.insertNode=function(z,l){var I=this.range_.cloneRange();I.collapse(l);I.insertNode(z);I.detach();return z};
_.p.collapse=function(z){this.range_.collapse(z)};_.Gs(xO,Lk);xO.prototype.selectInternal=function(z,l){!l||this.isCollapsed()?xO.superClass_.selectInternal.call(this,z,l):(z.collapse(this.range_.endContainer,this.range_.endOffset),z.extend(this.range_.startContainer,this.range_.startOffset))};_.Gs(OU,Lk);OU.prototype.compareBrowserRangeEndpoints=function(z,l,I){return OU.superClass_.compareBrowserRangeEndpoints.call(this,z,l,I)};
OU.prototype.selectInternal=function(z,l){l?z.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):z.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var bJu=function(z){return _.yk?new OU(z):_.Hx?new xO(z):new Lk(z)};var Ul=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},vEA;
_.Gs(Ul,jD0);vEA=function(z,l){var I=new Ul;I.browserRangeWrapper_=z;I.isReversed_=!!l;return I};
_.MgI=function(z){z=_.yk?new OU(lP_(z)):_.Hx?new xO(lP_(z)):new Lk(lP_(z));return vEA(z)};
_.a5=function(z,l,I,b){var v=new Ul;v.isReversed_=pyn(z,l,I,b);if(_.zu(z)&&!e1(z)){var M=z.parentNode;l=Array.prototype.indexOf.call(M.childNodes,z);z=M}_.zu(I)&&!e1(I)&&(M=I.parentNode,b=Array.prototype.indexOf.call(M.childNodes,I),I=M);v.isReversed_?(v.startNode_=I,v.startOffset_=b,v.endNode_=z,v.endOffset_=l):(v.startNode_=z,v.startOffset_=l,v.endNode_=I,v.endOffset_=b);return v};
_.p=Ul.prototype;_.p.clone=function(){var z=new Ul;z.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();z.startNode_=this.startNode_;z.startOffset_=this.startOffset_;z.endNode_=this.endNode_;z.endOffset_=this.endOffset_;z.isReversed_=this.isReversed_;return z};
_.p.JSC$11349_getType=function(){return"text"};
_.p.getBrowserRangeObject=function(){return Vw(this).range_};
_.p.getTextRangeCount=function(){return 1};
_.p.getTextRange=function(){return this};
var Vw=function(z){var l;if(!(l=z.browserRangeWrapper_)){l=z.JSC$11349_getStartNode();var I=z.JSC$11349_getStartOffset(),b=z.JSC$11349_getEndNode(),v=z.JSC$11349_getEndOffset();l=_.yk?new OU(IP0(l,I,b,v)):_.Hx?new xO(IP0(l,I,b,v)):new Lk(IP0(l,I,b,v));l=z.browserRangeWrapper_=l}return l};
_.p=Ul.prototype;_.p.getContainer=function(){return Vw(this).getContainer()};
_.p.JSC$11349_getStartNode=function(){return this.startNode_||(this.startNode_=Vw(this).range_.startContainer)};
_.p.JSC$11349_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Vw(this).range_.startOffset};
_.p.JSC$11349_getEndNode=function(){return this.endNode_||(this.endNode_=Vw(this).range_.endContainer)};
_.p.JSC$11349_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Vw(this).range_.endOffset};
_.p.isReversed=function(){return this.isReversed_};
_.p.JSC$11349_containsRange=function(z,l){if(z.JSC$11349_getType()=="text"){var I=Vw(this);z=Vw(z);l=l&&!z.isCollapsed();z=z.range_;I=l?I.compareBrowserRangeEndpoints(z,0,1)>=0&&I.compareBrowserRangeEndpoints(z,1,0)<=0:I.compareBrowserRangeEndpoints(z,0,0)>=0&&I.compareBrowserRangeEndpoints(z,1,1)<=0}else I=!1;return I};
_.p.isCollapsed=function(){return Vw(this).isCollapsed()};
_.p.JSC$11349_getText=function(){return Vw(this).range_.toString()};
_.p.__iterator__=function(){return new nk(this.JSC$11349_getStartNode(),this.JSC$11349_getStartOffset(),this.JSC$11349_getEndNode(),this.JSC$11349_getEndOffset())};
_.p.select=function(){Vw(this).select(this.isReversed_)};
_.p.JSC$11349_removeContents=function(){var z=Vw(this).range_;z.extractContents();if(z.startContainer.hasChildNodes()&&(z=z.startContainer.childNodes[z.startOffset])){var l=z.previousSibling;q8_(z)==""&&_.Bl(z);l&&q8_(l)==""&&_.Bl(l)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.p.insertNode=function(z,l){z=Vw(this).insertNode(z,l);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return z};
_.p.collapse=function(z){z=this.isReversed()?!z:z;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(z);z?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var DX0=function(){};
_.Gs(DX0,jD0);DX0.prototype.JSC$11349_containsRange=function(z,l){var I=WK(this);z=WK(z);return(l?V1:_.YsQ)(z,function(b){return V1(I,function(v){return v.JSC$11349_containsRange(b,l)})})};
DX0.prototype.insertNode=function(z,l){l?_.A5(z,this.JSC$11349_getStartNode()):_.Wc(z,this.JSC$11349_getEndNode());return z};var xX_,OJ0=Q6().JSC$9327_document_.documentElement;xX_=OJ0.requestFullscreen?"fullscreenchange":OJ0.webkitRequestFullscreen?"webkitfullscreenchange":OJ0.mozRequestFullScreen?"mozfullscreenchange":OJ0.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var gEj=function(){var z=Q6().JSC$9327_document_;return!!(z.webkitIsFullScreen||z.mozFullScreen||z.msFullscreenElement||z.fullscreenElement)};var jH=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Gs(jH,DX0);_.p=jH.prototype;_.p.clone=function(){var z=new jH;z.browserRanges_=_.ex(this.browserRanges_);return z};
_.p.JSC$11349_getType=function(){return"mutli"};
_.p.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.p.getTextRangeCount=function(){return this.browserRanges_.length};
_.p.getTextRange=function(z){this.ranges_[z]||(this.ranges_[z]=vEA(bJu(this.browserRanges_[z])));return this.ranges_[z]};
_.p.getContainer=function(){if(!this.container_){for(var z=[],l=this.getTextRangeCount(),I=0;I<l;I++)z.push(this.getTextRange(I).getContainer());this.container_=kcA.apply(null,z)}return this.container_};
var Jv=function(z){z.sortedRanges_||(z.sortedRanges_=WK(z),z.sortedRanges_.sort(function(l,I){var b=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();var v=I.JSC$11349_getStartNode();I=I.JSC$11349_getStartOffset();return b==v&&l==I?0:pyn(b,l,v,I)?1:-1}));
return z.sortedRanges_};
_.p=jH.prototype;_.p.JSC$11349_getStartNode=function(){return Jv(this)[0].JSC$11349_getStartNode()};
_.p.JSC$11349_getStartOffset=function(){return Jv(this)[0].JSC$11349_getStartOffset()};
_.p.JSC$11349_getEndNode=function(){return _.c7(Jv(this)).JSC$11349_getEndNode()};
_.p.JSC$11349_getEndOffset=function(){return _.c7(Jv(this)).JSC$11349_getEndOffset()};
_.p.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.p.JSC$11349_getText=function(){return WK(this).map(function(z){return z.JSC$11349_getText()}).join("")};
_.p.__iterator__=function(){return new zr(this)};
_.p.select=function(){var z=this.getWindow().getSelection();z.removeAllRanges();for(var l=this.getTextRangeCount(),I=0;I<l;I++)z.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.p.JSC$11349_removeContents=function(){WK(this).forEach(function(z){z.JSC$11349_removeContents()})};
_.p.collapse=function(z){if(!this.isCollapsed()){var l=z?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;l.collapse(z);this.ranges_=[l];this.sortedRanges_=[l];this.browserRanges_=[l.getBrowserRangeObject()]}};
var zr=function(z){this.iterators_=null;this.currentIdx_=0;z&&(this.iterators_=Jv(z).map(function(l){return _.mhj(l)}));
Av.call(this,z?this.JSC$11355_getStartNode():null,!1,!0)};
_.Gs(zr,JY_);_.p=zr.prototype;_.p.JSC$11355_getStartNode=function(){return this.iterators_[0].JSC$11355_getStartNode()};
_.p.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.p.next=function(){for(;this.currentIdx_<this.iterators_.length;){var z=this.iterators_[this.currentIdx_],l=z.next();if(l.done)this.currentIdx_++;else return w7(this,z.node,z.tagType,z.depth),l}return tg};
_.p.JSC$11347_copyFrom=function(z){this.iterators_=_.ex(z.iterators_);zr.superClass_.JSC$11347_copyFrom.call(this,z)};
_.p.clone=function(){var z=new zr(null);z.JSC$11347_copyFrom(this);return z};var G9j,pyn;_.Cj=function(){var z=window.getSelection();return z&&G9j(z)};
G9j=function(z){var l=!1;if(z.createRange)try{var I=z.createRange()}catch(v){return null}else if(z.rangeCount){if(z.rangeCount>1){I=new jH;l=z.rangeCount;for(var b=0;b<l;b++)I.browserRanges_.push(z.getRangeAt(b));return I}I=z.getRangeAt(0);l=pyn(z.anchorNode,z.anchorOffset,z.focusNode,z.focusOffset)}else return null;return vEA(bJu(I),l)};
_.lX=function(z,l){return _.a5(z,l,z,l)};
_.Ip=function(z,l,I,b){return _.a5(z,l,I,b)};
pyn=function(z,l,I,b){if(z==I)return b<l;var v;if(z.nodeType==1&&l)if(v=z.childNodes[l])z=v,l=0;else if(_.Wl(z,I))return!0;if(I.nodeType==1&&b)if(v=I.childNodes[b])I=v,b=0;else if(_.Wl(I,z))return!1;return(CKM(z,I)||l-b)>0};var bX=function(){_.oW.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.YN)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.YN)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.YN)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.YN)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.YN)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.YN)(this.dispatchProgressEvent_,this)};
_.Gs(bX,_.oW);bX.prototype.abort=function(){try{this.reader_.abort()}catch(z){throw new qN_(z,"aborting read");}};
bX.prototype.getError=function(){return this.reader_.error&&new qN_(this.reader_.error,"reading file")};
bX.prototype.dispatchProgressEvent_=function(z){this.dispatchEvent(new i2A(z,this))};
bX.prototype.disposeInternal=function(){bX.superClass_.disposeInternal.call(this);delete this.reader_};
var EE_=function(z){var l=new bX,I=NcI(l);l.reader_.readAsArrayBuffer(z);return I},u6A=function(z){var l=new bX,I=NcI(l);
l.reader_.readAsDataURL(z);return I},NcI=function(z){var l=new D9;
z.listen("loadend",_.tH(function(I,b){var v=b.reader_.result,M=b.getError();v==null||M?I.errback(M):I.callback(v);b.dispose()},l,z));
return l};var vo=function(){_.oW.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11389_eventHandler_=new _.GR(this);this.JSC$11389_isInitialized_=!1};
_.Gs(vo,_.oW);var ZJz=new _.QL("d"),HJ_=new _.QL("beforedragstart"),yPu=new _.QL("dragstart"),fPI=new _.QL("beforedragmove"),C5w=new _.QL("dragmove"),k9p=new _.QL("beforedragend"),RHp=new _.QL("dragend"),mX_=new _.QL("e");vo.prototype.isDragging=function(){return!!this.JSC$11389_dragger_};
var K2M=function(z,l){l.dlgGrowthDirection_=0;l.dlgDragHoverClass_=void 0;l.dlgDragPermission=0;z.dragLists_.push(l)},tgA=function(z,l){z.getHandleForDragItem_=l};
vo.prototype.init=function(){if(!this.JSC$11389_isInitialized_){for(var z=this.dragLists_.length,l=0;l<z;l++)for(var I=_.nN(this.dragLists_[l]),b=I.length,v=0;v<b;++v){var M=I[v],x=this.getHandleForDragItem_(M),g=_.UY(x);this.dragItemForHandle_[g]=M;this.dragItemHoverClasses_&&(this.JSC$11389_eventHandler_.listen(M,"mouseover",this.handleDragItemMouseover_),this.JSC$11389_eventHandler_.listen(M,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11389_eventHandler_.listen(x,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11389_eventHandler_.listen(x,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(M);this.JSC$11389_eventHandler_.listen(x,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11389_isInitialized_=!0}};
vo.prototype.disposeInternal=function(){this.JSC$11389_eventHandler_.dispose();for(var z=this.dragLists_.length,l=0;l<z;l++){var I=this.dragLists_[l];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Bc4(this);vo.superClass_.disposeInternal.call(this)};
var XyM=function(z,l){for(var I=z.dragLists_.length,b=0;b<I;b++){var v=z.dragLists_[b];v.dlgBounds_=J5k(v)}I=z.dragItems_.length;for(b=0;b<I;b++)v=z.dragItems_[b],v!=l&&(v.dlgBounds_=J5k(v))};
_.p=vo.prototype;
_.p.handlePotentialDragStart_=function(z){var l=_.UY(z.currentTarget);l=this.dragItemForHandle_[l];if(l.parentElement.dlgDragPermission!=2){this.currDragItem_=l;a:{l=this.currDragItem_;for(var I=l.cloneNode(!0),b=X7("TEXTAREA",l),v=X7("TEXTAREA",I),M=0;M<b.length;M++)v[M].value=b[M].value;switch(l.tagName){case "TR":l=_.ry("TABLE",null,_.ry("TBODY",null,I));break a;case "TD":case "TH":l=_.ry("TABLE",null,_.ry("TBODY",null,_.ry("TR",null,I)));break a;case "TEXTAREA":I.value=l.value;default:l=I;break a}l=
void 0}this.draggerEl_=l;this.draggerElClasses_&&MR(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.e6(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.ws(this.currDragItem_);l=this.draggerEl_;b=_.ws(l);if(I instanceof _.rs){var x=I.y;I=I.x}j1(l,l.offsetLeft+(I-b.x),l.offsetTop+(Number(x)-b.y));this.JSC$11389_dragger_=new _.JJ(this.draggerEl_);_.Xd0(this.JSC$11389_dragger_,this.hysteresisDistance_);
_.dZ(this.JSC$11389_dragger_,"start",this.handleDragStart_,!1,this);_.dZ(this.JSC$11389_dragger_,"end",this.handleDragEnd_,!1,this);_.dZ(this.JSC$11389_dragger_,"earlycancel",this.JSC$11391_cleanup_,!1,this);this.dispatchEvent(new MY(ZJz,this,z,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_));this.JSC$11389_dragger_.startDrag(z)}};
_.p.handleDragStart_=function(z){if(this.dispatchEvent(new MY(HJ_,this,z.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Hl_(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?MR(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var l=cy_(this.draggerEl_);this.draggerEl_.halfWidth=l.width/2;this.draggerEl_.halfHeight=l.height/2;l=this.draggerEl_.getBoundingClientRect();
var I=z.clientY,b=q54(this.JSC$11389_dragger_,z.clientX);if(b>l.right){var v=this.currDragItem_.getBoundingClientRect();this.JSC$11389_dragger_.deltaX=b-(b-v.left)/v.width*l.width}I=ipw(this.JSC$11389_dragger_,I);I>l.bottom&&(this.JSC$11389_dragger_.deltaY+=I-l.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";XyM(this,this.currDragItem_);this.currDragItem_.style.display="";_.dZ(this.JSC$11389_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new MY(yPu,
this,z.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_))}else z.preventDefault(),this.JSC$11391_cleanup_()};
_.p.handleDragMove_=function(z){var l=_.ws(this.draggerEl_);l=new _.rs(l.x+this.draggerEl_.halfWidth,l.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var b=J5k(I);if(qxA(l,b))break a}b=this.dragLists_.length;for(var v=0;v<b;v++){var M=this.dragLists_[v];if(M!=I&&qxA(l,M.dlgBounds_)){I=M;break a}}I=null}if(I){if(I==null)throw Error("Zd");b=0;v=!1;M=void 0;switch(I.dlgGrowthDirection_){case 0:b=l.y;var x=iJ_;var g=F2_;break;case 4:v=
!0;case 2:b=l.x;x=Q8u;g=F2_;break;case 5:v=!0;case 3:b=l.x,x=Yxw,g=Tcp}for(var G=null,u,Z=_.nN(I),H=Z.length,y=0;y<H;y++){var f=Z[y];if(f!=this.currDragItem_){var R=x(f.dlgBounds_);if(v){var F=cP_(f,l);M===void 0&&(M=F);g(b,R)&&(u==void 0||F<M||F==M&&(g(R,u)||R==u))&&(G=f,u=R);F<M&&(M=F)}else g(b,R)&&(u==void 0||g(R,u))&&(G=f,u=R)}}x=G!==null&&cP_(G,l)>M?null:G}else x=null;if(!this.dispatchEvent(new MY(fPI,this,z,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_,l,I,x)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.Hl_(this.currDragItem_)==x||I.insertBefore(this.currDragItem_,x),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.DY(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",g=this.dragLists_.length,u=0;u<g;u++)b=this.dragLists_[u],b.dlgDragHoverClass_&&_.Mt(b,b.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,XyM(this,this.currDragItem_));this.dispatchEvent(new MY(C5w,this,z,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_,
l,I,x));return!1};
_.p.JSC$11391_cleanup_=function(){Bc4(this);this.JSC$11389_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var z=this.dragLists_.length,l=0;l<z;l++)this.dragLists_[l].dlgBounds_=null;z=this.dragItems_.length;for(l=0;l<z;l++)this.dragItems_[l].dlgBounds_=null};
_.p.handleDragEnd_=function(z){if(!this.dispatchEvent(new MY(k9p,this,z,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_)))return!1;Bc4(this);this.dispatchEvent(new MY(RHp,this,z,this.currDragItem_,this.draggerEl_,this.JSC$11389_dragger_));this.JSC$11391_cleanup_();return!0};
var Bc4=function(z){_.p0(z.JSC$11389_dragger_);var l=z.draggerEl_&&z.draggerEl_.parentElement;z.draggerEl_&&_.Bl(z.draggerEl_);z.currDragItem_&&z.currDragItem_.style.display=="none"&&(z.origList_.insertBefore(z.currDragItem_,z.origNextItem_),z.currDragItem_.style.display="");z.currDragItemClasses_&&z.currDragItem_?t3_(z.currDragItem_,z.currDragItemClasses_||[]):z.currDragItem_&&(z.currDragItem_.style.visibility="");for(var I=z.dragLists_.length,b=0;b<I;b++){var v=z.dragLists_[b];v.dlgDragHoverClass_&&
_.Mt(v,v.dlgDragHoverClass_)}l&&z.dispatchEvent(new MY(mX_,z,null,z.currDragItem_,z.draggerEl_,z.JSC$11389_dragger_))};
_.p=vo.prototype;_.p.getHandleForDragItem_=function(z){return z};
_.p.handleDragItemMouseover_=function(z){MR(z.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemMouseout_=function(z){t3_(z.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemHandleMouseover_=function(z){MR(z.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.p.handleDragItemHandleMouseout_=function(z){t3_(z.currentTarget,this.dragItemHandleHoverClasses_||[])};
var qxA=function(z,l){return z.x>l.left&&z.x<l.left+l.width&&z.y>l.top&&z.y<l.top+l.height},cP_=function(z,l){z=z.dlgBounds_;
return Math.abs(l.y-(z.top+(z.height-1)/2))},iJ_=function(z){return z.top+z.height-1},Q8u=function(z){return z.left+z.width-1},Yxw=function(z){return z.left||0},F2_=function(z,l){return z<l},Tcp=function(z,l){return z>l},MY=function(z,l,I,b,v,M){_.Y9.call(this,z);
this.event=I;this.currDragItem=b;this.draggerEl=v;this.JSC$11393_dragger=M};
_.Gs(MY,_.Y9);_.Gs(Nr,_.Q9);var Sxz=new _.rs(0,0);Nr.prototype.JSC$11397_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Nr.prototype.JSC$11397_onMouseMove=function(z){var l=this.containerIsActuallyContent_?Sxz:F5(Q6(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(z.clientX+l.x,this.scrollBounds_.left,this.scrollBounds_.width):0,b=this.calculateScrollDelta(z.clientY+l.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=b;!(I=!I&&!b)&&(I=this.constrainScroll_)&&(I=z.clientX+l.x,z=z.clientY+l.y,l=this.containerBounds_,I=!(l.left<=I&&l.left+l.width>=
I&&l.top<=z&&l.top+l.height>=z));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Nr.prototype.calculateScrollDelta=function(z,l,I){var b=0;z<l?b=-8:z>l+I&&(b=8);return b};
Nr.prototype.disposeInternal=function(){Nr.superClass_.disposeInternal.call(this);this.JSC$11395_eventHandler_.dispose();this.scrollTimer_.dispose()};var dXI={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"}}},pR=dXI;pR=dXI;var Di={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 oEp=function(){},Jm=function(z){if(typeof z=="number"){var l=new oEp;
l.standardOffset_=z;var I=z;if(I==0)I="Etc/GMT";else{var b=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);b.push(Math.floor(I/60)%100);I%=60;I!=0&&b.push(":",_.Hc(I,2));I=b.join("")}l.timeZoneId_=I;I=z;I==0?I="UTC":(b=["UTC",I<0?"+":"-"],I=Math.abs(I),b.push(Math.floor(I/60)%100),I%=60,I!=0&&b.push(":",I),I=b.join(""));z=P5u(z);l.tzNames_=[I,I];l.tzNamesExt_={STD_LONG_NAME_GMT:z,STD_GENERIC_LOCATION:z};l.transitions_=[];return l}l=new oEp;l.timeZoneId_=z.id;l.standardOffset_=-z.std_offset;l.tzNames_=z.names;
l.tzNamesExt_=z.names_ext;l.transitions_=z.transitions;return l},P5u=function(z){var l=["GMT"];
l.push(z<=0?"+":"-");z=Math.abs(z);l.push(_.Hc(Math.floor(z/60)%100,2),":",_.Hc(z%60,2));return l.join("")},hHA=function(z,l){l=Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate(),l.getUTCHours(),l.getUTCMinutes())/36E5;
for(var I=0;I<z.transitions_.length&&l>=z.transitions_[I];)I+=2;return I==0?0:z.transitions_[I-1]},s8w=function(z,l){z=z.standardOffset_-hHA(z,l);
return z===-1440?0:z};var zN=function(z,l){this.patternParts_=[];this.JSC$11408_dateTimeSymbols_=l||tQ;typeof z=="number"?rPA(this,z):$X4(this,z)},eHA=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],xb=function(z){return z.getHours?z.getHours():0},$X4=function(z,l){for(jEu&&(l=l.replace(/\u200f/g,""));l;){for(var I=l,b=0;b<eHA.length;++b){var v=l.match(eHA[b]);
if(v){var M=v[0];l=l.substring(M.length);b==0&&(M=="''"?M="'":(M=M.substring(1,v[1]=="'"?M.length-1:M.length),M=M.replace(/''/g,"'")));z.patternParts_.push({text:M,type:b});break}}if(I===l)throw Error("$d`"+l);}};
zN.prototype.format=function(z,l){if(!z)throw Error("ae");var I=l?(z.getTimezoneOffset()-s8w(l,z))*6E4:0,b=I?new Date(z.getTime()+I):z,v=b;l&&b.getTimezoneOffset()!=z.getTimezoneOffset()&&(b=new Date(b.getTime()+(b.getTimezoneOffset()-z.getTimezoneOffset())*6E4),v=new Date(z.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var M=0;M<this.patternParts_.length;++M){var x=this.patternParts_[M].text;1==this.patternParts_[M].type?I.push(wyA(this,x,z,b,v,l)):I.push(x)}return I.join("")};
var rPA=function(z,l){if(l<4)var I=z.JSC$11408_dateTimeSymbols_.DATEFORMATS[l];else if(l<8)I=z.JSC$11408_dateTimeSymbols_.TIMEFORMATS[l-4];else if(l<12)I=z.JSC$11408_dateTimeSymbols_.DATETIMEFORMATS[l-8],I=I.replace("{1}",z.JSC$11408_dateTimeSymbols_.DATEFORMATS[l-8]),I=I.replace("{0}",z.JSC$11408_dateTimeSymbols_.TIMEFORMATS[l-8]);else if(l===12)I=z.JSC$11408_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(l===13)I=z.JSC$11408_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{rPA(z,10);return}$X4(z,I)},Oe=function(z,l){l=String(l);
z=z.JSC$11408_dateTimeSymbols_||tQ;if(z.ZERODIGIT!==void 0&&!VC5){for(var I=[],b=0;b<l.length;b++){var v=l.charCodeAt(b);I.push(48<=v&&v<=57?String.fromCharCode(z.ZERODIGIT+v-48):l.charAt(b))}l=I.join("")}return l},VC5=!1,jEu=!1,W2j=function(z,l,I,b){I=I.getFullYear();
I<=0&&b&&(I=1-I);return Oe(z,AP0(I,l))},AP0=function(z,l){l==2&&(z%=100);
z<0&&l++;return _.Hc(z,l)},gB=function(z){if(!(z.getHours&&z.getSeconds&&z.getMinutes))throw Error("be");
},nEj=function(z,l){gB(l);
l=xb(l);return z.JSC$11408_dateTimeSymbols_.AMPMS[l>=12&&l<24?1:0]},wyA=function(z,l,I,b,v,M){var x=l.length;
switch(l.charAt(0)){case "G":return I=b.getFullYear()>0?1:0,x>=4?z.JSC$11408_dateTimeSymbols_.ERANAMES[I]:z.JSC$11408_dateTimeSymbols_.ERAS[I];case "y":return W2j(z,x,b,!0);case "Y":return I=(new Date(Uoz(b.getFullYear(),b.getMonth(),b.getDate(),z.JSC$11408_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,z.JSC$11408_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),x==2&&(I%=100),Oe(z,AP0(I,x));case "u":return W2j(z,x,b,!1);case "M":a:switch(I=b.getMonth(),x){case 5:x=z.JSC$11408_dateTimeSymbols_.NARROWMONTHS[I];
break a;case 4:x=z.JSC$11408_dateTimeSymbols_.MONTHS[I];break a;case 3:x=z.JSC$11408_dateTimeSymbols_.SHORTMONTHS[I];break a;default:x=Oe(z,_.Hc(I+1,x))}return x;case "k":return gB(v),Oe(z,_.Hc(xb(v)||24,x));case "S":return Oe(z,(v.getMilliseconds()/1E3).toFixed(Math.min(3,x)).slice(2)+(x>3?_.Hc(0,x-3):""));case "E":return I=b.getDay(),x>=4?z.JSC$11408_dateTimeSymbols_.WEEKDAYS[I]:z.JSC$11408_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return nEj(z,v);case "b":return nEj(z,v);case "B":return nEj(z,
v);case "h":return gB(v),Oe(z,_.Hc(xb(v)%12||12,x));case "K":return gB(v),Oe(z,_.Hc(xb(v)%12,x));case "H":return gB(v),Oe(z,_.Hc(xb(v),x));case "c":a:switch(I=b.getDay(),x){case 5:x=z.JSC$11408_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:x=z.JSC$11408_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:x=z.JSC$11408_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:x=Oe(z,_.Hc(I,1))}return x;case "L":a:switch(I=b.getMonth(),x){case 5:x=z.JSC$11408_dateTimeSymbols_.STANDALONENARROWMONTHS[I];
break a;case 4:x=z.JSC$11408_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:x=z.JSC$11408_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:x=Oe(z,_.Hc(I+1,x))}return x;case "Q":return I=Math.floor(b.getMonth()/3),x<4?z.JSC$11408_dateTimeSymbols_.SHORTQUARTERS[I]:z.JSC$11408_dateTimeSymbols_.QUARTERS[I];case "d":return Oe(z,_.Hc(b.getDate(),x));case "m":return gB(v),Oe(z,_.Hc(v.getMinutes?v.getMinutes():0,x));case "s":return gB(v),Oe(z,_.Hc(v.getSeconds(),x));case "v":return(M||Jm(I.getTimezoneOffset())).timeZoneId_;
case "V":return z=M||Jm(I.getTimezoneOffset()),x<=2?z.timeZoneId_:hHA(z,I)>0?z.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?z.tzNamesExt_.DST_GENERIC_LOCATION:z.tzNamesExt_.DST_GENERIC_LOCATION:z.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?z.tzNamesExt_.STD_GENERIC_LOCATION:z.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return I=Uoz(v.getFullYear(),v.getMonth(),v.getDate(),z.JSC$11408_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,z.JSC$11408_dateTimeSymbols_.FIRSTDAYOFWEEK),Oe(z,_.Hc(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,x));case "z":return z=M||Jm(I.getTimezoneOffset()),x<4?z.tzNames_[hHA(z,I)>0?2:0]:z.tzNames_[hHA(z,I)>0?3:1];case "Z":return l=M||Jm(I.getTimezoneOffset()),x<4?(x=-s8w(l,I),z=[x<0?"-":"+"],x=Math.abs(x),z.push(_.Hc(Math.floor(x/60)%100,2),_.Hc(x%60,2)),x=z.join("")):x=Oe(z,P5u(s8w(l,I))),x;default:return""}};var L2I=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,UX_=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,aUQ=function(z){this.patternParts_=[];this.JSC$11417_dateTimeSymbols_=tQ;if(typeof z=="number"){z>11&&(z=10);if(z<4)var l=this.JSC$11417_dateTimeSymbols_.DATEFORMATS[z];else z<8?l=this.JSC$11417_dateTimeSymbols_.TIMEFORMATS[z-4]:(l=this.JSC$11417_dateTimeSymbols_.DATETIMEFORMATS[z-8],l=l.replace("{1}",this.JSC$11417_dateTimeSymbols_.DATEFORMATS[z-8]),l=l.replace("{0}",this.JSC$11417_dateTimeSymbols_.TIMEFORMATS[z-
8]));aPp(this,l)}else aPp(this,z)},aPp=function(z,l){for(var I=!1,b="",v=0;v<l.length;v++){var M=l.charAt(v);
if(L2I.test(M))for(b.length>0&&(z.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b=""),z.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});v<l.length-1&&l.charAt(v+1)==" ";)v++;else if(I)M=="'"?v+1<l.length&&l.charAt(v+1)=="'"?(b+="'",v++):I=!1:b+=M;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(M)>=0){b.length>0&&(z.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b="");for(var x=l.charAt(v),g=v+1;g<l.length&&l.charAt(g)==x;)g++;x=g-v;x<=0?g=!1:(g="MydhHmsSDkK".indexOf(M),
g=g>0||g==0&&x<3);z.patternParts_.push({text:M,count:x,abutStart:!1,numeric:g});v+=x-1}else M=="'"?v+1<l.length&&l.charAt(v+1)=="'"?(b+="'",v++):I=!0:b+=M}b.length>0&&z.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1});l=!1;for(I=0;I<z.patternParts_.length;I++)z.patternParts_[I].numeric?!l&&I+1<z.patternParts_.length&&z.patternParts_[I+1].numeric&&(l=!0,z.patternParts_[I].abutStart=!0):l=!1};
aUQ.prototype.parse=function(z,l,I){var b=!1,v=!1;I&&(b=I.predictive||!1,v=I.validate||!1);if(b)for(I=0;I<this.patternParts_.length;I++){var M=this.patternParts_[I];if(M.count>0&&("abBhHkKm".indexOf(M.text.charAt(0))<0||M.count>2||M.abutStart))throw Error("ce`"+M.text.charAt(0));}M=new Vgz;I=[0];M.dayPeriodIndex=-1;for(var x=0;x<this.patternParts_.length&&!(b&&I[0]>=z.length);x++){if(this.patternParts_[x].count==0){a:{var g=z;var G=I,u=this.patternParts_[x],Z=b;if(u.text.match(L2I)!=null){if(u=G[0],
j80(g,G),G[0]>u){g=!0;break a}}else{if(g.indexOf(u.text,G[0])==G[0]){G[0]+=u.text.length;g=!0;break a}if(Z&&u.text.indexOf(g.substring(G[0]))==0){G[0]+=g.length-G[0];g=!0;break a}}g=!1}if(g)continue;return 0}if(this.patternParts_[x].abutStart){a:{G=z;u=I;Z=x;var H=u[0],y=0;for(g=Z;g<this.patternParts_.length;g++){var f=this.patternParts_[g],R=f.count;if(R===0)break;if(g==Z&&(R-=y,y++,R==0)){g=0;break a}var F=g>Z&&f.numeric,Y=u[0];if(!JPI(this,G,u,f,R,M,!1)||F&&u[0]-Y<R)g=Z-1,u[0]=H}g-=Z}if(g<=0)return 0;
x+=g-1}else if(!JPI(this,z,I,this.patternParts_[x],0,M,b))return 0}a:{z=v;if(l==null)throw Error("de");M.era!=void 0&&M.year!=void 0&&M.era==0&&M.year>0&&(M.year=-(M.year-1));M.year!=void 0&&l.setFullYear(M.year);b=l.getDate();l.setDate(1);M.month!=void 0&&l.setMonth(M.month);M.day!=void 0?l.setDate(M.day):(v=tEH(l.getFullYear(),l.getMonth()),l.setDate(b>v?v:b));typeof l.setHours==="function"&&(M.hours==void 0&&(M.hours=l.getHours()),M.hours<12&&(M.ampm!=void 0&&M.ampm>0?M.hours+=12:M.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(M.dayPeriodName)||["night1","night2"].includes(M.dayPeriodName)&&M.hours>=6)&&(M.hours+=12)),l.setHours(M.hours));typeof l.setMinutes==="function"&&M.minutes!=void 0&&l.setMinutes(M.minutes);typeof l.setSeconds==="function"&&M.seconds!=void 0&&l.setSeconds(M.seconds);typeof l.setMilliseconds==="function"&&M.milliseconds!=void 0&&l.setMilliseconds(M.milliseconds);if(z&&(M.year&&M.year!=l.getFullYear()||M.month&&M.month!=
l.getMonth()||M.day&&M.day!=l.getDate()||M.hours&&M.hours>=24||M.minutes&&M.minutes>=60||M.seconds&&M.seconds>=60||M.milliseconds&&M.milliseconds>=1E3))l=!1;else{M.tzOffset!=void 0&&l.setTime(l.getTime()+(M.tzOffset-l.getTimezoneOffset())*60*1E3);M.ambiguousYear&&(z=new Date,z.setFullYear(z.getFullYear()-80),l.getTime()<z.getTime()&&l.setFullYear(z.getFullYear()+100));if(M.dayOfWeek!=void 0)if(M.day==void 0)M=(7+M.dayOfWeek-l.getDay())%7,M>3&&(M-=7),z=l.getMonth(),l.setDate(l.getDate()+M),l.getMonth()!=
z&&l.setDate(l.getDate()+(M>0?-7:7));else if(M.dayOfWeek!=l.getDay()){l=!1;break a}l=!0}}return l?I[0]:0};
var JPI=function(z,l,I,b,v,M,x){j80(l,I);if(b.numeric&&v>0&&I[0]+v>l.length)return!1;switch(b.text.charAt(0)){case "G":return Gr(l,I,[z.JSC$11417_dateTimeSymbols_.ERAS],function(g){return M.era=g}),!0;
case "M":case "L":return zK_(z,l,I,v,b,M);case "E":return Gr(l,I,[z.JSC$11417_dateTimeSymbols_.WEEKDAYS,z.JSC$11417_dateTimeSymbols_.SHORTWEEKDAYS],function(g){return M.dayOfWeek=g});
case "B":case "b":return v=[],z=[[].concat(z.JSC$11417_dateTimeSymbols_.AMPMS)],v.push("isAm"),v.push("isPm"),l=Gr(l,I,z,function(g){return M.dayPeriodIndex=g},x),M.dayPeriodName=v[M.dayPeriodIndex],x?l:!0;
case "a":return l=Gr(l,I,[z.JSC$11417_dateTimeSymbols_.AMPMS],function(g){return M.ampm=g},x),x?l:!0;
case "y":return lf0(z,l,I,b,v,M);case "Q":return Gr(l,I,[z.JSC$11417_dateTimeSymbols_.QUARTERS,z.JSC$11417_dateTimeSymbols_.SHORTQUARTERS],function(g){M.month=g*3;M.day=1});
case "d":return NY(z,l,I,b,v,function(g){M.day=g}),!0;
case "S":return IfM(z,l,I,v,M);case "h":case "K":case "H":case "k":return l=NY(z,l,I,b,v,function(g){M.hours=b.text.charAt(0)==="h"&&g===12?0:g},x),x?l:!0;
case "m":return l=NY(z,l,I,b,v,function(g){M.minutes=g},x),x?l:!0;
case "s":return NY(z,l,I,b,v,function(g){M.seconds=g}),!0;
case "z":case "Z":case "v":return bE4(z,l,I,M);default:return!1}},lf0=function(z,l,I,b,v,M){var x=I[0];
v=Ee(z,l,I,v);v===null&&(v=Ee(z,l,I,0,!0));if(v===null)return!1;v>=0&&I[0]-x==2&&b.count==2?(z=v,l=(new Date).getFullYear()-80,I=l%100,M.ambiguousYear=z==I,z+=Math.floor(l/100)*100+(z<I?100:0),M.year=z):M.year=v;return!0},zK_=function(z,l,I,b,v,M){return v.numeric&&NY(z,l,I,v,b,function(x){M.month=x-1})?!0:Gr(l,I,[z.JSC$11417_dateTimeSymbols_.MONTHS,
z.JSC$11417_dateTimeSymbols_.STANDALONEMONTHS,z.JSC$11417_dateTimeSymbols_.SHORTMONTHS,z.JSC$11417_dateTimeSymbols_.STANDALONESHORTMONTHS],function(x){M.month=x})},IfM=function(z,l,I,b,v){var M=I[0];
z=Ee(z,l,I,b);if(z===null)return!1;I=I[0]-M;v.milliseconds=I<3?z*Math.pow(10,3-I):Math.round(z/Math.pow(10,I-3));return!0},bE4=function(z,l,I,b){l.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=l.length)return b.tzOffset=0,!0;var v=I[0],M=Ee(z,l,I,0,!0);if(M===null)return!1;if(I[0]<l.length&&l.charAt(I[0])==":"){var x=M*60;I[0]++;M=Ee(z,l,I,0);if(M===null)return!1;x+=M}else x=M,x=x<24&&I[0]-v<=3?x*60:x%100+x/100*60;b.tzOffset=-x;return!0},NY=function(z,l,I,b,v,M,x){x=x||!1;
var g=I[0];z=Ee(z,l,I,v);if(z===null)return!1;if(x&&I[0]-g<b.count){if(I[0]<l.length)return!1;z*=Math.pow(10,b.count-(I[0]-g))}M(z);return!0},Gr=function(z,l,I,b,v){v=v||!1;
for(var M,x=0;x<I.length;x++){M=l;for(var g=I[x],G=v,u=0,Z=null,H=z.substring(M[0]).toLowerCase(),y=0;y<g.length;y++){var f=g[y].toLowerCase();if(G&&f.indexOf(H)==0){u=H.length;Z=y;break}g[y].length>u&&H.indexOf(f)==0&&(u=g[y].length,Z=y)}Z!==null&&(M[0]+=u);M=Z;if(M!==null)return b(M),!0}return!1},j80=function(z,l){(z=z.substring(l[0]).match(UX_))&&(l[0]+=z[0].length)},Ee=function(z,l,I,b,v){l=b>0?l.substring(0,I[0]+b):l;
v=v||!1;if(z.JSC$11417_dateTimeSymbols_.ZERODIGIT){b=[];for(var M=I[0];M<l.length;M++){var x=l.charCodeAt(M)-z.JSC$11417_dateTimeSymbols_.ZERODIGIT;b.push(0<=x&&x<=9?String.fromCharCode(x+48):l.charAt(M))}l=b.join("")}else l=l.substring(I[0]);z=l.match(new RegExp("^"+(v?"[+-]?":"")+"\\d+"));if(!z)return null;I[0]+=z[0].length;return parseInt(z[0],10)},Vgz=function(){};
Vgz.prototype.ambiguousYear=!1;var vCA;
vCA={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 MZ4={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}"]};
MZ4={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 phn=function(){var z={type:"unit",style:"narrow"};this.listType_=z&&z.type?z.type:"conjunction";this.listStyle_=z&&z.style?z.style:"long";this.listSymbols_=MZ4;z=0;switch(this.listStyle_){case "short":z=1;break;case "narrow":z=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[z];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[z];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[z];this.listEndPattern_=
this.listSymbols_.AND_END[z];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[z];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[z];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[z];this.listEndPattern_=this.listSymbols_.OR_END[z];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[z],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[z],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[z],this.listEndPattern_=this.listSymbols_.UNIT_END[z]}};
phn.prototype.format=function(z){return D80(this,z)};
var D80=function(z,l){var I=l.length;switch(I){case 0:return"";case 1:return String(l[0]);case 2:return z.listTwoPattern_.replace("{0}",String(l[0])).replace("{1}",String(l[1]))}for(var b=z.listStartPattern_.replace("{0}",String(l[0])).replace("{1}",String(l[1])),v=2;v<I-1;++v)b=z.listMiddlePattern_.replace("{0}",b).replace("{1}",String(l[v]));return z.listEndPattern_.replace("{0}",b).replace("{1}",String(l[I-1]))};var x8u={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"},OEw=x8u,gCp=x8u;gCp=OEw=x8u;var NZp,uX,Ho,fTu,Zi,G4A;
_.ah=function(z,l,I,b){var v;if(v=l){a:if(l&&l.length===3){for(v=0;v<3;v++){var M=l[v];if(M<"A"||M>"Z"&&M<"a"||M>"z"){v=!1;break a}}v=!0}else v=!1;v=!v}if(v)throw new TypeError("ee");this.intlCurrencyCode_=l?l.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=b||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_=uX(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof z==="number")switch(z){case 1:Zi(this,uX(this).DECIMAL_PATTERN);break;case 2:Zi(this,uX(this).SCIENTIFIC_PATTERN);break;case 3:Zi(this,uX(this).PERCENT_PATTERN);break;case 4:z=uX(this).CURRENCY_PATTERN;l=["0"];if(I=
Di[Ho(this)]){I=I[0]&7;if(I>0)for(l.push("."),b=0;b<I;b++)l.push("0");z=z.replace(/0.00/g,l.join(""))}Zi(this,z);break;case 5:G4A(this,1);break;case 6:G4A(this,2);break;default:throw Error("he");}else Zi(this,z)};
NZp=!1;uX=function(z){return z.overrideNumberFormatSymbols_||(NZp?gCp:OEw)};
Ho=function(z){return z.intlCurrencyCode_||uX(z).DEF_CURRENCY_CODE};
fTu=function(z,l){if(l>308)throw Error("ge`"+l);z.maximumFractionDigits_=l;return z};
Zi=function(z,l){var I=[0];z.positivePrefix_=ECu(z,l,I);for(var b=I[0],v=-1,M=0,x=0,g=0,G=-1,u=l.length,Z=!0;I[0]<u&&Z;I[0]++)switch(l.charAt(I[0])){case "#":x>0?g++:M++;G>=0&&v<0&&G++;break;case "0":if(g>0)throw Error("ne`"+l);x++;G>=0&&v<0&&G++;break;case ",":G>0&&z.groupingArray_.push(G);G=0;break;case ".":if(v>=0)throw Error("oe`"+l);v=M+x+g;break;case "E":if(z.useExponentialNotation_)throw Error("pe`"+l);z.useExponentialNotation_=!0;z.minExponentDigits_=0;I[0]+1<u&&l.charAt(I[0]+1)=="+"&&(I[0]++,
z.useSignForPositiveExponent_=!0);for(;I[0]+1<u&&l.charAt(I[0]+1)=="0";)I[0]++,z.minExponentDigits_++;if(M+x<1||z.minExponentDigits_<1)throw Error("qe`"+l);Z=!1;break;default:I[0]--,Z=!1}x==0&&M>0&&v>=0&&(x=v,x==0&&x++,g=M-x,M=x-1,x=1);if(v<0&&g>0||v>=0&&(v<M||v>M+x)||G==0)throw Error("re`"+l);g=M+x+g;z.maximumFractionDigits_=v>=0?g-v:0;v>=0&&(z.minimumFractionDigits_=M+x-v,z.minimumFractionDigits_<0&&(z.minimumFractionDigits_=0));z.minimumIntegerDigits_=(v>=0?v:g)-M;z.useExponentialNotation_&&(z.maximumIntegerDigits_=
M+z.minimumIntegerDigits_,z.maximumFractionDigits_==0&&z.minimumIntegerDigits_==0&&(z.minimumIntegerDigits_=1));z.groupingArray_.push(Math.max(0,G));z.decimalSeparatorAlwaysShown_=v==0||v==g;b=I[0]-b;z.positiveSuffix_=ECu(z,l,I);I[0]<l.length&&l.charAt(I[0])==";"?(I[0]++,z.multiplier_!=1&&(z.negativePercentSignExpected_=!0),z.negativePrefix_=ECu(z,l,I),I[0]+=b,z.negativeSuffix_=ECu(z,l,I)):(z.negativePrefix_+=z.positivePrefix_,z.negativeSuffix_+=z.positiveSuffix_)};
G4A=function(z,l){z.compactStyle_=l;Zi(z,uX(z).DECIMAL_PATTERN);z.minimumFractionDigits_=0;fTu(z,2);if(z.minimumFractionDigits_>0)throw Error("fe");z.significantDigits_=2};
_.ah.prototype.parse=function(z,l){l=l||[0];if(this.compactStyle_!==0)throw Error("ie");z=z.replace(/ |\u202f/g,"\u00a0");var I=z.indexOf(this.positivePrefix_,l[0])==l[0],b=z.indexOf(this.negativePrefix_,l[0])==l[0];I&&b&&(this.positivePrefix_.length>this.negativePrefix_.length?b=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?l[0]+=this.positivePrefix_.length:b&&(l[0]+=this.negativePrefix_.length);if(z.indexOf(uX(this).INFINITY,l[0])==l[0]){l[0]+=uX(this).INFINITY.length;var v=
Infinity}else{v=z;var M=!1,x=!1,g=!1,G=-1,u=1,Z=uX(this).DECIMAL_SEP,H=uX(this).GROUP_SEP,y=uX(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");H=H.replace(/\u202f/g,"\u00a0");for(var f="";l[0]<v.length;l[0]++){var R=v.charAt(l[0]),F=uaM(this,R);if(F>=0&&F<=9)f+=F,g=!0;else if(R==Z.charAt(0)){if(M||x)break;f+=".";M=!0}else if(R==H.charAt(0)&&("\u00a0"!=H.charAt(0)||l[0]+1<v.length&&uaM(this,v.charAt(l[0]+1))>=0)){if(M||x)break}else if(R==y.charAt(0)){if(x)break;f+="E";x=!0;G=l[0]}else if(R==
"+"||R=="-"){if(g&&G!=l[0]-1)break;f+=R}else if(this.multiplier_==1&&R==uX(this).PERCENT.charAt(0)){if(u!=1)break;u=100;if(g){l[0]++;break}}else if(this.multiplier_==1&&R==uX(this).PERMILL.charAt(0)){if(u!=1)break;u=1E3;if(g){l[0]++;break}}else break}this.multiplier_!=1&&(u=this.multiplier_);v=parseFloat(f)/u}if(I){if(z.indexOf(this.positiveSuffix_,l[0])!=l[0])return NaN;l[0]+=this.positiveSuffix_.length}else if(b){if(z.indexOf(this.negativeSuffix_,l[0])!=l[0])return NaN;l[0]+=this.negativeSuffix_.length}return b?
-v:v};
_.ah.prototype.format=function(z){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(z))return uX(this).NAN;var l=[];var I=z;if(this.compactStyle_==0)I=yh;else{I=Math.abs(I);var b=ZE4(this,I<=1?0:HEu(I)).divisorBase;I=ZE4(this,b+HEu(yxA(this,fR(I,-b)).intValue))}z=fR(z,-I.divisorBase);(b=z<0||z==0&&1/z<0)?I.negative_prefix?l.push(I.negative_prefix):(l.push(I.prefix),l.push(this.negativePrefix_)):(l.push(I.prefix),l.push(this.positivePrefix_));if(isFinite(z))if(z*=
b?-1:1,z*=this.multiplier_,this.useExponentialNotation_){var v=z;if(v==0)ffM(this,v,this.minimumIntegerDigits_,l),CYp(this,0,l);else{var M=Math.floor(Math.log(v)/Math.log(10)+2E-15);v=fR(v,-M);var x=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(x=M%this.maximumIntegerDigits_,x<0&&(x=this.maximumIntegerDigits_+x),v=fR(v,x),M-=x,x=1):this.minimumIntegerDigits_<1?(M++,v=fR(v,-1)):(M-=this.minimumIntegerDigits_-1,v=fR(v,this.minimumIntegerDigits_-
1));ffM(this,v,x,l);CYp(this,M,l)}}else ffM(this,z,this.minimumIntegerDigits_,l);else l.push(uX(this).INFINITY);b?I.negative_suffix?l.push(I.negative_suffix):(isFinite(z)&&l.push(I.suffix),l.push(this.negativeSuffix_)):(isFinite(z)&&l.push(I.suffix),l.push(this.positiveSuffix_));return l.join("")};
var yxA=function(z,l){var I=fR(l,z.maximumFractionDigits_);z.significantDigits_>0&&(I=k40(I,z.significantDigits_,z.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var b=Math.floor(fR(I,-z.maximumFractionDigits_));I=Math.floor(I-fR(b,z.maximumFractionDigits_));if(I<0||I>=fR(1,z.maximumFractionDigits_))b=Math.round(l),I=0}else b=l,I=0;return{intValue:b,fracValue:I}},ffM=function(z,l,I,b){if(z.minimumFractionDigits_>z.maximumFractionDigits_)throw Error("ke");
b||(b=[]);l=yxA(z,l);var v=l.intValue,M=l.fracValue,x=z.minimumFractionDigits_>0||M>0||!1;l=z.minimumFractionDigits_;x&&(l=z.minimumFractionDigits_);for(var g="",G=v;G>1E20;)g="0"+g,G=Math.round(fR(G,-1));g=G+g;var u=uX(z).DECIMAL_SEP;G=uX(z).ZERO_DIGIT.codePointAt(0);var Z=g.length,H=0;if(v>0||I>0){for(v=Z;v<I;v++)b.push(String.fromCodePoint(G));if(z.groupingArray_.length>=2)for(I=1;I<z.groupingArray_.length;I++)H+=z.groupingArray_[I];I=Z-H;if(I>0){v=z.groupingArray_;H=Z=0;for(var y,f=uX(z).GROUP_SEP,
R=g.length,F=0;F<R;F++)if(b.push(String.fromCodePoint(G+Number(g.charAt(F)))),R-F>1)if(y=v[H],F<I){var Y=I-F;(y===1||y>0&&Y%y===1)&&b.push(f)}else H<v.length&&(F===I?H+=1:y===F-I-Z+1&&(b.push(f),Z+=y,H+=1))}else{I=g;g=z.groupingArray_;v=uX(z).GROUP_SEP;y=I.length;f=[];for(Z=g.length-1;Z>=0&&y>0;Z--){H=g[Z];for(R=0;R<H&&y-R-1>=0;R++)f.push(String.fromCodePoint(G+Number(I.charAt(y-R-1))));y-=H;y>0&&f.push(v)}b.push.apply(b,f.reverse())}}else x||b.push(String.fromCodePoint(G));(z.decimalSeparatorAlwaysShown_||
x)&&b.push(u);M=String(M);x=M.split("e+");x.length==2&&(M=String(k40(parseFloat(x[0]),z.significantDigits_,1)),M=M.replace(".",""),M+=(0,_.JGu)("0",parseInt(x[1],10)-M.length+1));z.maximumFractionDigits_+1>M.length&&(M="1"+(0,_.JGu)("0",z.maximumFractionDigits_-M.length)+M);for(z=M.length;M.charAt(z-1)=="0"&&z>l+1;)z--;for(l=1;l<z;l++)b.push(String.fromCodePoint(G+Number(M.charAt(l))))},CYp=function(z,l,I){I.push(uX(z).EXP_SYMBOL);
l<0?(l=-l,I.push(uX(z).MINUS_SIGN)):z.useSignForPositiveExponent_&&I.push(uX(z).PLUS_SIGN);l=""+l;for(var b=uX(z).ZERO_DIGIT,v=l.length;v<z.minExponentDigits_;v++)I.push(b);z=b.codePointAt(0)-RKj;for(b=0;b<l.length;b++)I.push(String.fromCodePoint(z+l.codePointAt(b)))},uaM=function(z,l){l=l.codePointAt(0);
if(48<=l&&l<58)return l-48;z=uX(z).ZERO_DIGIT.codePointAt(0);return z<=l&&l<z+10?l-z:-1},RKj="0".codePointAt(0),ECu=function(z,l,I){for(var b="",v=!1,M=l.length;I[0]<M;I[0]++){var x=l.charAt(I[0]);
if(x=="'")I[0]+1<M&&l.charAt(I[0]+1)=="'"?(I[0]++,b+="'"):v=!v;else if(v)b+=x;else switch(x){case "#":case "0":case ",":case ".":case ";":return b;case "\u00a4":if(I[0]+1<M&&l.charAt(I[0]+1)=="\u00a4")I[0]++,b+=Ho(z);else switch(z.currencyStyle_){case 0:x=Ho(z);b+=x in Di?Di[x][1]:x;break;case 2:x=Ho(z);var g=Di[x];b+=g?x==g[1]?x:x+" "+g[1]:x;break;case 1:x=Ho(z),b+=x in Di?Di[x][2]:x}break;case "%":if(!z.negativePercentSignExpected_&&z.multiplier_!=1)throw Error("le");if(z.negativePercentSignExpected_&&
z.multiplier_!=100)throw Error("me");z.multiplier_=100;z.negativePercentSignExpected_=!1;b+=uX(z).PERCENT;break;case "\u2030":if(!z.negativePercentSignExpected_&&z.multiplier_!=1)throw Error("le");if(z.negativePercentSignExpected_&&z.multiplier_!=1E3)throw Error("me");z.multiplier_=1E3;z.negativePercentSignExpected_=!1;b+=uX(z).PERMILL;break;default:b+=x}}return b},yh={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},ZE4=function(z,l){z=z.compactStyle_==1?pR.COMPACT_DECIMAL_SHORT_PATTERN:pR.COMPACT_DECIMAL_LONG_PATTERN;z==null&&(z=pR.COMPACT_DECIMAL_SHORT_PATTERN);if(l<3)return yh;l=Math.min(14,l);var I=z[fR(1,l)];for(--l;!I&&l>=3;)I=z[fR(1,l)],l--;if(!I)return yh;I=I.other;var b=z="",v=I.indexOf(";");v>=0&&(I=I.substring(0,v),v=I.substring(v+1))&&(b=/([^0]*)(0+)(.*)/.exec(v),z=b[1],b=b[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:l+
1-(I[2].length-1),negative_prefix:z,negative_suffix:b,prefix:I[1],suffix:I[3]}:yh:yh},HEu=function(z){if(!isFinite(z))return z>0?z:0;
for(var l=0;(z/=10)>=1;)l++;return l},fR=function(z,l){if(!z||!isFinite(z)||l==0)return z;
z=String(z).split("e");return parseFloat(z[0]+"e"+(parseInt(z[1]||0,10)+l))},m8n=function(z,l){return z&&isFinite(z)?fR(Math.round(fR(z,l)),-l):z},k40=function(z,l,I){if(!z)return z;
l=l-HEu(z)-1;return l<-I?m8n(z,-I):m8n(z,l)};var Kh0=function(z){return z%10==1&&z%100!=11?"one":z%10==2&&z%100!=12?"two":z%10==3&&z%100!=13?"few":"other"},tZI=Kh0;
tZI=Kh0;var BZA=function(z,l){var I=z|0;if(void 0===l){l=Math;var b=l.min,v=z+"",M=v.indexOf(".");l=b.call(l,M===-1?0:v.length-M-1,3)}b=Math.pow(10,l);z={v:l,f:(z*b|0)%b};return I==1&&z.v==0?"one":"other"},Up=BZA;
Up=BZA;var Fhz=function(z){this.JSC$11460_pattern_=z;this.parsedPattern_=this.literals_=this.initialLiterals_=null;z=OEw;var l=pR;if(XhA!==z||qiu!==l)XhA=z,qiu=l,iE_=new _.ah(1);this.numberFormatter_=iE_},XhA=null,qiu=null,iE_=null,Qez=RegExp("'([{}#].*?)'","g"),Yiu=RegExp("''","g");
Fhz.prototype.format=function(z){if(this.JSC$11460_pattern_){this.initialLiterals_=[];var l=TZu(this,this.JSC$11460_pattern_);this.parsedPattern_=cxI(this,l);this.JSC$11460_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.ex(this.initialLiterals_),l=[],SiA(this,this.parsedPattern_,z,!1,l),z=l.join("");this.literals_.length>0;)z=z.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else z="";return z};
var SiA=function(z,l,I,b,v){for(var M=0;M<l.length;M++)switch(l[M].type){case 4:v.push(l[M].value);break;case 3:var x=l[M].value;var g=z,G=v,u=I[x];u===void 0?G.push("Undefined parameter - "+x):(g.literals_.push(u),G.push(g.buildPlaceholder_(g.literals_)));break;case 2:x=l[M].value;g=z;G=I;u=b;var Z=v,H=x.argumentIndex;G[H]===void 0?Z.push("Undefined parameter - "+H):(H=x[G[H]],H===void 0&&(H=x.other),SiA(g,H,G,u,Z));break;case 0:x=l[M].value;d8p(z,x,I,Up,b,v);break;case 1:x=l[M].value,d8p(z,x,I,
tZI,b,v)}},d8p=function(z,l,I,b,v,M){var x=l.argumentIndex,g=l.argumentOffset,G=+I[x];
isNaN(G)?M.push("Undefined or invalid parameter - "+x):(g=G-g,x=l[I[x]],x===void 0&&(b=b(Math.abs(g)),x=l[b],x===void 0&&(x=l.other)),l=[],SiA(z,x,I,v,l),I=l.join(""),v?M.push(I):(z=z.numberFormatter_.format(g),M.push(I.replace(/#/g,z))))},TZu=function(z,l){var I=z.initialLiterals_,b=z.buildPlaceholder_.bind(z);
l=l.replace(Yiu,function(){I.push("'");return b(I)});
return l=l.replace(Qez,function(v,M){I.push(M);return b(I)})},oC0=function(z){var l=0,I=[],b=[],v=/[{}]/g;
v.lastIndex=0;for(var M;M=v.exec(z);){var x=M.index;M[0]=="}"?(I.pop(),I.length==0&&(M={type:1},M.value=z.substring(l,x),b.push(M),l=x+1)):(I.length==0&&(l=z.substring(l,x),l!=""&&b.push({type:0,value:l}),l=x+1),I.push("{"))}z=z.substring(l);z!=""&&b.push({type:0,value:z});return b},PYM=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,hKw=/^\s*(\w+)\s*,\s*selectordinal\s*,/,se4=/^\s*(\w+)\s*,\s*select\s*,/,cxI=function(z,l){var I=[];
l=oC0(l);for(var b=0;b<l.length;b++){var v={};if(0==l[b].type)v.type=4,v.value=l[b].value;else if(1==l[b].type){var M=l[b].value;switch(PYM.test(M)?0:hKw.test(M)?1:se4.test(M)?2:/^\s*\w+\s*/.test(M)?3:5){case 2:v.type=2;v.value=rx0(z,l[b].value);break;case 0:v.type=0;v.value=$8u(z,l[b].value);break;case 1:v.type=1;v.value=eKI(z,l[b].value);break;case 3:v.type=3,v.value=l[b].value}}I.push(v)}return I},rx0=function(z,l){var I="";
l=l.replace(se4,function(g,G){I=G;return""});
var b={};b.argumentIndex=I;l=oC0(l);for(var v=0;v<l.length;){var M=l[v].value;v++;var x=void 0;1==l[v].type&&(x=cxI(z,l[v].value));b[M.replace(/\s/g,"")]=x;v++}return b},$8u=function(z,l){var I="",b=0;
l=l.replace(PYM,function(G,u,Z){I=u;Z&&(b=parseInt(Z,10));return""});
var v={};v.argumentIndex=I;v.argumentOffset=b;l=oC0(l);for(var M=0;M<l.length;){var x=l[M].value;M++;var g=void 0;1==l[M].type&&(g=cxI(z,l[M].value));v[x.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;M++}return v},eKI=function(z,l){var I="";
l=l.replace(hKw,function(g,G){I=G;return""});
var b={};b.argumentIndex=I;b.argumentOffset=0;l=oC0(l);for(var v=0;v<l.length;){var M=l[v].value;v++;var x=void 0;1==l[v].type&&(x=cxI(z,l[v].value));b[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=x;v++}return b};
Fhz.prototype.buildPlaceholder_=function(z){return"\ufddf_"+(z.length-1).toString(10)+"_"};var PVY=function(){var z={style:1},l=whM;this.style_=(z==null?void 0:z.style)||0;this.durationSymbols_=l||vCA},AxM=function(z,l){switch(l){default:case "years":return z.durationSymbols_.YEAR;
case "months":return z.durationSymbols_.MONTH;case "weeks":return z.durationSymbols_.WEEK;case "days":return z.durationSymbols_.DAY;case "hours":return z.durationSymbols_.HOUR;case "minutes":return z.durationSymbols_.MINUTE;case "seconds":return z.durationSymbols_.SECOND}},CR=function(z,l,I){a:{I=AxM(z,I);
switch(z.style_){case 1:if(I.LONG!=void 0){z=I.LONG;break a}case 2:if(I.NARROW!=void 0){z=I.NARROW;break a}default:z=I.SHORT;break a}z=void 0}return z?(new Fhz("{DURATION_VALUE,plural,"+z+"}")).format({DURATION_VALUE:l}):""};
PVY.prototype.format=function(z){var l=[],I=z.years,b=z.months,v=z.weeks,M=z.days,x=z.hours,g=z.minutes;z=z.seconds;I!=null&&l.push(CR(this,I,"years"));b!=null&&l.push(CR(this,b,"months"));v!=null&&l.push(CR(this,v,"weeks"));M!=null&&l.push(CR(this,M,"days"));x!=null&&l.push(CR(this,x,"hours"));g!=null&&l.push(CR(this,g,"minutes"));z!=null&&l.push(CR(this,z,"seconds"));return(new phn).format(l)};var Wh_;
Wh_={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 z6Y=function(){this.rdtfSymbols_=nCj||Wh_;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
z6Y.prototype.format=function(z,l){a:{l=Lhn(this,l);switch(this.style_){case 2:if(l.NARROW!=void 0){l=l.NARROW;break a}case 1:if(l.SHORT!=void 0){l=l.SHORT;break a}default:l=l.LONG;break a}l=void 0}if(!this.alwaysNumeric_&&l&&l.R&&l.R[""+z])z=l.R[""+z];else if(l){var I=Math.abs(z);z=(new Fhz("{N,plural,"+(z>0||z==0&&1/z==Infinity?l.F:l.P)+"}")).format({N:I})}else z="";return z};
var Lhn=function(z,l){switch(l){default:case 0:return z.rdtfSymbols_.YEAR;case 1:return z.rdtfSymbols_.QUARTER;case 2:return z.rdtfSymbols_.MONTH;case 3:return z.rdtfSymbols_.WEEK;case 4:return z.rdtfSymbols_.DAY;case 5:return z.rdtfSymbols_.HOUR;case 6:return z.rdtfSymbols_.MINUTE;case 7:return z.rdtfSymbols_.SECOND}};var U8_=function(z,l,I,b,v,M,x,g){this.x0=z;this.y0=l;this.x1=I;this.y1=b;this.x2=v;this.y2=M;this.x3=x;this.y3=g};
U8_.prototype.clone=function(){return new U8_(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
U8_.prototype.equals=function(z){return this.x0==z.x0&&this.y0==z.y0&&this.x1==z.x1&&this.y1==z.y1&&this.x2==z.x2&&this.y2==z.y2&&this.x3==z.x3&&this.y3==z.y3};
var afn=function(z,l){if(l==0)return z.x0;if(l==1)return z.x3;var I=oq(z.x0,z.x1,l),b=oq(z.x1,z.x2,l);z=oq(z.x2,z.x3,l);I=oq(I,b,l);b=oq(b,z,l);return oq(I,b,l)},VZp=function(z,l){var I=(l-z.x0)/(z.x3-z.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var b=0,v=1,M=0,x=0;x<8;x++){M=afn(z,I);var g=(afn(z,I+1E-6)-M)/1E-6;if(Math.abs(M-l)<1E-6)return I;if(Math.abs(g)<1E-6)break;else M<l?b=I:v=I,I-=(M-l)/g}for(x=0;Math.abs(M-l)>1E-6&&x<8;x++)M<l?(b=I,I=(I+v)/2):(v=I,I=(I+b)/2),M=afn(z,I);return I};var kb=function(){_.oW.call(this);this.JSC$11481_name_="closure_frame"+jeu++;this.iframesForDisposal_=[];Jx_[this.JSC$11481_name_]=this},Rp;
_.Gs(kb,_.oW);var Jx_={},jeu=0,zS0=function(z,l){var I=Q6(z);Mm_(l,function(b,v){Array.isArray(b)||(b=[b]);_.UZ(b,function(M){M=I.JSC$9329_createDom("INPUT",{type:"hidden",name:v,value:M});z.appendChild(M)})})};
_.p=kb.prototype;_.p.JSC$11483_form_=null;_.p.JSC$11483_iframe_=null;_.p.iframeName_=null;_.p.nextIframeId_=0;_.p.JSC$11483_active_=!1;_.p.complete_=!1;_.p.success_=!1;_.p.lastContent_=null;_.p.JSC$11483_lastErrorCode_=0;_.p.iframeDisposalTimer_=null;
_.p.send=function(z,l,I,b){if(this.JSC$11483_active_)throw Error("se");z=new _.lJ(z);l=l?l.toUpperCase():"GET";I&&_.Km(z);Rp||(Rp=_.ry("FORM"),Rp.acceptCharset="utf-8",I=Rp.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(Rp));this.JSC$11483_form_=Rp;l=="GET"&&zS0(this.JSC$11483_form_,z.JSC$10032_queryData_);b&&zS0(this.JSC$11483_form_,b);I=z.toString();I=YIS(I);b=this.JSC$11483_form_;I=_.WQ(d0(I));I!==void 0&&
(b.action=I);this.JSC$11483_form_.method=l;lYA(this);IYp(this)};
_.p.abort=function(z){if(this.JSC$11483_active_){var l=mj(this);if(l)if(cn(l))l.removeAllListeners(void 0);else if(l=Si(l)){var I=0,b;for(b in l.listeners)for(var v=l.listeners[b].concat(),M=0;M<v.length;++M)T4(v[M])&&++I}this.success_=this.JSC$11483_active_=this.complete_=!1;this.JSC$11483_lastErrorCode_=z||7;this.dispatchEvent("abort");bK_(this)}};
_.p.disposeInternal=function(){this.JSC$11483_active_&&this.abort();kb.superClass_.disposeInternal.call(this);this.JSC$11483_iframe_&&vlw(this);IYp(this);this.JSC$11483_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11483_form_=null;this.JSC$11483_lastErrorCode_=0;delete Jx_[this.JSC$11481_name_]};
_.p.isComplete=function(){return this.complete_};
_.p.isSuccess=function(){return this.success_};
_.p.isActive=function(){return this.JSC$11483_active_};
_.p.getResponseText=function(){return this.lastContent_};
_.p.getLastError=function(){return _.djw(this.JSC$11483_lastErrorCode_)};
var lYA=function(z){z.JSC$11483_active_=!0;z.complete_=!1;z.JSC$11483_lastErrorCode_=0;z.iframeName_=z.JSC$11481_name_+"_"+(z.nextIframeId_++).toString(36);z.JSC$11483_iframe_=Q6(z.JSC$11483_form_).JSC$9329_createDom("IFRAME",{name:z.iframeName_,id:z.iframeName_});var l=z.JSC$11483_iframe_.style;l.visibility="hidden";l.width=l.height="10px";l.display="none";_.yk?l.marginTop=l.marginLeft="-10px":(l.position="absolute",l.top=l.left="-10px");Q6(z.JSC$11483_form_).JSC$9327_document_.body.appendChild(z.JSC$11483_iframe_);
l=z.iframeName_+"_inner";var I=R1_(z.JSC$11483_iframe_);if(document.baseURI){var b=CY(l);b='<head><base href="'+CY(document.baseURI)+'"></head><body><iframe id="'+b+'" name="'+b+'"></iframe>';b=au(b)}else b=CY(l),b=au('<body><iframe id="'+b+'" name="'+b+'"></iframe>');I.write(VR(b));_.dZ(I.getElementById(l),"load",z.onIframeLoaded_,!1,z);b=X7("TEXTAREA",z.JSC$11483_form_);for(var v=0,M=b.length;v<M;v++){var x=b[v].value;q8_(b[v])!=x&&(_.LN(b[v],x),b[v].value=x)}b=I.importNode(z.JSC$11483_form_,!0);
b.target=l;b.action=z.JSC$11483_form_.action;I.body.appendChild(b);v=X7("SELECT",z.JSC$11483_form_);M=X7("SELECT",b);x=0;for(var g=v.length;x<g;x++)for(var G=X7("OPTION",v[x]),u=X7("OPTION",M[x]),Z=0,H=G.length;Z<H;Z++)u[Z].selected=G[Z].selected;v=X7("INPUT",z.JSC$11483_form_);M=X7("INPUT",b);x=0;for(g=v.length;x<g;x++)if(v[x].type=="file"&&v[x].value!=M[x].value){z.JSC$11483_form_.target=l;b=z.JSC$11483_form_;break}try{z.errorHandled_=!1,b.submit(),I.close(),_.Hx&&setTimeout(z.testForFirefoxSilentError_.bind(z),
250)}catch(y){_.dO(I.getElementById(l),"load",z.onIframeLoaded_,!1,z),I.close(),KR(z,2)}};
kb.prototype.onIframeLoaded_=function(){_.dO(mj(this),"load",this.onIframeLoaded_,!1,this);try{var z=this.JSC$11483_iframe_?R1_(mj(this)):null;this.complete_=!0;this.JSC$11483_active_=!1;try{var l=z.body;this.lastContent_=l.textContent||l.innerText}catch(v){var I=1}var b;I||typeof this.errorChecker_!="function"||(b=this.errorChecker_(z))&&(I=4);I?KR(this,I):(this.success_=!0,this.JSC$11483_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),bK_(this))}catch(v){KR(this,1)}};
var KR=function(z,l){z.errorHandled_||(z.success_=!1,z.JSC$11483_active_=!1,z.complete_=!0,z.JSC$11483_lastErrorCode_=l,z.dispatchEvent("complete"),z.dispatchEvent("error"),bK_(z),z.errorHandled_=!0)},bK_=function(z){vlw(z);
IYp(z);z.JSC$11483_form_=null;z.dispatchEvent("ready")},vlw=function(z){var l=z.JSC$11483_iframe_;
l&&(l.onreadystatechange=null,l.onload=null,l.onerror=null,z.iframesForDisposal_.push(l));z.iframeDisposalTimer_&&(clearTimeout(z.iframeDisposalTimer_),z.iframeDisposalTimer_=null);_.Hx?z.iframeDisposalTimer_=setTimeout(z.disposeIframes_.bind(z),2E3):z.disposeIframes_();z.JSC$11483_iframe_=null;z.iframeName_=null};
kb.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var z=this.iframesForDisposal_.pop();_.Bl(z)}};
var IYp=function(z){z.JSC$11483_form_&&z.JSC$11483_form_==Rp&&_.wy(z.JSC$11483_form_)},mj=function(z){return z.JSC$11483_iframe_?R1_(z.JSC$11483_iframe_).getElementById(z.iframeName_+"_inner"):null};
kb.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11483_active_){var z=this.JSC$11483_iframe_?R1_(mj(this)):null;z&&!XRQ(z,"documentUri")?(_.dO(mj(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?KR(this,3):KR(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.ti=function(z){return z=="\r"||z=="\n"||z==" "||z=="\t"};var MOz;_.Bo=function(z){this.errorMessage_=null;this.result_=[];this.JSC$11485_buffer_="";this.stack_=[];this.JSC$11485_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!z||!z.deliverMessageAsRawString)};
MOz={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.Bo.prototype.isInputValid=function(){return this.streamState_!=3};
_.Bo.prototype.done=function(){return this.streamState_===2};
var XZ=function(z,l,I){z.streamState_=3;z.errorMessage_="The stream is broken @"+z.JSC$11485_pos_+"/"+I+". With input:\n"+l;throw Error(z.errorMessage_);};
_.Bo.prototype.acceptsBinaryInput=function(){return!1};
_.Bo.prototype.parse=function(z){function l(){for(;y<z.length;)if(_.ti(z[y]))y++,M.JSC$11485_pos_++;else break;return y<u}
function I(){for(var R;;){R=z[y++];if(!R)break;M.JSC$11485_pos_++;switch(M.state_){case G.INIT:R==="{"?M.state_=G.OBJECT_OPEN:R==="["?M.state_=G.ARRAY_OPEN:_.ti(R)||XZ(M,z,y);continue;case G.KEY_START:case G.OBJECT_OPEN:if(_.ti(R))continue;if(M.state_===G.KEY_START)x.push(G.KEY_END);else if(R==="}"){v("{}");M.state_=b();continue}else x.push(G.OBJECT_END);R==='"'?M.state_=G.STRING:XZ(M,z,y);continue;case G.KEY_END:case G.OBJECT_END:if(_.ti(R))continue;R===":"?(M.state_===G.OBJECT_END&&(x.push(G.OBJECT_END),
M.depth_++),M.state_=G.VALUE):R==="}"?(M.depth_--,v(),M.state_=b()):R===","?(M.state_===G.OBJECT_END&&x.push(G.OBJECT_END),M.state_=G.KEY_START):XZ(M,z,y);continue;case G.ARRAY_OPEN:case G.VALUE:if(_.ti(R))continue;if(M.state_===G.ARRAY_OPEN)if(M.depth_++,M.state_=G.VALUE,R==="]"){M.depth_--;if(M.depth_===0){M.state_=G.ARRAY_END;return}v("[]");M.state_=b();continue}else x.push(G.ARRAY_END);R==='"'?M.state_=G.STRING:R==="{"?M.state_=G.OBJECT_OPEN:R==="["?M.state_=G.ARRAY_OPEN:R==="t"?M.state_=G.TRUE1:
R==="f"?M.state_=G.FALSE1:R==="n"?M.state_=G.NULL1:R!=="-"&&("0123456789".indexOf(R)!==-1?M.state_=G.NUM_DIGIT:XZ(M,z,y));continue;case G.ARRAY_END:if(R===",")x.push(G.ARRAY_END),M.state_=G.VALUE,M.depth_===1&&(H=y);else if(R==="]"){M.depth_--;if(M.depth_===0)return;v();M.state_=b()}else if(_.ti(R))continue;else XZ(M,z,y);continue;case G.STRING:var F=y;a:for(;;){for(;M.unicodeCount_>0;)if(R=z[y++],M.unicodeCount_===4?M.unicodeCount_=0:M.unicodeCount_++,!R)break a;if(R==='"'&&!M.slashed_){M.state_=
b();break}if(R==="\\"&&!M.slashed_&&(M.slashed_=!0,R=z[y++],!R))break;if(M.slashed_)if(M.slashed_=!1,R==="u"&&(M.unicodeCount_=1),R=z[y++])continue;else break;g.lastIndex=y;R=g.exec(z);if(!R){y=z.length+1;break}y=R.index+1;R=z[R.index];if(!R)break}M.JSC$11485_pos_+=y-F;continue;case G.TRUE1:if(!R)continue;R==="r"?M.state_=G.TRUE2:XZ(M,z,y);continue;case G.TRUE2:if(!R)continue;R==="u"?M.state_=G.TRUE3:XZ(M,z,y);continue;case G.TRUE3:if(!R)continue;R==="e"?M.state_=b():XZ(M,z,y);continue;case G.FALSE1:if(!R)continue;
R==="a"?M.state_=G.FALSE2:XZ(M,z,y);continue;case G.FALSE2:if(!R)continue;R==="l"?M.state_=G.FALSE3:XZ(M,z,y);continue;case G.FALSE3:if(!R)continue;R==="s"?M.state_=G.FALSE4:XZ(M,z,y);continue;case G.FALSE4:if(!R)continue;R==="e"?M.state_=b():XZ(M,z,y);continue;case G.NULL1:if(!R)continue;R==="u"?M.state_=G.NULL2:XZ(M,z,y);continue;case G.NULL2:if(!R)continue;R==="l"?M.state_=G.NULL3:XZ(M,z,y);continue;case G.NULL3:if(!R)continue;R==="l"?M.state_=b():XZ(M,z,y);continue;case G.NUM_DECIMAL_POINT:R===
"."?M.state_=G.NUM_DIGIT:XZ(M,z,y);continue;case G.NUM_DIGIT:if("0123456789.eE+-".indexOf(R)!==-1)continue;else y--,M.JSC$11485_pos_--,M.state_=b();continue;default:XZ(M,z,y)}}}
function b(){var R=x.pop();return R!=null?R:G.VALUE}
function v(R){M.depth_>1||(R||(R=H===-1?M.JSC$11485_buffer_+z.substring(Z,y):z.substring(H,y)),M.deliverMessageAsRawString_?M.result_.push(R):M.result_.push(JSON.parse(R)),H=y)}
for(var M=this,x=M.stack_,g=M.stringInputPattern_,G=MOz,u=z.length,Z=0,H=-1,y=0;y<u;)switch(M.streamState_){case 3:return XZ(M,z,y),null;case 2:return l()&&XZ(M,z,y),null;case 0:if(l()){var f=z[y++];M.JSC$11485_pos_++;if(f==="["){M.streamState_=1;Z=y;M.state_=G.ARRAY_OPEN;continue}else XZ(M,z,y)}return null;case 1:return I(),M.depth_===0&&M.state_==G.ARRAY_END?(M.streamState_=2,M.JSC$11485_buffer_=z.substring(y)):M.JSC$11485_buffer_=H===-1?M.JSC$11485_buffer_+z.substring(Z):z.substring(H),M.result_.length>
0?(f=M.result_,M.result_=[],f):null}return null};_.Gs(_.EU,QI);uM.prototype.getValue=function(){return this.JSC$11493_value_};
uM.prototype.clone=function(){return new uM(this.JSC$11493_key_,this.JSC$11493_value_)};var qY=function(z){this.nodes_=[];if(z)a:{if(z instanceof qY){var l=z.getKeys();z=z.getValues();if(this.getCount()<=0){for(var I=this.nodes_,b=0;b<l.length;b++)I.push(new uM(l[b],z[b]));break a}}else l=_.h7.getKeys(z),z=_.h7.getValues(z);for(I=0;I<l.length;I++)this.insert(l[I],z[I])}};
_.p=qY.prototype;_.p.insert=function(z,l){var I=this.nodes_;I.push(new uM(z,l));z=I.length-1;l=this.nodes_;for(I=l[z];z>0;){var b=z-1>>1;if(l[b].JSC$11493_key_>I.JSC$11493_key_)l[z]=l[b],z=b;else break}l[z]=I};
_.p.remove=function(){var z=this.nodes_,l=z.length,I=z[0];if(!(l<=0)){if(l==1)z.length=0;else{z[0]=z.pop();z=0;l=this.nodes_;for(var b=l.length,v=l[z];z<b>>1;){var M=z*2+1,x=z*2+2;M=x<b&&l[x].JSC$11493_key_<l[M].JSC$11493_key_?x:M;if(l[M].JSC$11493_key_>v.JSC$11493_key_)break;l[z]=l[M];z=M}l[z]=v}return I.getValue()}};
_.p.peek=function(){var z=this.nodes_;if(z.length!=0)return z[0].getValue()};
_.p.getValues=function(){for(var z=this.nodes_,l=[],I=z.length,b=0;b<I;b++)l.push(z[b].getValue());return l};
_.p.getKeys=function(){for(var z=this.nodes_,l=[],I=z.length,b=0;b<I;b++)l.push(z[b].JSC$11493_key_);return l};
_.p.containsValue=function(z){return this.nodes_.some(function(l){return l.getValue()==z})};
_.p.containsKey=function(z){return this.nodes_.some(function(l){return l.JSC$11493_key_==z})};
_.p.clone=function(){return new qY(this)};
_.p.getCount=function(){return this.nodes_.length};
_.p.isEmpty=function(){return this.nodes_.length===0};
_.p.clear=function(){this.nodes_.length=0};_.iX=function(z,l){this.JSC$11499_map_={};this.JSC$11499_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("ka");for(var b=0;b<I;b+=2)this.set(arguments[b],arguments[b+1])}else z&&this.addAll(z)};
_.p=_.iX.prototype;_.p.getCount=function(){return this.size};
_.p.getValues=function(){FZ(this);for(var z=[],l=0;l<this.JSC$11499_keys_.length;l++)z.push(this.JSC$11499_map_[this.JSC$11499_keys_[l]]);return z};
_.p.getKeys=function(){FZ(this);return this.JSC$11499_keys_.concat()};
_.p.containsKey=function(z){return this.has(z)};
_.p.has=function(z){return Qh(this.JSC$11499_map_,z)};
_.p.containsValue=function(z){for(var l=0;l<this.JSC$11499_keys_.length;l++){var I=this.JSC$11499_keys_[l];if(Qh(this.JSC$11499_map_,I)&&this.JSC$11499_map_[I]==z)return!0}return!1};
_.p.equals=function(z,l){if(this===z)return!0;if(this.size!=z.getCount())return!1;l=l||prM;FZ(this);for(var I,b=0;I=this.JSC$11499_keys_[b];b++)if(!l(this.get(I),z.get(I)))return!1;return!0};
var prM=function(z,l){return z===l};
_.iX.prototype.isEmpty=function(){return this.size==0};
_.iX.prototype.clear=function(){this.JSC$11499_map_={};this.version_=this.size=this.JSC$11499_keys_.length=0};
_.iX.prototype.remove=function(z){return this.delete(z)};
_.iX.prototype.delete=function(z){return Qh(this.JSC$11499_map_,z)?(delete this.JSC$11499_map_[z],--this.size,this.version_++,this.JSC$11499_keys_.length>2*this.size&&FZ(this),!0):!1};
var FZ=function(z){if(z.size!=z.JSC$11499_keys_.length){for(var l=0,I=0;l<z.JSC$11499_keys_.length;){var b=z.JSC$11499_keys_[l];Qh(z.JSC$11499_map_,b)&&(z.JSC$11499_keys_[I++]=b);l++}z.JSC$11499_keys_.length=I}if(z.size!=z.JSC$11499_keys_.length){l={};for(b=I=0;I<z.JSC$11499_keys_.length;){var v=z.JSC$11499_keys_[I];Qh(l,v)||(z.JSC$11499_keys_[b++]=v,l[v]=1);I++}z.JSC$11499_keys_.length=b}};
_.p=_.iX.prototype;_.p.get=function(z,l){return Qh(this.JSC$11499_map_,z)?this.JSC$11499_map_[z]:l};
_.p.set=function(z,l){Qh(this.JSC$11499_map_,z)||(this.size+=1,this.JSC$11499_keys_.push(z),this.version_++);this.JSC$11499_map_[z]=l};
_.p.addAll=function(z){if(z instanceof _.iX)for(var l=z.getKeys(),I=0;I<l.length;I++)this.set(l[I],z.get(l[I]));else for(l in z)this.set(l,z[l])};
_.p.forEach=function(z,l){for(var I=this.getKeys(),b=0;b<I.length;b++){var v=I[b],M=this.get(v);z.call(l,M,v,this)}};
_.p.clone=function(){return new _.iX(this)};
_.p.transpose=function(){for(var z=new _.iX,l=0;l<this.JSC$11499_keys_.length;l++){var I=this.JSC$11499_keys_[l];z.set(this.JSC$11499_map_[I],I)}return z};
_.p.keys=function(){return KI4(this.__iterator__(!0)).toEs6()};
_.p.values=function(){return KI4(this.__iterator__(!1)).toEs6()};
_.p.entries=function(){var z=this;return $on(this.keys(),function(l){return[l,z.get(l)]})};
_.p.__iterator__=function(z){FZ(this);var l=0,I=this.version_,b=this,v=new K9;v.next=function(){if(I!=b.version_)throw Error("te");if(l>=b.JSC$11499_keys_.length)return tg;var M=b.JSC$11499_keys_[l++];return BG(z?M:b.JSC$11499_map_[M])};
return v};
var Qh=function(z,l){return Object.prototype.hasOwnProperty.call(z,l)};var xtI=function(){this.JSC$11502_map_=new _.iX;this.JSC$11502_head_=new Dt_("");this.JSC$11502_head_.next=this.JSC$11502_head_.prev=this.JSC$11502_head_},OKn=function(z,l){if(l=z.JSC$11502_map_.get(l))l.remove(),z.insert_(l);
return l};
_.p=xtI.prototype;_.p.get=function(z,l){return(z=OKn(this,z))?z.value:l};
_.p.set=function(z,l){var I=OKn(this,z);I?I.value=l:(I=new Dt_(z,l),this.JSC$11502_map_.set(z,I),this.insert_(I))};
_.p.peek=function(){return this.JSC$11502_head_.next.value};
_.p.shift=function(){return glA(this,this.JSC$11502_head_.next)};
_.p.pop=function(){return glA(this,this.JSC$11502_head_.prev)};
_.p.remove=function(z){return(z=this.JSC$11502_map_.get(z))?(this.removeNode(z),!0):!1};
_.p.removeNode=function(z){z.remove();this.JSC$11502_map_.remove(z.key)};
_.p.getCount=function(){return this.JSC$11502_map_.getCount()};
_.p.isEmpty=function(){return this.JSC$11502_map_.isEmpty()};
_.p.getKeys=function(){return this.map(function(z,l){return l})};
_.p.getValues=function(){return this.map(function(z){return z})};
_.p.contains=function(z){return this.some(function(l){return l==z})};
_.p.containsKey=function(z){return this.JSC$11502_map_.containsKey(z)};
_.p.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11502_head_.prev)};
_.p.forEach=function(z,l){for(var I=this.JSC$11502_head_.next;I!=this.JSC$11502_head_;I=I.next)z.call(l,I.value,I.key,this)};
_.p.map=function(z,l){for(var I=[],b=this.JSC$11502_head_.next;b!=this.JSC$11502_head_;b=b.next)I.push(z.call(l,b.value,b.key,this));return I};
_.p.some=function(z,l){for(var I=this.JSC$11502_head_.next;I!=this.JSC$11502_head_;I=I.next)if(z.call(l,I.value,I.key,this))return!0;return!1};
_.p.every=function(z,l){for(var I=this.JSC$11502_head_.next;I!=this.JSC$11502_head_;I=I.next)if(!z.call(l,I.value,I.key,this))return!1;return!0};
_.p.insert_=function(z){z.next=this.JSC$11502_head_.next;z.prev=this.JSC$11502_head_;this.JSC$11502_head_.next=z;for(z.next.prev=z;this.getCount()>100;)this.removeNode(this.JSC$11502_head_.prev)};
var glA=function(z,l){z.JSC$11502_head_!=l&&z.removeNode(l);return l.value},Dt_=function(z,l){this.key=z;
this.value=l};
Dt_.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var GHn=function(){qY.apply(this,arguments)};
_.m(GHn,qY);GHn.prototype.enqueue=function(z,l){this.insert(z,l)};var No_=function(){var z=Error();z.name="SecurityError";throw z;},jHG=function(){return{get opener(){return null},
get closed(){return!0},get location(){No_()},get document(){No_()},postMessage:function(){},
close:function(){},
focus:function(){}}};var zox={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 bd$={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 Elp={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(bd$).join("|");var uVw=function(){function z(g){g.substr(-1)!==";"&&(g+=";");return x(g)}
for(var l=Object.keys(Elp).sort(IIk),I=Object.keys(bd$).sort(IIk),b=0,v=0;b<I.length;b++)l[v]===I[b]?(I[b]+=";?",v++):I[b]+=";";var M=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),x=Mip();return function(g){return String(g).replace(M,z)}}();/*

 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 ZK_={};var HKp=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"),yNM=/[\\&]/,fYA=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),COu=RegExp('[&<>"]',"g"),kHw=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),RS_=function(z){return z.charCodeAt(0)===92?z.charAt(1):uVw(z)},mtu=function(z){return yNM.test(z)?z.replace(fYA,RS_):z},K9w=function(z){try{var l,I="";
if(typeof v!=="string"){var b=v;var v=";/?:@&=+$,-_.!~*'()#"}typeof b==="undefined"&&(b=!0);var M,x=ZK_[v];if(x)var g=x;else{x=ZK_[v]=[];for(M=0;M<128;M++){var G=String.fromCharCode(M);/^[0-9a-z]$/i.test(G)?x.push(G):x.push("%"+("0"+M.toString(16).toUpperCase()).slice(-2))}for(M=0;M<v.length;M++)x[v.charCodeAt(M)]=v[M];g=x}var u=0;for(l=z.length;u<l;u++){var Z=z.charCodeAt(u);if(b&&Z===37&&u+2<l&&/^[0-9a-f]{2}$/i.test(z.slice(u+1,u+3)))I+=z.slice(u,u+3),u+=2;else if(Z<128)I+=g[Z];else if(Z>=55296&&
Z<=57343){if(Z>=55296&&Z<=56319&&u+1<l){var H=z.charCodeAt(u+1);if(H>=56320&&H<=57343){I+=encodeURIComponent(z[u]+z[u+1]);u++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(z[u])}return I}catch(y){return z}},tO_=function(z){switch(z){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return z}},Yb=function(z,l){return COu.test(z)?l?z.replace(kHw,tO_):z.replace(COu,tO_):z};/*

 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 Tr;if(String.fromCodePoint)Tr=function(z){try{return String.fromCodePoint(z)}catch(l){if(l instanceof RangeError)return String.fromCharCode(65533);throw l;}};
else{var Bon=String.fromCharCode,Xr_=Math.floor;Tr=function(){var z=[],l=-1,I=arguments.length;if(!I)return"";for(var b="";++l<I;){var v=Number(arguments[l]);if(!isFinite(v)||v<0||v>1114111||Xr_(v)!==v)return String.fromCharCode(65533);if(v<=65535)z.push(v);else{v-=65536;var M=(v>>10)+55296;v=v%1024+56320;z.push(M,v)}if(l+1===I||z.length>16384)b+=Bon.apply(null,z),z.length=0}return b}};var qWM=function(z){this.root=this.current=z;this.entering=!0};
qWM.prototype.next=function(){var z=this.current,l=this.entering;if(z===null)return null;a:switch(z._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 I=!0;break a;default:I=!1}l&&I?z._firstChild?(this.current=z._firstChild,this.entering=!0):this.entering=!1:z===this.root?this.current=null:z._next===null?(this.current=
z._parent,this.entering=!1):(this.current=z._next,this.entering=!0);return{entering:l,node:z}};
var fQ=function(z,l){this._type=z;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=l;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
fQ.prototype.appendChild=function(z){z.unlink();z._parent=this;this._lastChild?(this._lastChild._next=z,z._prev=this._lastChild):this._firstChild=z;this._lastChild=z};
fQ.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 iKM=function(z,l){l.unlink();l._next=z._next;l._next&&(l._next._prev=l);l._prev=z;z._next=l;l._parent=z._parent;l._next||(l._parent._lastChild=l)};
fQ.prototype.insertBefore=function(z){z.unlink();z._prev=this._prev;z._prev&&(z._prev._next=z);z._next=this;this._prev=z;z._parent=this._parent;z._prev||(z._parent._firstChild=z)};
_.vP.Object.defineProperties(fQ.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(z){this._literal=z}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(z){this._destination=z}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(z){this._title=z}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(z){this._info=z}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(z){this._level=z}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(z){this._listData.type=z}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(z){this._listData.tight=z}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(z){this._listData.start=z}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(z){this._onEnter=z}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(z){this._onExit=z}}});var pnH=/[ \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,
Dg1={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 F9M=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]/),
Q2p=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),YW_=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Top=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),cN_=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),SWA=/`+/,dt4=/^`+/,olj=/\.\.\./g,POn=/--+/g,hS4=/^<([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])?)*)>/,
s2j=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,rNu=/^ *(?:\n *)?/,$tI=/^[ \t\n\x0b\x0c\x0d]/,eSu=/[ \t\n\x0b\x0c\x0d]+/g,wrA=/^\s/,AN_=/ *$/,W9_=/^ */,nl4=/^ *(?:\n|$)/,L9u=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),UtI=/^[^\n`\[\]\\!<&*_'"]+/m,co=function(z){var l=new fQ("text");l._literal=z;return l},SF=function(z){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=z||{}};
SF.prototype.match=function(z){z=z.exec(this.subject.slice(this.pos));if(z===null)return null;this.pos+=z.index+z[0].length;return z[0]};
SF.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var dB=function(z){z.match(rNu);return!0},aYu=function(z,l,I){var b=0;
var v=z.pos;if(l===39||l===34)b++,z.pos++;else for(;z.peek()===l;)b++,z.pos++;if(b===0)b=null;else{var M=v===0?"\n":z.subject.charAt(v-1);var x=z.peek();x=x===-1?"\n":Tr(x);var g=wrA.test(x);x=F9M.test(x);var G=wrA.test(M);var u=F9M.test(M);M=!g&&!(x&&!G&&!u);g=!G&&!(u&&!g&&!x);l===95?(G=M&&(!g||u),x=g&&(!M||x)):(G=l===39||l===34?M&&!g:M,x=g);z.pos=v;b={numdelims:b,can_open:G,can_close:x}}if(!b)return!1;v=b.numdelims;x=z.pos;z.pos+=v;x=l===39?"\u2019":l===34?"\u201c":z.subject.slice(x,z.pos);x=co(x);
I.appendChild(x);z.delimiters={cc:l,numdelims:v,origdelims:v,node:x,previous:z.delimiters,next:null,can_open:b.can_open,can_close:b.can_close};z.delimiters.previous!==null&&(z.delimiters.previous.next=z.delimiters);return!0},VOw=function(z,l){l.previous!==null&&(l.previous.next=l.next);
l.next===null?z.delimiters=l.previous:l.next.previous=l.previous},j2_=function(z,l){var I,b,v=[],M=!1;
v[95]=l;v[42]=l;v[39]=l;v[34]=l;for(I=z.delimiters;I!==null&&I.previous!==l;)I=I.previous;for(;I!==null;){var x=I.cc;if(I.can_close){var g=I.previous;for(b=!1;g!==null&&g!==l&&g!==v[x];){M=(I.can_open||g.can_close)&&(g.origdelims+I.origdelims)%3===0;if(g.cc===I.cc&&g.can_open&&!M){b=!0;break}g=g.previous}var G=I;if(x===42||x===95)if(b){var u=I.numdelims>=2&&g.numdelims>=2?2:1;var Z=g.node;var H=I.node;g.numdelims-=u;I.numdelims-=u;Z._literal=Z._literal.slice(0,Z._literal.length-u);H._literal=H._literal.slice(0,
H._literal.length-u);var y=new fQ(u===1?"emph":"strong");for(u=Z._next;u&&u!==H;){var f=u._next;u.unlink();y.appendChild(u);u=f}iKM(Z,y);u=g;f=I;u.next!==f&&(u.next=f,f.previous=u);g.numdelims===0&&(Z.unlink(),VOw(z,g));I.numdelims===0&&(H.unlink(),g=I.next,VOw(z,I),I=g)}else I=I.next;else x===39?(I.node._literal="\u2019",b&&(g.node._literal="\u2018"),I=I.next):x===34&&(I.node._literal="\u201d",b&&(g.node.literal="\u201c"),I=I.next);b||M||(v[x]=G.previous,G.can_open||VOw(z,G))}else I=I.next}for(;z.delimiters!==
null&&z.delimiters!==l;)VOw(z,z.delimiters)},JNu=function(z){z=z.match(Q2p);
return z===null?null:mtu(z.substr(1,z.length-2))},zy4=function(z){var l=z.match(YW_);
if(l===null){l=z.pos;for(var I=0,b;(b=z.peek())!==-1;)if(b===92)z.pos+=1,z.peek()!==-1&&(z.pos+=1);else if(b===40)z.pos+=1,I+=1;else if(b===41)if(I<1)break;else z.pos+=1,--I;else if($tI.exec(Tr(b))!==null)break;else z.pos+=1;l=z.subject.substr(l,z.pos-l);return K9w(mtu(l))}return K9w(mtu(l.substr(1,l.length-2)))},lXw=function(z){z=z.match(L9u);
return z===null||z.length>1001?0:z.length},IX4=function(z,l,I,b){z.brackets!==null&&(z.brackets.bracketAfter=!0);
z.brackets={node:l,previous:z.brackets,previousDelimiter:z.delimiters,index:I,image:b,active:!0}},bYw=function(z,l){var I;
return(I=z.match(UtI))?(z.options.smart?l.appendChild(co(I.replace(olj,"\u2026").replace(POn,function(b){var v=0,M=0;b.length%3===0?M=b.length/3:b.length%2===0?v=b.length/2:b.length%3===2?(v=1,M=(b.length-2)/3):(v=2,M=(b.length-4)/3);b="";var x;for(x=0;x<M;x++)b+="\u2014";for(x=0;x<v;x++)b+="\u2013";return b}))):l.appendChild(co(I)),!0):!1},vU4=function(z,l,I){z.subject=l;
z.pos=0;l=z.pos;var b=lXw(z);if(b===0)return 0;var v=z.subject.substr(0,b);if(z.peek()===58)z.pos++;else return z.pos=l,0;dB(z);b=zy4(z);if(b===null||b.length===0)return z.pos=l,0;var M=z.pos;dB(z);var x=JNu(z);x===null&&(x="",z.pos=M);var g=!0;z.match(nl4)===null&&(x===""?g=!1:(x="",z.pos=M,g=z.match(nl4)!==null));if(!g)return z.pos=l,0;v=xg7(v);if(v==="")return z.pos=l,0;I[v]||(I[v]={destination:b,title:x});return z.pos-l},M9_=function(z,l){var I,b=z.peek();
if(b===-1)return!1;switch(b){case 10:z.pos+=1;if((I=l._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var v=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(AN_,"");l.appendChild(new fQ(v?"linebreak":"softbreak"))}else l.appendChild(new fQ("softbreak"));z.match(W9_);I=!0;break;case 92:I=z.subject;z.pos+=1;z.peek()===10?(z.pos+=1,I=new fQ("linebreak"),l.appendChild(I)):Top.test(I.charAt(z.pos))?(l.appendChild(co(I.charAt(z.pos))),z.pos+=1):l.appendChild(co("\\"));
I=!0;break;case 96:a:if(I=z.match(dt4),I===null)I=!1;else{v=z.pos;for(var M;(M=z.match(SWA))!==null;)if(M===I){M=new fQ("code");M._literal=z.subject.slice(v,z.pos-I.length).trim().replace(eSu," ");l.appendChild(M);I=!0;break a}z.pos=v;l.appendChild(co(I));I=!0}break;case 42:case 95:I=aYu(z,b,l);break;case 39:case 34:I=z.options.smart&&aYu(z,b,l);break;case 91:I=z.pos;z.pos+=1;v=co("[");l.appendChild(v);IX4(z,v,I,!1);I=!0;break;case 33:I=z.pos;z.pos+=1;z.peek()===91?(z.pos+=1,v=co("!["),l.appendChild(v),
IX4(z,v,I+1,!0)):l.appendChild(co("!"));I=!0;break;case 93:var x,g=!1,G;z.pos+=1;var u=z.pos;v=z.brackets;if(v===null)l.appendChild(co("]"));else if(v.active){I=v.image;var Z=z.pos;z.peek()===40&&(z.pos++,dB(z)&&(M=zy4(z))!==null&&dB(z)&&($tI.test(z.subject.charAt(z.pos-1))&&(x=JNu(z)),1)&&dB(z)&&z.peek()===41?(z.pos+=1,g=!0):z.pos=Z);if(!g){var H=z.pos,y=lXw(z);y>2?G=z.subject.slice(H,H+y):v.bracketAfter||(G=z.subject.slice(v.index,u));y===0&&(z.pos=Z);G&&(G=z.refmap[xg7(G)])&&(M=G.destination,x=
G.title,g=!0)}if(g){u=new fQ(I?"image":"link");u._destination=M;u._title=x||"";for(M=v.node._next;M;)x=M._next,M.unlink(),u.appendChild(M),M=x;l.appendChild(u);j2_(z,v.previousDelimiter);z.brackets=z.brackets.previous;v.node.unlink();if(!I)for(v=z.brackets;v!==null;)v.image||(v.active=!1),v=v.previous}else z.brackets=z.brackets.previous,z.pos=u,l.appendChild(co("]"))}else l.appendChild(co("]")),z.brackets=z.brackets.previous;I=!0;break;case 60:(I=z.match(hS4))?(I=I.slice(1,I.length-1),v=new fQ("link"),
v._destination=K9w("mailto:"+I),v._title="",v.appendChild(co(I)),l.appendChild(v),I=!0):(I=z.match(s2j))?(I=I.slice(1,I.length-1),v=new fQ("link"),v._destination=K9w(I),v._title="",v.appendChild(co(I)),l.appendChild(v),I=!0):I=!1;I||(I=z.match(HKp),I===null?I=!1:(v=new fQ("html_inline"),v._literal=I,l.appendChild(v),I=!0));break;case 38:(I=z.match(cN_))?(l.appendChild(co(uVw(I))),I=!0):I=!1;break;default:I=bYw(z,l)}I||(z.pos+=1,l.appendChild(co(Tr(b))));return!0};
SF.prototype.parseInlines=function(z){this.subject=z._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;M9_(this,z););z._string_content=null;j2_(this,null)};
SF.prototype.parse=SF.prototype.parseInlines;var pUu=[/./,/^<(?: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")],Dvp=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],xvM=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,OYu=/^[#`~*+_=<>0-9-\|]|\|/,gUw=/[^ \t\f\v\r\n]/,GSj=/^[*+-]/,N5_=/^(\d{1,9})([.)])/,EUA=/^#{1,6}(?:[ \t]+|$)/,u1w=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ZY_=/^(?:`{3,}|~{3,})(?= *$)/,HYu=/^(?:=+|-+)[ \t]*$/,yR4=/\r\n|\n|\r/,g9G=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,GLu=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,fX0={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(z){return z!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(z,l){for(z=l._firstChild;z;){if(OdS(z)&&z._next){l._listData.tight=!1;break}for(var I=z._firstChild;I;){if(OdS(I)&&(z._next||I._next)){l._listData.tight=!1;break}I=I._next}z=z._next}},
canContain:function(z){return z==="item"},
acceptsLines:!1},block_quote:{continue:function(z){var l=z.currentLine;if(z.indented||HP(l,z.nextNonspace)!==62)return 1;op(z);Po(z,1,!1);ZV(HP(l,z.offset))&&Po(z,1,!0);return 0},
finalize:function(){},
canContain:function(z){return z!=="item"},
acceptsLines:!1},item:{continue:function(z,l){if(z.blank){if(l._firstChild==null)return 1;op(z)}else if(z.indent>=l._listData.markerOffset+l._listData.padding)Po(z,l._listData.markerOffset+l._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(z){return z!=="item"&&!NO5(z)},
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(z,l){var I=z.currentLine,b=z.indent;if(l._isFenced){if((b=b<=3&&I.charAt(z.nextNonspace)===l._fenceChar&&I.slice(z.nextNonspace).match(ZY_))&&b[0].length>=l._fenceLength)return z.finalize(l,z.lineNumber),2;for(l=l._fenceOffset;l>0&&ZV(HP(I,z.offset));)Po(z,1,!0),l--}else if(b>=4)Po(z,4,!0);else if(z.blank)op(z);else return 1;return 0},
finalize:function(z,l){if(l._isFenced){var I=l._string_content,b=I.indexOf("\n");z=I.slice(0,b);I=I.slice(b+1);l.info=mtu(z.trim());l._literal=I}else l._literal=l._string_content.replace(/(\n *)+$/,"\n");l._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(z,l){return!z.blank||l._htmlBlockType!==6&&l._htmlBlockType!==7?0:1},
finalize:function(z,l){l._literal=l._string_content.replace(/(\n *)+$/,"");l._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(z){return z.blank?1:0},
finalize:function(z,l){for(var I,b=!1;HP(l._string_content,0)===91&&(I=vU4(z.inlineParser,l._string_content,z.refmap));)l._string_content=l._string_content.slice(I),b=!0;b&&!gUw.test(l._string_content)&&l.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(z){return y0(z.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(z){return z=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(z,l){if(!l._rowIsDelimiter){z=l._isHeader?"th":"td";for(var I=l._parent._tableColumns,b=l._string_content,v=0,M="",x,g=l._sourcepos[0][0];v<b.length;){switch(b[v]){case "|":x&&(x._string_content=M.trim(),M="",x=null,I--,I<=0&&(v=b.length));break;default:if(!x){x=new fQ(z,[[g,v],[g,v]]);var G=l._parent._columnAlignment,u=l._parent._tableColumns-I;G&&u<=G.length&&u>=0&&(x._alignment=G[u]);l.appendChild(x)}M+=b[v];x._sourcepos[1][1]=v}v++}x&&(x._string_content=M.trim());l._string_content=
""}},
canContain:function(z){return z!=="row"},
acceptsLines:!1}},C1_=[function(z){if(z.indented||HP(z.currentLine,z.nextNonspace)!==62)return 0;op(z);Po(z,1,!1);ZV(HP(z.currentLine,z.offset))&&Po(z,1,!0);hi(z);z.addChild("block_quote",z.nextNonspace);return 1},
function(z){var l;if(!z.indented&&(l=z.currentLine.slice(z.nextNonspace).match(EUA))){op(z);Po(z,l[0].length,!1);hi(z);var I=z.addChild("heading",z.nextNonspace);I.level=l[0].trim().length;I._string_content=z.currentLine.slice(z.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Po(z,z.currentLine.length-z.offset);return 2}return 0},
function(z){var l;if(!z.indented&&(l=z.currentLine.slice(z.nextNonspace).match(u1w))){var I=l[0].length;hi(z);var b=z.addChild("code_block",z.nextNonspace);b._isFenced=!0;b._fenceLength=I;b._fenceChar=l[0][0];b._fenceOffset=z.indent;op(z);Po(z,I,!1);return 2}return 0},
function(z,l){if(!z.indented&&HP(z.currentLine,z.nextNonspace)===60){var I=z.currentLine.slice(z.nextNonspace),b;for(b=1;b<=7;b++)if(pUu[b].test(I)&&(b<7||l.type!=="paragraph"))return hi(z),z.addChild("html_block",z.offset)._htmlBlockType=b,2}return 0},
function(z,l){var I;if(!z.indented&&l.type==="paragraph"&&(I=z.currentLine.slice(z.nextNonspace).match(HYu))){hi(z);var b=new fQ("heading",l.sourcepos);b.level=I[0][0]==="="?1:2;b._string_content=l._string_content;iKM(l,b);l.unlink();z.tip=b;Po(z,z.currentLine.length-z.offset,!1);return 2}return 0},
function(z){return!z.indented&&xvM.test(z.currentLine.slice(z.nextNonspace))?(hi(z),z.addChild("thematic_break",z.nextNonspace),Po(z,z.currentLine.length-z.offset,!1),2):0},
function(z,l){var I,b;if(!(b=z.indented&&l.type!=="list")){a:{var v=l,M=z.currentLine.slice(z.nextNonspace);b={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:z.indent};if(I=M.match(GSj))b.type="bullet",b.bulletChar=I[0][0];else{if(!(I=M.match(N5_))||v.type==="paragraph"&&I[1]!=="1"){I=null;break a}b.type="ordered";b.start=parseInt(I[1],10);b.delimiter=I[2]}var x=HP(z.currentLine,z.nextNonspace+I[0].length);if(x!==-1&&x!==9&&x!==32||v.type==="paragraph"&&!z.currentLine.slice(z.nextNonspace+
I[0].length).match(gUw))I=null;else{op(z);Po(z,I[0].length,!0);v=z.column;M=z.offset;do Po(z,1,!0),x=HP(z.currentLine,z.offset);while(z.column-v<5&&ZV(x));x=HP(z.currentLine,z.offset)===-1;var g=z.column-v;g>=5||g<1||x?(b.padding=I[0].length+1,z.column=v,z.offset=M,ZV(HP(z.currentLine,z.offset))&&Po(z,1,!0)):b.padding=I[0].length+g;I=b}}b=!I}if(b)return 0;hi(z);(b=z.tip.type!=="list")||(l=l._listData,b=!(l.type===I.type&&l.delimiter===I.delimiter&&l.bulletChar===I.bulletChar));b&&(l=z.addChild("list",
z.nextNonspace),l._listData=I);l=z.addChild("item",z.nextNonspace);l._listData=I;return 1},
function(z){var l;return((l=z.options.shouldParseIndentAsCodeBlock)!=null?l:1)&&z.indented&&z.tip.type!=="paragraph"&&!z.blank?(Po(z,4,!0),hi(z),z.addChild("code_block",z.offset),2):0},
function(z,l){var I=y0(z.currentLine),b=y0(z.lookahead);if(I!==0&&b<0&&Math.abs(I)==Math.abs(b)&&!NO5(l.type)){hi(z);l=z.addChild("table",z.nextNonspace);l._tableRows=1;l._tableColumns=Math.abs(I);I=z.lookahead;if(GLu.test(I)){b=[];for(var v=0,M=!1,x=0,g=void 0;v<I.length;){var G=x>=3;switch(I[v]){case "-":x++;break;case "|":M&&(b.push(g),g=void 0,x=0);M=!0;break;case ":":g||G||(g="left"),!g&&G&&(g="right"),g==="left"&&G&&(g="center")}v++}I=b}else I=void 0;l._columnAlignment=I;l=z.addChild("row",
z.nextNonspace);l._isHeader=!0;Po(z,z.currentLine.length-z.offset,!1);l._string_content=z.currentLine;return 1}return 0},
function(z,l){if(l.type=="table"&&y0(z.currentLine)!==0){hi(z);var I=l;l=z.addChild("row",z.nextNonspace);y0(z.currentLine)<0?l._rowIsDelimiter=!0:I._tableRows+=1;Po(z,z.currentLine.length-z.offset,!1);l._string_content=z.currentLine;return 2}return 0}],dH$=function(){var z={shouldParseIndentAsCodeBlock:!1};
z=z===void 0?{}:z;this.lastMatchedContainer=this.doc=E9k();this.refmap={};this.lastLineLength=0;this.inlineParser=new SF(z);this.options=z;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=fX0;this.blockStarts=C1_},kSu=function(z){z.partiallyConsumedTab&&(z.offset+=1,z.tip._string_content+=" ".repeat(4-z.column%
4));
z.tip._string_content+=z.currentLine.slice(z.offset)+"\n"};
dH$.prototype.addChild=function(z,l){for(;!this.blocks[this.tip.type].canContain(z);)this.finalize(this.tip,this.lineNumber-1);z=new fQ(z,[[this.lineNumber,l+1],[0,0]]);z._string_content="";this.tip.appendChild(z);return this.tip=z};
var hi=function(z){if(!z.allClosed){for(;z.oldtip!==z.lastMatchedContainer;){var l=z.oldtip._parent;z.finalize(z.oldtip,z.lineNumber-1);z.oldtip=l}z.allClosed=!0}},Po=function(z,l,I){for(var b=z.currentLine,v,M;l>0&&(M=b[z.offset]);)M==="\t"?(v=4-z.column%4,I?(z.partiallyConsumedTab=v>l,v=v>l?l:v,z.column+=v,z.offset+=z.partiallyConsumedTab?0:1,l-=v):(z.partiallyConsumedTab=!1,z.column+=v,z.offset+=1,--l)):(z.partiallyConsumedTab=!1,z.offset+=1,z.column+=1,--l)},op=function(z){z.offset=z.nextNonspace;
z.column=z.nextNonspaceColumn;z.partiallyConsumedTab=!1},Ryp=function(z){for(var l=z.currentLine,I=z.offset,b=z.column,v;(v=l.charAt(I))!=="";)if(v===" ")I++,b++;
else if(v==="\t")I++,b+=4-b%4;else break;z.blank=v==="\n"||v==="\r"||v==="";z.nextNonspace=I;z.nextNonspaceColumn=b;z.indent=z.nextNonspaceColumn-z.column;z.indented=z.indent>=4};
dH$.prototype.finalize=function(z,l){var I=z._parent;z._open=!1;z.sourcepos[1]=[l,this.lastLineLength];this.blocks[z.type].finalize(this,z);this.tip=I};
dH$.prototype.parse=function(z){this.tip=this.doc=E9k();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!z)return this.doc;this.options.time&&console.time("preparing input");var l=z.split(yR4),I=l.length;z.charCodeAt(z.length-1)===10&&--I;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(z=0;z<I;z++)a:{var b=void 0,v=l[z],M=l[z+1],x=!0,g=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;v.indexOf("\x00")!==-1&&(v=v.replace(/\0/g,"\ufffd"));this.currentLine=v;for(this.lookahead=M;(b=g._lastChild)&&b._open;){g=b;Ryp(this);switch(this.blocks[g.type].continue(this,g)){case 0:break;case 1:x=!1;break;case 2:this.lastLineLength=v.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!x){g=g._parent;break}}this.allClosed=g===this.oldtip;this.lastMatchedContainer=
g;b=g.type!=="paragraph"&&fX0[g.type].acceptsLines;M=this.blockStarts;for(x=M.length;!b;){Ryp(this);if(!this.indented&&!OYu.test(v.slice(this.nextNonspace))){op(this);break}for(var G=0;G<x;){var u=M[G](this,g);if(u===1){g=this.tip;break}else if(u===2){g=this.tip;b=!0;break}else G++}if(G===x){op(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){hi(this);this.blank&&g.lastChild&&(g.lastChild._lastLineBlank=!0);b=g.type;M=this.blank&&!(b==="block_quote"||b==="code_block"&&g._isFenced||
b==="item"&&!g._firstChild&&g.sourcepos[0][0]===this.lineNumber);for(x=g;x;)x._lastLineBlank=M,x=x._parent;this.blocks[b].acceptsLines?(kSu(this),b==="html_block"&&g._htmlBlockType>=1&&g._htmlBlockType<=5&&Dvp[g._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(g,this.lineNumber)):this.offset<v.length&&!this.blank&&(this.addChild("paragraph",this.offset),op(this),kSu(this))}else kSu(this);this.lastLineLength=v.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");v=new qWM(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=v.next();)l=I.node,z=l.type,I.entering||z!=="paragraph"&&z!=="heading"&&z!=="th"&&z!="td"||this.inlineParser.parse(l);this.options.time&&console.timeEnd("inline parsing");return this.doc};uSu.prototype.render=function(z){z=new qWM(z);var l;this.buffer="";for(this.lastOut="\n";l=z.next();){var I=l.node.type;if(this[I])this[I](l.node,l.entering)}return this.buffer};
uSu.prototype.out=function(z){se(this,z)};
var se=function(z,l){z.buffer+=l;z.lastOut=l};
uSu.prototype.cr=function(){this.lastOut!=="\n"&&se(this,"\n")};var mvu=/^javascript:|vbscript:|file:|data:/i,KEA=/^data:image\/(?:png|gif|jpeg|webp)/i,t9A=function(z){return mvu.test(z)&&!KEA.test(z)};
CQ.prototype=Object.create(uSu.prototype);_.p=CQ.prototype;_.p.text=function(z){this.out(z.literal)};
_.p.html_inline=function(z){this.options.safe?se(this,"\x3c!-- raw HTML omitted --\x3e"):se(this,z.literal)};
_.p.html_block=function(z){this.cr();this.options.safe?se(this,"\x3c!-- raw HTML omitted --\x3e"):se(this,z.literal);this.cr()};
_.p.softbreak=function(){se(this,this.options.softbreak)};
_.p.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.p.link=function(z,l){var I=this.attrs(z);l?(this.options.safe&&t9A(z.destination)||I.push(["href",Yb(z.destination,!0)]),z.title&&I.push(["title",Yb(z.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.p.image=function(z,l){l?(this.disableTags===0&&(this.options.safe&&t9A(z.destination)?se(this,'<img src="" alt="'):se(this,'<img src="'+Yb(z.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(z.title&&se(this,'" title="'+Yb(z.title,!0)),se(this,'" />')))};
_.p.emph=function(z,l){this.tag(l?"em":"/em")};
_.p.strong=function(z,l){this.tag(l?"strong":"/strong")};
_.p.paragraph=function(z,l){var I=z.parent.parent;z=this.attrs(z);I!==null&&I.type==="list"&&I.listTight||(l?(this.cr(),this.tag("p",z)):(this.tag("/p"),this.cr()))};
_.p.heading=function(z,l){var I="h"+z.level;z=this.attrs(z);l?(this.cr(),this.tag(I,z)):(this.tag("/"+I),this.cr())};
_.p.code=function(z){this.tag("code");this.out(z.literal);this.tag("/code")};
_.p.code_block=function(z){var l=z.info?z.info.split(/\s+/):[],I=this.attrs(z);l.length>0&&l[0].length>0&&I.push(["class","language-"+Yb(l[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(z.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.p.thematic_break=function(z){z=this.attrs(z);this.cr();this.tag("hr",z,!0);this.cr()};
_.p.block_quote=function(z,l){z=this.attrs(z);l?(this.cr(),this.tag("blockquote",z)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.p.list=function(z,l){var I=z.listType==="bullet"?"ul":"ol",b=this.attrs(z);l?(z=z.listStart,z!==null&&z!==1&&b.push(["start",z.toString()]),this.cr(),this.tag(I,b)):(this.cr(),this.tag("/"+I));this.cr()};
_.p.item=function(z,l){z=this.attrs(z);l?this.tag("li",z):(this.tag("/li"),this.cr())};
_.p.custom_inline=function(z,l){l&&z.onEnter?se(this,z.onEnter):!l&&z.onExit&&se(this,z.onExit)};
_.p.custom_block=function(z,l){this.cr();l&&z.onEnter?se(this,z.onEnter):!l&&z.onExit&&se(this,z.onExit);this.cr()};
_.p.table=function(z,l){z=this.attrs(z);l?(this.cr(),this.tag("table",z)):(this.tag("/table"),this.cr())};
_.p.row=function(z,l){z._rowIsDelimiter||(z=this.attrs(z),l?this.tag("tr",z):this.tag("/tr"))};
_.p.td=function(z,l){var I=this.attrs(z);z._alignment&&I.push(["align",z._alignment]);l?this.tag("td",I):this.tag("/td")};
_.p.th=function(z,l){var I=this.attrs(z);z._alignment&&I.push(["align",z._alignment]);l?this.tag("th",I):this.tag("/th")};
_.p.out=function(z){se(this,Yb(z,!1))};
_.p.tag=function(z,l,I){if(!(this.disableTags>0)){this.buffer+="<"+z;if(l&&l.length>0){z=0;for(var b;(b=l[z])!==void 0;)this.buffer+=" "+b[0]+'="'+b[1]+'"',z++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.p.attrs=function(z){var l=[];this.options.sourcepos&&(z=z.sourcepos)&&l.push(["data-sourcepos",String(z[0][0])+":"+String(z[0][1])+"-"+String(z[1][0])+":"+String(z[1][1])]);return l};
CQ.prototype.text=CQ.prototype.text;CQ.prototype.html_inline=CQ.prototype.html_inline;CQ.prototype.html_block=CQ.prototype.html_block;CQ.prototype.softbreak=CQ.prototype.softbreak;CQ.prototype.linebreak=CQ.prototype.linebreak;CQ.prototype.link=CQ.prototype.link;CQ.prototype.image=CQ.prototype.image;CQ.prototype.emph=CQ.prototype.emph;CQ.prototype.strong=CQ.prototype.strong;CQ.prototype.paragraph=CQ.prototype.paragraph;CQ.prototype.heading=CQ.prototype.heading;CQ.prototype.code=CQ.prototype.code;
CQ.prototype.code_block=CQ.prototype.code_block;CQ.prototype.thematic_break=CQ.prototype.thematic_break;CQ.prototype.block_quote=CQ.prototype.block_quote;CQ.prototype.list=CQ.prototype.list;CQ.prototype.item=CQ.prototype.item;CQ.prototype.custom_inline=CQ.prototype.custom_inline;CQ.prototype.custom_block=CQ.prototype.custom_block;CQ.prototype.table=CQ.prototype.table;CQ.prototype.row=CQ.prototype.row;CQ.prototype.td=CQ.prototype.td;CQ.prototype.th=CQ.prototype.th;CQ.prototype.out=CQ.prototype.out;
CQ.prototype.tag=CQ.prototype.tag;CQ.prototype.attrs=CQ.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 B5A,XUA,nr1;(function(){function z(T,Q){return T<Q?-1:T>Q?1:T>=Q?0:NaN}
function l(T){return function(Q,h){return z(T(Q),h)}}
function I(){for(var T=0,Q=arguments.length,h={},zk;T<Q;++T){if(!(zk=arguments[T]+"")||zk in h)throw Error("ve`"+zk);h[zk]=[]}return new b(h)}
function b(T){this._=T}
function v(T,Q){return T.trim().split(/^|\s+/).map(function(h){var zk="",OY=h.indexOf(".");OY>=0&&(zk=h.slice(OY+1),h=h.slice(0,OY));if(h&&!Q.hasOwnProperty(h))throw Error("we`"+h);return{type:h,name:zk}})}
function M(T,Q,h){for(var zk=0,OY=T.length;zk<OY;++zk)if(T[zk].name===Q){T[zk]=oKK;T=T.slice(0,zk).concat(T.slice(zk+1));break}h!=null&&T.push({name:Q,value:h});return T}
function x(T){var Q=T,h=Q.indexOf(":");h>=0&&(Q=T.slice(0,h))!=="xmlns"&&(T=T.slice(h+1));return dx.hasOwnProperty(Q)?{space:dx[Q],local:T}:T}
function g(T){return function(){var Q=this.ownerDocument,h=this.namespaceURI;return h==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(T):Q.createElementNS(h,T)}}
function G(T){return function(){return this.ownerDocument.createElementNS(T.space,T.local)}}
function u(T){T=x(T);return(T.local?G:g)(T)}
function Z(){}
function H(T){return T==null?Z:function(){return this.querySelector(T)}}
function y(T){return Array(T.length)}
function f(T,Q){this.ownerDocument=T.ownerDocument;this.namespaceURI=T.namespaceURI;this._next=null;this._parent=T;this.__data__=Q}
function R(T){return function(){return T}}
function F(T,Q,h,zk,OY,fu){for(var Ku=0,Tk,bu=Q.length,V$=fu.length;Ku<V$;++Ku)(Tk=Q[Ku])?(Tk.__data__=fu[Ku],zk[Ku]=Tk):h[Ku]=new f(T,fu[Ku]);for(;Ku<bu;++Ku)if(Tk=Q[Ku])OY[Ku]=Tk}
function Y(T,Q,h,zk,OY,fu,Ku){var Tk,bu,V$={},v_=Q.length,Z4=fu.length,Uj=Array(v_),Xq;for(Tk=0;Tk<v_;++Tk)if(bu=Q[Tk])Uj[Tk]=Xq="$"+Ku.call(bu,bu.__data__,Tk,Q),Xq in V$?OY[Tk]=bu:V$[Xq]=bu;for(Tk=0;Tk<Z4;++Tk)Xq="$"+Ku.call(T,fu[Tk],Tk,fu),(bu=V$[Xq])?(zk[Tk]=bu,bu.__data__=fu[Tk],V$[Xq]=null):h[Tk]=new f(T,fu[Tk]);for(Tk=0;Tk<v_;++Tk)(bu=Q[Tk])&&V$[Uj[Tk]]===bu&&(OY[Tk]=bu)}
function c(T,Q){return T<Q?-1:T>Q?1:T>=Q?0:NaN}
function d(T){return function(){this.removeAttribute(T)}}
function V(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function A(T,Q){return function(){this.setAttribute(T,Q)}}
function W(T,Q){return function(){this.setAttributeNS(T.space,T.local,Q)}}
function L(T,Q){return function(){var h=Q.apply(this,arguments);h==null?this.removeAttribute(T):this.setAttribute(T,h)}}
function lH(T,Q){return function(){var h=Q.apply(this,arguments);h==null?this.removeAttributeNS(T.space,T.local):this.setAttributeNS(T.space,T.local,h)}}
function Gk(T){return function(){this.style.removeProperty(T)}}
function uH(T,Q,h){return function(){this.style.setProperty(T,Q,h)}}
function Xt(T,Q,h){return function(){var zk=Q.apply(this,arguments);zk==null?this.style.removeProperty(T):this.style.setProperty(T,zk,h)}}
function R1(T,Q){return T.style.getPropertyValue(Q)||(T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView).getComputedStyle(T,null).getPropertyValue(Q)}
function H7(T){return function(){delete this[T]}}
function P7(T,Q){return function(){this[T]=Q}}
function o1(T,Q){return function(){var h=Q.apply(this,arguments);h==null?delete this[T]:this[T]=h}}
function z_(){this.textContent=""}
function dw(T){return function(){this.textContent=T}}
function Ej(T){return function(){var Q=T.apply(this,arguments);this.textContent=Q==null?"":Q}}
function JG(){this.innerHTML=""}
function yu(T){return function(){this.innerHTML=T}}
function uu(T){return function(){var Q=T.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function Y0(){return null}
function iK(){var T=this.parentNode;T&&T.removeChild(this)}
function a_(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function pu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function lu(T,Q,h){T=k0(T,Q,h);return function(zk){var OY=zk.relatedTarget;OY&&(OY===this||OY.compareDocumentPosition(this)&8)||T.call(this,zk)}}
function k0(T,Q,h){return function(){T.call(this,this.__data__,Q,h)}}
function E8(T){return T.trim().split(/^|\s+/).map(function(Q){var h="",zk=Q.indexOf(".");zk>=0&&(h=Q.slice(zk+1),Q=Q.slice(0,zk));return{type:Q,name:h}})}
function R_(T){return function(){var Q=this.__on;if(Q){for(var h=0,zk=-1,OY=Q.length,fu;h<OY;++h)(fu=Q[h],T.type&&fu.type!==T.type||fu.name!==T.name)?Q[++zk]=fu:this.removeEventListener(fu.type,fu.listener,fu.capture);++zk?Q.length=zk:delete this.__on}}}
function bK(T,Q,h){var zk=kvI.hasOwnProperty(T.type)?lu:k0;return function(OY,fu,Ku){OY=this.__on;var Tk;fu=zk(Q,fu,Ku);if(OY){Ku=0;for(var bu=OY.length;Ku<bu;++Ku)if((Tk=OY[Ku]).type===T.type&&Tk.name===T.name){this.removeEventListener(Tk.type,Tk.listener,Tk.capture);this.addEventListener(Tk.type,Tk.listener=fu,Tk.capture=h);Tk.value=Q;return}}this.addEventListener(T.type,fu,h);Tk={type:T.type,name:T.name,value:Q,listener:fu,capture:h};OY?OY.push(Tk):this.__on=[Tk]}}
function Ou(T,Q,h){var zk=T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView,OY=zk.CustomEvent;typeof OY==="function"?OY=new OY(Q,h):(OY=zk.document.createEvent("Event"),h?(OY.initEvent(Q,h.bubbles,h.cancelable),OY.detail=h.detail):OY.initEvent(Q,!1,!1));T.dispatchEvent(OY)}
function lK(T,Q){return function(){return Ou(this,T,Q)}}
function gw(T,Q){return function(){return Ou(this,T,Q.apply(this,arguments))}}
function Ln(T,Q){this._groups=T;this._parents=Q}
function Cl(){return new Ln([[document.documentElement]],PA1)}
function FA(){this._="@"+(++hm0).toString(36)}
function tp(T,Q,h){T.prototype=Q.prototype=h;h.constructor=T}
function ys(T,Q){T=Object.create(T.prototype);for(var h in Q)T[h]=Q[h];return T}
function jA(){}
function uK(T){var Q;T=(T+"").trim().toLowerCase();return(Q=sPS.exec(T))?(Q=parseInt(Q[1],16),new WX(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=rd4.exec(T))?Yq(parseInt(Q[1],16)):(Q=$kc.exec(T))?new WX(Q[1],Q[2],Q[3],1):(Q=em0.exec(T))?new WX(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=wTK.exec(T))?FY(Q[1],Q[2],Q[3],Q[4]):(Q=AdW.exec(T))?FY(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=WqK.exec(T))?e3(Q[1],Q[2]/100,Q[3]/100,1):(Q=nKK.exec(T))?e3(Q[1],Q[2]/100,Q[3]/100,Q[4]):R5u.hasOwnProperty(T)?
Yq(R5u[T]):T==="transparent"?new WX(NaN,NaN,NaN,0):null}
function Yq(T){return new WX(T>>16&255,T>>8&255,T&255,1)}
function FY(T,Q,h,zk){zk<=0&&(T=Q=h=NaN);return new WX(T,Q,h,zk)}
function $0(T){T instanceof jA||(T=uK(T));if(!T)return new WX;T=T.rgb();return new WX(T.r,T.g,T.b,T.opacity)}
function hy(T,Q,h,zk){return arguments.length===1?$0(T):new WX(T,Q,h,zk==null?1:zk)}
function WX(T,Q,h,zk){this.r=+T;this.g=+Q;this.b=+h;this.opacity=+zk}
function BQ(T){T=Math.max(0,Math.min(255,Math.round(T)||0));return(T<16?"0":"")+T.toString(16)}
function e3(T,Q,h,zk){zk<=0?T=Q=h=NaN:h<=0||h>=1?T=Q=NaN:Q<=0&&(T=NaN);return new ZJ(T,Q,h,zk)}
function f7(T){if(T instanceof ZJ)return new ZJ(T.h,T.s,T.l,T.opacity);T instanceof jA||(T=uK(T));if(!T)return new ZJ;if(T instanceof ZJ)return T;T=T.rgb();var Q=T.r/255,h=T.g/255,zk=T.b/255,OY=Math.min(Q,h,zk),fu=Math.max(Q,h,zk),Ku=NaN,Tk=fu-OY,bu=(fu+OY)/2;Tk?(Ku=Q===fu?(h-zk)/Tk+(h<zk)*6:h===fu?(zk-Q)/Tk+2:(Q-h)/Tk+4,Tk/=bu<.5?fu+OY:2-fu-OY,Ku*=60):Tk=bu>0&&bu<1?0:Ku;return new ZJ(Ku,Tk,bu,T.opacity)}
function rk(T,Q,h,zk){return arguments.length===1?f7(T):new ZJ(T,Q,h,zk==null?1:zk)}
function ZJ(T,Q,h,zk){this.h=+T;this.s=+Q;this.l=+h;this.opacity=+zk}
function dH(T,Q,h){return(T<60?Q+(h-Q)*T/60:T<180?h:T<240?Q+(h-Q)*(240-T)/60:Q)*255}
function Dp(T){if(T instanceof Ft)return new Ft(T.l,T.a,T.b,T.opacity);if(T instanceof Kn){if(isNaN(T.h))return new Ft(T.l,0,0,T.opacity);var Q=T.h*mG_;return new Ft(T.l,Math.cos(Q)*T.c,Math.sin(Q)*T.c,T.opacity)}T instanceof WX||(T=$0(T));var h=ZF(T.r),zk=ZF(T.g),OY=ZF(T.b);Q=hG(.2225045*h+.7168786*zk+.0606169*OY);if(h===zk&&zk===OY)var fu=h=Q;else fu=hG((.4360747*h+.3850649*zk+.1430804*OY)/.96422),h=hG((.0139322*h+.0971045*zk+.7141733*OY)/.82521);return new Ft(116*Q-16,500*(fu-Q),200*(Q-h),T.opacity)}
function Ft(T,Q,h,zk){this.l=+T;this.a=+Q;this.b=+h;this.opacity=+zk}
function hG(T){return T>LqC?Math.pow(T,1/3):T/Kvu+tCA}
function W7(T){return T>y2?T*T*T:Kvu*(T-tCA)}
function Cn(T){return 255*(T<=.0031308?12.92*T:1.055*Math.pow(T,1/2.4)-.055)}
function ZF(T){return(T/=255)<=.04045?T/12.92:Math.pow((T+.055)/1.055,2.4)}
function TT(T){if(T instanceof Kn)return new Kn(T.h,T.c,T.l,T.opacity);T instanceof Ft||(T=Dp(T));if(T.a===0&&T.b===0)return new Kn(NaN,0,T.l,T.opacity);var Q=Math.atan2(T.b,T.a)*B3u;return new Kn(Q<0?Q+360:Q,Math.sqrt(T.a*T.a+T.b*T.b),T.l,T.opacity)}
function Kl(T,Q,h,zk){return arguments.length===1?TT(T):new Kn(T,Q,h,zk==null?1:zk)}
function Kn(T,Q,h,zk){this.h=+T;this.c=+Q;this.l=+h;this.opacity=+zk}
function mA(T,Q,h,zk){if(arguments.length===1){var OY=T;if(OY instanceof cX)OY=new cX(OY.h,OY.s,OY.l,OY.opacity);else{OY instanceof WX||(OY=$0(OY));var fu=OY.g/255,Ku=OY.b/255,Tk=(X2w*Ku+OY.r/255*-1.7884503806-3.5172982438*fu)/(X2w+-1.7884503806-3.5172982438);Ku-=Tk;var bu=(1.97294*(fu-Tk)- -.29227*Ku)/-.90649;Ku=(fu=Math.sqrt(bu*bu+Ku*Ku)/(1.97294*Tk*(1-Tk)))?Math.atan2(bu,Ku)*B3u-120:NaN;OY=new cX(Ku<0?Ku+360:Ku,fu,Tk,OY.opacity)}}else OY=new cX(T,Q,h,zk==null?1:zk);return OY}
function cX(T,Q,h,zk){this.h=+T;this.s=+Q;this.l=+h;this.opacity=+zk}
function CD(T,Q,h,zk,OY){var fu=T*T,Ku=fu*T;return((1-3*T+3*fu-Ku)*Q+(4-6*fu+3*Ku)*h+(1+3*T+3*fu-3*Ku)*zk+Ku*OY)/6}
function H_(T){return function(){return T}}
function qj(T,Q){return function(h){return T+h*Q}}
function FQ(T,Q,h){return T=Math.pow(T,h),Q=Math.pow(Q,h)-T,h=1/h,function(zk){return Math.pow(T+zk*Q,h)}}
function PQ(T,Q){var h=Q-T;return h?qj(T,h>180||h<-180?h-360*Math.round(h/360):h):H_(isNaN(T)?Q:T)}
function w2(T){return(T=+T)===1?L2:function(Q,h){return h-Q?FQ(Q,h,T):H_(isNaN(Q)?h:Q)}}
function L2(T,Q){var h=Q-T;return h?qj(T,h):H_(isNaN(T)?Q:T)}
function lC(T){return function(Q){var h=Q.length,zk=Array(h),OY=Array(h),fu=Array(h),Ku;for(Ku=0;Ku<h;++Ku){var Tk=hy(Q[Ku]);zk[Ku]=Tk.r||0;OY[Ku]=Tk.g||0;fu[Ku]=Tk.b||0}zk=T(zk);OY=T(OY);fu=T(fu);Tk.opacity=1;return function(bu){Tk.r=zk(bu);Tk.g=OY(bu);Tk.b=fu(bu);return Tk+""}}}
function ll(T,Q){return T=+T,Q-=T,function(h){return T+Q*h}}
function BU(T){return function(){return T}}
function R$(T){return function(Q){return T(Q)+""}}
function nu(T,Q){var h=H11.lastIndex=y45.lastIndex=0,zk,OY,fu,Ku=-1,Tk=[],bu=[];T+="";for(Q+="";(zk=H11.exec(T))&&(OY=y45.exec(Q));)(fu=OY.index)>h&&(fu=Q.slice(h,fu),Tk[Ku]?Tk[Ku]+=fu:Tk[++Ku]=fu),(zk=zk[0])===(OY=OY[0])?Tk[Ku]?Tk[Ku]+=OY:Tk[++Ku]=OY:(Tk[++Ku]=null,bu.push({i:Ku,x:ll(zk,OY)})),h=y45.lastIndex;h<Q.length&&(fu=Q.slice(h),Tk[Ku]?Tk[Ku]+=fu:Tk[++Ku]=fu);return Tk.length<2?bu[0]?R$(bu[0].x):BU(Q):(Q=bu.length,function(V$){for(var v_=0,Z4;v_<Q;++v_)Tk[(Z4=bu[v_]).i]=Z4.x(V$);return Tk.join("")})}
function kS(T,Q,h,zk,OY,fu){var Ku,Tk,bu;if(Ku=Math.sqrt(T*T+Q*Q))T/=Ku,Q/=Ku;if(bu=T*h+Q*zk)h-=T*bu,zk-=Q*bu;if(Tk=Math.sqrt(h*h+zk*zk))h/=Tk,zk/=Tk,bu/=Tk;T*zk<Q*h&&(T=-T,Q=-Q,bu=-bu,Ku=-Ku);return{translateX:OY,translateY:fu,rotate:Math.atan2(Q,T)*qDA,skewX:Math.atan(bu)*qDA,scaleX:Ku,scaleY:Tk}}
function oC(T,Q,h,zk){function OY(V$){return V$.length?V$.pop()+" ":""}
function fu(V$,v_,Z4,Uj,Xq,m7){V$!==Z4||v_!==Uj?(Xq=Xq.push("translate(",null,Q,null,h),m7.push({i:Xq-4,x:ll(V$,Z4)},{i:Xq-2,x:ll(v_,Uj)})):(Z4||Uj)&&Xq.push("translate("+Z4+Q+Uj+h)}
function Ku(V$,v_,Z4,Uj){V$!==v_?(V$-v_>180?v_+=360:v_-V$>180&&(V$+=360),Uj.push({i:Z4.push(OY(Z4)+"rotate(",null,zk)-2,x:ll(V$,v_)})):v_&&Z4.push(OY(Z4)+"rotate("+v_+zk)}
function Tk(V$,v_,Z4,Uj){V$!==v_?Uj.push({i:Z4.push(OY(Z4)+"skewX(",null,zk)-2,x:ll(V$,v_)}):v_&&Z4.push(OY(Z4)+"skewX("+v_+zk)}
function bu(V$,v_,Z4,Uj,Xq,m7){V$!==Z4||v_!==Uj?(Xq=Xq.push(OY(Xq)+"scale(",null,",",null,")"),m7.push({i:Xq-4,x:ll(V$,Z4)},{i:Xq-2,x:ll(v_,Uj)})):Z4===1&&Uj===1||Xq.push(OY(Xq)+"scale("+Z4+","+Uj+")")}
return function(V$,v_){var Z4=[],Uj=[];V$=T(V$);v_=T(v_);fu(V$.translateX,V$.translateY,v_.translateX,v_.translateY,Z4,Uj);Ku(V$.rotate,v_.rotate,Z4,Uj);Tk(V$.skewX,v_.skewX,Z4,Uj);bu(V$.scaleX,V$.scaleY,v_.scaleX,v_.scaleY,Z4,Uj);V$=v_=null;return function(Xq){for(var m7=-1,W0=Uj.length,FP;++m7<W0;)Z4[(FP=Uj[m7]).i]=FP.x(Xq);return Z4.join("")}}}
function DF(T){return function(Q,h){var zk=T((Q=rk(Q)).h,(h=rk(h)).h),OY=L2(Q.s,h.s),fu=L2(Q.l,h.l),Ku=L2(Q.opacity,h.opacity);return function(Tk){Q.h=zk(Tk);Q.s=OY(Tk);Q.l=fu(Tk);Q.opacity=Ku(Tk);return Q+""}}}
function E7(T){return function(Q,h){var zk=T((Q=Kl(Q)).h,(h=Kl(h)).h),OY=L2(Q.c,h.c),fu=L2(Q.l,h.l),Ku=L2(Q.opacity,h.opacity);return function(Tk){Q.h=zk(Tk);Q.c=OY(Tk);Q.l=fu(Tk);Q.opacity=Ku(Tk);return Q+""}}}
function U7(T){return function zk(h){function OY(fu,Ku){var Tk=T((fu=mA(fu)).h,(Ku=mA(Ku)).h),bu=L2(fu.s,Ku.s),V$=L2(fu.l,Ku.l),v_=L2(fu.opacity,Ku.opacity);return function(Z4){fu.h=Tk(Z4);fu.s=bu(Z4);fu.l=V$(Math.pow(Z4,h));fu.opacity=v_(Z4);return fu+""}}
h=+h;OY.gamma=zk;return OY}(1)}
function $N(){return Ia||(iqn(Jx),Ia=rd.now()+wV7)}
function Jx(){Ia=0}
function X1(){this._call=this._time=this._next=null}
function QD(T,Q,h){var zk=new X1;zk.restart(T,Q,h);return zk}
function Yv(){Ia=(AEp=rd.now())+wV7;fh=$o=0;try{$N();++fh;for(var T=WZQ,Q;T;)(Q=Ia-T._time)>=0&&T._call.call(null,Q),T=T._next;--fh}finally{fh=0;T=WZQ;for(var h=Infinity;T;)if(T._call){h>T._time&&(h=T._time);var zk=T;T=T._next}else Q=T._next,T._next=null,T=zk?zk._next=Q:WZQ=Q;ef=zk;Tx(h);Ia=0}}
function v95(){var T=rd.now(),Q=T-AEp;Q>1E3&&(wV7-=Q,AEp=T)}
function Tx(T){fh||($o&&($o=clearTimeout($o)),T-Ia>24?(T<Infinity&&($o=setTimeout(Yv,T-rd.now()-wV7)),wd&&(wd=clearInterval(wd))):(wd||(AEp=rd.now(),wd=setInterval(v95,1E3)),fh=1,iqn(Yv)))}
function Fvu(T,Q,h){var zk=new X1;Q=Q==null?0:+Q;zk.restart(function(OY){zk.stop();T(OY+Q)},Q,h);
return zk}
function fh7(T,Q,h,zk,OY,fu){var Ku=T.__transition;if(!Ku)T.__transition={};else if(h in Ku)return;Uk4(T,h,{name:Q,index:zk,group:OY,on:atl,tween:Vo0,time:fu.time,delay:fu.delay,duration:fu.duration,ease:fu.ease,timer:null,state:0})}
function ChS(T,Q){T=FE(T,Q);if(T.state>0)throw Error("xe");return T}
function bz(T,Q){T=FE(T,Q);if(T.state>2)throw Error("ye");return T}
function FE(T,Q){T=T.__transition;if(!T||!(T=T[Q]))throw Error("ze");return T}
function Uk4(T,Q,h){function zk(bu){var V$,v_;if(h.state!==1)return fu();for(Uj in Ku){var Z4=Ku[Uj];if(Z4.name===h.name){if(Z4.state===3)return Fvu(zk);Z4.state===4?(Z4.state=6,Z4.timer.stop(),Z4.on.call("interrupt",T,T.__data__,Z4.index,Z4.group),delete Ku[Uj]):+Uj<Q&&(Z4.state=6,Z4.timer.stop(),delete Ku[Uj])}}Fvu(function(){h.state===3&&(h.state=4,h.timer.restart(OY,h.delay,h.time),OY(bu))});
h.state=2;h.on.call("start",T,T.__data__,h.index,h.group);if(h.state===2){h.state=3;Tk=Array(v_=h.tween.length);var Uj=0;for(V$=-1;Uj<v_;++Uj)if(Z4=h.tween[Uj].value.call(T,T.__data__,h.index,h.group))Tk[++V$]=Z4;Tk.length=V$+1}}
function OY(bu){bu=bu<h.duration?h.ease.call(null,bu/h.duration):(h.timer.restart(fu),h.state=5,1);for(var V$=-1,v_=Tk.length;++V$<v_;)Tk[V$].call(null,bu);h.state===5&&(h.on.call("end",T,T.__data__,h.index,h.group),fu())}
function fu(){h.state=6;h.timer.stop();delete Ku[Q];for(var bu in Ku)return;delete T.__transition}
var Ku=T.__transition,Tk;Ku[Q]=h;h.timer=QD(function(bu){h.state=1;h.timer.restart(zk,h.delay,h.time);h.delay<=bu&&zk(bu-h.delay)},0,h.time)}
function jPC(T,Q){var h,zk;return function(){var OY=bz(this,T),fu=OY.tween;if(fu!==h){zk=h=fu;fu=0;for(var Ku=zk.length;fu<Ku;++fu)if(zk[fu].name===Q){zk=zk.slice();zk.splice(fu,1);break}}OY.tween=zk}}
function Jdc(T,Q,h){var zk,OY;if(typeof h!=="function")throw Error();return function(){var fu=bz(this,T),Ku=fu.tween;if(Ku!==zk){OY=(zk=Ku).slice();Ku={name:Q,value:h};for(var Tk=0,bu=OY.length;Tk<bu;++Tk)if(OY[Tk].name===Q){OY[Tk]=Ku;break}Tk===bu&&OY.push(Ku)}fu.tween=OY}}
function k$k(T,Q,h){var zk=T._id;T.each(function(){var OY=bz(this,zk);(OY.value||(OY.value={}))[Q]=h.apply(this,arguments)});
return function(OY){return FE(OY,zk).value[Q]}}
function QEj(T,Q){var h;return(typeof Q==="number"?ll:Q instanceof uK?YD_:(h=uK(Q))?(Q=h,YD_):nu)(T,Q)}
function zXq(T){return function(){this.removeAttribute(T)}}
function lZy(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function IZc(T,Q,h){var zk,OY;return function(){var fu=this.getAttribute(T);return fu===h?null:fu===zk?OY:OY=Q(zk=fu,h)}}
function bt0(T,Q,h){var zk,OY;return function(){var fu=this.getAttributeNS(T.space,T.local);return fu===h?null:fu===zk?OY:OY=Q(zk=fu,h)}}
function vmy(T,Q,h){var zk,OY,fu;return function(){var Ku=h(this);if(Ku==null)return void this.removeAttribute(T);var Tk=this.getAttribute(T);return Tk===Ku?null:Tk===zk&&Ku===OY?fu:fu=Q(zk=Tk,OY=Ku)}}
function Ma8(T,Q,h){var zk,OY,fu;return function(){var Ku=h(this);if(Ku==null)return void this.removeAttributeNS(T.space,T.local);var Tk=this.getAttributeNS(T.space,T.local);return Tk===Ku?null:Tk===zk&&Ku===OY?fu:fu=Q(zk=Tk,OY=Ku)}}
function pfC(T,Q){function h(){var zk=this,OY=Q.apply(zk,arguments);return OY&&function(fu){zk.setAttributeNS(T.space,T.local,OY(fu))}}
h._value=Q;return h}
function D1l(T,Q){function h(){var zk=this,OY=Q.apply(zk,arguments);return OY&&function(fu){zk.setAttribute(T,OY(fu))}}
h._value=Q;return h}
function x1W(T,Q){return function(){ChS(this,T).delay=+Q.apply(this,arguments)}}
function OtK(T,Q){return Q=+Q,function(){ChS(this,T).delay=Q}}
function gmS(T,Q){return function(){bz(this,T).duration=+Q.apply(this,arguments)}}
function GWc(T,Q){return Q=+Q,function(){bz(this,T).duration=Q}}
function Nbc(T,Q){if(typeof Q!=="function")throw Error();return function(){bz(this,T).ease=Q}}
function EmK(T){return(T+"").trim().split(/^|\s+/).every(function(Q){var h=Q.indexOf(".");h>=0&&(Q=Q.slice(0,h));return!Q||Q==="start"})}
function uTy(T,Q,h){var zk,OY,fu=EmK(Q)?ChS:bz;return function(){var Ku=fu(this,T),Tk=Ku.on;if(Tk!==zk)(OY=(zk=Tk).copy()).on(Q,h);Ku.on=OY}}
function ZtX(T){return function(){var Q=this.parentNode,h;for(h in this.__transition)if(+h!==T)return;Q&&Q.removeChild(this)}}
function HtW(T,Q){var h,zk,OY;return function(){var fu=R1(this,T),Ku=(this.style.removeProperty(T),R1(this,T));return fu===Ku?null:fu===h&&Ku===zk?OY:OY=Q(h=fu,zk=Ku)}}
function yM0(T){return function(){this.style.removeProperty(T)}}
function fZc(T,Q,h){var zk,OY;return function(){var fu=R1(this,T);return fu===h?null:fu===zk?OY:OY=Q(zk=fu,h)}}
function CSs(T,Q,h){var zk,OY,fu;return function(){var Ku=R1(this,T),Tk=h(this);Tk==null&&(Tk=(this.style.removeProperty(T),R1(this,T)));return Ku===Tk?null:Ku===zk&&Tk===OY?fu:fu=Q(zk=Ku,OY=Tk)}}
function kWF(T,Q,h){function zk(){var OY=this,fu=Q.apply(OY,arguments);return fu&&function(Ku){OY.style.setProperty(T,fu(Ku),h)}}
zk._value=Q;return zk}
function RX4(T){return function(){this.textContent=T}}
function m1W(T){return function(){var Q=T(this);this.textContent=Q==null?"":Q}}
function jD(T,Q,h,zk){this._groups=T;this._parents=Q;this._name=h;this._id=zk}
function R6H(T){return{type:T}}
function mwf(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function nsk(){}
function T3A(T,Q){var h=new nsk;if(T instanceof nsk)T.each(function(Ku,Tk){h.set(Tk,Ku)});
else if(Array.isArray(T)){var zk=-1,OY=T.length,fu;if(Q==null)for(;++zk<OY;)h.set(zk,T[zk]);else for(;++zk<OY;)h.set(Q(fu=T[zk],zk,T),fu)}else if(T)for(zk in T)h.set(zk,T[zk]);return h}
function LZk(){}
function cCA(T){return function(Q){for(var h={},zk=0;zk<T.length;zk++)h[T[zk]]=Q[zk]||"";return h}}
function KtK(T,Q){var h=cCA(T);return function(zk,OY){return Q(h(zk),OY,T)}}
function taC(T){var Q=Object.create(null),h=[];T.forEach(function(zk){for(var OY in zk)OY in Q||h.push(Q[OY]=OY)});
return h}
function SDA(T){function Q(Ku,Tk){function bu(){if(m7)return KBQ;if(W0)return W0=!1,dGn;var jX,Lo=Z4,yA;if(Ku.charCodeAt(Lo)===34){for(;Z4++<v_&&Ku.charCodeAt(Z4)!==34||Ku.charCodeAt(++Z4)===34;);(jX=Z4)>=v_?m7=!0:(yA=Ku.charCodeAt(Z4++))===10?W0=!0:yA===13&&(W0=!0,Ku.charCodeAt(Z4)===10&&++Z4);return Ku.slice(Lo+1,jX-1).replace(/""/g,'"')}for(;Z4<v_;){if((yA=Ku.charCodeAt(jX=Z4++))===10)W0=!0;else if(yA===13)W0=!0,Ku.charCodeAt(Z4)===10&&++Z4;else if(yA!==fu)continue;return Ku.slice(Lo,jX)}return m7=
!0,Ku.slice(Lo,v_)}
var V$=[],v_=Ku.length,Z4=0,Uj=0,Xq,m7=v_<=0,W0=!1;Ku.charCodeAt(v_-1)===10&&--v_;for(Ku.charCodeAt(v_-1)===13&&--v_;(Xq=bu())!==KBQ;){for(var FP=[];Xq!==dGn&&Xq!==KBQ;)FP.push(Xq),Xq=bu();Tk&&(FP=Tk(FP,Uj++))==null||V$.push(FP)}return V$}
function h(Ku){return Ku.map(zk).join(T)}
function zk(Ku){return Ku==null?"":OY.test(Ku)?'"'+Ku.replace(/"/g,'""')+'"':Ku}
var OY=new RegExp('["'+T+"\n\r]"),fu=T.charCodeAt(0);return{parse:function(Ku,Tk){var bu,V$;Ku=Q(Ku,function(v_,Z4){if(bu)return bu(v_,Z4-1);V$=v_;bu=Tk?KtK(v_,Tk):cCA(v_)});
Ku.columns=V$||[];return Ku},
parseRows:Q,format:function(Ku,Tk){Tk==null&&(Tk=taC(Ku));return[Tk.map(zk).join(T)].concat(Ku.map(function(bu){return Tk.map(function(V$){return zk(bu[V$])}).join(T)})).join("\n")},
formatRows:function(Ku){return Ku.map(h).join("\n")}}}
function Bbq(T){if(!T.ok)throw Error("Ae`"+T.status+"`"+T.statusText);return T.text()}
function oTu(T){return function(Q,h,zk){arguments.length===2&&typeof h==="function"&&(zk=h,h=void 0);return fetch(Q,h).then(Bbq).then(function(OY){return T(OY,zk)})}}
function PVj(T,Q,h,zk){if(isNaN(Q)||isNaN(h))return T;var OY,fu=T._root;zk={data:zk};var Ku=T._x0,Tk=T._y0,bu=T._x1,V$=T._y1,v_,Z4,Uj,Xq,m7;if(!fu)return T._root=zk,T;for(;fu.length;)if((Uj=Q>=(v_=(Ku+bu)/2))?Ku=v_:bu=v_,(Xq=h>=(Z4=(Tk+V$)/2))?Tk=Z4:V$=Z4,OY=fu,!(fu=fu[m7=Xq<<1|Uj]))return OY[m7]=zk,T;var W0=+T._x.call(null,fu.data);var FP=+T._y.call(null,fu.data);if(Q===W0&&h===FP)return zk.next=fu,OY?OY[m7]=zk:T._root=zk,T;do OY=OY?OY[m7]=Array(4):T._root=Array(4),(Uj=Q>=(v_=(Ku+bu)/2))?Ku=v_:bu=
v_,(Xq=h>=(Z4=(Tk+V$)/2))?Tk=Z4:V$=Z4;while((m7=Xq<<1|Uj)===(Uj=(FP>=Z4)<<1|W0>=v_));return OY[Uj]=fu,OY[m7]=zk,T}
function $E(T,Q,h,zk,OY){this.node=T;this.x0=Q;this.y0=h;this.x1=zk;this.y1=OY}
function Xf0(T){return T[0]}
function qEK(T){return T[1]}
function tDQ(T,Q,h,zk,OY,fu){this._x=T;this._y=Q;this._x0=h;this._y0=zk;this._x1=OY;this._y1=fu;this._root=void 0}
function h5u(T){for(var Q={data:T.data},h=Q;T=T.next;)h=h.next={data:T.data};return Q}
function UBk(T,Q){if((Q=(T=Q?T.toExponential(Q-1):T.toExponential()).indexOf("e"))<0)return null;var h=T.slice(0,Q);return[h.length>1?h[0]+h.slice(2):h,+T.slice(Q+1)]}
function itK(T){return T=UBk(Math.abs(T)),T?T[1]:NaN}
function Ftq(T,Q){return function(h,zk){for(var OY=h.length,fu=[],Ku=0,Tk=T[0],bu=0;OY>0&&Tk>0;){bu+Tk+1>zk&&(Tk=Math.max(1,zk-bu));fu.push(h.substring(OY-=Tk,OY+Tk));if((bu+=Tk+1)>zk)break;Tk=T[Ku=(Ku+1)%T.length]}return fu.reverse().join(Q)}}
function Qcc(T){return function(Q){return Q.replace(/[0-9]/g,function(h){return T[+h]})}}
function BlS(T){return new XZH(T)}
function XZH(T){if(!(Q=YEs.exec(T)))throw Error("Be`"+T);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function sE_(T,Q){Q=UBk(T,Q);if(!Q)return T+"";T=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+T:T.length>Q+1?T.slice(0,Q+1)+"."+T.slice(Q+1):T+Array(Q-T.length+2).join("0")}
function rCA(T){return T}
function TbK(T){function Q(Tk){function bu(Uv){var ON=yA,$S=UB,Ru,Ov;if(Lo==="c")$S=Uf(Uv)+$S,Uv="";else{Uv=+Uv;var Qs=Uv<0;Uv=Uf(Math.abs(Uv),FP);if(jX){var wr=Uv.length,PC=1,JK=-1;a:for(;PC<wr;++PC)switch(Uv[PC]){case ".":JK=Ru=PC;break;case "0":JK===0&&(JK=PC);Ru=PC;break;default:if(!+Uv[PC])break a;JK>0&&(JK=0)}Uv=JK>0?Uv.slice(0,JK)+Uv.slice(Ru+1):Uv}Qs&&+Uv===0&&(Qs=!1);ON=(Qs?Z4==="("?Z4:"-":Z4==="-"||Z4==="("?"":Z4)+ON;$S=(Lo==="s"?$G4[8+e5_/3]:"")+$S+(Qs&&Z4==="("?")":"");if(f0)for(Qs=-1,
Ru=Uv.length;++Qs<Ru;)if(Ov=Uv.charCodeAt(Qs),48>Ov||Ov>57){$S=(Ov===46?OY+Uv.slice(Qs+1):Uv.slice(Qs))+$S;Uv=Uv.slice(0,Qs);break}}W0&&!Xq&&(Uv=h(Uv,Infinity));Ov=ON.length+Uv.length+$S.length;Qs=Ov<m7?Array(m7-Ov+1).join(V$):"";W0&&Xq&&(Uv=h(Qs+Uv,Qs.length?m7-$S.length:Infinity),Qs="");switch(v_){case "<":Uv=ON+Uv+$S+Qs;break;case "=":Uv=ON+Qs+Uv+$S;break;case "^":Uv=Qs.slice(0,Ov=Qs.length>>1)+ON+Uv+$S+Qs.slice(Ov);break;default:Uv=Qs+ON+Uv+$S}return fu(Uv)}
Tk=BlS(Tk);var V$=Tk.fill,v_=Tk.align,Z4=Tk.sign,Uj=Tk.symbol,Xq=Tk.zero,m7=Tk.width,W0=Tk.comma,FP=Tk.precision,jX=Tk.trim,Lo=Tk.type;Lo==="n"?(W0=!0,Lo="g"):w20[Lo]||(FP==null&&(FP=12),jX=!0,Lo="g");if(Xq||V$==="0"&&v_==="=")Xq=!0,V$="0",v_="=";var yA=Uj==="$"?zk[0]:Uj==="#"&&/[boxX]/.test(Lo)?"0"+Lo.toLowerCase():"",UB=Uj==="$"?zk[1]:/[%p]/.test(Lo)?Ku:"",Uf=w20[Lo],f0=/[defgprs%]/.test(Lo);FP=FP==null?6:/[gprs]/.test(Lo)?Math.max(1,Math.min(21,FP)):Math.max(0,Math.min(20,FP));bu.toString=function(){return Tk+
""};
return bu}
var h=T.grouping&&T.thousands?Ftq(T.grouping,T.thousands):rCA,zk=T.currency,OY=T.decimal,fu=T.numerals?Qcc(T.numerals):rCA,Ku=T.percent||"%";return{format:Q,formatPrefix:function(Tk,bu){var V$=Q((Tk=BlS(Tk),Tk.type="f",Tk));Tk=Math.max(-8,Math.min(8,Math.floor(itK(bu)/3)))*3;var v_=Math.pow(10,-Tk),Z4=$G4[8+Tk/3];return function(Uj){return V$(v_*Uj)+Z4}}}}
function Xz(){this.reset()}
function ACM(T,Q,h){var zk=T.s=Q+h,OY=zk-Q;T.t=Q-(zk-OY)+(h-OY)}
function aQQ(T){return T>1?oU:T<-1?-oU:Math.asin(T)}
function cMF(){}
function Wvw(T){var Q=T[0];T=T[1];var h=PJ(T);return[h*PJ(Q),h*tY(Q),tY(T)]}
function nTj(T,Q){return[T[1]*Q[2]-T[2]*Q[1],T[2]*Q[0]-T[0]*Q[2],T[0]*Q[1]-T[1]*Q[0]]}
function LvI(T){var Q=VcS(T[0]*T[0]+T[1]*T[1]+T[2]*T[2]);T[0]/=Q;T[1]/=Q;T[2]/=Q}
function SE8(){var T=[],Q;return{point:function(h,zk){Q.push([h,zk])},
lineStart:function(){T.push(Q=[])},
lineEnd:cMF,rejoin:function(){T.length>1&&T.push(T.pop().concat(T.shift()))},
result:function(){var h=T;T=[];Q=null;return h}}}
function j3f(T,Q,h,zk){this.x=T;this.z=Q;this.o=h;this.e=zk;this.v=!1;this.n=this.p=null}
function d1S(T,Q,h,zk,OY){var fu=[],Ku=[];T.forEach(function(Z4){if(!((Uj=Z4.length-1)<=0)){var Uj,Xq=Z4[0],m7=Z4[Uj],W0=Xq;if(J4(W0[0]-m7[0])<1E-6&&J4(W0[1]-m7[1])<1E-6){OY.lineStart();for(Tk=0;Tk<Uj;++Tk)OY.point((Xq=Z4[Tk])[0],Xq[1]);OY.lineEnd()}else fu.push(Uj=new j3f(Xq,Z4,null,!0)),Ku.push(Uj.o=new j3f(Xq,null,Uj,!1)),fu.push(Uj=new j3f(m7,Z4,null,!1)),Ku.push(Uj.o=new j3f(m7,null,Uj,!0))}});
if(fu.length){Ku.sort(Q);UG_(fu);UG_(Ku);var Tk=0;for(T=Ku.length;Tk<T;++Tk)Ku[Tk].e=h=!h;h=fu[0];for(var bu;;){for(var V$=h,v_=!0;V$.v;)if((V$=V$.n)===h)return;Q=V$.z;OY.lineStart();do{V$.v=V$.o.v=!0;if(V$.e){if(v_)for(Tk=0,T=Q.length;Tk<T;++Tk)OY.point((bu=Q[Tk])[0],bu[1]);else zk(V$.x,V$.n.x,1,OY);V$=V$.n}else{if(v_)for(Q=V$.p.z,Tk=Q.length-1;Tk>=0;--Tk)OY.point((bu=Q[Tk])[0],bu[1]);else zk(V$.x,V$.p.x,-1,OY);V$=V$.p}V$=V$.o;Q=V$.z;v_=!v_}while(!V$.v);OY.lineEnd()}}}
function UG_(T){if(Q=T.length){for(var Q,h=0,zk=T[0],OY;++h<Q;)zk.n=OY=T[h],OY.p=zk,zk=OY;zk.n=OY=T[0];OY.p=zk}}
function om1(T){return T.length>1}
function PSS(T,Q){return((T=T.x)[0]<0?T[1]-oU-1E-6:oU-T[1])-((Q=Q.x)[0]<0?Q[1]-oU-1E-6:oU-Q[1])}
function qFp(){}
function aLA(T){return function(Q,h){var zk=PJ(Q),OY=PJ(h);zk=T(zk*OY);return[zk*OY*tY(Q),zk*tY(h)]}}
function Ab(T){return function(Q,h){var zk=VcS(Q*Q+h*h),OY=T(zk),fu=tY(OY);OY=PJ(OY);return[VC0(Q*fu,zk*OY),aQQ(zk&&h*fu/zk)]}}
function hX8(T){var Q=0,h=T.children,zk=h&&h.length;if(zk)for(;--zk>=0;)Q+=h[zk].value;else Q=1;T.value=Q}
function jEn(T,Q){var h=new W3(T);T=+T.value&&(h.value=T.value);var zk,OY=[h],fu,Ku,Tk,bu;for(Q==null&&(Q=scs);zk=OY.pop();)if(T&&(zk.value=+zk.data.value),(Ku=Q(zk.data))&&(bu=Ku.length))for(zk.children=Array(bu),Tk=bu-1;Tk>=0;--Tk)OY.push(fu=zk.children[Tk]=new W3(Ku[Tk])),fu.parent=zk,fu.depth=zk.depth+1;return h.eachBefore(rMF)}
function scs(T){return T.children}
function $1C(T){T.data=T.data.data}
function rMF(T){var Q=0;do T.height=Q;while((T=T.parent)&&T.height<++Q)}
function W3(T){this.data=T;this.depth=this.height=0;this.parent=null}
function Nu(T,Q,h,zk){function OY(fu){return T(fu=new Date(+fu)),fu}
OY.floor=OY;OY.ceil=function(fu){return T(fu=new Date(fu-1)),Q(fu,1),T(fu),fu};
OY.round=function(fu){var Ku=OY(fu),Tk=OY.ceil(fu);return fu-Ku<Tk-fu?Ku:Tk};
OY.offset=function(fu,Ku){return Q(fu=new Date(+fu),Ku==null?1:Math.floor(Ku)),fu};
OY.range=function(fu,Ku,Tk){var bu=[],V$;fu=OY.ceil(fu);Tk=Tk==null?1:Math.floor(Tk);if(!(fu<Ku&&Tk>0))return bu;do bu.push(V$=new Date(+fu)),Q(fu,Tk),T(fu);while(V$<fu&&fu<Ku);return bu};
OY.filter=function(fu){return Nu(function(Ku){if(Ku>=Ku)for(;T(Ku),!fu(Ku);)Ku.setTime(Ku-1)},function(Ku,Tk){if(Ku>=Ku)if(Tk<0)for(;++Tk<=0;)for(;Q(Ku,-1),!fu(Ku););
else for(;--Tk>=0;)for(;Q(Ku,1),!fu(Ku););})};
h&&(OY.count=function(fu,Ku){i1G.setTime(+fu);FBx.setTime(+Ku);T(i1G);T(FBx);return Math.floor(h(i1G,FBx))},OY.every=function(fu){fu=Math.floor(fu);
return isFinite(fu)&&fu>0?fu>1?OY.filter(zk?function(Ku){return zk(Ku)%fu===0}:function(Ku){return OY.count(0,Ku)%fu===0}):OY:null});
return OY}
function ve(T){return Nu(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-T)%7);Q.setHours(0,0,0,0)},function(Q,h){Q.setDate(Q.getDate()+h*7)},function(Q,h){return(h-Q-(h.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function MO(T){return Nu(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-T)%7);Q.setUTCHours(0,0,0,0)},function(Q,h){Q.setUTCDate(Q.getUTCDate()+h*7)},function(Q,h){return(h-Q)/6048E5})}
function eXX(T){if(0<=T.y&&T.y<100){var Q=new Date(-1,T.m,T.d,T.H,T.M,T.S,T.L);Q.setFullYear(T.y);return Q}return new Date(T.y,T.m,T.d,T.H,T.M,T.S,T.L)}
function JEk(T){if(0<=T.y&&T.y<100){var Q=new Date(Date.UTC(-1,T.m,T.d,T.H,T.M,T.S,T.L));Q.setUTCFullYear(T.y);return Q}return new Date(Date.UTC(T.y,T.m,T.d,T.H,T.M,T.S,T.L))}
function nC(T){return{y:T,m:0,d:1,H:0,M:0,S:0,L:0}}
function wfS(T){function Q($S,Ru){return function(Ov){var Qs=[],wr=-1,PC=0,JK=$S.length,uf,Mk;for(Ov instanceof Date||(Ov=new Date(+Ov));++wr<JK;)if($S.charCodeAt(wr)===37){Qs.push($S.slice(PC,wr));(PC=JCA[uf=$S.charAt(++wr)])!=null?uf=$S.charAt(++wr):PC=uf==="e"?" ":"0";if(Mk=Ru[uf])uf=Mk(Ov,PC);Qs.push(uf);PC=wr+1}Qs.push($S.slice(PC,wr));return Qs.join("")}}
function h($S,Ru){return function(Ov){var Qs=nC(1900);if(zk(Qs,$S,Ov,0)!=Ov.length)return null;if("Q"in Qs)return new Date(Qs.Q);"p"in Qs&&(Qs.H=Qs.H%12+Qs.p*12);if("V"in Qs){if(Qs.V<1||Qs.V>53)return null;"w"in Qs||(Qs.w=1);if("Z"in Qs){Ov=JEk(nC(Qs.y));var wr=Ov.getUTCDay();Ov=wr>4||wr===0?QfS.ceil(Ov):QfS(Ov);Ov=z6j.offset(Ov,(Qs.V-1)*7);Qs.y=Ov.getUTCFullYear();Qs.m=Ov.getUTCMonth();Qs.d=Ov.getUTCDate()+(Qs.w+6)%7}else Ov=Ru(nC(Qs.y)),wr=Ov.getDay(),Ov=wr>4||wr===0?YFx.ceil(Ov):YFx(Ov),Ov=lhw.offset(Ov,
(Qs.V-1)*7),Qs.y=Ov.getFullYear(),Qs.m=Ov.getMonth(),Qs.d=Ov.getDate()+(Qs.w+6)%7}else if("W"in Qs||"U"in Qs)"w"in Qs||(Qs.w="u"in Qs?Qs.u%7:"W"in Qs?1:0),wr="Z"in Qs?JEk(nC(Qs.y)).getUTCDay():Ru(nC(Qs.y)).getDay(),Qs.m=0,Qs.d="W"in Qs?(Qs.w+6)%7+Qs.W*7-(wr+5)%7:Qs.w+Qs.U*7-(wr+6)%7;return"Z"in Qs?(Qs.H+=Qs.Z/100|0,Qs.M+=Qs.Z%100,JEk(Qs)):Ru(Qs)}}
function zk($S,Ru,Ov,Qs){for(var wr=0,PC=Ru.length,JK=Ov.length,uf;wr<PC;){if(Qs>=JK)return-1;uf=Ru.charCodeAt(wr++);if(uf===37){if(uf=Ru.charAt(wr++),uf=ON[uf in JCA?Ru.charAt(wr++):uf],!uf||(Qs=uf($S,Ov,Qs))<0)return-1}else if(uf!=Ov.charCodeAt(Qs++))return-1}return Qs}
var OY=T.dateTime,fu=T.date,Ku=T.time,Tk=T.periods,bu=T.days,V$=T.shortDays,v_=T.months,Z4=T.shortMonths,Uj=LC(Tk),Xq=UQ(Tk),m7=LC(bu),W0=UQ(bu),FP=LC(V$),jX=UQ(V$),Lo=LC(v_),yA=UQ(v_),UB=LC(Z4),Uf=UQ(Z4),f0={a:function($S){return V$[$S.getDay()]},
A:function($S){return bu[$S.getDay()]},
b:function($S){return Z4[$S.getMonth()]},
B:function($S){return v_[$S.getMonth()]},
c:null,d:IhA,e:IhA,f:AMK,H:Wt4,I:nmq,j:Lt8,L:b1_,m:U1K,M:aZK,p:function($S){return Tk[+($S.getHours()>=12)]},
Q:v$A,s:MDu,S:VaK,u:jcy,U:JMS,V:z5S,w:lLq,W:ILK,x:null,X:null,y:bqW,Y:vTX,Z:MCc,"%":pZj},Uv={a:function($S){return V$[$S.getUTCDay()]},
A:function($S){return bu[$S.getUTCDay()]},
b:function($S){return Z4[$S.getUTCMonth()]},
B:function($S){return v_[$S.getUTCMonth()]},
c:null,d:DwM,e:DwM,f:p2s,H:DG0,I:xGs,j:OqK,L:xw0,m:gTC,M:GvW,p:function($S){return Tk[+($S.getUTCHours()>=12)]},
Q:v$A,s:MDu,S:N3C,u:ETs,U:uXc,V:Zq0,w:Hqq,W:yCq,x:null,X:null,y:fL1,Y:CVX,Z:kv1,"%":pZj},ON={a:function($S,Ru,Ov){return(Ru=FP.exec(Ru.slice(Ov)))?($S.w=jX[Ru[0].toLowerCase()],Ov+Ru[0].length):-1},
A:function($S,Ru,Ov){return(Ru=m7.exec(Ru.slice(Ov)))?($S.w=W0[Ru[0].toLowerCase()],Ov+Ru[0].length):-1},
b:function($S,Ru,Ov){return(Ru=UB.exec(Ru.slice(Ov)))?($S.m=Uf[Ru[0].toLowerCase()],Ov+Ru[0].length):-1},
B:function($S,Ru,Ov){return(Ru=Lo.exec(Ru.slice(Ov)))?($S.m=yA[Ru[0].toLowerCase()],Ov+Ru[0].length):-1},
c:function($S,Ru,Ov){return zk($S,OY,Ru,Ov)},
d:O1p,e:O1p,f:R5s,H:g$A,I:g$A,j:mGX,L:KvK,m:tCq,M:B3K,p:function($S,Ru,Ov){return(Ru=Uj.exec(Ru.slice(Ov)))?($S.p=Xq[Ru[0].toLowerCase()],Ov+Ru[0].length):-1},
Q:X24,s:qD0,S:iql,u:FvK,U:QE8,V:YDX,w:T3q,W:cC0,x:function($S,Ru,Ov){return zk($S,fu,Ru,Ov)},
X:function($S,Ru,Ov){return zk($S,Ku,Ru,Ov)},
y:SD0,Y:dGl,Z:oTs,"%":PV8};f0.x=Q(fu,f0);f0.X=Q(Ku,f0);f0.c=Q(OY,f0);Uv.x=Q(fu,Uv);Uv.X=Q(Ku,Uv);Uv.c=Q(OY,Uv);return{format:function($S){var Ru=Q($S,f0);Ru.toString=function(){return $S};
return Ru},
parse:function($S){var Ru=h($S,eXX);Ru.toString=function(){return $S};
return Ru},
utcFormat:function($S){var Ru=Q($S,Uv);Ru.toString=function(){return $S};
return Ru},
utcParse:function($S){var Ru=h($S,JEk);Ru.toString=function(){return $S};
return Ru}}}
function kP(T,Q,h){var zk=T<0?"-":"";T=(zk?-T:T)+"";var OY=T.length;return zk+(OY<h?Array(h-OY+1).join(Q)+T:T)}
function h5s(T){return T.replace(sEX,"\\$&")}
function LC(T){return new RegExp("^(?:"+T.map(h5s).join("|")+")","i")}
function UQ(T){for(var Q={},h=-1,zk=T.length;++h<zk;)Q[T[h].toLowerCase()]=h;return Q}
function T3q(T,Q,h){return(Q=fc.exec(Q.slice(h,h+1)))?(T.w=+Q[0],h+Q[0].length):-1}
function FvK(T,Q,h){return(Q=fc.exec(Q.slice(h,h+1)))?(T.u=+Q[0],h+Q[0].length):-1}
function QE8(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.U=+Q[0],h+Q[0].length):-1}
function YDX(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.V=+Q[0],h+Q[0].length):-1}
function cC0(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.W=+Q[0],h+Q[0].length):-1}
function dGl(T,Q,h){return(Q=fc.exec(Q.slice(h,h+4)))?(T.y=+Q[0],h+Q[0].length):-1}
function SD0(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.y=+Q[0]+(+Q[0]>68?1900:2E3),h+Q[0].length):-1}
function oTs(T,Q,h){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(h,h+6)))?(T.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),h+Q[0].length):-1}
function tCq(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.m=Q[0]-1,h+Q[0].length):-1}
function O1p(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.d=+Q[0],h+Q[0].length):-1}
function mGX(T,Q,h){return(Q=fc.exec(Q.slice(h,h+3)))?(T.m=0,T.d=+Q[0],h+Q[0].length):-1}
function g$A(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.H=+Q[0],h+Q[0].length):-1}
function B3K(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.M=+Q[0],h+Q[0].length):-1}
function iql(T,Q,h){return(Q=fc.exec(Q.slice(h,h+2)))?(T.S=+Q[0],h+Q[0].length):-1}
function KvK(T,Q,h){return(Q=fc.exec(Q.slice(h,h+3)))?(T.L=+Q[0],h+Q[0].length):-1}
function R5s(T,Q,h){return(Q=fc.exec(Q.slice(h,h+6)))?(T.L=Math.floor(Q[0]/1E3),h+Q[0].length):-1}
function PV8(T,Q,h){return(T=rC0.exec(Q.slice(h,h+1)))?h+T[0].length:-1}
function X24(T,Q,h){return(Q=fc.exec(Q.slice(h)))?(T.Q=+Q[0],h+Q[0].length):-1}
function qD0(T,Q,h){return(Q=fc.exec(Q.slice(h)))?(T.Q=+Q[0]*1E3,h+Q[0].length):-1}
function IhA(T,Q){return kP(T.getDate(),Q,2)}
function Wt4(T,Q){return kP(T.getHours(),Q,2)}
function nmq(T,Q){return kP(T.getHours()%12||12,Q,2)}
function Lt8(T,Q){return kP(1+lhw.count(Ch(T),T),Q,3)}
function b1_(T,Q){return kP(T.getMilliseconds(),Q,3)}
function AMK(T,Q){return b1_(T,Q)+"000"}
function U1K(T,Q){return kP(T.getMonth()+1,Q,2)}
function aZK(T,Q){return kP(T.getMinutes(),Q,2)}
function VaK(T,Q){return kP(T.getSeconds(),Q,2)}
function jcy(T){T=T.getDay();return T===0?7:T}
function JMS(T,Q){return kP($GF.count(Ch(T),T),Q,2)}
function z5S(T,Q){var h=T.getDay();T=h>=4||h===0?TlG(T):TlG.ceil(T);return kP(TlG.count(Ch(T),T)+(Ch(T).getDay()===4),Q,2)}
function lLq(T){return T.getDay()}
function ILK(T,Q){return kP(YFx.count(Ch(T),T),Q,2)}
function bqW(T,Q){return kP(T.getFullYear()%100,Q,2)}
function vTX(T,Q){return kP(T.getFullYear()%1E4,Q,4)}
function MCc(T){T=T.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+kP(T/60|0,"0",2)+kP(T%60,"0",2)}
function DwM(T,Q){return kP(T.getUTCDate(),Q,2)}
function DG0(T,Q){return kP(T.getUTCHours(),Q,2)}
function xGs(T,Q){return kP(T.getUTCHours()%12||12,Q,2)}
function OqK(T,Q){return kP(1+z6j.count(kG(T),T),Q,3)}
function xw0(T,Q){return kP(T.getUTCMilliseconds(),Q,3)}
function p2s(T,Q){return xw0(T,Q)+"000"}
function gTC(T,Q){return kP(T.getUTCMonth()+1,Q,2)}
function GvW(T,Q){return kP(T.getUTCMinutes(),Q,2)}
function N3C(T,Q){return kP(T.getUTCSeconds(),Q,2)}
function ETs(T){T=T.getUTCDay();return T===0?7:T}
function uXc(T,Q){return kP(e5C.count(kG(T),T),Q,2)}
function Zq0(T,Q){var h=T.getUTCDay();T=h>=4||h===0?c4x(T):c4x.ceil(T);return kP(c4x.count(kG(T),T)+(kG(T).getUTCDay()===4),Q,2)}
function Hqq(T){return T.getUTCDay()}
function yCq(T,Q){return kP(QfS.count(kG(T),T),Q,2)}
function fL1(T,Q){return kP(T.getUTCFullYear()%100,Q,2)}
function CVX(T,Q){return kP(T.getUTCFullYear()%1E4,Q,4)}
function kv1(){return"+0000"}
function pZj(){return"%"}
function v$A(T){return+T}
function MDu(T){return Math.floor(+T/1E3)}
function ZC(T){for(var Q=T.length/6|0,h=Array(Q),zk=0;zk<Q;)h[zk]="#"+T.slice(zk*6,++zk*6);return h}
function Ar(T){return w2S(T[T.length-1])}
function znu(T){var Q=T.length;return function(h){return T[Math.max(0,Math.min(Q-1,Math.floor(h*Q)))]}}
function G$u(T){this._context=T}
function NlA(T){this._curve=T}
function E$I(T,Q,h){var zk=T._x1-T._x0;Q-=T._x1;var OY=(T._y1-T._y0)/(zk||Q<0&&-0);T=(h-T._y1)/(Q||zk<0&&-0);return((OY<0?-1:1)+(T<0?-1:1))*Math.min(Math.abs(OY),Math.abs(T),.5*Math.abs((OY*Q+T*zk)/(zk+Q)))||0}
function ux_(T,Q){var h=T._x1-T._x0;return h?(3*(T._y1-T._y0)/h-Q)/2:Q}
function SFS(T,Q,h){var zk=T._x0,OY=T._x1,fu=T._y1,Ku=(OY-zk)/3;T._context.bezierCurveTo(zk+Ku,T._y0+Ku*Q,OY-Ku,fu-Ku*h,OY,fu)}
function dwu(T){this._context=T}
function Z1u(T){this._context=T}
function aN(T,Q,h){this.k=T;this.x=Q;this.y=h}
(function(T){T.length===1&&(T=l(T));return{left:function(Q,h,zk,OY){zk==null&&(zk=0);OY==null&&(OY=Q.length);for(;zk<OY;){var fu=zk+OY>>>1;T(Q[fu],h)<0?zk=fu+1:OY=fu}return zk},
right:function(Q,h,zk,OY){zk==null&&(zk=0);OY==null&&(OY=Q.length);for(;zk<OY;){var fu=zk+OY>>>1;T(Q[fu],h)>0?OY=fu:zk=fu+1}return zk}}})(z);
var oKK={value:function(){}};
b.prototype=I.prototype={constructor:b,on:function(T,Q){var h=this._,zk=v(T+"",h),OY,fu=-1,Ku=zk.length;if(arguments.length<2)for(;++fu<Ku;){var Tk;if(Tk=OY=(T=zk[fu]).type){a:{Tk=h[OY];for(var bu=0,V$=Tk.length;bu<V$;++bu)if((OY=Tk[bu]).name===T.name){OY=OY.value;break a}OY=void 0}Tk=OY}if(Tk)return OY}else{if(Q!=null&&typeof Q!=="function")throw Error("Ce`"+Q);for(;++fu<Ku;)if(OY=(T=zk[fu]).type)h[OY]=M(h[OY],T.name,Q);else if(Q==null)for(OY in h)h[OY]=M(h[OY],T.name,null);return this}},
copy:function(){var T={},Q=this._,h;for(h in Q)T[h]=Q[h].slice();return new b(T)},
call:function(T,Q){if((OY=arguments.length-2)>0)for(var h=Array(OY),zk=0,OY,fu;zk<OY;++zk)h[zk]=arguments[zk+2];if(!this._.hasOwnProperty(T))throw Error("we`"+T);fu=this._[T];zk=0;for(OY=fu.length;zk<OY;++zk)fu[zk].value.apply(Q,h)},
apply:function(T,Q,h){if(!this._.hasOwnProperty(T))throw Error("we`"+T);T=this._[T];for(var zk=0,OY=T.length;zk<OY;++zk)T[zk].value.apply(Q,h)}};
var dx={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/"},H1_=function(T){return function(){return this.matches(T)}};
if(typeof document!=="undefined"){var Vn=document.documentElement;if(!Vn.matches){var ACW=Vn.webkitMatchesSelector||Vn.msMatchesSelector||Vn.mozMatchesSelector||Vn.oMatchesSelector;H1_=function(T){return function(){return ACW.call(this,T)}}}}var y40=H1_;
f.prototype={constructor:f,appendChild:function(T){return this._parent.insertBefore(T,this._next)},
insertBefore:function(T,Q){return this._parent.insertBefore(T,Q)},
querySelector:function(T){return this._parent.querySelector(T)},
querySelectorAll:function(T){return this._parent.querySelectorAll(T)}};
var kvI={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(kvI={mouseenter:"mouseover",mouseleave:"mouseout"}));var PA1=[null];Ln.prototype=Cl.prototype={constructor:Ln,select:function(T){typeof T!=="function"&&(T=H(T));for(var Q=this._groups,h=Q.length,zk=Array(h),OY=0;OY<h;++OY)for(var fu=Q[OY],Ku=fu.length,Tk=zk[OY]=Array(Ku),bu,V$,v_=0;v_<Ku;++v_)(bu=fu[v_])&&(V$=T.call(bu,bu.__data__,v_,fu))&&("__data__"in bu&&(V$.__data__=bu.__data__),Tk[v_]=V$);return new Ln(zk,
this._parents)},
filter:function(T){typeof T!=="function"&&(T=y40(T));for(var Q=this._groups,h=Q.length,zk=Array(h),OY=0;OY<h;++OY)for(var fu=Q[OY],Ku=fu.length,Tk=zk[OY]=[],bu,V$=0;V$<Ku;++V$)(bu=fu[V$])&&T.call(bu,bu.__data__,V$,fu)&&Tk.push(bu);return new Ln(zk,this._parents)},
data:function(T,Q){if(!T)return Xq=Array(this.size()),V$=-1,this.each(function(Lo){Xq[++V$]=Lo}),Xq;
var h=Q?Y:F,zk=this._parents,OY=this._groups;typeof T!=="function"&&(T=R(T));for(var fu=OY.length,Ku=Array(fu),Tk=Array(fu),bu=Array(fu),V$=0;V$<fu;++V$){var v_=zk[V$],Z4=OY[V$],Uj=Z4.length,Xq=T.call(v_,v_&&v_.__data__,V$,zk),m7=Xq.length,W0=Tk[V$]=Array(m7),FP=Ku[V$]=Array(m7);Uj=bu[V$]=Array(Uj);h(v_,Z4,W0,FP,Uj,Xq,Q);Z4=v_=0;for(var jX;v_<m7;++v_)if(Uj=W0[v_]){for(v_>=Z4&&(Z4=v_+1);!(jX=FP[Z4])&&++Z4<m7;);Uj._next=jX||null}}Ku=new Ln(Ku,zk);Ku._enter=Tk;Ku._exit=bu;return Ku},
enter:function(){return new Ln(this._enter||this._groups.map(y),this._parents)},
exit:function(){return new Ln(this._exit||this._groups.map(y),this._parents)},
merge:function(T){var Q=this._groups;T=T._groups;for(var h=Q.length,zk=Math.min(h,T.length),OY=Array(h),fu=0;fu<zk;++fu)for(var Ku=Q[fu],Tk=T[fu],bu=Ku.length,V$=OY[fu]=Array(bu),v_,Z4=0;Z4<bu;++Z4)if(v_=Ku[Z4]||Tk[Z4])V$[Z4]=v_;for(;fu<h;++fu)OY[fu]=Q[fu];return new Ln(OY,this._parents)},
order:function(){for(var T=this._groups,Q=-1,h=T.length;++Q<h;)for(var zk=T[Q],OY=zk.length-1,fu=zk[OY],Ku;--OY>=0;)if(Ku=zk[OY])fu&&fu!==Ku.nextSibling&&fu.parentNode.insertBefore(Ku,fu),fu=Ku;return this},
sort:function(T){function Q(Z4,Uj){return Z4&&Uj?T(Z4.__data__,Uj.__data__):!Z4-!Uj}
T||(T=c);for(var h=this._groups,zk=h.length,OY=Array(zk),fu=0;fu<zk;++fu){for(var Ku=h[fu],Tk=Ku.length,bu=OY[fu]=Array(Tk),V$,v_=0;v_<Tk;++v_)if(V$=Ku[v_])bu[v_]=V$;bu.sort(Q)}return(new Ln(OY,this._parents)).order()},
call:function(){var T=arguments[0];arguments[0]=this;T.apply(null,arguments);return this},
nodes:function(){var T=Array(this.size()),Q=-1;this.each(function(){T[++Q]=this});
return T},
node:function(){for(var T=this._groups,Q=0,h=T.length;Q<h;++Q)for(var zk=T[Q],OY=0,fu=zk.length;OY<fu;++OY){var Ku=zk[OY];if(Ku)return Ku}return null},
size:function(){var T=0;this.each(function(){++T});
return T},
empty:function(){return!this.node()},
each:function(T){for(var Q=this._groups,h=0,zk=Q.length;h<zk;++h)for(var OY=Q[h],fu=0,Ku=OY.length,Tk;fu<Ku;++fu)(Tk=OY[fu])&&T.call(Tk,Tk.__data__,fu,OY);return this},
attr:function(T,Q){var h=x(T);if(arguments.length<2){var zk=this.node();return h.local?zk.getAttributeNS(h.space,h.local):zk.getAttribute(h)}return this.each((Q==null?h.local?V:d:typeof Q==="function"?h.local?lH:L:h.local?W:A)(h,Q))},
style:function(T,Q,h){return arguments.length>1?this.each((Q==null?Gk:typeof Q==="function"?Xt:uH)(T,Q,h==null?"":h)):R1(this.node(),T)},
property:function(T,Q){return arguments.length>1?this.each((Q==null?H7:typeof Q==="function"?o1:P7)(T,Q)):this.node()[T]},
text:function(T){return arguments.length?this.each(T==null?z_:(typeof T==="function"?Ej:dw)(T)):this.node().textContent},
html:function(T){return arguments.length?this.each(T==null?JG:(typeof T==="function"?uu:yu)(T)):this.node().innerHTML},
append:function(T){var Q=typeof T==="function"?T:u(T);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(T,Q){var h=typeof T==="function"?T:u(T),zk=Q==null?Y0:typeof Q==="function"?Q:H(Q);return this.select(function(){return this.insertBefore(h.apply(this,arguments),zk.apply(this,arguments)||null)})},
remove:function(){return this.each(iK)},
clone:function(T){return this.select(T?pu:a_)},
datum:function(T){return arguments.length?this.property("__data__",T):this.node().__data__},
on:function(T,Q,h){var zk=E8(T+""),OY=zk.length,fu;if(arguments.length<2){var Ku=this.node().__on;if(Ku)for(var Tk=0,bu=Ku.length,V$;Tk<bu;++Tk){var v_=0;for(V$=Ku[Tk];v_<OY;++v_)if((fu=zk[v_]).type===V$.type&&fu.name===V$.name)return V$.value}}else{Ku=Q?bK:R_;h==null&&(h=!1);for(v_=0;v_<OY;++v_)this.each(Ku(zk[v_],Q,h));return this}},
dispatch:function(T,Q){return this.each((typeof Q==="function"?gw:lK)(T,Q))}};
var hm0=0;FA.prototype=function(){return new FA}.prototype={constructor:FA,
get:function(T){for(var Q=this._;!(Q in T);)if(!(T=T.parentNode))return;return T[Q]},
set:function(T,Q){return T[this._]=Q},
remove:function(T){return this._ in T&&delete T[this._]},
toString:function(){return this._}};
var Rs=1/.7,sPS=/^#([0-9a-f]{3})$/,rd4=/^#([0-9a-f]{6})$/,$kc=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),em0=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),wTK=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),AdW=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*\\)$"),
WqK=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nKK=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*\\)$"),R5u={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};
tp(jA,uK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
tp(WX,hy,ys(jA,{brighter:function(T){T=T==null?Rs:Math.pow(Rs,T);return new WX(this.r*T,this.g*T,this.b*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new WX(this.r*T,this.g*T,this.b*T,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+BQ(this.r)+BQ(this.g)+BQ(this.b)},
toString:function(){var T=this.opacity;T=isNaN(T)?1:Math.max(0,Math.min(1,T));return(T===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(T===1?")":", "+T+")")}}));
tp(ZJ,rk,ys(jA,{brighter:function(T){T=T==null?Rs:Math.pow(Rs,T);return new ZJ(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new ZJ(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=this.h%360+(this.h<0)*360,Q=this.l,h=Q+(Q<.5?Q:1-Q)*(isNaN(T)||isNaN(this.s)?0:this.s);Q=2*Q-h;return new WX(dH(T>=240?T-240:T+120,Q,h),dH(T,Q,h),dH(T<120?T+240:T-120,Q,h),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 mG_=Math.PI/180,B3u=180/Math.PI,tCA=4/29,y2=6/29,Kvu=3*y2*y2,LqC=y2*y2*y2;tp(Ft,function(T,Q,h,zk){return arguments.length===1?Dp(T):new Ft(T,Q,h,zk==null?1:zk)},ys(jA,{brighter:function(T){return new Ft(this.l+18*(T==null?1:T),this.a,this.b,this.opacity)},
darker:function(T){return new Ft(this.l-18*(T==null?1:T),this.a,this.b,this.opacity)},
rgb:function(){var T=(this.l+16)/116,Q=isNaN(this.a)?T:T+this.a/500,h=isNaN(this.b)?T:T-this.b/200;Q=.96422*W7(Q);T=1*W7(T);h=.82521*W7(h);return new WX(Cn(3.1338561*Q-1.6168667*T-.4906146*h),Cn(-.9787684*Q+1.9161415*T+.033454*h),Cn(.0719453*Q-.2289914*T+1.4052427*h),this.opacity)}}));
tp(Kn,Kl,ys(jA,{brighter:function(T){return new Kn(this.h,this.c,this.l+18*(T==null?1:T),this.opacity)},
darker:function(T){return new Kn(this.h,this.c,this.l-18*(T==null?1:T),this.opacity)},
rgb:function(){return Dp(this).rgb()}}));
var X2w=1.78277*-.29227-.1347134789;tp(cX,mA,ys(jA,{brighter:function(T){T=T==null?Rs:Math.pow(Rs,T);return new cX(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new cX(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=isNaN(this.h)?0:(this.h+120)*mG_,Q=+this.l,h=isNaN(this.s)?0:this.s*Q*(1-Q),zk=Math.cos(T);T=Math.sin(T);return new WX(255*(Q+h*(-.14861*zk+1.78277*T)),255*(Q+h*(-.29227*zk+-.90649*T)),255*(Q+1.97294*zk*h),this.opacity)}}));
var YD_=function h(Q){function zk(fu,Ku){var Tk=OY((fu=hy(fu)).r,(Ku=hy(Ku)).r),bu=OY(fu.g,Ku.g),V$=OY(fu.b,Ku.b),v_=L2(fu.opacity,Ku.opacity);return function(Z4){fu.r=Tk(Z4);fu.g=bu(Z4);fu.b=V$(Z4);fu.opacity=v_(Z4);return fu+""}}
var OY=w2(Q);zk.gamma=h;return zk}(1),w2S=lC(function(Q){var h=Q.length-1;
return function(zk){var OY=zk<=0?zk=0:zk>=1?(zk=1,h-1):Math.floor(zk*h),fu=Q[OY],Ku=Q[OY+1];return CD((zk-OY/h)*h,OY>0?Q[OY-1]:2*fu-Ku,fu,Ku,OY<h-1?Q[OY+2]:2*Ku-fu)}});
lC(function(Q){var h=Q.length;return function(zk){var OY=Math.floor(((zk%=1)<0?++zk:zk)*h);return CD((zk-OY/h)*h,Q[(OY+h-1)%h],Q[OY%h],Q[(OY+1)%h],Q[(OY+2)%h])}});
var H11=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y45=new RegExp(H11.source,"g"),qDA=180/Math.PI,o$x={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},jf,Ph$,fh_,lr5,Wv4=oC(function(Q){if(Q==="none")return o$x;jf||(jf=document.createElement("DIV"),Ph$=document.documentElement,fh_=document.defaultView);jf.style.transform=Q;Q=fh_.getComputedStyle(Ph$.appendChild(jf),null).getPropertyValue("transform");Ph$.removeChild(jf);Q=Q.slice(7,-1).split(",");return kS(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),nT8=oC(function(Q){if(Q==null)return o$x;
lr5||(lr5=document.createElementNS("http://www.w3.org/2000/svg","g"));lr5.setAttribute("transform",Q);if(!(Q=lr5.transform.baseVal.consolidate()))return o$x;Q=Q.matrix;return kS(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
DF(PQ);DF(L2);E7(PQ);E7(L2);U7(PQ);var h6H=U7(L2),fh=0,$o=0,wd=0,WZQ,ef,AEp=0,Ia=0,wV7=0,rd=typeof performance==="object"&&performance.now?performance:Date,iqn=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
X1.prototype=QD.prototype={constructor:X1,restart:function(Q,h,zk){if(typeof Q!=="function")throw new TypeError("De");zk=(zk==null?$N():+zk)+(h==null?0:+h);this._next||ef===this||(ef?ef._next=this:WZQ=this,ef=this);this._call=Q;this._time=zk;Tx()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Tx())}};
var atl=I("start","end","interrupt"),Vo0=[],Lv1=Cl.prototype.constructor,Ch4=0,mR=Cl.prototype;jD.prototype=function(Q){return Cl().transition(Q)}.prototype={constructor:jD,
select:function(Q){var h=this._name,zk=this._id;typeof Q!=="function"&&(Q=H(Q));for(var OY=this._groups,fu=OY.length,Ku=Array(fu),Tk=0;Tk<fu;++Tk)for(var bu=OY[Tk],V$=bu.length,v_=Ku[Tk]=Array(V$),Z4,Uj,Xq=0;Xq<V$;++Xq)(Z4=bu[Xq])&&(Uj=Q.call(Z4,Z4.__data__,Xq,bu))&&("__data__"in Z4&&(Uj.__data__=Z4.__data__),v_[Xq]=Uj,fh7(v_[Xq],h,zk,Xq,v_,FE(Z4,zk)));return new jD(Ku,this._parents,h,zk)},
filter:function(Q){typeof Q!=="function"&&(Q=y40(Q));for(var h=this._groups,zk=h.length,OY=Array(zk),fu=0;fu<zk;++fu)for(var Ku=h[fu],Tk=Ku.length,bu=OY[fu]=[],V$,v_=0;v_<Tk;++v_)(V$=Ku[v_])&&Q.call(V$,V$.__data__,v_,Ku)&&bu.push(V$);return new jD(OY,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var h=this._groups;Q=Q._groups;for(var zk=h.length,OY=Math.min(zk,Q.length),fu=Array(zk),Ku=0;Ku<OY;++Ku)for(var Tk=h[Ku],bu=Q[Ku],V$=Tk.length,v_=fu[Ku]=Array(V$),Z4,Uj=0;Uj<V$;++Uj)if(Z4=Tk[Uj]||bu[Uj])v_[Uj]=Z4;for(;Ku<zk;++Ku)fu[Ku]=h[Ku];return new jD(fu,this._parents,this._name,this._id)},
selection:function(){return new Lv1(this._groups,this._parents)},
transition:function(){for(var Q=this._name,h=this._id,zk=++Ch4,OY=this._groups,fu=OY.length,Ku=0;Ku<fu;++Ku)for(var Tk=OY[Ku],bu=Tk.length,V$,v_=0;v_<bu;++v_)if(V$=Tk[v_]){var Z4=FE(V$,h);fh7(V$,Q,zk,v_,Tk,{time:Z4.time+Z4.delay+Z4.duration,delay:0,duration:Z4.duration,ease:Z4.ease})}return new jD(OY,this._parents,Q,zk)},
call:mR.call,nodes:mR.nodes,node:mR.node,size:mR.size,empty:mR.empty,each:mR.each,on:function(Q,h){var zk=this._id;return arguments.length<2?FE(this.node(),zk).on.on(Q):this.each(uTy(zk,Q,h))},
attr:function(Q,h){var zk=x(Q),OY=zk==="transform"?nT8:QEj;return this.attrTween(Q,typeof h==="function"?(zk.local?Ma8:vmy)(zk,OY,k$k(this,"attr."+Q,h)):h==null?(zk.local?lZy:zXq)(zk):(zk.local?bt0:IZc)(zk,OY,h+""))},
attrTween:function(Q,h){var zk="attr."+Q;if(arguments.length<2)return(zk=this.tween(zk))&&zk._value;if(h==null)return this.tween(zk,null);if(typeof h!=="function")throw Error();var OY=x(Q);return this.tween(zk,(OY.local?pfC:D1l)(OY,h))},
style:function(Q,h,zk){var OY=Q==="transform"?Wv4:QEj;return h==null?this.styleTween(Q,HtW(Q,OY)).on("end.style."+Q,yM0(Q)):this.styleTween(Q,typeof h==="function"?CSs(Q,OY,k$k(this,"style."+Q,h)):fZc(Q,OY,h+""),zk)},
styleTween:function(Q,h,zk){var OY="style."+Q;if(arguments.length<2)return(OY=this.tween(OY))&&OY._value;if(h==null)return this.tween(OY,null);if(typeof h!=="function")throw Error();return this.tween(OY,kWF(Q,h,zk==null?"":zk))},
text:function(Q){return this.tween("text",typeof Q==="function"?m1W(k$k(this,"text",Q)):RX4(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",ZtX(this._id))},
tween:function(Q,h){var zk=this._id;if(arguments.length<2){zk=FE(this.node(),zk).tween;for(var OY=0,fu=zk.length,Ku;OY<fu;++OY)if((Ku=zk[OY]).name===Q)return Ku.value;return null}return this.each((h==null?jPC:Jdc)(zk,Q,h))},
delay:function(Q){var h=this._id;return arguments.length?this.each((typeof Q==="function"?x1W:OtK)(h,Q)):FE(this.node(),h).delay},
duration:function(Q){var h=this._id;return arguments.length?this.each((typeof Q==="function"?gmS:GWc)(h,Q)):FE(this.node(),h).duration},
ease:function(Q){var h=this._id;return arguments.length?this.each(Nbc(h,Q)):FE(this.node(),h).ease}};
var sf5={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
Cl.prototype.transition=function(Q){var h;if(Q instanceof jD){var zk=Q._id;Q=Q._name}else zk=++Ch4,(h=sf5).time=$N(),Q=Q==null?null:Q+"";for(var OY=this._groups,fu=OY.length,Ku=0;Ku<fu;++Ku)for(var Tk=OY[Ku],bu=Tk.length,V$,v_=0;v_<bu;++v_)if(V$=Tk[v_]){var Z4=V$,Uj=Q,Xq=zk,m7=v_,W0=Tk,FP;if(!(FP=h))a:{FP=void 0;for(var jX=zk;!(FP=V$.__transition)||!(FP=FP[jX]);)if(!(V$=V$.parentNode)){FP=(sf5.time=$N(),sf5);break a}}fh7(Z4,Uj,Xq,m7,W0,FP)}return new jD(OY,this._parents,Q,zk)};
["e","w"].map(R6H);["n","s"].map(R6H);"n e s w nw ne se sw".split(" ").map(R6H);mwf.prototype=function(){return new mwf}.prototype={constructor:mwf,
moveTo:function(Q,h){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+h)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,h){this._+="L"+(this._x1=+Q)+","+(this._y1=+h)},
bezierCurveTo:function(Q,h,zk,OY,fu,Ku){this._+="C"+ +Q+","+ +h+","+ +zk+","+ +OY+","+(this._x1=+fu)+","+(this._y1=+Ku)},
rect:function(Q,h,zk,OY){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+h)+"h"+ +zk+"v"+ +OY+"h"+-zk+"Z"},
toString:function(){return this._}};
nsk.prototype=T3A.prototype={constructor:nsk,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,h){this[" "+Q]=h;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],h;for(h in this)h[0]===" "&&Q.push(h.slice(1));return Q},
values:function(){var Q=[],h;for(h in this)h[0]===" "&&Q.push(this[h]);return Q},
entries:function(){var Q=[],h;for(h in this)h[0]===" "&&Q.push({key:h.slice(1),value:this[h]});return Q},
size:function(){var Q=0,h;for(h in this)h[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var h in this)h[0]===" "&&Q(this[h],h.slice(1),this)}};
var pz=T3A.prototype;LZk.prototype=function(Q,h){var zk=new LZk;if(Q instanceof LZk)Q.each(function(Ku){zk.add(Ku)});
else if(Q){var OY=-1,fu=Q.length;if(h==null)for(;++OY<fu;)zk.add(Q[OY]);else for(;++OY<fu;)zk.add(h(Q[OY],OY,Q))}return zk}.prototype={constructor:LZk,
has:pz.has,add:function(Q){this[" "+Q]=Q;return this},
remove:pz.remove,clear:pz.clear,values:pz.keys,size:pz.size,empty:pz.empty,each:pz.each};var dGn={},KBQ={},UGC=SDA(",").parse,aL0=SDA("\t").parse;oTu(UGC);oTu(aL0);var eg=function(Q,h,zk){h=new tDQ(h==null?Xf0:h,zk==null?qEK:zk,NaN,NaN,NaN,NaN);return Q==null?h:h.addAll(Q)}.prototype=tDQ.prototype;
eg.copy=function(){var Q=new tDQ(this._x,this._y,this._x0,this._y0,this._x1,this._y1),h=this._root,zk,OY;if(!h)return Q;if(!h.length)return Q._root=h5u(h),Q;for(zk=[{source:h,target:Q._root=Array(4)}];h=zk.pop();)for(var fu=0;fu<4;++fu)if(OY=h.source[fu])OY.length?zk.push({source:OY,target:h.target[fu]=Array(4)}):h.target[fu]=h5u(OY);return Q};
eg.add=function(Q){var h=+this._x.call(null,Q),zk=+this._y.call(null,Q);return PVj(this.cover(h,zk),h,zk,Q)};
eg.addAll=function(Q){var h,zk,OY=Q.length,fu,Ku,Tk=Array(OY),bu=Array(OY),V$=Infinity,v_=Infinity,Z4=-Infinity,Uj=-Infinity;for(zk=0;zk<OY;++zk)isNaN(fu=+this._x.call(null,h=Q[zk]))||isNaN(Ku=+this._y.call(null,h))||(Tk[zk]=fu,bu[zk]=Ku,fu<V$&&(V$=fu),fu>Z4&&(Z4=fu),Ku<v_&&(v_=Ku),Ku>Uj&&(Uj=Ku));Z4<V$&&(V$=this._x0,Z4=this._x1);Uj<v_&&(v_=this._y0,Uj=this._y1);this.cover(V$,v_).cover(Z4,Uj);for(zk=0;zk<OY;++zk)PVj(this,Tk[zk],bu[zk],Q[zk]);return this};
eg.cover=function(Q,h){if(isNaN(Q=+Q)||isNaN(h=+h))return this;var zk=this._x0,OY=this._y0,fu=this._x1,Ku=this._y1;if(isNaN(zk))fu=(zk=Math.floor(Q))+1,Ku=(OY=Math.floor(h))+1;else if(zk>Q||Q>fu||OY>h||h>Ku){var Tk=fu-zk,bu=this._root,V$;switch(V$=(h<(OY+Ku)/2)<<1|Q<(zk+fu)/2){case 0:do{var v_=Array(4);v_[V$]=bu;bu=v_}while(Tk*=2,fu=zk+Tk,Ku=OY+Tk,Q>fu||h>Ku);break;case 1:do v_=Array(4),v_[V$]=bu,bu=v_;while(Tk*=2,zk=fu-Tk,Ku=OY+Tk,zk>Q||h>Ku);break;case 2:do v_=Array(4),v_[V$]=bu,bu=v_;while(Tk*=
2,fu=zk+Tk,OY=Ku-Tk,Q>fu||OY>h);break;case 3:do v_=Array(4),v_[V$]=bu,bu=v_;while(Tk*=2,zk=fu-Tk,OY=Ku-Tk,zk>Q||OY>h)}this._root&&this._root.length&&(this._root=bu)}else return this;this._x0=zk;this._y0=OY;this._x1=fu;this._y1=Ku;return this};
eg.data=function(){var Q=[];this.visit(function(h){if(!h.length){do Q.push(h.data);while(h=h.next)}});
return Q};
eg.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
eg.find=function(Q,h,zk){var OY=this._x0,fu=this._y0,Ku,Tk,bu,V$,v_=this._x1,Z4=this._y1,Uj=[],Xq=this._root,m7;Xq&&Uj.push(new $E(Xq,OY,fu,v_,Z4));zk==null?zk=Infinity:(OY=Q-zk,fu=h-zk,v_=Q+zk,Z4=h+zk,zk*=zk);for(;m7=Uj.pop();)if(!(!(Xq=m7.node)||(Ku=m7.x0)>v_||(Tk=m7.y0)>Z4||(bu=m7.x1)<OY||(V$=m7.y1)<fu))if(Xq.length){m7=(Ku+bu)/2;var W0=(Tk+V$)/2;Uj.push(new $E(Xq[3],m7,W0,bu,V$),new $E(Xq[2],Ku,W0,m7,V$),new $E(Xq[1],m7,Tk,bu,W0),new $E(Xq[0],Ku,Tk,m7,W0));if(Xq=(h>=W0)<<1|Q>=m7)m7=Uj[Uj.length-
1],Uj[Uj.length-1]=Uj[Uj.length-1-Xq],Uj[Uj.length-1-Xq]=m7}else if(m7=Q-+this._x.call(null,Xq.data),W0=h-+this._y.call(null,Xq.data),m7=m7*m7+W0*W0,m7<zk){var FP=Math.sqrt(zk=m7);OY=Q-FP;fu=h-FP;v_=Q+FP;Z4=h+FP;FP=Xq.data}return FP};
eg.remove=function(Q){if(isNaN(V$=+this._x.call(null,Q))||isNaN(v_=+this._y.call(null,Q)))return this;var h,zk=this._root,OY,fu=this._x0,Ku=this._y0,Tk=this._x1,bu=this._y1,V$,v_,Z4,Uj,Xq,m7,W0;if(!zk)return this;if(zk.length)for(;;){(Xq=V$>=(Z4=(fu+Tk)/2))?fu=Z4:Tk=Z4;(m7=v_>=(Uj=(Ku+bu)/2))?Ku=Uj:bu=Uj;if(!(h=zk,zk=zk[W0=m7<<1|Xq]))return this;if(!zk.length)break;if(h[W0+1&3]||h[W0+2&3]||h[W0+3&3]){var FP=h;var jX=W0}}for(;zk.data!==Q;)if(!(OY=zk,zk=zk.next))return this;(Q=zk.next)&&delete zk.next;
if(OY)return Q?OY.next=Q:delete OY.next,this;if(!h)return this._root=Q,this;Q?h[W0]=Q:delete h[W0];(zk=h[0]||h[1]||h[2]||h[3])&&zk===(h[3]||h[2]||h[1]||h[0])&&!zk.length&&(FP?FP[jX]=zk:this._root=zk);return this};
eg.removeAll=function(Q){for(var h=0,zk=Q.length;h<zk;++h)this.remove(Q[h]);return this};
eg.root=function(){return this._root};
eg.size=function(){var Q=0;this.visit(function(h){if(!h.length){do++Q;while(h=h.next)}});
return Q};
eg.visit=function(Q){var h=[],zk,OY=this._root,fu,Ku,Tk,bu,V$;for(OY&&h.push(new $E(OY,this._x0,this._y0,this._x1,this._y1));zk=h.pop();)if(!Q(OY=zk.node,Ku=zk.x0,Tk=zk.y0,bu=zk.x1,V$=zk.y1)&&OY.length){zk=(Ku+bu)/2;var v_=(Tk+V$)/2;(fu=OY[3])&&h.push(new $E(fu,zk,v_,bu,V$));(fu=OY[2])&&h.push(new $E(fu,Ku,v_,zk,V$));(fu=OY[1])&&h.push(new $E(fu,zk,Tk,bu,v_));(fu=OY[0])&&h.push(new $E(fu,Ku,Tk,zk,v_))}};
eg.visitAfter=function(Q){var h=[],zk=[],OY;for(this._root&&h.push(new $E(this._root,this._x0,this._y0,this._x1,this._y1));OY=h.pop();){var fu=OY.node;if(fu.length){var Ku,Tk=OY.x0,bu=OY.y0,V$=OY.x1,v_=OY.y1,Z4=(Tk+V$)/2,Uj=(bu+v_)/2;(Ku=fu[0])&&h.push(new $E(Ku,Tk,bu,Z4,Uj));(Ku=fu[1])&&h.push(new $E(Ku,Z4,bu,V$,Uj));(Ku=fu[2])&&h.push(new $E(Ku,Tk,Uj,Z4,v_));(Ku=fu[3])&&h.push(new $E(Ku,Z4,Uj,V$,v_))}zk.push(OY)}for(;OY=zk.pop();)Q(OY.node,OY.x0,OY.y0,OY.x1,OY.y1);return this};
eg.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
eg.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var YEs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;BlS.prototype=XZH.prototype;XZH.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 e5_,w20={"%":function(Q,h){return(Q*100).toFixed(h)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,h){return Q.toExponential(h)},
f:function(Q,h){return Q.toFixed(h)},
g:function(Q,h){return Q.toPrecision(h)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,h){return sE_(Q*100,h)},
r:sE_,s:function(Q,h){var zk=UBk(Q,h);if(!zk)return Q+"";var OY=zk[0];zk=zk[1];zk=zk-(e5_=Math.max(-8,Math.min(8,Math.floor(zk/3)))*3)+1;var fu=OY.length;return zk===fu?OY:zk>fu?OY+Array(zk-fu+1).join("0"):zk>0?OY.slice(0,zk)+"."+OY.slice(zk):"0."+Array(1-zk).join("0")+UBk(Q,Math.max(0,h+zk-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},$G4="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),VCS;
(function(Q){return VCS=TbK(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Xz.prototype={constructor:Xz,reset:function(){this.s=this.t=0},
add:function(Q){ACM(Irk,Q,this.t);ACM(this,Irk.s,this.s);this.s?this.t+=Irk.t:this.s=Irk.t},
valueOf:function(){return this.s}};
var Irk=new Xz,he=Math.PI,oU=he/2,k$_=he/4,jEl=he*2,r45=he/180,J4=Math.abs,$w$=Math.atan,VC0=Math.atan2,PJ=Math.cos,tY=Math.sin,VcS=Math.sqrt;new Xz;new Xz;new Xz;var e6p=new Xz;(function(Q,h,zk,OY){return function(fu){function Ku(Uf,f0){Q(Uf,f0)&&fu.point(Uf,f0)}
function Tk(Uf,f0){Xq.point(Uf,f0)}
function bu(){UB.point=Tk;Xq.lineStart()}
function V$(){UB.point=Ku;Xq.lineEnd()}
function v_(Uf,f0){yA.push([Uf,f0]);W0.point(Uf,f0)}
function Z4(){W0.lineStart();yA=[]}
function Uj(){v_(yA[0][0],yA[0][1]);W0.lineEnd();var Uf=W0.clean(),f0=m7.result(),Uv=f0.length,ON;yA.pop();jX.push(yA);yA=null;if(Uv)if(Uf&1){if(Uv=f0[0],(f0=Uv.length-1)>0){FP||(fu.polygonStart(),FP=!0);fu.lineStart();for(Uf=0;Uf<f0;++Uf)fu.point((ON=Uv[Uf])[0],ON[1]);fu.lineEnd()}}else Uv>1&&Uf&2&&f0.push(f0.pop().concat(f0.shift())),Lo.push(f0.filter(om1))}
var Xq=h(fu),m7=SE8(),W0=h(m7),FP=!1,jX,Lo,yA,UB={point:Ku,lineStart:bu,lineEnd:V$,polygonStart:function(){UB.point=v_;UB.lineStart=Z4;UB.lineEnd=Uj;Lo=[];jX=[]},
polygonEnd:function(){UB.point=Ku;UB.lineStart=bu;UB.lineEnd=V$;var Uf=Lo,f0=Uf.length;var Uv=-1;for(var ON=0,$S,Ru;++Uv<f0;)ON+=Uf[Uv].length;for($S=Array(ON);--f0>=0;)for(Ru=Uf[f0],Uv=Ru.length;--Uv>=0;)$S[--ON]=Ru[Uv];Lo=$S;Uf=jX;f0=OY[0];ON=OY[1];var Ov=tY(ON);Uv=[tY(f0),-PJ(f0),0];Ru=$S=0;e6p.reset();Ov===1?ON=oU+1E-6:Ov===-1&&(ON=-oU-1E-6);Ov=0;for(var Qs=Uf.length;Ov<Qs;++Ov)if(PC=(wr=Uf[Ov]).length){var wr,PC,JK=wr[PC-1],uf=JK[0],Mk=JK[1]/2+k$_,bpQ=tY(Mk),R6u=PJ(Mk);for(Mk=0;Mk<PC;++Mk,uf=
wZ1,bpQ=mww,R6u=Jb,JK=v87){var v87=wr[Mk],wZ1=v87[0];Jb=v87[1]/2+k$_;var mww=tY(Jb),Jb=PJ(Jb),Kh=wZ1-uf,A4H=Kh>=0?1:-1,WB$=A4H*Kh,M8Y=WB$>he;bpQ*=mww;e6p.add(VC0(bpQ*A4H*tY(WB$),R6u*Jb+bpQ*PJ(WB$)));$S+=M8Y?Kh+A4H*jEl:Kh;M8Y^uf>=f0^wZ1>=f0&&(JK=nTj(Wvw(JK),Wvw(v87)),LvI(JK),uf=nTj(Uv,JK),LvI(uf),uf=(M8Y^Kh>=0?-1:1)*aQQ(uf[2]),ON>uf||ON===uf&&(JK[0]||JK[1]))&&(Ru+=M8Y^Kh>=0?1:-1)}}Uf=($S<-1E-6||$S<1E-6&&e6p<-1E-6)^Ru&1;Lo.length?(FP||(fu.polygonStart(),FP=!0),d1S(Lo,PSS,Uf,zk,fu)):Uf&&(FP||(fu.polygonStart(),
FP=!0),fu.lineStart(),zk(null,null,1,fu),fu.lineEnd());FP&&(fu.polygonEnd(),FP=!1);Lo=jX=null},
sphere:function(){fu.polygonStart();fu.lineStart();zk(null,null,1,fu);fu.lineEnd();fu.polygonEnd()}};
return UB}})(function(){return!0},function(Q){var h=NaN,zk=NaN,OY=NaN,fu;
return{lineStart:function(){Q.lineStart();fu=1},
point:function(Ku,Tk){var bu=Ku>0?he:-he,V$=J4(Ku-h);if(J4(V$-he)<1E-6)Q.point(h,zk=(zk+Tk)/2>0?oU:-oU),Q.point(OY,zk),Q.lineEnd(),Q.lineStart(),Q.point(bu,zk),Q.point(Ku,zk),fu=0;else if(OY!==bu&&V$>=he){J4(h-OY)<1E-6&&(h-=OY*1E-6);J4(Ku-bu)<1E-6&&(Ku-=bu*1E-6);V$=h;var v_=zk,Z4=Ku,Uj,Xq,m7=tY(V$-Z4);zk=J4(m7)>1E-6?$w$((tY(v_)*(Xq=PJ(Tk))*tY(Z4)-tY(Tk)*(Uj=PJ(v_))*tY(V$))/(Uj*Xq*m7)):(v_+Tk)/2;Q.point(OY,zk);Q.lineEnd();Q.lineStart();Q.point(bu,zk);fu=0}Q.point(h=Ku,zk=Tk);OY=bu},
lineEnd:function(){Q.lineEnd();h=zk=NaN},
clean:function(){return 2-fu}}},function(Q,h,zk,OY){Q==null?(zk*=oU,OY.point(-he,zk),OY.point(0,zk),OY.point(he,zk),OY.point(he,0),OY.point(he,-zk),OY.point(0,-zk),OY.point(-he,-zk),OY.point(-he,0),OY.point(-he,zk)):J4(Q[0]-h[0])>1E-6?(Q=Q[0]<h[0]?he:-he,zk=zk*Q/2,OY.point(-Q,zk),OY.point(0,zk),OY.point(Q,zk)):OY.point(h[0],h[1])},[-he,
-oU]);new Xz;new Xz;new Xz;new Xz;qFp.prototype={constructor:qFp,point:function(Q,h){this.stream.point(Q,h)},
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()}};
PJ(30*r45);(function(Q){return function(h){var zk=new qFp,OY;for(OY in Q)zk[OY]=Q[OY];zk.stream=h;return zk}})({point:function(Q,h){this.stream.point(Q*r45,h*r45)}});
aLA(function(Q){return VcS(2/(1+Q))}).invert=Ab(function(Q){return 2*aQQ(Q/2)});
aLA(function(Q){return(Q=Q>1?0:Q<-1?he:Math.acos(Q))&&Q/tY(Q)}).invert=Ab(function(Q){return Q});
VcS(3);Ab($w$);Ab(aQQ);Ab(function(Q){return 2*$w$(Q)});
W3.prototype=jEn.prototype={constructor:W3,count:function(){return this.eachAfter(hX8)},
each:function(Q){var h,zk=[this],OY;do{var fu=zk.reverse();for(zk=[];h=fu.pop();)if(Q(h),h=h.children){var Ku=0;for(OY=h.length;Ku<OY;++Ku)zk.push(h[Ku])}}while(zk.length);return this},
eachAfter:function(Q){for(var h,zk=[this],OY=[],fu,Ku;h=zk.pop();)if(OY.push(h),h=h.children)for(fu=0,Ku=h.length;fu<Ku;++fu)zk.push(h[fu]);for(;h=OY.pop();)Q(h);return this},
eachBefore:function(Q){for(var h,zk=[this],OY;h=zk.pop();)if(Q(h),h=h.children)for(OY=h.length-1;OY>=0;--OY)zk.push(h[OY]);return this},
sum:function(Q){return this.eachAfter(function(h){for(var zk=+Q(h.data)||0,OY=h.children,fu=OY&&OY.length;--fu>=0;)zk+=OY[fu].value;h.value=zk})},
sort:function(Q){return this.eachBefore(function(h){h.children&&h.children.sort(Q)})},
path:function(Q){var h=this;var zk=h;var OY=Q;if(zk!==OY){var fu=zk.ancestors(),Ku=OY.ancestors(),Tk=null;zk=fu.pop();for(OY=Ku.pop();zk===OY;)Tk=zk,zk=fu.pop(),OY=Ku.pop();zk=Tk}for(OY=[h];h!==zk;)h=h.parent,OY.push(h);for(h=OY.length;Q!==zk;)OY.splice(h,0,Q),Q=Q.parent;return OY},
ancestors:function(){for(var Q=this,h=[Q];Q=Q.parent;)h.push(Q);return h},
links:function(){var Q=this,h=[];Q.each(function(zk){zk!==Q&&h.push({source:zk.parent,target:zk})});
return h},
copy:function(){return jEn(this).eachBefore($1C)}};
(function(Q,h){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=h}).prototype=Object.create(W3.prototype);
var i1G=new Date,FBx=new Date,KBI=Nu(function(){},function(Q,h){Q.setTime(+Q+h)},function(Q,h){return h-Q});
KBI.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?Nu(function(h){h.setTime(Math.floor(h/Q)*Q)},function(h,zk){h.setTime(+h+zk*Q)},function(h,zk){return(zk-h)/Q}):KBI:null};
Nu(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,h){Q.setTime(+Q+h*1E3)},function(Q,h){return(h-Q)/1E3},function(Q){return Q.getUTCSeconds()});
Nu(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,h){Q.setTime(+Q+h*6E4)},function(Q,h){return(h-Q)/6E4},function(Q){return Q.getMinutes()});
Nu(function(Q){var h=Q.getTimezoneOffset()*6E4%36E5;h<0&&(h+=36E5);Q.setTime(Math.floor((+Q-h)/36E5)*36E5+h)},function(Q,h){Q.setTime(+Q+h*36E5)},function(Q,h){return(h-Q)/36E5},function(Q){return Q.getHours()});
var lhw=Nu(function(Q){Q.setHours(0,0,0,0)},function(Q,h){Q.setDate(Q.getDate()+h)},function(Q,h){return(h-Q-(h.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),$GF=ve(0),YFx=ve(1);
ve(2);ve(3);var TlG=ve(4);ve(5);ve(6);Nu(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,h){Q.setMonth(Q.getMonth()+h)},function(Q,h){return h.getMonth()-Q.getMonth()+(h.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var Ch=Nu(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,h){Q.setFullYear(Q.getFullYear()+h)},function(Q,h){return h.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
Ch.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?Nu(function(h){h.setFullYear(Math.floor(h.getFullYear()/Q)*Q);h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,zk){h.setFullYear(h.getFullYear()+zk*Q)}):null};
Nu(function(Q){Q.setUTCSeconds(0,0)},function(Q,h){Q.setTime(+Q+h*6E4)},function(Q,h){return(h-Q)/6E4},function(Q){return Q.getUTCMinutes()});
Nu(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,h){Q.setTime(+Q+h*36E5)},function(Q,h){return(h-Q)/36E5},function(Q){return Q.getUTCHours()});
var z6j=Nu(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,h){Q.setUTCDate(Q.getUTCDate()+h)},function(Q,h){return(h-Q)/864E5},function(Q){return Q.getUTCDate()-1}),e5C=MO(0),QfS=MO(1);
MO(2);MO(3);var c4x=MO(4);MO(5);MO(6);Nu(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,h){Q.setUTCMonth(Q.getUTCMonth()+h)},function(Q,h){return h.getUTCMonth()-Q.getUTCMonth()+(h.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var kG=Nu(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,h){Q.setUTCFullYear(Q.getUTCFullYear()+h)},function(Q,h){return h.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
kG.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?Nu(function(h){h.setUTCFullYear(Math.floor(h.getUTCFullYear()/Q)*Q);h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,zk){h.setUTCFullYear(h.getUTCFullYear()+zk*Q)}):null};
var JCA={"-":"",_:" ",0:"0"},fc=/^\s*\d+/,rC0=/^%/,sEX=/[\\^$*+?|[\]().{}]/g,pdY;(function(Q){pdY=wfS(Q);B5A=pdY.utcFormat;XUA=pdY.utcParse;return pdY})({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||B5A("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||XUA("%Y-%m-%dT%H:%M:%S.%LZ");ZC("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
ZC("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ZC("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ZC("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ZC("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ZC("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ZC("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
ZC("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ZC("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ZC("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ZC("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ZC("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var JCq=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ZC);Ar(JCq);var z68=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ZC);Ar(z68);var lh4=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ZC);Ar(lh4);var Ih0=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ZC);
Ar(Ih0);var b1c=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ZC);Ar(b1c);var v$q=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ZC);Ar(v$q);var MDs=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ZC);Ar(MDs);var pZ8=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ZC);Ar(pZ8);var DwW=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ZC);Ar(DwW);var xwS=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ZC);Ar(xwS);var O1y=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ZC);Ar(O1y);var g$0=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ZC);Ar(g$0);var G$s=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ZC);Ar(G$s);var Nlq=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ZC);Ar(Nlq);var E$1=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ZC);Ar(E$1);var uxC=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ZC);Ar(uxC);var Z1s=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ZC);Ar(Z1s);var H1C=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ZC);Ar(H1C);var y4S=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ZC);Ar(y4S);var fhX=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ZC);Ar(fhX);var ChF=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ZC);Ar(ChF);var k$c=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ZC);Ar(k$c);var R6K=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ZC);Ar(R6K);var mw4=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ZC);Ar(mw4);var KB1=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ZC);Ar(KB1);var tD1=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ZC);Ar(tD1);var BlF=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ZC);Ar(BlF);h6H(mA(300,.5,0),mA(-240,.5,1));h6H(mA(-100,.75,.35),mA(80,1.5,.8));h6H(mA(260,.75,.35),mA(80,1.5,.8));mA();hy();znu(ZC("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
znu(ZC("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
znu(ZC("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
znu(ZC("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
G$u.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,h){Q=+Q;h=+h;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,h):this._context.moveTo(Q,h);break;case 1:this._point=2;default:this._context.lineTo(Q,h)}}};
(function(Q){function h(zk){return new NlA(Q(zk))}
h._curve=Q;return h})(function(Q){return new G$u(Q)});
NlA.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,h){this._curve.point(h*Math.sin(Q),h*-Math.cos(Q))}};
dwu.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:SFS(this,this._t0,ux_(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,h){var zk=NaN;Q=+Q;h=+h;if(Q!==this._x1||h!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,h):this._context.moveTo(Q,h);break;case 1:this._point=2;break;case 2:this._point=3;SFS(this,ux_(this,zk=E$I(this,Q,h)),zk);break;default:SFS(this,this._t0,zk=E$I(this,Q,h))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=h;this._t0=zk}}};
(function(Q){this._context=new Z1u(Q)}.prototype=Object.create(dwu.prototype)).point=function(Q,h){dwu.prototype.point.call(this,h,Q)};
Z1u.prototype={moveTo:function(Q,h){this._context.moveTo(h,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,h){this._context.lineTo(h,Q)},
bezierCurveTo:function(Q,h,zk,OY,fu,Ku){this._context.bezierCurveTo(h,Q,OY,zk,Ku,fu)}};
aN.prototype={constructor:aN,scale:function(Q){return Q===1?this:new aN(this.k*Q,this.x,this.y)},
translate:function(Q,h){return Q===0&h===0?this:new aN(this.k,this.x+this.k*Q,this.y+this.k*h)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new aN(1,0,0);nr1=uK;dx.svg=dx.svg;dx.xhtml=dx.xhtml;dx.xlink=dx.xlink;dx.xml=dx.xml;dx.xmlns=dx.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 qBp="hammer_"+(Math.random()*1E6|0),iY_=function(){var z=document||document;if(!z[qBp]){var l=function(){(function(I,b,v,M){function x(Ft,hG,W7){return setTimeout(y(Ft,W7),hG)}
function g(Ft,hG,W7){return Array.isArray(Ft)?(G(Ft,W7[hG],W7),!0):!1}
function G(Ft,hG,W7){var Cn;if(Ft)if(Ft.forEach)Ft.forEach(hG,W7);else if(Ft.length!==M){var ZF=0;for(Cn=Ft.length;ZF<Cn;ZF++)hG.call(W7,Ft[ZF],ZF,Ft)}else for(ZF in Ft)Ft.hasOwnProperty(ZF)&&hG.call(W7,Ft[ZF],ZF,Ft)}
function u(Ft,hG,W7){for(var Cn=Object.keys(hG),ZF=0,TT=Cn.length;ZF<TT;ZF++)if(!W7||W7&&Ft[Cn[ZF]]===M)Ft[Cn[ZF]]=hG[Cn[ZF]];return Ft}
function Z(Ft,hG){return u(Ft,hG,!0)}
function H(Ft,hG,W7){hG=hG.prototype;var Cn=Ft.prototype=Object.create(hG);Cn.constructor=Ft;Cn._super=hG;W7&&u(Cn,W7)}
function y(Ft,hG){return function(){return Ft.apply(hG,arguments)}}
function f(Ft,hG){return typeof Ft=="function"?Ft.apply(hG?hG[0]||M:M,hG):Ft}
function R(Ft,hG,W7){G(Y(hG),function(Cn){Ft.addEventListener(Cn,W7,!1)})}
function F(Ft,hG,W7){G(Y(hG),function(Cn){Ft.removeEventListener(Cn,W7,!1)})}
function Y(Ft){return Ft.trim().split(/\s+/g)}
function c(Ft,hG,W7){if(Ft.indexOf&&!W7)return Ft.indexOf(hG);for(var Cn=0,ZF=Ft.length;Cn<ZF;Cn++)if(W7&&Ft[Cn][W7]==hG||!W7&&Ft[Cn]===hG)return Cn;return-1}
function d(Ft,hG,W7){for(var Cn=[],ZF=[],TT=0,Kl=Ft.length;TT<Kl;TT++){var Kn=hG?Ft[TT][hG]:Ft[TT];c(ZF,Kn)<0&&Cn.push(Ft[TT]);ZF[TT]=Kn}W7&&(Cn=hG?Cn.sort(function(mA,cX){return mA[hG]>cX[hG]}):Cn.sort());
return Cn}
function V(Ft,hG){for(var W7,Cn=hG[0].toUpperCase()+hG.slice(1),ZF=0,TT=gw.length;ZF<TT;ZF++)if(W7=(W7=gw[ZF])?W7+Cn:hG,W7 in Ft)return W7;return M}
function A(Ft,hG){var W7=this;this.manager=Ft;this.callback=hG;this.element=Ft.element;this.target=Ft.options.inputTarget;this.domHandler=function(Cn){f(Ft.options.enable,[Ft])&&W7.handler(Cn)};
this.evEl&&R(this.element,this.evEl,this.domHandler);this.evTarget&&R(this.target,this.evTarget,this.domHandler);this.evWin&&R(I,this.evWin,this.domHandler)}
function W(Ft){var hG;Yq?hG=P7:FY?hG=o1:uK?hG=z_:hG=H7;return new hG(Ft,L)}
function L(Ft,hG,W7){var Cn=W7.pointers.length,ZF=W7.changedPointers.length,TT=hG&1&&Cn-ZF===0;W7.isFirst=!!TT;W7.isFinal=!!(hG&12&&Cn-ZF===0);TT&&(Ft.session={});W7.eventType=hG;hG=Ft.session;Cn=W7.pointers;ZF=Cn.length;hG.firstInput||(hG.firstInput=lH(W7));ZF>1&&!hG.firstMultiple?hG.firstMultiple=lH(W7):ZF===1&&(hG.firstMultiple=!1);TT=hG.firstInput;var Kl=(ZF=hG.firstMultiple)?ZF.center:TT.center,Kn=W7.center=Gk(Cn);W7.timeStamp=tp();W7.deltaTime=W7.timeStamp-TT.timeStamp;W7.angle=R1(Kl,Kn);W7.distance=
Xt(Kl,Kn);TT=W7.center;Kl=hG.offsetDelta||{};Kn=hG.prevDelta||{};var mA=hG.prevInput||{};if(W7.eventType===1||mA.eventType===4)Kn=hG.prevDelta={x:mA.deltaX||0,y:mA.deltaY||0},Kl=hG.offsetDelta={x:TT.x,y:TT.y};W7.deltaX=Kn.x+(TT.x-Kl.x);W7.deltaY=Kn.y+(TT.y-Kl.y);W7.offsetDirection=uH(W7.deltaX,W7.deltaY);ZF?(TT=ZF.pointers,TT=Xt(Cn[0],Cn[1],hy)/Xt(TT[0],TT[1],hy)):TT=1;W7.scale=TT;ZF?(ZF=ZF.pointers,Cn=R1(Cn[1],Cn[0],hy)-R1(ZF[1],ZF[0],hy)):Cn=0;W7.rotation=Cn;Kl=hG.lastInterval||W7;Cn=W7.timeStamp-
Kl.timeStamp;W7.eventType!=8&&(Cn>25||Kl.velocity===M)?(TT=Kl.deltaX-W7.deltaX,Kl=Kl.deltaY-W7.deltaY,Kn=TT/Cn||0,mA=Kl/Cn||0,Cn=Kn,ZF=mA,Kn=FA(Kn)>FA(mA)?Kn:mA,TT=uH(TT,Kl),hG.lastInterval=W7):(Kn=Kl.velocity,Cn=Kl.velocityX,ZF=Kl.velocityY,TT=Kl.direction);W7.velocity=Kn;W7.velocityX=Cn;W7.velocityY=ZF;W7.direction=TT;hG=Ft.element;a:{for(Cn=W7.srcEvent.target;Cn;){if(Cn==hG){Cn=!0;break a}Cn=Cn.parentNode}Cn=!1}Cn&&(hG=W7.srcEvent.target);W7.target=hG;Ft.emit("hammer.input",W7);Ft.recognize(W7);
Ft.session.prevInput=W7}
function lH(Ft){for(var hG=[],W7=0;W7<Ft.pointers.length;W7++)hG[W7]={clientX:Cl(Ft.pointers[W7].clientX),clientY:Cl(Ft.pointers[W7].clientY)};return{timeStamp:tp(),pointers:hG,center:Gk(hG),deltaX:Ft.deltaX,deltaY:Ft.deltaY}}
function Gk(Ft){var hG=Ft.length;if(hG===1)return{x:Cl(Ft[0].clientX),y:Cl(Ft[0].clientY)};for(var W7=0,Cn=0,ZF=0;ZF<hG;ZF++)W7+=Ft[ZF].clientX,Cn+=Ft[ZF].clientY;return{x:Cl(W7/hG),y:Cl(Cn/hG)}}
function uH(Ft,hG){return Ft===hG?1:FA(Ft)>=FA(hG)?Ft>0?2:4:hG>0?8:16}
function Xt(Ft,hG,W7){W7||(W7=$0);var Cn=hG[W7[0]]-Ft[W7[0]];Ft=hG[W7[1]]-Ft[W7[1]];return Math.sqrt(Cn*Cn+Ft*Ft)}
function R1(Ft,hG,W7){W7||(W7=$0);return Math.atan2(hG[W7[1]]-Ft[W7[1]],hG[W7[0]]-Ft[W7[0]])*180/Math.PI}
function H7(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;A.apply(this,arguments)}
function P7(){this.evEl=f7;this.evWin=rk;A.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function o1(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};A.apply(this,arguments)}
function z_(){A.apply(this,arguments);var Ft=y(this.handler,this);this.touch=new o1(this.manager,Ft);this.mouse=new H7(this.manager,Ft)}
function dw(Ft,hG){this.manager=Ft;this.set(hG)}
function Ej(Ft){if(Ft.indexOf("none")>-1)return"none";var hG=Ft.indexOf("pan-x")>-1,W7=Ft.indexOf("pan-y")>-1;return hG&&W7?"pan-x pan-y":hG||W7?hG?"pan-x":"pan-y":Ft.indexOf("manipulation")>-1?"manipulation":"auto"}
function JG(Ft){this.id=ys++;this.manager=null;this.options=Z(Ft||{},this.defaults);Ft=this.options.enable;this.options.enable=Ft===M?!0:Ft;this.state=1;this.simultaneous={};this.requireFail=[]}
function yu(Ft){return Ft==16?"down":Ft==8?"up":Ft==2?"left":Ft==4?"right":""}
function uu(Ft,hG){return(hG=hG.manager)?hG.get(Ft):Ft}
function Y0(){JG.apply(this,arguments)}
function iK(){Y0.apply(this,arguments);this.pY=this.pX=null}
function a_(){Y0.apply(this,arguments)}
function pu(){JG.apply(this,arguments);this._input=this._timer=null}
function lu(){Y0.apply(this,arguments)}
function k0(){Y0.apply(this,arguments)}
function E8(){JG.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function R_(Ft,hG){hG=hG||{};var W7=hG.recognizers;hG.recognizers=W7===M?R_.defaults.preset:W7;return new bK(Ft,hG)}
function bK(Ft,hG){hG=hG||{};this.options=Z(hG,R_.defaults);this.options.inputTarget=this.options.inputTarget||Ft;this.handlers={};this.session={};this.recognizers=[];this.element=Ft;this.input=W(this);this.touchAction=new dw(this,this.options.touchAction);Ou(this,!0);G(hG.recognizers,function(W7){var Cn=this.add(new W7[0](W7[1]));W7[2]&&Cn.recognizeWith(W7[2]);W7[3]&&Cn.requireFailure(W7[2])},this)}
function Ou(Ft,hG){var W7=Ft.element;G(Ft.options.cssProps,function(Cn,ZF){W7.style[V(W7.style,ZF)]=hG?Cn:""})}
function lK(Ft,hG){var W7=b.createEvent("Event");W7.initEvent(Ft,!0,!0);W7.gesture=hG;hG.target.dispatchEvent(W7)}
var gw=" webkit moz MS ms o".split(" "),Ln=b.createElement("div"),Cl=Math.round,FA=Math.abs,tp=Date.now,ys=1,jA=/mobile|tablet|ip(ad|hone|od)|android/i,uK="ontouchstart"in I,Yq=V(I,"PointerEvent")!==M,FY=uK&&jA.test(navigator.userAgent),$0=["x","y"],hy=["clientX","clientY"];A.prototype={handler:function(){},
destroy:function(){this.evEl&&F(this.element,this.evEl,this.domHandler);this.evTarget&&F(this.target,this.evTarget,this.domHandler);this.evWin&&F(I,this.evWin,this.domHandler)}};
var WX={mousedown:1,mousemove:2,mouseup:4};H(H7,A,{handler:function(Ft){var hG=WX[Ft.type];hG&1&&Ft.button===0&&(this.pressed=!0);hG&2&&Ft.which!==1&&(hG=4);this.pressed&&this.allow&&(hG&4&&(this.pressed=!1),this.callback(this.manager,hG,{pointers:[Ft],changedPointers:[Ft],pointerType:"mouse",srcEvent:Ft}))}});
var BQ={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},e3={2:"touch",3:"pen",4:"mouse",5:"kinect"},f7="pointerdown",rk="pointermove pointerup pointercancel";I.MSPointerEvent&&(f7="MSPointerDown",rk="MSPointerMove MSPointerUp MSPointerCancel");H(P7,A,{handler:function(Ft){var hG=this.store,W7=!1,Cn=Ft.type.toLowerCase().replace("ms","");Cn=BQ[Cn];var ZF=e3[Ft.pointerType]||Ft.pointerType;Cn&1&&(Ft.button===0||ZF=="touch")?hG.push(Ft):Cn&12&&(W7=!0);var TT=c(hG,Ft.pointerId,"pointerId");
TT<0||(hG[TT]=Ft,this.callback(this.manager,Cn,{pointers:hG,changedPointers:[Ft],pointerType:ZF,srcEvent:Ft}),W7&&hG.splice(TT,1))}});
var ZJ={touchstart:1,touchmove:2,touchend:4,touchcancel:8};H(o1,A,{handler:function(Ft){var hG=ZJ[Ft.type];var W7=Array.prototype.slice.call(Ft.touches,0);var Cn=this.targetIds;if(hG&3&&W7.length===1)Cn[W7[0].identifier]=!0,Cn=[W7,W7];else{var ZF,TT=Array.prototype.slice.call(Ft.targetTouches,0),Kl=Array.prototype.slice.call(Ft.changedTouches,0),Kn=[];if(hG===1)for(W7=0,ZF=TT.length;W7<ZF;W7++)Cn[TT[W7].identifier]=!0;W7=0;for(ZF=Kl.length;W7<ZF;W7++)Cn[Kl[W7].identifier]&&Kn.push(Kl[W7]),hG&12&&
delete Cn[Kl[W7].identifier];Cn=Kn.length?[d(TT.concat(Kn),"identifier",!0),Kn]:void 0}Cn&&this.callback(this.manager,hG,{pointers:Cn[0],changedPointers:Cn[1],pointerType:"touch",srcEvent:Ft})}});
H(z_,A,{handler:function(Ft,hG,W7){var Cn=W7.pointerType=="mouse";if(W7.pointerType=="touch")this.mouse.allow=!1;else if(Cn&&!this.mouse.allow)return;hG&12&&(this.mouse.allow=!0);this.callback(Ft,hG,W7)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var dH=V(Ln.style,"touchAction"),Dp=dH!==M;dw.prototype={set:function(Ft){Ft=="compute"&&(Ft=this.compute());Dp&&(this.manager.element.style[dH]=Ft);this.actions=Ft.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Ft=[];G(this.manager.recognizers,function(hG){f(hG.options.enable,[hG])&&(Ft=Ft.concat(hG.getTouchAction()))});
return Ej(Ft.join(" "))},
preventDefaults:function(Ft){if(!Dp){var hG=Ft.srcEvent;Ft=Ft.offsetDirection;if(this.manager.session.prevented)hG.preventDefault();else{var W7=this.actions,Cn=W7.indexOf("none")>-1,ZF=W7.indexOf("pan-y")>-1;W7=W7.indexOf("pan-x")>-1;if(Cn||ZF&&W7||ZF&&Ft&6||W7&&Ft&24)return this.preventSrc(hG)}}},
preventSrc:function(Ft){this.manager.session.prevented=!0;Ft.preventDefault()}};
JG.prototype={defaults:{},set:function(Ft){u(this.options,Ft);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Ft){if(g(Ft,"recognizeWith",this))return this;var hG=this.simultaneous;Ft=uu(Ft,this);hG[Ft.id]||(hG[Ft.id]=Ft,Ft.recognizeWith(this));return this},
dropRecognizeWith:function(Ft){if(g(Ft,"dropRecognizeWith",this))return this;Ft=uu(Ft,this);delete this.simultaneous[Ft.id];return this},
requireFailure:function(Ft){if(g(Ft,"requireFailure",this))return this;var hG=this.requireFail;Ft=uu(Ft,this);c(hG,Ft)===-1&&(hG.push(Ft),Ft.requireFailure(this));return this},
dropRequireFailure:function(Ft){if(g(Ft,"dropRequireFailure",this))return this;Ft=uu(Ft,this);Ft=c(this.requireFail,Ft);Ft>-1&&this.requireFail.splice(Ft,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Ft){return!!this.simultaneous[Ft.id]},
emit:function(Ft){function hG(ZF){W7.manager.emit(W7.options.event+(ZF?Cn&16?"cancel":Cn&8?"end":Cn&4?"move":Cn&2?"start":"":""),Ft)}
var W7=this,Cn=this.state;Cn<8&&hG(!0);hG();Cn>=8&&hG(!0)},
tryEmit:function(Ft){if(this.canEmit())return this.emit(Ft);this.state=32},
canEmit:function(){for(var Ft=0;Ft<this.requireFail.length;Ft++)if(!(this.requireFail[Ft].state&33))return!1;return!0},
recognize:function(Ft){Ft=u({},Ft);f(this.options.enable,[this,Ft])?(this.state&56&&(this.state=1),this.state=this.process(Ft),this.state&30&&this.tryEmit(Ft)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
H(Y0,JG,{defaults:{pointers:1},attrTest:function(Ft){var hG=this.options.pointers;return hG===0||Ft.pointers.length===hG},
process:function(Ft){var hG=this.state,W7=Ft.eventType,Cn=hG&6;Ft=this.attrTest(Ft);return Cn&&(W7&8||!Ft)?hG|16:Cn||Ft?W7&4?hG|8:hG&2?hG|4:2:32}});
H(iK,Y0,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Ft=this.options.direction;if(Ft===30)return["none"];var hG=[];Ft&6&&hG.push("pan-y");Ft&24&&hG.push("pan-x");return hG},
directionTest:function(Ft){var hG=this.options,W7=!0,Cn=Ft.distance,ZF=Ft.direction,TT=Ft.deltaX,Kl=Ft.deltaY;ZF&hG.direction||(hG.direction&6?(ZF=TT===0?1:TT<0?2:4,W7=TT!=this.pX,Cn=Math.abs(Ft.deltaX)):(ZF=Kl===0?1:Kl<0?8:16,W7=Kl!=this.pY,Cn=Math.abs(Ft.deltaY)));Ft.direction=ZF;return W7&&Cn>hG.threshold&&ZF&hG.direction},
attrTest:function(Ft){return Y0.prototype.attrTest.call(this,Ft)&&(this.state&2||!(this.state&2)&&this.directionTest(Ft))},
emit:function(Ft){this.pX=Ft.deltaX;this.pY=Ft.deltaY;var hG=yu(Ft.direction);hG&&this.manager.emit(this.options.event+hG,Ft);this._super.emit.call(this,Ft)}});
H(a_,Y0,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Ft){return this._super.attrTest.call(this,Ft)&&(Math.abs(Ft.scale-1)>this.options.threshold||this.state&2)},
emit:function(Ft){this._super.emit.call(this,Ft);Ft.scale!==1&&this.manager.emit(this.options.event+(Ft.scale<1?"in":"out"),Ft)}});
H(pu,JG,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Ft){var hG=this.options,W7=Ft.pointers.length===hG.pointers,Cn=Ft.distance<hG.threshold,ZF=Ft.deltaTime>hG.time;this._input=Ft;if(!Cn||!W7||Ft.eventType&12&&!ZF)this.reset();else if(Ft.eventType&1)this.reset(),this._timer=x(function(){this.state=8;this.tryEmit()},hG.time,this);
else if(Ft.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Ft){this.state===8&&(Ft&&Ft.eventType&4?this.manager.emit(this.options.event+"up",Ft):(this._input.timeStamp=tp(),this.manager.emit(this.options.event,this._input)))}});
H(lu,Y0,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Ft){return this._super.attrTest.call(this,Ft)&&(Math.abs(Ft.rotation)>this.options.threshold||this.state&2)}});
H(k0,Y0,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return iK.prototype.getTouchAction.call(this)},
attrTest:function(Ft){var hG=this.options.direction;if(hG&30)var W7=Ft.velocity;else hG&6?W7=Ft.velocityX:hG&24&&(W7=Ft.velocityY);return this._super.attrTest.call(this,Ft)&&hG&Ft.direction&&FA(W7)>this.options.velocity&&Ft.eventType&4},
emit:function(Ft){var hG=yu(Ft.direction);hG&&this.manager.emit(this.options.event+hG,Ft);this.manager.emit(this.options.event,Ft)}});
H(E8,JG,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Ft){var hG=this.options,W7=Ft.pointers.length===hG.pointers,Cn=Ft.distance<hG.threshold,ZF=Ft.deltaTime<hG.time;this.reset();if(Ft.eventType&1&&this.count===0)return this.failTimeout();if(Cn&&ZF&&W7){if(Ft.eventType!=4)return this.failTimeout();W7=this.pTime?Ft.timeStamp-this.pTime<hG.interval:!0;Cn=!this.pCenter||Xt(this.pCenter,Ft.center)<hG.posThreshold;this.pTime=Ft.timeStamp;this.pCenter=Ft.center;Cn&&W7?this.count+=1:this.count=1;this._input=Ft;if(this.count%hG.taps===0)return this.hasRequireFailures()?
(this._timer=x(function(){this.state=8;this.tryEmit()},hG.interval,this),2):8}return 32},
failTimeout:function(){this._timer=x(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))}});
R_.VERSION="2.0.2";R_.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[lu,{enable:!1}],[a_,{enable:!1},["rotate"]],[k0,{direction:6}],[iK,{direction:6},["swipe"]],[E8],[E8,{event:"doubletap",taps:2},["tap"]],[pu]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};bK.prototype={set:function(Ft){u(this.options,Ft);return this},
stop:function(Ft){this.session.stopped=Ft?2:1},
recognize:function(Ft){var hG=this.session;if(!hG.stopped){this.touchAction.preventDefaults(Ft);var W7=this.recognizers,Cn=hG.curRecognizer;if(!Cn||Cn&&Cn.state&8)Cn=hG.curRecognizer=null;for(var ZF=0,TT=W7.length;ZF<TT;ZF++){var Kl=W7[ZF];hG.stopped===2||Cn&&Kl!=Cn&&!Kl.canRecognizeWith(Cn)?Kl.reset():Kl.recognize(Ft);!Cn&&Kl.state&14&&(Cn=hG.curRecognizer=Kl)}}},
get:function(Ft){if(Ft instanceof JG)return Ft;for(var hG=this.recognizers,W7=0;W7<hG.length;W7++)if(hG[W7].options.event==Ft)return hG[W7];return null},
add:function(Ft){if(g(Ft,"add",this))return this;var hG=this.get(Ft.options.event);hG&&this.remove(hG);this.recognizers.push(Ft);Ft.manager=this;this.touchAction.update();return Ft},
remove:function(Ft){if(g(Ft,"remove",this))return this;var hG=this.recognizers;Ft=this.get(Ft);hG.splice(c(hG,Ft),1);this.touchAction.update();return this},
on:function(Ft,hG){var W7=this.handlers;G(Y(Ft),function(Cn){W7[Cn]=W7[Cn]||[];W7[Cn].push(hG)});
return this},
off:function(Ft,hG){var W7=this.handlers;G(Y(Ft),function(Cn){hG?W7[Cn].splice(c(W7[Cn],hG),1):delete W7[Cn]});
return this},
emit:function(Ft,hG){this.options.domEvents&&lK(Ft,hG);var W7=this.handlers[Ft]&&this.handlers[Ft].slice();if(W7&&W7.length){hG.type=Ft;hG.preventDefault=function(){hG.srcEvent.preventDefault()};
Ft=0;for(var Cn=W7.length;Ft<Cn;Ft++)W7[Ft](hG)}},
destroy:function(){this.element&&Ou(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
u(R_,{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:bK,Input:A,TouchAction:dw,Recognizer:JG,AttrRecognizer:Y0,Tap:E8,Pan:iK,Swipe:k0,Pinch:a_,Rotate:lu,Press:pu,on:R,off:F,each:G,merge:Z,extend:u,inherit:H,bindFn:y,prefixed:V});
I[v]=R_})(window,document,"Hammer");
return window.Hammer}.call({});
l.DOCUMENT=z;z[qBp]=l}return z[qBp]};/*

 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 FE_=function(z,l){if(z.length!==l.length)return!1;for(var I=0;I<z.length;++I)if(z[I]!==l[I])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Q0A=_.D(["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"]),YBz=Q0A.next();!YBz.done;YBz=Q0A.next()){var T5u=YBz.value,cR_=document.createElement("link");cR_.rel="stylesheet";cR_.href=T5u;document.head.appendChild(cR_)};var kL1,mgt,tiQ,yzk,RoQ,fIu,Zdf,HdH;kL1={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};mgt={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:"*"};tiQ={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};yzk=/[a-z0-9*]/;RoQ=/U\+/;fIu=/^arrow/;Zdf=/^space(bar)?/;HdH=/^escape$/;_.rB={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(z,l){this._imperativeKeyBindings[z]=l;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(z,l){l=Xn1(l);for(var I=0;I<l.length;++I)if(KJH(l[I],z))return!0;return!1},
_collectKeyBindings:function(){var z=this.behaviors.map(function(l){return l.keyBindings});
z.indexOf(this.keyBindings)===-1&&z.push(this.keyBindings);return z},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(I){for(var b in I)this._addKeyBinding(b,I[b])},this);
for(var z in this._imperativeKeyBindings)this._addKeyBinding(z,this._imperativeKeyBindings[z]);for(var l in this._keyBindings)this._keyBindings[l].sort(function(I,b){I=I[0].hasModifiers;return I===b[0].hasModifiers?0:I?-1:1})},
_addKeyBinding:function(z,l){Xn1(z).forEach(function(I){this._keyBindings[I.event]=this._keyBindings[I.event]||[];this._keyBindings[I.event].push([I,l])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(z){var l=this._onKeyBindingEvent.bind(this,this._keyBindings[z]);this._boundKeyHandlers.push([this.keyEventTarget,z,l]);this.keyEventTarget.addEventListener(z,l)},this)},
_unlistenKeyEventListeners:function(){for(var z,l,I;this._boundKeyHandlers.length;)z=this._boundKeyHandlers.pop(),l=z[0],I=z[1],z=z[2],l.removeEventListener(I,z)},
_onKeyBindingEvent:function(z,l){this.stopKeyboardEventPropagation&&l.stopPropagation();if(!l.defaultPrevented)for(var I=0;I<z.length;I++){var b=z[I][0],v=z[I][1];if(KJH(b,l)&&(this._triggerKeyHandler(b,v,l),l.defaultPrevented))break}},
_triggerKeyHandler:function(z,l,I){var b=Object.create(z);b.keyboardEvent=I;z=new CustomEvent(z.event,{detail:b,cancelable:!0});this[l].call(this,z);z.defaultPrevented&&I.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
*/
_.hP({is:"iron-a11y-keys",_template:null,behaviors:[_.rB],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(z){this.keyEventTarget=z},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(z){this.fire("keys-pressed",z.detail,{})}});_.$b={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(z){this._setFocused(z.type==="focus")},
_disabledChanged:function(z){this.setAttribute("aria-disabled",z?"true":"false");this.style.pointerEvents=z?"none":"";z?(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 eF={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(z){this._detectKeyboardFocus(z);z||this._setPressed(!1)},
_detectKeyboardFocus:function(z){this._setReceivedFocusFromKeyboard(!this.pointerDown&&z)},
_userActivate:function(z){this.active!==z&&(this.active=z,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(z){z=z.detail.keyboardEvent;var l=_.YO(z).localTarget;this.isLightDescendant(l)||(z.preventDefault(),z.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(z){z=_.YO(z.detail.keyboardEvent).localTarget;this.isLightDescendant(z)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(z,l){l&&l!=z&&this.hasAttribute(l)&&this.removeAttribute(l)},
_activeChanged:function(z){this.toggles?this.setAttribute(this.ariaActiveAttribute,z?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},SB0=[_.rB,
eF];_.wB={IronButtonState:SB0,IronButtonStateImpl:eF};_.Ai={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Wo=function(z){_.Wo[" "](z);this.type=z&&z.type||"default";this.key=z&&z.key;z&&"value"in z&&(this.value=z.value)};
_.Wo.prototype.byKey=function(z){this.key=z;return this.value};
_.vP.Object.defineProperties(_.Wo.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var z=this.type,l=this.key;if(z&&l)return nR[z]&&nR[z][l]},
set:function(z){var l=this.type,I=this.key;l&&I&&(l=nR[l]=nR[l]||{},z==null?delete l[I]:l[I]=z)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var z=nR[this.type];return z?Object.keys(z).map(function(l){return nR[this.type][l]},this):[]}}});
_.Wo[" "]=function(){};
var nR={};_.hP({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(z,l,I){z=new _.Wo({type:z,key:l});I!==void 0&&I!==z.value?z.value=I:this.value!==z.value&&(this.value=z.value);return z},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(z){z&&(this.value=this)},
byKey:function(z){return(new _.Wo({type:this.type,key:z})).value}});var dvz;dvz=null;_.LR={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){dvz=new _.Wo({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return dvz&&dvz.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(z){this.invalid=z===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(z);return!this.invalid},
_getValidity:function(z){return this.hasValidator()?this._validator.validate(z):!0}};var oUu={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"}},P1u=[_.Ai,
_.LR,oUu];_.hP({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 _.Wo({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(z){return this.name+":"+z},this)},
applyIcon:function(z,l){this.removeIcon(z);if(l=this._cloneIcon(l,this.rtlMirroring&&this._targetIsRTL(z))){var I=_.YO(z.root||z);I.insertBefore(l,I.childNodes[0]);return z._svgIcon=l}return null},
removeIcon:function(z){z._svgIcon&&(_.YO(z.root||z).removeChild(z._svgIcon),z._svgIcon=null)},
_targetIsRTL:function(z){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(z&&z.nodeType!==Node.ELEMENT_NODE&&(z=z.host),this.__targetIsRTL=z&&window.getComputedStyle(z).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 z=Object.create(null);_.YO(this).querySelectorAll("[id]").forEach(function(l){z[l.id]=l});
return z},
_cloneIcon:function(z,l){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[z],this.size,l)},
_prepareSvgClone:function(z,l,I){if(z){z=z.cloneNode(!0);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");l=z.getAttribute("viewBox")||"0 0 "+l+" "+l;var v="pointer-events: none; display: block; width: 100%; height: 100%;";I&&z.hasAttribute("mirror-in-rtl")&&(v+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");b.setAttribute("viewBox",l);b.setAttribute("preserveAspectRatio","xMidYMid meet");b.setAttribute("focusable","false");b.style&&(b.style.cssText=
v);b.appendChild(z).removeAttribute("id");return b}return null}});var hyp=function(z){this.multi=!1;this.selection=[];this.selectCallback=z};
_.p=hyp.prototype;_.p.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.p.clear=function(z){this.selection.slice().forEach(function(l){(!z||z.indexOf(l)<0)&&this.setItemSelected(l,!1)},this)};
_.p.isSelected=function(z){return this.selection.indexOf(z)>=0};
_.p.setItemSelected=function(z,l){if(z!=null&&l!==this.isSelected(z)){if(l)this.selection.push(z);else{var I=this.selection.indexOf(z);I>=0&&this.selection.splice(I,1)}this.selectCallback&&this.selectCallback(z,l)}};
_.p.select=function(z){this.multi?this.toggle(z):this.get()!==z&&(this.setItemSelected(this.get(),!1),this.setItemSelected(z,!0))};
_.p.toggle=function(z){this.setItemSelected(z,!this.isSelected(z))};_.Ie={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 hyp(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.YO(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(z){return this.items?this.items.indexOf(z):-1},
select:function(z){this.selected=z},
selectPrevious:function(){var z=this.items.length,l=z-1;this.selected!==void 0&&(l=(Number(this._valueToIndex(this.selected))-1+z)%z);this.selected=this._indexToValue(l)},
selectNext:function(){var z=0;this.selected!==void 0&&(z=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(z)},
selectIndex:function(z){this.select(this._indexToValue(z))},
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(z){this.listen(this,z,"_activateHandler")},
_removeListener:function(z){this.unlisten(this,z,"_activateHandler")},
_activateEventChanged:function(z,l){this._removeListener(l);this._addListener(z)},
_updateItems:function(){var z=_.YO(this).queryDistributedElements(this.selectable||"*");z=Array.prototype.filter.call(z,this._bindFilterItem);this._setItems(z)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var z=this._valueToItem(this.selected);z?this._selection.select(z):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(z){return!this._excludedLocalNames[z.localName]},
_valueToItem:function(z){return z==null?null:this.items[this._valueToIndex(z)]},
_valueToIndex:function(z){if(this.attrForSelected)for(var l=0,I;I=this.items[l];l++){if(this._valueForItem(I)==z)return l}else return Number(z)},
_indexToValue:function(z){if(this.attrForSelected){if(z=this.items[z])return this._valueForItem(z)}else return z},
_valueForItem:function(z){if(!z)return null;if(!this.attrForSelected)return z=this.indexOf(z),z===-1?null:z;var l=z[Nh(this.attrForSelected)];return l!=void 0?l:z.getAttribute(this.attrForSelected)},
_applySelection:function(z,l){this.selectedClass&&this.toggleClass(this.selectedClass,l,z);this.selectedAttribute&&this.toggleAttribute.call(z,this.selectedAttribute,l);this._selectionChange();this.fire("iron-"+(l?"select":"deselect"),{item:z})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(z){return _.YO(z).observeNodes(function(l){this._updateItems();this._updateSelected();this.fire("iron-items-changed",l,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(z){z=z.target;for(var l=this.items;z&&z!=this;){var I=l.indexOf(z);if(I>=0){l=this._indexToValue(I);this._itemActivate(l,z);break}z=z.parentNode}},
_itemActivate:function(z,l){this.fire("iron-activate",{selected:z,item:l},{cancelable:!0}).defaultPrevented||this.select(z)}};var s0w={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(z){this.multi?this._toggleSelected(z):this.selected=z},
multiChanged:function(z){this._selection.multi=z;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(z){return this._indexToValue(this.indexOf(z))},this).filter(function(z){return z!=null},this)):_.Ie._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(z){z=z||[];z=(this._valuesToItems(z)||[]).filter(function(I){return I!==null&&I!==void 0});
this._selection.clear(z);for(var l=0;l<z.length;l++)this._selection.setItemSelected(z[l],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var z=this._selection.get();this.multi?(this._setSelectedItems(z),this._setSelectedItem(z.length?z[0]:null)):z!==null&&z!==void 0?(this._setSelectedItems([z]),this._setSelectedItem(z)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(z){var l=this.selectedValues.indexOf(z);l<0?this.push("selectedValues",z):this.splice("selectedValues",l,1)},
_valuesToItems:function(z){return z==null?null:z.map(function(l){return this._valueToItem(l)},this)}},rRp=[_.Ie,
s0w];var $v4;
_.Ue={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(z){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var l=this._valueToItem(z);l&&l.hasAttribute("disabled")||(this._setFocusedItem(l),s0w.select.apply(this,arguments))},
_resetTabindices:function(){var z=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(l){l.setAttribute("tabindex",l===z?"0":"-1");l.setAttribute("aria-selected",this._selection.isSelected(l))},this)},
_updateMultiselectable:function(z){z?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(z){if(this._MODIFIER_KEYS.indexOf(z.key)===-1){this.cancelDebouncer("_clearSearchText");var l=this._searchText||"";l+=(z.key&&z.key.length==1?z.key:String.fromCharCode(z.keyCode)).toLocaleLowerCase();z=l.length;for(var I=0,b;b=this.items[I];I++)if(!b.hasAttribute("disabled")){var v=this.attrForItemTitle||"textContent";v=(b[v]||b.getAttribute(v)||"").trim();if(!(v.length<z)&&v.slice(0,z).toLocaleLowerCase()==l){this._setFocusedItem(b);break}}this._searchText=l;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var z=this.items.length,l=Number(this.indexOf(this.focusedItem)),I=1;I<z+1;I++){var b=this.items[(l-I+z)%z];if(!b.hasAttribute("disabled")){var v=_.YO(b).getOwnerRoot()||document;this._setFocusedItem(b);if(_.YO(v).activeElement==b)break}}},
_focusNext:function(){for(var z=this.items.length,l=Number(this.indexOf(this.focusedItem)),I=1;I<z+1;I++){var b=this.items[(l+I)%z];if(!b.hasAttribute("disabled")){var v=_.YO(b).getOwnerRoot()||document;this._setFocusedItem(b);if(_.YO(v).activeElement==b)break}}},
_applySelection:function(z,l){l?z.setAttribute("aria-selected","true"):z.setAttribute("aria-selected","false");_.Ie._applySelection.apply(this,arguments)},
_focusedItemChanged:function(z,l){l&&l.setAttribute("tabindex","-1");!z||z.hasAttribute("disabled")||this.disabled||(z.setAttribute("tabindex","0"),z.focus())},
_onIronItemsChanged:function(z){z.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var z=this.getAttribute("tabindex");_.Ue._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",z);_.Ue._shiftTabPressed=!1},1)},
_onFocus:function(z){!_.Ue._shiftTabPressed&&(z=_.YO(z).rootTarget,z===this||typeof z.tabIndex==="undefined"||this.isLightDescendant(z))&&(this._defaultFocusAsync=this.async(function(){var l=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);l?this._setFocusedItem(l):this.items[0]&&this._focusNext()}))},
_onUpKey:function(z){this._focusPrevious();z.detail.keyboardEvent.preventDefault()},
_onDownKey:function(z){this._focusNext();z.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var z=this.focusedItem;z&&z.blur()},
_onKeydown:function(z){this.keyboardEventMatchesKeys(z,"up down esc")||this._focusWithKeyboardEvent(z);z.stopPropagation()},
_activateHandler:function(z){_.Ie._activateHandler.call(this,z);z.stopPropagation()},
_disabledChanged:function(z){z?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};$v4=[rRp,_.rB,_.Ue];_.eyu={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(z){this.focusedItem&&(this.focusedItem.click(),z.detail.keyboardEvent.preventDefault())},
_onDownKey:function(z){this.focusedItem&&(this.focusedItem.click(),z.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(z){return z.ctrlKey||z.shiftKey||z.altKey||z.metaKey},
_onLeftKey:function(z){this._isSpecialKey(z.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),z.detail.keyboardEvent.preventDefault())},
_onRightKey:function(z){this._isSpecialKey(z.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),z.detail.keyboardEvent.preventDefault())},
_onKeydown:function(z){this.keyboardEventMatchesKeys(z,"up down left right esc")||this._focusWithKeyboardEvent(z)}};
_.wUI=[$v4,_.eyu];var ARI;ARI=new Set;_.ap={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):(ARI.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(z){this.resizerShouldNotify(z)&&this._notifyDescendant(z)},this),this._fireResize())},
assignParentResizable:function(z){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=z)&&z._interestedResizables.indexOf(this)===-1&&(z._interestedResizables.push(this),z._subscribeIronResize(this))},
stopResizeNotificationsFor:function(z){var l=this._interestedResizables.indexOf(z);l>-1&&(this._interestedResizables.splice(l,1),this._unsubscribeIronResize(z))},
_subscribeIronResize:function(z){z.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(z){z.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(z){this._notifyingDescendant?z.stopPropagation():Ae||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(z){var l=_.YO(z).rootTarget;l!==this&&(l.assignParentResizable(this),this._notifyDescendant(l),z.stopPropagation())},
_parentResizableChanged:function(z){z&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(z){this.isAttached&&(this._notifyingDescendant=!0,z.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var z=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function I(){document.removeEventListener("readystatechange",I);z()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(l){l!==this&&l._findParent()},this):(ARI.forEach(function(l){l!==this&&l._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?ARI.delete(this):ARI.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
*/
_.WEz={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(z,l){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);l&&(z==="document"?this.scrollTarget=this._doc:typeof z==="string"?this.scrollTarget=(l=this.domHost)&&l.$?l.$[z]:_.YO(this.ownerDocument).querySelector("#"+z):this._isValidScrollTarget()&&(this._oldScrollTarget=z,this._toggleScrollListener(this._shouldHaveListener,z)))},
_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(z){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,z):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
z)},set _scrollLeft(z){this.scrollTarget===this._doc?window.scrollTo(z,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=z)},scroll:function(z,l){if(typeof z==="object"){var I=z.left;l=z.top}else I=z;I=I||0;l=l||0;this.scrollTarget===this._doc?window.scrollTo(I,l):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=I,this.scrollTarget.scrollTop=l)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(z,l){l=l===this._doc?window:l;z?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),l.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(l.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(z){this._shouldHaveListener=z;this._toggleScrollListener(z,this.scrollTarget)}};_.hP({is:"iron-selector",_template:null,behaviors:[rRp]});var Vh={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(z){if(z.timing)for(var l in z.timing)this.animationTiming[l]=z.timing[l];return this.animationTiming},
setPrefixedProperty:function(z,l,I){for(var b={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[l],v,M=0;v=b[M];M++)z.style[v]=I;z.style[l]=I},
complete:function(){}};_.hP({is:"fade-in-animation",_template:null,behaviors:[Vh],configure:function(z){return this._effect=new KeyframeEffect(z.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(z))}});_.hP({is:"fade-out-animation",_template:null,behaviors:[Vh],configure:function(z){return this._effect=new KeyframeEffect(z.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(z))}});var nUj=[{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(z,l){for(var I in l)z[I]=l[I]},
_cloneConfig:function(z){var l={isClone:!0};this._copyProperties(l,z);return l},
_getAnimationConfigRecursive:function(z,l,I){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 b=z?this.animationConfig[z]:this.animationConfig;Array.isArray(b)||(b=[b]);if(b)for(var v,M=0;v=b[M];M++)if(v.animatable)v.animatable._getAnimationConfigRecursive(v.type||z,l,I);else if(v.id){var x=l[v.id];
x?(x.isClone||(l[v.id]=this._cloneConfig(x),x=l[v.id]),this._copyProperties(x,v)):l[v.id]=v}else I.push(v)}},
getAnimationConfig:function(z){var l={},I=[];this._getAnimationConfigRecursive(z,l,I);for(var b in l)I.push(l[b]);return I}},
{_configureAnimations:function(z){var l=[],I=[];if(z.length>0)for(var b,v=0;b=z[v];v++){var M=document.createElement(b.name);if(M.isNeonAnimation){var x=null;M.configure||(M.configure=function(){return null});
x=M.configure(b);I.push({result:x,config:b})}else console.warn(this.is+":",b.name,"not found!")}for(z=0;z<I.length;z++){x=I[z].result;b=I[z].config;try{typeof x.cancel!="function"&&(x=document.timeline.play(x))}catch(g){x=null,console.warn("Couldnt play","(",b.name,").",g)}x&&l.push({neonAnimation:M,config:b,animation:x})}return l},
_shouldComplete:function(z){for(var l=!0,I=0;I<z.length;I++)if(z[I].animation.playState!="finished"){l=!1;break}return l},
_complete:function(z){for(var l=0;l<z.length;l++)z[l].neonAnimation.complete(z[l].config);for(l=0;l<z.length;l++)z[l].animation.cancel()},
playAnimation:function(z,l){var I=this.getAnimationConfig(z);if(I){this._active=this._active||{};this._active[z]&&(this._complete(this._active[z]),delete this._active[z]);var b=this._configureAnimations(I);if(b.length==0)this.fire("neon-animation-finish",l,{bubbles:!1});else for(this._active[z]=b,I=0;I<b.length;I++)b[I].animation.onfinish=function(){this._shouldComplete(b)&&(this._complete(b),delete this._active[z],this.fire("neon-animation-finish",l,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var z in this._active){var l=this._active[z],I;for(I in l)l[I].animation&&l[I].animation.cancel&&l[I].animation.cancel()}this._active={}}}];var kO=function(z,l){z=Error.call(this,z);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.arg=l;this.name=this.constructor.name;this.constructor=kO;this.__proto__=kO.prototype};
_.m(kO,Error);var LEw=Zj(function(z){var l=function(){return z.apply(this,arguments)||this};
_.m(l,z);l.prototype._marshalArgs=function(I,b,v){b=z.prototype._marshalArgs.call(this,I,b,v);if(this._legacyUndefinedCheck&&b.length>1)for(v=0;v<b.length;v++)if(b[v]===void 0||I[v].wildcard&&b[v].base===void 0)throw I=I[v].name,new kO("Argument '"+I+"' is undefined.",I);return b};
l.prototype._addPropertyEffect=function(I,b,v){return z.prototype._addPropertyEffect.call(this,I,b,qb1(v,v&&v.info&&v.info.methodName))};
l._addTemplatePropertyEffect=function(I,b,v){return z._addTemplatePropertyEffect.call(this,I,b,qb1(v))};
return l}),Uv0=_.hP.Class;
_.hP.Class=function(z,l){return Uv0(z,function(I){return l?l(LEw(I)):LEw(I)})};
var aX_=Zj(function(z){var l=LEw(z);z=function(){return l.apply(this,arguments)||this};
_.m(z,l);_.vP.Object.defineProperties(z.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return z}),V9p=ns.mixin;
ns.mixin=V9p?function(z){return aX_(V9p(z))}:aX_;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.jF=_.wB.IronButtonState;var i6t=wS;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var JR4;_.j0u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");JR4=function(){var z=[],l;var I=I||_.j0u.length;for(l=0;l<8;l++)z[l]=_.j0u[0|Math.random()*I];return z.join("")};var Yb5=function(){return Math.random().toString(36).substring(7).split("").join(".")},QWQ="@@redux/INIT"+Yb5(),SbS="@@redux/REPLACE"+Yb5();var dgY=typeof Symbol==="function"&&Symbol.observable||"@@observable";var zL_=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var l6_="top right bottom left width height size weight".split(" "),I6_=typeof MutationObserver!=="undefined",bjw=zL_&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,vMA=function(){this.mutationEventsAdded_=this.JSC$11758_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=o9$(this.refresh.bind(this))},M2A=function(z,
l){var I=z.observers_;
l=I.indexOf(l);~l&&I.splice(l,1);!I.length&&z.JSC$11758_connected_&&zL_&&z.JSC$11758_connected_&&(document.removeEventListener("transitionend",z.onTransitionEnd_),window.removeEventListener("resize",z.refresh),z.mutationsObserver_&&(z.mutationsObserver_.disconnect(),bjw&&(HTMLElement.prototype.attachShadow=bjw)),z.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",z.refresh),z.mutationsObserver_=null,z.mutationEventsAdded_=!1,z.JSC$11758_connected_=!1)};
vMA.prototype.refresh=function(){pt0(this)&&this.refresh()};
var pt0=function(z){z=z.observers_.filter(function(l){return Daw(l),l.activeObservations_.length>0});
z.forEach(function(l){return xap(l)});
return z.length>0},Ojp=function(z){if(zL_&&!z.JSC$11758_connected_){document.addEventListener("transitionend",z.onTransitionEnd_);
window.addEventListener("resize",z.refresh);if(I6_){z.mutationsObserver_=new MutationObserver(z.refresh);var l={attributes:!0,childList:!0,characterData:!0,subtree:!0};z.mutationsObserver_.observe(document,l);bjw&&(function v(b){var M=b.shadowRoot;M&&(z.mutationsObserver_.observe(M,l),v(M));for(b=b.firstElementChild;b;)v(b),b=b.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var b=bjw.apply(this,_.AT.apply(0,arguments));
z.mutationsObserver_.observe(b,l);return b})}else document.addEventListener("DOMSubtreeModified",z.refresh),z.mutationEventsAdded_=!0;
z.JSC$11758_connected_=!0}};
vMA.prototype.onTransitionEnd_=function(z){var l=z.propertyName===void 0?"":z.propertyName;l6_.some(function(I){return!!~l.indexOf(I)})&&this.refresh()};
var gMu=null;var GD_=function(z,l){for(var I=_.D(Object.keys(l)),b=I.next();!b.done;b=I.next())b=b.value,Object.defineProperty(z,b,{value:l[b],enumerable:!1,writable:!1,configurable:!0})};var Ji=function(z){var l;return(z==null?void 0:(l=z.ownerDocument)==null?void 0:l.defaultView)||globalThis};var Nnp={x:0,y:0,width:0,height:0},EMI=typeof SVGGraphicsElement!=="undefined"?function(z){return z instanceof Ji(z).SVGGraphicsElement}:function(z){return z instanceof Ji(z).SVGElement&&typeof z.getBBox==="function"};var uo_=function(z){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=z};
uo_.prototype.isActive=function(){var z=this.target;if(zL_)if(EMI(z)){var l=z.getBBox();l={x:0,y:0,width:l.width,height:l.height}}else{var I=z.clientWidth,b=z.clientHeight;if(I||b){var v=Ji(z).getComputedStyle(z);l=mG(v["padding-top"]);var M=mG(v["padding-left"]),x=M+mG(v["padding-right"]),g=l+mG(v["padding-bottom"]),G=mG(v.width),u=mG(v.height);v.boxSizing==="border-box"&&(Math.round(G+x)!==I&&(G-=PTH(v,"left","right")+x),Math.round(u+g)!==b&&(u-=PTH(v,"top","bottom")+g));z!==Ji(z).document.documentElement&&
(z=Math.round(G+x)-I,b=Math.round(u+g)-b,Math.abs(z)!==1&&(G-=z),Math.abs(b)!==1&&(u-=b));l={x:M,y:l,width:G,height:u}}else l=Nnp}else l=Nnp;this.contentRect_=l;return l.width!==this.broadcastWidth||l.height!==this.broadcastHeight};var ZjA=function(z,l){var I=l.x;var b=l.y;var v=l.width;l=l.height;var M=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);GD_(M,{x:I,y:b,width:v,height:l,top:b,right:I+v,bottom:l+b,left:I});GD_(this,{target:z,contentRect:M})};var Hjp=function(z,l){var I=gMu;this.activeObservations_=[];this.observations_=new Map;if(typeof z!=="function")throw new TypeError("Ue");this.callback_=z;this.controller_=I;this.callbackCtx_=l};
Hjp.prototype.observe=function(z){if(z===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(z instanceof Ji(z).Element))throw new TypeError("We");var l=this.observations_;l.has(z)||(l.set(z,new uo_(z)),z=this.controller_,~z.observers_.indexOf(this)||z.observers_.push(this),z.JSC$11758_connected_||Ojp(z),this.controller_.refresh())}};
Hjp.prototype.unobserve=function(z){if(z===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(z instanceof Ji(z).Element))throw new TypeError("We");var l=this.observations_;l.has(z)&&(l.delete(z),l.size||M2A(this.controller_,this))}};
Hjp.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();M2A(this.controller_,this)};
var Daw=function(z){z.activeObservations_.splice(0);z.observations_.forEach(function(l){l.isActive()&&z.activeObservations_.push(l)})},xap=function(z){if(z.activeObservations_.length>0){var l=z.callbackCtx_,I=z.activeObservations_.map(function(b){var v=b.target,M=b.contentRect_;
b.broadcastWidth=M.width;b.broadcastHeight=M.height;return new ZjA(v,M)});
z.callback_.call(l,I,l);z.activeObservations_.splice(0)}};var zJ=function(z){if(!(this instanceof zJ))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");gMu||(gMu=new vMA);this.observer_=new Hjp(z,this)};
zJ.prototype.observe=function(z){this.observer_.observe(z)};
zJ.prototype.unobserve=function(z){this.observer_.unobserve(z)};
zJ.prototype.disconnect=function(){this.observer_.disconnect()};var UqG=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:zJ;var WJQ="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(" "),AzQ={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},wn5=null,hok=null;var n9Y={},LJQ=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 l9p={text:1},Vik={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var yQ4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,f6A={CONSTANT:{isUnwrappable:function(z){return z instanceof sN},
unwrap:bl_},JAVASCRIPT:{isUnwrappable:function(z){return z instanceof _.IL},
unwrap:xef},HTML:{isUnwrappable:function(z){return z instanceof LD},
unwrap:function(z){return VR(z)}},
RESOURCE_URL:{isUnwrappable:function(z){return z instanceof Fr},
unwrap:_.YR},STRING:{isUnwrappable:function(z){return z instanceof Object},
unwrap:function(z){return String(z)}},
STYLE:{isUnwrappable:function(z){return typeof z==="string"},
unwrap:function(z){return z}},
URL:{isUnwrappable:function(z){return ou(z)},
unwrap:_.hT}},C7I={CONSTANT:I95,JAVASCRIPT:I95,HTML:function(z){z=z instanceof LD?z:au(String(z).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return VR(z)},
RESOURCE_URL:I95,STRING:String,STYLE:I95,URL:function(z,l){z=yQ4.test(z)?z:void 0;return z===void 0?l:z}};var EZ$=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,bmt=/[\t\n\f\r ]+/,M7u=/[\t\n\f\r ,]+/g,DR7=function(z,l,I){return I},Xg={},kDz=function(){var z=function(){var b={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",b):b}(),l=z.createHTML(""),I=z.createScript("");
z=z.createScriptURL("");return{INNOCUOUS_STRING:l,INNOCUOUS_SCRIPT:I,INNOCUOUS_URL:z}}(),BP=kDz.INNOCUOUS_STRING,NTu=kDz.INNOCUOUS_SCRIPT,Gpk=kDz.INNOCUOUS_URL;var RLn=function(z){var l=uEY(z);return function(I,b,v,M){return M?l(M,b,v,I):BP}}({reportHandler:function(z,l){if(z)try{throw Error(l);
}catch(I){_.dE(I)}},
safeTypesBridge:function(z,l,I){var b=f6A[l];return b.isUnwrappable(z)&&(b=b.unwrap(z,I),b!==I)?b:(0,C7I[l])(String(z),I)},
allowedIdentifierPrefixes:[""]});if(te!==void 0)throw Error("Ye");te=RLn;if(te!==RLn)throw Error("Ze");qr("Injectable",[]);var rJk=qr("Inject",[["token",void 0]]),eNu=qr("Optional",[]);qr("Injectable",[]);var wH1=qr("Self",[]),AJG=qr("SkipSelf",[]);qr("Host",[]);var maM={},Knn=function(){};
Knn.prototype.resolve=function(){throw Error("af");};
Knn.prototype.addProvider=function(){throw Error("af");};var hNu=Function;var t2A=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Bn0=function(){this._reflect=window.Reflect};
_.p=Bn0.prototype;_.p.factory=function(z){return function(){return new (Function.prototype.bind.apply(z,[null].concat(_.ht(_.AT.apply(0,arguments)))))}};
_.p._zipTypesAndAnnotations=function(z,l){var I=typeof z==="undefined"?Array(l.length):Array(z.length);for(var b=0;b<I.length;b++)I[b]=typeof z==="undefined"?[]:z[b]!=Object?[z[b]]:[],l&&HmQ(l[b])&&(I[b]=I[b].concat(l[b]));return I};
_.p._ownParameters=function(z,l){if(t2A.exec(z.toString()))return null;if(z.parameters&&z.parameters!==l.parameters)return z.parameters;var I=z.ctorParameters;return I&&I!==l.ctorParameters?(l=typeof I==="function"?I():I,z=l.map(function(b){return b&&b.type}),l=l.map(function(b){return b&&f9G(b.decorators)}),this._zipTypesAndAnnotations(z,l)):HmQ(this._reflect)&&HmQ(this._reflect.getOwnMetadata)&&(l=this._reflect.getOwnMetadata("parameters",z),(I=this._reflect.getOwnMetadata("design:paramtypes",z))||
l)?this._zipTypesAndAnnotations(I,l):Array(z.length).fill(void 0)};
_.p.parameters=function(z){if(!z.prototype)return[];var l=Object.getPrototypeOf(z.prototype).constructor;(z=this._ownParameters(z,l))||l===Object||(z=this.parameters(l));return z||[]};
_.p._ownAnnotations=function(z,l){if(z.annotations&&z.annotations!==l.annotations)return z=z.annotations,typeof z==="function"&&z.annotations&&(z=z.annotations),z;if(z.decorators&&z.decorators!==l.decorators)return f9G(z.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",z)};
_.p.annotations=function(z){var l=Object.getPrototypeOf(z.prototype).constructor;z=this._ownAnnotations(z,l)||[];return(l!==Object?this.annotations(l):[]).concat(z)};
_.p._ownPropMetadata=function(z,l){if(z.propMetadata&&z.propMetadata!==l.propMetadata)return z=z.propMetadata,typeof z==="function"&&z.propMetadata&&(z=z.propMetadata),z;if(z.propDecorators&&z.propDecorators!==l.propDecorators){var I=z.propDecorators,b={};Object.keys(I).forEach(function(v){b[v]=f9G(I[v])});
return b}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",z)};
_.p.propMetadata=function(z){var l=Object.getPrototypeOf(z.prototype).constructor,I={};if(l!==Object){var b=this.propMetadata(l);Object.keys(b).forEach(function(M){I[M]=b[M]})}var v=this._ownPropMetadata(z,l);
v&&Object.keys(v).forEach(function(M){var x=[];I.hasOwnProperty(M)&&x.push.apply(x,_.ht(I[M]));x.push.apply(x,_.ht(v[M]));I[M]=x});
return I};
_.p.getter=function(z){return function(l){return l[z]}};
_.p.setter=function(z){return function(l,I){return l[z]=I}};
_.p.method=function(z){return function(l,I){if(!l[z])throw Error("bf`"+z);return l[z].apply(l,I)}};var XtM=function(){};var qcM=function(z){this.reflectionCapabilities=z};
_.m(qcM,XtM);_.p=qcM.prototype;_.p.factory=function(z){return this.reflectionCapabilities.factory(z)};
_.p.parameters=function(z){return this.reflectionCapabilities.parameters(z)};
_.p.annotations=function(z){return this.reflectionCapabilities.annotations(z)};
_.p.propMetadata=function(z){return this.reflectionCapabilities.propMetadata(z)};
_.p.getter=function(z){return this.reflectionCapabilities.getter(z)};
_.p.setter=function(z){return this.reflectionCapabilities.setter(z)};
_.p.method=function(z){return this.reflectionCapabilities.method(z)};var qhQ=new qcM(new Bn0);var lA=function(z,l){this.token=z;this.id=l;if(z===void 0||z===null)throw Error("gf");};
_.vP.Object.defineProperties(lA.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return iM(this.token)}}});
_.vP.Object.defineProperties(lA,{JSC$11800_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Q0.JSC$11804_numberOfKeys}}});
var ij_=function(){this._allKeys=new Map};
ij_.prototype.get=function(z){if(z instanceof lA)return z;if(this._allKeys.has(z))return this._allKeys.get(z);var l=new lA(z,lA.JSC$11800_numberOfKeys);this._allKeys.set(z,l);return l};
_.vP.Object.defineProperties(ij_.prototype,{JSC$11804_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Q0=new ij_;var W37=function(z,l,I){this.key=z;this.optional=l;this.visibility=I},F3k=function(z){return new W37(z,!1,null)},Yhp=[],Shx=function(z,l,I){this.key=z;
this.resolvedFactories=l;this.multiProvider=I},TTf=function(z,l,I,b){this.factory=z;
this.dependencies=l;this.providerClass=I;this.providerValue=b};var IP={},bA=function(z,l){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=l===void 0?null:l;z=_.D(z);for(l=z.next();!l.done;l=z.next())this.addProvider(l.value)};
_.p=bA.prototype;_.p.addProvider=function(z){this.keyIdToIndex.set(z.key.id,this.keyIds.length);this.providers.push(z);this.keyIds.push(z.key.id);this.objs.push(IP)};
_.p.resolve=function(z,l){l=l===void 0?maM:l;return this._getByKey(Q0.get(Fg(z)),null,l)};
_.p._new=function(z){if(this.constructedKeyIds[z.key.id])throw t7Q(this,z.key);this.constructedKeyIds[z.key.id]=!0;return this._instantiateProvider(z)};
_.p._instantiateProvider=function(z){if(z.multiProvider){for(var l=Array(z.resolvedFactories.length),I=0;I<z.resolvedFactories.length;++I)l[I]=this._instantiate(z,z.resolvedFactories[I]);return l}return this._instantiate(z,z.resolvedFactories[0])};
_.p._instantiate=function(z,l){var I=this,b=l.factory;try{var v=l.dependencies.map(function(x){return I._getByReflectiveDependency(x)})}catch(x){throw x.addKey&&x.addKey(this,z.key),x;
}try{var M=b.apply(null,_.ht(v))}catch(x){throw BTu(this,x,z.key);}return M};
_.p._getByReflectiveDependency=function(z){return this._getByKey(z.key,z.visibility,z.optional?null:maM)};
_.p._getByKey=function(z,l,I){return z===Fn_?this:l instanceof wH1?this._getByKeySelf(z,I):this._getByKeyDefault(z,I,l)};
_.p._getObjByKeyId=function(z){for(var l=0;l<this.keyIds.length;l++)if(this.keyIds[l]===z)return this.objs[l]===IP&&(this.objs[l]=this._new(this.providers[l])),this.objs[l];return IP};
_.p._throwOrNull=function(z,l){if(l!==maM)return l;throw K3x(this,z);};
_.p._getByKeySelf=function(z,l){var I=this._getObjByKeyId(z.id);return I!==IP?I:this._throwOrNull(z,l)};
_.p._getByKeyDefault=function(z,l,I){for(var b=I=I instanceof AJG?this.parent:this;I instanceof bA;){var v=I._getObjByKeyId(z.id);if(v!==IP)return v;I=I.parent}v=void 0;if(I!==null)try{var M=I.resolve(z.token,l);if(M!==IP)return M}catch(x){v=x}if(!(b instanceof bA&&L3H(z.token))){if(v)throw v;return this._throwOrNull(z,l)}for(M=b;M.parent instanceof bA;)M=M.parent;M.addProvider(dR$({provide:z.token,useClass:z.token}));return M.resolve(z.token,l)};
_.p.toString=function(){return this.displayName};
_.vP.Object.defineProperties(bA.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+nZt(this,function(z){return' "'+z.key.displayName+'" '}).join(", ")+"])"}}});
var Fn_=Q0.get(Fg(Knn));(function(){let module=undefined;let exports=undefined;let define=undefined;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:
function(e,n,m){if(e==Array.prototype||e==Object.prototype)return e;e[n]=m.value;return e};
$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<e.length;++n){var m=e[n];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.polyfill=function(e,n,m,b){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,n,m,b):$jscomp.polyfillUnisolated(e,n,m,b))};
$jscomp.polyfillUnisolated=function(e,n){var m=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in m))return;m=m[q]}e=e[e.length-1];b=m[e];n=n(b);n!=b&&n!=null&&$jscomp.defineProperty(m,e,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(e,n,m){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<b.length-1;v++){var t=b[v];if(!(t in e))return;e=e[t]}b=b[b.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&m==="es6"?e[b]:null;n=n(m);n!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:n}):n!==m&&($jscomp.propertyToPolyfillSymbol[b]===void 0&&(q=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+q+"$"+b),q=$jscomp.propertyToPolyfillSymbol[b],$jscomp.defineProperty(e,q,{configurable:!0,writable:!0,value:n})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(m,b,q){return m==e&&b=="q"&&q==n}}));
return n.q===!0}catch(m){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var n=function(v,t){this.$jscomp$symbol$id_=v;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};
n.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var m="jscomp_symbol_"+e+"_",b=0,q=function(v){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n(m+(v||"")+"_"+b++,v)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<n.length;m++){var b=$jscomp.global[n[m]];typeof b==="function"&&typeof b.prototype[e]!="function"&&$jscomp.defineProperty(b.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6",
"es3");
$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
$jscomp.makeIterator=function(e){var n=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if(typeof e.length=="number")return $jscomp.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike");};
$jscomp.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){if(!e||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new e([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(r){return!1}}
function m(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,t)){var h=new m;$jscomp.defineProperty(f,t,{value:h})}}
function v(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof m)return k;Object.isExtensible(k)&&q(k);return h(k)})}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var t="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("seal");var A=0,d=function(f){this.id_=(A+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};
d.prototype.set=function(f,h){if(!b(f))throw Error("Invalid WeakMap key");q(f);if(!$jscomp.owns(f,t))throw Error("WeakMap key fail: "+f);f[t][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,t)?f[t][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)?delete f[t][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),f=new e($jscomp.makeIterator([[d,"s"]]));if(f.get(d)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var h=f.entries(),k=h.next();if(k.done||k.value[0]!=d||k.value[1]!="s")return!1;k=h.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!h.next().done?!1:!0}catch(r){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=new WeakMap,b=function(d){this[0]={};this[1]=t();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var f;!(f=d.next()).done;)f=f.value,this.set(f[0],f[1])}};
b.prototype.set=function(d,f){d=d===0?0:d;var h=q(this,d);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:f},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
b.prototype.delete=function(d){d=q(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=t();this.size=0};
b.prototype.has=function(d){return!!q(this,d).entry};
b.prototype.get=function(d){return(d=q(this,d).entry)&&d.value};
b.prototype.entries=function(){return v(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return v(this,function(d){return d.key})};
b.prototype.values=function(){return v(this,function(d){return d.value})};
b.prototype.forEach=function(d,f){for(var h=this.entries(),k;!(k=h.next()).done;)k=k.value,d.call(f,k[1],k[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var q=function(d,f){var h;var k=(h=f)&&typeof h;k=="object"||k=="function"?m.has(h)?h=m.get(h):(k=""+ ++A,m.set(h,k),h=k):h="p_"+h;if((k=d[0][h])&&$jscomp.owns(d[0],h))for(d=0;d<k.length;d++){var r=k[d];if(f!==f&&r.key!==r.key||f===r.key)return{id:h,list:k,index:d,entry:r}}return{id:h,list:k,index:-1,entry:void 0}},v=function(d,f){var h=d[1];
return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=d[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},t=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),q=new e($jscomp.makeIterator([b]));if(!q.has(b)||q.size!=1||q.add(b)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var v=q.entries(),t=v.next();if(t.done||t.value[0]!=b||t.value[1]!=b)return!1;t=v.next();return t.done||t.value[0]==b||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:v.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var q;!(q=b.next()).done;)q=q.value,this.add(q)}this.size=this.map_.size};
m.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
m.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
m.prototype.clear=function(){this.map_.clear();this.size=0};
m.prototype.has=function(b){return this.map_.has(b)};
m.prototype.entries=function(){return this.map_.entries()};
m.prototype.values=function(){return this.map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(b,q){var v=this;this.map_.forEach(function(t){return b.call(q,t,t,v)})};
return m},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function n(m){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(m);var b=new Set(this);m=$jscomp.checkIsValidIterator(m.keys());for(var q=m.next();!q.done;)b.add(q.value),q=m.next();return b}
return e?e:n},"es_next","es6");
$jscomp.checkIsSetLike=function(e){if(typeof e!=="object"||e===null||typeof e.size!=="number"||e.size<0||typeof e.keys!=="function"||typeof e.has!=="function")throw new TypeError("Argument must be set-like");};
$jscomp.checkIsValidIterator=function(e){if(typeof e!=="object"||e===null||typeof e.next!=="function")throw new TypeError("Invalid iterator.");return e};
$jscomp.getSmallerAndLargerSets=function(e,n){return e.size<=n.size?{smallerSetIterator:e.keys(),largerSet:n}:{smallerSetIterator:$jscomp.checkIsValidIterator(n.keys()),largerSet:e}};
$jscomp.checkIsSetInstance=function(e){if(!(e instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
(function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var n=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;n.XRegExp=e()}})(function(){return function q(n,m,b){function v(d,f){if(!m[d]){if(!n[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(t)return t(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=m[d]={exports:{}};n[d][0].call(f.exports,function(k){var r=n[d][1][k];return v(r?r:k)},f,f.exports,q,n,m,b)}return m[d].exports}
for(var t=typeof require=="function"&&require,A=0;A<b.length;A++)v(b[A]);return v}({1:[function(n,m){m.exports=function(b){function q(d){var f=/^(?:\(\?:\))*\^/,h=/\$(?:\(\?:\))*$/;
return f.test(d)&&h.test(d)&&h.test(d.replace(/\\[\s\S]/g,""))?d.replace(f,"").replace(h,""):d}
function v(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var t=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,t],"g",{conjunction:"or"});b.build=function(d,f,h){h=h||"";var k=h.indexOf("x")>-1,r=/^\(\?([\w$]+)\)/.exec(d);r&&(h=b._clipDuplicates(h+r[1]));var u={},B;for(B in f)f.hasOwnProperty(B)&&(r=v(f[B],k),u[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=v(d,k);var C=0,D,p=0,I=[0],E=d.xregexp.captureNames||[];d=d.source.replace(A,function(F,J,N,Q,R){var L=J||N;if(L){if(!u.hasOwnProperty(L))throw new ReferenceError("Undefined property "+
F);if(J){var M=E[p];I[++p]=++C;F="(?<"+(M||L)+">"}else F="(?:";D=C;return F+u[L].pattern.replace(t,function(T,U,O){if(U){if(M=u[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,u[L].names[P]?"\\k<"+u[L].names[P]+">":"\\"+(+O+D);return T})+")"}if(Q){if(M=E[p],I[++p]=++C,M)return"(?<"+M+">"}else if(R){var P=+R-1;
return E[P]?"\\k<"+E[P]+">":"\\"+I[+R]}return F});
return b(d,h)}}},
{}],2:[function(n,m){m.exports=function(b){function q(v,t,A,d){return{name:v,value:t,start:A,end:d}}
b.matchRecursive=function(v,t,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),u=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;t=b(t,r);A=b(A,r);if(u){if(u.length>1)throw Error("Cannot use more than one escape character");u=b.escape(u);var E=new RegExp("(?:"+u+"[\\S\\s]|(?:(?!"+b.union([t,A],"",{conjunction:"or"}).source+")[^"+u+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){u&&(p+=(b.exec(v,E,p,"sticky")||[""])[0].length);d=b.exec(v,t,p);r=b.exec(v,A,p);d&&
r&&(d.index<=r.index?r=null:d=null);if(d||r)D=(d||r).index,p=D+(d||r)[0].length;else if(!C)break;if(k&&!C&&D>I)break;if(d){if(!C){var F=D;var J=p}++C}else if(r&&C){if(!--C&&(f?(f[0]&&F>I&&B.push(q(f[0],v.slice(I,F),I,F)),f[1]&&B.push(q(f[1],v.slice(F,J),F,J)),f[2]&&B.push(q(f[2],v.slice(J,D),J,D)),f[3]&&B.push(q(f[3],v.slice(D,p),D,p))):B.push(v.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&v.length>I&&B.push(q(f[0],v.slice(I),I,v.length));
return B}}},
{}],3:[function(n,m){m.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function v(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function t(k){var r="",u=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=v(B[1]);C>u+1&&(r+="\\u"+h(f(u+1)),C>u+2&&(r+="-\\u"+h(f(C-1))));u=v(B[2]||B[1])});
u<65535&&(r+="\\u"+h(f(u+1)),u<65534&&(r+="-\\uFFFF"));return r}
var A={},d=b._dec,f=b._hex,h=b._pad4;b.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(k,r,u){var B=k[1]==="P"||!!k[2],C=u.indexOf("A")>-1;u=q(k[4]||k[3]);var D=A[u];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(u))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){u=q(D.inverseOf);if(!A.hasOwnProperty(u))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[u];B=!B}if(!D.bmp&&!C)throw new SyntaxError("Astral mode required for Unicode token "+
k[0]);if(C){if(r==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");k=B?"a!":"a=";(r=A[u][k])||(r=A[u],u=A[u],C="",u.bmp&&!u.isBmpLast&&(C="["+u.bmp+"]"+(u.astral?"|":"")),u.astral&&(C+=u.astral),u.isBmpLast&&u.bmp&&(C+=(u.astral?"|":"")+"["+u.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[u]["b!"]||(A[u]["b!"]=t(A[u].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,u=0;u<k.length;++u){r=k[u];if(!r.name)throw Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw Error("Unicode token has no character data "+r.name);A[q(r.name)]=r;r.alias&&(A[q(r.alias)]=r)}b.cache.flush("patterns")};
b._getUnicodeProperty=function(k){k=q(k);return A[k]}}},
{}],4:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");b.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",
astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",
bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\x00-\u007f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},
{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",
bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_and_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",
astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},
{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},
{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",
bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",
astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},
{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},
{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGreek_and_Coptic",bmp:"\u0370-\u03ff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",
bmp:"\uac00-\ud7af"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",
astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",
bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",
bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLatin_1_Supplement",bmp:"\u0080-\u00ff"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},
{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},
{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},
{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},
{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InOgham",bmp:"\u1680-\u169f"},
{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",
bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",
bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},
{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},
{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_and_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",
astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},
{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},
{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},
{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"}])}},
{}],5:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");b.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00-\u001f\u007f-\u009f\u00ad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},
{name:"Cc",alias:"Control",bmp:"\x00-\u001f\u007f-\u009f"},{name:"Cf",alias:"Format",bmp:"\u00ad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804\udcbd|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},
{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\u00b5\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7fa\uab30-\uab5a\uab60-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",
bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},
{name:"Lo",alias:"Other_Letter",bmp:"\u00aa\u00ba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05f0-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10d0-\u10fa\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",
alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",
astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},
{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d01\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"N",alias:"Number",bmp:"0-9\u00b2\u00b3\u00b9\u00bc-\u00be\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},
{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},
{name:"No",alias:"Other_Number",bmp:"\u00b2\u00b3\u00b9\u00bc-\u00be\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},
{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}\u00a1\u00a7\u00ab\u00b6\u00b7\u00bb\u00bf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e44\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},
{name:"Pf",alias:"Final_Punctuation",bmp:"\u00bb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\u00ab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C\u00a1\u00a7\u00b6\u00b7\u00bf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166d\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43\u2e44\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",
alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~\u00a2-\u00a6\u00a8\u00a9\u00ac\u00ae-\u00b1\u00b4\u00b8\u00d7\u00f7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20be\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24\u00a2-\u00a5\u058f\u060b\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20be\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`\u00a8\u00af\u00b4\u00b8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},
{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~\u00ac\u00b1\u00d7\u00f7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",
astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\u00a6\u00a9\u00ae\u00b0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Z",alias:"Separator",bmp:" \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \u00a0\u1680\u2000-\u200a\u202f\u205f\u3000"}])}},
{}],6:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var q=[{name:"ASCII",bmp:"\x00-\u007f"},{name:"Alphabetic",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u1062\u1065-\u1068\u106e-\u1086\u108e\u109c\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135f\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c35\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a\uaa7e-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Any",isBmpLast:!0,bmp:"\x00-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\u00aa\u00b5\u00ba\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",
bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},
{name:"White_Space",bmp:"\t-\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}];q.push({name:"Assigned",inverseOf:"Cn"});b.addUnicodeData(q)}},
{}],7:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");b.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",
astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u055f\u0561-\u0587\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},
{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fb"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},
{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312d\u31a0-\u31ba"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},
{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-\u00a9\u00ab-\u00b9\u00bb-\u00bf\u00d7\u00f7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0589\u0605\u060c\u061b\u061c\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20be\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u23fe\u2400-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2e00-\u2e44\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",
astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},
{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0953-\u0963\u0966-\u097f\ua8e0-\ua8fd"},{name:"Duployan",
astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},
{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",
bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9"},
{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4db5\u4e00-\u9fd5\uf900-\ufa6d\ufa70-\ufad9",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c\udc01|\ud83c\ude00"},
{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951\u0952\u1ab0-\u1abe\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},
{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c\udc00"},
{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},
{name:"Latin",bmp:"A-Za-z\u00aa\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},
{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},
{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},
{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1877\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},
{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"\u07c0-\u07fa"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},
{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},
{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",
astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82b"},
{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa"},
{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c78-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},
{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"}])}},
{}],8:[function(n,m){var b=n("./xregexp");n("./addons/build")(b);n("./addons/matchrecursive")(b);n("./addons/unicode-base")(b);n("./addons/unicode-blocks")(b);n("./addons/unicode-categories")(b);n("./addons/unicode-properties")(b);n("./addons/unicode-scripts")(b);m.exports=b},
{"./addons/build":1,"./addons/matchrecursive":2,"./addons/unicode-base":3,"./addons/unicode-blocks":4,"./addons/unicode-categories":5,"./addons/unicode-properties":6,"./addons/unicode-scripts":7,"./xregexp":9}],9:[function(n,m){function b(a){var c=!0;try{c=!!RegExp("",a)}catch(g){c=!1}return c}
function q(a,c,g,l,x){var z;a.xregexp={captureNames:c};if(x)return a;if(a.__proto__)a.__proto__=p.prototype;else for(z in p.prototype)a[z]=p.prototype[z];a.xregexp.source=g;a.xregexp.flags=l?l.split("").sort().join(""):l;return a}
function v(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function t(a,c){if(!p.isRegExp(a))throw new TypeError("Type RegExp expected");var g=a.xregexp||{},l=P?a.flags:E.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],x="",z="",w=null,y=null;c=c||{};c.removeG&&(z+="g");c.removeY&&(z+="y");z&&(l=E.replace.call(l,new RegExp("["+z+"]+","g"),""));c.addG&&(x+="g");c.addY&&(x+="y");x&&(l=v(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?v(g.flags+x):g.flags));return a=q(new RegExp(c.source||a.source,l),a.xregexp&&a.xregexp.captureNames?
g.captureNames.slice(0):null,w,y,c.isInternalOnly)}
function A(a){return parseInt(a,16)}
function d(a,c,g){(c=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(g=g.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],c=E.test.call(new RegExp("^(?:"+g.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return c?"":"(?:)"}
function f(a){return parseInt(a,10).toString(16)}
function h(a,c){var g=a.length,l;for(l=0;l<g;++l)if(a[l]===c)return l;return-1}
function k(a,c){return T.call(a)==="[object "+c+"]"}
function r(a){for(;a.length<4;)a="0"+a;return a}
function u(a,c){var g;if(v(c)!==c)throw new SyntaxError("Invalid duplicate regex flag "+c);a=E.replace.call(a,/^\(\?([\w$]+)\)/,function(l,x){if(E.test.call(/[gy]/,x))throw new SyntaxError("Cannot use flag g or y in mode modifier "+l);c=v(c+x);return""});
for(g=0;g<c.length;++g)if(!Z[c.charAt(g)])throw new SyntaxError("Unknown regex flag "+c.charAt(g));return{pattern:a,flags:c}}
function B(a){var c={};return k(a,"String")?(p.forEach(a,/[^\s,]+/,function(g){c[g]=!0}),c):a}
function C(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function D(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function p(a,c){if(p.isRegExp(a)){if(c!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return t(a)}a=a===void 0?"":String(a);c=c===void 0?"":String(c);p.isInstalled("astral")&&c.indexOf("A")===-1&&(c+="A");N[a]||(N[a]={});if(!N[a][c]){var g={hasNamedCapture:!1,captureNames:[]},l="default",x="",z=0,w=u(a,c),y=w.pattern;for(w=w.flags;z<y.length;){do{for(var K,H=y,V=w,W=z,X=l,Y=g,S=Q.length,ba=H.charAt(W),aa=null;S--;){var G=Q[S];if(!(G.leadChar&&G.leadChar!==ba||G.scope!==
X&&G.scope!=="all"||G.flag&&V.indexOf(G.flag)===-1)&&(K=p.exec(H,G.regex,W,"sticky"))){aa={matchLength:K[0].length,output:G.handler.call(Y,K,X,V),reparse:G.reparse};break}}(G=aa)&&G.reparse&&(y=y.slice(0,z)+G.output+y.slice(z+G.matchLength))}while(G&&G.reparse);G?(x+=G.output,z+=G.matchLength||1):(G=p.exec(y,R[l],z,"sticky")[0],x+=G,z+=G.length,G==="["&&l==="default"?l="class":G==="]"&&l==="class"&&(l="default"))}N[a][c]={pattern:E.replace.call(x,/(?:\(\?:\))+/g,"(?:)"),flags:E.replace.call(w,/[^gimuy]+/g,
""),captures:g.hasNamedCapture?g.captureNames:null}}g=N[a][c];return q(new RegExp(g.pattern,g.flags),g.captures,a,c)}
var I={astral:!1,natives:!1},E={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},F={},J={},N={},Q=[],R={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},L=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
M=E.exec.call(/()??/,"")[1]===void 0,P=/x/.flags!==void 0,T={}.toString,U=b("u"),O=b("y"),Z={g:!0,i:!0,m:!0,u:U,y:O};p.prototype=RegExp();p.version="3.2.0";p._clipDuplicates=v;p._hasNativeFlag=b;p._dec=A;p._hex=f;p._pad4=r;p.addToken=function(a,c,g){g=g||{};var l=g.optionalFlags,x;g.flag&&C(g.flag);if(l)for(l=E.split.call(l,""),x=0;x<l.length;++x)C(l[x]);Q.push({regex:t(a,{addG:!0,addY:O,isInternalOnly:!0}),handler:c,scope:g.scope||"default",flag:g.flag,reparse:g.reparse,leadChar:g.leadChar});p.cache.flush("patterns")};
p.cache=function(a,c){J[a]||(J[a]={});return J[a][c]||(J[a][c]=p(a,c))};
p.cache.flush=function(a){a==="patterns"?N={}:J={}};
p.escape=function(a){return E.replace.call(D(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
p.exec=function(a,c,g,l){var x="g",z,w=!1;(z=O&&!!(l||c.sticky&&l!==!1))?x+="y":l&&(w=!0,x+="FakeY");c.xregexp=c.xregexp||{};l=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!0,addY:z,source:w?c.source+"|()":void 0,removeY:l===!1,isInternalOnly:!0}));g=g||0;l.lastIndex=g;a=F.exec.call(l,a);w&&a&&a.pop()===""&&(a=null);c.global&&(c.lastIndex=a?l.lastIndex:0);return a};
p.forEach=function(a,c,g){for(var l=0,x=-1;l=p.exec(a,c,l);)g(l,++x,a,c),l=l.index+(l[0].length||1)};
p.install=function(a){a=B(a);!I.astral&&a.astral&&(I.astral=!0);!I.natives&&a.natives&&(RegExp.prototype.exec=F.exec,RegExp.prototype.test=F.test,String.prototype.match=F.match,String.prototype.replace=F.replace,String.prototype.split=F.split,I.natives=!0)};
p.isInstalled=function(a){return!!I[a]};
p.isRegExp=function(a){return T.call(a)==="[object RegExp]"};
p.match=function(a,c,g){var l=c.global&&g!=="one"||g==="all",x=(l?"g":"")+(c.sticky?"y":"")||"noGY";c.xregexp=c.xregexp||{};x=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!!l,removeG:g==="one",isInternalOnly:!0}));a=E.match.call(D(a),x);c.global&&(c.lastIndex=g==="one"&&a?a.index+a[0].length:0);return l?a||[]:a&&a[0]};
p.replace=function(a,c,g,l){var x=p.isRegExp(c),z=c.global&&l!=="one"||l==="all",w=(z?"g":"")+(c.sticky?"y":"")||"noGY",y=c;x?(c.xregexp=c.xregexp||{},y=c.xregexp[w]||(c.xregexp[w]=t(c,{addG:!!z,removeG:l==="one",isInternalOnly:!0}))):z&&(y=new RegExp(p.escape(String(c)),"g"));a=F.replace.call(D(a),y,g);x&&c.global&&(c.lastIndex=0);return a};
p.split=function(a,c,g){return F.split.call(D(a),c,g)};
p.test=function(a,c,g,l){return!!p.exec(a,c,g,l)};
p.union=function(a,c,g){function l(W,X,Y){var S=V[z-H];if(X){if(++z,S)return"(?<"+S+">"}else if(Y)return"\\"+(+Y+H);return W}
g=g||{};var x=g.conjunction||"or",z=0;if(!k(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var w=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;g=[];for(var y,K=0;K<a.length;++K)if(y=a[K],p.isRegExp(y)){var H=z;var V=y.xregexp&&y.xregexp.captureNames||[];g.push(E.replace.call(p(y.source).source,w,l))}else g.push(p.escape(y));a=x==="none"?"":"|";return p(g.join(a),c)};
F.exec=function(a){var c=this.lastIndex,g=E.exec.apply(this,arguments),l;if(g){if(!M&&g.length>1&&h(g,"")>-1){var x=t(this,{removeG:!0,isInternalOnly:!0});E.replace.call(String(a).slice(g.index),x,function(){var z=arguments.length,w;for(w=1;w<z-2;++w)arguments[w]===void 0&&(g[w]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(l=1;l<g.length;++l)(x=this.xregexp.captureNames[l-1])&&(g[x]=g[l]);
this.global&&!g[0].length&&this.lastIndex>g.index&&(this.lastIndex=g.index)}this.global||(this.lastIndex=c);return g};
F.test=function(a){return!!F.exec.call(this,a)};
F.match=function(a){if(!p.isRegExp(a))a=new RegExp(a);else if(a.global){var c=E.match.apply(this,arguments);a.lastIndex=0;return c}return F.exec.call(a,D(this))};
F.replace=function(a,c){var g=p.isRegExp(a);if(g){if(a.xregexp)var l=a.xregexp.captureNames;var x=a.lastIndex}else a+="";var z=k(c,"Function")?E.replace.call(String(this),a,function(){var w=arguments,y;if(l)for(w[0]=new String(w[0]),y=0;y<l.length;++y)l[y]&&(w[0][l[y]]=w[y+1]);g&&a.global&&(a.lastIndex=w[w.length-2]+w[0].length);return c.apply(void 0,w)}):E.replace.call(this==null?this:String(this),a,function(){var w=arguments;
return E.replace.call(String(c),L,function(y,K,H){if(K){H=+K;if(H<=w.length-3)return w[H]||"";H=l?h(l,K):-1;if(H<0)throw new SyntaxError("Backreference to undefined group "+y);return w[H+1]||""}if(H==="$")return"$";if(H==="&"||+H===0)return w[0];if(H==="`")return w[w.length-1].slice(0,w[w.length-2]);if(H==="'")return w[w.length-1].slice(w[w.length-2]+w[0].length);H=+H;if(!isNaN(H)){if(H>w.length-3)throw new SyntaxError("Backreference to undefined group "+y);return w[H]||""}throw new SyntaxError("Invalid token "+
y);})});
g&&(a.lastIndex=a.global?0:x);return z};
F.split=function(a,c){if(!p.isRegExp(a))return E.split.apply(this,arguments);var g=String(this),l=[],x=a.lastIndex,z=0,w;c=(c===void 0?-1:c)>>>0;p.forEach(g,a,function(y){y.index+y[0].length>z&&(l.push(g.slice(z,y.index)),y.length>1&&y.index<g.length&&Array.prototype.push.apply(l,y.slice(1)),w=y[0].length,z=y.index+w)});
z===g.length?(!E.test.call(a,"")||w)&&l.push(""):l.push(g.slice(z));a.lastIndex=x;return l.length>c?l.slice(0,c):l};
p.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,c){if(a[1]==="B"&&c==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});p.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,c,g){c=A(a[1]);if(c>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(c<=65535)return"\\u"+r(f(c));if(U&&g.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});p.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
p.addToken(/\(\?#[^)]*\)/,d,{leadChar:"("});p.addToken(/\s+|#[^\n]*\n?/,d,{flag:"x"});p.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});p.addToken(/\\k<([\w$]+)>/,function(a){var c=isNaN(a[1])?h(this.captureNames,a[1])+1:+a[1],g=a.index+a[0].length;if(!c||c>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+c+(g===a.input.length||isNaN(a.input.charAt(g))?"":"(?:)")},{leadChar:"\\"});
p.addToken(/\\(\d+)/,function(a,c){if(!(c==="default"&&/^[1-9]/.test(a[1])&&+a[1]<=this.captureNames.length)&&a[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+a[0]);return a[0]},{scope:"all",
leadChar:"\\"});p.addToken(/\(\?P?<([\w$]+)>/,function(a){if(!isNaN(a[1]))throw new SyntaxError("Cannot use integer as capture name "+a[0]);if(a[1]==="length"||a[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+a[0]);if(h(this.captureNames,a[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+a[0]);this.captureNames.push(a[1]);this.hasNamedCapture=!0;return"("},{leadChar:"("});
p.addToken(/\((?!\?)/,function(a,c,g){if(g.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});m.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var QFj=window.XRegExp;var Yc4=-1,Tnz=function(z){addEventListener("pageshow",function(l){l.persisted&&(Yc4=l.timeStamp,z(l))},!0)};var Scn=function(z,l,I){var b=cQA,v,M;return function(x){if(l.value>=0&&(x||I)){var g;if((M=l.value-((g=v)!=null?g:0))||v===void 0)v=l.value,l.delta=M,x=l.value,l.rating=x>b[1]?"poor":x>b[0]?"needs-improvement":"good",z(l)}}};var dan=function(z){requestAnimationFrame(function(){return requestAnimationFrame(function(){return z()})})};var oMA=function(){var z=performance.getEntriesByType("navigation")[0];if(z&&z.responseStart>0&&z.responseStart<performance.now())return z};var P7j=function(){var z,l;return(l=(z=oMA())==null?void 0:z.activationStart)!=null?l:0};var hL_=function(){var z=z===void 0?-1:z;var l=oMA(),I="navigate";Yc4>=0?I="back-forward-cache":l&&(document.prerendering||P7j()>0?I="prerender":document.wasDiscarded?I="restore":l.type&&(I=l.type.replace(/_/g,"-")));return{name:"LCP",value:z,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:I}};var a9f=new WeakMap;var sFI=function(z){var l=l===void 0?{}:l;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var I=new PerformanceObserver(function(b){Promise.resolve().then(function(){z(b.getEntries())})});
I.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},l));return I}}catch(b){}};var rQM=function(z){var l=!1;return function(){l||(z(),l=!0)}};var vT=-1,$aw=function(z){document.visibilityState==="hidden"&&vT>-1&&(vT=z.type==="visibilitychange"?z.timeStamp:0,removeEventListener("visibilitychange",$aw,!0),removeEventListener("prerenderingchange",$aw,!0))},eLA=function(){addEventListener("visibilitychange",$aw,!0);
addEventListener("prerenderingchange",$aw,!0)},wt_=function(){if(vT<0){var z=P7j(),l,I;
vT=(I=document.prerendering?void 0:(l=globalThis.performance.getEntriesByType("visibility-state").filter(function(b){return b.name==="hidden"&&b.startTime>z})[0])==null?void 0:l.startTime)!=null?I:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
eLA();Tnz(function(){setTimeout(function(){vT=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;eLA()})})}return{get firstHiddenTime(){return vT}}};var AQp=function(z){document.prerendering?addEventListener("prerenderingchange",function(){return z()},!0):z()};var Wnj=function(z){var l=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?z():(z=rQM(z),document.addEventListener("visibilitychange",z,{once:!0}),l(function(){z();document.removeEventListener("visibilitychange",z)}))};var UR7=function(){};
UR7.prototype._processEntry=function(z){var l;(l=this._onBeforeProcessingEntry)==null||l.call(this,z)};var cQA=[2500,4E3],DcS=function(z){var l=l===void 0?{}:l;AQp(function(){var I=wt_(),b=hL_(),v=V7Q(l),M=function(H){l.reportAllChanges||(H=H.slice(-1));H=_.D(H);for(var y=H.next();!y.done;y=H.next())y=y.value,v._processEntry(y),y.startTime<I.firstHiddenTime&&(b.value=Math.max(y.startTime-P7j(),0),b.entries=[y],g())},x=sFI(M);
if(x){var g=Scn(z,b,l.reportAllChanges);for(var G=rQM(function(){M(x.takeRecords());x.disconnect();g(!0)}),u=_.D(["keydown",
"click","visibilitychange"]),Z=u.next();!Z.done;Z=u.next())addEventListener(Z.value,function(){return Wnj(G)},{capture:!0,
once:!0});Tnz(function(H){b=hL_();g=Scn(z,b,l.reportAllChanges);dan(function(){b.value=performance.now()-H.timeStamp;g(!0)})})}})};var nMj;var Lnz;_.n=function(){return Lnz!==void 0?Lnz:Lnz=document.createElement("template")};
document.head.appendChild(_.n().content);var UaA;_.hP({_template:function(){if(UaA!==void 0)return UaA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;nMj===void 0&&(nMj=document.createElement("template"));var b=nMj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return UaA=z},
is:"tp-yt-app-toolbar"});var a6j;var V2u;_.pw=function(){};
_.pw=_.hP({_template:function(){if(V2u!==void 0)return V2u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;a6j===void 0&&(a6j=document.createElement("template"));var b=a6j;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return V2u=z},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.pw.instance||(_.pw.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(z){this._text===z&&(z+="\u00a0");this._text="";this.async(function(){this._text=z},this.timeout)},
_onIronAnnounce:function(z){z.detail&&z.detail.text&&this.announce(z.detail.text)}});
_.pw.instance=null;_.pw.requestAvailability=function(){_.pw.instance||(_.pw.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.pw.instance):document.addEventListener("load",function(){document.body.appendChild(_.pw.instance)})};var jFI;var JQ4;/*

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var Dt,pJ_,DN4;Dt=Element.prototype;pJ_=Dt.matches||Dt.matchesSelector||Dt.mozMatchesSelector||Dt.msMatchesSelector||Dt.oMatchesSelector||Dt.webkitMatchesSelector;DN4=function(){};
_.OIu=function(z){var l=xNn,I=[];return l._collectTabbableNodes(z,I)?l._sortByTabIndex(I):I};
_.p=DN4.prototype;_.p._normalizedTabIndex=function(z){return(pJ_.call(z,"input, select, textarea, button, object")?pJ_.call(z,":not([disabled])"):pJ_.call(z,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(z=z.getAttribute("tabindex")||0,Number(z)):-1};
_.p._collectTabbableNodes=function(z,l){if(z.nodeType!==Node.ELEMENT_NODE||!this._isVisible(z))return!1;var I=this._normalizedTabIndex(z),b=I>0;I>=0&&l.push(z);if(z.localName==="content"||z.localName==="slot")I=_.YO(z).getDistributedNodes();else{var v;I=((v=_.YO(z).shadowRoot)!=null?v:_.YO(z.root||z)).children}for(z=0;z<I.length;z++)b=this._collectTabbableNodes(I[z],l)||b;return b};
_.p._isVisible=function(z){var l=z.style;return l.visibility!=="hidden"&&l.display!=="none"?(l=window.getComputedStyle(z),l.visibility!=="hidden"&&l.display!=="none"):!1};
_.p._sortByTabIndex=function(z){var l=z.length;if(l<2)return z;var I=Math.ceil(l/2);l=this._sortByTabIndex(z.slice(0,I));z=this._sortByTabIndex(z.slice(I));return this._mergeSortByTabIndex(l,z)};
_.p._mergeSortByTabIndex=function(z,l){for(var I=[];z.length>0&&l.length>0;)this._hasLowerTabOrder(z[0],l[0])?I.push(l.shift()):I.push(z.shift());return I.concat(z,l)};
_.p._hasLowerTabOrder=function(z,l){z=Math.max(z.tabIndex,0);l=Math.max(l.tabIndex,0);return z===0||l===0?l>z:z>l};
var xNn=new DN4;var g14;var GY4;_.hP({_template:function(){if(GY4!==void 0)return GY4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;g14===void 0&&(g14=document.createElement("template"));var b=g14;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return GY4=z},
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&&_.YO(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.YO(this.parentNode).removeChild(this)},
_onTransitionend:function(z){z&&z.target===this&&this.complete()},
_openedChanged:function(z){z?this.prepare():(z=window.getComputedStyle(this),z.transitionDuration!=="0s"&&z.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 xK=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;oK(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)};
xK.prototype._bringOverlayAtIndexToFront=function(z){var l=this._overlays[z];if(l){var I=this._overlays.length-1,b=this._overlays[I];b&&this._shouldBeBehindOverlay(l,b)&&I--;if(!(z>=I)){b=Math.max(this._getZ(_.Nxu(this)),this._minimumZ);for(this._getZ(l)<=b&&this._applyOverlayZ(l,b);z<I;)this._overlays[z]=this._overlays[z+1],z++;this._overlays[I]=l}}};
xK.prototype.addOverlay=function(z){var l=this._overlays.indexOf(z);if(l>=0)this._bringOverlayAtIndexToFront(l);else{l=this._overlays.length;var I=this._overlays[l-1],b=Math.max(this._getZ(I),this._minimumZ),v=this._getZ(z);I&&this._shouldBeBehindOverlay(z,I)&&(this._applyOverlayZ(I,b),l--,b=Math.max(this._getZ(this._overlays[l-1]),this._minimumZ));v<=b&&this._applyOverlayZ(z,b);this._overlays.splice(l,0,z)}this.trackBackdrop()};
xK.prototype.removeOverlay=function(z){z=this._overlays.indexOf(z);z!==-1&&(this._overlays.splice(z,1),this.trackBackdrop())};
_.Nxu=function(z){return z._overlays[z._overlays.length-1]};
_.p=xK.prototype;_.p.trackBackdrop=function(){var z=this._overlayWithBackdrop();if(z||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(z)-1,this.backdropElement.opened=!!z,this.backdropElement.prepare()};
_.p._overlayWithBackdrop=function(){for(var z=this._overlays.length-1;z>=0;z--)if(this._overlays[z].withBackdrop)return this._overlays[z]};
_.p._getZ=function(z){var l=this._minimumZ;if(z){var I,b,v=Number(((I=z.hostElement)!=null?I:z).style.zIndex||window.getComputedStyle((b=z.hostElement)!=null?b:z).zIndex);v===v&&(l=v)}return l};
_.p._setZ=function(z,l){var I;((I=z.hostElement)!=null?I:z).style.zIndex=l};
_.p._applyOverlayZ=function(z,l){this._setZ(z,l+2)};
_.p._overlayInPath=function(z){z=z||[];for(var l=0;l<z.length;l++){var I=void 0;if(((I=z[l].polymerController)!=null?I:z[l])._manager===this)return z[l]}};
_.p._onCaptureClick=function(z){var l=this._overlays.length-1;if(l!==-1)for(var I=_.YO(z).path,b,v;(b=this._overlays[l])&&this._overlayInPath(I)!==((v=b.hostElement)!=null?v:b);)if(b._onCaptureClick(z),b.allowClickThrough)l--;else break};
_.p._onCaptureFocus=function(z){var l=_.Nxu(this);l&&l._onCaptureFocus(z)};
_.p._onCaptureKeyDown=function(z){var l=_.Nxu(this);l&&(_.rB.keyboardEventMatchesKeys(z,"esc")?l._onCaptureEsc(z):_.rB.keyboardEventMatchesKeys(z,"tab")&&l._onCaptureTab(z))};
_.p._shouldBeBehindOverlay=function(z,l){return!z.alwaysOnTop&&l.alwaysOnTop&&!l.contains(z)};
_.vP.Object.defineProperties(xK.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 z=document.activeElement;z&&z instanceof Element!==!1||(z=document.body);for(;z.root&&_.YO(z.root).activeElement;)z=_.YO(z.root).activeElement;return z}}});
_.O4=new xK;var jlu=0,JJS=0,zJk=null,l0t=[],TR=["wheel","mousewheel","DOMMouseScroll"],I0x;_.C("web_no_lock_on_touchstart_killswitch")&&(TR.push("touchstart"),TR.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;_.gL={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:_.O4},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var z;return this._focusedChild||_.YO((z=this.hostElement)!=null?z:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var z;return _.OIu((z=this.hostElement)!=null?z: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 z;this._observer=_.YO((z=this.hostElement)!=null?z:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var z;_.YO((z=this.hostElement)!=null?z:this).unobserveNodes(this._observer)}this._observer=null;for(var l in this.__rafs)this.__rafs[l]!==null&&cancelAnimationFrame(this.__rafs[l]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(z){this.fire("iron-overlay-canceled",z,{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 z;((z=this.hostElement)!=null?z:this).style.outline="none";var l;((l=this.hostElement)!=null?l:this).style.display="none"}},
_openedChanged:function(z){if(z){var l;((l=this.hostElement)!=null?l:this).removeAttribute("aria-hidden")}else{var I;((I=this.hostElement)!=null?I: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 z;if(this.withBackdrop&&!((z=this.hostElement)!=null?z:this).hasAttribute("tabindex")){var l;((l=this.hostElement)!=null?l:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var I;((I=this.hostElement)!=null?I: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 z;((z=this.hostElement)!=null?z:this).style.display="none";var l;((l=this.hostElement)!=null?l:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var z,l;((z=this.hostElement)!=null?z:this).style.transition=((l=this.hostElement)!=null?l:this).style.webkitTransition="none";var I,b;((I=this.hostElement)!=null?I:this).style.transform=((b=this.hostElement)!=null?b:this).style.webkitTransform="none";var v;((v=this.hostElement)!=null?v:this).style.display=""},
_finishPositioning:function(){var z;((z=this.hostElement)!=null?z:this).style.display="none";this.scrollTop=this.scrollTop;var l,I;((l=this.hostElement)!=null?l:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var b,v;((b=this.hostElement)!=null?b:this).style.transform=((v=this.hostElement)!=null?v:this).style.webkitTransform="";var M;((M=this.hostElement)!=null?M:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var z=this._manager.deepActiveElement,l;if(!(l=z===document.body))a:{for(;z;z=z.assignedSlot||z.parentNode||z.host)if(z===this){l=!0;break a}l=!1}l&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(z){this.noCancelOnOutsideClick||this.cancel(z)},
_onCaptureFocus:function(z){if(this.withBackdrop){var l=_.YO(z).path;l.indexOf(this)===-1?(z.stopPropagation(),this._applyFocus()):this._focusedChild=l[0]}},
_onCaptureEsc:function(z){this.noCancelOnEscKey||this.cancel(z)},
_onCaptureTab:function(z){if(this.withBackdrop){this.__ensureFirstLastFocusables();var l=z.shiftKey,I=l?this.__firstFocusableNode:this.__lastFocusableNode;l=l?this.__lastFocusableNode:this.__firstFocusableNode;if(I===l)I=!0;else{var b=this._manager.deepActiveElement;I=b===I||b===this}I&&(z.preventDefault(),this._focusedChild=l,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var z=this._focusableNodes;this.__firstFocusableNode=z[0];this.__lastFocusableNode=z[z.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(z,l){var I=this.__rafs;I[z]!==null&&cancelAnimationFrame(I[z]);I[z]=requestAnimationFrame(function(){I[z]=null;l.call(this)}.bind(this))},
__updateScrollObservers:function(z,l,I){z&&l&&this.__isValidScrollAction(I)?(I==="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),I0x=_._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()):(z=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),z!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(z,1),I0x=_._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(Ae)for(var z=this;z;)z.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&z.host&&this.__rootNodes.push(z),z=z.host||z.assignedSlot||z.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(l){l.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(z){z.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(z){return z==="lock"||z==="refit"||z==="cancel"},
__onCaptureScroll:function(z){if(!(this.__isAnimating||_.YO(z).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(z)}},
__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)}};
_.GJ=[MKu,_.ap,_.gL];_.hP({_template:function(){if(bIM!==void 0)return bIM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Iqu===void 0&&(Iqu=document.createElement("template"));var b=Iqu;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return bIM=z},
is:"tp-yt-iron-dropdown",behaviors:[_.$b,_.rB,_.GJ,nUj],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 z=_.YO(this.$.content).getDistributedNodes(),l=0,I=z.length;l<I;l++)if(z[l].nodeType===Node.ELEMENT_NODE)return z[l]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.gL._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.gL._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.gL._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var z=this.containedElement,l=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<l.length;I++)l[I].node=z;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(z){this._readied&&(z?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var z=this.focusTarget||this.containedElement;z&&this.opened&&!this.noAutoFocus?z.focus():_.gL._applyFocus.apply(this,arguments)}});var E1u;var uIA;/*

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 ZI_=new _.Wo({type:"iconset"});
_.hP({_template:function(){if(uIA!==void 0)return uIA;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;E1u===void 0&&(E1u=document.createElement("template"));
var b=E1u;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return uIA=z},
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(z){z=(z||"").split(":");this._iconName=z.pop();this._iconsetName=z.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&&_.YO(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=ZI_.byKey(this._iconsetName)){var z=this._iconset.applyIcon(this,this._iconName,this.theme);z&&z.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,_.YO(this.root).appendChild(this._img)}});var HIA;var yfn;_.hP({_template:function(){if(yfn!==void 0)return yfn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;HIA===void 0&&(HIA=document.createElement("template"));var b=HIA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return yfn=z},
is:"tp-yt-iron-input",behaviors:[_.LR],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(){_.pw.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.YO(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.YO(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 z=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":z=/[0-9.,e-]/}return z},_bindValueChanged:function(z,l){l&&(z===void 0?l.value=null:z!==l.value&&(this.inputElement.value=z),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:z}))},
_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(z){var l=z.keyCode==19||z.keyCode==20||z.keyCode==45||z.keyCode==46||z.keyCode==144||z.keyCode==145||z.keyCode>32&&z.keyCode<41||z.keyCode>111&&z.keyCode<124;return!(z.keyCode==8||z.keyCode==9||z.keyCode==13||z.keyCode==27)&&!(z.charCode==0&&l)},
_onKeypress:function(z){if(this.allowedPattern||this.inputElement.type==="number"){var l=this._patternRegExp;if(l&&!(z.metaKey||z.ctrlKey||z.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(z.charCode);this._isPrintable(z)&&!l.test(I)&&(z.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var z=this._patternRegExp;if(!z)return!0;for(var l=0;l<this.inputElement.value.length;l++)if(!z.test(this.inputElement.value[l]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var z=this.inputElement.checkValidity();z&&(this.required&&this.bindValue===""?z=!1:this.hasValidator()&&(z=_.LR.validate.call(this,this.bindValue)));this.invalid=!z;this.fire("iron-input-validate");return z},
_announceInvalidCharacter:function(z){this.fire("iron-announce",{text:z})},
_computeValue:function(z){return z}});var fqj;var C9u;var kYu=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),RVA=kYu&&kYu[1]>=8;
_.hP({_template:function(){if(C9u!==void 0)return C9u;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;fqj===void 0&&(fqj=document.createElement("template"));var b=fqj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return C9u=z},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[FLx,_.ap,_.WEz,FaI],_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 _.YO(_.YO(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var z=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,z-this._physicalCount)},set _virtualStart(z){z=this._clamp(z,0,this._maxVirtualStart);this.grid&&(z-=z%this._itemsPerRow);this._virtualStartVal=z},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(z){z%=this._physicalCount;z<0&&(z=this._physicalCount+z);this.grid&&(z-=z%this._itemsPerRow);this._physicalStartVal=z},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(z){this._physicalCountVal=z},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 z=this._firstVisibleIndexVal;if(z==null){var l=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
z=this._iterateItems(function(I,b){l+=this._getPhysicalSizeIncrement(I);if(l>this._scrollPosition)return this.grid?b-b%this._itemsPerRow:b;if(this.grid&&this._virtualCount-1===b)return b-b%this._itemsPerRow})||0}return z},
get lastVisibleIndex(){var z=this._lastVisibleIndexVal;if(z==null){if(this.grid)z=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var l=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,b){l<this._scrollBottom&&(z=b);l+=this._getPhysicalSizeIncrement(I)})}this._lastVisibleIndexVal=z}return z},
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,_.oe);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(z){this.style.webkitOverflowScrolling=z===this?"touch":"";this.style.overflowY=z===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.oe)},
updateViewportBoundaries:function(){var z=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(z["padding-top"],10);this._isRTL=z.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var z=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),l=z-this._scrollPosition,I=l>=0;this._scrollPosition=z;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(l)>this._physicalSize&&this._physicalSize>0?(l-=this._scrollOffset,I=Math.round(l/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=I,this._physicalStart+=I,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(z=this._getReusables(I),I?(this._physicalTop=z.physicalTop,this._virtualStart+=z.indexes.length,this._physicalStart+=z.indexes.length):(this._virtualStart=this._virtualStart-z.indexes.length,this._physicalStart=this._physicalStart-z.indexes.length),this._update(z.indexes,I?null:z.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),$F))},
_getReusables:function(z){var l=[],I=this._hiddenContentSize*this._ratio,b=this._virtualStart,v=this._virtualEnd,M=this._physicalCount,x=this._physicalTop+this._scrollOffset;var g=this._physicalBottom+this._scrollOffset;var G=this._scrollPosition,u=this._scrollBottom;if(z){var Z=this._physicalStart;g=G-x}else Z=this._physicalEnd,g-=u;for(;;){var H=this._getPhysicalSizeIncrement(Z);g-=H;if(l.length>=M||g<=I)break;if(z){if(v+l.length+1>=this._virtualCount)break;if(x+H>=G-this._scrollOffset)break;l.push(Z);
x+=H;Z=(Z+1)%M}else{if(b-l.length<=0)break;if(x+this._physicalSize-H<=u)break;l.push(Z);x-=H;Z=Z===0?M-1:Z-1}}return{indexes:l,physicalTop:x-this._scrollOffset}},
_update:function(z,l){if(!(z&&z.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(z);this._updateMetrics(z);if(l)for(;l.length;)z=l.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(z);this._positionItems();this._updateScrollerSize()}},
_createPool:function(z){this._ensureTemplatized();var l,I=Array(z);for(l=0;l<z;l++){var b=this.stamp(null);I[l]=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}return I},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(z){z=this._clamp(this._physicalCount+z,3,this._virtualCount-this._virtualStart);z=this._convertIndexToCompleteRow(z);if(this.grid){var l=z%this._itemsPerRow;l&&z-l<=this._physicalCount&&(z+=this._itemsPerRow);z-=l}z-=this._physicalCount;l=Math.round(this._physicalCount*.5);if(!(z<0)){if(z>0){l=window.performance.now();[].push.apply(this._physicalItems,this._createPool(z));for(var I=0;I<z;I++)this._physicalSizes.push(0);this._physicalCount+=z;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=z);this._update();this._templateCost=(window.performance.now()-l)/z;l=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||l===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,l)),GZu):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,l),$F))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var z=this._getReusables(!0);this._physicalTop=z.physicalTop;this._virtualStart+=z.indexes.length;this._physicalStart+=z.indexes.length;this._update(z.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 z={__key__:!0};z[this.as]=!0;z[this.indexAs]=!0;z[this.selectedAs]=!0;z.tabIndex=!0;this._instanceProps=z;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(z,l){typeof l!=="undefined"&&(this.notifyResize(),_.Y4(),z&&this._updateGridMetrics())},
_itemsChanged:function(z){if(z.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,
_.oe);else if(z.path==="items.splices"){this._adjustVirtualIndex(z.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(z.value.indexSplices.some(function(I){return I.addedCount>0||I.removed.length>0})){var l=this._getActiveElement();
this.contains(l)&&l.blur()}z=z.value.indexSplices.some(function(I){return I.index+I.addedCount>=this._virtualStart&&I.index<=this._virtualEnd},this);
this._isClientFull()&&!z||this._debounce("_render",this._render,_.oe)}else z.path!=="items.length"&&this._forwardItemPath(z.path,z.value)},
_forwardItemPath:function(z,l){z=z.slice(6);var I=z.indexOf(".");I===-1&&(I=z.length);var b,v=this.modelForElement(this._offscreenFocusedItem),M=parseInt(z.substring(0,I),10);if(b=this._isIndexRendered(M)){var x=this._getPhysicalIndex(M);var g=this.modelForElement(this._physicalItems[x])}else v&&(g=v);g&&g[this.indexAs]===M&&(z=z.substring(I+1),z=this.as+(z?"."+z:""),g._setPendingPropertyOrPath(z,l,!1,!0),g._flushProperties&&g._flushProperties(),b&&(this._updateMetrics([x]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(z){z.forEach(function(l){l.removed.forEach(this._removeItem,this);l.index<this._virtualStart&&(l=Math.max(l.addedCount-l.removed.length,l.index-this._virtualStart),this._virtualStart+=l,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=l))},this)},
_removeItem:function(z){this.$.selector.deselect(z);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===z&&this._removeFocusedItem()},
_iterateItems:function(z,l){var I,b;if(arguments.length===2&&l)for(b=0;b<l.length;b++){var v=l[b];var M=this._computeVidx(v);if((I=z.call(this,v,M))!=null)return I}else{v=this._physicalStart;for(M=this._virtualStart;v<this._physicalCount;v++,M++)if((I=z.call(this,v,M))!=null)return I;for(v=0;v<this._physicalStart;v++,M++)if((I=z.call(this,v,M))!=null)return I}},
_computeVidx:function(z){return z>=this._physicalStart?this._virtualStart+(z-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+z},
_assignModels:function(z){this._iterateItems(function(l,I){var b=this._physicalItems[l],v=this.items&&this.items[I];if(v!=null){var M=this.modelForElement(b);M.__key__=null;this._forwardProperty(M,this.as,v);this._forwardProperty(M,this.selectedAs,this.$.selector.isSelected(v));this._forwardProperty(M,this.indexAs,I);this._forwardProperty(M,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[M.__key__]=l;M._flushProperties&&M._flushProperties(!0);b.removeAttribute("hidden")}else b.setAttribute("hidden",
"")},z)},
_updateMetrics:function(z){_.Y4();var l=0,I=0,b=this._physicalAverageCount,v=this._physicalAverage;this._iterateItems(function(M){I+=this._physicalSizes[M];this._physicalSizes[M]=this._physicalItems[M].offsetHeight;l+=this._physicalSizes[M];this._physicalAverageCount+=this._physicalSizes[M]?1:0},z);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(I=this._itemsPerRow===1?I:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+l-I,this._itemsPerRow=1);this._physicalAverageCount!==b&&(this._physicalAverage=Math.round((v*b+l)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var z=this._physicalTop;if(this.grid){var l=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,b){var v=Math.floor(b%this._itemsPerRow*this._itemWidth+l);this._isRTL&&(v*=-1);this.translate3d(v+"px",z+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(b)&&(z+=this._rowHeight)})}else this._iterateItems(function(I){this.translate3d(0,z+"px",0,this._physicalItems[I]);
z+=this._physicalSizes[I]})},
_getPhysicalSizeIncrement:function(z){return this.grid?this._computeVidx(z)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[z]},
_shouldRenderNextRow:function(z){return z%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var z=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(z!==0){this._physicalTop=this._physicalTop-z;var l=this._scrollPosition;!RVA&&l>0&&this._resetScrollPosition(l-z)}},
_resetScrollPosition:function(z){this.scrollTarget&&z>=0&&(this._scrollPosition=this._scrollTop=z)},
_updateScrollerSize:function(z){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((z=(z=(z=z||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(z){return this.scrollToIndex(this.items.indexOf(z))},
scrollToIndex:function(z){if(!(typeof z!=="number"||z<0||z>this.items.length-1)&&(_.Y4(),this._physicalCount!==0)){z=this._clamp(z,0,this._virtualCount-1);if(!this._isIndexRendered(z)||z>=this._maxVirtualStart)this._virtualStart=this.grid?z-this._itemsPerRow*2:z-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var l=this._physicalStart,I=this._virtualStart,b=0,v=this._hiddenContentSize;I<z&&
b<=v;)b+=this._getPhysicalSizeIncrement(l),l=(l+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+b);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)},_.oe)},
selectItem:function(z){return this.selectIndex(this.items.indexOf(z))},
selectIndex:function(z){if(!(z<0||z>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(z)){var l=this.modelForElement(this._physicalItems[this._getPhysicalIndex(z)]);l&&(l[this.selectedAs]=!0);this.updateSizeForIndex(z)}this.$.selector.selectIndex(z)}},
deselectItem:function(z){return this.deselectIndex(this.items.indexOf(z))},
deselectIndex:function(z){z<0||z>=this._virtualCount||(this._isIndexRendered(z)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(z)])[this.selectedAs]=!1,this.updateSizeForIndex(z)),this.$.selector.deselectIndex(z))},
toggleSelectionForItem:function(z){return this.toggleSelectionForIndex(this.items.indexOf(z))},
toggleSelectionForIndex:function(z){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(z):this.$.selector.isSelected(this.items[z]))?this.deselectIndex(z):this.selectIndex(z)},
clearSelection:function(){this._iterateItems(function(z){this.modelForElement(this._physicalItems[z])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(z){(z?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(z){var l=this.modelForElement(z.target);if(l){var I=_.YO(z).path[0];z=this._getActiveElement();var b=this._physicalItems[this._getPhysicalIndex(l[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=l.tabIndex;l.tabIndex=-100;var v=z?z.tabIndex:-1;l.tabIndex=I;z&&b!==z&&b.contains(z)&&v!==-100||this.toggleSelectionForItem(l[this.as])}}},
_multiSelectionChanged:function(z){this.clearSelection();this.$.selector.multi=z},
updateSizeForItem:function(z){return this.updateSizeForIndex(this.items.indexOf(z))},
updateSizeForIndex:function(z){if(!this._isIndexRendered(z))return null;this._updateMetrics([this._getPhysicalIndex(z)]);this._positionItems();return null},
_manageFocus:function(){var z=this._focusedVirtualIndex;z>=0&&z<this._virtualCount?this._isIndexRendered(z)?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(z){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(z/this._itemsPerRow)*this._itemsPerRow:z},
_isIndexRendered:function(z){return z>=this._virtualStart&&z<=this._virtualEnd},
_isIndexVisible:function(z){return z>=this.firstVisibleIndex&&z<=this.lastVisibleIndex},
_getPhysicalIndex:function(z){return(this._physicalStart+(z-this._virtualStart))%this._physicalCount},
focusItem:function(z){this._focusPhysicalItem(z)},
_focusPhysicalItem:function(z){if(!(z<0||z>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(z)||this.scrollToIndex(z);var l=this._physicalItems[this._getPhysicalIndex(z)],I=this.modelForElement(l),b;I.tabIndex=-100;l.tabIndex===-100&&(b=l);b||(b=_.YO(l).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=z;b&&b.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 z=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var l=this.stamp(null);this._focusBackfillItem=l.root.querySelector("*");this._itemsParent.appendChild(l.root)}this._offscreenFocusedItem=this._physicalItems[z];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[z]=this._focusBackfillItem;this._focusedPhysicalIndex=z;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var z=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),l=this._physicalItems[z];if(l){var I=this.modelForElement(l),b=this.modelForElement(this._offscreenFocusedItem);I[this.as]===b[this.as]?(this._focusBackfillItem=l,I.tabIndex=-1,this._physicalItems[z]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(z){z=this.modelForElement(z.target);var l=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,b=this._focusedVirtualIndex;z&&(l===z?this._isIndexVisible(b)||this.scrollToIndex(b):(this._restoreFocusedItem(),l&&(l.tabIndex=-1),z.tabIndex=0,this._focusedVirtualIndex=b=z[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(b),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],I&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(z){switch(z.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&z.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&&z.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(z)}},
_clamp:function(z,l,I){return Math.min(I,Math.max(l,z))},
_debounce:function(z,l,I){this._debouncers=this._debouncers||{};this._debouncers[z]=_.Xb(this._debouncers[z],I,l.bind(this));_.ql(this._debouncers[z])},
_forwardProperty:function(z,l,I){z._setPendingProperty(l,I)},
_forwardHostPropV2:function(z,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(z,l)},this)},
_notifyInstancePropV2:function(z,l,I){OI$(this.as,l)&&(z=z[this.indexAs],l==this.as&&(this.items[z]=I),this.notifyPath(yd(this.as,"items."+z,l),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(z,l,I){l.indexOf(this.as+".")===0&&this.notifyPath("items."+z.__key__+"."+l.slice(this.as.length+1),I)},
_forwardParentPath:function(z,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(z,l)},this)},
_forwardParentProp:function(z,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[z]=l)},this)},
_getActiveElement:function(){var z=this._itemsParent.node.domHost;return _.YO(z?z.root:document).activeElement},
_scrollTargetChanged:function(z,l){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(l)if(z==="document")this.scrollTarget=this._doc;else if(typeof z==="string"){var I,b;this.scrollTarget=(l=(b=(I=this.domHost)==null?void 0:I.polymerController)!=null?b:this.domHost)&&l.$?l.$[z]:_.YO(this.ownerDocument).querySelector("#"+z)}else this._isValidScrollTarget()&&(this._oldScrollTarget=z,this._toggleScrollListener(this._shouldHaveListener,z))}});var mNw;var KO_;var tKI=function(z,l,I,b){z-=I;l-=b;return Math.sqrt(z*z+l*l)},BxM=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
b95.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var vIk=function(z){z.maxRadius=0;z.mouseDownStart=0;z.mouseUpStart=0;z.xStart=0;z.yStart=0;z.xEnd=0;z.yEnd=0;z.containerMetrics=new b95(z.element)};
MGQ.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var z=BxM()-this.mouseDownStart;this.mouseUpStart&&(z-=this.mouseUpElapsed);return z},get mouseUpElapsed(){return this.mouseUpStart?BxM()-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 z=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(z*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-z/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 z=this.radius/(this.containerMetrics.size/2);var l=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+l+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+l+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+z+","+z+")";this.wave.style.transform="scale3d("+z+","+z+",1)"},
downAction:function(z){var l=this.containerMetrics.width/2,I=this.containerMetrics.height/2;vIk(this);this.mouseDownStart=BxM();this.center?(this.xStart=l,this.yStart=I):(this.xStart=z?z.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=z?z.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=l,this.yEnd=I);z=this.containerMetrics;l=this.xStart;I=this.yStart;this.maxRadius=Math.max(tKI(l,I,0,0),tKI(l,I,
z.width,0),tKI(l,I,0,z.height),tKI(l,I,z.width,z.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=BxM())},
remove:function(){_.YO(_.YO(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.hP({_template:function(){if(KO_!==void 0)return KO_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;mNw===void 0&&(mNw=document.createElement("template"));var b=mNw;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return KO_=z},
is:"tp-yt-paper-ripple",behaviors:[_.rB],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(){_.YO(this).parentNode.nodeType==11?this.keyEventTarget=_.YO(this).getOwnerRoot().host:this.keyEventTarget=_.YO(this).parentNode;var z=this.keyEventTarget;this.listen(z,"up","uiUpAction");this.listen(z,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(z){z.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var z=0;z<this.ripples.length;++z)if(!this.ripples[z].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(z){this.noink||this.downAction(z)},
downAction:function(z){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(z),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(z){this.noink||this.upAction(z)},
upAction:function(z){this.holdDown||(this.ripples.forEach(function(l){l.upAction(z)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var z=0;z<this.ripples.length;++z){var l=this.ripples[z];l.isOpacityFullyDecayed&&!l.isRestingAtMaxRadius&&this.removeRipple(l)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var z=new MGQ(this);_.YO(this.$.waves).appendChild(z.waveContainer);this.$.background.style.backgroundColor=z.color;this.ripples.push(z);this._setAnimating(!0);return z},
removeRipple:function(z){var l=this.ripples.indexOf(z);l<0||(this.ripples.splice(l,1),z.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var z;for(z=0;z<this.ripples.length;++z){var l=this.ripples[z];l.draw();this.$.background.style.opacity=l.outerOpacity;l.isOpacityFullyDecayed&&!l.isRestingAtMaxRadius&&this.removeRipple(l)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(z,l){l!==void 0&&(z?this.downAction():this.upAction())}});var Nk={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(z){eF._downHandler.call(this,z);this.pressed&&this.ensureRipple(z)},
ensureRipple:function(z){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var l=this._rippleContainer||this.root;l&&_.YO(l).appendChild(this._ripple);if(z){l=_.YO(this._rippleContainer||this);var I=_.YO(z).rootTarget;l.deepContains(I)&&this._ripple.uiDownAction(z)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(z){this.hasRipple()&&(this._ripple.noink=z)}};var XJp={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 z=1;this.disabled?z=0:this.active||this.pressed?z=4:this.receivedFocusFromKeyboard&&(z=3);this._setElevation(z)},
_computeKeyboardClass:function(z){this.toggleClass("keyboard-focus",z)},
_spaceKeyDownHandler:function(z){eF._spaceKeyDownHandler.call(this,z);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(z){eF._spaceKeyUpHandler.call(this,z);this.hasRipple()&&this._ripple.uiUpAction()}},q2_=[SB0,
_.$b,Nk,XJp];_.iIn={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(z){z&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=z)},
_createRipple:function(){var z=Nk._createRipple();z.id="ink";z.setAttribute("center","");z.classList.add("circle");return z}};
_.FOn=[SB0,_.$b,Nk,_.iIn];_.QU_=[_.FOn,P1u,{_checkedChanged:function(){oUu._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Nk._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Y2A;var Txn;var cf_=function(){};
_.p=cf_.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._buttonStateChanged=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._createRipple=function(){};
_.p._noinkChanged=function(){};
_.p._computeKeyboardClass=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
_.p._setElevation=function(){};
cf_=_.hP({_template:function(){if(Txn!==void 0)return Txn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;Y2A===void 0&&(Y2A=document.createElement("template"));var b=Y2A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return Txn=z},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[q2_],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?XJp._calculateElevation.apply(this):this._setElevation(0)}});var S2_;var dNA;var o1u={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(z){_.C("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(z)},
_onDialogClickWrapped:function(z){_.C("dialog_behavior_no_tap_killswitch")||this._onDialogClick(z)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(z,l){l&&(z?(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(z){if(z){var l;((l=this.hostElement)!=null?l:this).setAttribute("aria-modal","true")}else{var I;((I=this.hostElement)!=null?I:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(z){this.closingReason=this.closingReason||{};this.closingReason.confirmed=z},
_onDialogClick:function(z){for(var l=_.YO(z).path,I=0,b,v=l.indexOf((b=this.hostElement)!=null?b:this);I<v;I++)if(b=l[I],b.hasAttribute&&(b.hasAttribute("dialog-dismiss")||b.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(b.hasAttribute("dialog-confirm"));this.close();z.stopPropagation();break}}},P9M=[_.GJ,
o1u];var hV_=document.createElement("template");_.K(hV_,'<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(hV_.content);var sUA=document.createElement("template");_.K(sUA,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(sUA.content);_.hP({_template:function(){if(dNA!==void 0)return dNA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;S2_===void 0&&(S2_=document.createElement("template"));var b=S2_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return dNA=z},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[P9M,nUj],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 rfu;var $Nu;_.hP({_template:function(){if($Nu!==void 0)return $Nu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;rfu===void 0&&(rfu=document.createElement("template"));var b=rfu;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return $Nu=z},
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 z,l,I;if(((z=window.ShadyDOM)==null?void 0:z.noPatch)!==!0&&((l=window.ShadyDOM)==null?void 0:l.noPatch)!=="on-demand"||((I=this.__shady_parentNode)==null?void 0:I.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(o1u)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var eVM=_.zs(['<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>']),wJu=_.Spu(eVM);wJu.setAttribute("style","display: none;");document.head.appendChild(wJu.content);var AfA;var WOI;var n1_;var LOM;_.hP({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Vh],configure:function(z){var l=z.node,I=l.getBoundingClientRect().height;return this._effect=new KeyframeEffect(l,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(z))}});
_.hP({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Vh],configure:function(z){var l=z.node,I=l.getBoundingClientRect().width;return this._effect=new KeyframeEffect(l,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(z))}});
_.hP({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Vh],configure:function(z){var l=z.node,I=l.getBoundingClientRect().width;return this._effect=new KeyframeEffect(l,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(z))}});
_.hP({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Vh],configure:function(z){var l=z.node,I=l.getBoundingClientRect().height;this.setPrefixedProperty(l,"transformOrigin","0 0");return this._effect=new KeyframeEffect(l,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(z))}});var E4={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},UNA=function(){};
_.p=UNA.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._focusBlurHandler=function(){};
_.p._changedControlState=function(){};
_.p._setFocused=function(){};
UNA=_.hP({_template:function(){if(LOM!==void 0)return LOM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;n1_===void 0&&(n1_=document.createElement("template"));var b=n1_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return LOM=z},
is:"tp-yt-paper-menu-button",behaviors:[_.rB,_.$b],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:E4.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:E4.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:E4.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 z=_.YO(this.$.content).getDistributedNodes(),l=0,I=z.length;l<I;l++)if(z[l].nodeType===Node.ELEMENT_NODE)return z[l]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(z,l){z?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):l!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(z){_.$b._disabledChanged.apply(this,arguments);z&&this.opened&&this.close()},
__onIronOverlayCanceled:function(z){var l=this.$.trigger;_.YO(z.detail).path.indexOf(l)>-1&&z.preventDefault()}});
Object.keys(E4).forEach(function(z){UNA[z]=E4[z]});var aq0=_.wB.IronButtonState,VKw=(0,_.r7)(HTMLElement);
_.hP({_template:function(){if(WOI!==void 0)return WOI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;AfA===void 0&&(AfA=document.createElement("template"));var b=AfA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return WOI=z},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[aq0,_.$b,Nk,_.Ai,_.LR],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(z){var l=(0,_.Ks)(this);l.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:z});l.shadowRoot.appendChild(z);return VKw.prototype._attachDom.call(this,z)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var z=this.contentElement;z&&z.selectedItem&&this._setSelectedItem(z.selectedItem)},
get contentElement(){for(var z=_.YO(this.$.content).getDistributedNodes(),l=0,I=z.length;l<I;l++)if(z[l].nodeType===Node.ELEMENT_NODE)return z[l]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(z){this._setSelectedItem(z.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(z){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z)===this&&this.open()},
_selectedItemChanged:function(z){var l="";z?l=z.label||z.getAttribute("label")||z.textContent.trim():l="";this.value=l;this._setSelectedItemLabel(l)},
_computeMenuVerticalOffset:function(z,l){return l?l:z?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var z=this.opened?"true":"false",l=this.contentElement;l&&l.setAttribute("aria-expanded",z)},
_computeLabelClass:function(z,l,I){var b="label";if(z)I&&(b+=" label-is-hidden");else if(I||l)b+=" label-is-floating";return b},
_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 jUM;var Jf_;_.hP({is:"tp-yt-paper-icon-button",_template:function(){if(Jf_!==void 0)return Jf_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;jUM===void 0&&(jUM=document.createElement("template"));var b=jUM;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return Jf_=z},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.FOn],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(z,l){var I=this.getAttribute("aria-label");I&&l!=I||this.setAttribute("aria-label",z)}});var zhp;var lsn;_.uA=[SB0,_.$b,{hostAttributes:{role:"option",tabindex:"0"}}];_.hP({_template:function(){if(lsn!==void 0)return lsn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;zhp===void 0&&(zhp=document.createElement("template"));var b=zhp;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return lsn=z},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.uA]});var Isw;var bO_;var vxu={attached:function(){this.fire("addon-attached")},
update:function(){}};var Myu=1,pxz=1,D5M=1,x5w=[_.$b,_.rB,{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();!Ck&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(z,l){z?z=z+" "+l:z=l;return z},
_onAddonAttached:function(z){z=_.YO(z).rootTarget;if(z.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,z.id);else{var l="paper-input-add-on-"+pxz++;z.id=l;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,l)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(z){_.$b._focusBlurHandler.call(this,z);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var z=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",z);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(z){try{var l=this.inputElement.selectionStart;this.value=z;this.inputElement.selectionStart=l;this.inputElement.selectionEnd=l}catch(I){this.value=z}},
_computeAlwaysFloatLabel:function(z,l){return l||z},
_updateAriaLabelledBy:function(){var z=_.YO(this.root).querySelector("label");if(z){if(z.id)var l=z.id;else l="paper-input-label-"+Myu++,z.id=l;this._ariaLabelledBy=l}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+D5M++)},
_onChange:function(z){this.shadowRoot&&this.fire(z.type,{sourceEvent:z},{node:this,bubbles:z.bubbles,cancelable:z.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var z=document.activeElement;z instanceof HTMLElement&&z!==document.body&&z!==document.documentElement||this._focusableElement.focus()}}}];var OOn;var gxn;_.hP({_template:function(){if(gxn!==void 0)return gxn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;OOn===void 0&&(OOn=document.createElement("template"));var b=OOn;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return gxn=z},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[vxu],properties:{_charCounterStr:{type:String,value:"0"}},update:function(z){if(z.inputElement){z.value=z.value||"";var l=z.value.toString().length.toString();z.inputElement.hasAttribute("maxlength")&&(l+="/"+z.inputElement.getAttribute("maxlength"));this._charCounterStr=l}}});var GsM;var NGj;_.hP({_template:function(){if(NGj!==void 0)return NGj;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;GsM===void 0&&(GsM=document.createElement("template"));var b=GsM;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return NGj=z},
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 Nh(this.attrForValue)},get _inputElement(){return _.YO(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(z){this._addons||(this._addons=[]);z=z.target;this._addons.indexOf(z)===-1&&(this._addons.push(z),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(z){this._handleValueAndAutoValidate(z.target)},
_onValueChanged:function(z){var l=z.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,l.value===void 0||l.value===""))return;this._handleValueAndAutoValidate(z.target)},
_handleValue:function(z){var l=this._inputElementValue;l||l===0||z.type==="number"&&!z.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:z,value:l,invalid:this.invalid})},
_handleValueAndAutoValidate:function(z){this.autoValidate&&z&&(this.invalid=!(z.validate?z.validate(this._inputElementValue):z.checkValidity()));this._handleValue(z)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(z){if(this._addons)for(var l,I=0;l=this._addons[I];I++)l.update(z)},
_computeInputContentClass:function(z,l,I,b,v){var M="input-content";z?(v&&(M+=" label-is-hidden"),b&&!this.noUnfloatedLabelError&&(M+=" is-invalid")):(z=this.querySelector("label"),l||v?(M+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",b?M+=" is-invalid":I&&(M+=" label-is-highlighted")):(z&&(this.$.labelAndInputContainer.style.position="relative"),b&&!this.noUnfloatedLabelError&&(M+=" is-invalid")));I&&(M+=" focused");return M},
_computeUnderlineClass:function(z,l){var I="underline";l?I+=" is-invalid":z&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(z,l){var I="add-on-content";l?I+=" is-invalid":z&&(I+=" is-highlighted");return I}});var Exp;var ul_;_.hP({_template:function(){if(ul_!==void 0)return ul_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Exp===void 0&&(Exp=document.createElement("template"));var b=Exp;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return ul_=z},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[vxu],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(z){this._setInvalid(z.invalid)}});_.hP({is:"tp-yt-paper-input",_template:function(){if(bO_!==void 0)return bO_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Isw===void 0&&(Isw=document.createElement("template"));var b=Isw;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return bO_=z},
behaviors:[x5w,_.Ai],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 ZO4;var HOw;_.hP({_template:function(){if(HOw!==void 0)return HOw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=
z.content,I=l.insertBefore;ZO4===void 0&&(ZO4=document.createElement("template"));var b=ZO4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return HOw=z},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.uA]});var yO_;var fsj;_.hP({_template:function(){if(fsj!==void 0)return fsj;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;yO_===void 0&&(yO_=document.createElement("template"));var b=yO_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return fsj=z},
is:"tp-yt-paper-item-body"});var CI_;var ksz;var RhI=function(){};
_.p=RhI.prototype;_.p.indexOf=function(){};
_.p.selectPrevious=function(){};
_.p.selectNext=function(){};
_.p.selectIndex=function(){};
_.p.forceSynchronousItemUpdate=function(){};
_.p._checkFallback=function(){};
_.p._addListener=function(){};
_.p._removeListener=function(){};
_.p._activateEventChanged=function(){};
_.p._updateItems=function(){};
_.p._selectSelected=function(){};
_.p._filterItem=function(){};
_.p._valueToItem=function(){};
_.p._valueToIndex=function(){};
_.p._indexToValue=function(){};
_.p._valueForItem=function(){};
_.p._observeItems=function(){};
_.p._itemActivate=function(){};
_.p.multiChanged=function(){};
_.p._updateAttrForSelected=function(){};
_.p._updateSelected=function(){};
_.p._selectMulti=function(){};
_.p._selectionChange=function(){};
_.p._toggleSelected=function(){};
_.p._valuesToItems=function(){};
_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p.select=function(){};
_.p._resetTabindices=function(){};
_.p._updateMultiselectable=function(){};
_.p._focusWithKeyboardEvent=function(){};
_.p._clearSearchText=function(){};
_.p._focusPrevious=function(){};
_.p._focusNext=function(){};
_.p._applySelection=function(){};
_.p._focusedItemChanged=function(){};
_.p._onIronItemsChanged=function(){};
_.p._onShiftTabDown=function(){};
_.p._onFocus=function(){};
_.p._onUpKey=function(){};
_.p._onDownKey=function(){};
_.p._onEscKey=function(){};
_.p._onKeydown=function(){};
_.p._activateHandler=function(){};
_.p._disabledChanged=function(){};
_.p._setSelectedItem=function(){};
_.p._setItems=function(){};
_.p._setSelectedItems=function(){};
_.p._setFocusedItem=function(){};
RhI=_.hP({_template:function(){if(ksz!==void 0)return ksz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;CI_===void 0&&(CI_=document.createElement("template"));var b=CI_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return ksz=z},
is:"tp-yt-paper-listbox",behaviors:[$v4],hostAttributes:{role:"listbox"}});var m5u;var KxM;var ty0={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(z,l){return[z||l?"active":"",l?"cooldown":""].join(" ")},
__activeChanged:function(z,l){this.__setAriaHidden(!z);this.__coolingDown=!z&&l},
__altChanged:function(z){this.setAttribute("aria-label",z||"loading")},
__setAriaHidden:function(z){z?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.hP({_template:function(){if(KxM!==void 0)return KxM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;m5u===void 0&&(m5u=document.createElement("template"));var b=m5u;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return KxM=z},
is:"tp-yt-paper-spinner",behaviors:[ty0]});var BGI;var Xxn;_.hP({_template:function(){if(Xxn!==void 0)return Xxn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;BGI===void 0&&(BGI=document.createElement("template"));var b=BGI;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return Xxn=z},
is:"tp-yt-paper-spinner-lite",behaviors:[ty0]});var q94;var iO4;_.hP({_template:function(){if(iO4!==void 0)return iO4;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;q94===void 0&&(q94=document.createElement("template"));var b=q94;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return iO4=z},
is:"tp-yt-paper-tab",behaviors:[_.$b,_.wB.IronButtonState,Nk],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 z=_.YO(this).parentNode;return!!z&&!!z.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(z){if(this.link){var l=this.queryEffectiveChildren("a");l&&z.target!==l&&l.click()}}});var Fx4;var QXA;var Y9A=_.zs(['<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>']),TGA=_.Spu(Y9A);document.head.appendChild(TGA.content);_.hP({_template:function(){if(QXA!==void 0)return QXA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Fx4===void 0&&(Fx4=document.createElement("template"));var b=Fx4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return QXA=z},
is:"tp-yt-paper-tabs",behaviors:[_.ap,_.wUI],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(z){_.YO(this).querySelectorAll("tp-yt-paper-tab").forEach(z?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(z){z.setAttribute("noink","")},
_removeNoinkAttribute:function(z){z.removeAttribute("noink")},
_computeScrollButtonClass:function(z,l,I,b){return!l||I?"hidden":z?b?"hidden":"not-visible":""},
_computeTabsContentClass:function(z,l){var I="tabs-content";z&&(I+=" scrollable");if(!z||l)I+=" fit-container";return I},
_computeSelectionBarClass:function(z,l){var I="selection-bar";z?I+=" hidden":l&&(I+=" align-bottom");return I},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(z){return""+z},
_onIronSelect:function(z){this._tabChanged(z.detail.item,this._previousTab);this._previousTab=z.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();_.Ue._activateHandler.apply(this,arguments)},
_scheduleActivation:function(z,l){this._pendingActivationItem=z;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,l)},
_delayedActivationHandler:function(){var z=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;z.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(z){z.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(z,l){this.scrollable&&this._affectScroll(l&&-l.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(z){this.$.tabsContainer.scrollLeft+=z;z=this.$.tabsContainer.scrollLeft;this._leftHidden=z===0||this.hideScrollButtons;this._rightHidden=z===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(z,l){if(z){var I=this.$.tabsContent.getBoundingClientRect(),b=I.width,v=z.getBoundingClientRect();I=v.left-I.left;this._pos={width:this._calcPercent(v.width,b),left:this._calcPercent(I,b)};if(this.noSlide||l==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var M=l.getBoundingClientRect();l=this.items.indexOf(l);z=this.items.indexOf(z);this.$.selectionBar.classList.add("expand");
z=l<z;this._isRTL&&(z=!z);z?this._positionBar(this._calcPercent(v.left+v.width-M.left,b)-5,this._left):this._positionBar(this._calcPercent(M.left+M.width-v.left,b)-5,this._calcPercent(I,b)+5);this.scrollable&&this._scrollToSelectedIfNeeded(v.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(z,l){l-=this.$.tabsContainer.scrollLeft;l<0?this.$.tabsContainer.scrollLeft+=l:(l+=z-this.$.tabsContainer.offsetWidth,l>0&&(this.$.tabsContainer.scrollLeft+=l))},
_calcPercent:function(z,l){return 100*z/l},
_positionBar:function(z,l){z=z||0;l=l||0;this._width=z;this._left=l;this.transform("translateX("+l+"%) scaleX("+z/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var z=this.$.selectionBar.classList;z.contains("expand")?(z.remove("expand"),z.add("contract"),this._positionBar(this._pos.width,this._pos.left)):z.contains("contract")&&z.remove("contract")}});var cOj;var S9_;_.hP({_template:function(){if(S9_!==void 0)return S9_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;cOj===void 0&&(cOj=document.createElement("template"));var b=cOj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return S9_=z},
is:"tp-yt-paper-textarea",behaviors:[x5w,_.Ai],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(z){this.$.input.textarea.selectionStart=z},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(z){this.$.input.textarea.selectionEnd=z},_ariaLabelledByChanged:function(z){this._focusableElement.setAttribute("aria-labelledby",z)},
_ariaDescribedByChanged:function(z){this._focusableElement.setAttribute("aria-describedby",z)},
get _focusableElement(){return this.inputElement.textarea}});var d5j;var oxA;/*

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 PI_=function(){};
_.p=PI_.prototype;_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._focusedChanged=function(){};
_.p.registered=function(){};
_.p._invalidChanged=function(){};
_.p.hasValidator=function(){};
_.p.validate=function(){};
_.p._getValidity=function(){};
_.p._requiredChanged=function(){};
_.p._valueChanged=function(){};
_.p._checkedChanged=function(){};
_.p._buttonStateChanged=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
PI_=_.hP({is:"tp-yt-paper-toggle-button",_template:function(){if(oxA!==void 0)return oxA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;d5j===void 0&&(d5j=document.createElement("template"));var b=d5j;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return oxA=z},
behaviors:[_.QU_],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");_.IR(this,function(){_.rS(this,"pan-y")})},
_ontrack:function(z){z=z.detail;z.state==="start"?this._trackStart(z):z.state==="track"?this._trackMove(z):z.state==="end"&&this._trackEnd(z)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(z){z=z.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+z:z)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+z:z));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 z=Nk._createRipple();z.id="ink";z.setAttribute("recenters","");z.classList.add("circle","toggle-ink");return z}});var hh_;var sXj;_.hP({_template:function(){if(sXj!==void 0)return sXj;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;hh_===void 0&&(hh_=document.createElement("template"));var b=hh_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return sXj=z},
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 z=_.YO(this).parentNode,l=_.YO(this).getOwnerRoot(),I;this.for?I=_.YO(l).querySelector("#"+this.for):I=z.nodeType==Node.DOCUMENT_FRAGMENT_NODE?l.host:z;return I},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(z){z==="entry"?this.show():z==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.YO(this).textContent.trim()===""){for(var z=!0,l=_.YO(this).getEffectiveChildNodes(),I=0;I<l.length;I++)if(l[I].textContent.trim()!==""){z=!1;break}if(z)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 z=this.offset;this.marginTop!=14&&this.offset==14&&(z=this.marginTop);var l=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),b=this.getBoundingClientRect(),v=(I.width-b.width)/2,M=(I.height-b.height)/2,x=I.left-l.left,g=I.top-l.top;switch(this.position){case "top":var G=x+v;var u=g-b.height-z;break;case "bottom":G=x+v;u=g+I.height+z;break;case "left":G=x-b.width-z;u=g+M;break;case "right":G=x+I.width+
z,u=g+M}this.fitToVisibleBounds?(l.left+G+b.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,G)+"px",this.style.right="auto"),l.top+u+b.height>window.innerHeight?(this.style.bottom=l.height+"px",this.style.top="auto"):(this.style.top=Math.max(-l.top,u)+"px",this.style.bottom="auto")):(this.style.left=G+"px",this.style.top=u+"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(z){z!==500&&this.updateStyles({"--paper-tooltip-delay-in":z+"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(z){if(z==="entry"&&this.animationEntry!=="")return this.animationEntry;if(z==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[z]&&typeof this.animationConfig[z][0].name==="string"){if(this.animationConfig[z][0].timing&&this.animationConfig[z][0].timing.delay&&this.animationConfig[z][0].timing.delay!==0){var l=this.animationConfig[z][0].timing.delay;z==="entry"?this.updateStyles({"--paper-tooltip-delay-in":l+"ms"}):z==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":l+
"ms"})}return this.animationConfig[z][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 rOA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(rOA,_.Da);var $5w=_.yR(rOA,[0,_.Oz]);var Zt=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Zt,_.Da);var ehz=[3,4],wx_=[5,6];var AOI=[0,ehz,wx_,_.Eb,-1,_.xA,_.uT,-1,yhG,Cy7];var WxA=_.yR(Zt,AOI),nxz=_.fD(AOI);var Lxz=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Lxz,_.Da);var U5_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(U5_,_.Da);var as_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(as_,_.Da);var VyM=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(VyM,_.Da);var jX_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(jX_,_.Da);var HT=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(HT,_.Da);HT.prototype.getSource=function(){return _.Px(this,1)};
HT.prototype.getMessage=function(){return _.oX(this,4)};
HT.prototype.getData=function(){return _.gi(this,jX_,8)};var JOj=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(JOj,_.Da);var yq=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(yq,_.Da);var fw=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(fw,_.Da);var Cw=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Cw,_.Da);Cw.prototype.getUrl=function(){return _.oX(this,1)};
Cw.prototype.setUrl=function(z){return _.Th(this,1,z)};
Cw.prototype.hasUrl=function(){return _.m0(_.tO(this,1))!=null};var z3n=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(z3n,_.Da);var lbA=[3];var Ibn=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Ibn,_.Da);var kK=function(z){var l=new Ibn;return _.G6(l,2,z)};
Ibn.prototype.getLanguage=function(){return s9(this,4,RP)};
var bNM=function(z){var l=kK(1);return _.Xr(l,6,RP,z)},RP=[3,
4,5,6];var vAu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(vAu,_.Da);var mq=function(z){var l=new vAu;return _.G6(l,1,z)},Kw=function(z,l){return _.Xr(z,2,M1_,l)},M1_=[2,
3,4,5];var pcw=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(pcw,_.Da);var td=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(td,_.Da);var Diu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Diu,_.Da);var xiI=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(xiI,_.Da);var ONM=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(ONM,_.Da);var gAz=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(gAz,_.Da);var Gnj=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Gnj,_.Da);var BT=function(z){return _.gi(z,fw,5)};var Ny4=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Ny4,_.Da);Ny4.prototype.getValue=function(){return Sy(this,1)};var EA_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(EA_,_.Da);var Xu=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Xu,_.Da);Xu.prototype.getMetadata=function(){return _.rG(this,ONM,7,qk)};
Xu.prototype.hasMetadata=function(){return _.Xl(this,ONM,7,qk)};
var uzu=_.rT$(Xu),qk=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var iA=function(z){this.JSC$12024_name_=z;this.files_=[];this.directories_=[];this.directoryMap_={}};
iA.prototype.getName=function(){return this.JSC$12024_name_};var Qq=function(z,l){this.callback_=l;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new iA("");ZNM(this,z,this.rootDirectory_);Fu(this)},ZNM=function(z,l,I){for(var b=0;b<l.length;b++){var v=l[b];
v.isFile?(z.fileOps_++,v.file((0,_.YN)(z.handleFileSuccess_,z,I),(0,_.YN)(z.handleFileError_,z))):z.unscannedDirectories_.push(new HN_(v,I))}},Fu=function(z){if(z.unscannedDirectories_.length>0&&z.directoryOps_<5&&!z.hasError_){z.directoryOps_++;
var l=z.unscannedDirectories_.shift(),I=l.entry,b=new iA(I.name);l=l.parent;l.directoryMap_[b.getName()]=b;l.directories_.push(b);I=I.createReader();I.readEntries((0,_.YN)(z.handleDirectorySuccess_,z,I,b),(0,_.YN)(z.handleDirectoryError_,z))}z.directoryOps_!=0||z.fileOps_!=0||z.unscannedDirectories_.length!=0&&!z.hasError_||z.callback_(z.rootDirectory_.files_,z.rootDirectory_.directories_,z.hasError_)};
Qq.prototype.handleDirectorySuccess_=function(z,l,I){ZNM(this,I,l);I.length==0?(this.directoryOps_--,Fu(this)):z.readEntries((0,_.YN)(this.handleDirectorySuccess_,this,z,l),(0,_.YN)(this.handleDirectoryError_,this))};
Qq.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Fu(this)};
Qq.prototype.handleFileSuccess_=function(z,l){z.files_.push(l);this.fileOps_--;Fu(this)};
Qq.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Fu(this)};
var HN_=function(z,l){this.entry=z;this.parent=l};var YK=function(z){_.oW.call(this);_.dZ(z,"drop",this.onObjectsDropped_,!1,this);_.dZ(z,"dragenter",this.onFilesDragged_,!1,this);_.dZ(z,"dragover",this.onFilesDragged_,!1,this);_.dZ(z,"dragleave",this.onDragLeave_,!1,this);_.dZ(z,"dragend",this.onDragLeave_,!1,this)};
_.Gs(YK,_.oW);var y5n=function(z,l){_.Y9.call(this,"f");this.files=z;this.directories=l};
_.Gs(y5n,_.Y9);var fbj=function(){_.Y9.call(this,"h")};
_.Gs(fbj,_.Y9);var C24=function(){_.Y9.call(this,"i")};
_.Gs(C24,_.Y9);var knw=function(){_.Y9.call(this,"g")};
_.Gs(knw,_.Y9);YK.prototype.onObjectsDropped_=function(z){var l=this;z.preventDefault();var I=z.event_.dataTransfer;if((z=I&&I.items)&&z.length>0&&z[0].webkitGetAsEntry){I=[];for(var b=[],v=0;v<z.length;v++){var M=z[v].webkitGetAsEntry();M?I.push(M):b.push(z[v])}new Qq(I,function(x,g,G){G?l.dispatchEvent(new knw("Error occurred while reading from the file system.")):l.dispatchEvent(new y5n(x,g,b))})}else(z=I&&I.files)&&this.dispatchEvent(new y5n(Array.from(z),[]))};
YK.prototype.onFilesDragged_=function(z){z.type==="dragenter"&&this.dispatchEvent(new fbj);z.preventDefault()};
YK.prototype.onDragLeave_=function(){this.dispatchEvent(new C24)};var R3_=function(z,l){this.JSC$12047_name_=z;this.inputElement_=l};
R3_.prototype.getName=function(){return this.JSC$12047_name_};
R3_.prototype.getInputElement=function(){return this.inputElement_};var TJ=function(z,l,I){l=l===void 0?"single_file":l;I=I===void 0?[]:I;_.oW.call(this);this.overlayTarget_=z;this.parentOverlay_=z!=null?z.parentNode:_.tA("scotty-overlay-parent");this.selectorType_=l;this.acceptTypes_=I;this.overlay_=mi4(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.m(TJ,_.oW);
var mi4=function(z,l,I,b){var v=document.createElement("input");v.setAttribute("type","file");v.setAttribute("name","Filedata");_.dZ(v,"change",z.onFilesSelected_,!1,z);I==="multiple_file"&&(v.multiple="true");I==="single_directory"&&(v.webkitdirectory="true");b.length>0&&v.setAttribute("accept",b.join(","));v.style.position="absolute";v.style.overflow="hidden";v.style.height="0px";v.style.width="0px";v.style.opacity="0";v.setAttribute("aria-hidden","true");v.setAttribute("tabIndex",-1);if(z.overlayTarget_!=
null)return v.style.height=l.offsetHeight+"px",v.style.width=l.offsetWidth+"px",z.parentOverlay_&&(z.parentOverlay_.style.position="relative"),_.Wc(v,l),j1(v,new _.rs(l.offsetLeft,l.offsetTop)),v;z.parentOverlay_.appendChild(v);return v};
TJ.prototype.click=function(){this.overlay_.click()};
TJ.prototype.onFilesSelected_=function(z){a:{try{var l=(new XMLHttpRequest).upload!==void 0;break a}catch(u){}l=!1}if(l){var I;z=Array.from((I=z.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.yk||Iw||_.Hx)){I=new iA("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(l=0;l<z.length;l++)for(var b=z[l],v=b.webkitRelativePath.split("/"),M=I,x=0;x<v.length;x++){var g=v[x];if(x==v.length-1){g!="."&&M.files_.push(b);break}var G=M.directoryMap_[g];G==void 0&&(g=
G=new iA(g),M.directoryMap_[g.getName()]=g,M.directories_.push(g));M=G}I=I.directories_}this.dispatchEvent(new KTz(z,I,null))}else z=z.target.value,z.match(/^c:\\fakepath\\/i)&&(z=z.substring(12)),this.dispatchEvent(new KTz([],[],new R3_(z,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=mi4(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var KTz=function(z,l){_.Y9.call(this,"j");this.files=z;this.directories=l};
_.m(KTz,_.Y9);var t1M=function(z){this.uploadUrl_=z};var Byp=function(){_.oW.call(this)};
_.Gs(Byp,_.oW);var cT=function(z){_.Y9.call(this,z)};
_.Gs(cT,_.Y9);var So=function(z){_.Y9.call(this,z)};
_.Gs(So,_.Y9);var XcI=function(z,l,I,b,v){_.oW.call(this);I=document.createElement("form");I.setAttribute("method",l);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");l=document.createElement("input");l.setAttribute("type","hidden");l.setAttribute("name","metadata");l.setAttribute("value",v);I.appendChild(l);I.appendChild(b);this.JSC$12064_form_=I;z=new _.lJ(z);_.V9(z,"upload_protocol","multipart");this.JSC$12064_url_=z.toString();this.JSC$12064_request_=new kb;this.state_=
"Ready";this.JSC$12064_errorDescription_=null;this.JSC$12064_eventHandler_=new _.GR(this);_.kN(this,this.JSC$12064_eventHandler_);this.JSC$12064_eventHandler_.listen(this.JSC$12064_request_,"success",this.onTransferSuccess_);this.JSC$12064_eventHandler_.listen(this.JSC$12064_request_,"error",this.onTransferError_)};
_.m(XcI,Byp);_.p=XcI.prototype;_.p.run=function(){this.state_="Transferring";var z=this.JSC$12064_request_,l=this.JSC$12064_form_;if(z.JSC$11483_active_)throw Error("se");var I=new _.lJ(this.JSC$12064_url_||l.action);z.JSC$11483_form_=l;l=z.JSC$11483_form_;I=_.WQ(I.toString());I!==void 0&&(l.action=I);lYA(z)};
_.p.getResponseCode=function(){return null};
_.p.getResponseText=function(){return this.JSC$12064_request_&&this.JSC$12064_request_.getResponseText()||null};
_.p.JSC$29476_getErrorDescription=function(){return this.JSC$12064_errorDescription_};
_.p.cancel=function(){this.JSC$12064_request_&&this.JSC$12064_request_.abort();this.state_="Cancelled";this.dispatchEvent(new cT("o"))};
_.p.pause=function(){};
_.p.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new cT("l"))};
_.p.onTransferError_=function(){this.JSC$12064_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new cT("n"))};var dL=function(){_.Az.call(this)};
_.m(dL,_.Az);dL.prototype.createXhr=function(){var z=_.Az.prototype.createXhr.call(this);z.upload&&(z.upload.onprogress=(0,_.YN)(this.onProgress_,this));return z};
dL.prototype.onProgress_=function(z){this.dispatchEvent(z)};var qzA=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},FTn=function(z,l){var I=z.attempt_+1;
if(z.maxAttempts_>0&&I>z.maxAttempts_)return!1;I==0?l():z.delayCallId_=$9(function(){z.delayCallId_=null;l()},iNu(z),z);
z.attempt_=I;return!0};
qzA.prototype.reset=function(){this.delayCallId_&&_.v7.clearTimeout(this.delayCallId_);this.attempt_=-1};
var iNu=function(z){var l=250*Math.pow(2,z.attempt_);z.maxDelayMs_>=0&&(l=Math.min(l,z.maxDelayMs_));return l};var DxQ=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var oP=function(){_.oW.call(this);this.JSC$12074_request_=this.state_=null;this.JSC$12074_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12074_bytesTransferred_=0;this.retryIterator_=new qzA;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12074_errorDescription_=null;this.JSC$12074_eventHandler_=new _.GR(this);_.kN(this,this.JSC$12074_eventHandler_);this.JSC$12074_url_=this.blob_=null;this.JSC$12074_method_=void 0;this.chunkSize_=this.JSC$12074_metadata_=
this.JSC$12074_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12074_responseText_=this.JSC$12074_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Gs(oP,Byp);_.p=oP.prototype;_.p.run=function(){PT(this)};
_.p.getResponseCode=function(){return this.JSC$12074_responseCode_};
_.p.getResponseText=function(){return this.JSC$12074_responseText_};
_.p.JSC$29476_getErrorDescription=function(){return this.JSC$12074_errorDescription_};
_.p.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12074_eventHandler_.removeAll();this.JSC$12074_request_&&this.JSC$12074_request_.abort();this.retryIterator_.reset();var z=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(z==="Upload"||z==="Query")z=new dL,z.JSC$9797_withCredentials_=this.JSC$12074_withCredentials_,z.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12074_bytesTransferred_=
0;this.dispatchEvent(new cT("o"))}};
_.p.pause=function(){this.pauseRequested_=!0};
var PT=function(z){var l=z.state_;z.pauseRequested_?(z.pauseRequested_=!1,z.stateAfterUnpausing_=l,z.state_="Paused"):FTn(z.retryIterator_,function(){switch(z.state_){case "Start":z.JSC$12074_request_=new dL;var I=_.h7.clone(z.JSC$12074_headers_);z.blob_.size!=null&&(I["Content-Length"]=z.blob_.size);I=xx$(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";z.JSC$12074_eventHandler_.removeAll();z.JSC$12074_eventHandler_.listen(z.JSC$12074_request_,"complete",z.onStartComplete_);
z.JSC$12074_request_.JSC$9797_withCredentials_=z.JSC$12074_withCredentials_;z.JSC$12074_request_.send(z.JSC$12074_url_,z.JSC$12074_method_,z.JSC$12074_metadata_,I);z.lastCommandResponseCode_=null;z.dispatchEvent(new So("q"));break;case "Upload":I=z.transferHandle_.uploadUrl_;var b=z.blob_.size;if(QyM()){var v=z.chunkSize_;var M=z.offset_+v>=b;b=Fg_(z.blob_,z.offset_,M?b:z.offset_+v)}else z.offset_=0,b=z.blob_,M=!0;z.JSC$12074_request_=new dL;z.JSC$12074_request_.JSC$9797_withCredentials_=z.JSC$12074_withCredentials_;
z.JSC$12074_eventHandler_.removeAll();z.JSC$12074_eventHandler_.listen(z.JSC$12074_request_,"progress",z.onUploadProgress_);v=(0,_.YN)(z.JSC$12076_onUploadComplete_,z,z.offset_+b.size,M);z.JSC$12074_eventHandler_.listen(z.JSC$12074_request_,"complete",v);z.lastCommandResponseCode_=null;z.dispatchEvent(new So("q"));M=Object.assign({},z.JSC$12074_headers_||{},{"X-Goog-Upload-Command":"upload"+(M?", finalize":""),"X-Goog-Upload-Offset":z.offset_});z.JSC$12074_request_.send(I,"POST",b,M);break;case "Query":z.JSC$12074_request_=
new dL;z.JSC$12074_eventHandler_.removeAll();z.JSC$12074_eventHandler_.listen(z.JSC$12074_request_,"complete",z.onQueryComplete_);I=Object.assign({},z.JSC$12074_headers_||{},{"X-Goog-Upload-Command":"query"});z.JSC$12074_request_.send(z.transferHandle_.uploadUrl_,"POST","",I);z.lastCommandResponseCode_=null;z.dispatchEvent(new So("q"));break;default:throw Error("hf");}})||hd(z,"Transfer encountered too many consecutive failures.")},hd=function(z,l){z.state_="Error";
z.JSC$12074_errorDescription_=l;z.dispatchEvent(new cT("n"))};
oP.prototype.onStartComplete_=function(z){var l=z.target;this.lastCommandResponseCode_=l.getStatus();this.dispatchEvent(new So("r"));if(QqI(l))Yzz(this,l);else if(Tyj(l)){z=lE(z.target.getAllResponseHeaders());for(var I in z)_.DS(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new cT("m"));I=cP(z,"X-Goog-Upload-URL");z=(z=cP(z,"X-Goog-Upload-Chunk-Granularity"))?parseInt(z,10):1;I===void 0||isNaN(z)||z<=0?hd(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
z)*z,this.transferHandle_=new t1M(I),this.dispatchEvent(new cT("p")),this.state_="Upload",this.retryIterator_.reset(),PT(this))}else PT(this)};
oP.prototype.onUploadProgress_=function(z){this.JSC$12074_bytesTransferred_=this.offset_+z.loaded;this.dispatchEvent(new cT("k"))};
oP.prototype.JSC$12076_onUploadComplete_=function(z,l,I){var b=this,v,M;return _.O(function(x){switch(x.nextAddress){case 1:v=I.target;b.lastCommandResponseCode_=v.getStatus();b.dispatchEvent(new So("r"));if(c5_(v)||v.getStatus()==404)return b.JSC$12074_bytesTransferred_=z,Yzz(b,v),x.return();if(Tyj(v)){x.jumpTo(2);break}if(!(M=b.detectCorruptedBlobEnabled_)){x.jumpTo(3);break}return x.yield(SzI(b),4);case 4:M=x.yieldResult;case 3:if(M)return hd(b,"Blob has been modified or corrupted."),x.return();
b.requireUploadRequestModification_=v.getStatus()==400;b.state_="Query";PT(b);return x.return();case 2:if(l)return hd(b,"Got a non-final success response after issuing a finalize command."),x.return();b.JSC$12074_bytesTransferred_=z;b.offset_=z;b.retryIterator_.reset();PT(b);return x.return()}})};
oP.prototype.onQueryComplete_=function(z){var l=z.target;this.lastCommandResponseCode_=l.getStatus();this.dispatchEvent(new So("r"));QqI(l)?(l.getStatus()===200&&(this.JSC$12074_bytesTransferred_=this.blob_.size),Yzz(this,l)):Tyj(l)?(z=lE(z.target.getAllResponseHeaders()),z=parseInt(cP(z,"X-Goog-Upload-Size-Received"),10),isNaN(z)?hd(this,"Server did not respond with current offset."):z<this.offset_?hd(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
z+"."):this.requireUploadRequestModification_&&this.offset_===z?hd(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<z&&this.retryIterator_.reset(),this.offset_=this.JSC$12074_bytesTransferred_=z,this.state_="Upload",PT(this))):PT(this)};
var Yzz=function(z,l){z.JSC$12074_responseCode_=l.getStatus();var I=lE(l.getAllResponseHeaders());O9$(I);z.JSC$12074_responseText_=l.getResponseText();z.state_="Response received";z.dispatchEvent(new cT("l"))},Tyj=function(z){var l=z.getStatus();
z=lE(z.getAllResponseHeaders());z=cP(z,"X-Goog-Upload-Status");return l===200&&z==="active"},c5_=function(z){z=lE(z.getAllResponseHeaders());
return cP(z,"X-Goog-Upload-Status")==="final"},QqI=function(z){if(c5_(z))return!0;
z=z.getStatus();return z>=400&&z<500},SzI=function(z){var l;
return _.O(function(I){if(I.nextAddress==1){if(!z.blob_||z.originalBlobSize_<=0)return I.return(!1);if(z.blob_.size!==z.originalBlobSize_)return I.return(!0);_.RL(I,2);if(l=Fg_(z.blob_,0,1)){var b=I.yield,v=new bX,M=NcI(v);v.reader_.readAsBinaryString(l);I=b.call(I,M,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(z.blob_.size!==z.originalBlobSize_);_.XP(I);return I.return(!0)})};var diM=function(z,l,I,b,v,M){_.oW.call(this);this.payload_=b;this.JSC$12077_url_=z;this.JSC$12077_method_=l;this.JSC$12077_headers_=I;this.JSC$12077_metadata_=v;this.encoding_=M||"binary";z=new _.eH;this.boundary_="uploader-"+L0()+"-"+z.JSC$11332_toIsoString();this.JSC$12077_responseText_=this.JSC$12077_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12077_errorDescription_=null;this.JSC$12077_eventHandler_=new _.GR(this);_.kN(this,this.JSC$12077_eventHandler_)};
_.m(diM,Byp);_.p=diM.prototype;
_.p.run=function(){var z=_.h7.clone(this.JSC$12077_headers_);this.payload_.length!=null&&(z["Content-Length"]=this.payload_.length);z=xx$(z);z["X-Goog-Upload-Protocol"]="multipart";z["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new dL;this.JSC$12077_eventHandler_.removeAll();this.JSC$12077_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12077_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12077_url_,this.JSC$12077_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12077_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",z)};
_.p.getResponseCode=function(){return this.JSC$12077_responseCode_};
_.p.getResponseText=function(){return this.JSC$12077_responseText_};
_.p.JSC$29476_getErrorDescription=function(){return this.JSC$12077_errorDescription_};
_.p.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12077_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new cT("o")))};
_.p.pause=function(){};
_.p.onTransferProgress_=function(){this.dispatchEvent(new cT("k"))};
_.p.onTransferComplete_=function(z){var l=z.target.getStatus();l===void 0||l===-1?(this.JSC$12077_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new cT("n"))):(this.JSC$12077_responseCode_=l,z=z.target,l=lE(z.getAllResponseHeaders()),O9$(l),this.JSC$12077_responseText_=z.getResponseText(),this.state_="Complete",this.dispatchEvent(new cT("l")))};_.oAn=function(z,l,I,b){b=b===void 0?!1:b;if(I instanceof R3_)return new XcI(z,"POST",l,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new diM(z,"POST",l,I,"");var v=new oP(void 0);v.JSC$12074_url_=z;v.JSC$12074_method_="POST";v.JSC$12074_headers_=l;v.blob_=I;v.originalBlobSize_=I.size;v.JSC$12074_metadata_="";b&&(v.JSC$12074_withCredentials_=b);v.state_="Start";return v};var s4=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(s4,_.Da);_.p=s4.prototype;_.p.getEnableSsEngine=function(){return _.cx(this,2)};
_.p.getEnableAwr=function(){return _.cx(this,3)};
_.p.getAlohaAutoGaRollout=function(){return _.cx(this,5)};
_.p.getEnableConfigurator=function(){return _.cx(this,6)};
_.p.getEnableMweb=function(){return _.cx(this,7)};
var h3u=function(){var z=P2n();return _.dm(z,7,!0)};
s4.prototype.getEnableCtlConsentCheckbox=function(){return _.cx(this,8)};
s4.prototype.getEnableIframe=function(){return _.cx(this,9)};
var P2n=function(){var z=new s4;z=_.dm(z,5,!0);z=_.dm(z,2,!0);z=_.dm(z,4,!1);z=_.dm(z,8,!0);return _.dm(z,9,!0)};
s4.prototype.getEnableScreenshotNudge=function(){return _.cx(this,10)};
var sqM=function(){var z=h3u();return _.dm(z,10,!0)};
s4.prototype.getEnableWebStartupConfigEndpoint=function(){return _.cx(this,11)};
s4.prototype.getEnableJunkNudge=function(){return _.cx(this,12)};
var i9H=function(){var z=sqM();return _.dm(z,12,!0)};
_.p=s4.prototype;_.p.getEnableConfiguratorLocale=function(){return _.cx(this,13)};
_.p.getEnableTinyNoPointer=function(){return _.cx(this,14)};
_.p.getEnableSupportSessionLogging=function(){return _.cx(this,15)};
_.p.getEnableFileUploadForScreenshot=function(){return _.cx(this,16)};
_.p.getEnableDirectDeflectionForSingleCategory=function(){return _.cx(this,17)};
_.p.getEnableImageSanitization=function(){return _.cx(this,18)};
_.p.getEnableAlohaBinarySplit=function(){return _.cx(this,19)};
_.p.getEnableDbFeedbackIntents=function(){return _.cx(this,20)};
_.p.getEnableMarkMandatoryFieldsWithRequired=function(){return _.cx(this,21)};
_.p.getEnableFeedbackCategoryCustomUi=function(){return _.cx(this,22)};
_.p.getEnableRealtimeCtl=function(){return _.cx(this,23)};var qXQ=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(qXQ,_.Da);var gI5=[/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 Np$="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 EIY=_.zs(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),u$f=_.zs(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var H91,CoG,ygY,kFY;var r5u,$iu;
r5u=function(z,l,I){z.timeOfStartCall=(new Date).getTime();var b=I||_.v7,v=b.document,M=z.nonce||_.lt(b.document);M&&!z.nonce&&(z.nonce=M);if(z.flow=="help"){var x=_.W8("document.location.href",b);!z.helpCenterContext&&x&&(z.helpCenterContext=x.substring(0,1200));x=!0;if(l&&JSON&&JSON.stringify){var g=JSON.stringify(l);(x=g.length<=1200)&&(z.psdJson=g)}x||(l={invalidPsd:!0})}l=[z,l,I];b.GOOGLE_FEEDBACK_START_ARGUMENTS=l;I=z.feedbackServerUri||"//www.google.com/tools/feedback";if(x=b.GOOGLE_FEEDBACK_START)x.apply(b,l);
else{b=I+"/load.js?";for(var G in z)l=z[G],l==null||_.Lu(l)||(b+=encodeURIComponent(G)+"="+encodeURIComponent(l)+"&");z=Q6(v).createElement("SCRIPT");M&&z.setAttribute("nonce",M);_.Me(z,_.QR(b));v.body.appendChild(z)}};
$iu=function(z,l,I,b){var v,M;_.O(function(x){v=I||_.v7;var g=z.serverEnvironment==="DEV",G=I||_.v7;G=z.nonce||_.lt(G.document);g={integrationKeys:{productId:z.productId,feedbackBucket:z.bucket,triggerId:z.triggerId},callbacks:{onClose:z.callback,onLoad:z.onLoadCallback},formContent:{locale:z.locale,disableScreenshot:z.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:z.abuseLink,additionalDataConsent:z.additionalDataConsent},initializationData:{isLocalServer:g,nonce:G,useNightlyRelease:g,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:z.feedbackServerUri,colorScheme:z.colorScheme},extraData:{productVersion:z.productVersion,authUser:z.authuser,configuratorId:z.configuratorId,customZIndex:z.customZIndex,tinyNoPointer:z.tinyNoPointer,
allowNonLoggedInFeedback:z.allowNonLoggedInFeedback,enableAnonymousFeedback:z.enableAnonymousFeedback}};l&&(G=new Map(Object.entries(l)),g.extraData.productSpecificData=G);M=g;return x.yield(tGu(M,b,v),0)})};
_.e3w=function(z,l,I){try{if(z.flow==="help"){var b=z.helpCenterPath.replace(/^\//,"");_.zg(I||window,"https://support.google.com/"+b)}else z.flow==="submit"?r5u(z,l,I):Ff1(z.productId,z.feedbackServerUri).then(function(v){v=_.gi(v,s4,1);var M=!SGS||(v==null?void 0:v.getEnableMweb()),x=!z.tinyNoPointer||(v==null?void 0:v.getEnableTinyNoPointer());!v||v.getAlohaAutoGaRollout()&&M&&x?$iu(z,l,I,v):r5u(z,l,I)},function(v){v&&v.name!=="DuplicateFormError"&&r5u(z,l,I)})}catch(v){$iu(z,l,I,null)}};
_.vd("userfeedback.api.startFeedback",_.e3w);var Qrt=/https?:\/\/\S+\.\S+/,YXQ=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Tpk=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var UL5=function(z){var l=z.split(""),I=[-263237435,15,l,function(b,v,M){var x=v.length;M.forEach(function(g,G,u){this.push(u[G]=v[(v.indexOf(g)-v.indexOf(this[G])+G+x--)%v.length])},b.split(""))},
function(b,v){b=(b%v.length+v.length)%v.length;v.splice(-b).reverse().forEach(function(M){v.unshift(M)})},
"response",function(){for(var b=64,v=[];++b-v.length-32;){switch(b){case 58:b-=14;case 91:case 92:case 93:continue;case 123:b=47;case 94:case 95:case 96:continue;case 46:b=95}v.push(String.fromCharCode(b))}return v},
null,12,1540023973,65941107,null,l,function(b,v){for(b=(b%v.length+v.length)%v.length;b--;)v.unshift(v.pop())},
695603893,function(b){for(var v=b.length;v;)b.push(b.splice(--v,1)[0])},
"'[;'[(",function(b,v){b.push(v)},
null,function(b,v,M,x,g){return v(M,x,g)},
"continuation",l,function(b,v){if(b.length!=0){v=(v%b.length+b.length)%b.length;var M=b[0];b[0]=b[v];b[v]=M}},
function(){for(var b=64,v=[];++b-v.length-32;){switch(b){case 91:b=44;continue;case 123:b=65;break;case 65:b-=18;continue;case 58:b=96;continue;case 46:b=95}v.push(String.fromCharCode(b))}return v},
'"),/]];'];I[7]=I;I[11]=I;I[18]=I;try{(((0,I[15])(I[21]),I[22])(I[11],I[9]),I[22])(I[new Date("1970-01-01T04:30:12.000+04:30")/1E3],I[1]),((0,I[22])(I[11],I[23]),I[4])(I[10],I[18]),(0,I[20])(I[21],I[14])<<(0,I[17])(I[18],I[1]),(0,I[4])(I[8],I[21]),(0,I[19])((0,I[19])((0,I[17])(I[7],I[9]),I[3],I[20],(0,I[6])(),I[2]),I[3],I[5],(0,I[15])(),I[2])}catch(b){return"aTlOUOubTO4AP____8P_"+z}return l.join("")};_.wc_=new _.Z0("runAttestationCommand");var A5u=new _.Z0("verifyCommand");_.YM=new _.Z0("accessibilityContext");var WTA=new _.Z0("accessibilityData");var nAu=new _.Z0("profileCardCommand");var IwH=new _.Z0("signInEndpoint");var lw7=new _.Z0("signOutEndpoint");var Uij;_.LT_=new _.Z0("accountItemSectionRenderer");Uij=new _.Z0("accountItemRenderer");_.abA=new _.Z0("saveCommandToSessionStorageAction");var V1M=new _.Z0("crossAccountChannelTransferEndpoint");var V4p=new _.Z0("getAccountMenuEndpoint");_.js7=new _.Z0("getAccountSwitcherEndpoint");var a3Y=new _.Z0("getAccountsListEndpoint");var jq_=new _.Z0("getAccountsListInnertubeEndpoint");_.rL=new _.Z0("addToToastAction");var J5_=new _.Z0("hideEnclosingAction");_.$K=new _.Z0("replaceEnclosingAction");var zoM=new _.Z0("buttonRefreshAction");var lI_=new _.Z0("adsControlFlowOpportunityReceivedCommand");var II_=new _.Z0("openAdAllowlistInstructionCommand");var bdu=new _.Z0("videoMastheadAdPrimaryVideoRenderer");var v90=new _.Z0("displayAdRenderer");_.Miz=new _.Z0("inFeedAdLayoutRenderer");var pnu=new _.Z0("sequenceItemInPlayerAdLayoutRenderer");_.Dg_=new _.Z0("adSlotRenderer");var xg_=new _.Z0("adAvatarViewModel");var Od4=new _.Z0("adBadgeViewModel");var g9p=new _.Z0("adButtonViewModel");var GLn=new _.Z0("adImageViewModel");var HaH=new _.Z0("reelsAdCardButtonedViewModel");var NO0=new _.Z0("reelsPlayerOverlayLayoutViewModel");var E9_=new _.Z0("showSchedulingPanelCommand");var uSn=new _.Z0("backstageCommentsRenderer");var Zdw=new _.Z0("backstageImageRenderer");var Hdu=new _.Z0("backstagePostRenderer");var yz_=new _.Z0("backstageZeroStateRenderer");var fIn=new _.Z0("postRenderer");var CTj=new _.Z0("sharedPostRenderer");var kL_=new _.Z0("createBackstagePostEndpoint");var RoA=new _.Z0("getPostVideoPreviewEndpoint");var mgA=new _.Z0("updateBackstagePostEndpoint");var KJu=new _.Z0("filterChipTransformCommand");var tiA=new _.Z0("insertRichSectionCommand");var GOk=new _.Z0("talkToRecsDeselectCommand");var BOw=new _.Z0("talkToRecsNextCommand");var gh7=new _.Z0("talkToRecsSelectCommand");var Xn_=new _.Z0("talkToRecsUpdateTextCommand");_.BF=new _.Z0("browseEndpoint");_.qb_=new _.Z0("confirmDialogEndpoint");var idn=new _.Z0("expandOnHoverCardRenderer");var FJj=new _.Z0("lumiereShelfDetailsRenderer");var QWI=new _.Z0("revealBusinessEmailCommand");var Yb0=new _.Z0("validateChannelHandleCommand");var TOj=new _.Z0("channelCreationFormEndpoint");var czu=new _.Z0("aboutChannelViewModel");var Sb4=new _.Z0("channelThumbnailWithLinkRenderer");var dgj=new _.Z0("channelCreationServiceEndpoint");var o9u=new _.Z0("updateChannelPageSettingsEndpoint");var eo=function(z){this.delegate=z},wL=function(){eo.apply(this,arguments)};
_.m(wL,eo);_.vP.Object.defineProperties(wL.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(z){this.delegate.entityMetadata=z}}});var PTu=function(){wL.apply(this,arguments)};
_.m(PTu,wL);PTu.prototype.getAssociations=function(){return[]};
PTu.prototype.getTypeName=function(){return"channelHandle"};var MIH=new _.Z0("webThumbnailDetailsExtensionData");var Cwx=new _.Z0("commandContext");var ho_=new _.Z0("addVideoLinkAction");var sW_=new _.Z0("banAuthorAction");var rzj=new _.Z0("createCommentAction");var $g_=new _.Z0("createCommentReplyAction");var eo4=new _.Z0("createPollAction");var wn0=new _.Z0("hideIdentityChipAction");var AzA=new _.Z0("openUpdateCommentDialogAction");var WJA=new _.Z0("pinCommentAction");var n9j=new _.Z0("removeCommentAction");var LJI=new _.Z0("unpinCommentAction");var Ad=new _.Z0("updateBackstagePollAction");var Ug0=new _.Z0("updateCommentVoteAction");var aI_=new _.Z0("commentThreadRenderer");var Vi_=function(){wL.apply(this,arguments)};
_.m(Vi_,wL);Vi_.prototype.getAssociations=function(){return[]};
Vi_.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var jWA=function(){wL.apply(this,arguments)};
_.m(jWA,wL);jWA.prototype.getAssociations=function(){return[]};
jWA.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Jz_=new _.Z0("commentDialogRenderer");var zN_=new _.Z0("reloadCommentsCommand");var l9z=new _.Z0("updateCommentsSettingsEndpoint");var I90=new _.Z0("commentViewModel");var bmA=new _.Z0("triStateButtonViewModel");var vZI=new _.Z0("voiceReplyContainerViewModel");_.yi=new _.Z0("commandExecutorCommand");var eZ=new _.Z0("emoji");var M7n=new _.Z0("updateCreatorChannelInnertubeCommand");_.pHw=new _.Z0("appendContinuationItemsAction");_.DR_=new _.Z0("changeEngagementPanelVisibilityAction");_.a2=new _.Z0("continuationCommand");var xRA=new _.Z0("hideReportedCommentAction");var Om0=new _.Z0("listMutationCommand");_.WT=new _.Z0("openPopupAction");var gZw=new _.Z0("persistSubscriptionsDisplayPreferencesCommand");var f9p;_.Gp_=new _.Z0("playlistRemoveVideosAction");_.NTn=new _.Z0("updatePlaylistAction");_.EZu=new _.Z0("addToPlaylistCommand");_.uEj=new _.Z0("endPlaylistCommand");_.ZmA=new _.Z0("recoverPlaylistCommand");_.HmA=new _.Z0("refreshPlaylistCommand");_.yJA=new _.Z0("refreshFormCommand");f9p=new _.Z0("openOnePickAddVideoModalCommand");_.vDS=new _.Z0("reloadContinuationItemsCommand");_.CCI=new _.Z0("scrollToEngagementPanelCommand");var kpz=new _.Z0("selectCountryCommand");var RN_=new _.Z0("showReloadUiCommand");var mRw=new _.Z0("undoFeedbackAction");var K3M=new _.Z0("updateButtonAction");var t7A=new _.Z0("updateSubscribeButtonAction");var BTn=new _.Z0("updateToggleAction");var XHj=new _.Z0("webNativeShareCommand");_.kB=new _.Z0("webCommandMetadata");_.nw=new _.Z0("webHandleServiceEndpointExtension");var ly5=new _.Z0("webNavigationEndpointData");var qhA=new _.Z0("backgroundAudioPlaybackCommand");var imw=new _.Z0("copyLinkCommand");var F3_=new _.Z0("playlistVotingRefreshPopupCommand");var Qlj=new _.Z0("selectChipCommand");var Yhz=new _.Z0("setCookieCommand");var TTw=new _.Z0("setLocalStorageCommand");var cJ_=new _.Z0("setPrefStorageEntryCommand");var PC0;_.ShM=new _.Z0("settingsUpdateCheckboxCommand");_.dRu=new _.Z0("settingsUpdateTextCommand");_.oZA=new _.Z0("settingsUpdateOptionsCommand");PC0=new _.Z0("settingsUpdateSwitchCommand");_.hNn=new _.Z0("settingsUpdateConnectedAppRendererCommand");var sl0=new _.Z0("updateTextInputFormFieldRendererCommand");var rJ_=new _.Z0("updateToggleButtonStateCommand");var $Rp=new _.Z0("updateUrlParamCommand");var eNn=new _.Z0("webSubmitFormCommand");var wH_=new _.Z0("channelSwitcherPageRenderer"),AJp=new _.Z0("updateChannelSwitcherPageAction");_.MN=new _.Z0("continuationItemRenderer");_.Lw=new _.Z0("richItemRenderer");var W3_=new _.Z0("richSectionRenderer");_.nZA=new _.Z0("richShelfRenderer");_.L3u=new _.Z0("metadataBadgeRenderer");_.UR_=new _.Z0("multiPageMenuNotificationSectionRenderer");_.a9w=new _.Z0("playlistLoopButtonStateRenderer");var V7A=new _.Z0("claimLegacyYoutubeChannelEndpoint");var jln=new _.Z0("getNotificationMenuEndpoint");var JJ4=new _.Z0("getSearchInVideoCommand");_.zJ_=new _.Z0("getTranscriptEndpoint");_.CM=new _.Z0("signalServiceEndpoint");var l0A=new _.Z0("verifyAgeEndpoint");var j47=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(j47,_.Da);j47.prototype.getPath=function(){return _.oX(this,1)};
j47.prototype.getValue=function(){return _.oX(this,2)};var I0M=[0,_.vc,-1];var b90=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(b90,_.Da);var VwQ=_.yR(b90,[0,_.Db,I0M]);var vI_=new _.Z0("dismissalEndpoint");var MGA=new _.Z0("elementsCommand");_.Ax=new _.Z0("innertubeCommand");var pG4=new _.Z0("multipleInlinePlaybackCommand");var hY7=new _.Z0("loggingDirectives");var DxA=new _.Z0("acknowledgeChannelTouStrikeCommand");var xxu=function(){wL.apply(this,arguments)};
_.m(xxu,wL);xxu.prototype.getAssociations=function(){return[]};
xxu.prototype.getTypeName=function(){return"booleanEntity"};var O9u=function(){wL.apply(this,arguments)};
_.m(O9u,wL);O9u.prototype.getAssociations=function(){return[]};
O9u.prototype.getTypeName=function(){return"stringEntity"};var Mv=new _.Z0("entityBatchUpdate");_.gI0=new _.Z0("entityUpdateCommand");var GF_=function(){wL.apply(this,arguments)};
_.m(GF_,wL);GF_.prototype.getAssociations=function(){var z=[];this.delegate.alternateChannel&&z.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&z.push.apply(z,_.ht(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&z.push(this.delegate.oneofChannelEntity);return[].concat(_.ht(new Set(z)))};
GF_.prototype.getTypeName=function(){return"fakeChannel"};var Npu=function(){wL.apply(this,arguments)};
_.m(Npu,wL);Npu.prototype.getAssociations=function(){var z=[];this.delegate.entryCollection&&z.push(this.delegate.entryCollection);return[].concat(_.ht(new Set(z)))};
Npu.prototype.getTypeName=function(){return"fakePlaylist"};
var EIj=function(){wL.apply(this,arguments)};
_.m(EIj,wL);EIj.prototype.getAssociations=function(){var z=[];this.delegate.parentPlaylist&&z.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var l=_.D(this.delegate.entries),I=l.next();!I.done;I=l.next())z.push.apply(z,_.ht((new u$w(I.value)).getAssociations()));return[].concat(_.ht(new Set(z)))};
EIj.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var u$w=function(){eo.apply(this,arguments)};
_.m(u$w,eo);u$w.prototype.getAssociations=function(){var z=[];this.delegate.video&&z.push(this.delegate.video);return[].concat(_.ht(new Set(z)))};var Z9A=function(){wL.apply(this,arguments)};
_.m(Z9A,wL);Z9A.prototype.getAssociations=function(){var z=[];this.delegate.descriptionEntity&&z.push(this.delegate.descriptionEntity);this.delegate.creators&&z.push.apply(z,_.ht(this.delegate.creators));this.delegate.theBiggestFan&&z.push(this.delegate.theBiggestFan);return[].concat(_.ht(new Set(z)))};
Z9A.prototype.getTypeName=function(){return"fakeVideo"};
var H9_=function(){wL.apply(this,arguments)};
_.m(H9_,wL);H9_.prototype.getAssociations=function(){return[]};
H9_.prototype.getTypeName=function(){return"fakeVideoDescription"};var ygj=new _.Z0("fantasyRosterViewModel");var f0I=new _.Z0("addFollowUpSurveyCommand");var Cop=new _.Z0("getSurveyCommand");var kFj=new _.Z0("ratingSurveyOptionRenderer");_.hf=new _.Z0("feedbackEndpoint");var RJ_=new _.Z0("reportHistoryTableCellRenderer"),mxu=new _.Z0("reportHistoryTableTextCellRenderer"),KfI=new _.Z0("reportHistoryTableReasonCellRenderer");_.tGn=new _.Z0("flagEndpoint");var Bpn=new _.Z0("getFlowCommand");var XGM=new _.Z0("submitFormWithValidationFlowCommand");var qXA=function(){wL.apply(this,arguments)};
_.m(qXA,wL);qXA.prototype.getAssociations=function(){return[]};
qXA.prototype.getTypeName=function(){return"flowStateEntity"};var i9u=new _.Z0("flowFormState");var Ff_=new _.Z0("gameCardRenderer");var QrA=new _.Z0("accountLinkingStateChangedCommand");var YXI=function(){wL.apply(this,arguments)};
_.m(YXI,wL);YXI.prototype.getAssociations=function(){return[]};
YXI.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Tp_=new _.Z0("changeMiniAppPlayStateCommand");var cgA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(cgA,_.Da);var U4=[1,2,3];var SXj=[0,U4,ELt,_.pN,D27];var dxz=_.yR(cgA,SXj),oIu=_.fD(SXj);var PoA=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(PoA,_.Da);var hJn=[0,_.jy,_.vc];var sr0=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(sr0,_.Da);var rgM=[0,_.vc,_.jy,-1];var aP=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(aP,_.Da);var $xA=_.fD([0,1,hJn,_.Oz,rgM]);var eJA=new _.Z0("miniAppScoreChallengeViewModel");var wG4=new _.Z0("miniGameCardViewModel");var Ag_=new _.Z0("teaserCardViewModel");var WfA=function(){wL.apply(this,arguments)};
_.m(WfA,wL);WfA.prototype.getAssociations=function(){return[]};
WfA.prototype.getTypeName=function(){return"logoEntity"};_.nIM=new _.Z0("feedbackItemRenderer");var Lfu=function(){wL.apply(this,arguments)};
_.m(Lfu,wL);Lfu.prototype.getAssociations=function(){return[]};
Lfu.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.Uxu=new _.Z0("playerInterstitialRenderer");var a0j=new _.Z0("getKidsBlocklistPickerCommand");_.VGA=new _.Z0("updateKidsBlacklistEndpoint");_.Wt=new _.Z0("likeEndpoint");var jr0,Jgj,zCj;jr0=new _.Z0("addChatItemAction");Jgj=new _.Z0("removeChatItemAction");zCj=new _.Z0("markChatItemAsDeletedAction");_.ljA=new _.Z0("setLiveChatCollapsedStateAction");var Ijp=function(){wL.apply(this,arguments)};
_.m(Ijp,wL);Ijp.prototype.getAssociations=function(){return[]};
Ijp.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var bkp=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(bkp,_.Da);var v4u=[0,_.Db,[0,[1,2],_.pN,_.xA,[0,_.Mi,1,_.Mi]]];var MH_=[0,_.vc,-1];var pKw=[0,[1],_.pN];var Vq=[0,[1,2],_.pN,_.xA,[0,_.Oz]];var jo=[0,_.vc];var DlM=[0,[0,_.Iq,_.l2,[0,_.Mi,_.gy,_.Mi]],1,[0,_.Iq]];var xlI=[0,JO];var OkM=[0,JO];var g4u=[0,OkM,xlI];var GC0=[0,_.Db,[0,[1,2],_.pN,-1],_.Iq];var N7A=[0,[2],1,_.xA,[0,_.Mi,-1,GC0]];var E4_=[0,[1],_.xA,[0,_.Mi,_.vc,_.gy,1,GC0]];var ubp=[0,_.l2,-1,pI5,_.Oz];var Zk_=[0,[0,Vk,-3],-4];var Jd=[0,_.Iq,-3,_.vc,_.Iq,_.Eb,_.Iq,v4u,_.Iq,-2];var zW=[0,_.Db,[0,[1,2],_.pN,-1],_.Iq,_.vc];var Hk_=[0,[3],Vq,[0,[2,3,4],klk,_.pN,-2],_.xA,[0,_.vc],_.jy];var yvA=[0,[3,5],_.vc,zn,_.xA,[0,1,_.jy,_.Oz],_.Oz,_.xA,[0,_.Oz,_.jy]];var fjA=[0,2,zn,_.vc,-1];var Cgn=[0,Glu];var kCu=[0,[3,4],2,x2Y,_.pN,_.vc];var RCM=[0,_.Oz,-2,1,_.vc];var mlz=[0,_.vc,-1,_.Oz];var K1M=[0,jo,function(){return lS},
jo,_.vc],tHA=[0,_.Oz,jo,Vq,function(){return lS},
_.vc],lS=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],jo,zn,[0,_.Iq,1,_.Iq,1,_.Iq,1,_.Oz,-1,jo],[0,1,_.Iq,2,_.Iq,_.Oz,_.Iq],1,zn,-1,_.vc,zn,2,Vk,[0,Vk,zn],_.vc,1,DlM,1,Vq,_.Eb,1,[0,[0,_.Db,[0,_.vc,_.Iq,_.Oz]]],[0,_.Iq,[0,_.jy,[0,_.gy]],_.jy,1,[0,O$p,-1]],_.vc,[0,1,_.vc],76,_.xA,[0,Vq,zW,DlM,1,[0,_.Db,zW]],1,_.xA,[0,Vq,_.vc,_.Iq],_.xA,
[0,Vq,pKw],_.xA,[0,Vq,pKw,zn],_.xA,[0,Vq,pKw],_.xA,[0,Vq,_.Db,jo,Vq,unx],_.xA,[0,Vq,jo,_.vc],_.xA,[0,Vq,_.Iq,Jd,-1,_.Iq],4,_.xA,[0,Vq,_.Iq,zn,Jd,_.Iq],_.xA,[0,[4,9],Vq,_.Oz,zn,_.pN,zW,1,DlM,_.vc,_.pN,RCM],_.xA,[0,Vq,jo,Vq,_.Oz,_.vc],_.xA,[0,_.Iq,Vq,Jd,_.Iq,_.vc],_.xA,[0,Vq,jo,Vq,_.Oz,_.vc],1,_.xA,[0,Vq,_.Oz,_.vc,Jd],_.xA,[0,Vq,_.Oz,[0,_.vc,zn],_.vc,zn,_.vc,fMS,-2,3,mlz,_.Db,mlz,mlz,RCM],_.xA,[0,Vq,_.Oz,E4_,_.Db,[0,OkM,N7A],jo,_.Db,g4u,_.vc,1,_.Oz,ubp,Zk_,MtS,-1],_.xA,[0,Vq,[0,_.gy,-1,E4_,_.Db,[0,
OkM,N7A,xlI],[0,_.uT],1,_.Mi],jo,_.vc],_.xA,[0,Vq,zW,_.vc,[0,_.l2]],_.xA,function(){return tHA},
_.xA,[0,Vq,zn,_.vc,-1,_.Iq],_.xA,[0,[6,7],Vq,_.Db,fjA,_.Oz,zW,1,_.xA,kCu,_.xA,Cgn],_.xA,[0,_.Db,fjA,_.Oz,_.Iq],_.xA,[0,_.vc,yXI,-1],_.xA,[0,jo,_.Db,g4u,_.vc],_.xA,[0,Vq,jo,_.vc],_.xA,[0,fMS,_.vc],_.xA,[0,MH_],_.xA,[0,MH_],_.xA,[0,zW],_.xA,[0,jo,zW],_.xA,function(){return K1M},
_.xA,[0,jo,_.vc],_.xA,[0,jo,_.vc],1,_.xA,[0,_.Iq,Vq,Jd,_.Iq,Jd],_.xA,[0,_.uT],1,_.xA,[0],1,_.xA,[0,jo,_.Oz,Vq,_.Oz],_.xA,[0,[1,2],_.xA,kCu,_.xA,Cgn,zn],_.xA,[0,_.uT,zW,yvA,_.vc,zn],_.xA,[0,yvA,_.vc,zn],_.xA,[0,ubp,zW,_.Iq,Zk_],_.xA,Hk_,_.xA,[0],_.xA,[0,_.vc,-1,_.jy],_.xA,[0,jo,_.vc],_.xA,[0,Hk_,_.jy,_.vc],_.xA,[0,Vq,Jd,_.Iq],_.xA,[0,Vq,Jd,_.Iq],_.xA,[0,ubp,Zk_,zW,_.Eb,_.Iq,MtS,-1],_.xA,[0,Vq,Jd,_.Iq]];var B7_=[0,_.Db,lS];var XK0=_.yR(bkp,[0,1,_.jy,[0,[18,22,24],B7_,3,[0,B7_],1,_.jy,[0,_.Db,[0,zn,Vk],zn],1,lS,-1,[0,_.b2,-2,_.Eb,_.b2,-1,_.Eb,_.b2,v4u,_.b2,-2],b$1,[!0,_.vc,[0,pKw,2,_.vc,zn,_.Iq,2,_.vc,fMS]],[0,[1,2,3],[5,6],_.xA,[0,_.Mi],_.xA,[0,_.Mi,-1],_.xA,[0,_.Mi],1,_.xA,MH_,_.xA,[0,_.vc]],[0,lS,-1],_.uT,lS,_.xA,lS,[0,B7_],_.jy,lS,_.xA,lS,_.vc,_.xA,lS]]);var qlA=new _.Z0("liveChatEndpoint");var ik_=new _.Z0("liveChatItemContextMenuEndpoint");var F1j=new _.Z0("liveChatReplayEndpoint");_.Q5w=new _.Z0("emojiPickerRenderer");var Ylj=new _.Z0("liveChatAuthorBadgeViewModel");var T7_=new _.Z0("deleteLiveChatMessageCommand");var cvA=new _.Z0("liveChatActionEndpoint");var SlI=new _.Z0("createLiveChatPollEndpoint");var dl_=new _.Z0("manageLiveChatUserEndpoint");var o4A=new _.Z0("moderateLiveChatEndpoint");_.Pgu=new _.Z0("sendLiveChatMessageEndpoint");var hCu=new _.Z0("sendLiveChatVoteEndpoint");var s5M=new _.Z0("clearLocationCommand");var rvA=new _.Z0("resolveLocationCommand");var $lu=new _.Z0("interactionLoggingCommandMetadata");var eCM=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(eCM,_.Da);var wKu=function(z,l){return _.Zv(z,1,l)};var Avu=[0,_.Iq];var W1p=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(W1p,_.Da);var n4n=function(z,l){return Ry(z,1,eCM,l)};W1p.prototype.JSC$12171_serializeBinary=su1([0,_.Db,Avu]);var ljt={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 L1_={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"},
Ul_={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 LQ5={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"};_.Bap=new _.Z0("logFlowLoggingEventCommand");_.Fa=new _.Z0("loggingContext");var ajI=new _.Z0("audioTrackSelectActionCommand");var VHu=new _.Z0("captionLanguageSelectActionCommand");var j5z=new _.Z0("showAudioTrackPickerActionCommand");var Jv_=new _.Z0("showCaptionLanguageSelectActionCommand");var zUA=new _.Z0("dismissDialogEndpoint");var li_=new _.Z0("dismissPlayerOverlayCommand");var Ii_=new _.Z0("hideItemSectionVideosByIdCommand");var bRj=new _.Z0("showMiniplayerCommand");var vbp=function(){wL.apply(this,arguments)};
_.m(vbp,wL);vbp.prototype.getAssociations=function(){return[]};
vbp.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var MFu=function(){wL.apply(this,arguments)};
_.m(MFu,wL);MFu.prototype.getAssociations=function(){return[]};
MFu.prototype.getTypeName=function(){return"downloadStatusEntity"};var poz=function(){wL.apply(this,arguments)};
_.m(poz,wL);poz.prototype.getAssociations=function(){return[]};
poz.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var DYw=function(){wL.apply(this,arguments)};
_.m(DYw,wL);DYw.prototype.getAssociations=function(){var z=[];this.delegate.downloadsList&&z.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&z.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&z.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&z.push(this.delegate.refresh);return[].concat(_.ht(new Set(z)))};
DYw.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var xY_=function(){wL.apply(this,arguments)};
_.m(xY_,wL);xY_.prototype.getAssociations=function(){var z=[];this.delegate.refresh&&z.push(this.delegate.refresh);if(this.delegate.downloads)for(var l=_.D(this.delegate.downloads),I=l.next();!I.done;I=l.next())z.push.apply(z,_.ht((new ORM(I.value)).getAssociations()));return[].concat(_.ht(new Set(z)))};
xY_.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var ORM=function(){eo.apply(this,arguments)};
_.m(ORM,eo);ORM.prototype.getAssociations=function(){var z=[];this.delegate.video&&z.push(this.delegate.video);this.delegate.playlist&&z.push(this.delegate.playlist);this.delegate.videoItem&&z.push(this.delegate.videoItem);this.delegate.playlistItem&&z.push(this.delegate.playlistItem);return[].concat(_.ht(new Set(z)))};var gbM=function(){wL.apply(this,arguments)};
_.m(gbM,wL);gbM.prototype.getAssociations=function(){var z=[];this.delegate.localImageEntities&&z.push.apply(z,_.ht(this.delegate.localImageEntities));return[].concat(_.ht(new Set(z)))};
gbM.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var Gr4=function(){wL.apply(this,arguments)};
_.m(Gr4,wL);Gr4.prototype.getAssociations=function(){var z=[];this.delegate.playbackData&&z.push(this.delegate.playbackData);this.delegate.localImageEntities&&z.push.apply(z,_.ht(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&z.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ht(new Set(z)))};
Gr4.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var NBA=function(){wL.apply(this,arguments)};
_.m(NBA,wL);NBA.prototype.getAssociations=function(){return[]};
NBA.prototype.getTypeName=function(){return"offlineabilityEntity"};var Eb0=function(){wL.apply(this,arguments)};
_.m(Eb0,wL);Eb0.prototype.getAssociations=function(){var z=[];this.delegate.fakeChildren&&z.push.apply(z,_.ht(this.delegate.fakeChildren));return[].concat(_.ht(new Set(z)))};
Eb0.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var uZ_=function(){wL.apply(this,arguments)};
_.m(uZ_,wL);uZ_.prototype.getAssociations=function(){var z=[];this.delegate.video&&z.push(this.delegate.video);this.delegate.playbackData&&z.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&z.push(this.delegate.offlineVideoPolicy);return[].concat(_.ht(new Set(z)))};
uZ_.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var ZRu=function(){wL.apply(this,arguments)};
_.m(ZRu,wL);ZRu.prototype.getAssociations=function(){return[]};
ZRu.prototype.getTypeName=function(){return"continuationTokenEntity"};var HRw=function(){wL.apply(this,arguments)};
_.m(HRw,wL);HRw.prototype.getAssociations=function(){var z=[];this.delegate.channelOwner&&z.push(this.delegate.channelOwner);this.delegate.videos&&z.push.apply(z,_.ht(this.delegate.videos));this.delegate.collaboratorChannels&&z.push.apply(z,_.ht(this.delegate.collaboratorChannels));this.delegate.downloadState&&z.push(this.delegate.downloadState);this.delegate.refresh&&z.push(this.delegate.refresh);return[].concat(_.ht(new Set(z)))};
HRw.prototype.getTypeName=function(){return"mainPlaylistEntity"};var yin=function(){wL.apply(this,arguments)};
_.m(yin,wL);yin.prototype.getAssociations=function(){var z=[];this.delegate.video&&z.push(this.delegate.video);this.delegate.channelContributor&&z.push(this.delegate.channelContributor);return[].concat(_.ht(new Set(z)))};
yin.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var fiu=function(){eo.apply(this,arguments)};
_.m(fiu,eo);fiu.prototype.getAssociations=function(){var z=[];this.delegate.recommendedVideoMetadata&&z.push.apply(z,_.ht((new CXA(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ht(new Set(z)))};
var CXA=function(){eo.apply(this,arguments)};
_.m(CXA,eo);CXA.prototype.getAssociations=function(){var z=[];this.delegate.localImageEntities&&z.push.apply(z,_.ht(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&z.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ht(new Set(z)))};var kr_=function(){eo.apply(this,arguments)};
_.m(kr_,eo);kr_.prototype.getAssociations=function(){var z=[];this.delegate.playbackPosition&&z.push(this.delegate.playbackPosition);return[].concat(_.ht(new Set(z)))};var RUp=function(){wL.apply(this,arguments)};
_.m(RUp,wL);RUp.prototype.getAssociations=function(){var z=[];this.delegate.owner&&z.push(this.delegate.owner);this.delegate.downloadState&&z.push(this.delegate.downloadState);this.delegate.userState&&z.push.apply(z,_.ht((new kr_(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&z.push.apply(z,_.ht((new fiu(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ht(new Set(z)))};
RUp.prototype.getTypeName=function(){return"mainVideoEntity"};var mYj=function(){wL.apply(this,arguments)};
_.m(mYj,wL);mYj.prototype.getAssociations=function(){var z=[];this.delegate.userChannelDetails&&z.push(this.delegate.userChannelDetails);return[].concat(_.ht(new Set(z)))};
mYj.prototype.getTypeName=function(){return"ytMainChannelEntity"};var Kjz=function(){wL.apply(this,arguments)};
_.m(Kjz,wL);Kjz.prototype.getAssociations=function(){var z=[];this.delegate.channelOwner&&z.push(this.delegate.channelOwner);this.delegate.playbackPosition&&z.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&z.push.apply(z,_.ht(this.delegate.localImageEntities));this.delegate.downloadStatus&&z.push(this.delegate.downloadStatus);return[].concat(_.ht(new Set(z)))};
Kjz.prototype.getTypeName=function(){return"ytMainVideoEntity"};var LtY=new _.Z0("downloadsPageSmartDownloadsOptInBannerParams");var jcG=new _.Z0("downloadsPageUpsellBannerParams");var tFu=function(){wL.apply(this,arguments)};
_.m(tFu,wL);tFu.prototype.getAssociations=function(){return[]};
tFu.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var BBn=function(){wL.apply(this,arguments)};
_.m(BBn,wL);BBn.prototype.getAssociations=function(){return[]};
BBn.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Xo_=function(){wL.apply(this,arguments)};
_.m(Xo_,wL);Xo_.prototype.getAssociations=function(){return[]};
Xo_.prototype.getTypeName=function(){return"macroMarkerEntity"};var qez=function(){wL.apply(this,arguments)};
_.m(qez,wL);qez.prototype.getAssociations=function(){return[]};
qez.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var iR_=function(){wL.apply(this,arguments)};
_.m(iR_,wL);iR_.prototype.getAssociations=function(){return[]};
iR_.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var Fju=function(){wL.apply(this,arguments)};
_.m(Fju,wL);Fju.prototype.getAssociations=function(){return[]};
Fju.prototype.getTypeName=function(){return"playerStateEntity"};var QpM=function(){wL.apply(this,arguments)};
_.m(QpM,wL);QpM.prototype.getAssociations=function(){return[]};
QpM.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Yep=function(){wL.apply(this,arguments)};
_.m(Yep,wL);Yep.prototype.getAssociations=function(){return[]};
Yep.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var TBu=function(){wL.apply(this,arguments)};
_.m(TBu,wL);TBu.prototype.getAssociations=function(){return[]};
TBu.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.Ic=new _.Z0("dislikeButtonViewModel");_.bS=new _.Z0("likeButtonViewModel");var ciM=new _.Z0("videoSummaryContentViewModel");var Se4=new _.Z0("videoSummaryParagraphViewModel");var dYI=new _.Z0("changeTimelyActionVisibilityCommand");var obu=new _.Z0("hideEngagementPanelEndpoint");var PXj=new _.Z0("refreshPanelEndpoint");var hUz=new _.Z0("scrollToSectionEndpoint");var spM=new _.Z0("seekToVideoTimestampCommand");_.SK=new _.Z0("showEngagementPanelEndpoint");var ri_=new _.Z0("showTransientPlayerScrimOverlayCommand");var $Yu=new _.Z0("toggleEngagementPanelCommand");_.eUM=new _.Z0("createBroadcastCommand");var wow=new _.Z0("metadataUpdateCommand");var Aiw=function(){wL.apply(this,arguments)};
_.m(Aiw,wL);Aiw.prototype.getAssociations=function(){return[]};
Aiw.prototype.getTypeName=function(){return"featuredProductsEntity"};var Wj_=function(){wL.apply(this,arguments)};
_.m(Wj_,wL);Wj_.prototype.getAssociations=function(){return[]};
Wj_.prototype.getTypeName=function(){return"pinnedProductEntity"};var nbu=function(){wL.apply(this,arguments)};
_.m(nbu,wL);nbu.prototype.getAssociations=function(){return[]};
nbu.prototype.getTypeName=function(){return"trendingOfferEntity"};_.LjM=new _.Z0("merchandiseShelfRenderer");var UYA=new _.Z0("gridMovieRenderer");_.aiI=new _.Z0("movieRenderer");var VFA=function(){wL.apply(this,arguments)};
_.m(VFA,wL);VFA.prototype.getAssociations=function(){var z=[];this.delegate.trackDownloadMetadatas&&z.push.apply(z,_.ht(this.delegate.trackDownloadMetadatas));return[].concat(_.ht(new Set(z)))};
VFA.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var jpp=function(){wL.apply(this,arguments)};
_.m(jpp,wL);
jpp.prototype.getAssociations=function(){var z=[];this.delegate.downloadedTracks&&z.push.apply(z,_.ht(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&z.push.apply(z,_.ht(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&z.push.apply(z,_.ht(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&z.push.apply(z,_.ht(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&z.push.apply(z,_.ht(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
z.push.apply(z,_.ht(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&z.push.apply(z,_.ht(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&z.push.apply(z,_.ht(this.delegate.metadataOnlyTracks));return[].concat(_.ht(new Set(z)))};
jpp.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Ji_=function(){wL.apply(this,arguments)};
_.m(Ji_,wL);Ji_.prototype.getAssociations=function(){var z=[];this.delegate.trackDownloadMetadatas&&z.push.apply(z,_.ht(this.delegate.trackDownloadMetadatas));return[].concat(_.ht(new Set(z)))};
Ji_.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var zmw=function(){wL.apply(this,arguments)};
_.m(zmw,wL);zmw.prototype.getAssociations=function(){var z=[];this.delegate.playbackData&&z.push(this.delegate.playbackData);this.delegate.localImageEntities&&z.push.apply(z,_.ht(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&z.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ht(new Set(z)))};
zmw.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var lt_=function(){wL.apply(this,arguments)};
_.m(lt_,wL);
lt_.prototype.getAssociations=function(){var z=[];this.delegate.musicLibraryStatusEntity&&z.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&z.push.apply(z,_.ht(this.delegate.primaryArtists));this.delegate.details&&z.push(this.delegate.details);this.delegate.userDetails&&z.push(this.delegate.userDetails);this.delegate.tracks&&z.push.apply(z,_.ht(this.delegate.tracks));this.delegate.share&&z.push(this.delegate.share);this.delegate.downloadMetadata&&z.push(this.delegate.downloadMetadata);this.delegate.refresh&&
z.push(this.delegate.refresh);return[].concat(_.ht(new Set(z)))};
lt_.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Itz=function(){wL.apply(this,arguments)};
_.m(Itz,wL);Itz.prototype.getAssociations=function(){var z=[];this.delegate.albumRelease&&z.push(this.delegate.albumRelease);this.delegate.tracks&&z.push.apply(z,_.ht(this.delegate.tracks));return[].concat(_.ht(new Set(z)))};
Itz.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var bw_=function(){wL.apply(this,arguments)};
_.m(bw_,wL);bw_.prototype.getAssociations=function(){var z=[];this.delegate.albumRelease&&z.push(this.delegate.albumRelease);return[].concat(_.ht(new Set(z)))};
bw_.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var vK_=function(){wL.apply(this,arguments)};
_.m(vK_,wL);vK_.prototype.getAssociations=function(){var z=[];this.delegate.details&&z.push(this.delegate.details);this.delegate.userDetails&&z.push(this.delegate.userDetails);return[].concat(_.ht(new Set(z)))};
vK_.prototype.getTypeName=function(){return"musicArtist"};
var MoI=function(){wL.apply(this,arguments)};
_.m(MoI,wL);MoI.prototype.getAssociations=function(){var z=[];this.delegate.parentArtist&&z.push(this.delegate.parentArtist);return[].concat(_.ht(new Set(z)))};
MoI.prototype.getTypeName=function(){return"musicArtistDetail"};
var pTA=function(){wL.apply(this,arguments)};
_.m(pTA,wL);pTA.prototype.getAssociations=function(){var z=[];this.delegate.parentArtist&&z.push(this.delegate.parentArtist);return[].concat(_.ht(new Set(z)))};
pTA.prototype.getTypeName=function(){return"musicArtistUserDetail"};var Dk_=function(){wL.apply(this,arguments)};
_.m(Dk_,wL);Dk_.prototype.getAssociations=function(){return[]};
Dk_.prototype.getTypeName=function(){return"musicLibraryEdit"};var xkn=function(){wL.apply(this,arguments)};
_.m(xkn,wL);xkn.prototype.getAssociations=function(){return[]};
xkn.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var Oww=function(){wL.apply(this,arguments)};
_.m(Oww,wL);
Oww.prototype.getAssociations=function(){var z=[];this.delegate.tracks&&z.push.apply(z,_.ht(this.delegate.tracks));this.delegate.refresh&&z.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&z.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&z.push(this.delegate.details);this.delegate.downloadMetadata&&z.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&z.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&z.push(this.delegate.userDetails);this.delegate.entryCollection&&
z.push(this.delegate.entryCollection);this.delegate.share&&z.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&z.push.apply(z,_.ht((new gKn(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ht(new Set(z)))};
Oww.prototype.getTypeName=function(){return"musicPlaylist"};
var gKn=function(){eo.apply(this,arguments)};
_.m(gKn,eo);gKn.prototype.getAssociations=function(){var z=[];this.delegate.creatorEntity&&z.push(this.delegate.creatorEntity);return[].concat(_.ht(new Set(z)))};var GJz=function(){wL.apply(this,arguments)};
_.m(GJz,wL);GJz.prototype.getAssociations=function(){return[]};
GJz.prototype.getTypeName=function(){return"musicShare"};var NLn=function(){wL.apply(this,arguments)};
_.m(NLn,wL);
NLn.prototype.getAssociations=function(){var z=[];this.delegate.musicLibraryStatusEntity&&z.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&z.push.apply(z,_.ht(this.delegate.artists));this.delegate.audioModeVersion&&z.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&z.push(this.delegate.videoModeVersion);this.delegate.userDetails&&z.push(this.delegate.userDetails);this.delegate.details&&z.push(this.delegate.details);this.delegate.albumRelease&&z.push(this.delegate.albumRelease);this.delegate.share&&
z.push(this.delegate.share);this.delegate.libraryEdit&&z.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&z.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&z.push(this.delegate.playbackPosition);this.delegate.lyrics&&z.push(this.delegate.lyrics);return[].concat(_.ht(new Set(z)))};
NLn.prototype.getTypeName=function(){return"musicTrack"};
var EK_=function(){wL.apply(this,arguments)};
_.m(EK_,wL);EK_.prototype.getAssociations=function(){var z=[];this.delegate.parentTrack&&z.push(this.delegate.parentTrack);return[].concat(_.ht(new Set(z)))};
EK_.prototype.getTypeName=function(){return"musicTrackDetail"};
var uu_=function(){wL.apply(this,arguments)};
_.m(uu_,wL);uu_.prototype.getAssociations=function(){var z=[];this.delegate.parentTrack&&z.push(this.delegate.parentTrack);return[].concat(_.ht(new Set(z)))};
uu_.prototype.getTypeName=function(){return"musicTrackUserDetail"};var IU=new _.Z0("musicResponsiveListItemRenderer");var x01=new _.Z0("addToPlaylistEndpoint");var Zw_=new _.Z0("captionPickerEndpoint");var Hw_=new _.Z0("suggestStats");var yd_=new _.Z0("backstageImageUploadEndpoint");var ft_=new _.Z0("createBackstagePostDialogEndpoint");_.CA_=new _.Z0("createCommentReplyDialogEndpoint");_.kJz=new _.Z0("updateCommentDialogEndpoint");_.Rmu=new _.Z0("updateCommentReplyDialogEndpoint");var mkA=new _.Z0("menuEndpoint");var jvQ=new _.Z0("modalEndpoint");var Kqw=new _.Z0("playlistEditorEndpoint");var to_=new _.Z0("copyTextEndpoint");var BL_,XT0;BL_=new _.Z0("shareEndpoint");XT0=new _.Z0("shareEntityEndpoint");_.q4w=new _.Z0("shareEntityServiceEndpoint");_.adS=new _.Z0("userFeedbackEndpoint");_.zb=new _.Z0("watchEndpoint");var ojY=new _.Z0("watchPlaylistEndpoint");var iwA=new _.Z0("addUpcomingEventReminderEndpoint");_.vf=new _.Z0("getCommentsFromInboxCommand");var FqI=new _.Z0("notificationOptOutEndpoint");var QPA=new _.Z0("recordNotificationInteractionsEndpoint");var Y4_=new _.Z0("removeUpcomingEventReminderEndpoint");var pkt=new _.Z0("getDownloadActionCommand");_.TLj=new _.Z0("offlineOrchestrationActionCommand");var cdu=function(){wL.apply(this,arguments)};
_.m(cdu,wL);cdu.prototype.getAssociations=function(){return[]};
cdu.prototype.getTypeName=function(){return"captionTrack"};var S4_=function(){wL.apply(this,arguments)};
_.m(S4_,wL);S4_.prototype.getAssociations=function(){return[]};
S4_.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var dkn=function(){wL.apply(this,arguments)};
_.m(dkn,wL);dkn.prototype.getAssociations=function(){return[]};
dkn.prototype.getTypeName=function(){return"offlineVideoPolicy"};var oKz=function(){wL.apply(this,arguments)};
_.m(oKz,wL);oKz.prototype.getAssociations=function(){return[]};
oKz.prototype.getTypeName=function(){return"offlineVideoStreams"};var PAI=function(){wL.apply(this,arguments)};
_.m(PAI,wL);PAI.prototype.getAssociations=function(){var z=[];this.delegate.transfer&&z.push(this.delegate.transfer);this.delegate.adsPlaybackData&&z.push.apply(z,_.ht(this.delegate.adsPlaybackData));this.delegate.drmLicense&&z.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&z.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&z.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ht(new Set(z)))};
PAI.prototype.getTypeName=function(){return"playbackData"};var hmA=function(){wL.apply(this,arguments)};
_.m(hmA,wL);hmA.prototype.getAssociations=function(){return[]};
hmA.prototype.getTypeName=function(){return"refresh"};var sP0=function(){wL.apply(this,arguments)};
_.m(sP0,wL);sP0.prototype.getAssociations=function(){var z=[];this.delegate.offlineVideoStreams&&z.push.apply(z,_.ht(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&z.push.apply(z,_.ht(this.delegate.captionTrack));return[].concat(_.ht(new Set(z)))};
sP0.prototype.getTypeName=function(){return"transfer"};var rdw=function(){wL.apply(this,arguments)};
_.m(rdw,wL);rdw.prototype.getAssociations=function(){return[]};
rdw.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var $k_=new _.Z0("showMoreDrawerCommand");var emA=new _.Z0("updateEngagementPanelContentCommand");var wTu=new _.Z0("getPdgBuyFlowCommand");var AdM=new _.Z0("liveChatPurchaseMessageEndpoint");var Wqu=new _.Z0("openSuperStickerBuyFlowCommand");var nKz=new _.Z0("updatePdgFeatureEnablementCommand");var Lq_=function(){wL.apply(this,arguments)};
_.m(Lq_,wL);Lq_.prototype.getAssociations=function(){return[]};
Lq_.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Ukw=function(){wL.apply(this,arguments)};
_.m(Ukw,wL);Ukw.prototype.getAssociations=function(){return[]};
Ukw.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.atn=new _.Z0("pdgCommentChipRenderer");_.VoA=new _.Z0("permissionRoleBottomBarRenderer");_.jP_=new _.Z0("updatePermissionRoleCommand");var Jd_=new _.Z0("prefetchWatchCommand");var zXA=new _.Z0("updatePlayerErrorMessageCommand");var JLY=new _.Z0("toggleCaptionsVisibilityCommand");_.lZp=new _.Z0("quickActionsViewModel");var IZ_=new _.Z0("playerResponse");var btA=new _.Z0("playlistRenderer");_.vmp=new _.Z0("playlistVideoListRenderer");_.M1=new _.Z0("playlistEditEndpoint");var Maj=new _.Z0("createImagePollCommand");var pf_=new _.Z0("createQuizCommand");var D1n=new _.Z0("quizRenderer");var x1M=new _.Z0("uploadedVideoRenderer");var Otz=new _.Z0("decorateMessageEndpoint");var gm0=new _.Z0("lpOfferCardOptionViewModel");var GW_=new _.Z0("sfvAudioItemPlaybackCommand");var Nb_=function(){wL.apply(this,arguments)};
_.m(Nb_,wL);Nb_.prototype.getAssociations=function(){return[]};
Nb_.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.pt=new _.Z0("reelNonVideoContentEndpoint");_.FN=new _.Z0("reelWatchEndpoint");_.DZ=new _.Z0("reelItemRenderer");_.Emu=new _.Z0("reelMetapanelViewModel");_.uTp=new _.Z0("reelNonVideoContentRenderer");_.Zt_=new _.Z0("reelPlayerOverlayRenderer");var HtM=new _.Z0("shortsLockupViewModel");var yMA=new _.Z0("sponsorButtonViewModel");var fZ_=new _.Z0("reelItemWatchResponse");var CSu=new _.Z0("textBadgeRenderer");_.xm=new _.Z0("buttonRenderer");_.OE=new _.Z0("toggleButtonRenderer");var pNu=new _.Z0("switchButtonViewModel");_.kW4=new _.Z0("confirmDialogRenderer");var RXw;RXw=new _.Z0("menuRenderer");_.m1M=new _.Z0("menuFlexibleItemRenderer");var Ktu=new _.Z0("pollRenderer");_.ta_=new _.Z0("backgroundPromoRenderer");var XfA;_.BbA=new _.Z0("chipCloudRenderer");XfA=new _.Z0("chipCloudChipRenderer");var qEu=new _.Z0("dropdownRenderer");var itu=new _.Z0("gridVideoRenderer");_.FtA=new _.Z0("itemSectionRenderer");_.Qc_=new _.Z0("messageRenderer");var YEu=new _.Z0("sortFilterHeaderRenderer");_.gb=new _.Z0("videoRenderer");var Tbz=new _.Z0("resolveUrlCommandMetadata");var cM4=function(){wL.apply(this,arguments)};
_.m(cM4,wL);cM4.prototype.getAssociations=function(){return[]};
cM4.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.SEj=new _.Z0("getAnswerCommand");_.XN=new _.Z0("searchEndpoint");var d10=new _.Z0("genAiRichTextViewModel");var Md$=new _.Z0("overviewAnswerViewModel");var omI=new _.Z0("videoOverviewViewModel");var PS0=new _.Z0("addToPlaylistServiceEndpoint");var hXj=new _.Z0("clearSearchHistoryEndpoint");var scu=new _.Z0("clearWatchHistoryEndpoint");var rM4=new _.Z0("webSerializedServiceEndpointExtension");_.$1_=new _.Z0("createCommentEndpoint");var eX_=new _.Z0("createCommentReplyEndpoint");var wf0=new _.Z0("performCommentActionEndpoint");var AMu=new _.Z0("updateCommentEndpoint");var Wtw=new _.Z0("updateCommentReplyEndpoint");_.GW=new _.Z0("createPlaylistServiceEndpoint");var nmA=new _.Z0("deletePlaylistEndpoint");var Ltj=new _.Z0("deleteVideoEndpoint");var D0f=new _.Z0("getReportFormEndpoint");var U1z=new _.Z0("modifyChannelNotificationPreferenceEndpoint");var KNu;_.i1=new _.Z0("offlinePlaylistEndpoint");KNu={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 tVQ;_.qv=new _.Z0("offlineVideoEndpoint");tVQ={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 aZu=new _.Z0("pingingEndpoint");_.Vau=new _.Z0("selectActiveIdentityEndpoint");var jcp=new _.Z0("setSettingEndpoint");var Nzf=new _.Z0("undoFeedbackEndpoint");var JM0=new _.Z0("unsubscribeEndpoint");_.z50=new _.Z0("updatedMetadataEndpoint");var lLA=function(){wL.apply(this,arguments)};
_.m(lLA,wL);lLA.prototype.getAssociations=function(){return[]};
lLA.prototype.getTypeName=function(){return"settingEntity"};_.ILz=new _.Z0("updateLocalAppSettingCommand");var bqM=new _.Z0("saveImageToDeviceEndpoint");var vT_=new _.Z0("shareImageCommand");var MC_=new _.Z0("sharingProviderDataCommand");var p2u=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(p2u,_.Da);var DGA=[0,_.vc,-1];p2u.prototype.JSC$12372_serializeBinary=su1(DGA);var xGu=_.fD(DGA);var Oqu=new _.Z0("userMentionSuggestionRenderer");var gT_=new _.Z0("liveChatTunnelCommand");var GvM=new _.Z0("showSponsorshipsGiftOfferDialogCommand");var N3_=new _.Z0("sponsorshipsScrollableShelfViewModel");var ETu=new _.Z0("updateUpcomingEventReminderButtonStateCommand");var uX_=new _.Z0("upcomingEventReminderButtonStateRenderer");var ZqA=new _.Z0("subscribeEndpoint");var HqA=new _.Z0("registerTasksCommand");var yCA=new _.Z0("hideSheetCommand");var fLI=new _.Z0("hideSnackbarCommand");var CV_=new _.Z0("showDialogCommand");_.S9=new _.Z0("showSheetCommand");var tDI=new _.Z0("showSnackbarCommand");var Bl4=function(){wL.apply(this,arguments)};
_.m(Bl4,wL);Bl4.prototype.getAssociations=function(){return[]};
Bl4.prototype.getTypeName=function(){return"chipEntity"};var XZu=function(){wL.apply(this,arguments)};
_.m(XZu,wL);XZu.prototype.getAssociations=function(){return[]};
XZu.prototype.getTypeName=function(){return"dismissState"};_.WU=new _.Z0("avatarViewModel");var qFz=new _.Z0("badgeViewModel");_.N1=new _.Z0("buttonViewModel");_.EE=new _.Z0("chipViewModel");var kxt=new _.Z0("collectionThumbnailViewModel");var i1p=new _.Z0("contentPreviewImageViewModel");var FBM=new _.Z0("decoratedAvatarViewModel");_.EeG=new _.Z0("engagementBarViewModel");_.Qf4=new _.Z0("imageBannerViewModel");var YFM=new _.Z0("lockupContentMetadataRowExtension");_.Tlp=new _.Z0("lockupMetadataViewModel");_.c4M=new _.Z0("lockupViewModel");var SF4=new _.Z0("avatarStackViewModel");_.dwn=new _.Z0("contentMetadataViewModel");var o$M=function(){wL.apply(this,arguments)};
_.m(o$M,wL);o$M.prototype.getAssociations=function(){return[]};
o$M.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Phu=new _.Z0("pageHeaderViewModel");var h6u=new _.Z0("snackbarViewModel");var sf0=new _.Z0("thumbnailHoverOverlayToggleActionsViewModel");_.uS=new _.Z0("toggleButtonViewModel");var r40=function(){wL.apply(this,arguments)};
_.m(r40,wL);r40.prototype.getAssociations=function(){return[]};
r40.prototype.getTypeName=function(){return"votingEntity"};_.u27=new _.Z0("votingViewModel");var $wu=new _.Z0("sectionHeaderViewModel");var e6z=new _.Z0("notifyDropdownOptionSelectedCommand");var STf=new _.Z0("listViewModel");_.d5=new _.Z0("listItemViewModel");var Cmp=new _.Z0("toggleableListItemViewModel");var wZ_=new _.Z0("dialogHeaderViewModel");var A4u=function(){wL.apply(this,arguments)};
_.m(A4u,wL);A4u.prototype.getAssociations=function(){return[]};
A4u.prototype.getTypeName=function(){return"dataFreshnessEntity"};var A2f=new _.Z0("suspenseViewModel");var WBu=function(){wL.apply(this,arguments)};
_.m(WBu,wL);WBu.prototype.getAssociations=function(){return[]};
WBu.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var n$I=function(){wL.apply(this,arguments)};
_.m(n$I,wL);n$I.prototype.getAssociations=function(){return[]};
n$I.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var LBM=function(){wL.apply(this,arguments)};
_.m(LBM,wL);LBM.prototype.getAssociations=function(){return[]};
LBM.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.Uw_=new _.Z0("transcriptSubmitCaptionCorrectionCommand");var ah0=function(){wL.apply(this,arguments)};
_.m(ah0,wL);ah0.prototype.getAssociations=function(){return[]};
ah0.prototype.getTypeName=function(){return"buttonEntity"};var sv5=new _.Z0("unpluggedStringRunImage");var VDI=new _.Z0("tabViewModel");var jfj=new _.Z0("tabbedViewModel");var J4w=function(){wL.apply(this,arguments)};
_.m(J4w,wL);J4w.prototype.getAssociations=function(){return[]};
J4w.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.zs4=new _.Z0("updateDescriptionAction");var l$M=new _.Z0("updateToggleButtonTextAction");_.I$j=new _.Z0("autoplaySwitchButtonRenderer");var $1;_.bew=new _.Z0("multiMarkersPlayerBarRenderer");$1=new _.Z0("chapterRenderer");var vYu=new _.Z0("heatMarkerRenderer");var Ki$=new _.Z0("heatmapRenderer");var M$_=new _.Z0("smartSkipPlayerScrimOverlayRenderer");var pLu=new _.Z0("timedMarkerDecorationRenderer");var J01=new _.Z0("postWebToNativeMessageCommand");var $M=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m($M,_.Da);$M.prototype.getMethodName=function(){return _.oX(this,1)};var DQI=[0,_.vc,-2];$M.prototype.JSC$12394_serializeBinary=su1(DQI);var xQj=_.yR($M,DQI);var Oez=new _.Z0("whitelistEditEndpoint");var gY_=new _.Z0("clearUrlParamCommand");var GKn=new _.Z0("commerceActionCommand");_.NIu=new _.Z0("getPaymentInstrumentsParamsCommand");var EY4=new _.Z0("getPaymentsClientTokenCommand");var uDu=new _.Z0("googlePaymentBillingCommand");var Zej=new _.Z0("googlePaymentPurchaseManagerCommand");_.HeM=new _.Z0("logGtmCommand");var yon=new _.Z0("updateCardItemOnClickCommand");_.f$w=new _.Z0("ypcPauseSubscriptionCommand");_.Cr_=new _.Z0("ypcResumeSubscriptionCommand");var kKu=function(){wL.apply(this,arguments)};
_.m(kKu,wL);kKu.prototype.getAssociations=function(){return[]};
kKu.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var Rsu=function(){wL.apply(this,arguments)};
_.m(Rsu,wL);Rsu.prototype.getAssociations=function(){return[]};
Rsu.prototype.getTypeName=function(){return"commerceCartListEntity"};var mQA=function(){wL.apply(this,arguments)};
_.m(mQA,wL);mQA.prototype.getAssociations=function(){return[]};
mQA.prototype.getTypeName=function(){return"iconBadgeEntity"};var K6A=function(){wL.apply(this,arguments)};
_.m(K6A,wL);K6A.prototype.getAssociations=function(){return[]};
K6A.prototype.getTypeName=function(){return"pdpStateEntity"};var t$_=function(){wL.apply(this,arguments)};
_.m(t$_,wL);t$_.prototype.getAssociations=function(){return[]};
t$_.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var e$H=new _.Z0("ypcOffersEndpoint");var BIu=new _.Z0("cardItemRenderer"),XLA=new _.Z0("cardItemTextRenderer");var qMI=new _.Z0("commerceCartItemQuantityPickerRenderer");var iez=new _.Z0("linkCardRenderer");var nv5=new _.Z0("quantityIncrementerButtonViewModel");var F6A=new _.Z0("quantityIncrementerViewModel");var QVA=new _.Z0("themedImageViewModel");_.YMu=new _.Z0("ypcCancelRecurrenceEndpoint");var TIA=new _.Z0("ypcCompleteTransactionEndpoint");_.co_=new _.Z0("ypcGetCartEndpoint");_.Ma=new _.Z0("ypcGetOffersEndpoint");_.ZZ=new _.Z0("ypcHandleTransactionEndpoint");var SMA=new _.Z0("ypcLogWalletAnalyticDataEndpoint");_.dQ_=new _.Z0("ypcRedeemCodeEndpoint");var oYI=new _.Z0("ypcUpdateFopEndpoint");Kw(mq(1),kK(4));U2p((new MessageChannel).port2);var Prp=function(){this.register=new Map},bkG=function(z,l,I){z=z+"_"+l;
Hf.register.has(z)?I=Hf.register.get(z):(I=I(),Hf.register.set(z,I));return I},hsj=function(z){z=_.D(z.register.values());
for(var l=z.next();!l.done;l=z.next())_.HJ(l.value,"ABORTED")};
Prp.prototype.clear=function(){hsj(this);this.register.clear()};
var Hf=new Prp;var oIH=Date.now().toString();var sr5=hJu();var LfH={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 sV_,PP;sV_=1;PP=function(z){this.veData=z};
_.ch=function(z){return new PP({trackingParams:z})};
_.kU=function(z,l,I,b,v,M){var x=sV_++;return new PP({veType:z,veCounter:x,elementIndex:I,dataElement:l,youtubeData:b,jspbYoutubeData:v,loggingDirectives:M})};
_.p=PP.prototype;
_.p.getAsJson=function(){var z={};this.veData.trackingParams!==void 0?z.trackingParams=this.veData.trackingParams:(z.veType=this.veData.veType,this.veData.veCounter!==void 0&&(z.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(z.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(z.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(z.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(z.isCounterfactual=!0);
return z};
_.p.getAsJspb=function(){var z=new EF_;this.veData.trackingParams!==void 0?z.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.$x(z,2,this.veData.veType),this.veData.veCounter!==void 0&&_.$x(z,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.$x(z,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Zv(z,5,!0));if(this.veData.dataElement!==void 0){var l=this.veData.dataElement.getAsJspb();_.tT(z,7,l)}this.veData.youtubeData!==void 0&&_.tT(z,8,this.veData.jspbYoutubeData);
return z};
_.p.toString=function(){return JSON.stringify(this.getAsJson())};
_.p.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.p.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.vd("yt_logging_screen.getRootVeType",Ag1);_.vd("yt_logging_screen.getCurrentCsn",_.sU);_.vd("yt_logging_screen.getCttAuthInfo",rm);_.vd("yt_logging_screen.setCurrentScreen",_.$O);var row=function(){this.events=new Map},$Qu=function(z){var l=[];
z=_.D(z.events.values());for(var I=z.next();!I.done;I=z.next())l.push(I.value);return l};
row.prototype.clear=function(){this.events.clear()};var wLM=function(){this.logTransport=new esu;this.loggedEventRegister=new row;this.unloggedEventRegister=new row;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12431_flushTimer=new _.gm(this.flushInterval);this.JSC$12431_flushTimer.listen("tick",this.flush,!1,this)};
wLM.prototype.flush=function(){if(this.eventsCount){var z={loggedEvents:$Qu(this.loggedEventRegister),unloggedEvents:$Qu(this.unloggedEventRegister)};if(_.C("export_player_version_to_ytconfig")){var l;(l=_.sZ("PLAYER_CLIENT_VERSION"))?(l=l.split("-")[0].replace(/\./g,""),l=isNaN(Number(l))?"0":l):l="";var I=_.sZ("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var b="";I.length>1&&(b=I[I.length-1]);I=dxp(b.startsWith("canary_experiment")?"canary":b.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";z.dimensions={playerClientVersion:l,playerCanaryState:I}}this.logTransport.flush(z);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12431_flushTimer.enabled&&this.JSC$12431_flushTimer.stop()}};
var Aon=function(z){yV==null&&(yV=new wLM);var l=yV;var I=l.loggedEventRegister;z.dimensions=z.dimensions||{};z.dimensions.csn=_.sU()||"";var b=VGt(z.dimensions).join(";");if(z.records!=null)if(I.events.has(b)){var v;(v=I.events.get(b).records)==null||v.push.apply(v,_.ht(z.records))}else I.events.set(b,z);l.JSC$12431_flushTimer.enabled||l.JSC$12431_flushTimer.start();l.eventsCount++;l.eventsCount>=100&&l.flush()};var esu=function(){};
esu.prototype.flush=function(z,l){_.C("enable_client_sli_logging")&&_.cW("sliEventBatch",z,{sendIsolatedPayload:!!l})};var yV;var nY_;nY_=function(z){var l=W6n;z=z===void 0?{}:z;l=l.name;var I=IjG("SUCCESS");Aon({dimensions:z,records:[{name:l,state:"SLI_STATE_END",status:I}]})};
_.v4H=function(z,l,I,b){this.name=z;this.sliId=l;this.timeoutMs=I;this.statusOnTimeout=b;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.v4H.prototype.getId=function(){return this.sliId};
_.Zq=function(z,l){l=l===void 0?{}:l;z.ongoing||(z.ongoing=!0,z.dimensions=l,z.logSliId=JR4(),Aon({dimensions:z.dimensions,records:[{name:z.name,state:"SLI_STATE_START",sliId:z.logSliId}]}),z.timeoutMs>0&&(z.timeoutHandle=setTimeout(function(){_.HJ(z,z.statusOnTimeout)},z.timeoutMs)))};
_.HJ=function(z,l){z.ongoing&&(z.timeoutMs>0&&clearTimeout(z.timeoutHandle),z.ongoing=!1,l={dimensions:z.dimensions,records:[{name:z.name,status:IjG(l),state:"SLI_STATE_END",sliId:z.logSliId}]},Hf.register.delete(z.name+"_"+z.sliId),Aon(l))};var W6n=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var L6I=function(){wL.apply(this,arguments)};
_.m(L6I,wL);L6I.prototype.getAssociations=function(){return[]};
L6I.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var mT1=new _.Z0("highlightTextDecoratorColorMapExtension");var kyx=new _.Z0("styleRunColorMapExtension");var GC5=_.zs(["data-"]),ubG={};var Hk1={};var ft=function(z){this.wrappedPromise_=z===void 0?null:z;this.state_=0;this.JSC$12463_value_=null};
ft.prototype.then=function(z,l,I){return this.wrappedPromise_?this.wrappedPromise_.then(z,l,I):this.state_===1&&z?(z=z.call(I,this.JSC$12463_value_))&&typeof z.then==="function"?z:_.Ct(z):this.state_===2&&l?(z=l.call(I,this.JSC$12463_value_))&&typeof z.then==="function"?z:_.UQz(z):this};
ft.prototype.getValue=function(){return this.JSC$12463_value_};
ft.prototype.isRejected=function(){return this.state_==2};
gq_(ft);_.UQz=function(z){var l=new ft;z=z===void 0?null:z;l.state_=2;l.JSC$12463_value_=z===void 0?null:z;return l};
_.Ct=function(z){var l=new ft;z=z===void 0?null:z;l.state_=1;l.JSC$12463_value_=z===void 0?null:z;return l};var YlY="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var a$z=["load","abort","error"],km=function(z,l,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12483_maxAspectRatio_=z;this.disableAnimation_=l===void 0?!1:l;this.disableExifRotation_=I===void 0?!1:I;this.JSC$12483_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12483_reject_=this.resolve_=null};
km.prototype.transform=function(z){var l=this;this.mime_=z.type;Oh(u6A(z),this.dataUrlRead_,this.readError_,this);Oh(EE_(z.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,b){l.resolve_=I;l.JSC$12483_reject_=b})};
km.prototype.dataUrlRead_=function(z){this.dataUrl_=z;this.angle_!=null&&V$u(this)};
km.prototype.exifRead_=function(z){if(this.disableExifRotation_)this.angle_=0;else{a:if(z=new DataView(z),z.byteLength<2||z.getUint16(0)!==65496)z=-2;else{for(var l=2,I=z.byteLength;l<I;){var b=z.getUint16(l),v=z.getUint16(l+2);if(b===65505){l+=4;b=z.getUint32(l);v=z.getUint16(l+4);if(b!==1165519206||v!==0)break;l+=6;b=z.getUint16(l)===18761;l+=z.getUint32(l+4,b);v=z.getUint16(l,b);l+=2;for(var M=0;M<v;M++){if(z.getUint16(l,b)===274){l+=8;z=z.getUint16(l,b);break a}l+=12}}else if(b>>8!==255)break;
else l+=v+2}z=-1}switch(z){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&&V$u(this)};
km.prototype.readError_=function(){this.JSC$12483_reject_()};
var V$u=function(z){YC(z.JSC$12483_image_,a$z,z.completeTransform_,!1,z);z.JSC$12483_image_.src=_.eA(z.dataUrl_).toString();z.JSC$12483_image_.src!=$R.toString()&&z.JSC$12483_image_.src.substr(0,11)==="data:image/"||z.JSC$12483_reject_()};
km.prototype.completeTransform_=function(){if(this.JSC$12483_image_.src!=$R.toString()){var z=_.eA(this.dataUrl_),l=this.JSC$12483_image_.naturalHeight?this.JSC$12483_image_.naturalWidth/this.JSC$12483_image_.naturalHeight:null;this.invalidAspectRatio=l>this.JSC$12483_maxAspectRatio_||l<1/this.JSC$12483_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$12483_image_.naturalWidth,b=this.JSC$12483_image_.naturalHeight,v=l=0,M=this.JSC$12483_image_.naturalHeight?this.JSC$12483_image_.naturalWidth/
this.JSC$12483_image_.naturalHeight:null;M>this.JSC$12483_maxAspectRatio_?(I=this.JSC$12483_maxAspectRatio_*b,l=(I-this.JSC$12483_image_.naturalWidth)/2,this.cropped=!0):M<1/this.JSC$12483_maxAspectRatio_?(b=this.JSC$12483_maxAspectRatio_*I,v=(b-this.JSC$12483_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)M=I,I=b,b=M,M=l,l=v,v=M;switch(this.angle_){case 90:v-=I;break;case 180:l-=I;v-=b;break;case 270:l-=
b}this.cropped||this.angle_%360!==0?(z=document.createElement("canvas"),z.width=I||1,z.height=b||1,this.JSC$12483_image_.naturalWidth&&this.JSC$12483_image_.naturalHeight&&(I=z.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$12483_image_,l,v,this.JSC$12483_image_.naturalWidth,this.JSC$12483_image_.naturalHeight)),this.transformedData=_.eA(z.toDataURL(this.mime_))):this.transformedData=z}else this.transformedData=z;this.resolve_(this)}};var Rc=function(z,l){_.Y9.call(this,z);this.value=l};
_.m(Rc,_.Y9);
var mt=function(z,l,I,b,v,M,x){x=x===void 0?!1:x;_.oW.call(this);var g=this;this.JSC$12488_url_=z;this.channelId_=l;this.maxFileSizeMb_=I;this.JSC$12488_maxAspectRatio_=b;this.dropZoneEl_=v;this.rejectInvalidAspectRatio_=x;this.selectButtonEl_=M;this.JSC$12488_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new YK(this.dropZoneEl_);this.selectOverlay_=new TJ(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12488_image_=this.transfer_=null;this.handler_=new _.GR(this);_.kN(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(M,"click",function(){g.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.m(mt,_.oW);mt.prototype.disposeInternal=function(){for(var z=this.selectButtonEl_.nextSibling;z&&z.parentNode&&z.tagName=="INPUT";)z.parentNode.removeChild(z),z=this.selectButtonEl_.nextSibling;this.cancel();_.oW.prototype.disposeInternal.call(this)};
mt.prototype.uploadPromise=function(){if(this.JSC$12488_image_==null)return null;this.uploadPromise_||jV4(this);return this.uploadPromise_};
mt.prototype.cancel=function(){Jo4(this);this.JSC$12488_image_=null};
var Jo4=function(z){z.transfer_&&z.transfer_.cancel();z.transfer_=null;z.uploadPromise_=null;z.resolve_=null;z.JSC$12488_reject_=null},jV4=function(z){Jo4(z);
z.transfer_=_.oAn(z.JSC$12488_url_,{"X-YouTube-ChannelId":z.channelId_},z.JSC$12488_image_);z.handler_.listenOnce(z.transfer_,"l",z.JSC$12490_onUploadComplete_);z.handler_.listenOnce(z.transfer_,"n",z.onUploadError_);z.transfer_.run();z.uploadPromise_=new Promise(function(l,I){z.resolve_=l;z.JSC$12488_reject_=I})};
_.p=mt.prototype;_.p.onChange_=function(z){z.files.length&&(this.JSC$12488_image_=z.files[0],this.JSC$12488_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12488_image_=null,this.dispatchEvent(new Rc("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(jV4(this),(new km(this.JSC$12488_maxAspectRatio_)).transform(this.JSC$12488_image_).then((0,_.YN)(this.onPreview_,this),(0,_.YN)(this.onPreviewError_,this))))};
_.p.onPreview_=function(z){if(z.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12488_image_=null),this.dispatchEvent(new Rc("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;z.cropped&&this.dispatchEvent(new Rc("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Rc("yt.comments.ImageUploadOverlay.CHANGE_EVENT",z.transformedData))};
_.p.onPreviewError_=function(){this.JSC$12488_image_=null;this.dispatchEvent(new Rc("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.p.onHover_=function(z){z.stopPropagation();z.preventDefault();if(z.type==="dragover")z=!0;else if(z.type==="dragleave")z=!1;else return;this.dispatchEvent(new Rc("yt.comments.ImageUploadOverlay.HOVER_EVENT",z))};
_.p.JSC$12490_onUploadComplete_=function(){var z=(0,_.S7u)(this.transfer_.getResponseText());this.resolve_(z.encryptedBlobId)};
_.p.onUploadError_=function(){this.JSC$12488_reject_();Jo4(this)};var zFp=function(z){z=z||{};var l={},I={};this.url=z.url||"";this.args=z.args||_.h7.clone(l);this.assets=z.assets||{};this.attrs=z.attrs||_.h7.clone(I);this.fallback=z.fallback||null;this.fallbackMessage=z.fallbackMessage||null;this.html5=!!z.html5;this.disable=z.disable||{};this.loaded=!!z.loaded;this.messages=z.messages||{}};
zFp.prototype.clone=function(){var z=new zFp,l;for(l in this)if(this.hasOwnProperty(l)){var I=this[l];_.Vu(I)=="object"?z[l]=_.h7.clone(I):z[l]=I}return z};var lWn,IW4,bfu,l9,MTu,pE_,DdA,xdA,Ofn,gj4,GqI,NUM,Ej_,ue_,Zfj,Hfu,y$u,fWI,C0u,kqI,RFI,mdj,KWM,tTj,BUw,XE_,q3_,if_,FW_,ObS,QJj,Y3_,TUM,c$n,S34,ddA,ojj,P0n,hFu,sJA,xD7,r$u,$d0,eFM,wEI,A$z,WWw,nj4,LW0,Ud_,aWw,VT_,jJ_,J$M,zG_,lR_,Kt,IR4,by_,vJ_,M5z,pDu,Dm_,xm0,Oy_,gJ4,GMn,NP0,EJI,uHI,ZyA,HyM,ynw,fR0,CLz,kMI,pBH,RGM,mmM,Kr_,t5z,BPA,XDz,qsM,iyz,FrI,QnA,YsI,TPM,cn0,Ss_,dmA,oJM,PLw,hGj,sn_,rnj,$m4,eGu,wDz,Anu,WrA;lWn=["account/accounts_list"];IW4=["acknowledge_channel_tou_strike"];bfu=["notification/add_upcoming_event_reminder"];
_.vjj=["att/get"];l9=["browse","music/browse","unplugged/browse"];MTu=["channel/claim_legacy_youtube_channel"];pE_=["history/clear_search_history"];DdA=["history/clear_watch_history"];xdA=["comment/perform_comment_action"];Ofn=["comment/get_comment_replies"];gj4=["ypc/commerce_action"];GqI=["backstage/create_post"];NUM=["live/create_broadcast"];Ej_=["channel/create_channel"];ue_=["comment/create_comment_reply"];Zfj=["comment/create_comment"];Hfu=["live_chat/create_poll"];y$u=["playlist/create"];
fWI=["decorate_message"];C0u=["live_chat/delete_message"];kqI=["playlist/delete"];RFI=["video/delete"];mdj=["like/dislike"];KWM=["dismissal/dismiss"];tTj=["flag/flag"];BUw=["flow"];XE_=["account/account_menu"];q3_=["playlist/get_add_to_playlist"];if_=["get_answer"];FW_=["channel/get_channel_creation_form"];ObS=["offline/get_download_action"];QJj=["kids/get_kids_blocklist_picker"];Y3_=["live_chat/get_item_context_menu"];TUM=["live_chat/get_live_chat_message_buy_flow"];c$n=["live_chat/get_live_chat_replay"];
S34=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];ddA=["live_chat/get_live_chat_super_sticker_buy_flow"];ojj=["notification/get_notification_menu"];P0n=["playlist/get_settings_editor"];hFu=["backstage/get_post_video_preview"];sJA=["account/get_profile_card"];xD7=["share/get_share_panel"];r$u=["share/get_sharing_provider_data"];$d0=["get_survey"];eFM=["notification/get_unseen_count"];wEI=["get_user_mention_suggestions"];A$z=["get_watch"];WWw=["guide"];
nj4=["feedback"];LW0=["kids/update_blacklist"];Ud_=["like/like"];aWw=["live_chat/live_chat_action"];VT_=["live_chat/manage_user"];jJ_=["video_manager/metadata_update"];J$M=["live_chat/moderate"];zG_=["notification/modify_channel_preference"];lR_=["notification/opt_out"];Kt=["get_panel","get_posts_by_host_panel"];IR4=["player"];by_=["browse/edit_playlist"];vJ_=["notification/record_interactions"];M5z=["reel/reel_item_watch"];pDu=["reel/reel_watch_sequence"];Dm_=["like/removelike"];xm0=["notification/remove_upcoming_event_reminder"];
Oy_=["flag/get_form"];gJ4=["miniapp/report_value"];GMn=["navigation/resolve_url"];NP0=["channel/reveal_business_email"];EJI=["in_video/search"];uHI=["search","sfv/search","unplugged/search"];ZyA=["live_chat/send_message"];HyM=["live_chat/send_live_chat_vote"];ynw=["account/set_setting"];fR0=["submit_caption_correction"];CLz=["submit_form"];kMI=["subscription/subscribe"];pBH=["get_transcript"];RGM=["resolve_location","unplugged/resolve_location"];mmM=["subscription/unsubscribe"];Kr_=["backstage/update_post"];
t5z=["channel_edit/update_channel_page_settings"];BPA=["comment/update_comment_reply"];XDz=["comment/update_comment"];qsM=["comment/update_comments_settings"];iyz=["creator/update_creator_channel"];FrI=["pdg/update_enablement"];QnA=["updated_metadata"];YsI=["channel_edit/validate_channel_handle"];TPM=["verify_age"];cn0=["next","unplugged/watch_next"];Ss_=["whitelist/edit"];dmA=["ypc/cancel_recurrence"];oJM=["ypc/complete_transaction"];PLw=["ypc/get_cart"];hGj=["ypc/get_fix_instrument_params"];
sn_=["ypc/get_offers"];rnj=["ypc/get_payment_instruments_params"];$m4=["ypc/handle_transaction"];eGu=["ypc/log_payment_server_analytics"];wDz=["ypc/pause_subscription"];Anu=["ypc/redeem_code"];WrA=["ypc/resume_subscription"];var nJp=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,274188,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,
27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,
46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,
72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,
211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,
74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,
17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,
139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,
265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,
95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,
130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,
10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,
174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,
17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var Rm=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.vd("yt.msgs_",Rm);var tM=new _.yH("ACTION_ROUTER_TOKEN");_.Bf=function(){this.autonavState_=_.C("kevlar_is_pupi_enabled")?2:wK$()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Bf.prototype.getState=function(){return this.autonavState_};
_.Bf.prototype.pause=function(z){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=z):this.autonavState_==1&&(this.disabledAutonavPauseReason_=z)};
_.Bf.prototype.setState=function(z,l,I){l&&(this.autoplayChangedByUser=!0);l=this.autonavState_===3||z===3;this.autonavState_!=z&&(this.autonavState_=z,z!=3&&_.Av$(z==2),z=_.C("kevlar_is_pupi_enabled")?I||l:!0,_.WW.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,z,I))};
_.Bf.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.O9(_.Bf);var XT=function(){this.hasRun=!1};var q1={},Iik=(q1.auto_search="LATENCY_ACTION_AUTO_SEARCH",q1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",q1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",q1.app_startup="LATENCY_ACTION_APP_STARTUP",q1.browse="LATENCY_ACTION_BROWSE",q1.cast_splash="LATENCY_ACTION_CAST_SPLASH",q1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",q1.channels="LATENCY_ACTION_CHANNELS",q1.chips="LATENCY_ACTION_CHIPS",q1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",q1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
q1.editor="LATENCY_ACTION_EDITOR",q1.embed="LATENCY_ACTION_EMBED",q1.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",q1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",q1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",q1.explore="LATENCY_ACTION_EXPLORE",q1.favorites="LATENCY_ACTION_FAVORITES",q1.home="LATENCY_ACTION_HOME",q1.inboarding="LATENCY_ACTION_INBOARDING",q1.landing="LATENCY_ACTION_LANDING",q1.learning="LATENCY_ACTION_LEARNING",
q1.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",q1.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",q1.library="LATENCY_ACTION_LIBRARY",q1.live="LATENCY_ACTION_LIVE",q1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",q1.management="LATENCY_ACTION_MANAGEMENT",q1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",q1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",q1.onboarding="LATENCY_ACTION_ONBOARDING",q1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
q1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",q1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",q1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",q1.prebuffer="LATENCY_ACTION_PREBUFFER",q1.prefetch="LATENCY_ACTION_PREFETCH",q1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",q1.profile_switcher="LATENCY_ACTION_LOGIN",q1.projects="LATENCY_ACTION_PROJECTS",q1.reel_watch="LATENCY_ACTION_REEL_WATCH",q1.results="LATENCY_ACTION_RESULTS",q1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
q1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",q1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",q1.review="LATENCY_ACTION_REVIEW",q1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",q1.search_ui="LATENCY_ACTION_SEARCH_UI",q1.search_suggest="LATENCY_ACTION_SUGGEST",q1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",q1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",q1.seek="LATENCY_ACTION_PLAYER_SEEK",q1.settings="LATENCY_ACTION_SETTINGS",q1.store="LATENCY_ACTION_STORE",
q1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",q1.tenx="LATENCY_ACTION_TENX",q1.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",q1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",q1.watch="LATENCY_ACTION_WATCH",q1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",q1["watch,watch7"]="LATENCY_ACTION_WATCH",q1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",q1["watch,watch7ad"]="LATENCY_ACTION_WATCH",q1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",q1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
q1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",q1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",q1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",q1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",q1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",q1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",q1.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",q1),yiu=0;var Kjp=function(z,l){eG.call(this,1,arguments);this.timer=l};
_.m(Kjp,eG);var mYY=new BcS("aft-recorded",Kjp);var pop=_.v7.ytLoggingGelSequenceIdObj_||{};_.vd("ytLoggingGelSequenceIdObj_",pop);var iS=_.v7.ytLoggingLatencyUsageStats_||{};_.vd("ytLoggingLatencyUsageStats_",iS);var FT=function(){this.cleanupJob=0},ORx=function(){FT.instance||(FT.instance=new FT);
return FT.instance};
_.p=FT.prototype;_.p.baseline=function(z,l,I){QV(this,"baseline_"+z)||_.cW("latencyActionBaselined",{clientActionNonce:z},{timestamp:l,cttAuthInfo:I})};
_.p.tick=function(z,l,I,b){QV(this,"tick_"+z+"_"+l)||_.cW("latencyActionTicked",{tickName:z,clientActionNonce:l},{timestamp:I,cttAuthInfo:b})};
_.p.info=function(z,l,I){var b=Object.keys(z).join("");QV(this,"info_"+b+"_"+l)||(z=Object.assign({},z),z.clientActionNonce=l,_.cW("latencyActionInfo",z,{cttAuthInfo:I}))};
_.p.jspbInfo=function(z,l,I){for(var b="",v=0;v<d4(z).length;v++)d4(z)[v]!==void 0&&(b=v===0?b.concat(""+v):b.concat("_"+v));QV(this,"info_"+b+"_"+l)||(_.Th(z,2,l),l={cttAuthInfo:I},I=_.C("jspb_sparse_encoded_pivot")?new XL([{}]):new XL,_.Xr(I,7,iQ0,z),DYf("latencyActionInfo",I,l))};
_.p.span=function(z,l,I){var b=Object.keys(z).join("");QV(this,"span_"+b+"_"+l)||(z.clientActionNonce=l,_.cW("latencyActionSpan",z,{cttAuthInfo:I}))};
var QV=function(z,l){iS[l]=iS[l]||{count:0};var I=iS[l];I.count++;I.time=(0,_.Dr)();z.cleanupJob||(z.cleanupJob=_.qA(_.ow,function(){var b=(0,_.Dr)(),v;for(v in iS)iS[v]&&b-iS[v].time>6E4&&delete iS[v];z&&(z.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.qB("CSI data exceeded logging limit with key",l.split("_")),l.indexOf("plev")>=0||_.PW(I)),!0):!1};var Lr4,Umu;Lr4=window;Umu=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Qi=Lr4.performance||Lr4.mozPerformance||Lr4.msPerformance||Lr4.webkitPerformance||new Umu;var RUG=!1,GrS=!1,tFH=(0,_.YN)(_.Qi.clearResourceTimings||_.Qi.webkitClearResourceTimings||_.Qi.mozClearResourceTimings||_.Qi.msClearResourceTimings||_.Qi.oClearResourceTimings||_.Tn,_.Qi);var aRA=window;aRA.ytcsi&&(aRA.ytcsi.infoGel=_.om,aRA.ytcsi.tick=_.sK);var dYQ=function(z){eG.call(this,1,arguments);this.csn=z};
_.m(dYQ,eG);var Q8H=new BcS("screen-created",dYQ),jpG=[],SeS=VFQ,Ji7=0,AH=new Map,obH=new Map,PXY=new Map;var wY7=Symbol("Af"),Ih=new WeakMap;var Ym=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},QP=function(){Ym.instance||(Ym.instance=new Ym);
return Ym.instance};
_.p=Ym.prototype;_.p.setClient=function(z){this.client=z};
_.p.JSC$12569_newScreen=function(){this.clear();this.csn=_.sU()};
_.p.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.p.reportShown=function(z,l,I){var b=this.JSC$12569_getTrackingParams(z),v=z.visualElement?z.visualElement:b;l=this.shownElements.has(v);var M=this.visibleState.get(v);this.shownElements.add(v);this.visibleState.set(v,!0);z.impressionLog&&!l&&z.impressionLog();if(b||z.visualElement)if(I=V5A(this,z,I))if(v=jnw(this,z),TW(this,z)||v){b=z.visualElement?z.visualElement:_.ch(b);var x=z.interactionLoggingClientData;v||l?TW(this,z)&4?M||Wj7(this.client,I,b,x):TW(this,z)&1&&!l&&eUx(this.client,I,b,x):eUx(this.client,
I,b,x)}};
_.p.reportHidden=function(z,l,I){var b=this.JSC$12569_getTrackingParams(z),v=z.visualElement?z.visualElement:b;l=this.hiddenElements.has(v);var M=this.visibleState.get(v);this.hiddenElements.add(v);this.visibleState.set(v,!1);if(M===!1)return!0;if(!b&&!z.visualElement)return!1;I=V5A(this,z,I);if(!I||!TW(this,z)&&jnw(this,z))return!1;b=z.visualElement?z.visualElement:_.ch(b);TW(this,z)&8?nbH(this.client,I,b):TW(this,z)&2&&!l&&(z=this.client,l=wC({cttAuthInfo:rm(I)||void 0},I),b={csn:I,ve:b.getAsJson(),
eventType:2},I==="UNDEFINED_CSN"?nM("visualElementHidden",l,b):z?Y7("visualElementHidden",b,z,l):_.cW("visualElementHidden",b,l));return!0};
_.p.JSC$12569_getTrackingParams=function(z){var l=this.getData(z),I,b;if(_.C("il_use_view_model_logging_context")&&(l==null?0:(I=l.context)==null?0:(b=I.loggingContext)==null?0:b.loggingDirectives))return l.context.loggingContext.loggingDirectives.trackingParams||"";var v,M;if(l==null?0:(v=l.rendererContext)==null?0:(M=v.loggingContext)==null?0:M.loggingDirectives)return l.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(l==null?0:l.loggingDirectives)return l.loggingDirectives.trackingParams||
"";var x;return((x=z.veContainer)==null?0:x.trackingParams)?z.veContainer.trackingParams:(l==null?void 0:l.trackingParams)||""};
_.p.JSC$12569_elementShouldLogGesture=function(z,l){z=this.getData(z);return!!((Math.floor(Number(z&&z.loggingDirectives&&z.loggingDirectives.gestures&&z.loggingDirectives.gestures.types||""))||0)&l)};
_.p.JSC$12569_getNearestParentVe=function(z){var l=this.JSC$12569_getTrackingParams(z);return z.visualElement?z.visualElement:l?_.ch(l):z.parentElement?this.JSC$12569_getNearestParentVe(z.parentElement):null};
var V5A=function(z,l,I){var b=_.sU(I);return z.csn===null||b===z.csn||I?b:(z=new _.qB("VisibilityLogger called before newScreen",{caller:l.tagName,previous_csn:z.csn,current_csn:b}),_.PW(z),null)};
Ym.prototype.getData=function(z){var l,I=z.data||((l=z.props)==null?void 0:l.data);if(!I||z.isWebComponentWrapper){var b;I=(b=Ih.get(z))==null?void 0:b[wY7]}return I};
var jnw=function(z,l){var I;return!((I=z.getData(l))==null||!I.loggingDirectives)},TW=function(z,l){z=z.getData(l);
return Math.floor(Number(z&&z.loggingDirectives&&z.loggingDirectives.visibility&&z.loggingDirectives.visibility.types||""))||1};var cf;cf=function(){};
_.Xa=function(){cf.instance||(cf.instance=new cf);return cf.instance};
cf.prototype.setClient=function(z){_.em(QP().setClient).bind(QP())(z)};
_.JnA=function(){_.Xa();_.em(QP().JSC$12569_newScreen).bind(QP())()};
cf.prototype.clear=function(){_.em(QP().clear).bind(QP())()};
cf.prototype.reportShown=function(z,l,I){_.em(QP().reportShown).bind(QP())(z,l,I)};
cf.prototype.reportHidden=function(z,l,I){return _.em(QP().reportHidden).bind(QP())(z,l,I)};
var RYY=function(z,l){return _.em(QP().JSC$12569_getTrackingParams).bind(QP())(l)},AkQ=function(z,l){return _.em(QP().JSC$12569_getNearestParentVe).bind(QP())(l)};var Sa,zBn;Sa=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};
_.iY=function(){Sa.instance||(Sa.instance=new Sa);return Sa.instance};
Sa.prototype.setClient=function(z){this.client=z};
zBn=function(z,l,I){I=I===void 0?{}:I;_.em(function(){var b,v,M,x=((b=_.k(l==null?void 0:l.commandMetadata,_.kB))==null?void 0:b.rootVe)||((v=_.k(l==null?void 0:l.commandMetadata,$lu))==null?void 0:(M=v.screenVisualElement)==null?void 0:M.uiType);if(x){b=_.k(l==null?void 0:l.commandMetadata,Tbz);if(b==null?0:b.parentTrackingParams){var g=_.ch(b.parentTrackingParams);if(b.parentCsn)var G=b.parentCsn}else I.clickedVisualElement?g=I.clickedVisualElement:l.clickTrackingParams&&(g=_.ch(l.clickTrackingParams));
a:{b=_.k(l,_.zb);v=_.k(l,ojY);if(b){if(v=W1G(b,"VIDEO")){b={token:v,videoId:b.videoId};break a}}else if(v&&(b=W1G(v,"PLAYLIST"))){b={token:b,playlistId:v.playlistId};break a}b=void 0}I=Object.assign({},{cttAuthInfo:b,parentCsn:G},I);if(_.C("expectation_logging")){var u;I.loggingExpectations=((u=_.k(l==null?void 0:l.commandMetadata,$lu))==null?void 0:u.loggingExpectations)||void 0}_.db(z,x,g,I)}else _.PW(new _.qB("Error: Trying to create a new screen without a rootVeType",l))})()};
_.db=function(z,l,I,b){b=b===void 0?{}:b;_.em(function(){nJp.includes(l)||(_.PW(new _.qB("createClientScreen() called with a non-page VE",l)),l=83769);b.isHistoryNavigation||(z.forwardHistoryStack=[],z.backHistoryStack.push({rootVe:l,key:b.key||""}));z.graftQueue=[];z.stateChangedQueue=[];b.dataPromises?lz_(z,l,I,b):Iz_(z,l,I,b)})()};
_.b5n=function(z,l,I){I=I===void 0?0:I;_.em(function(){l.then(function(b){z.pendingScreenCreation.has(I)&&z.pendingScreenFn&&z.pendingScreenFn();var v=_.sU(I),M=_.h8(I);if(v&&M){var x={automatedLogEventSource:3},g;(b==null?0:(g=b.response)==null?0:g.trackingParams)&&Wu(z.client,v,M,_.ch(b.response.trackingParams),!1,x);var G;(b==null?0:(G=b.playerResponse)==null?0:G.trackingParams)&&Wu(z.client,v,M,_.ch(b.playerResponse.trackingParams),!1,x)}})})()};
Sa.prototype.graftServerVe=function(z,l,I){var b=this;return _.em(function(){var v=_.ch(z);_.oc(b,v,l,I);return v})()};
_.WKY=function(z,l,I,b){return _.C("enable_client_ve_spec")&&l.clientVeSpec?(l=_.kU(l.clientVeSpec.uiType,void 0,l.clientVeSpec.elementIndex,l.clientVeSpec.clientYoutubeData,void 0,l),_.oc(z,l,I,b)?l:null):l.trackingParams?z.graftServerVe(l.trackingParams,I,b):null};
_.q8=function(z,l,I,b){return _.em(function(){if(!l.veType)return _.oy(new _.qB("Error: Trying to graft a client VE without a veType.")),null;if(l.visibilityTypes){var v=l.visibilityTypes.reduce(function(M,x){return M|x});
v={visibility:{types:String(v)}}}v=_.kU(l.veType,l.visualElement,l.elementIndex,l.clientYouTubeData,void 0,v);return _.oc(z,v,I,b)?v:null})()};
_.oc=function(z,l,I,b){b=b===void 0?0:b;return _.em(function(){if(z.pendingScreenCreation.has(b))return z.graftQueue.push([l,I]),!0;var v=_.sU(b),M=I||_.h8(b);if(v&&M){if(_.C("combine_ve_grafts")){var x=z.cachedVisualElements.get(M.toString());x?x.push(l):(z.cachedRootVisualElements.set(M.toString(),M),z.cachedVisualElements.set(M.toString(),[l]));z.attachTimeout||(z.attachTimeout=_.qA(_.ow,function(){vQ_(z,v)},1200))}else Wu(z.client,v,M,l);
return!0}return!1})()};
_.Pf=function(z,l,I){I=I===void 0?0:I;var b=z.recurringGrafts.get(I)||new Map;if(_.C("smarter_ve_dedupping"))for(var v=Array.from(b.keys()),M=0;M<v.length;M++){var x=void 0,g=void 0;var G=l;var u=v[M];u.isClientVe()&&G.isClientVe()?(x=G.getAsJson(),g=u.getAsJson(),G=x.veType!==g.veType||x.elementIndex!==g.elementIndex||x.dataElement!==g.dataElement||G.getLoggingDirectives()!==u.getLoggingDirectives()?!1:!0):G=u.veData.trackingParams!==void 0&&G.veData.trackingParams!==void 0?((g=G.veData)==null?void 0:
g.trackingParams)===((x=u.veData)==null?void 0:x.trackingParams):!1;if(G)return}else if(b.has(l))return;b.set(l,void 0);z.recurringGrafts.set(I,b);_.sU(I)==="UNDEFINED_CSN"||z.pendingScreenCreation.has(I)||_.oc(z,l,void 0,I)};
_.hM=function(z,l,I,b){b=_.sU(b===void 0?0:b);if(!b)return!1;UYt(z.client,b,l,I);return!0};
_.sE=function(z,l,I,b){if(!l)return!1;b=_.sU(b===void 0?0:b);if(!b)return!1;UYt(z.client,b,_.ch(l),I);return!0};
_.JN=function(z,l){var I=l.getScreenLayer&&l.getScreenLayer();if(l.visualElement)return _.hM(z,l.visualElement,void 0,I);l=RYY(_.Xa(),l);return _.sE(z,l,void 0,I)};
Sa.prototype.clickCommand=function(z,l,I){return _.sE(this,z.clickTrackingParams,l,I===void 0?0:I)};
Sa.prototype.stateChanged=function(z,l,I){this.visualElementStateChanged(_.ch(z),l,I===void 0?0:I)};
Sa.prototype.visualElementStateChanged=function(z,l,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([z,l]):this.logStateChanged(z,l,I)};
Sa.prototype.logStateChanged=function(z,l,I){I=I===void 0?0:I;var b=_.sU(I);z=z||_.h8(I);return b&&z?(aiQ(this.client,b,z,l),!0):!1};
var lz_=function(z,l,I,b){b=b===void 0?{}:b;z.pendingScreenCreation.add(b.layer||0);z.pendingScreenFn=function(){Iz_(z,l,I,b);var x=_.h8(b.layer);if(x){for(var g=_.D(z.graftQueue),G=g.next();!G.done;G=g.next())G=G.value,_.oc(z,G[0],G[1]||x,b.layer);x=_.D(z.stateChangedQueue);for(g=x.next();!g.done;g=x.next())g=g.value,z.logStateChanged(g[0],g[1])}};
I||_.sU(b.layer)||z.pendingScreenFn();if(b.dataPromises)for(var v=_.D(b.dataPromises),M=v.next();!M.done;M=v.next())_.b5n(z,M.value,b.layer);else _.dE(Error("Bf"))},Iz_=function(z,l,I,b){b=b===void 0?{}:b;
var v=void 0;b.layer||(b.layer=0);v=b.parentLayer!==void 0?b.parentLayer:b.layer;var M=_.sU(v);v=_.h8(v);var x=I||v,g;x&&(b.parentCsn!==void 0?g={clientScreenNonce:b.parentCsn,visualElement:x}:M&&M!=="UNDEFINED_CSN"&&(g={clientScreenNonce:M,visualElement:x}));var G,u=_.sZ("EVENT_ID");M==="UNDEFINED_CSN"&&u&&(G={servletData:{serializedServletEventId:u}});_.C("combine_ve_grafts")&&M&&vQ_(z,M);_.C("no_client_ve_attach_unless_shown")&&x&&M&&$Y$(x,M);try{var Z=_.hUp(z.client,l,g,b.csnToClone,b.cttAuthInfo,
G,b.implicitGestureType,void 0,b.loggingExpectations)}catch(f){_.hK(f,{rootVeType:l,rootVe:v,parentVisualElement:I,currentCsn:M,parentEl:g,csnToClone:b.csnToClone});_.dE(f);return}_.$O(Z,l,b.layer,b.cttAuthInfo);M&&M!=="UNDEFINED_CSN"&&v&&!Ux$(M)&&nbH(z.client,M,v,!0);z.backHistoryStack[z.backHistoryStack.length-1]&&!z.backHistoryStack[z.backHistoryStack.length-1].csn&&(z.backHistoryStack[z.backHistoryStack.length-1].csn=Z||"");_.om({clientScreenNonce:Z});_.JnA();var H=_.h8(b.layer);M&&M!=="UNDEFINED_CSN"&&
H&&(_.C("web_mark_root_visible")||_.C("music_web_mark_root_visible"))&&_.am(Z,H);z.pendingScreenCreation.delete(b.layer||0);z.pendingScreenFn=void 0;var y;(y=z.recurringGrafts.get(b.layer))==null||y.forEach(function(f,R){f?_.oc(z,R,f,b.layer):H&&_.oc(z,R,H,b.layer)});
MqI(z)},MqI=function(z){for(var l=0;l<z.afterNewScreenOneOffJobs.length;l++){var I=z.afterNewScreenOneOffJobs[l];
try{I()}catch(b){_.dE(b)}}for(l=z.afterNewScreenOneOffJobs.length=0;l<z.afterNewScreenRecurringJobs.length;l++){I=z.afterNewScreenRecurringJobs[l];try{I()}catch(b){_.dE(b)}}},vQ_=function(z,l){if(l===void 0)for(var I=nIx(),b=0;b<I.length;b++)I[b]!==void 0&&vQ_(z,I[b]);
else z.cachedVisualElements.forEach(function(v,M){(M=z.cachedRootVisualElements.get(M))&&spx(z.client,l,M,v)}),z.cachedVisualElements.clear(),z.cachedRootVisualElements.clear(),z.attachTimeout=void 0};var rb=function(z){z=z===void 0?{layer:0}:z;this.hasRun=!1;this.createScreenConfig=z;z={};this.oc0=(z.response=!1,z.playerResponse=!1,z)};
_.m(rb,XT);rb.prototype.validate=function(z){return!(!z.data||!z.data.response&&!z.data.playerResponse)};
rb.prototype.handle=function(z){var l=_.iY(),I=this.createScreenConfig.layer;z.data.response&&z.data.response.trackingParams&&!this.oc0.response&&(l.graftServerVe(z.data.response.trackingParams,void 0,I),this.oc0.response=!0);z.data.playerResponse&&z.data.playerResponse.trackingParams&&!this.oc0.playerResponse&&(l.graftServerVe(z.data.playerResponse.trackingParams,void 0,I),this.oc0.playerResponse=!0)};var $m=function(){this.nj=_.b1();this.lv=[];this.oUM=0};
$m.prototype.processChunk=function(z){if(z){for(var l=_.D(this.lv),I=l.next();!I.done;I=l.next())I=I.value,I.validate(z)&&(I.handle(z),I.hasRun=!0);_.sK("np"+this.oUM);this.oUM++}};var bi={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var Dbu=function(){var z=pmA;this.observers=[];this.value=z};
_.p=Dbu.prototype;_.p.subscribe=function(z){var l=this;if(z.idx!=null)throw Error("Df");z.idx=this.observers.length;this.observers.push(z);return function(){var I=l.observers[l.observers.length-1];l.observers[z.idx]=I;I.idx=z.idx;l.observers.pop()}};
_.p.update=function(z){this.value=z(this.value);this.notify()};
_.p.mutate=function(z){z(this.value);this.notify()};
_.p.set=function(z){this.value=z;this.notify()};
_.p.notify=function(){for(var z=_.D(this.observers),l=z.next();!l.done;l=z.next()){l=l.value;try{l(this.value)}catch(I){}}};var EhQ,xbu,G24;_.KE=function(z,l,I,b,v,M,x){x=x===void 0?[]:x;this.buildCommandPayload=z;this.navigate=l;this.handleServiceRequest=I;this.sendAction=b;this.JSC$12615_screenManager=v;this.commandResolverMap=M;this.autoLogResolverAllowlist=x;this.pendingCommands=new Set;this.isTracingEnabled=!1;xbu(this)};
EhQ=function(z,l,I){var b=Jk1,v=zuH,M=_.iY(),x=O5n;I=I===void 0?[]:I;_.KE.instance=new _.KE(z,l,b,v,M,x,I)};
xbu=function(z){if(!z.isTracingEnabled&&ltk("command")){var l=z.resolveCommand;z.resolveCommand=function(I,b){a:{for(v in I)if(Object.prototype.hasOwnProperty.call(I,v)){var v={commandType:v};break a}v={}}return bw1("command",v,l.bind(this,I,b))};
z.isTracingEnabled=!0}};
G24=function(z,l,I){if(!z.commandResolverMap)return!1;var b=xku(l,z.commandResolverMap);return b?((z.autoLogResolverAllowlist.some(function(v){return!!_.k(l,v)})||(I==null?0:I.forceClickLogging))&&gQj(z,l,I),b instanceof Promise?b.then(function(v){v.resolve(l,I)}):b.resolve(l,I),!0):!1};
_.KE.prototype.resolveCommand=function(z,l){var I=this,b=NA0(z);if(G24(this,z,l))return!0;if(b)return EQI(this,z,l);if(!this.buildCommandPayload)return MoQ(z,"Unhandled command by buildCommandPayload"),!1;var v=this.buildCommandPayload(z,l);if(l==null?0:l.commandController)v.commandController=l.commandController;if(v.type===0){if(!this.navigate)return pTt(z,"navigate"),!1;if(!uJw(v.command))return MoQ(z,"Page requests need to specify a url"),!1;_.C("logging_avoid_blocking_during_navigation")&&_.EUQ().transition("application_navigating");
z=this.navigate(v)||[];y7p(z).then(function(){I.pendingCommands.delete(v.command)});
return!0}if(v.type===1){if(!this.handleServiceRequest)return pTt(z,"handleServiceRequest"),!1;(l==null?0:l.forceClickLogging)&&gQj(this,v.command,l);z=this.handleServiceRequest(v);y7p(z).then(function(){I.pendingCommands.delete(v.command)});
return!0}if(v.type===2){if(!this.sendAction)return pTt(z,"sendAction"),!1;gQj(this,v.command,l);this.sendAction(v);return!0}return!1};
var gQj=function(z,l,I){if((I==null||!I.disableClickTracking)&&z.JSC$12615_screenManager)if(l.clickTrackingParams&&_.C("log_click_with_layer_from_element_in_command_handler")){var b;I=I==null?void 0:(b=I.form)==null?void 0:b.element;z.JSC$12615_screenManager.clickCommand(l,null,I&&I.getScreenLayer&&I.getScreenLayer())}else l.clickTrackingParams?z.JSC$12615_screenManager.clickCommand(l):!_.C("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.hM(z.JSC$12615_screenManager,
I.clickedVisualElement)},NA0=function(z){var l=!!_.k(z,_.yi),I;
z=((I=_.k(z,_.CM))==null?void 0:I.signal)==="CLIENT_SIGNAL";return l||z},EQI=function(z,l,I){var b=_.k(l,_.yi);
if(b)var v=(b==null?void 0:b.commands)||[];else{var M;if(((M=_.k(l,_.CM))==null?void 0:M.signal)==="CLIENT_SIGNAL"){var x;v=((x=_.k(l,_.CM))==null?void 0:x.actions)||[]}}if(v){l=_.D(v);for(v=l.next();!v.done;v=l.next()){v=v.value;try{z.resolveCommand(v,I)}catch(g){g instanceof Error&&_.dE(g)}}return!0}MoQ(l,"Could not handle the meta command");return!1},uJw=function(z){var l;
return!((l=_.k(z==null?void 0:z.commandMetadata,_.kB))==null||!l.url)};var ea=function(){XT.apply(this,arguments)};
_.m(ea,XT);ea.prototype.validate=function(z){var l,I;return!this.hasRun&&!!((l=z.data.response)==null?0:(I=l.onResponseReceivedEndpoints)==null?0:I.length)};
ea.prototype.handle=function(z){var l=_.KE.instance;z=_.D(z.data.response.onResponseReceivedEndpoints);for(var I=z.next();!I.done;I=z.next())l.resolveCommand(I.value)};var Z5_,H5u,yZA;
Z5_=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Hu();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.wb=function(){H5u||(H5u=new Z5_);return H5u};
yZA=function(){var z=_.wb();z.miniplayerButtonActivation=!1;z.userActivation=!1;z.playlistWatchPageActivation=!1;z.productDetailsPageActivation=!1;z.miniAppPageActivation=!1;z.playablesDestPageActivation=!1;z.lockupActivation=!1;z.showMiniplayerCommandActivation=!1;z.playlistSuggestionsShelfActivation=!1;z.mediaSessionPipActivation=!1;z.watchPipActivation=!1;z.watchWhileActivation=!1;z.shortsPipActivation=!1};
_.fz_=function(){var z=_.wb(),l=z.mediaSessionPipActivation,I=z.watchPipActivation,b=z.watchWhileActivation,v=z.playlistWatchPageActivation,M=z.lockupActivation,x=z.showMiniplayerCommandActivation,g=z.navigatingAwayFromWatchDeletedVideo,G=z.shortsPipActivation,u=z.playlistSuggestionsShelfActivation,Z=z.productDetailsPageActivation,H=z.miniAppPageActivation,y=z.playablesDestPageActivation;return!z.miniplayerButtonActivation&&!v&&!u&&!Z&&!H&&!y&&!M&&!x&&!l&&!I&&!b&&!G||g};var GE5;_.AM=_.MF("FEwhat_to_watch","/",3854);_.N91=_.MF("FEdownloads","/feed/downloads",42352);GE5=_.MF("FEmusic_offline","browse/FEmusic_offline",42352);var bc=function(z,l){l=l===void 0?[]:l;var I=I===void 0?[]:I;l=idu.apply(null,[FJY.apply(null,_.ht(l))].concat(_.ht(I)));this.store=czH(z,void 0,l)};
bc.prototype.getState=function(){return this.store.getState()};
bc.prototype.dispatch=function(z){return this.store.dispatch(z)};
bc.prototype.subscribe=function(z){return this.store.subscribe(z)};
bc.prototype.replaceReducer=function(z){return this.store.replaceReducer(z)};
bc.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Wf=function(z,l,I){var b=l(z.getState());return z.subscribe(function(){var v=l(z.getState());if(v!==b){var M=b;b=v;I(v,M)}})};var Jdk;_.cU=function(z,l,I){return _.GZ({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:z,key:l}})};
Jdk=function(z){return _.GZ({type:"REPLACE_ENTITIES",payload:z})};
_.sc=function(z,l,I,b){return _.GZ({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:z,key:l,mergeOption:b}})};var Rm$=function(z){var l=this;z=z===void 0?[]:z;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;z.forEach(function(I){l.append(I)})};
_.p=Rm$.prototype;_.p.getLength=function(){return this.totalLength};
_.p.append=function(z){var l=this.arrays.length===0?!1:(l=this.arrays[this.arrays.length-1])&&l.buffer===z.buffer&&l.byteOffset+l.length===z.byteOffset;l?(l=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(l.buffer,l.byteOffset,l.length+z.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(z);this.totalLength+=z.length};
_.p.split=function(z){for(var l=new Rm$,I=new Rm$,b=_.D(this.arrays),v=b.next();!v.done;v=b.next())v=v.value,z>=v.length?(l.append(v),z-=v.length):z?(l.append(new Uint8Array(v.buffer,v.byteOffset,z)),I.append(new Uint8Array(v.buffer,v.byteOffset+z,v.length-z)),z=0):I.append(v);return{headView:l,tailView:I}};
_.p.extract=function(z,l){return this.split(z).tailView.split(l).headView};
_.p.isFocused=function(z){return z>=this.arrayPos&&z<this.arrayPos+this.arrays[this.arrayIdx].length};
_.p.focus=function(z){if(!this.isFocused(z))for(z<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=z&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var CPj=function(z,l){z.focus(l);return z.arrays[z.arrayIdx][l-z.arrayPos]};(function(){var z=function(b){return new Uint8Array(b)},l=function(b){for(var v=new Uint8Array(b.length),M=0;M<b.length;M++)v[M]=b[M];
return v},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?z:l})();
var Zwk=Array(1024),uuk=window.TextDecoder?new TextDecoder:void 0,ydk=window.TextEncoder?new TextEncoder:void 0;var kJp=function(z){this.arrayView=z;this.pos=0;this.pendingTagAndType=-1},NF=function(z){var l=CPj(z.arrayView,z.pos);
++z.pos;if(l<128)return l;for(var I=l&127,b=1;l>=128;)l=CPj(z.arrayView,z.pos),++z.pos,b*=128,I+=(l&127)*b;return I},mkt=function(z,l){var I=z.pendingTagAndType;
for(z.pendingTagAndType=-1;z.pos+1<=z.arrayView.totalLength;){I<0&&(I=NF(z));var b=I>>3,v=I&7;if(b===l)return!0;if(b>l){z.pendingTagAndType=I;break}I=-1;switch(v){case 0:NF(z);break;case 1:z.pos+=8;break;case 2:b=NF(z);z.pos+=b;break;case 5:z.pos+=4}}return!1};var to7=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=CAk(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Zp=function(z,l){l=z.pos+l;
if(!(z.buf.length>=l)){for(var I=z.buf.length*2;I<l;)I*=2;z.buf=CAk(I,z.wasm,z.buf.subarray(0,z.pos));z.view=new DataView(z.buf.buffer,z.buf.byteOffset,z.buf.byteLength)}},ui=function(z,l){if(l>268435455){Zp(z,4);
for(var I=l&1073741823,b=0;b<4;b++)z.view.setUint8(z.pos,I&127|128),I>>=7,z.pos+=1;l=Math.floor(l/268435456)}for(Zp(z,4);l>127;)z.view.setUint8(z.pos,l&127|128),l>>=7,z.pos+=1;z.view.setUint8(z.pos,l);z.pos+=1};for(var BL7={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},Kqf={},k2j=_.D(Object.entries(BL7)),RB_=k2j.next();!RB_.done;RB_=k2j.next()){var mbI=_.D(RB_.value),K8j=mbI.next().value,tqn=mbI.next().value,BAM=K8j,Xmn=tqn;Xmn&&(Kqf[Xmn]=BAM)};var q4f=function(z,l){z=z===void 0?{}:z;switch(l.type){case "ENTITY_LOADED":return l.payload.reduce(function(b,v){var M,x=(M=v.options)==null?void 0:M.persistenceOption;if(x&&x!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&x!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return b;if(!v.entityKey)return _.dE(Error("Ff")),b;if(v.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!v.payload)return v=new _.qB("REPLACE entity mutation is missing a payload",{entityKey:v.entityKey}),_.dE(v),b;var g=(0,_.h7.getAnyKey)(v.payload);
return FqQ(b,g,v.entityKey,v.payload[g])}if(v.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{v=v.entityKey;try{var G=_.Ep(v).entityType;g=FqQ(b,G,v);break a}catch(H){if(H instanceof Error){v=new _.qB("Failed to deserialize entity key",{entityKey:v,originalMessage:H.message});_.dE(v);g=b;break a}throw H;}g=void 0}return g}if(v.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!v.payload)return v=new _.qB("UPDATE entity mutation is missing a payload",{entityKey:v.entityKey}),_.dE(v),b;g=(0,_.h7.getAnyKey)(v.payload);
var u,Z;return QPQ(b,g,v.entityKey,v.payload[g],(u=v.fieldMask)==null?void 0:(Z=u.mergeOptions)==null?void 0:Z.repeatedFieldsMergeOption)}return b},z);
case "REPLACE_ENTITY":var I=l.payload;return FqQ(z,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(l.payload).reduce(function(b,v){var M=l.payload[v];return Object.keys(M).reduce(function(x,g){return FqQ(x,v,g,M[g])},b)},z);
case "UPDATE_ENTITY":return I=l.payload,QPQ(z,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return z}};var Y41;var qq_=!1,nt,Lt,UE,ac,VV,i5A=function(z){_.Q9.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!qq_){var l,I=new Uint8Array(256),b=new Uint8Array(256);var v=1;for(l=0;l<256;l++)I[v]=l,b[l]=v,v^=v<<1^(v>>7&&283);nt=new Uint8Array(256);Lt=kw(256);UE=kw(256);ac=kw(256);VV=kw(256);for(var M=0;M<256;M++){v=M?b[255^I[M]]:0;v^=v<<1^v<<2^v<<3^v<<4;v=v&255^v>>>8^99;nt[M]=v;l=v<<1^(v>>7&&283);var x=l^v;Lt[M]=l<<24|v<<16|v<<8|x;UE[M]=x<<24|Lt[M]>>>8;ac[M]=v<<24|UE[M]>>>
8;VV[M]=v<<24|ac[M]>>>8}qq_=!0}v=kw(44);for(I=0;I<4;I++)v[I]=z[4*I]<<24|z[4*I+1]<<16|z[4*I+2]<<8|z[4*I+3];for(b=1;I<44;I++)z=v[I-1],I%4||(z=(nt[z>>16&255]^b)<<24|nt[z>>8&255]<<16|nt[z&255]<<8|nt[z>>>24],b=b<<1^(b>>7&&283)),v[I]=v[I-4]^z;this.key=v};
_.m(i5A,_.Q9);
i5A.prototype.encrypt=function(z){var l=z.length;z=new Uint8Array(z.buffer.slice(z.byteOffset,z.byteOffset+l));for(var I=this.cipherBlock,b=0;b<l&&this.blockOffset<16;)z[b++]^=I[this.blockOffset++];for(var v=l-(l-b)%16;b<v;)F8M(this),z[b++]^=I[0],z[b++]^=I[1],z[b++]^=I[2],z[b++]^=I[3],z[b++]^=I[4],z[b++]^=I[5],z[b++]^=I[6],z[b++]^=I[7],z[b++]^=I[8],z[b++]^=I[9],z[b++]^=I[10],z[b++]^=I[11],z[b++]^=I[12],z[b++]^=I[13],z[b++]^=I[14],z[b++]^=I[15];if(b<l)for(F8M(this),this.blockOffset=0;b<l;)z[b++]^=
I[this.blockOffset++];return z};
var F8M=function(z){for(var l=z.key,I=z.counter[0]^l[0],b=z.counter[1]^l[1],v=z.counter[2]^l[2],M=z.counter[3]^l[3],x=3;x>=0&&!(z.counter[x]=-~z.counter[x]);x--);for(var g,G,u=4;u<40;)x=Lt[I>>>24]^UE[b>>16&255]^ac[v>>8&255]^VV[M&255]^l[u++],g=Lt[b>>>24]^UE[v>>16&255]^ac[M>>8&255]^VV[I&255]^l[u++],G=Lt[v>>>24]^UE[M>>16&255]^ac[I>>8&255]^VV[b&255]^l[u++],M=Lt[M>>>24]^UE[I>>16&255]^ac[b>>8&255]^VV[v&255]^l[u++],I=x,b=g,v=G;z=z.cipherBlock;x=l[40];z[0]=nt[I>>>24]^x>>>24;z[1]=nt[b>>16&255]^x>>16&255;z[2]=
nt[v>>8&255]^x>>8&255;z[3]=nt[M&255]^x&255;x=l[41];z[4]=nt[b>>>24]^x>>>24;z[5]=nt[v>>16&255]^x>>16&255;z[6]=nt[M>>8&255]^x>>8&255;z[7]=nt[I&255]^x&255;x=l[42];z[8]=nt[v>>>24]^x>>>24;z[9]=nt[M>>16&255]^x>>16&255;z[10]=nt[I>>8&255]^x>>8&255;z[11]=nt[b&255]^x&255;x=l[43];z[12]=nt[M>>>24]^x>>>24;z[13]=nt[I>>16&255]^x>>16&255;z[14]=nt[b>>8&255]^x>>8&255;z[15]=nt[v&255]^x&255};var Qt_=!1;(function(){var z=function(b){return new Uint8Array(b)},l=function(b){for(var v=new Uint8Array(b.length),M=0;M<b.length;M++)v[M]=b[M];
return v},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?z:l})();
var ja;var cZA=function(z){a:{if(!Qt_&&!Iw){if(ja){var l=ja;break a}ja=(l=window.crypto)==null?void 0:l.subtle;var I,b,v;if(((I=ja)==null?0:I.importKey)&&((b=ja)==null?0:b.sign)&&((v=ja)==null?0:v.encrypt)){l=ja;break a}ja=void 0}l=void 0}l&&(this.nativeEncryptor=new Yqu(z,l));this.encryptorPolyfill=new TA4(z)};
cZA.prototype.encrypt=function(z,l){var I=this,b;return _.O(function(v){switch(v.nextAddress){case 1:if(!I.nativeEncryptor){v.jumpTo(2);break}_.RL(v,3);return v.yield(I.nativeEncryptor.encrypt(z,l),5);case 5:return v.return(v.yieldResult);case 3:b=_.XP(v),_.PW(b),Qt_=!0,I.nativeEncryptor=void 0;case 2:return v.return(I.encryptorPolyfill.encrypt(z,l))}})};
cZA.prototype.decrypt=function(z,l){return this.encrypt(z,l)};
var Yqu=function(z,l){this.JSC$12688_aesKey=z;this.subtleCrypto=l};
Yqu.prototype.encrypt=function(z,l){var I=this,b;return _.O(function(v){if(v.nextAddress==1)return _.RL(v,2),v.yield(SqI(I,z,l),4);if(v.nextAddress!=2)return v.return(v.yieldResult);b=_.XP(v);_.PW(b);Qt_=!0;throw b;})};
var SqI=function(z,l,I){var b,v;return _.O(function(M){switch(M.nextAddress){case 1:if(z.cryptoKey){M.jumpTo(2);break}return M.yield(z.subtleCrypto.importKey("raw",z.JSC$12688_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:z.cryptoKey=M.yieldResult;case 2:return b={name:"AES-CTR",counter:I,length:128},M.yield(z.subtleCrypto.encrypt(b,z.cryptoKey,l),4);case 4:return v=M.yieldResult,M.return(new Uint8Array(v))}})},TA4=function(z){this.JSC$12691_aesKey=z};
TA4.prototype.encrypt=function(z,l){this.encryptor||(this.encryptor=new i5A(this.JSC$12691_aesKey));for(var I=this.encryptor,b=0;b<4;b++)I.counter[b]=l[b*4]<<24|l[b*4+1]<<16|l[b*4+2]<<8|l[b*4+3];I.blockOffset=16;return this.encryptor.encrypt(z)};
TA4.prototype.decrypt=function(z,l){return this.encrypt(z,l)};var dbA={},S41=pp("yt-idb-pref-storage",{objectStores:(dbA.prefs={addedAtVersion:1},dbA),shared:!1,upgrade:function(z,l){l(1)&&AW(wi(z,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.JM=function(z){this.token=z};
_.JM.getInstance=function(){return _.O(function(z){return z.return(new Promise(function(l){_.MW().then(function(I){I?(_.JM.instance||(_.JM.instance=new _.JM(I)),l(_.JM.instance)):l(void 0)})}))})};
_.JM.prototype.get=function(z){var l=this,I,b,v;return _.O(function(M){if(M.nextAddress==1)return M.yield(dku(l.token),2);if(M.nextAddress!=3)return I=M.yieldResult,M.yield(I.get("prefs",z),3);b=M.yieldResult;if(!b)return M.return();v=(0,_.Dr)();return b.expirationTimestampMs<=v?M.return():M.return(b.value)})};
_.JM.prototype.set=function(z,l,I){I=I===void 0?31536E3:I;var b=this,v,M,x;return _.O(function(g){if(g.nextAddress==1)return v=(0,_.Dr)(),M={key:z,value:l,expirationTimestampMs:v+I*1E3},g.yield(dku(b.token),2);x=g.yieldResult;return g.yield(x.put("prefs",M),0)})};
_.JM.prototype.remove=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(dku(l.token),2);I=b.yieldResult;return b.yield(I.delete("prefs",z),0)})};var zv={},oQ0=(zv.INVALID_ENCODER_VERSION="Invalid encoder version",zv.KEY_CREATION_FAILED="Failed to create encoder key",zv.UNKNOWN_DECODE_ERROR="Failed to decode PES data",zv.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",zv.WRONG_DATA_TYPE="Encoder cannot process the data type",zv),Rh=function(z,l){l=l===void 0?{}:l;_.qB.call(this,oQ0[z],Object.assign({},{name:"PESEncoderError",type:z},l));this.type=z;this.level="WARNING";Object.setPrototypeOf(this,Rh.prototype)};
_.m(Rh,_.qB);var lV=function(){};
lV.prototype.encode=function(z,l){try{return this.encodeImpl(z,l)}catch(I){sP5(I,PAQ)}};
lV.prototype.decode=function(z,l){try{return this.decodeImpl(z,l)}catch(I){sP5(I,hmQ)}};
var PP4=function(z,l,I){var b;return _.O(function(v){if(v.nextAddress==1)return _.RL(v,2),v.yield(z.decodeAsyncImpl(l,I),4);if(v.nextAddress!=2)return v.return(v.yieldResult);b=_.XP(v);sP5(b,hmQ);_.qe(v)})};
lV.prototype.decodeAsyncImpl=function(z,l){return Promise.resolve(this.decodeImpl(z,l))};var IE=function(z,l){this.aesEncryptor=z;this.aesEncryptorAsync=l};
_.m(IE,lV);IE.prototype.encodeImpl=function(z,l){l=rdf(l);z=(new TextEncoder).encode(JSON.stringify(z));return this.aesEncryptor.encrypt(z,l)};
IE.prototype.decodeImpl=function(z,l){if(!(z instanceof Uint8Array))throw oKp(1);var I=new TextDecoder;l=rdf(l);z=this.aesEncryptor.decrypt(z,l);return JSON.parse(I.decode(z))};
IE.prototype.decodeAsyncImpl=function(z,l){var I=this,b,v,M;return _.O(function(x){if(x.nextAddress==1){if(!(z instanceof Uint8Array))throw oKp(1);b=new TextDecoder;v=rdf(l);return x.yield(I.aesEncryptorAsync.decrypt(z,v),2)}M=x.yieldResult;return x.return(JSON.parse(b.decode(M)))})};var $kk={accountLinkStatusEntity:YXI,booleanEntity:xxu,buttonEntity:ah0,captionTrack:cdu,channelHandle:PTu,chipEntity:Bl4,commerceAcquisitionClientPayloadEntity:kKu,commerceCartListEntity:Rsu,contextNoteFeedEntityPayload:Vi_,contextNoteUserRatingEntityPayload:jWA,continuationTokenEntity:ZRu,downloadQualityPickerEntity:vbp,downloadsPageRefreshTokenEntity:poz,downloadsPageViewConfigurationEntity:tFu,downloadStatusEntity:MFu,dismissState:XZu,sfvAudioItemCurrentlyPlayingEntity:Nb_,emojiFountainDataEntity:n$I,
emojiCustomizationSetEntity:WBu,fakeChannel:GF_,fakePlaylist:Npu,fakePlaylistEntryCollection:EIj,fakeVideo:Z9A,fakeVideoDescription:H9_,featuredProductsEntity:Aiw,flowStateEntity:qXA,iconBadgeEntity:mQA,interstitialInteractionStateEntity:Lfu,likeButtonAnimationEntity:BBn,liveChatPollStateEntity:Ijp,dataFreshnessEntity:A4u,liveViewerLeaderboardChatEntryPointStateEntity:Lq_,liveViewerLeaderboardPointsEntity:Ukw,liveReactionsDataEntity:LBM,logoEntity:WfA,macroMarkerEntity:Xo_,mainDownloadsLibraryEntity:DYw,
mainDownloadsListEntity:xY_,mainPlaylistDownloadStateEntity:gbM,mainPlaylistEntity:HRw,mainPlaylistVideoEntity:yin,mainVideoDownloadStateEntity:Gr4,mainVideoEntity:RUp,markersEngagementPanelSyncEntity:qez,markersVisibilityOverrideEntity:iR_,musicAlbumReleaseDetail:Itz,musicAlbumReleaseDownloadMetadataEntity:VFA,musicAlbumRelease:lt_,musicAlbumReleaseUserDetail:bw_,musicArtistDetail:MoI,musicArtist:vK_,musicArtistUserDetail:pTA,musicDownloadsLibraryEntity:jpp,musicLibraryEdit:Dk_,musicLibraryStatusEntity:xkn,
musicPlaylist:Oww,musicPlaylistDownloadMetadataEntity:Ji_,musicShare:GJz,musicTrackDetail:EK_,musicTrackDownloadMetadataEntity:zmw,musicTrack:NLn,musicTrackUserDetail:uu_,offlineOrchestrationActionWrapperEntity:S4_,offlineVideoPolicy:dkn,offlineVideoStreams:oKz,offlineabilityEntity:NBA,orchestrationWebSamplingEntity:Eb0,pageHeaderEntity:o$M,pdpStateEntity:K6A,pinnedProductEntity:Wj_,playbackData:PAI,playerStateEntity:Fju,quantityIncrementerEntity:t$_,refresh:hmA,saveToPlaylistListEntity:cM4,selectedChipIndexEntityPayload:QpM,
settingEntity:lLA,stringEntity:O9u,suggestedFeedbackChipStateEntity:Yep,transfer:sP0,trendingOfferEntity:nbu,videoDownloadContextEntity:rdw,videoOverviewAsyncDataEntity:L6I,videoPlaybackPositionEntity:J4w,votingEntity:r40,ytMainChannelEntity:mYj,youchatPendingResponseEntity:TBu,ytMainDownloadedVideoEntity:uZ_,ytMainVideoEntity:Kjz};var hBA,rZA,Xs,atu,VoQ,wmw,W8w,AZ_,eBn;hBA=function(z,l){this.JSC$12710_wrapped=z;this.JSC$12710_encoderRegistry=l;this.changedKeys={}};
rZA=function(z,l){return stu(z.JSC$12710_encoderRegistry,l.version).decode(l.data,l.key)};
_.$b_=function(z,l,I){return z.JSC$12710_wrapped.objectStore("EntityStore").get(l).then(function(b){if(b){if(I&&b.entityType!==I)throw Error("Gf");return rZA(z,b)}})};
Xs=function(z,l,I){return I?(I=I.map(function(b){return _.$b_(z,b,l)}),AE.all(I)):z.JSC$12710_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(l)).then(function(b){return b.map(function(v){return rZA(z,v)})})};
_.Ukf=function(z,l,I){var b=XT5(l),v=stu(z.JSC$12710_encoderRegistry,1),M=Object.assign({},l);return z.JSC$12710_wrapped.objectStore("EntityStore").get(b).then(function(x){if(x){if(x.entityType!==I)throw Error("Gf");M.entityMetadata||(x=rZA(z,x),M.entityMetadata=x.entityMetadata)}}).then(function(){var x={key:b,
entityType:I,data:v.encode(M,b),version:1};return AE.all([z.JSC$12710_wrapped.objectStore("EntityStore").put(x),eBn(z,M,I)])}).then(function(){wmw(z,b,I);
return b})};
atu=function(z,l){var I=_.Ep(l).entityType;return AE.all([z.JSC$12710_wrapped.objectStore("EntityStore").delete(l),AZ_(z,l)]).then(function(){wmw(z,l,I)})};
VoQ=function(z,l,I,b){var v=stu(z.JSC$12710_encoderRegistry,1);return _.$b_(z,l,b).then(function(M){if(M){M=EK1(M,I);var x={key:l,entityType:b,data:v.encode(M,l),version:1};return AE.all([z.JSC$12710_wrapped.objectStore("EntityStore").put(x),eBn(z,M,b)])}}).then(function(){wmw(z,l,b);
return l})};
wmw=function(z,l,I){var b=z.changedKeys[I];b||(b=new Set,z.changedKeys[I]=b);b.add(l)};
W8w=function(z,l,I){var b=XT5(l);I=emQ(I);if(!I)return AE.resolve([]);I=new I(l);z=z.JSC$12710_wrapped.objectStore("EntityAssociationStore");l=[];I=_.D(I.getAssociations());for(var v=I.next();!v.done;v=I.next())l.push(z.put({parentEntityKey:b,childEntityKey:v.value}));return AE.all(l).then(function(M){return M.map(function(x){return x[1]})})};
AZ_=function(z,l){return z.JSC$12710_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(l))};
eBn=function(z,l,I){var b=XT5(l);return AZ_(z,b).then(function(){return W8w(z,l,I)})};var nQj=function(){};
_.m(nQj,lV);nQj.prototype.encodeImpl=function(z){return z};
nQj.prototype.decodeImpl=function(z){if(z instanceof Uint8Array)throw oKp(0);return z};var WqH=function(){this.cacheMap={};this.cacheMap[0]=new nQj;if(!_.C("aes_pes_encoder_killswitch")){var z=this.cacheMap;try{var l=_.BV();var I=rdf(l);var b=new IE(new TA4(I),new cZA(I))}catch(v){throw z=v instanceof Error?new Rh("KEY_CREATION_FAILED",{originalMessage:v.message}):new Rh("KEY_CREATION_FAILED"),_.dE(z),z;}z[1]=b}},stu=function(z,l){l=l===void 0?0:l;
z=z.cacheMap[l];if(!z)throw l=new Rh("INVALID_ENCODER_VERSION",{encoderVersion:l}),_.dE(l),l;return z};var Kc=function(z,l){_.Q9.call(this);this.token=z;this.JSC$12724_encoderRegistry=l;this.observers=[];z=new _.v7.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.BV());z.onmessage=this.handleMessage.bind(this);this.channel=z};
_.m(Kc,_.Q9);_.Bg=function(z,l,I){var b,v,M,x;return _.O(function(g){if(g.nextAddress==1)return g.yield(cdH(z.token),2);if(g.nextAddress!=3)return b=g.yieldResult,g.yield(_.JE(b,["EntityStore","EntityAssociationStore"],l,function(G){v=new hBA(G,z.JSC$12724_encoderRegistry);return I(v)}),3);
M=g.yieldResult;v&&(x=v.changedKeys,Object.keys(x).length>0&&(z.channel.postMessage(x),L80(z,x)));return g.return(M)})};
Kc.prototype.observe=function(z){var l=this;this.observers.push(z);return function(){var I=l.observers.indexOf(z);I>=0&&l.observers.splice(I,1)}};
var mCp=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(_.Bg(z,{mode:"readonly",enableRetries:!0},function(b){return b.JSC$12710_wrapped.objectStore("EntityStore").getAll()}),2);
l=I.yieldResult;return I.return(Promise.all(l.filter(function(b){return!!b}).map(function(b){var v,M;
return _.O(function(x){if(x.nextAddress==1){v=b.key;M=b.entityType;var g=x.yield;var G=PP4(stu(z.JSC$12724_encoderRegistry,b.version),b.data,b.key);return g.call(x,G,2)}return x.return({key:v,entityType:M,data:x.yieldResult})})})))})};
Kc.prototype.handleMessage=function(z){L80(this,z.data)};
var L80=function(z,l){z=_.D(z.observers);for(var I=z.next();!I.done;I=z.next())I=I.value,I(l)};
Kc.prototype.disposeInternal=function(){this.channel.close()};
var wTH;var bV,az_,Htx;bV={};_.UbA=(bV.mainVideoEntity="mainVideoEntityActionMetadata",bV.mainPlaylistEntity="mainPlaylistEntityActionMetadata",bV.musicTrack="musicTrackEntityActionMetadata",bV.musicPlaylist="musicPlaylistEntityActionMetadata",bV);az_=new _.yH("DOWNLOADS_ENTITY_TYPE_MAP");_.SS=_.Hg("","downloadsPageViewConfigurationEntity");Htx=_.Hg("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.aZH=_.Hg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Hg("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Hg("SMART_DOWNLOADS_ENABLED","settingEntity");_.Hg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var IZk=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Otp=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.VqI={isLeaderTab:!0};var PS5={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var v2=window,Lc=v2.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",oT$=v2.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Up,e51=v2.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||tQ,nCj=v2.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Wh_,whM=v2.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||vCA,CBQ=v2.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||gCp;var dGu;Jm({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 IhQ=w25(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(z){return z}}}),J17=w25(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(z){return z}}}),LvQ=new Map;var v$t=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],JCt;var jtz=function(z){return _.GZ({type:"SET_EPHEMERAL_ACTION",payload:z})};_.JZw={ephemeralAction:null};var zpp=function(z){return _.GZ({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:z})};_.lu4={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var pL$={sharedUi:function(z,l){z=z===void 0?_.lu4:z;switch(l.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},z,{animatedThumbnailEnabled:l.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},z,{inlinePreviewEnabled:l.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},z,{currentPageType:l.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},z,{currentPageSubType:l.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
z,{persistentPanelVisible:l.payload});default:return z}},
a11y:RR({ephemeralAction:function(z,l){z=z===void 0?_.JZw.ephemeralAction:z;switch(l.type){case "SET_EPHEMERAL_ACTION":return l.payload;default:return z}}}),
entities:iwQ};_.g$Q={playlistId:"",inviteLinkURL:""};_.Iu_={continuationCommand:{}};var jfY=RR({continuationCommand:function(z,l){z=z===void 0?_.Iu_.continuationCommand:z;switch(l.type){case "SET_CONTINUATION_COMMAND":return l.payload.continuationCommand;default:return z}}});_.Nlt={currentFormId:"",commandsMap:{}};var J4f=RR({isLeaderTab:function(z,l){z=z===void 0?_.VqI.isLeaderTab:z;switch(l.type){case "SET_IS_LEADER_TAB":var I,b;return(b=l==null?void 0:(I=l.payload)==null?void 0:I.isLeaderTab)!=null?b:z;default:return z}}});var vH_;_.b6_=function(z){return _.GZ({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:z}})};
vH_=function(z){return _.GZ({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:z}})};_.MG={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var M$7=RR({isDesktopSmallWidth:function(z,l){z=z===void 0?_.MG.isDesktopSmallWidth:z;switch(l.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return l.payload.isDesktopSmallWidth;default:return z}},
isShortsActive:function(z,l){z=z===void 0?_.MG.isShortsActive:z;switch(l.type){case "SET_IS_SHORTS_ACTIVE":return l.payload.isShortsActive;default:return z}},
isWatchWhileMode:function(z,l){z=z===void 0?_.MG.isWatchWhileMode:z;switch(l.type){case "SET_IS_WATCH_WHILE_MODE":return l.payload.isWatchWhileMode;default:return z}},
playerState:function(z,l){z=z===void 0?_.MG.playerState:z;switch(l.type){case "SET_PLAYER_STATE":return l.payload.playerState;default:return z}},
isFullscreen:function(z,l){z=z===void 0?_.MG.isFullscreen:z;switch(l.type){case "SET_IS_FULLSCREEN":return l.payload.isFullscreen;default:return z}},
isSmallScreenSqueezeback:function(z,l){z=z===void 0?_.MG.isSmallScreenSqueezeback:z;switch(l.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return l.payload.isSmallScreenSqueezeback;default:return z}},
isShortsPipActive:function(z,l){z=z===void 0?_.MG.isShortsPipActive:z;switch(l.type){case "SET_IS_SHORTS_PIP_ACTIVE":return l.payload.isShortsPipActive;default:return z}},
isPlaybackStarted:function(z,l){z=z===void 0?_.MG.isPlaybackStarted:z;switch(l.type){case "SET_IS_PLAYBACK_STARTED":return l.payload.isPlaybackStarted;default:return z}}});_.ux1={currentMode:"canvas-hidden"};var xQY=function(){return function(z){return function(l){var I=z(l);_.Gb(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[l],!0);return I}}};var Mp_,ZXt;Mp_=new _.yX;_.HU=new _.yH("WATCH_PLAYER_PROMISE_TOKEN");_.p6I=new _.yX;_.DnI=new _.yH("SHORTS_PLAYER_PROMISE_TOKEN");ZXt=new _.yH("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var Oep=function(){return function(z){return function(l){l.type==="ENTITY_LOADED"&&_.pG().resolve(_.HU).then(function(I){var b;(b=I.dispatchReduxAction)==null||b.call(I,l)});
return z(l)}}};_.xnu={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var zsS=RR({additionalContext:function(z,l){z=z===void 0?_.xnu.additionalContext:z;switch(l.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=l.payload)!=null?I:"";default:return z}},
impersonatedChannelUrl:function(z,l){z=z===void 0?_.xnu.impersonatedChannelUrl:z;switch(l.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=l.payload)!=null?I:"";default:return z}},
selectedVideoIds:function(z,l){z=z===void 0?_.xnu.selectedVideoIds:z;switch(l.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},z,(I[l.payload]=!0,I));case "VIDEO_UNSELECTED":return l=l.payload,z=Object.assign({},z),delete z[l],z;default:return z}}});_.O6u={parentClickTrackingParams:""};var l$x=RR({parentClickTrackingParams:function(z,l){z=z===void 0?_.O6u.parentClickTrackingParams:z;switch(l.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return l.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return z}}});var gHn=function(z){return _.GZ({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:z})};_.GB_={stepStates:{}};var I$Y=RR({stepStates:function(z,l){z=z===void 0?_.GB_.stepStates:z;switch(l.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=z,b=l.payload,v,M,x;z={};l={selectionStates:Object.assign({},(x=(v=I[b.stepId])==null?void 0:v.selectionStates)!=null?x:{},(z[b.token]={isSelected:b.isSelected},z)),userQuery:(M=I[b.stepId])==null?void 0:M.userQuery};v={};return Object.assign({},I,(v[b.stepId]=l,v));case "TALK_TO_RECS_UPDATE_USER_QUERY":return v=z,M=l.payload,
x={selectionStates:Object.assign({},(b=(I=v[M.stepId])==null?void 0:I.selectionStates)!=null?b:{}),userQuery:{userQuery:M.userQuery,token:M.userQueryToken}},I={},Object.assign({},v,(I[M.stepId]=x,I));default:return z}}});var NKu,EHA,Z6u;NKu=function(z){return _.GZ({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:z})};
EHA=function(z){return _.GZ({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:z})};
_.TY=function(z){return _.GZ({type:"SET_CURRENT_PAGE_TYPE",payload:z})};
_.ufI=function(z){return _.GZ({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:z})};
Z6u=function(z){return _.GZ({type:"SET_CHIP_BAR_IS_STICKY",payload:z})};_.n$Q={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"};_.H6n=function(z){return _.GZ({type:"SET_PLAYER_STATE",payload:{playerState:z}})};_.pq={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:Uwk(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var bef=RR({isTheaterMode:function(z,l){z=z===void 0?Uwk():z;switch(l.type){case "SET_IS_THEATER_MODE":return l.payload.isTheaterMode;default:return z}},
isWatchActive:function(z,l){z=z===void 0?_.pq.isWatchActive:z;switch(l.type){case "SET_IS_WATCH_ACTIVE":return l.payload.isWatchActive;default:return z}},
isLearningJourneyActive:function(z,l){z=z===void 0?_.pq.isLearningJourneyActive:z;switch(l.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return l.payload.isLearningJourneyActive;default:return z}},
isWatchFullscreen:function(z,l){z=z===void 0?_.pq.isWatchFullscreen:z;switch(l.type){case "SET_IS_WATCH_FULLSCREEN":return l.payload.isWatchFullscreen;default:return z}},
isWatchNarrowWidth:function(z,l){z=z===void 0?_.pq.isWatchNarrowWidth:z;switch(l.type){case "SET_IS_WATCH_NARROW_WIDTH":return l.payload.isWatchNarrowWidth;default:return z}},
isWatchRetroMode:function(z,l){z=z===void 0?_.pq.isWatchRetroMode:z;switch(l.type){case "SET_IS_WATCH_RETRO_MODE":return l.payload.isWatchRetroMode;default:return z}},
isLiveChatCollapsed:function(z,l){z=z===void 0?_.pq.isLiveChatCollapsed:z;switch(l.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return l.payload.isLiveChatCollapsed;default:return z}},
openEngagementPanels:function(z,l){z=z===void 0?_.pq.openEngagementPanels:z;var I=[].concat(_.ht(z));switch(l.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(l.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(l.payload.panelToRemove),1),I;default:return z}},
playerState:function(z,l){z=z===void 0?_.pq.playerState:z;switch(l.type){case "SET_PLAYER_STATE":return l.payload.playerState;default:return z}},
watchScrollTop:function(z,l){z=z===void 0?_.pq.watchScrollTop:z;switch(l.type){case "SET_WATCH_SCROLL_TOP":return l.payload.watchScrollTop;default:return z}},
watchWindowSize:function(z,l){z=z===void 0?_.pq.watchWindowSize:z;switch(l.type){case "SET_WATCH_WINDOW_SIZE":return l.payload.watchWindowSize;default:return z}}});_.yU_={surveyFeedbackData:{feedbackTokens:[]}};var vY$=RR({surveyFeedbackData:function(z,l){z=z===void 0?_.yU_.surveyFeedbackData:z;switch(l.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return l.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},z,l.payload);default:return z}}});_.ah5={};var GKu=void 0;_.C("web_enable_redux_store_on_demand")||(GKu=gY7());var fu0=function(z,l,I){var b=this;this.listId=z;this.JSC$12867_updateCallback=l;this.isOfflineVideoCallback=I;_.vF().subscribe(function(){b.handleUpdate()})};
fu0.prototype.getPlaylistData=function(){var z=_.vF().getState().entities;if(this.listId&&this.listId!=="PPSV"){var l=XfQ(z,this.listId,!0),I=_.Hg(this.listId,"mainPlaylistEntity"),b,v;z=z==null?void 0:(b=z.mainPlaylistEntity)==null?void 0:(v=b[I])==null?void 0:v.title;return NI$(l,z,this.listId)}l=_.gm5(ILp(z));z=_.gm5(_.dg(z));z=l.concat(z);return NI$(z)};
fu0.prototype.getPlaylistId=function(){return this.listId};
fu0.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12867_updateCallback(this.listId,this.getPlaylistData(),{})};var DL=function(z,l,I,b){b=b===void 0?[]:b;this.JSC$12870_playlistNetworkManager=z;this.listId=l;this.JSC$12870_updateCallback=I;this.videoIds=b;this.pendingUpdates=[];this.currentIndex=0};
DL.prototype.JSC$12870_setCurrentIndex=function(z){this.currentIndex=z};
DL.prototype.setListId=function(z){this.listId=z};
var Cvu=function(z,l){z.currentCreateRequest&&z.currentCreateRequest.cancel(l);z.currentUpdateRequest&&z.currentUpdateRequest.cancel(l);z.currentRefreshRequest&&z.currentRefreshRequest.cancel(l)};
DL.prototype.delete=function(){Cvu(this,"PROXY DELETED")};
DL.prototype.addVideos=function(z,l,I){var b=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.ht(z))):this.videoIds.push.apply(this.videoIds,_.ht(z));this.listId||this.currentCreateRequest?(z.forEach(function(v,M){v={addedVideoId:v,action:"ACTION_ADD_VIDEO"};I&&(v.addedVideoPosition=I+M);b.pendingUpdates.push(v)}),xT(this)):kBA(this,l.onCreateListCommand)};
var RpM=function(z,l,I,b,v){Q1Y(z.videoIds,l,I);l>z.currentIndex&&I<=z.currentIndex?z.JSC$12870_setCurrentIndex(z.currentIndex+1):l===z.currentIndex?z.JSC$12870_setCurrentIndex(I):l<z.currentIndex&&I>=z.currentIndex&&z.JSC$12870_setCurrentIndex(z.currentIndex-1);z.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:b,movedSetVideoIdPredecessor:v});xT(z)},kBA=function(z,l){Cvu(z,"OBSOLETE");
z.currentCreateRequest=mnA(z.JSC$12870_playlistNetworkManager,l,z.videoIds);_.rO(z.currentCreateRequest,function(){z.currentCreateRequest=void 0}).then(function(I){z.setListId(I.playlistId);
z.pendingUpdates.length>0?xT(z):KL_(z)})},xT=function(z){if(z.pendingUpdates.length!==0&&(z.currentRefreshRequest&&z.currentRefreshRequest.cancel("OBSOLETE"),!z.currentUpdateRequest&&!z.currentCreateRequest)){var l=z.pendingUpdates.splice(0,z.pendingUpdates.length);
z.currentUpdateRequest=z.JSC$12870_playlistNetworkManager.updatePlaylist(z.listId,l);_.rO(z.currentUpdateRequest,function(){z.currentUpdateRequest=void 0}).then(function(){z.pendingUpdates.length>0?xT(z):KL_(z)}).thenCatch(function(){z.pendingUpdates.unshift.apply(z.pendingUpdates,_.ht(l))})}},KL_=function(z){z.currentRefreshRequest=_.tp_(z.JSC$12870_playlistNetworkManager,z.listId,z.currentIndex,z.videoIds[z.currentIndex]);
_.rO(z.currentRefreshRequest,function(){z.currentRefreshRequest=void 0}).then(function(l){z.JSC$12870_updateCallback(l.playlistId,l.playlistPanelRenderer,l.autoplayRenderer)})};
DL.prototype.size=function(){return this.videoIds.length};var BK_=function(z,l,I,b){b=b===void 0?[]:b;DL.call(this,z,l,I,b);this.JSC$12870_playlistNetworkManager=z;this.listId=l;this.JSC$12870_updateCallback=I;this.videoIds=b};
_.m(BK_,DL);_.OD=function(z,l,I,b,v,M,x){v=v===void 0?[]:v;x=x===void 0?k9:x;DL.call(this,z,l,I,v);this.JSC$12870_playlistNetworkManager=z;this.listId=l;this.JSC$12870_updateCallback=I;this.onAuthChange=b;this.videoIds=v;this.storage=M;this.cookieReader=x;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.CK(_.ow,this.checkLoggedInStatusChange.bind(this),1E3)};
_.m(_.OD,DL);_.p=_.OD.prototype;_.p.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.CK(_.ow,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p.JSC$12870_setCurrentIndex=function(z){DL.prototype.JSC$12870_setCurrentIndex.call(this,z);this.store()};
_.p.delete=function(){_.ow.cancelJob(this.queueSapisIdJob);DL.prototype.delete.call(this)};
_.p.setListId=function(z){DL.prototype.setListId.call(this,z);this.store()};
_.p.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var X6I=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],q0_=["playerResponse","videoDetails"],i6A=["response","currentVideoEndpoint","watchEndpoint","videoId"],FLM=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Q6A=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Y0M=["response","contents","twoColumnWatchNextResults","playlist","playlist"],TKj=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
cU_=["response","contents","twoColumnWatchNextResults"];var g3={},you=(g3.WEB_UNPLUGGED="^unplugged/",g3.WEB_UNPLUGGED_ONBOARDING="^unplugged/",g3.WEB_UNPLUGGED_OPS="^unplugged/",g3.WEB_UNPLUGGED_PUBLIC="^unplugged/",g3.WEB_CREATOR="^creator/",g3.WEB_KIDS="^kids/",g3.WEB_EXPERIMENTS="^experiments/",g3.WEB_MUSIC="^music/",g3.WEB_REMIX="^music/",g3.WEB_MUSIC_EMBEDDED_PLAYER="^music/",g3.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",g3);var lR1,mnA;lR1=function(z,l){this.networkManager=z;this.innertubeTransportService=l};
mnA=function(z,l,I){if(!_.k(l,_.GW))return _.Ph(Error("Kf"));_.k(l,_.GW).videoIds=I;I={create_playlist_title:_.mY("QUEUE",void 0,"Queue")};return ZeY(_.I0(z.innertubeTransportService,l,I),EYS)};
_.tp_=function(z,l,I,b){l={videoId:b,playlistId:l,playlistIndex:I};I=_.Mo(cn0);return ZeY(_.Gv(z.innertubeTransportService,l,I),Hex)};
lR1.prototype.updatePlaylist=function(z,l){return ZeY(_.I0(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:z,actions:l}}),uDH)};var S0j=function(z){this.storage=z},dnA;
S0j.prototype.store=function(z,l){l=l===void 0?0:l;if(this.storage&&z.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",z),this.storage.set("TLPQindex",String(l)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
S0j.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
S0j.prototype.getPlaylistId=function(){if(!this.storage)return null;var z=null;try{z=this.storage.get("TLPQplaylist")}catch(l){}return z};var RsH=["navigationEndpoint","watchEndpoint","videoId"],kKH=["nextButtonVideo","watchEndpoint","videoId"];_.wD=new _.yH("NETWORK_TOKEN");_.OB=new _.yH("PAGE_TOKEN");_.NG=new _.yH("PLAYLIST_TOKEN");var oH_;oH_=new _.yH("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.AY=new _.yH("INNERTUBE_TRANSPORT_TOKEN");var PvI,ED,s60,rUu,ep_,w6n;PvI=new Set(["ci","cr","carml"]);ED=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12917_parkedJobs=new Map;this.parkedProcessors=new Map};
_.uV=function(){ED.instance||(ED.instance=new ED);return ED.instance};
ED.prototype.onAny=function(z){return _.hpA(this,z,2)};
ED.prototype.parkOrScheduleJob=function(z,l,I,b,v){_.ZL(this,I)?_.Y1().addJob(z,l,b):(v&&(z=s60(z),rUu(this,z,l,I,v)),v=this.JSC$12917_parkedJobs.get(I),v||(this.JSC$12917_parkedJobs.set(I,[]),v=this.JSC$12917_parkedJobs.get(I)),v.push({job:z,priority:l,delay:b}))};
ED.prototype.addListener=function(z,l,I){I&&(l=s60(l),rUu(this,l,0,z,I));I=this.parkedProcessors.get(z);I||(this.parkedProcessors.set(z,[]),I=this.parkedProcessors.get(z));I.push(l)};
ED.prototype.processSignal=function(z){if(!_.ZL(this,z)){this.inProgressSignals.add(z);var l=this.JSC$12917_parkedJobs.get(z);if(l){l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,_.Y1().addJob(I.job,I.priority,I.delay);this.JSC$12917_parkedJobs.delete(z)}if(l=this.parkedProcessors.get(z)){l=_.D(l);for(I=l.next();!I.done;I=l.next())I=I.value,I();this.parkedProcessors.delete(z)}this.signals.push(z);this.inProgressSignals.delete(z)}};
_.ZL=function(z,l){return PvI.has(l)||_.rr("IS_HOMEPAGE_COLD")||_.rr("IS_RESULTS_PAGE_COLD")||_.rr("IS_WATCH_PAGE_COLD")?z.signals.indexOf(l)>=0:!0};
s60=function(z){var l=!1;return function(){l||(l=!0,z())}};
rUu=function(z,l,I,b,v){if($n_.has(b))_.Y1().addJob(l,I,v);else{var M=z.compoundSignals.get(b);M&&_.Y1().addJob(function(){_.ZL(z,b)||(M.isTimeoutConditionSatisfied?_.Y1().addJob(l,I):M.timeoutConditionObservers.push(function(){_.Y1().addJob(l,I)}))},I,v)}};
_.hpA=function(z,l,I){if(l.length>1){var b=[],v=Object.create(null);l=_.D(l);for(var M=l.next();!M.done;M=l.next())M=M.value,v[M]||(b.push(M),v[M]=!0);l=b}if(l.length===1)return l[0];M=l;b="";v=I===2?"|":"&";M.sort();M=_.D(M);for(var x=M.next();!x.done;x=M.next())b+=x.value+v;if(!z.compoundSignals.get(b)){v=0;M=[];x=_.D(l);for(var g=x.next();!g.done;g=x.next())g=g.value,v++,_.ZL(z,g)||M.push(g);(I=I===2)&&v>M.length||!I&&!M.length?z.signals.push(b):ep_(z,b,I,l,M)}return b};
ep_=function(z,l,I,b,v){var M=v.length,x=function(){I||--M===0?z.processSignal(l):w6n(z,l)};
v=_.D(v);for(var g=v.next();!g.done;g=v.next())z.addListener(g.value,x);z.compoundSignals.set(l,{signals:b,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});w6n(z,l)};
w6n=function(z,l){if(!_.ZL(z,l)){var I=z.compoundSignals.get(l);if(I&&!I.isTimeoutConditionSatisfied){for(var b=!1,v=0,M=0,x=_.D(I.signals),g=x.next();!g.done;g=x.next()){var G=g.value;g=!_.ZL(z,G);$n_.has(G)?b=!0:(G=z.compoundSignals.get(G))?g&&!G.isTimeoutConditionSatisfied&&(M++,I.isInitialized||G.timeoutConditionObservers.push(function(){w6n(z,l)})):g&&v++}I.isInitialized=!0;
I.isOnAny?b&&(I.isTimeoutConditionSatisfied=!0):v===0&&M===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.D(I.timeoutConditionObservers),b=I.next();!b.done;b=I.next())b=b.value,b()}}};
ED.prototype.processSignal=ED.prototype.processSignal;ED.prototype.parkOrScheduleJob=ED.prototype.parkOrScheduleJob;ED.prototype.onAny=ED.prototype.onAny;_.vd("ytsignals.getInstance",_.uV);ED.prototype.onAny=ED.prototype.onAny;ED.prototype.parkOrScheduleJob=ED.prototype.parkOrScheduleJob;ED.prototype.processSignal=ED.prototype.processSignal;var $n_=new Set(["eop","eocs","dl","pcl"]);_.Af=new _.yH("MINIPLAYER_SERVICE");var H2,AU0,WLw;H2=function(z,l,I){var b=_.WW.getInstance();if(!dnA){var v=new QhY;var M=void 0,x=_.sZ("ID_TOKEN");x&&v.isAvailable()&&(M=new To(v,"yt-queue"+x));dnA=new S0j(M)}v=dnA;M=_.uV();this.JSC$12924_actionRouter=b;this.pageManager=z;this.playlistManager=l;this.JSC$12924_playlistNetworkManager=I;this.storage=v;this.signals=M;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.ya=function(){if(!AU0){var z=_.pG(),l=z.resolve(_.MB(_.OB)),I=z.resolve(_.MB(_.wD)),b=z.resolve(_.MB(_.NG));z=z.resolve(_.AY);AU0=new H2(l,b,new lR1(I,z))}return AU0};
WLw=function(z,l,I){if(I){var b;if(((b=z.responsePlaylistData)==null?void 0:b.playlistId)!==I)return}z.responsePlaylistData&&(I=qMQ(l,z.responsePlaylistData),z.responsePlaylistData=(0,_.h7.unsafeClone)(z.responsePlaylistData),F6t(z.responsePlaylistData,I));I=z.temporaryItems.findIndex(function(v){return v.videoId===l});
I>-1&&z.temporaryItems.splice(I,1);_.fq(z,_.Cq(z,z.response?z.response.autoplayRenderer:void 0))};
_.nHu=function(z,l){if(z.responsePlaylistData){var I=iep(l,z.responsePlaylistData);F6t(z.responsePlaylistData,I);if(z.queueProxy){var b=z.queueProxy;I<0||(b.videoIds.splice(I,1),I<b.currentIndex&&b.JSC$12870_setCurrentIndex(b.currentIndex-1),b.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:l}),xT(b))}}_.fq(z,_.Cq(z,z.response?z.response.autoplayRenderer:void 0))};
H2.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.fq(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
H2.prototype.setPlaylistData=function(z,l,I){this.temporaryItems=[];this.listId=z;this.responsePlaylistData=l;_.fq(this,_.Cq(this,I))};
var LL0=function(z){return(z==null?0:z.playlistId)?z.playlistId:"PPSV"},UnA=function(z){return z&&z.playlistId?z.playlistId==="PPSV"?!0:ta1(_.vF().getState().entities,z.playlistId):!1};
H2.prototype.isPlayingOfflineVideo=function(){return this.response?UnA(this.response):!1};
H2.prototype.closeMiniplayer=function(z){var l=this.queueProxy&&this.queueProxy.size()<=1,I=_.pG().resolve(_.Af);if(!this.queueProxy||l)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();l=this.responsePlaylistData;var b=this.temporaryItems.length+(l&&l.contents?l.contents.length:0);l=_.mY("QUEUE_CLEARED_UNPLURALIZED")||_.KM("QUEUE_CLEARED",b);l=_.Dk(l);I=_.mY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");b=_.mY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.KM("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",b);var v=_.mY("MINIPLAYER_CLOSE",void 0,"Close"),M=_.mY("CANCEL",void 0,"Cancel");_.Jg(this.JSC$12924_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.lc(I),dialogMessages:[_.lc(b)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lc(v),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
l]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lc(M)}}}}}}],z)}};
_.Cq=function(z,l){var I={},b=z.response;I.autoplayRenderer=l;if(!z.responsePlaylistData&&!z.temporaryItems.length)return!b||!b.hasRelatedVideoData&&_.C("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:b.relatedVideoArgs,endScreenRenderer:b.endScreenRenderer}),I;I.playerData={};if(z.index===void 0)return _.dE(Error("Mf")),I;I.panel=z.responsePlaylistData?(0,_.h7.unsafeClone)(z.responsePlaylistData):{titleText:_.lc(_.mY("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
l=I.panel;if(l.contents)for(var v=_.D(z.temporaryItems),M=v.next();!M.done;M=v.next())l.contents.push({playlistPanelVideoRenderer:M.value});z.queueProxy&&b&&b.playingVideo&&b.playingVideoId&&!XLQ(b.playingVideoId,I.panel)&&(l=b.playingVideo,v=I.panel,M=z.index,v.contents&&v.contents.splice(M===void 0?0:M,0,{playlistPanelVideoRenderer:l}));b&&b.playingVideoId&&(l=z.index,v=I.panel,l=!v.contents||l>=v.contents.length?void 0:v.contents[l].playlistPanelVideoRenderer,l&&l.videoId===b.playingVideoId||(l=
qMQ(b.playingVideoId,I.panel),z.index=l!==-1?l:z.index?z.index-1:0));l=BI$(z.index+1,I.panel);v=void 0;z.index>0&&(v=BI$(z.index-1,I.panel));if(v||l)I.autoplayRenderer=mQQ(l,v,I.autoplayRenderer);!l&&(b==null?0:b.relatedVideoArgs)&&(I.playerData.rvs=b.relatedVideoArgs);b=b?b.playlistIndexOffset:0;z.queueProxy?TIt(I.panel,z.index,b,t$k,!0,!0,!0):TIt(I.panel,z.index,b);I.playerData.playlistPanelRenderer=I.panel;return I};
H2.prototype.openToast=function(z){_.pG().resolve(_.Af).openToast(z,_.mY("ADDED_TO_QUEUE",void 0,"Added to queue"))};
H2.prototype.isMiniplayerActive=function(){return _.pG().resolve(_.Af).isMiniplayerActive()};
_.fq=function(z,l){z.playlistManager.setAutoplayRenderer(l.autoplayRenderer||null);z.playlistManager.setPlaylistData(l.panel||null);l.playerData&&z.playlistManager.setPlayerPlaybackControlData(l.playerData)};var SMQ="#";var auM={},Vp_={},j6u={},JUI={},zap={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:(auM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",auM),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:(Vp_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Vp_),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:(j6u.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",j6u),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:(JUI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",JUI),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 y$$=[{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:zap},{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:zap}}];var DdQ;_.HF=[[["aGpmbDhrbzBuZGtpbmQjamw=","bXozejFiMmJzdmFsdWUjbWZ6"],"RU5UX0tJTkRfU1RBUlQjYXBsMzRlazI2bnloQURfUExBQ0VN"]];
DdQ=[[["bDgzaTNyMHByaW1hcnkjc2t2Mjk=",null,null],[null,["c3VsdHMtcmVuZGVyZXIjZ2lrdWpoM3d6YndpeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJl","ZHB1c3R5bGUtc2NvcGUjdTgyb3g4bW1u"],null],["Z3VxbWFzdGhlYWQtYWQjdTBoYzU4OGh2",["LWdyaWQtcmVuZGVyZXIjZnRqZDZ4OGttdHJheXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjcjZkMTh5eHlldWxheXRkLXJpY2g=","OXhtc3R5bGUtc2NvcGUjNDAzMWgxZ2hh"],null],[null,["cHJvbW8tcmVuZGVyZXIjbDV5bWVrNTc0OWxyeXRkLWJhbm5lci0=","dTFuc3R5bGUtc2NvcGUjOXQ4d3JwNjVv"],null],[null,["ZC1zbG90LXJlbmRlcmVyI2FkdjF5N3RkNWo2eXRkLWE="],
null]],[["d21xYXBsYXllci1hZHMjMzA5eHFudGM=",null,null]]];_.Zk=["Z2xvYmFsQ2FsbGJhY2tzI29lYXVrcGdna3cx","bWFsaXR5RGV0ZWN0ZWQjM21zODg4ZmtqczAxb25BYm5vcg==","eDFzNnBob25BZFNraXAjaWF1dWJi","bGF5ZXJfcmVzcG9uc2UjeXdxams4ZXF3MGJicmF3X3A=","Z2wxajN6NGFkU2xvdHMjdXR4dTM="];_.kT="Z2xvYmFsQ2FsbGJhY2tzI29lYXVrcGdna3cx bWFsaXR5RGV0ZWN0ZWQjM21zODg4ZmtqczAxb25BYm5vcg== eDFzNnBob25BZFNraXAjaWF1dWJi bGF5ZXJfcmVzcG9uc2UjeXdxams4ZXF3MGJicmF3X3A= dGlwbGVfc2tpcHNfa3MjODl0YXI4YXZyODUzd2ViX3BsYXlsaXN0X3F1ZXVlX211bA== OTR3dDhhYWJfc2FfZWYjNDRndHB5 Z2wxajN6NGFkU2xvdHMjdXR4dTM=".split(" ");var RE;RE=function(z,l,I){this.nd0=z;this.isAsync=l;this.zHz=I};
_.FW7=[new RE("b.f_",!1,0),new RE("j.s_",!1,2),new RE("r.s_",!1,4),new RE("e.h_",!1,6),new RE("i.s_",!0,8),new RE("s.t_",!1,10),new RE("p.h_",!1,12),new RE("s.i_",!1,14),new RE("f.i_",!1,16),new RE("a.b_",!1,18),new RE("a.o_",!1),new RE("g.o_",!1,22),new RE("p.i_",!1,24),new RE("p.m_",!1),new RE("n.k_",!0,20),new RE("i.f_",!1),new RE("a.s_",!0),new RE("m.c_",!1),new RE("n.h_",!1,26),new RE("o.p_",!1),new RE("m.p_",!0,28),new RE("o.a_",!1),new RE("d.p_",!1),new RE("e.i_",!1)].reduce(function(z,l){z[l.nd0]=
l;return z},{});var lHA=function(){};
lHA.prototype.flush=function(z,l){z=z===void 0?[]:z;l=l===void 0?!1:l;if(_.C("enable_client_streamz_web")){z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=De_(I.value),this.rootSpec&&_.tT(I,2,this.rootSpec),I={serializedIncrementBatch:_.Tc(I.JSC$9608_serializeBinary())},_.cW("streamzIncremented",I,{sendIsolatedPayload:l})}};
var sV7=function(){};
_.m(sV7,lHA);var IHp=function(z){var l=new zPM;var I=new VAA;I=_.Th(I,1,"botguard");z=_.Th(I,2,z);this.rootSpec=_.Xr(l,1,l10,z)};
_.m(IHp,lHA);var No,bzn=new Map;var GqQ,$QH,V$$,Aou,L6Q,MTH,Ej7,bfH;GqQ=2;$QH=2;V$$=2;Aou=2;L6Q=2;MTH=2;Ej7=2;bfH=new l__;var Ms_,peM,DOz;Ms_=function(){this.ongoingFlowNonces=new Map};
_.kW=function(){peM||(peM=new Ms_);return peM};
_.fr=function(z,l,I){return{eventType:{flowEventNamespace:z,flowEventType:l},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.Y31=function(z,l){var I=_.kW(),b=DOz(I,l,!0);_.Cr(I,z,l,b)};
_.Cr=function(z,l,I,b){z={flowNonce:b||DOz(z,I),flowType:I,flowEventType:l.eventType};l.metadata&&(z.flowMetadata=l.metadata);l.statusCode!==void 0&&(z.flowEventStatus=l.statusCode);l.csn&&(z.csn=l.csn);l.can&&(z.can=l.can);_.cW("flowEvent",z,void 0)};
DOz=function(z,l,I){I=I===void 0?!1:I;var b=z.ongoingFlowNonces.get(l);if(!b||I)b=oR(16),z.ongoingFlowNonces.set(l,b);return b};_.xOp=new zeu;var ddQ={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 mv=function(z,l,I,b,v,M,x){I=I===void 0?!1:I;b=b===void 0?!1:b;M=M===void 0?_.ya():M;this.hasRun=!1;this.n3W=z;this.tO5=l;this.v0O=I;this.fromHistory=b;this.previousVideoId=v;this.z5f=M;this.tempData=x;this.fSO=new _.I_j};
_.m(mv,XT);mv.prototype.validate=function(z){return!(!z.data.playerResponse||z.data.page!=="watch"&&z.data.page!=="learning_journey_watch"&&z.data.page!=="shorts"||this.hasRun)};
mv.prototype.handle=function(z){var l=this,I=_.k(z.endpoint,_.zb),b=_.k(z.endpoint,_.FN);if(_.C("kevlar_continue_playback_without_player_response")&&(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback)&&!this.fromHistory)this.n3W.resolve();else{var v={};I?v.watch_endpoint=I:b&&(v.watch_endpoint=b,b.endTimeSeconds&&(v.end=b.endTimeSeconds));z.data.page==="watch"?(z.data.filler||this.v0O||(_.rC("cfg"),_.WW.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(v,Ozp(this,z.endpoint)),_.C("enable_masthead_quartile_ping_fix")&&Object.assign(v,gy4(this)),Object.assign(v,void 0),z.data.forceExternalPlaylist&&(v.external_list=!0)):z.data.page==="shorts"?_.WW.getInstance().triggerAction("yt-start-loading-shorts"):z.data.page==="learning_journey_watch"&&_.WW.getInstance().triggerAction("yt-start-loading-learning-journey");if(I=this.tO5()){try{I.loadVideoWithPlayerResponse(z.data.playerResponse,v),I.getPlayerPromise().then(this.n3W.resolve)}catch(M){_.dE(M),
this.n3W.resolve()}this.hasRun=!0;I.getPlayerPromise().then(function(M){M.addEventListener("onAbnormalityDetected",function(){var x=z.data.playerResponse,g=M.getVideoData().cpn;Ej7=0;_.vyI=g;if(g=if1(x))l.fSO.increment("IN_PLAYER"),_.RD(5),_.C("ab_st_vid_ks")?M.pauseVideo(!0):M.stopVideo(),x.playabilityStatus=Object.assign({},x.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:g}}),x.videoDetails=void 0,_.WW.getInstance().triggerOptionalAction("yt-updated-playability-status",
x.playabilityStatus)})})}else _.PW(Error("Pf"))}};
var Ozp=function(z,l){var I=_.k(l,_.zb);if(l&&I&&I.playlistId&&I.videoId&&(z=z.z5f,z.queueProxy?(z=z.queueProxy,I=z.listId===I.playlistId?z.attributionData.get(I.videoId):void 0):I=void 0,I))return{queue_info:I}},gy4=function(z){var l;
if((l=z.tempData)==null?0:l.adpings)return{adpings:z.tempData.adpings}};var Kq=function(z,l,I){this.hasRun=!1;this.rOi=z;this.bOt=l;this.ubn=I};
_.m(Kq,XT);Kq.prototype.validate=function(z){return!!_.h7.getValueByKeys.apply(null,[z.data].concat(_.ht(cU_)))};
Kq.prototype.handle=function(z){var l=this;this.rOi.promise.then(function(){var I=z.data;var b=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(X6I))),v=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(Y0M))),M=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(i6A)));var x=(x=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(q0_))))?{videoId:x.videoId,thumbnail:x.thumbnail,title:x.title?_.lc(x.title):void 0,shortBylineText:x.author?_.lc(x.author):void 0}:void 0;var g=void 0;_.C("web_get_playlist_id_from_current_endpoint_ks")||
(g=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(FLM))));var G=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(TKj))),u=_.h7.getValueByKeys.apply(null,[I].concat(_.ht(Q6A))),Z=!!G||!!u&&!!u.results&&u.results.length>0,H=0;v&&v.currentIndex&&v.localCurrentIndex&&(H=v.currentIndex-v.localCurrentIndex);v&&v.playlistId&&(g=v.playlistId);I={rawResponse:I,autoplayRenderer:b,hasRelatedVideoData:Z,playingVideo:x,playingVideoId:M,playlistPanelRenderer:v,playlistId:g,playlistIndex:v&&v.currentIndex,relatedVideoArgs:G,
endScreenRenderer:u,playlistIndexOffset:H};a:{b=l.ubn;v=l.bOt;b.response=I;if(UnA(I))b.downloadPlaylistProxy&&b.downloadPlaylistProxy.getPlaylistId()===LL0(I)||(b.downloadPlaylistProxy=new fu0(LL0(I),b.setPlaylistData.bind(b),b.isPlayingOfflineVideo.bind(b))),b.responsePlaylistData=b.downloadPlaylistProxy.getPlaylistData(),b.listId=LL0(I),b.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?b.queueProxy?b.listId===I.playlistId?(b.index=I.playlistIndex,
b.responsePlaylistData=I.playlistPanelRenderer,b.queueProxy.JSC$12870_setCurrentIndex(b.index)):I.playingVideoId&&b.index!==void 0&&v.clientParams.autoSaveToQueue&&(b.index+=1,b.queueProxy.JSC$12870_setCurrentIndex(b.index),b.queueProxy.addVideos([I.playingVideoId],{},b.index)):(b.queueProxy=new _.OD(b.JSC$12924_playlistNetworkManager,I.playlistId,b.setPlaylistData.bind(b),b.clearQueue.bind(b),_.QVt(I.playlistPanelRenderer),b.storage),b.responsePlaylistData=I.playlistPanelRenderer,b.listId=I.playlistId,
b.index=I.playlistIndex):(b.index=I.playlistIndex,b.listId!==I.playlistId&&b.clearQueue(),b.responsePlaylistData=I.playlistPanelRenderer,b.listId=I.playlistId,b.playlistProxy=new BK_(b.JSC$12924_playlistNetworkManager,I.playlistId,b.setPlaylistData.bind(b),_.QVt(I.playlistPanelRenderer)));else if(!b.queueProxy)b.responsePlaylistData=void 0;else if(I.playingVideoId&&v.clientParams.autoSaveToQueue){if(b.index===void 0){_.dE(Error("Lf"));b.clearQueue();break a}b.queueProxy.videoIds.includes(I.playingVideoId)||
(b.index+=1,b.queueProxy.JSC$12870_setCurrentIndex(b.index),b.queueProxy.addVideos([I.playingVideoId],{},b.index))}_.fq(b,_.Cq(b,b.response.autoplayRenderer))}})};var GXM=function(z,l){l=l===void 0?_.ya():l;$m.call(this);this.lv.push(new Kq(this.nj,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},l));this.lv.push(new mv(this.nj,z,!1,!1));_.C("web_response_commands_chunk_processor")&&this.lv.push(new ea)};
_.m(GXM,$m);GXM.prototype.processChunk=function(z){z&&z.data.player===void 0&&this.nj.resolve();$m.prototype.processChunk.call(this,z)};var tC=function(z,l){z=z===void 0?{layer:0}:z;this.hasRun=!1;this.createScreenConfig=z;this.rnB=l};
_.m(tC,XT);tC.prototype.validate=function(z){return!(this.hasRun||!z.endpoint)};
tC.prototype.handle=function(z){var l=_.iY(),I,b,v=(b=_.k((I=z.endpoint)==null?void 0:I.commandMetadata,_.kB))==null?void 0:b.rootVe;this.rnB&&v?_.db(l,v,this.rnB,this.createScreenConfig):zBn(l,z.endpoint,this.createScreenConfig);this.hasRun=!0};var B2=function(z,l){this.hasRun=!1;this.d5B=z;this.previousVideoId=l};
_.m(B2,XT);B2.prototype.validate=function(z){return _.C("kevlar_continue_playback_without_player_response")&&(z=_.k(z.endpoint,_.zb),(z==null?0:z.videoId)&&this.previousVideoId&&(z==null?void 0:z.videoId)===this.previousVideoId&&(z==null?0:z.continuePlayback))?!1:this.d5B.oUM===0};
B2.prototype.handle=function(z){_.WW.getInstance().triggerAction("yt-stop-old-player",z.data,!0)};var Nq_=function(z){z=z===void 0?{layer:0}:z;$m.call(this);this.lv.push(new B2(this));this.lv.push(new tC(z));this.lv.push(new rb(z))};
_.m(Nq_,$m);var XX=function(){XT.apply(this,arguments)};
_.m(XX,XT);XX.prototype.validate=function(z){return!!z.data.preconnect};
XX.prototype.handle=function(z){_.sK("bc");z=_.D(z.data.preconnect);for(var l=z.next();!l.done;l=z.next())l=l.value,(new Image).src=l};var Ey0=function(z,l,I,b,v,M,x){I=I===void 0?{layer:0}:I;M=M===void 0?_.ya():M;$m.call(this);if(b)if(v){v=M;this.lv.push(new Kq(this.nj,l,v));this.lv.push(new XX);var g,G;this.lv.push(new mv(this.nj,z,!1,!((g=l.clientParams)==null||!g.fromHistory),(G=l.clientParams)==null?void 0:G.previousVideoId,v,l.tempData));var u;this.lv.push(new B2(this,(u=l.clientParams)==null?void 0:u.previousVideoId));var Z;(Z=l.clientParams)!=null&&Z.fromHistory||(I.layer||(I=Object.assign({},I,{layer:0})),this.lv.push(new tC(I,
x)),this.lv.push(new rb(I)))}else this.lv.push(new Kq(this.nj,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},M)),this.lv.push(new mv(this.nj,z,!1,!1));else this.lv.push(new B2(this)),this.lv.push(new tC(I)),this.lv.push(new rb(I));_.C("web_response_commands_chunk_processor")&&b&&this.lv.push(new ea)};
_.m(Ey0,$m);Ey0.prototype.processChunk=function(z){z&&z.data.player===void 0&&this.nj.resolve();$m.prototype.processChunk.call(this,z)};var uwI=function(){this.hasRun=this.hasRun=!1};
_.m(uwI,XT);uwI.prototype.validate=function(z){return!this.hasRun&&!(!z.data.csn||!z.data.rootVe)};
uwI.prototype.handle=function(z){this.hasRun=!0;_.$O(z.data.csn,z.data.rootVe,3)};var Zzz=function(z,l,I){I=I===void 0?{layer:0}:I;$m.call(this);this.lv.push(new mv(this.nj,z));this.lv.push(new tC(I));this.lv.push(new rb(I))};
_.m(Zzz,$m);var Hzp=function(z,l,I,b,v){I=I===void 0?{layer:0}:I;b=b===void 0?_.ya():b;$m.call(this);var M=!!l&&!!l.clientParams&&!!l.clientParams.miniplayer;M&&this.lv.push(new uwI);this.lv.push(new Kq(this.nj,l,b));this.lv.push(new XX);var x,g;this.lv.push(new mv(this.nj,z,M,!((x=l.clientParams)==null||!x.fromHistory),(g=l.clientParams)==null?void 0:g.previousVideoId,b,l.tempData));var G;this.lv.push(new B2(this,(G=l.clientParams)==null?void 0:G.previousVideoId));var u;(u=l.clientParams)!=null&&u.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:M?3:0})),this.lv.push(new tC(I,v)),this.lv.push(new rb(I)));_.C("web_response_commands_chunk_processor")&&this.lv.push(new ea)};
_.m(Hzp,$m);var qG,Cz_;qG={};
_.yq4=(qG["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},qG["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},qG["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},qG["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qG["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qG["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qG["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},qG);_.iV=new _.$8("yt-edu");_.fH_=function(){this.JSC$13022_eduDisplayedThisLoad_={}};
Cz_=function(z){var l=_.fH_.getInstance();var I=_.OI("kevlar_tooltip_impression_cap");l=I&&parseInt(_.iV.get(z+"-impression")||0,10)>=I||_.iV.get(z+"-dismissed")?!1:(I=_.yq4[z])&&!l.JSC$13022_eduDisplayedThisLoad_[I.setKey||z]&&(I.titleText&&_.mY(I.titleText)||I.bodyText&&_.mY(I.bodyText))?!0:!1;if(!l)return null;l=_.yq4[z];if(!l)return null;I=l.bodyText?_.mY(l.bodyText):void 0;var b=l.titleText?_.mY(l.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:l.position,popup:{bubbleHintRenderer:{text:b?
_.lc(b):void 0,detailsText:I?_.lc(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lc(_.mY("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:z}}]}}}}}}}},{eduImpressionAction:{key:z}}]};
_.O9(_.fH_);var TUx=!1;for(var kX_="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),RaA=[],FX=6;FX>=1;FX--)RaA.push({columnCount:FX,query:FX==1?0:FX*2*107-4+32,className:"grid-"+FX+"-columns",width:FX*2*107+"px"});_.Kuu=function(z){this.actionRouter_=z=z===void 0?_.WW.getInstance():z;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.mOn(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.mOn=function(z){var l=z.miniGuideVisible_?72:0,I=z.documentWidth_-(z.guidePersistentAndVisible_?240:l);return RaA.find(function(b){return I>b.query})};
_.O9(_.Kuu);var tsI=function(){var z=this;this.JSC$13034_keyboardInUse=!1;document.addEventListener("keydown",function(){z.onKeydown()});
document.addEventListener("mousedown",function(){z.JSC$13034_keyboardInUse=!1})},Bqw;
tsI.prototype.isKeyBoardInUse=function(){return this.JSC$13034_keyboardInUse};
tsI.prototype.onKeydown=function(){this.JSC$13034_keyboardInUse=!0};var Xeu,c2;_.Qa=new _.$8("yt-mentions");_.Tv=function(){};
Xeu=function(z,l){return c2(l,"drag-to-reorder-edu-displayed")};
c2=function(z,l,I,b,v,M){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(l){if(_.Qa.get(l))return;_.Qa.set(l,!0,b)}if(v&&M!==void 0){l=Number(_.Qa.get(v)||0);if(l>=M)return;_.Qa.set(v,l+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:z,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.O9(_.Tv);var q$0,izA,FuI;q$0=function(z,l,I,b){this.JSC$13044_taskManager_=z;this.onFulfilled_=typeof l==="function"?l:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$13044_context_=b};
izA=function(z,l){z.onFulfilled_&&_.o0(z.JSC$13044_taskManager_,function(){z.onFulfilled_.call(z.JSC$13044_context_,l)})};
FuI=function(z,l){z.onRejected_&&_.o0(z.JSC$13044_taskManager_,function(){z.onRejected_.call(z.JSC$13044_context_,l)})};
_.SC=function(z){this.JSC$13047_taskManager_=z;this.callbacks_=[]};
_.SC.prototype.then=function(z,l,I){this.callbacks_.push(new q$0(this.JSC$13047_taskManager_,z,l,I));return this};
_.SC.prototype.onSuccess=function(z){this.callbacks_.forEach(function(l){izA(l,z)})};
_.SC.prototype.onFailure=function(z){this.callbacks_.forEach(function(l){FuI(l,z)})};
_.SC.prototype.cancel=function(){this.callbacks_.length=0};
gq_(_.SC);_.P0u=null;_.TH=new _.yH("ACTIVITY_TOKEN");var d3=function(z,l){this.serviceId=new gsA(z,l)};
d3.prototype.toString=function(){return this.serviceId.toString()};var Qau=function(){this.internalMap={}};
_.p=Qau.prototype;_.p.contains=function(z){return Object.prototype.hasOwnProperty.call(this.internalMap,z)};
_.p.get=function(z){if(this.contains(z))return this.internalMap[z]};
_.p.set=function(z,l){this.internalMap[z]=l};
_.p.getKeys=function(){return Object.keys(this.internalMap)};
_.p.remove=function(z){delete this.internalMap[z]};var oE=function(){this.mappings=new Qau;this.errorCallbacks=new Set};
oE.prototype.getModuleId=function(z){return z.serviceId.getModuleId()};
oE.prototype.get=function(z){var l=this.mappings.get(z.toString());return Y$_(this,l,z)};
oE.prototype.getMultipleAsync=function(){var z=_.AT.apply(0,arguments),l=this,I=z.map(function(G){return l.getModuleId(G)}),b=z.map(function(G){return l.mappings.get(G.toString())}).filter(function(G){return G});
if(b.length===z.length)return _.Hu(b.map(function(G,u){return Y$_(l,G,z[u])}));
var v=oQ().loadMultiple(I);b=_.sb(I.map(function(G){return v[G]}));
var M=document.hidden,x=-1,g=_.OI("get_async_timeout_ms",-1);g>-1&&(x=setTimeout(function(){_.PW(new _.qB("Module timeout.",I,M,document.hidden))},g));
return _.rO(b.then(function(){return z.map(function(G){return Y$_(l,l.mappings.get(G.toString()),G)})}).thenCatch(function(G){for(var u=_.D(l.errorCallbacks),Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z(G);
throw G;}),function(){clearTimeout(x)})};
oE.prototype.registerService=function(z,l){this.mappings.set(z.toString(),{type:"mapping",value:l});return z};
var Y$_=function(z,l,I){switch(l.type){case "mapping":return l.value;case "factory":return l=l.value(),z.mappings.set(I.toString(),{type:"mapping",value:l}),l;default:return _.Ap(l)}};
oE.prototype.onLoadError=function(z){var l=this;this.errorCallbacks.add(z);return function(){l.errorCallbacks.delete(z)}};
_.P2=new oE;var eFx=/^[a-zA-Z0-9_\-]{11}$/;var wEQ=_.cc(function(){var z,l;return(l=(z=window).matchMedia)==null?void 0:l.call(z,"(prefers-reduced-motion: reduce)").matches});var Tq_=_.cc(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 z=_.W8("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");z||(z=_.tA("VIDEO"),_.vd("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
z));return!!(z&&z.canPlayType&&z.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var aWf=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var hC;hC=function(){this.tokenJars={};if(this.cookiesEnabled=_.tE()){var z=_.mZ.get("CONSISTENCY",void 0);z&&cqu(this,{encryptedTokenJarContents:z})}};
_.jJ7=function(){hC.instance||(hC.instance=new hC);return hC.instance};
hC.prototype.handleResponse=function(z,l){if(!l)throw Error("Vf");var I,b;l=((I=l.innerTubeRequest.context)==null?void 0:(b=I.request)==null?void 0:b.consistencyTokenJars)||[];var v;(z=(v=z.responseContext)==null?void 0:v.consistencyTokenJar)&&this.replace(l,z)};
hC.prototype.replace=function(z,l){z=_.D(z);for(var I=z.next();!I.done;I=z.next())delete this.tokenJars[I.value.encryptedTokenJarContents];cqu(this,l)};
var cqu=function(z,l){if(l.encryptedTokenJarContents&&(z.tokenJars[l.encryptedTokenJarContents]=l,typeof l.expirationSeconds==="string")){var I=Number(l.expirationSeconds);setTimeout(function(){delete z.tokenJars[l.encryptedTokenJarContents]},I*1E3);
z.cookiesEnabled&&_.KG("CONSISTENCY",l.encryptedTokenJarContents,I,void 0,!0)}};var S$A,sD;S$A=window.location.hostname.split(".").slice(-2).join(".");_.PF=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var z=_.sZ("LOCATION_PLAYABILITY_TOKEN");_.sZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=dOu(this))&&(z=this.localStorage.get("yt-location-playability-token"));z&&(this.locationPlayabilityToken=z,this.mostRecentPosition=void 0)};
_.PF.getInstance=function(){sD=_.W8("yt.clientLocationService.instance");sD||(sD=new _.PF,_.vd("yt.clientLocationService.instance",sD));return sD};
_.PF.prototype.setLocationOnInnerTubeContext=function(z){z.client||(z.client={});if(this.mostRecentPosition)z.client.locationInfo||(z.client.locationInfo={}),z.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),z.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),z.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),z.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)z.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.PF.prototype.handleResponse=function(z){var l;z=(l=z.responseContext)==null?void 0:l.locationPlayabilityToken;z!==void 0&&(this.locationPlayabilityToken=z,this.mostRecentPosition=void 0,_.sZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=dOu(this))&&this.localStorage.set("yt-location-playability-token",z,15552E3):_.KG("YT_CL",JSON.stringify({loctok:z}),15552E3,S$A,!0))};
var dOu=function(z){return z.localStorage===void 0?new _.$8("yt-client-location"):z.localStorage};
_.PF.prototype.clearLocationPlayabilityToken=function(z){z==="TVHTML5"?(this.localStorage=dOu(this))&&this.localStorage.remove("yt-location-playability-token"):_.mFf("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.PF.prototype.getCurrentPositionFromGeolocation=function(){var z=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var l=!1,I=1E4;_.sZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(l=!0,I=15E3);return new Promise(function(b,v){navigator.geolocation.getCurrentPosition(function(M){z.mostRecentPosition=M;b(M)},function(M){v(M)},{enableHighAccuracy:l,
maximumAge:0,timeout:I})})};
_.PF.prototype.createUnpluggedLocationInfo=function(z){var l={};z=z.coords;if(z==null?0:z.latitude)l.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)l.longitudeE7=Math.floor(z.longitude*1E7);if(z==null?0:z.accuracy)l.locationRadiusMeters=Math.round(z.accuracy);return l};
_.PF.prototype.createLocationInfo=function(z){var l={};z=z.coords;if(z==null?0:z.latitude)l.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)l.longitudeE7=Math.floor(z.longitude*1E7);return l};var oyA=function(){};
_.p=oyA.prototype;
_.p.JSC$13114_getRequest=function(z,l,I){l=l===void 0?{}:l;I=I===void 0?uYu:I;var b=l;if(this.isNavigationCommand()){var v,M=(v=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:v.url;b=_.J$x(z.clickTrackingParams,!0,!1,M,this.JSC$13114_getClientScreen(b))}else b=_.J$x(z.clickTrackingParams,!1,this.includeCsn);b={context:b};if(v=this.getExtension(z))return this.JSC$13114_buildRequest(b,v,l),v=this.getApiUrl(z),M=Object.assign({},{command:z},this.getRequestConfig(z,l)),b={input:v,requestShell:jn(v),
innerTubeRequest:b,config:M},b.config.authStrategy?b.config.authStrategy.identity=I:b.config.authStrategy={identity:I},(z=this.JSC$13114_getRequestKey(z,l))&&!b.config.requestKey&&(b.config.requestKey=z),b;z=new _.qB("Error: Failed to create Request from Command.",z);_.dE(z)};
_.p.getApiUrl=function(z){var l=_.Mo(this.getApiPaths(z)),I;(z=(I=_.k(z.commandMetadata,_.kB))==null?void 0:I.apiUrl)&&(l=z);return RCx(kCH(l))};
_.p.isNavigationCommand=function(){return!1};
_.p.JSC$13114_getClientScreen=function(){};
_.p.JSC$13114_getRequestKey=function(){};
_.p.getRequestConfig=function(){};
_.vP.Object.defineProperties(oyA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var r3=function(){};
_.m(r3,oyA);r3.prototype.JSC$13121_getStoreKey=function(){};
r3.prototype.JSC$13114_getRequestKey=function(z,l){l=l===void 0?{}:l;return this.JSC$13121_getStoreKey(z,l)};_.hY={getLocalStorage:_.cc(function(){try{var z=new FMY;var l=z.isAvailable()?z:null}catch(I){return null}return l?new _.EU(l):null}),
getSessionStorage:_.cc(function(){var z=new QhY;return z.isAvailable()?new _.EU(z):null})};var gx=new _.yH("ENTITY_STATE_TOKEN"),$T=new _.yH("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var PzA=XMLHttpRequest.prototype.fetch,haj=PzA&&PzA.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Iw?!0:!1;var eC=function(z){this.JSC$13127_storeWithEntities=z};
_.m(eC,r3);_.p=eC.prototype;_.p.getApiPaths=function(){return IR4};
_.p.getExtension=function(z){return _.k(z,_.zb)||_.k(z,_.FN)||_.k(z,Jd_)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(z){if((_.C("kevlar_cache_on_ttl_player")||_.C("mweb_enable_shorts_innertube_player_prefetch")||_.C("mweb_use_new_history_manager")||_.C("web_shorts_prefetch_service_enabled"))&&(z=this.getExtension(z))&&z.videoId){var l={videoId:z.videoId};z.playlistId&&(l.playlistId=z.playlistId);z.playerParams&&(l.params=z.playerParams);return _.J8("player",l)}};
_.p.JSC$13114_getClientScreen=function(z){var l;return((l=z.contentPlaybackContext)==null?void 0:l.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$13114_buildRequest=function(z,l,I){if(_.C("enable_interstitial_entity_check")){var b=this.JSC$13127_storeWithEntities;if(l.videoId)for(var v=_.D(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),M=v.next();!M.done;M=v.next()){M=M.value;var x;var g=void 0,G=void 0,u=l.videoId,Z=M;(x=b)?(u=_.Hg(u+Z,"interstitialInteractionStateEntity"),x=(g=(G=_.Cc(x.getState().entities,"interstitialInteractionStateEntity",u))==null?void 0:G.primaryButtonClicked)!=null?g:!1):x=!1;if(x)switch(M){case "CONTENT_CHECK_REQUIRED":l.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":l.racyCheckOk=!0}}}l.videoId&&(z.videoId=l.videoId);l.playlistId&&(z.playlistId=l.playlistId);l.index!==void 0&&(z.playlistIndex=l.index+1);l.playerParams&&(z.params=l.playerParams);"startTimeSeconds"in l&&l.startTimeSeconds&&(_.C("enable_player_request_builder_start_time_floor")?z.startTimeSecs=Math.floor(l.startTimeSeconds):z.startTimeSecs=l.startTimeSeconds);I.contentPlaybackContext&&(z.playbackContext={contentPlaybackContext:I.contentPlaybackContext});I.prefetchPlaybackContext&&
(z.playbackContext=Object.assign({},z.playbackContext,{prefetchPlaybackContext:I.prefetchPlaybackContext}),z.context.request||(z.context.request={}),z.context.request.isPrefetch=!0);z.playbackContext||(z.playbackContext={});b=Tq_();z.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!b,supportXhr:haj};I.overrideMutedAtStart&&(z.overrideMutedAtStart=I.overrideMutedAtStart);z.racyCheckOk=!!l.racyCheckOk;z.contentCheckOk=!!l.contentCheckOk;!_.C("captions_prefs_killswitch")&&(I=(I=_.rD("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(z.captionParams={viewerSelectedCaptionLangs:I})};
_.p.getRequestConfig=function(z){z=this.JSC$13121_getStoreKey(z);var l;z&&(l={storeStrategy:{storeKey:z}});_.C("web_log_player_watch_next_ticks")&&(l=l||{},l.requestTick="ps_s",l.responseTick="ps_r");return l};
eC[HG]=[gx];var w3=function(){};
_.m(w3,r3);_.p=w3.prototype;_.p.getApiPaths=function(){return cn0};
_.p.getExtension=function(z){return _.k(z,_.zb)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(z){if((z=this.getExtension(z))&&z.videoId){var l={videoId:z.videoId};z.playlistId&&(l.playlistId=z.playlistId);z.index&&(l.index=z.index);z.params&&(l.params=z.params);return _.J8("next",l)}};
_.p.JSC$13114_getClientScreen=function(z){var l;return((l=z.contentPlaybackContext)==null?void 0:l.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$13114_buildRequest=function(z,l,I){l.videoId&&(z.videoId=l.videoId);l.playlistId&&(z.playlistId=l.playlistId);l.params&&(z.params=l.params);l.index!==void 0&&(z.playlistIndex=l.index);z.racyCheckOk=!(!I.racyCheckOk&&!l.racyCheckOk);z.contentCheckOk=!!l.contentCheckOk;I.contentPlaybackContext&&(z.autonavState=I.contentPlaybackContext.autonavState,z.playbackContext={vis:I.contentPlaybackContext.vis,lactMilliseconds:I.contentPlaybackContext.lactMilliseconds});I.prefetchPlaybackContext&&(z.context.request||
(z.context.request={}),z.context.request.isPrefetch=!0);_.C("captions_hats_killswitch")||(l=_.Bu().getFlag(65),l=l!=null?!l:!1,I=!!_.rD("yt-player-sticky-caption"),z.captionsRequested=l&&I)};
_.p.getRequestConfig=function(z){z=this.JSC$13121_getStoreKey(z);var l;z&&(l={storeStrategy:{storeKey:z}});_.C("web_log_player_watch_next_ticks")&&(l=l||{},l.requestTick="wn_s",l.responseTick="wn_r");return l};
var AC=function(){};
_.m(AC,r3);AC.prototype.getApiPaths=function(){return cn0};
AC.prototype.getExtension=function(z){return _.k(z,_.a2)};
AC.prototype.JSC$13114_buildRequest=function(z,l){l.token&&(z.continuation=l.token)};var W2=function(z,l){this.playerRequestBuilder=z;this.watchNextRequestBuilder=l};
_.m(W2,r3);W2.prototype.getApiPaths=function(){return A$z};
W2.prototype.getExtension=function(z){return _.k(z,_.zb)};
W2.prototype.isNavigationCommand=function(){return!0};
W2.prototype.JSC$13114_buildRequest=function(z,l,I){z.playerRequest={};this.playerRequestBuilder.JSC$13114_buildRequest(z.playerRequest,l,I);_.C("web_streaming_watch")&&(z.watchNextRequest={},this.watchNextRequestBuilder.JSC$13114_buildRequest(z.watchNextRequest,l,I))};
W2[HG]=[eC,w3];var sap;_.nq=new _.yH("SHORTS_CONTROLLER_TOKEN");sap=new _.yH("SHORTS_STATE_STORE_TOKEN");var Lq=function(z,l){var I=_.AT.apply(2,arguments);z=z===void 0?0:z;_.qB.call(this,l,I);this.errorType=z;Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(Lq,_.qB);var rq_,$O_,weM,bZY,LI,Rwp,Lu4,nyj,zR0,Vs_,aHM;rq_=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(z){return z+"="}).join("|"));
$O_=RegExp(".*\\?.*playnext=1.*");_.UD=function(z,l,I,b){this.watchEndpointMap=z;this.reelWatchEndpointMap=l;this.innerTubeTransportService=I;this.fetchPbj=b};
weM=function(z,l,I){var b=_.pG().resolve(_.MB(eaM));_.UD.instance=new _.UD(z,l,I,b)};
_.Aq4=function(z,l){var I=_.OI("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var b;if((b=_.k(l.commandMetadata,_.kB))==null||!b.rootVe)return I&&_.PW(Error("Yf")),!1;var v;b=(v=_.k(l.commandMetadata,_.kB))==null?void 0:v.url;if(!b)return I&&_.PW(Error("Zf")),!1;if($O_.test(b))return!0;if(rq_.test(b))return I&&_.PW(Error("$f`"+b)),!1;if(_.k(l,_.zb)){if(!(z.watchEndpointMap.watchNext&&z.watchEndpointMap.player||_.C("kevlar_fetch_initial_data_op_watch_client")))return I&&_.PW(Error("Rf")),!1;
z=_.OI("web_pbj_log_warning_rate",0);z=z>0&&Math.random()<z;_.k(l,_.zb)?r$H(l)?l=!0:(z&&_.PW(Error("Sf")),l=!1):(z&&_.PW(Error("Rf")),l=!1);return l}if(_.k(l,_.FN))return $d5(l);if(_.k(l,_.pt))return!0;z=_.l1(z.innerTubeTransportService,l);!z&&I&&_.dE(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(l)});return z};
bZY=function(z,l,I,b,v,M){l={url:l};if(I==null?0:I.itct)l.parentTrackingParams=I.itct;var x=_.Mo(GMn);return _.Gv(z.innerTubeTransportService,l,x).then(function(g){(g=g.endpoint)||(g=_.AM);(I==null?0:I.itct)&&g&&!g.trackingParams&&(g.trackingParams=I.itct);var G=qo(g);return LI(z,g,I,b,G,v,M)})};
LI=function(z,l,I,b,v,M,x,g){g=g===void 0?{}:g;if(z.fetchPbj&&!_.Aq4(z,l)&&!_.C("force_one_platform")){g=z.fetchPbj(l);var G=_.Hu(g.then(function(A){if(!A)throw Error("bg");x(G)||M(l,A);return A}));
return G}var u,Z,H={rootVe:(u=_.k(l.commandMetadata,_.kB))==null?void 0:u.rootVe,url:(Z=_.k(l.commandMetadata,_.kB))==null?void 0:Z.url,endpoint:l,page:v};if(_.k(l,_.zb)){var y,f={contentPlaybackContext:_.TN(I,(y=_.k(l.commandMetadata,_.kB))==null?void 0:y.url,b)},R=_.b1();_.C("web_streaming_watch")&&window.TextDecoderStream?(g=Wu_(z.innerTubeTransportService,l,f,function(A){!H.response&&A.content&&(H.response=A.content);!H.playerResponse&&A.player&&(H.playerResponse=A.player);M(l,H)}),u=mlp(l),u.length&&
(H.preconnect=u,M(l,H)),nyj(g,R,H).catch(function(A){A instanceof Lq&&A.errorType===2&&_.C("web_streaming_watch_fallback")&&Lu4(z,l,f,H,M,x,R)})):Lu4(z,l,f,H,M,x,R);
return R.promise}if(_.k(l,_.FN)){var F;if(((F=_.k(l,_.FN))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Y=_.b1();_.UOp(_.pG().resolve(_.nq),l).then(function(A){aHM(z,I,b,v,M,Y,A)});
return Y.promise}g=_.Hu();var c;u={contentPlaybackContext:_.TN(I,(c=_.k(l.commandMetadata,_.kB))==null?void 0:c.url,b)};(c=z.reelWatchEndpointMap.player)&&(c=c().JSC$13114_getRequest(l,u))&&(g=_.Gv(z.innerTubeTransportService,c.innerTubeRequest,c.input,l.clickTrackingParams,c.config));c=_.Hu();(Z=z.reelWatchEndpointMap.reelItemWatch)&&(Z=Z().JSC$13114_getRequest(l))&&(c=_.Gv(z.innerTubeTransportService,Z.innerTubeRequest,Z.input,l.clickTrackingParams,Z.config));Z=_.Hu();_.C("web_enable_delay_shorts_sequence_call_new")||
(y=z.reelWatchEndpointMap.reelWatchSequence)&&_.k(l,_.FN).sequenceParams&&(u=y().JSC$13114_getRequest(l,u))&&(Z=_.Gv(z.innerTubeTransportService,u.innerTubeRequest,u.input,l.clickTrackingParams,u.config));u=_.Hu(H);y=_.b1();Vs_(l,u,g,c,Z,M,x,y);return y.promise}var d;if(_.k(l,ojY)&&((d=_.k(l.commandMetadata,_.kB))==null?0:d.url))return g=VT1(_.UA($q().location.href),_.UA(_.k(l.commandMetadata,_.kB).url)).toString(),bZY(z,g,I,b,M,function(){return!1});
if(_.k(l,_.pt))return M(l,H),_.Hu(H);if(_.l1(z.innerTubeTransportService,l)){g=Object.assign({},{tempData:I,disableCache:I.disableCache},g);var V=_.I0(z.innerTubeTransportService,l,g).then(function(A){H.response=A;x(V)||M(l,H);return H});
return V}return _.Hu(H)};
_.Jq_=function(z,l,I,b){if(_.k(l,_.zb)||_.k(l,_.FN)&&(_.C("mweb_enable_shorts_innertube_player_prefetch")||_.C("kevlar_enable_shorts_prefetch_in_sequence"))||_.k(l,Jd_)&&_.C("web_enable_prefetching_videos_on_home")){var v,M={contentPlaybackContext:_.TN(I,(v=_.k(l.commandMetadata,_.kB))==null?void 0:v.url,b),prefetchPlaybackContext:WWf(I)},x,g,G;if(((x=_.k(l,_.zb))==null?void 0:(g=x.watchEndpointSupportedPrefetchConfig)==null?void 0:(G=g.prefetchHintConfig)==null?void 0:G.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
z.watchEndpointMap.watchNext)if(M=I().JSC$13114_getRequest(l,M))return Promise.resolve(_.Gv(z.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(H){return H}))}else if(I=z.watchEndpointMap.player)if(M=I().JSC$13114_getRequest(l,M))return Promise.resolve(_.Gv(z.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(H){return H}))}else if(_.l1(z.innerTubeTransportService,l)){var u={tempData:I},Z=ja4(z.innerTubeTransportService,l);
return Z?new Promise(function(H,y){var f,R;return _.O(function(F){if(F.nextAddress==1)return F.yield(Z,2);if(F.nextAddress!=4)return f=F.yieldResult,f.JSC$13121_getStoreKey(l,u)?F.yield(_.I0(z.innerTubeTransportService,l,u),4):(y(new _.qB("Prefetching request builder with no store key.",l)),F.jumpTo(0));R=F.yieldResult;H(R);_.qe(F)})}):Promise.reject(new _.qB("Prefetching unregistered request builder.",l))}return Promise.reject(new _.qB("No request builder available to prefetch endpoint.",l))};
Rwp=function(z,l){var I,b,v;if(_.k(l,_.zb)){var M=z.watchEndpointMap.watchNext;M&&(I=M());(z=z.watchEndpointMap.player)&&(b=z())}else if(_.k(l,_.FN))(M=z.reelWatchEndpointMap.reelItemWatch)&&(I=M()),(M=z.reelWatchEndpointMap.player)&&(b=M()),(z=z.reelWatchEndpointMap.reelWatchSequence)&&(v=z());else{a:{z=hlG(l,z.innerTubeTransportService.endpointMap);if(z!==void 0)if(typeof z.then==="function")_.dE(new _.qB("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",l));else break a;
z=void 0}z&&(I=z)}var x,g,G;return{content:(x=I)==null?void 0:x.JSC$13121_getStoreKey(l),player:(g=b)==null?void 0:g.JSC$13121_getStoreKey(l),reelSequence:(G=v)==null?void 0:G.JSC$13121_getStoreKey(l)}};
Lu4=function(z,l,I,b,v,M,x){var g=_.Hu(),G=z.watchEndpointMap.player;_.C("web_streaming_player")&&(G=YW(W2));G&&(G=G().JSC$13114_getRequest(l,I))&&(g=_.Gv(z.innerTubeTransportService,G.innerTubeRequest,G.input,l.clickTrackingParams,G.config));G=_.Hu();var u=z.watchEndpointMap.watchNext;u&&(I=u().JSC$13114_getRequest(l,I))&&(G=_.Gv(z.innerTubeTransportService,I.innerTubeRequest,I.input,l.clickTrackingParams,I.config));z=_.Hu(b);zR0(l,z,g,G,v,M,x)};
nyj=function(z,l,I){return _.O(function(b){if(b.nextAddress==1)return b.yield(z,2);l.resolve(I);_.qe(b)})};
zR0=function(z,l,I,b,v,M,x){var g,G,u,Z,H;_.O(function(y){switch(y.nextAddress){case 1:return y.yield(l,2);case 2:g=y.yieldResult;if(M(x.promise))return x.resolve(g),y.return();v(z,g);G=mlp(z);if(!G.length){y.jumpTo(3);break}return y.yield(l,4);case 4:g.preconnect=G,v(z,g);case 3:return _.RL(y,5),y.yield(I,7);case 7:u=y.yieldResult;_.a3(y,6);break;case 5:return Z=_.XP(y),x.reject(Z),y.return();case 6:if(u===void 0)return g.reload=!0,v(z,g),x.resolve(g),y.return();if(M(x.promise))return x.resolve(g),
y.return();g.playerResponse=u;v(z,g);_.RL(y,8);return y.yield(b,10);case 10:H=y.yieldResult;_.a3(y,9);break;case 8:_.XP(y);case 9:if(H===void 0)return g.response={responseContext:{}},x.resolve(g),y.return();if(M(x.promise))return x.resolve(g),y.return();g.response=H;v(z,g);x.resolve(g);_.qe(y)}})};
Vs_=function(z,l,I,b,v,M,x,g){var G,u,Z,H,y,f;_.O(function(R){switch(R.nextAddress){case 1:return R.yield(l,2);case 2:G=R.yieldResult;if(x(g.promise))return g.resolve(G),R.return();M(z,G);u=mlp(z);if(!u.length){R.jumpTo(3);break}return R.yield(l,4);case 4:G.preconnect=u,M(z,G);case 3:return _.RL(R,5),R.yield(I,7);case 7:Z=R.yieldResult;_.a3(R,6);break;case 5:return H=_.XP(R),g.reject(H),R.return();case 6:if(Z===void 0)return G.reload=!0,M(z,G),g.resolve(G),R.return();if(x(g.promise))return g.resolve(G),
R.return();G.playerResponse=Z;M(z,G);_.RL(R,8);return R.yield(b,10);case 10:y=R.yieldResult;_.a3(R,9);break;case 8:_.XP(R);case 9:if(y===void 0)return G.response={responseContext:{}},g.resolve(G),R.return();if(x(g.promise))return g.resolve(G),R.return();G.response=y;M(z,G);_.RL(R,11);return R.yield(v,13);case 13:f=R.yieldResult;_.a3(R,12);break;case 11:_.XP(R);case 12:if(x(g.promise))return g.resolve(G),R.return();f&&(G.reelWatchSequenceResponse=f);M(z,G);g.resolve(G);_.qe(R)}})};
aHM=function(z,l,I,b,v,M,x){var g,G,u,Z,H,y;_.O(function(f){if((g=x)==null||!g.replacementEndpoint)return M.reject(),f.return();G=x.replacementEndpoint;(u=_.k(G,_.FN))?(x.sequenceContinuation&&(u.sequenceParams=x.sequenceContinuation),Z=_.pG().resolve(_.nq),H=u.sequenceParams,l7w(Z,G)&&delete u.sequenceParams,y=LI(z,G,l,I,b,v,function(){return!1}),y.then(function(R){return _.O(function(F){if(F.nextAddress==1)return I70(Z,{reelWatchEndpoint:{sequenceParams:H}},R),F.yield(0,2);
M.resolve(R);_.qe(F)})})):M.reject();
_.qe(f)})};_.bgz=function(z){if(z.validatedFragments_.length==0)return null;if(!z.mergedPrefetchedData_){for(var l=[],I=_.D(z.validatedFragments_),b=I.next();!b.done;b=I.next()){b=_.D(z.fragmentConfiguration_[b.value].graftedKeys);for(var v=b.next();!v.done;v=b.next())(v=z.prefetchedData_[v.value].trackingParams)&&l.push(v)}z.mergedPrefetchedData_={};Object.assign(z.mergedPrefetchedData_,z.prefetchedData_,{clientSideGrafts:l})}return z.mergedPrefetchedData_};var vV0;_.aE=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
vV0=function(z,l,I){if(_.hF$(l))return z.prefetchCache_.get(_.sJt(l,I))};_.Va=new _.yH("NAVIGATION_TOKEN");var Mzp=function(z){var l=this;var I=I===void 0?IRS():I;var b=b===void 0?_.pG().resolve(_.Va):b;this.onePickCommand=z;this.JSC$13225_playlistNetworkManager=I;this.navigationManager=b;this.videoPickerBuilder=_.zG7("yt-addtoplaylist");_.Q34(Kgu(tXM(mAA(this.videoPickerBuilder.setTitle(z.modalTitle).setSize(1E3).addView(XV4()).addView(Bkj())).addView("youtube"),z.selectButtonLabel)),function(v){l.handleAction(v)})};
Mzp.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Mzp.prototype.handleAction=function(z){var l=this;if(z&&this.onePickCommand.listId&&z.action==="picked"&&z.docs){var I=[];z.docs.forEach(function(b){I.push({addedVideoId:b.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13225_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.C("playlist_add_video_hard_reload_killswitch")?l.navigationManager.reload():p9u(l.navigationManager)})}};var D_j=function(){if(this.constructor===D_j)throw new TypeError("cg");};
_.p=D_j.prototype;_.p.dispose=function(){};
_.p.disconnect=function(){};
_.p.reconnect=function(){};
_.p.observe=function(z,l,I){return{element:z,option:I}};
_.p.unobserveByKey=function(){};var by7=function(z,l){l=l===void 0?0:l;D_j.call(this);this.viewroot=z;this.defaultPrescanHeight=l;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),z?{root:z,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.m(by7,D_j);_.p=by7.prototype;_.p.dispose=function(){this.disconnect();this.handlers.clear()};
_.p.disconnect=function(z){this.isConnected=!1;this.pauseObservingUntilReconnect=z===void 0?!1:z;this.observer.disconnect();z=_.D(this.prescanObservers.values());for(var l=z.next();!l.done;l=z.next())l.value.disconnect()};
_.p.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var z=_.D(this.handlers),l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;var b=I.next().value;I=!1;b=_.D(b.keys());for(var v=b.next();!v.done;v=b.next())if((v=v.value)&&v.state==="prescan"){I=!0;break}I&&x__(this,l).observe(l);this.observer.observe(l)}}};
_.p.handleObserveEvent=function(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;var I=this.handlers.get(l.target);if(I){var b=l.isIntersecting;I=_.D(I);for(var v=I.next();!v.done;v=I.next()){var M=_.D(v.value);v=M.next().value;M=M.next().value;v&&(v.state==="visible"&&b||v.state==="hidden"&&!b)&&(M(l.target,v.state),v.calledOnce&&this.unobserveByKey({element:l.target,option:v}))}}}};
_.p.handlePrescanEvent=function(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;var I=this.handlers.get(l.target);if(I&&l.isIntersecting){I=_.D(I);for(var b=I.next();!b.done;b=I.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;b&&b.state==="prescan"&&(v(l.target,b.state),b.calledOnce&&this.unobserveByKey({element:l.target,option:b}))}}}};
_.p.observe=function(z,l,I){var b=(b=this.handlers.get(z))&&b.has(I)?{element:z,option:I}:void 0;if(b)return b;b={element:z,option:I};this.handlers.has(z)||this.handlers.set(z,new Map);var v=this.handlers.get(z);v&&!v.has(I)&&v.set(I,l);this.pauseObservingUntilReconnect||(I.state==="prescan"&&x__(this,z).observe(z),this.observer.observe(z));return b};
_.p.unobserveByKey=function(z){var l=this.handlers.get(z.element);if(l&&l.has(z.option)){l.delete(z.option);if(z&&z.option.state==="prescan")for(var I=_.D(this.prescanObservers.values()),b=I.next();!b.done;b=I.next())b.value.unobserve(z.element);l.size===0&&(this.handlers.delete(z.element),this.observer.unobserve(z.element))}};
var x__=function(z,l){var I=z.defaultPrescanHeight;l.hasAttribute("prescan-height")&&(l=Number(l.getAttribute("prescan-height")),isNaN(l)||(I=l));if(z.prescanObservers.has(I))return z.prescanObservers.get(I);l="-0.1px -0.1px "+I+"px -0.1px";l=new IntersectionObserver(z.handlePrescanEvent.bind(z),z.viewroot?{root:z.viewroot,rootMargin:l}:{rootMargin:l});z.prescanObservers.set(I,l);return l};var Og0=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],gVA=function(){var z,l=this;this.JSC$13242_actionRouter=z=z===void 0?_.WW.getInstance():z;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return l.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return l.visibilityObservedElementHandlerKeys}}},G5A,EV_,Hg_;
gVA.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.C("kevlar_use_vimio_behavior")&&_.sZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=vJ1())};
gVA.prototype.dispose=function(){this.visibilityMonitor&&_.dO(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
gVA.prototype.handleVisibilityRefreshed=function(){for(var z=_.D(this.targetMap.entries()),l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;_.NNj(this,l,I)}};
_.ZgI=function(z,l,I){EV_(z,I);var b=_.uvI(z,l);b.element=I;z.targetedElements.set(I,l);_.NNj(z,l,b)};
EV_=function(z,l){var I=z.targetedElements.get(l);if(I){var b=z.targetMap.get(I);b&&(delete b.element,z.targetMap.set(I,b));z.targetedElements.delete(l);z.visibilityObserver&&z.visibilityObservedElementHandlerKeys&&(I=z.visibilityObservedElementHandlerKeys.get(l))&&(z.visibilityObserver.unobserveByKey(I),z.visibilityObservedElementHandlerKeys.delete(l))}};
_.NNj=function(z,l,I){var b=I.action,v=I.element;v&&b&&(Og0.includes(l)||_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||z.visibilityMonitor&&z.visibilityMonitor.isNodeVisible(v)?Hg_(z,l,I):z.visibilityObserver&&(z.visibilityObservedElementHandlerKeys||(z.visibilityObservedElementHandlerKeys=new WeakMap),b=z.visibilityObserver.observe(v,function(){Hg_(z,l,I);z.visibilityObservedElementHandlerKeys.delete(v)},{calledOnce:!0,
state:"visible"}),z.visibilityObservedElementHandlerKeys.set(v,b)))};
Hg_=function(z,l,I){var b=I.action;(I=I.element)&&b&&(_.Jg(z.JSC$13242_actionRouter,[b],I),z.targetMap.delete(l),z.targetedElements.delete(I),z.triggeredTargets.add(l))};
_.uvI=function(z,l){var I=z.targetMap.get(l);I||(I={},z.targetMap.set(l,I));return I};
_.jC=function(){G5A||(G5A=new gVA);return G5A};var ywA=document.createElement("div");ywA.style.touchAction="pan-down";var M5p=ywA.style.touchAction==="pan-down";var f7u,Cdu;f7u=function(){this.hammerFn=iY_();this.JSC$13250_screenManager=_.iY();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.kU(83615);_.Pf(this.JSC$13250_screenManager,this.ve);pD$()};
_.JC=function(){Cdu||(Cdu=new f7u);return Cdu};
f7u.prototype.registerTouchEvents=function(z,l,I){var b=_.AT.apply(3,arguments),v=this.hammerFn(z,{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}]]});I&&v.set({touchAction:I});this.nodeManagerMapping.set(z,v);var M=
Dm1(l);b=_.D(b);for(var x=b.next();!x.done;x=b.next()){x=x.value;if(x.includes("swipe")||x.includes("pinch")||x.includes("pan"))x.includes("swipe")?v.get("swipe").set({enable:!0,direction:M,velocity:.2}):x.includes("pinch")?v.get("pinch").set({enable:!0}):x.includes("pan")&&(v.get("pan").set({enable:!0,direction:M}),v.get("swipe").set({enable:!0,direction:M,velocity:.2}),v.get("swipe").recognizeWith("pan"));k5_(this,z,v,x)}};
var k5_=function(z,l,I,b){I.on(b,function(v){if(b.includes("pinch"))z.lastPinchTime=Date.now();else if(b.includes("swipe")&&Date.now()-z.lastPinchTime<400)return;v.pointerType!=="mouse"&&(v=b==="doubletap"?{coordinates:v.center}:b.includes("pan")?v:b.includes("swipe")?{target:v.target}:{},l.dispatchEvent(new CustomEvent(b,{bubbles:!0,composed:!0,detail:v})))})};
f7u.prototype.unregisterTouchEvents=function(z){var l=_.AT.apply(1,arguments),I=this.nodeManagerMapping.get(z);if(I){l=_.D(l);for(var b=l.next();!b.done;b=l.next())I.off(b.value);this.nodeManagerMapping.delete(z);z.style.touchAction="unset"}};var RRw=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var xm5=null;var m_p=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},XDp=function(){m_p.instance||(m_p.instance=new m_p);
return m_p.instance},qsx=function(z){var l=z.networkEvents;
z.networkEvents=[];return _.C("enable_network_monitoring")?l:[]};var Kd0;Kd0={};_.tzn=pp("yt-serviceworker-metadata",{objectStores:(Kd0.auth={addedAtVersion:1},Kd0["resource-manifest-assets"]={addedAtVersion:2},Kd0),shared:!0,upgrade:function(z,l){l(1)&&wi(z,"resource-manifest-assets");l(2)&&wi(z,"auth")},
version:2});var uHQ=self.location.origin+"/";ZyQ([/\.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\//]);ZyQ([/purge_shell=1/]);var BN_=void 0;BN_=BN_===void 0?[]:BN_;for(var X9M=[],qH4=_.D(Dhu),ign=qH4.next();!ign.done;ign=qH4.next())X9M.push({key:ign.value});for(var Fd_=_.D(BN_),Q70=Fd_.next();!Q70.done;Q70=Fd_.next())X9M.push(Q70.value);var YHz,WF=_.v7==null?void 0:(YHz=_.v7.performance)==null?void 0:YHz.memory,fR5=!1,iyp={},RGx={},nr={},Lr=navigator;var z$=function(z){this.JSC$13294_expiringStorage=new QI(z)};
z$.prototype.set=function(z,l,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$13294_expiringStorage.set(z,l,I)};
z$.prototype.get=function(z){return this.JSC$13294_expiringStorage.get(z)};
z$.prototype.remove=function(z){this.JSC$13294_expiringStorage.remove(z)};var oJx=_.zs(["https://www.youtube.com/",""]),PLf=_.zs(["https://studio.youtube.com/",""]),eGH="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",sn1=null,LrS;var TN_=_.zs(["https://www.youtube.com/iframe_api"]),lh=function(){this.playerResolver_=_.b1();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Tn;this.playbackDurationSeconds_=0},cw_=function(z){var l=function(){return window.YT&&typeof window.YT.ready==="function"};
if(l())return _.Hu(window.YT);var I=_.b1(),b=_.tA("SCRIPT");b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||(b.onload=_.Tn,b.onreadystatechange=_.Tn,b.onerror=_.Tn,l()?I.resolve(window.YT):I.reject(new _.qB("Failed to load the iframe player library","script.onload",b.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
b.onerror=function(v){b.onload=_.Tn;b.onreadystatechange=_.Tn;b.onerror=_.Tn;I.reject(new _.qB("Failed to load the iframe player library","script.onerror",v&&v.target&&v.target.src))};
_.Me(b,_.HR(TN_));z.insertBefore(b,z.firstChild);return I.promise},SHz=function(z,l,I){var b,v;
_.O(function(M){switch(M.nextAddress){case 1:return z.playbackEndedCallback_=I,_.RL(M,2),M.yield(cw_(l.parentElement||null),4);case 4:b=M.yieldResult;_.a3(M,3);break;case 2:return v=_.XP(M),v instanceof _.qB&&v.args&&v.args[0]=="script.onerror"?_.PW(v):_.dE(v),M.return();case 3:b.ready(function(){return new b.Player(l,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:z.onPlayerReady_.bind(z),onStateChange:z.onPlayerStateChange_.bind(z),
onCueRangeExit:z.onCueRangeExit_.bind(z)}})}),_.qe(M)}})};
_.p=lh.prototype;_.p.getPlayerPromise=function(){return this.playerPromise_};
_.p.onPlayerReady_=function(z){this.playerResolver_.resolve(z.target)};
_.p.onPlayerStateChange_=function(z){if(z.data==YT.PlayerState.PLAYING){z=z.target;var l=z.getCurrentTime();z.addCueRange("playback",l,l+this.playbackDurationSeconds_)}};
_.p.onCueRangeExit_=function(z){z.data=="playback"&&(z.target.stopVideo(),this.playbackEndedCallback_())};
_.p.stopVideo=function(){this.playerPromise_.then(function(z){z.stopVideo()})};
var d_I=function(z){z.playerVars_&&z.playerPromise_.then(function(l){typeof l.cueVideoByPlayerVars!="function"?_.PW(new _.qB("vmh: player API not ready","cueVideoByPlayerVars",typeof l.cueVideoByPlayerVars)):l.cueVideoByPlayerVars(z.playerVars_)})};
lh.prototype.playVideo=function(){var z=this;this.playerVars_&&this.playerPromise_.then(function(l){typeof l.loadVideoByPlayerVars!="function"?(l=new _.qB("vmh: player API not ready","loadVideoByPlayerVars",typeof l.loadVideoByPlayerVars),_.dE(l)):l.loadVideoByPlayerVars(z.playerVars_)})};
var oV0=function(z,l,I,b,v){l&&(I===void 0&&(I=0),b===void 0&&(b=0),z.playbackDurationSeconds_=b/1E3,z.playerVars_={adformat:"17_8",videoId:l,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:v})};
lh.prototype.mute=function(){this.playerPromise_.then(function(z){z.mute()})};
lh.prototype.unMute=function(){this.playerPromise_.then(function(z){z.unMute()})};var Pd_=function(z,l){var I=WP();z||(z="unknown");l||(l="unknown");z="MAIN_APP_WEB_PAGE_TYPE_"+z.toUpperCase();z in L1_||(z="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");l="MAIN_APP_WEB_REQUEST_TYPE_"+l.toUpperCase();l in Ul_||(l="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Zq(I,{mainAppWeb:{pageType:z,requestType:l,isShellLoad:_.rr("IS_SHELL_LOAD",!1)}})},hRu={start:function(){_.Zq(pKf(),{mainAppWeb:_.l5()})},
success:function(){_.HJ(pKf(),"SUCCESS")},
failure:function(){_.HJ(pKf(),"FAILURE")},
cancelled:function(){_.HJ(pKf(),"CANCELLED")}};var s7w,rw_,lzk;s7w=_.zs(["/sw.js"]);rw_=_.zs(["/sw.js?0"]);_.$_I=_.HR(s7w);lzk=_.HR(rw_);var eR_=function(){var z=Error.apply(this,arguments);this.message=z.message;"stack"in z&&(this.stack=z.stack)};
_.m(eR_,Error);_.vy.prototype.load=function(z){this.megabloxUrl_=_.sZ("YPC_MB_URL");_.nQ(this.megabloxUrl_,(0,_.YN)(function(){z&&z()},this))};
_.jOG=function(z,l,I,b,v,M,x,g,G,u,Z){_.b5u(G);z.load((0,_.YN)(function(){try{var H=M?M:_.sZ("HL"),y=_.sZ("SESSION_INDEX");_.hCH("client",function(){uQA("59",{helpCenterPath:"/youtube",locale:H,window:window}).JSC$9976_loadChatSupport({authuser:String(y)})})}catch(f){throw I8(10,Z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),v&&v(f),_.dE(f),f;
}w9u(this,l,I,b,v,M,x,g,G,u,Z)},z))};
_.vy.prototype.openFixFlowDialog=function(z,l,I,b){this.load((0,_.YN)(function(){try{AwM(this,_.W8("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(z).withIntegratorCallback(l).load(I,b)}catch(v){throw _.dE(v),v;}},this))};
var AwM=function(z,l,I,b){var v=l.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.C("enable_window_constrained_buy_flow_dialog")&&(v=v.usingPopupStyle(_.W8("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));b&&(v=v.usingCloseCallback(b));l.bootstrap.fromPaymentsUrl(z.megabloxUrl_);z=l.bootstrap.asMashupMode(v);I=I?I:_.sZ("HL");z.usingGaiaIndex(_.sZ("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.C("enable_google_payments_buyflow_material2_style_web")?
z.usingStyle(":m2;pc=#444;ac=#065fd4"):z.usingStyle(":md;pc=#444;ac=#065fd4");return z},w9u=function(z,l,I,b,v,M,x,g,G,u,Z){try{var H=_.W8("payments.business.integration");
if(!H)throw new eR_("payments.business.integration is undefined");var y=H.standaloneContextAuthId.forUserId(),f=AwM(z,H,M,function(){MqQ(!1);g&&g()});
x&&f.usingServerAnalyticsEventHandler(x);var R=f.inStandaloneContext(y).buyFlow(function(F){if(F&&(!F.integratorData||F.integratorData===""||F.error))if(F.error!=null)if(String(F.error)==="-1")_.vQ1(G);else{var Y=String(F.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";I8(10,Z,Y,F.debugCode);_.b5(Y,G,F.debugCode);Y=new _.qB("PAYMENT_ERROR_MESSAGE::"+F.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+F.internalErrorDetails);
_.dE(Y)}else I8(10,Z,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.b5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",G,"EMPTY_INTEGRATOR_DATA"),_.dE(Error("hg"));I&&(MqQ(!1),I(F))}).withEncryptedParameters(l);
u&&R.withClientParameters(NY5(_.aT5(u)));R.load(function(){I8(24,Z);_.$B("ttc",void 0,"commerce_transaction");Pu("commerce_transaction");b&&(b(),MqQ(!0))},function(F){if(F==null?0:F.debugCode)var Y=F==null?void 0:F.debugCode;
else if(!F||(F==null?0:F.debugCode))Y="EMPTY_LOAD_FAILURE_ERROR",_.dE(Error(Y));else{Y="EMPTY_LOAD_FAILURE_DEBUG_CODE";var c=new _.qB("LOAD_FAILURE:"+F.message," DEBUG_CODE:"+Y);_.dE(c)}I8(10,Z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y);_.b5("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G,Y);_.dE(F);v&&v(F)})}catch(F){throw F instanceof eR_&&(I8(10,Z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),v&&v(F)),_.dE(F),F;
}};var Wdp;Wdp=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.UD5=function(z,l){l=l===void 0?!1:l;z=Wdp.test(z)?_.QR(z):null;!l&&window.payments||!z?(z=_.b1(),l=z.promise,z.resolve()):l=_.lr0(z,{attributes:{"data-payments-main":"",id:"payment-lib"}});return l};var nVw;nVw=_.zs(["//www.googletagmanager.com/gtm.js?id=",""]);_.If=function(z,l){_.EB(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:l}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.sZ("GL")}),l=_.tA("SCRIPT"),l.async=!0,_.Me(l,_.HR(nVw,z)),l.id="gtm",z=document.getElementsByTagName("script"),z.length==0?document.head.appendChild(l):(z=z[0],z.parentNode.insertBefore(l,z)))};
_.bh=function(z){if(z=JSON.parse(z))window.dataLayer=window.dataLayer||[],window.dataLayer.push(z)};var Ldu,U_u;Ldu=_.zs(["https://clients2.google.com/gr/gr_sync.js"]);_.neQ=function(){};
_.neQ.prototype.init=function(){if(U_u()){var z=_.b1();z.resolve();return z.promise}return _.lr0(_.HR(Ldu)).then(function(){if(!U_u())throw Error("ig");},function(){throw Error("jg");
})};
_.LoQ=function(){if(!U_u())return"";var z=window.google.gr;z.init({async:{schedule:"sync"},merchantId:"youtube"});z.start();z=z.finish();return z==null?"":z};
U_u=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.q,PolymerFakeBaseClassWithoutHtml);_.F6=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.F6,PolymerFakeBaseClassWithoutHtml);var pmt=window.ShadyDOM;var rZt,hBQ,eBu,wmf,W8f,nQY,vZ,ZP;rZt=_.C("enable_shadydom_free_scoped_query_methods");hBQ=_.C("enable_shadydom_free_scoped_node_methods");eBu=_.C("enable_shadydom_free_scoped_readonly_properties_batch_one");wmf=_.C("enable_shadydom_free_parent_node");W8f=_.C("enable_shadydom_free_children");nQY=_.C("enable_shadydom_free_last_child");vZ=window.ShadyDOM;_.kE=vZ&&vZ.noPatch&&vZ.wrap?vZ.wrap:vZ?function(z){return vZ.patch(z)}:function(z){return z};
ZP=function(z){if(z instanceof ShadowRoot)this.host=(0,_.kE)(z.host),this.root=z;else if(z.$$){this.host=(0,_.kE)(z);var l;this.root=(l=z.root)!=null?l:this.host}else if(z.polymerController){this.host=(0,_.kE)(z);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.kE)(z)};
stH();$b7();L85();UbQ();AZ7();var a7n={querySelector:function(z,l){l=xb$(l,xE(z));z=_.Ox(z);return G9(z).prototype.querySelector.call(z,l)},
querySelectorAll:function(z,l){l=xb$(l,xE(z));z=_.Ox(z);return G9(z).prototype.querySelectorAll.call(z,l)}},VzA={appendChild:function(z,l){var I=xE(z),b=_.DP(l);
return _.oQ5(_.Ox(z),I?_.Ex(l,I,b):l)},
cloneNode:function(z,l){var I=_.DP(z);z=_.Ox(z);l=G9(z).prototype.cloneNode.call(z,l);return I?u5(l,I):l},
contains:function(z,l){var I=xE(z),b=_.DP(l);return I!==b?!1:PPS(z,l)},
insertBefore:function(z,l,I){var b=xE(z),v=_.DP(l);z=_.Ox(z);l=b?_.Ex(l,b,v):l;return G9(z).prototype.insertBefore.call(z,l,I)},
removeChild:function(z,l){var I=xE(z);z=_.Ox(z);l=I?u5(l,I):l;return G9(z).prototype.removeChild.call(z,l)},
replaceChild:function(z,l,I){var b=xE(z),v=_.DP(l);l=b?_.Ex(l,b,v):v?u5(l,v):l;I=b?u5(I,b):I;z=_.Ox(z);return G9(z).prototype.replaceChild.call(z,l,I)},
getRootNode:function(z,l){l=l===void 0?{composed:!0}:l;var I;if(((I=l)!=null?I:{}).composed)z=CPY(z);else{l=z;for(z=gQY(z);z;)l=z,z=NA5(z);z=l}return z}},VqQ=eBu?{firstChild:Qtk,
nextSibling:qq7,previousSibling:F8x,firstElementChild:Yq$,lastElementChild:cZQ,nextElementSibling:Xmu,previousElementSibling:i5t,childNodes:SqQ}:{};wmf&&(VqQ.parentNode=BAx);W8f&&(VqQ.children=dbQ);nQY&&(VqQ.lastChild=TAS);rZt&&az1(a7n);hBQ&&az1(VzA);jtp();var JZf=function(z){this.node=z instanceof ShadowRoot?z.host:z};
zpG();luS();var vHk=new WeakMap;var p6Q=Symbol("Ad");var GBk=new Set(["tap","track","down","up"]),NKH=_.C("pbcm_fi_query_decorators");var Mw=function(){return _.F6.apply(this,arguments)||this};
_.m(Mw,_.F6);_.p=Mw.prototype;_.p.getState=function(){return this.store.getState()};
_.p.dispatch=function(z){this.store.dispatch(z)};
_.p.beforeRegister=function(){if(this&&typeof this==="object"){var z;var l=!!this.useSignals||!((z=this.polymerController)==null||!z.useSignals)}else l=!1;if(!l&&this.properties)for(l=_.D(Object.keys(this.properties)),z=l.next();!z.done;z=l.next()){var I=z.value;z=this.properties[I];if(z.selector){if(z.computed)throw Error("pg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.ht(z.selectorArgs||[])).join(",");z.computed="recomputeReduxSelector("+I+")"}}};
_.p.attached=function(){var z=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){z.reduxPropertiesRecomputeTrigger++}));
_.C("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.p.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.p.recomputeReduxSelector=function(z,l){var I=_.AT.apply(2,arguments),b=this.properties[l].selector;if(!b)throw Error("ng`"+l);return b.apply(null,[this.store.getState()].concat(_.ht(I)))};
_.p.select=function(z){var l=_.AT.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return z.apply(null,[this.store.getState()].concat(_.ht(l)))};
_.vP.Object.defineProperties(Mw.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
Mw.prototype.recomputeReduxSelector=Mw.prototype.recomputeReduxSelector;_.e([_.X(),_.w("design:type",Number)],Mw.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.e([_.Q5()],Mw);var p1=[],H6u={},AP=function(){return pQ.apply(this,arguments)||this};
_.m(AP,pQ);AP.prototype._addPropertyEffect=function(z,l,I){if(l==="__observeEffects"&&I){var b,v=(b=I.info.method)!=null?b:I.info.methodName;if(v){var M=this[v];this[v]=function(){p1.push(v);try{M==null||M.apply(this,arguments)}finally{p1.pop()}}}}_.$4._addPropertyEffect.apply(this,[z,
l,I])};
AP.prototype._setPendingProperty=function(z,l,I){if(p1.length){var b=p1[p1.length-1],v;(v=H6u[this.is])!=null&&v.has(b)||(yUk(this.is,b),_.cW("polymerPropertyChangedInObserver",{componentName:this.is,observerName:b}))}return _.$4._setPendingProperty.apply(this,[z,l,I])};
_.e([r5H()],AP);var fu5=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),kBt,cy={};_.C("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=cy);var o8=function(){return _.F6.apply(this,arguments)||this};
_.m(o8,_.F6);o8.prototype._setUnmanagedPropertyToNode=function(z,l,I){z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!0);if(I!==z[l]||typeof I==="object")z[l]=I;z.is&&z.polymerController&&z.polymerController!==z&&Sg(z.is,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!1)};
_.e([_.Q5()],o8);CvH()&&(WC.prototype._setUnmanagedPropertyToNode=(new o8)._setUnmanagedPropertyToNode);_.S0Y={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(z){},set polymerController(z){}}]};var wc=function(){var z=pQ.apply(this,arguments)||this;z.json=function(){};
return z};
_.m(wc,pQ);wc.prototype.equals=function(z,l){return z===l};
wc.prototype.isEmpty=function(z){var l;(l=!z)||(l=_.wf(z)&&z.length===0);return l};
_.e([r5H()],wc);var j7u=function(z){z=PC5(z);bA.call(this,z)};
_.m(j7u,bA);j7u.prototype.addProvider=function(z){z=z.key?z:PC5([z])[0];var l=this.keyIdToIndex.get(z.key.id);if(l){if(BK1(z,this.providers[l]))throw Error("qg`"+z.key.displayName);}else bA.prototype.addProvider.call(this,z)};
var Jwz=new j7u([]);var zkM=!1;var Y0x={};zkM||(Q6Q(),zkM=!0);
Y0x.InjectBehavior={initializeInjection:function(){var z=this.provide;try{if((z=z!=null?z:[])&&z.length>0)for(var l=PC5(z),I=_.D(l),b=I.next();!b.done;b=I.next())Jwz.addProvider(b.value);var v=new Set;X6Q(this.behaviors||[],v);l={};for(var M=_.D(v),x=M.next();!x.done;x=M.next()){var g=x.value;g.inject&&Object.assign(l,g.inject)}this.inject&&Object.assign(l,this.inject);for(var G=_.D(Object.keys(l)),u=G.next();!u.done;u=G.next()){var Z=u.value,H=l[Z];try{this[Z]=Jwz.resolve(H)}catch(y){throw y;}}}catch(y){throw Error(y.message);
}}};var cUk;var dnQ=/\bclass\b/.test(function(){}.toString()),hpQ=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var l8n=function(z){this.wasDefined=!0;Array.isArray(z)||z instanceof Array?(this.JSC$13423_getImpl=z[0],this.JSC$13423_setImpl=z[1]):this.JSC$13423_getImpl=z};
_.p=l8n.prototype;_.p.getWithPath=function(z){return $nk(this.JSC$13423_getImpl(),z)};
_.p.setWithPath=function(z,l){var I=this;if(z.length)throw Error("rg");if(!this.JSC$13423_setImpl)throw Error("sg");Rj(function(){I.JSC$13423_setImpl(l)})};
_.p.notifyPath=function(){throw Error("tg");};
_.p.notifySplices=function(){throw Error("ug");};
_.p.getChangeRecordSignal=function(z,l){var I=this;if(z.length)throw Error("vg");return function(){var b=I.getWithPath(z);return{path:l!=null?l:"",base:b,value:b}}};
_.p.getSplicesSignal=function(){throw Error("wg");};
_.p.getPathMutationSignal=function(){throw Error("xg");};
_.p.pop=function(){throw Error("yg");};
_.p.push=function(){throw Error("zg");};
_.p.splice=function(){throw Error("Ag");};
_.p.unshift=function(){throw Error("Bg");};var Dh=function(z){var l=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(z)||z instanceof Array?(this.JSC$13428_getImpl=z[0],this.JSC$13428_setImpl=z[1]):this.JSC$13428_getImpl=z;this.wasDefined=!1;uE(function(){l.wasDefined=l.JSC$13428_getImpl()!==void 0})};
Dh.prototype.getWithPath=function(z){return $nk(this.JSC$13428_getImpl(),z)};
Dh.prototype.setWithPath=function(z,l){var I=this;if(z[z.length-1]!=="*"&&z[z.length-1]!=="splices"){var b=uE(function(){return I.getWithPath([])});
if(z.length===0){if(!this.JSC$13428_setImpl)throw Error("Cg");if(b===l)return;this.wasDefined||(this.wasDefined=l!==void 0);Rj(function(){I.JSC$13428_setImpl(l)})}else{for(var v=0;v<z.length-1;v++){if(!b)return;
b=b[z[v]]}v=z[z.length-1];b&&(b[v]=l);this.wasDefined||(this.wasDefined=z.length>1||l!==void 0)}I8u(this,z,{pathComponents:z,value:l})}};
Dh.prototype.notifyPath=function(z,l){z.length===0?l&&this.setWithPath(z,l.value):I8u(this,z,{pathComponents:z,value:l==null?void 0:l.value,fallbackWhenUndefined:l==null?void 0:l.value})};
var I8u=function(z,l,I,b){if(z.setMutationSignal){var v=++z.mutationIndex,M=[z.observedPath],x=z.observedPath,g;l.length===0&&(g=x);for(var G=0;G<l.length;G++){var u=x.subPaths[l[G]];if(!u)break;M.push(u);x=u;G===l.length-1&&(g=u)}for(l=!1;M.length;)x=M.shift(),x.data={index:v,mutation:I,spliceMutationIndex:b},l||(l=x===g),l&&M.push.apply(M,_.ht(Object.values(x.subPaths)));Rj(function(){z.setMutationSignal(v)})}};
Dh.prototype.notifySplices=function(z,l){var I=this,b=uE(function(){return I.getWithPath(z)}),v=[].concat(_.ht(z),["splices"]);
I8u(this,v,{pathComponents:v,value:{indexSplices:l}});if(b==null?0:b.length)l=this.mutationIndex,v=[].concat(_.ht(z),["length"]),I8u(this,v,{pathComponents:v,value:b.length},l)};
var bUM=function(z,l,I,b,v,M){z.notifySplices(I,[{index:b,addedCount:v,removed:M,object:l,type:"splice"}])},vrA=function(z,l){z=z.observedPath;
for(var I=0;I<l.length;I++){var b=l[I],v=z.subPaths[b];v||(v={pathComponents:l.slice(0,I+1),subPaths:{}},z.subPaths[b]=v);z=v}},pAn=function(z,l,I){vrA(z,l);
if(!z.getMutationSignal){var b=_.D(_.Z_(z.mutationIndex,void 0,"sNBMCd"));z.getMutationSignal=b.next().value;z.setMutationSignal=b.next().value}var v=z.getMutationSignal;return _.kz(function(){v();return I(MeM(z,l))},void 0,"zvsXEd")};
Dh.prototype.getChangeRecordSignal=function(z,l){var I=this,b=this.mutationIndex,v;return pAn(this,z,function(M){if(M&&M.index>b){var x=M.mutation;b=M.index;v=void 0}M=uE(function(){return I.getWithPath(z)});
if(x){var g=x.pathComponents[x.pathComponents.length-1],G=[].concat(_.ht(x.pathComponents));if(g==="splices"||g==="length")return{base:M,path:(l?[l].concat(_.ht(G)):G).join("."),value:x.value};var u=z.length>G.length?z:G,Z;return{base:M!=null?M:x.fallbackWhenUndefined,path:(l?[l].concat(_.ht(u)):u).join("."),value:(Z=uE(function(){return I.getWithPath(u)}))!=null?Z:x.fallbackWhenUndefined}}v||(v={base:M,
path:(l?[l].concat(_.ht(z)):z).join("."),value:M});return v})};
Dh.prototype.getSplicesSignal=function(z){var l=this.mutationIndex,I;return pAn(this,z,function(b){if(b&&b.index>l&&b.spliceMutationIndex!==l){var v=b.mutation;l=b.index;I=void 0}return v&&v.pathComponents[v.pathComponents.length-1]==="splices"?I=b=v.value:I})};
Dh.prototype.getPathMutationSignal=function(z){var l=this;vrA(this,z);if(!this.getMutationSignal){var I=_.D(_.Z_(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var b=this.getMutationSignal,v=this.mutationIndex,M;return _.kz(function(){b();var x=MeM(l,z);if(x&&x.index>v&&x.mutation&&ep7(x.mutation.pathComponents,z)){var g=x.mutation;v=x.index}if(!M||v!==M.index){var G,u;x=(u=uE(function(){return l.getWithPath(z)}))!=null?u:(G=g)==null?
void 0:G.fallbackWhenUndefined;
M={index:v,value:x}}return M},void 0,"RXYC9b")};
var MeM=function(z,l){z=z.observedPath;l=_.D(l);for(var I=l.next();!I.done;I=l.next())z=z.subPaths[I.value];return z.data};
Dh.prototype.pop=function(z){var l=this,I=uE(function(){return l.getWithPath(z)});
if(!(I instanceof Array))throw Error("Dg");var b=I.length>0,v=I.pop();b&&bUM(this,I,z,I.length,0,[v]);return v};
Dh.prototype.push=function(z){var l=_.AT.apply(1,arguments),I=this,b=uE(function(){return I.getWithPath(z)});
if(!(b instanceof Array))throw Error("Eg");var v=b.length,M=b.push.apply(b,_.ht(l));l.length&&bUM(this,b,z,v,l.length,[]);return M};
Dh.prototype.splice=function(z,l,I){var b=_.AT.apply(3,arguments),v=this,M=uE(function(){return v.getWithPath(z)});
if(!(M instanceof Array))throw Error("Fg");l<0?l=M.length-Math.floor(-l):l&&(l=Math.floor(l));var x=M.splice.apply(M,[l,I].concat(_.ht(b)));(b.length||x.length)&&bUM(this,M,z,l,b.length,x);return x};
Dh.prototype.unshift=function(z){var l=_.AT.apply(1,arguments),I=this,b=uE(function(){return I.getWithPath(z)});
if(!(b instanceof Array))throw Error("Gg");var v=b.unshift.apply(b,_.ht(l));l.length&&bUM(this,b,z,0,l.length,[]);return v};var x$=function(z,l,I){this.model=z;this.unknownSignalResolver=l;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];l=_.D(j6H());z=l.next().value;l=l.next().value;this.owner=z;this.disposeImpl=l};
x$.prototype.dispose=function(){if(!this.isDisposed){for(var z=_.D(this.childSignalProxies),l=z.next();!l.done;l=z.next())l.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var D9j=function(z,l){z=_.bE(z.owner);try{l()}finally{_.bE(z)}};
x$.prototype.effect=function(z){D9j(this,function(){_.oj(z)})};
var x9u=function(z,l){z.options!=null||(z.options={});var I;(I=z.options).immutableProps!=null||(I.immutableProps=new Set);z.options.immutableProps.add(l)},Ku$=function(z,l){l=""+l;
OUA(z,l);var I,b;if((I=z.options)==null?0:(b=I.immutableProps)==null?0:b.has(l))return!0;var v;if((v=z.model.__signalCache)==null?0:v.has(l))I=z.model.__signalCache.get(l),Array.isArray(I)&&x9u(z,l);var M,x,g;return(g=(M=z.options)==null?void 0:(x=M.immutableProps)==null?void 0:x.has(l))!=null?g:!1},gr_=function(z,l){var I;
z.unknownSignalResolver&&(I=z.unknownSignalResolver(l));var b,v;((b=z.options)==null?0:(v=b.immutableProps)==null?0:v.has(l))?I!=null||(I=new l8n(_.Z_(z.model[l],void 0,"By5iP"))):I!=null||(I=new Dh(_.Z_(z.model[l],void 0,"CXghNc")));var M=z.model.hostElement;Object.defineProperty(z.model,l,{get:function(){mnt(M,l);return I.getWithPath([])},
set:function(x){dc(M,l);z.setWithPath([l],x)},
configurable:!0});return I},OUA=function(z,l){var I,b,v;
((I=z.model.__signalCache)==null||!I.has(l))&&((b=z.options)==null?0:(v=b.externalSignalProps)==null?0:v.has(l))&&z.model[l]},Ux=function(z,l){l=""+l;
var I=z.signalCache[l];if(I!==void 0)return I;I=!1;OUA(z,l);var b;if((b=z.model.__signalCache)==null?0:b.has(l))if(I=z.model.__signalCache.get(l),Array.isArray(I))I=!0,x9u(z,l);else return z.signalCache[l]=z.model.__signalCache.get(l).signal,z.signalCache[l];var v,M;b=(M=(v=z.options)==null?void 0:v.reactivityMode)!=null?M:0;var x,g;if(!((x=z.options)==null?0:(g=x.reactiveProps)==null?0:g.has(l))&&!I&&b===1)throw Error("Hg`"+l);v=I?GwM(z,l):gr_(z,l);return z.signalCache[l]=v},GwM=function(z,l){var I=
Object.getOwnPropertyDescriptor(z.model.constructor.prototype,l),b=function(){return z.model[l]};
return new l8n(I&&I.get&&!I.set?b:[b,function(v){z.model[l]=v}])};
x$.prototype.getWithPath=function(z){var l=_.D(z);z=l.next().value;l=ze(l);mnt(this.model.hostElement,""+z);return Ux(this,z).getWithPath(l)};
x$.prototype.setWithPath=function(z,l){if(z.length){dc(this.model.hostElement,z.join("."));var I=_.D(z);z=I.next().value;I=ze(I);Ux(this,z).setWithPath(I,l)}};
x$.prototype.getPathMutationSignal=function(z){var l=_.D(z);z=l.next().value;l=ze(l);return Ux(this,z).getPathMutationSignal(l)};
x$.prototype.notifyPath=function(z,l){var I=_.D(z);z=I.next().value;I=ze(I);Ux(this,z).notifyPath(I,l)};
var Njn=function(z,l){if(l.type==="literal")return function(){return{rootWasDefined:!0,value:l.value}};
var I=nJ(l.path),b=_.D(I),v=b.next().value;b=ze(b);var M,x;if(l.type==="path"&&(I.length===1||((M=z.options)==null?0:(x=M.immutableProps)==null?0:x.has(v))))return function(){var H=z.getWithPath(I.slice(0,1));H=$nk(H,I.slice(1));return{rootWasDefined:Ux(z,I[0]).wasDefined,value:H}};
var g=Ux(z,v);if(l.type==="path"){var G=g.getPathMutationSignal(b);return function(){var H,y=(H=G())==null?void 0:H.value;return{rootWasDefined:g.wasDefined,value:y}}}if(l.type==="splices"){var u=g.getSplicesSignal(b);
return function(){var H=u();return{rootWasDefined:g.wasDefined,value:H}}}var Z=g.getChangeRecordSignal(b,""+v);
return function(){var H=Z();return{rootWasDefined:g.wasDefined,value:H}}},Unt=function(z,l,I){var b=I.map(function(g){return Njn(z,g)}),v=I.length===0,M=[],x=I.length!==1||I[0].type!=="path"?!1:!0;
z.effect(function(){for(var g=b.length,G=[],u=!!M.length,Z=0;Z<g;Z++){var H=b[Z](),y=H.rootWasDefined;H=H.value;v||(v=y);G[Z]=H;x&&(G[Z+g]=u?M[Z]:G[Z],M[Z]=H)}v&&Pb(z.owner,function(){return void l.apply(null,_.ht(G))})})},w6u=function(z,l,I,b,v){var M=Ux(z,l);
v!==void 0&&M.setWithPath([],v);Unt(z,function(){var x=_.AT.apply(0,arguments);dc(z.model.hostElement,l,!0);M.setWithPath([],I.apply(null,_.ht(x)))},b)};
x$.prototype.arrayPush=function(z){var l=_.AT.apply(1,arguments),I=_.D(z),b=I.next().value;I=ze(I);b=Ux(this,b);return b.push.apply(b,[I].concat(_.ht(l)))};
x$.prototype.arraySplice=function(z,l,I){var b=_.AT.apply(3,arguments),v=_.D(z),M=v.next().value;v=ze(v);M=Ux(this,M);return M.splice.apply(M,[v,l,I].concat(_.ht(b)))};
x$.prototype.arrayUnshift=function(z){var l=_.AT.apply(1,arguments),I=_.D(z),b=I.next().value;I=ze(I);b=Ux(this,b);return b.unshift.apply(b,[I].concat(_.ht(l)))};
x$.prototype.notifySplices=function(z,l){var I=_.D(z);z=I.next().value;I=ze(I);Ux(this,z).notifySplices(I,l)};var Erp=!0,uF0=!1,tzu=!1,ZUw=!1,HUp=0;ZUw=!1;HUp=0;Erp=!0;uF0=tzu=!1;var vyQ=/([^\s]+?)\(([\s\S]*)\)/,lHt=/\.([^.]+)$/,pex=/\\,/g,JUQ=/&comma;/g,zaG=/\\(.)/g,Ms1=[],IHG={"*":"wildcard",splices:"splices"};var HzG=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"),Nq1=/[A-Z]/,ylp=["class","hidden","id","on-dom-change"],fHk=new Set([].concat(_.ht(ylp),
["if","notify-dom-change","restamp"])),Cz7=new Set([].concat(_.ht(ylp),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),kX7=new Set(["restamp"]);var kwY=new Set(["className","id"]);var Bqf=Symbol(),Tq7=window;var rq7=window;var LuS=0,wex=0,a8=[],nyY=0,eax=!1,Wu7=document.createTextNode("");(new window.MutationObserver(AqS)).observe(Wu7,{characterData:!0});var jg=new Map,V5=0,f8_=function(z){this.mappedHandleId=z},aHx=function(z,l,I,b){this.mappedHandleId=z;
var v=this;this.mappedHandleId=z;this.callback=l;this.waitTime=I;this.schedulerPriority=b;this.handleId=_.ow.addJob(function(){v.callback();jg.delete(v.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.m(aHx,f8_);aHx.prototype.cancel=function(){_.ow.cancelJob(this.handleId);jg.delete(this.mappedHandleId)};
var Vs1=function(z,l){this.mappedHandleId=z;var I=this;this.mappedHandleId=z;this.callback=l;this.handleId=UOG(function(){I.callback();jg.delete(I.mappedHandleId)})};
_.m(Vs1,f8_);Vs1.prototype.cancel=function(){var z=this.handleId-wex;z<0||a8.length<=z||(a8[z]=null);jg.delete(this.mappedHandleId)};var l7f=function(){};
l7f.prototype.cancel=function(){this.jobHandle!==void 0&&(jaS(this.jobHandle),this.jobHandle=void 0)};
l7f.prototype.run=function(z,l,I){var b=this;this.cancel();this.callback=z;this.jobHandle=_.JP(function(){z();b.callback=void 0},l,I)};
l7f.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Jq7=new WeakMap;var C4j=Zj(function(z){for(var l=z,I=0;I<3;I++)l=Object.getPrototypeOf(l);delete l.prototype.connectedCallback;var b=function(){return z.apply(this,arguments)||this};
_.m(b,z);b.prototype._attachDom=function(v){if(!v)return null;var M=(0,_.kE)(this.hostElement);M.attachShadow({mode:"open",shadyUpgradeFragment:v});M.shadowRoot.appendChild(v);return M.shadowRoot};
b.prototype._takeAttributes=function(){for(var v=this.hostElement.attributes,M=0;M<v.length;M++){var x=v[M],g=void 0,G=void 0;(G=(g=this).__attributeReaction)==null||G.call(g,x.name,null,x.value)}};
b.prototype._readyClients=function(){z.prototype._readyClients.call(this);this.root=this};
b.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);z.prototype.connectedCallback.call(this)};
_.vP.Object.defineProperties(b,{template:{configurable:!0,enumerable:!0,get:function(){return b.prototype._template}}});
return b}),kwj=Zj(function(z){var l=function(){return z.apply(this,arguments)||this};
_.m(l,z);l.prototype.created=function(){if(this.__notifyEffects)for(var I=_.D(Object.values(this.__notifyEffects)),b=I.next();!b.done;b=I.next()){b=_.D(b.value);for(var v=b.next();!v.done;v=b.next())v.value.fn=MzG}if(this.__reflectEffects)for(I=_.D(Object.values(this.__reflectEffects)),b=I.next();!b.done;b=I.next())for(b=_.D(b.value),v=b.next();!v.done;v=b.next())v.value.fn=p9H};
l.prototype._addEventListenerToNode=function(I,b,v){I=lY(I);oK(I,b,v)||z.prototype._addEventListenerToNode.call(this,I,b,v)};
l.prototype._removeEventListenerFromNode=function(I,b,v){I=lY(I);sd(I,b,v)||z.prototype._removeEventListenerFromNode.call(this,I,b,v)};
l.prototype._propertiesChanged=function(I,b,v){if(this.__dataToNotify&&this.__notifyEffects)for(var M=_.D(Object.keys(this.__dataToNotify)),x=M.next();!x.done;x=M.next()){x=x.value;var g=vV5(x);this.__notifyEffects[g]||delete this.__dataToNotify[x]}else this.__dataToNotify=null;z.prototype._propertiesChanged.call(this,I,b,v)};
l.prototype.fire=function(I,b,v){b=b===void 0?{}:b;var M;return _.gC(lY((M=v==null?void 0:v.node)!=null?M:this),I,b,v)};
l.prototype._ensureAttribute=function(I,b){var v=lY(this);v.hasAttribute(I)||LJ(v,b,I)};
l.prototype.isLightDescendant=function(I){var b=lY(this);return lY(b)!==I&&_.Hy(b).contains(I)&&_.Hy(b).getRootNode()===_.Hy(I).getRootNode()};
return l});
_.$b.ready=function(){var z;((z=this.hostElement)!=null?z:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var l;((l=this.hostElement)!=null?l:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.ap._subscribeIronResize=function(z){var l;((l=z.hostElement)!=null?l:z).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.ap._unsubscribeIronResize=function(z){var l;((l=z.hostElement)!=null?l:z).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Og5=[Array,Boolean,Date,Number,Object,String],bY=function(z,l,I,b){this.polySiInfo=z;this.polySiParams=l;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;b||this instanceof HTMLElement&&(b=this);if(!b)throw Error("Og");this.allowedProps=l.allowedProps;this.hostElement=b;this.is=z.is;this.upgradeDisabled=!!l.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");z=new Set(l.reactiveSchemas.filter(function(v){return v.type!==
"observe"}).map(function(v){return v.propertyKey}));
this.signalProxy=new x$(this,void 0,{reactiveProps:z,reactivityMode:l.reactivityMode});this.__dataHasAccessor={};l=_.D(l.reactiveSchemas);for(z=l.next();!z.done;z=l.next())z=z.value,z.type==="signal"&&(this.__dataHasAccessor[z.propertyKey]=!0);this.upgradeDisabled||Rk_(this)};
bY.prototype.getExtraMethodsToForward=function(){return[]};
var Rk_=function(z){z.polySiContext.didRegister||(z.registered(),z.polySiContext.didRegister=!0);z.polySiContext.finalizedTemplate||(z.polySiContext.finalizedTemplate={},z.polySiParams.templateGetter&&(z.polySiContext.finalizedTemplate.processedTemplate=$O7(z.polySiParams.templateGetter,z.polySiParams.is)));m9u(z);var l=z.hostElement;l.loggingStatus!=null||(l.loggingStatus={});l.loggingStatus.isInitializing=!0;uE(function(){return void z.created()});
l.loggingStatus.isInitializing=!1;z.isPolySiElementConnected&&Klp(z)},Klp=function(z){z.didCallReady||(uE(function(){return void z.ready()}),z.didCallReady=!0);
z.isAttached=!0;z.attached()};
_.p=bY.prototype;_.p.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Klp(this)};
_.p.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.p.attributeChangedCallback=function(z,l,I){if(this.upgradeDisabled)z==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,Rk_(this));else if(l!==I){var b=_.t8(z),v=this.polySiContext.typesForSignals[b];if(v&&(!this.reflecting||_.C("polysi_attribute_changed_serializing_killswitch"))){switch(v){case Object:try{var M=JSON.parse(I)}catch(g){M=I}break;case Array:try{M=JSON.parse(I)}catch(g){M=null}break;case Date:M=isNaN(I)?String(I):Number(I);M=new Date(M);break;case Boolean:M=I!==null;break;case Number:M=
Number(I);break;default:M=I}this[b]=M}b=_.D(this.polySiParams.behaviors);for(v=b.next();!v.done;v=b.next())M=void 0,(M=v.value.attributeChanged)==null||M.call(this,z,l,I);var x;(x=this.attributeChanged)==null||x.call(this,z,l,I)}};
_.p.attributeChangedCallbackWrapper=function(z,l,I){this.attributeChangedCallback(z,l,I)};
_.p.setPropertiesFromInitialAttributeValues=function(){for(var z=0;z<this.hostElement.attributes.length;z++){var l=this.hostElement.attributes[z];(l.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(l.name))&&this.attributeChangedCallback(l.name,null,l.value)}};
_.p.created=function(){this.provide=this.polySiParams.provide;var z;(z=this.initializeInjection)==null||z.call(this);z=_.D(this.polySiParams.reactiveSchemas);for(var l=z.next();!l.done;l=z.next())l=l.value,l.type==="signal"&&(this.mutablePropNames.add(l.propertyKey),Ux(this.signalProxy,l.propertyKey));x_1(this,this.polySiInfo,this.polySiParams.behaviors);z=_.D(this.polySiParams.reactiveSchemas);for(l=z.next();!l.done;l=z.next())l=l.value,l.type==="signal"&&l.value!==void 0&&(this.signalProxy.model[l.propertyKey]=
typeof l.value==="function"?l.value.call(this):l.value);if(this.polySiParams.signalProperties)for(z=_.D(this.polySiParams.signalProperties),l=z.next();!l.done;l=z.next()){l=l.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(l))||(this.signalProxy.model[l]=void 0)}ZUw||te_(this);D_Y(this);z=_.D(this.polySiParams.behaviors);for(l=z.next();!l.done;l=z.next())I=void 0,(I=l.value.created)==null||I.call(this);var b;(b=this.polySiInfo.created)==null||b.call(this)};
_.p.registered=function(){var z=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var l=Object.getPrototypeOf(this);l.addReactiveSchema=function(g){z.polySiParams.reactiveSchemas.push(g)};
for(var I=_.D(this.polySiParams.behaviors),b=I.next();!b.done;b=I.next()){var v=void 0;(v=b.value.beforeRegister)==null||v.call(l)}var M;(M=this.polySiInfo.beforeRegister)==null||M.call(l);l.addReactiveSchema=G5t;I=_.D(this.polySiParams.behaviors);for(b=I.next();!b.done;b=I.next())v=void 0,(v=b.value.registered)==null||v.call(l);var x;(x=this.polySiInfo.registered)==null||x.call(l)};
_.p.ready=function(){var z;(z=this.beforeReady)==null||z.call(this);ZUw&&te_(this);var l;if(z=(l=this.polySiContext.finalizedTemplate)==null?void 0:l.processedTemplate){z=saG(z.template,z.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:z.hasInsertionPoint,thisCtx:this});l=z.nodesById;z=z.root;var I=this.hostElement;var b=b===void 0?!1:b;I=(0,_.kE)(I);if(!I.attachShadow)throw Error("Gd");if(!I.shadowRoot||b)I.attachShadow({mode:"open",shadyUpgradeFragment:z}),I.shadowRoot.appendChild(z);
this.root=I.shadowRoot;this.$=l}BjM(this);b=_.D(this.polySiParams.behaviors);for(l=b.next();!l.done;l=b.next())z=void 0,(z=l.value.ready)==null||z.call(this);var v;(v=this.polySiInfo.ready)==null||v.call(this)};
_.p.attached=function(){for(var z=_.D(this.polySiParams.behaviors),l=z.next();!l.done;l=z.next()){var I=void 0;(I=l.value.attached)==null||I.call(this)}var b;(b=this.polySiInfo.attached)==null||b.call(this)};
_.p.detached=function(){for(var z=_.D(this.polySiParams.behaviors),l=z.next();!l.done;l=z.next()){var I=void 0;(I=l.value.detached)==null||I.call(this)}var b;(b=this.polySiInfo.detached)==null||b.call(this)};
var m9u=function(z){for(var l=_.D(z.polySiParams.behaviors),I=l.next();!I.done;I=l.next())if(I=I.value,I.listeners)for(var b in I.listeners)haY(z,z.hostElement,b,I.listeners[b]);if(z.polySiInfo.listeners)for(var v in z.polySiInfo.listeners)haY(z,z.hostElement,v,z.polySiInfo.listeners[v])},haY=function(z,l,I,b,v){z=rUH(z,b,v);
oK(l,I,z)||l.addEventListener(I,z);return z},te_=function(z){for(var l=_.D(z.polySiParams.reactiveSchemas),I=l.next();!I.done;I=l.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?AU5(z.signalProxy,I,z):I.type==="redux"?LL5(z.signalProxy,I,z.store):I.type==="signal"&&I.readOnly&&nHH(z.signalProxy,I)},BjM=function(z){for(var l=_.D(z.polySiParams.reactiveSchemas),I=l.next(),b={};!I.done;b={schema$jscomp$12:void 0},I=l.next())b.schema$jscomp$12=I.value,b.schema$jscomp$12.type==="notify"?
aux(z.signalProxy,b.schema$jscomp$12,z.hostElement):b.schema$jscomp$12.type==="observe"?Vp1(z.signalProxy,b.schema$jscomp$12,z):b.schema$jscomp$12.type==="reflect"&&z.signalProxy.effect(function(M){return function(){var x=z.signalProxy.getWithPath([M.schema$jscomp$12.propertyKey]);
z.reflecting=!0;xOG(z.hostElement,M.schema$jscomp$12.propertyKey,x,!0);z.reflecting=!1}}(b));
if(z.reflectedAttributes)for(l=_.D(Object.entries(z.reflectedAttributes)),b=l.next(),I={};!b.done;I={key$jscomp$934:void 0,value$jscomp$9813:void 0},b=l.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;I.key$jscomp$934=b;I.value$jscomp$9813=v;z.signalProxy.effect(function(M){return function(){z.reflecting=!0;xOG(z.hostElement,M.key$jscomp$934,(0,M.value$jscomp$9813)(),!0);z.reflecting=!1}}(I))}};
_.p=bY.prototype;_.p._setPendingProperty=function(z,l){this.set(z,l);return!1};
_.p._enableProperties=function(){};
_.p._setPendingPropertyOrPath=function(z,l){this.notifyPath(z,l);return!1};
_.p._addPropertyEffect=function(){};
_.p._stampTemplate=function(){throw Error("Pg");};
_.p.fire=function(z,l,I){l=l===void 0?{}:l;I=I===void 0?{}:I;var b,v,M={bubbles:(b=I.bubbles)!=null?b:!0,cancelable:!!I.cancelable,composed:(v=I.composed)!=null?v:!0},x;return _.gC(NNY((x=I.node)!=null?x:this.hostElement),z,l,M)};
_.p.get=function(z,l){var I=nJ(z);return l?$nk(l,I):z==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.p.linkPaths=function(){};
_.p.listen=function(z,l,I){z=NNY(z);this.boundListeners!=null||(this.boundListeners=new WeakMap);var b=this.boundListeners.get(z);b||(b={},this.boundListeners.set(z,b));var v=l+I;b[v]||(b[v]=haY(this,z,l,I))};
_.p.notifyPath=function(z,l){this.signalProxy.notifyPath(nJ(z),arguments.length===2?{value:l}:void 0)};
_.p.canNotifyPath=function(z){return this.mutablePropNames.has(z)&&!Ku$(this.signalProxy,z)};
_.p.notifySplices=function(z,l){this.signalProxy.notifySplices(nJ(z),l)};
_.p.pop=function(z){var l=this.signalProxy;z=nJ(z);var I=_.D(z);z=I.next().value;I=ze(I);return Ux(l,z).pop(I)};
_.p.push=function(z){var l=_.AT.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[nJ(z)].concat(_.ht(l)))};
_.p.set=function(z,l,I){if(I)throw Error("Qg");z==="hidden"?this.hostElement.hidden=!!l:this.signalProxy.setWithPath(nJ(z),l)};
_.p.setProperties=function(z){z=_.D(Object.entries(z));for(var l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;this[l]=I}};
_.p.splice=function(z,l,I){var b=_.AT.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[nJ(z),l,I].concat(_.ht(b)))};
_.p.unlinkPaths=function(){};
_.p.unlisten=function(z,l,I){z=NNY(z);if(this.boundListeners){var b=this.boundListeners.get(z);if(b){I=l+I;var v=b[I];v&&(sd(z,l,v)||z.removeEventListener(l,v),delete b[I])}}};
_.p.unshift=function(z){var l=_.AT.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[nJ(z)].concat(_.ht(l)))};
_.vP.Object.defineProperties(bY.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 Kd5=[Array,Boolean,Date,Number,Object,String];var X9x=!1;var OF=function(){var z=HTMLElement.apply(this,arguments)||this;z.restamp=!1;z.notifyDomChange=!1;z.JSC$13536_didCallConnected=!1;z.JSC$13536_renderDebouncer=null;z.disableTemplateUpdateSignalImpl=vh()?void 0:_.Z_(!1,void 0,"Ofhkwb");var l;z.getDisableTemplateUpdate=(l=z.disableTemplateUpdateSignalImpl)==null?void 0:l[0];var I;z.setDisableTemplateUpdate=(I=z.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return z};
_.m(OF,HTMLElement);var XAI=function(z){z.conditionSignalImpl!=null||(z.conditionSignalImpl=new Dh(_.Z_(!1,void 0,"gE52Fb")));return z.conditionSignalImpl};
_.p=OF.prototype;_.p.showHideChildren=function(z){qLj(this,z,this.if)};
_.p.attributeChangedCallback=function(z,l,I){if(this.JSC$13536_didCallConnected)throw Error("Ug`"+z);z==="notify-dom-change"?this.notifyDomChange=I!==null:z==="restamp"&&(this.restamp=I!==null)};
_.p.debounceRender=function(){this.JSC$13536_renderDebouncer=_.Xb(this.JSC$13536_renderDebouncer,$F,this.JSC$13536_renderImpl.bind(this));_.ql(this.JSC$13536_renderDebouncer)};
_.p.disconnectedCallback=function(){var z=(0,_.kE)(this).parentNode;(!z||z.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in z&&!z.host)&&iUn(this)};
_.p.connectedCallback=function(){var z=this;this.JSC$13536_didCallConnected=!0;Erp?qHS():this.style.display="none";this.parentSignalProxy.effect(function(){XAI(z).getWithPath([]);z.debounceRender()})};
_.p.render=function(){_.Y4()};
_.p.JSC$13536_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var z=this.if,l=!1;if(z){this.hasInstance()||(Flu(this),l=!0);a:{var I=(0,_.kE)(this).parentNode;if(this.hasInstance()){var b=this.instance.children;if((b==null?0:b.length)&&(0,_.kE)(this).previousSibling!==b[b.length-1])for(var v=0;v<b.length;v++)(0,_.kE)(I).insertBefore(b[v],this)}else{if(!I){I=!1;break a}QBw(this,I)}I=!0}if(!I)return}else this.restamp&&iUn(this);qLj(this,!1,z);z&&!l&&Flu(this);uF0&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.hasInstance=function(){return!!this.instance};
var QBw=function(z,l){var I=z.parentSignalProxy;if(vh()){var b=_.D(_.Z_(!0,void 0,"yf4Yhf"));var v=b.next().value;b=b.next().value;I=z.parentSignalProxy}else{var M;var x=new x$((M=YLu(z))!=null?M:{},function(G){var u=Ux(z.parentSignalProxy,G).getChangeRecordSignal([]);G=_.Z_(void 0,void 0,"oT9mkc");var Z=new Dh(G);x.effect(function(){if(z.getDisableTemplateUpdate&&!z.getDisableTemplateUpdate()){var H=u();Z.notifyPath(nJ(H.path),{value:H.value})}});
return Z});
z.parentSignalProxy.childSignalProxies.push(x);var g=I=x}I=saG(z.templateInfo,z.templateInfo.nodeInfoList,I,{eventListenerHost:z.eventListenerHost,hasInsertionPoint:z.templateInfo.hasInsertionPoint,thisCtx:z.eventListenerHost,enabledSignal:vh()?v:void 0,getModel:function(){return YLu(z)}}).root;
z.instance={root:I,children:[],hidden:!1,signalProxy:g,getTemplateUpdatesEnabled:v,setTemplateUpdatesEnabled:b};g=_.D(I.childNodes);for(v=g.next();!v.done;v=g.next())z.instance.children.push(v.value);(0,_.kE)(l).insertBefore(z.instance.root,z)},YLu=function(z){if((z=z.parentSignalProxy.model)&&!z.hostElement){var l={},I;
for(I in z)z.hasOwnProperty(I)&&(l[I]=z[I]);return l}},iUn=function(z){if(z.instance){var l=z.instance.children;
if(l.length){var I=(0,_.kE)(l[0]).parentNode;if(I){I=(0,_.kE)(I);for(var b=0;b<l.length;b++)I.removeChild(l[b])}}vh()?z.instance.setTemplateUpdatesEnabled(!1):z.instance.signalProxy.dispose();z.instance=void 0}},qLj=function(z,l,I){l=l||!I;
z.instance&&z.instance.hidden!==l&&(z.instance.hidden=l,BNk(l,z.instance.children))},Flu=function(z){if(vh()){var l=z.instance;
l&&Pb(z.parentSignalProxy.owner,function(){return!l.getTemplateUpdatesEnabled()})&&l.setTemplateUpdatesEnabled(!0)}else z.setDisableTemplateUpdate(!1)};
_.vP.Object.defineProperties(OF.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var z=this;return Pb(this.parentSignalProxy.owner,function(){return XAI(z).getWithPath([])})},
set:function(z){z||(vh()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));XAI(this).setWithPath([],!!z)}}});
_.vP.Object.defineProperties(OF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",OF);var Tj_=[],gl=function(){var z=HTMLElement.apply(this,arguments)||this;z.as="item";z.indexAs="index";z.itemsIndexAs="itemsIndex";z.targetFramerate=20;z.notifyDomChange=!1;z.isDetached=!1;z.JSC$13543_renderDebouncer=null;z.instances=[];z.chunkingId=null;z.chunkCount=null;z.shouldMeasureChunk=!1;z.shouldContinueChunking=!1;z.renderStartTime=null;z.JSC$13543_didCallConnected=!1;return z};
_.m(gl,HTMLElement);var clu=function(z){z.itemSignalImpl!=null||(z.itemSignalImpl=new Dh(_.Z_(Tj_,void 0,"YBrqgf")));return z.itemSignalImpl},SLu=function(z,l){Array.isArray(l)||(l=Tj_);
clu(z).setWithPath([],l)};
_.p=gl.prototype;_.p.showHideChildren=function(z){for(var l=_.D(this.instances),I=l.next();!I.done;I=l.next())BNk(z,I.value.children)};
_.p.notifyPath=function(z,l){z=nJ(z);z[0]==="items"&&(z.length===1?SLu(this,l):clu(this).setWithPath(z.slice(1),l))};
_.p.canNotifyPath=function(z){return z==="items"};
_.p.attributeChangedCallback=function(z,l,I){if(this.JSC$13543_didCallConnected)throw Error("Vg`"+z);z==="as"?this.as=I:z==="index-as"?this.indexAs=I:z==="items-index-as"?this.itemsIndexAs=I:z==="initial-count"?this.initialCount=Number(I):z==="notify-dom-change"?this.notifyDomChange=I!==null:z==="target-framerate"&&(this.targetFramerate=Number(I))};
_.p.disconnectedCallback=function(){this.isDetached=!0;for(var z=0;z<this.instances.length;z++)d9n(this,z);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.p.connectedCallback=function(){var z=this,l=clu(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var v=l(),M=nJ(v.path);if(M[0]===void 0||M[0]==="splices"||M[0]==="length")z.debounceRender();else{var x=M[0];if(x=z.instances[typeof x==="string"?Math.floor(Number(x)):x])M=[z.as].concat(_.ht(M.slice(1))),x.signalProxy.notifyPath(M,v)}});
this.JSC$13543_didCallConnected=!0;Erp?qHS():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.kE)((0,_.kE)(this).parentNode),b=0;b<this.instances.length;b++)I.insertBefore(this.instances[b].root,this);this.chunkingId&&this.render()}};
_.p.debounceRender=function(){this.JSC$13543_renderDebouncer=_.Xb(this.JSC$13543_renderDebouncer,$F,this.JSC$13543_renderImpl.bind(this));_.ql(this.JSC$13543_renderDebouncer)};
_.p.render=function(){this.debounceRender();_.Y4()};
_.p.JSC$13543_renderImpl=function(){var z=this;if(!this.parentSignalProxy.isDisposed){var l=this.items,I=orw(this,l.length);P4I(this,l,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){z.chunkingId=null;if(z.shouldMeasureChunk){var b=performance.now()-z.renderStartTime;z.chunkCount=Math.round(Math.ceil(1E3/z.targetFramerate)/b*z.chunkCount)||1}z.shouldContinueChunking&&z.debounceRender()}));
uF0&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var orw=function(z,l){var I=l,b=z.instances.length;if(z.initialCount){if(z.chunkCount){var v=Math.min(Math.max(l-b,0),z.chunkCount);I=Math.min(b+v,l)}else I=Math.min(l,z.initialCount),v=Math.max(I-b,0),z.chunkCount=v||1;z.shouldMeasureChunk=v===z.chunkCount;z.shouldContinueChunking=I<l;z.renderStartTime=performance.now()}return I},P4I=function(z,l,I){for(var b=0;b<I;b++){var v=z.instances[b],M=l[b];
v?(v.signalProxy.setWithPath([z.as],M),v.signalProxy.setWithPath([z.indexAs],b)):hk0(z,M,b)}for(l=z.instances.length-1;l>=b;l--)I=z,v=l,d9n(I,v),_.D(I.instances.splice(v,1)).next().value.signalProxy.dispose()},d9n=function(z,l){z=z.instances[l];
l=(0,_.kE)(z.root);for(var I=0;I<z.children.length;I++)l.appendChild(z.children[I])},hk0=function(z,l,I){var b={};
l=Object.assign({},sBu(z),(b[z.as]=l,b[z.indexAs]=I,b[z.itemsIndexAs]=I,b));var v=new x$(l,function(x){if(x!==z.as&&x!==z.indexAs){if(x===z.itemsIndexAs)return Ux(v,z.indexAs);var g=Ux(z.parentSignalProxy,x).getChangeRecordSignal([]);x=_.Z_(void 0,void 0,"T21Pqc");var G=new Dh(x);v.effect(function(){var u=g();G.notifyPath(nJ(u.path),{value:u.value})});
return G}});
z.parentSignalProxy.childSignalProxies.push(v);b=saG(z.templateInfo,z.templateInfo.nodeInfoList,v,{eventListenerHost:z.eventListenerHost,getModel:function(){var x={};return Object.assign({},sBu(z),(x[z.as]=v.model[z.as],x[z.indexAs]=v.model[z.indexAs],x[z.itemsIndexAs]=v.model[z.indexAs],x))},
hasInsertionPoint:z.templateInfo.hasInsertionPoint,thisCtx:z.eventListenerHost,methodInvocationRequirement:HUp,enabledSignal:z.stampingEnabled}).root;l={root:b,children:[],signalProxy:v};b=_.D(b.childNodes);for(var M=b.next();!M.done;M=b.next())l.children.push(M.value);b=(b=z.instances[I+1])?b.children[0]:z;(0,_.kE)((0,_.kE)(z).parentNode).insertBefore(l.root,b);z.instances[I]=l},sBu=function(z){if((z=z.parentSignalProxy.model)&&!z.hostElement){var l={},I;
for(I in z)z.hasOwnProperty(I)&&(l[I]=z[I]);return l}};
gl.prototype.itemForElement=function(z){var l=this,I=this.instances.find(function(b){return b.children.includes(z)});
if(I)return Pb(this.parentSignalProxy.owner,function(){return I.signalProxy.getWithPath([l.as])})};
gl.prototype.indexForElement=function(z){var l=this.instances.findIndex(function(I){return I.children.includes(z)});
return l>=0?l:void 0};
_.vP.Object.defineProperties(gl.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var z=this;return Pb(this.parentSignalProxy.owner,function(){return clu(z).getWithPath([])})},
set:function(z){SLu(this,z)}},
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}}});
_.vP.Object.defineProperties(gl,{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",gl);var rl0,$9u;_.G$=new _.yH("STATE_STORE_TOKEN");rl0=new _.yH("SELECT_TOKEN");$9u=new _.yH("DISPATCH_TOKEN");var cw7={getSelectFn:function(){var z;return(z=_.pG().resolve(_.MB(rl0)))!=null?z:igu},
getDispatchFn:function(){var z;return(z=_.pG().resolve(_.MB($9u)))!=null?z:_.M8().dispatch.bind(_.M8())},
getAppStore:function(){return _.pG().resolve(_.G$)}},Fd7,TN1=!1;var Pd7,pmA={traceAllComponents:_.C("web_tracing_all_components"),exportToCsi:_.C("web_tracing_export_to_csi"),exportBreadcrumbs:_.C("web_enable_tracing"),bufferSize:_.OI("web_max_tracing_events"),enabledSpansArray:_.Go("web_tracing_enabled_spans"),exportToDevTools:_.C("web_tracing_export_to_devtools")};Pd7=new Dbu;var eR7=function(){};var s7f=void 0;var ekn=function(){};
ekn.prototype.hasAttribute=function(z){if(z==="dir")return!1;if(z==="disable-upgrade"){var l,I;return(I=(l=this.hostElement)==null?void 0:l.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Wg`"+z);};
ekn.prototype.attributeChangedCallbackWrapper=function(z,l,I){if(z==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var b;((b=this.hostElement)!=null?b:this).isConnected&&this.connectedCallback()}else l===I||this.__isReflecting||this.attributeChangedCallback(z,l,I)};
ekn.prototype.getExtraMethodsToForward=function(){for(var z=this,l=[],I=_.D(wAz),b=I.next(),v={};!b.done;v={tagName$jscomp$54:void 0,name$jscomp$598:void 0},b=I.next())v.name$jscomp$598=b.value,b=void 0,v.name$jscomp$598==="_setPendingProperty"?(v.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),b=function(M){return function(x,g,G){Sg(M.tagName$jscomp$54,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return z._setPendingProperty(x,g,G)}}(v)):b=function(M){return function(){return z[M.name$jscomp$598].apply(z,
_.ht(_.AT.apply(0,arguments)))}}(v),l.push([v.name$jscomp$598,
b]);return l};
for(var WdG=kwj(C4j((0,_.r7)(ekn))),a7u=["disabled","disable-upgrade"],Al_=(0,_.r7)(function(){}),Wln=new Set(Object.getOwnPropertyNames(Al_.prototype)),l8u=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ht(Wln))),j7$=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),wAz=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),nr_=new Set([].concat(_.ht(j7$),_.ht(wAz),_.ht(Wln))),Ll0=_.D(nr_),U9A=Ll0.next();!U9A.done;U9A=Ll0.next())fu5.add(U9A.value);var zkx={created:function(){D_Y(this);this.initializeInjection()}};var gr1=!1,N8=window.ShadyDOM,f81=["appendChild","insertBefore","removeChild","replaceChild"],ylG=[Node];N8&&ylG.push(N8.Wrapper);var te7,Bjx,iUu={};var uY=new Set,Rix="";var Ei,Zf=new Set;var orf=new Set("context didCallReady is info params signalProxy".split(" ")),hk5="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),sBH="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var a80=RR({entities:iwQ}),Vej=new bc(a80);var jBp=function(){return _.F6.apply(this,arguments)||this};
_.m(jBp,_.F6);_.vP.Object.defineProperties(jBp.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Vej}}});
_.e([_.Q5()],jBp);_.Nw=[Mw.prototype,jBp.prototype];_.EF={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var z=this,l={};setTimeout(function(){var I;return _.gC((I=z.hostElement)!=null?I:z,"yt-live-chat-add-tooltip-target",l)},0);
this.handler_=l.handler},
detached:function(){if(this.handler_){var z;this.handler_.removeElementFromSupportingTooltips((z=this.hostElement)!=null?z:this)}this.handler_=null}}};_.mh=new _.yH("ICON_MANAGER_TOKEN");var Jl_=[48,20,18,16,15,13,12],xSx=new Map,INQ=new Set,Jl1=new Set,lNH=new Set,jBG=new Set,zYG=new Set,v6Q=new Promise(function(z){var l=!1,I=!1,b=!1,v=[],M=function(x){if("detail"in x)if(x=x.detail,x.name==="yt-icons")bA1(x),l=!0;else if(x.name==="yt-sys-icons")bA1(x),I=!0;else{var g;((g=x.name)==null?0:g.includes("yt-sys-icons"))&&x.size!==24&&(bA1(x,!0),v.push(x.size),v.length===Jl_.length&&(b=!0))}l&&I&&b&&(window.removeEventListener("iron-iconset-added",M),z())};
window.addEventListener("iron-iconset-added",M)}),pi7=new Map([["access_time",
"watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up","arrow_solid_up-filled"],
["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"],["contact_support",
"help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"],["expand_more","expand"],["external_link",
"open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close","chevron_left"],["help_outline","help"],
["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel","account_circle"],["notifications_done_checkmark",
"check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material","settings"],["share_arrow","share"],["slow_mode_off",
"message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"],["what_to_watch","tab_home"]]);_.uh={};_.uh.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.ID,computeHref_:function(z,l){l=l===void 0?!1:l;if(!z||z.commandExecutorCommand)return null;var I=zL7(z,l);return l||I!==null?I?_.C("enable_polymer_resin")?_.eA(I).toString():I:null:(_.PW(new _.qB("computeHref was null",this.is,z)),null)},
computeOptionalHref_:function(z){return this.computeHref_(z,!0)},
computeNofollow_:function(z){return z?ARQ(z)?"nofollow":null:null},
computeIcon_:function(z){return z&&z.iconType?_.Re(z.iconType):""},
resolveCommand:function(z,l,I){l=l===void 0?{}:l;return _.tx(z,this.hostElement,l,I===void 0?!1:I)}};var lNu,Zh;_.zYp={};lNu=null;
Zh={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_=vJ1(this.viewroot));_.JP(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var z=this;this.unobserve_();if(_.C("kevlar_vimio_use_shared_monitor"))E6G(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var l=[];this.visibilityOptionVisible_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return z.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return z.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return z.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=l}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){OA$(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 z=_.A7(this.parentNode,function(I){var b,v=(b=I.polymerController)!=null?b:I;return!!v.getVisibilityObserverForChild&&v.getVisibilityObserverForChild()},!0);
if(z){var l;this.localVisibilityObserver_=((l=z.polymerController)!=null?l:z).getVisibilityObserverForChild()}else lNu||(lNu=vJ1()),this.localVisibilityObserver_=lNu;return this.localVisibilityObserver_},visibilityCallback:function(z){z?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.C("kevlar_use_vimio_behavior")||(Zh={});Zh&&!_.C("kevlar_use_vimio_behavior")&&(delete Zh.attached,delete Zh.detached);_.zYp.YtVisibilityObserverBehavior=[Zh];var INA={};INA.YtVisualElementBehavior=[_.zYp.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.C("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.C("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var z=this.getScreenLayer&&this.getScreenLayer(),l=this.getVisibilityLogger();l&&l.reportShown(this,void 0,z)}},
onHidden:function(){if(_.C("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.C("kevlar_vimio_use_shared_monitor")){var z=this.getScreenLayer&&this.getScreenLayer(),l=this.getVisibilityLogger();l&&l.reportHidden(this,void 0,z)}},
getVisibilityLogger:function(){return _.C("kevlar_use_vimio_behavior")?_.Xa():null},
shouldSkipLogging:function(){if(_.sZ("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var z=this.getParentRenderer&&this.getParentRenderer();if(!z)return!1;var l,I=(l=z.polymerController)!=null?l:z;if(!I.data)return!1;z=this.data.trackingParams;z=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:z;var b;l=(b=I.data)==null?void 0:b.trackingParams;var v,M;l=((v=I.data)==null?0:v.loggingDirectives)?(M=I.data)==null?void 0:M.loggingDirectives.trackingParams:l;return z&&l&&z===
l}}];var HAu=new Map,SZ;var e8Y=function(z){this.layer=z},yF=function(z){return z.layer!==void 0?z.layer:z.parent?yF(z.parent):z.layer=0};var mSp;_.U={};mSp=0;_.U.YtRendererBehavior=[_.uh.YtComponentBehavior,INA.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_:_.C("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var z,l;(l=(z=this.monitorScrollElement)!=null?z:this.hostElement)==null||l.removeEventListener("scroll",_.KJ(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();uM7(this.hostElement);EV_(_.jC(),this.hostElement);Ih.delete(this.hostElement)},
registerRenderer:function(z){var l;((l=z.polymerController)!=null?l:z).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(z),this.markDirty())},
unregisterRenderer_:function(z){this.useVimio_||(this.childCache_.delete(z),this.markDirty())},
attached:function(){var z=this,l=this.getParentRenderer();if(l){var I,b,v;(b=(I=(v=l.polymerController)!=null?v:l).registerRenderer)==null||b.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var M,x;(x=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||x.addEventListener("scroll",_.KJ(this,this.onScroll))}_.ow.addJob(function(){y9u(z.hostElement)},8);
I=new e8Y(this.screenLayer||void 0);(l=Ih.get(l))&&l.layerNode&&(I.parent=l.layerNode);l={};zmf(this.hostElement,(l.isRenderer=!0,l.layerNode=I,l[wY7]=this.data,l))},
getParentRenderer:function(){for(var z=this.hostElement.parentNode,l,I;z&&((l=Ih.get(z))==null||!l.isRenderer)&&!((I=z.polymerController)!=null?I:z).isRenderer_;)z=z.parentNode||z.host;return z},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.C("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.rr("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.C("debug_web_ve_data")&&this.data.trackingParams){var z="";try{z=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.dE(I)}if(z){var l=fpG(z,1);l!==void 0&&(this.hostElement.dataset.veIndex=String(l));z=fpG(z,2);
z!==void 0&&(this.hostElement.dataset.ve=String(z))}}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,_.C("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.ch(this.data.loggingDirectives.trackingParams)),this.visualElement=_.q8(_.iY(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var z=this.data.targetId;_.ZgI(_.jC(),z,this.hostElement)}else EV_(_.jC(),this.hostElement)},
onScroll:function(){var z=Date.now();z-this.lastHandledScroll_<50||(this.lastHandledScroll_=z,this.markDirty())},
markDirty:function(){_.C("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():KU1(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var z=this.getParentRenderer();if(z&&(z=Ih.get(z))&&z.layerNode)return yF(z.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ht(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var z=0;z<this.data.impressionEndpoints.length;z++)this.sendImpression(this.data.impressionEndpoints[z]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(z){z.clickTrackingParams&&delete z.clickTrackingParams;var l,I;(z==null?0:(l=z.commandMetadata)==null?0:(I=l.webCommandMetadata)==null?0:I.sendPost)?_.uJ(this.hostElement,[z,{impression:!0}]):_.ZE(this.hostElement,[z],this.hostElement)},
logExplicitClick:function(z){var l=_.sU(this.getScreenLayer());if(l){var I,b=(I=z.polymerController)!=null?I:z;z=b.visualElement;b=b.trackingParams||b.clickTrackingParams;!z&&b&&(z=_.ch(b));z&&_.JH(l,z)}}}];var bA_={},HZ=function(){return _.F6.apply(this,arguments)||this};
_.m(HZ,_.F6);HZ.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
HZ.prototype.onPdgItemBehaviorClick=HZ.prototype.onPdgItemBehaviorClick;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],HZ.prototype,"data",void 0);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],HZ.prototype,"onPdgItemBehaviorClick",null);_.e([_.Q5()],HZ);bA_.YtPdgLiveChatItemBehavior=[HZ.prototype,_.U.YtRendererBehavior];var v6A;var Mu_;_.yy={};_.yy.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var f1=function(){var z=pQ.apply(this,arguments)||this;z.switchTemplateAtRegistration=!1;return z};
_.m(f1,pQ);f1.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||q_5(this),_.I75(this,"doRender"),this.doRender())};
f1.prototype.debounceRender=function(){this.templatingFn&&_.z4(this,"doRender",this.doRender)};
f1.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.dE(Error("fh"))};
f1.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.e([r5H()],f1);var pi_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,C1={},Y_f=(C1[1]={filterString:null,isUnwrappable:null,unwrap:null},C1[2]={filterString:function(z,l,I){return CY(I)},
isUnwrappable:function(z){return z instanceof LD},
unwrap:function(z){return VR(z)}},C1[3]={filterString:function(z,l,I){return pi_.test(I)?I:$R.toString()},
isUnwrappable:function(z){return ou(z)},
unwrap:function(z){return _.hT(z)}},C1[4]={filterString:function(){return $R.toString()},
isUnwrappable:function(z){return z instanceof Fr},
unwrap:function(z){return _.YR(z).toString()}},C1[5]={filterString:function(z,l,I){return I},
isUnwrappable:function(z){return typeof z==="string"},
unwrap:function(z){return z.toString()}},C1[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(z){return z instanceof _.IL},
unwrap:function(z){return xef(z)}},C1[8]={filterString:function(z,l,I){I=String(I).toLowerCase();
return yeG(z,l,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},C1[10]={filterString:null,isUnwrappable:null,unwrap:null},C1);bq[$z["default"]]=c9Q;var S_7=[];(function(){var z=IY;IY=function(l){z==null||z(l);hx(function(){for(var I=0;I<l.length;I++)dSu(l[I])})}})();var DSz=function(){var z=_.F6.apply(this,arguments)||this;z.hasUnmounted=!1;return z};
_.m(DSz,_.F6);_.p=DSz.prototype;_.p.beforeRegister=function(){var z=this.doIdomRender;this.templatingFn?_.dE(Error("eh")):(this.templatingFn=z,this.switchTemplateAtRegistration=!0,QvG(this))};
_.p.attached=function(){};
_.p.detached=function(){dSu(this.hostElement)};
_.p.renderIdom=function(){throw Error("hh");};
_.p.doIdomRender=function(){var z=this;NnG(this.hostElement,function(){z.renderIdom()})};
_.e([_.Q5()],DSz);var xSM=[f1.prototype,DSz.prototype];var OAu,g6M=function(){return OAu!==void 0?OAu:OAu=document.createElement("template")};
document.head.appendChild(g6M().content);var GAA;var Na_,E6p=function(){return Na_!==void 0?Na_:Na_=document.createElement("template")};
document.head.appendChild(E6p().content);var uM_;var ZAA=document.head,HAn=ZAA.appendChild,y9n;if(uM_===void 0){var fN0=document.createElement("template");_.K(fN0,"\x3c!--css-build:shady--\x3e");fN0.content.insertBefore(E6p().content.cloneNode(!0),fN0.content.firstChild);uM_=fN0}y9n=uM_;HAn.call(ZAA,y9n.content);var CpI,kAw=function(){return CpI!==void 0?CpI:CpI=document.createElement("template")};
document.head.appendChild(kAw().content);var RYj;var mSz=document.head,KU_=mSz.appendChild,tu4;if(RYj===void 0){var Baz=document.createElement("template");_.K(Baz,"\x3c!--css-build:shady--\x3e");Baz.content.insertBefore(kAw().content.cloneNode(!0),Baz.content.firstChild);RYj=Baz}tu4=RYj;KU_.call(mSz,tu4.content);var Xip=document.head,q_0=Xip.appendChild,iAj;if(GAA===void 0){var FUu=document.createElement("template");_.K(FUu,"\x3c!--css-build:shady--\x3e");FUu.content.insertBefore(g6M().content.cloneNode(!0),FUu.content.firstChild);GAA=FUu}iAj=GAA;q_0.call(Xip,iAj.content);var Qvp,Y_w=function(){return Qvp!==void 0?Qvp:Qvp=document.createElement("template")};
document.head.appendChild(Y_w().content);var Tau;_.I2=new _.yH("DARK_THEME_TOKEN");var tlS=new _.Z0("accessibilityProperties");var K$$=new _.Z0("layoutProperties");var BW$=new _.Z0("imageType");var c9I={};if("ytAttributedStringLinkHoverColor"in c9I)throw Error("kh`ytAttributedStringLinkHoverColor");(function(z,l){c9I[z]="value"in l&&"unit"in l?$S1(z,l):function(I){try{return l(I)}catch(b){throw Error("ih`"+z+"`"+b.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var S__=function(z){var l=this;this.holdTime=z===void 0?500:z;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var b=new CustomEvent("LONG_PRESS"),v;(v=I.changedTouches[0].target)==null||v.dispatchEvent(b)};
this.ontouchstart=function(I){l.longPressTimeout=_.fI(_.ow,function(){l.onlongpress(I);l.longPressOccurred=!0},l.holdTime)};
this.ontouchmove=function(){_.ow.cancelJob(l.longPressTimeout);l.longPressTimeout=NaN;l.longPressOccurred=!1;l.moveOccurred=!0};
this.ontouchend=function(I){if(l.longPressTimeout&&!l.longPressOccurred&&!l.moveOccurred){var b;(b=I.changedTouches[0].target)==null||b.dispatchEvent(new Event("click"))}_.ow.cancelJob(l.longPressTimeout);l.longPressTimeout=NaN;l.longPressOccurred=!1;l.moveOccurred=!1}};var ppQ=function(z,l){S__.call(this,l);var I=this;this.callback=z;this.onlongpress=function(b){var v;(v=I.callback)==null||v.call(I,b)}};
_.m(ppQ,S__);var DT5=function(z,l){var I=Object.assign({},l);z=_.D(new Map([["ontouchstart",z.ontouchstart],["ontouchend",z.ontouchend],["ontouchmove",z.ontouchmove]]));for(var b=z.next(),v={};!b.done;v={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},b=z.next()){var M=_.D(b.value);b=M.next().value;M=M.next().value;v.eventName$jscomp$101=b;v.eventHandler$jscomp$1=M;l[v.eventName$jscomp$101]=function(x){return function(g){var G;(G=I[x.eventName$jscomp$101])==null||G.call(I,g);(0,x.eventHandler$jscomp$1)(g)}}(v)}};_.DQ=new _.yH("COMMAND_HANDLER_TOKEN");var wi5=new _.Z0("parallelCommand");var n6t=new _.Z0("performOnceCommand");var WU7=new _.Z0("serialCommand");var LUf=void 0;var dSn=function(){this.data=[];this.consumer=null};
dSn.prototype.push=function(z){this.consumer?this.consumer(z):this.data.push(z)};var vt={};_.Z_(vt,void 0,"sgPmTd");_.Z_(null,void 0,"jypsq");_.Z_(null,void 0,"mWiOof");var aKx=new dSn;var IyY=[PHu,hQu,s1w,$pu,rG0,o5j,eQu,w7w];var Rjx=new _.Z0("bracketTextDecorator");var zH=new _.Z0("highlightTextDecorator");_.vr=new _.yH("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Hxf=function(){},o6j;
(o6j=window.requestIdleCallback)==null||o6j.bind(window);var fyx={calledOnce:!1,state:"visible"},y3f={calledOnce:!1,state:"hidden"};var Pp4=new _.yH("ICON_WIZ_COMPONENT_TOKEN");_.qt=_.P(function(z){var l=z.icon;var I=z.active;var b=z.className;var v=z.style;var M=z.dataSelected;var x=z.dataDisabled;var g=z.role;var G=z.animateIcon;var u=z.themeOverride;var Z=z.ariaHidden;var H=z.ariaExpanded;var y=z.ariaLabel;var f=z.tabindex;var R=z.id;var F=z.size;var Y=z.iconFilter;var c=z.onKeydown;return _.N(_.E,{cond:l,then:function(){var d=_.pG().resolve(Pp4);return _.N(d,{icon:l,dataSelected:M,dataDisabled:x,animateIcon:G,themeOverride:u,ariaExpanded:H,tabindex:f,id:R,active:I,size:F,
role:g,className:b,ariaHidden:Z,ariaLabel:y,style:function(){return v!=null&&v()||F==null||!F()?v==null?void 0:v():"width: "+(F==null?void 0:F())+"px;height: "+((F==null?void 0:F())+"px;")},
iconFilter:Y,onKeydown:c})}})},"b");
_.qt.idomCompat={callbacks:{onKeydown:!0}};var $Tk=window.devicePixelRatio||1;var W$$=new Map([["yt_outline_bag_black_24","bag"]]);var k$=function(z){var l=this;this.margin=.1;this.whenInViewportWithMargin=z;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){l.requestScan()});
window.addEventListener("touchend",function(){l.requestScan()});
window.addEventListener("updateui",function(){l.requestScan()});
var I=new _.zD((0,_.YN)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.YN)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){l.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.YN)(this.requestScan,this))};
k$.prototype.observe=function(z){this.observationTargets.includes(z)||this.observationTargets.push(z)};
k$.prototype.unobserve=function(z){this.observationTargets=this.observationTargets.filter(function(l){return l!==z})};
k$.prototype.requestScan=function(){var z=this;this.scanRequested||(hx(function(){hY_(z)}),this.scanRequested=!0)};
var hY_=function(z){var l=(1+z.margin)*(document.documentElement.clientHeight||window.innerHeight);z.observationTargets=z.observationTargets.filter(function(I){var b=I.getBoundingClientRect();(b=l>b.top&&!!b.height)&&z.whenInViewportWithMargin(I);return!b&&I.parentNode});
z.scanRequested=!1};
k$.prototype.disconnect=function(){this.observationTargets=[]};var sv0,$S_;sv0=_.D(_.Z_(Vlx(),void 0,"O3X2wd"));_.r9A=sv0.next().value;$S_=sv0.next().value;window.addEventListener("resize",function(){$S_(Vlx())});var eYz={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},wi0=void 0,A9A=window.innerWidth,WU_=window.innerHeight;window.addEventListener("resize",function(){wi0=void 0});var n6A;if("IntersectionObserver"in window)n6A=zi1();else{if(wi0===void 0){var LUw;LUw="matchMedia"in window?window.matchMedia(eYz.landscape+","+eYz.portrait).matches:void 0;wi0=LUw!==void 0?LUw:A9A>=930&&WU_>=550||A9A>=550&&WU_>=930}n6A=wi0?{observe:function(z){hx(function(){var l;(l=z.onViewportEntered)==null||l.call(z)})},
unobserve:function(){}}:new k$(function(z){hx(function(){var l;
(l=z.onViewportEntered)==null||l.call(z)})})}var jgt=n6A;var USA=_.P(function(z){var l=!1,I=_.VK("img",function(b){_.cb(function(){l=!0;b.onload=null})});
_.Te(function(){var b,v=(b=z.data)==null?void 0:b.call(z),M,x=(M=z.getSrc)==null?void 0:M.call(z).cb,g;b=(g=z.config)==null?void 0:g.call(z);if(g=I.value)if(M=function(u,Z){if(!l)return x?x(u,Z):u},bTY(g,b),_.C("web_image_dont_reload_same_src")&&IgS(g,v,M))_.C("web_image_dont_reload_same_src_simulate_load")&&g.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var G;lgk(g,v||null,M,b,(G=z.lazy)==null?void 0:G.call(z))}},"zS0jKb");
return _.N("img",{el:I})},"c");
USA.idomCompat=!0;_.pK=_.P(function(z){var l=function(){var I,b=z.data(),v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH,Gk,uH,Xt,R1,H7,P7,o1,z_,dw;var Ej={contentMode:(v=z.contentMode)==null?void 0:v.call(z),loadedClass:(M=z.loadedClass)==null?void 0:M.call(z),isPreloaded:(x=z.isPreloaded)==null?void 0:x.call(z),notifyOnLoaded:(g=z.notifyOnLoaded)==null?void 0:g.call(z),notifyOnUnloaded:(G=z.notifyOnUnloaded)==null?void 0:G.call(z),preferredThumbnail:(u=z.preferredThumbnail)==null?void 0:u.call(z),preserveHeight:(Z=z.preserveHeight)==
null?void 0:Z.call(z),preserveWidth:(H=z.preserveWidth)==null?void 0:H.call(z),objectPosition:(y=z.objectPosition)==null?void 0:y.call(z),targetWidth:(f=z.targetWidth)==null?void 0:f.call(z),targetHeight:(R=z.targetHeight)==null?void 0:R.call(z),shouldShowPlaceholder:(F=z.shouldShowPlaceholder)==null?void 0:F.call(z),useWidth:(Y=z.useWidth)==null?void 0:Y.call(z),isToggled:(c=z.isToggled)==null?void 0:c.call(z),alt:(d=z.alt)==null?void 0:d.call(z),className:(V=z.className)==null?void 0:V.call(z),
onerror:z.onerror,onload:z.onload,style$:((A=z.style$)==null?void 0:A.call(z))||((W=z.style)==null?void 0:W.call(z)),color:(L=z.color)==null?void 0:L.call(z),width:(lH=z.width)==null?void 0:lH.call(z),height:(Gk=z.height)==null?void 0:Gk.call(z),"aria-hidden$":(z_=(uH=z["aria-hidden$"])==null?void 0:uH.call(z))!=null?z_:(Xt=z.ariaHidden)==null?void 0:Xt.call(z),draggable:(R1=z.draggable)==null?void 0:R1.call(z),"data-disabled$":(dw=(H7=z["data-disabled$"])==null?void 0:H7.call(z))!=null?dw:(P7=z.dataDisabled)==
null?void 0:P7.call(z),size:(o1=z.size)==null?void 0:o1.call(z)};return pzt(b,Ej,(I=z.hideOn404)==null?void 0:I.call(z))};
return _.N(_.Q7,null,_.N(_.is,{when:function(){var I;return((I=l())==null?void 0:I.type)==="image"}},function(){return _.N(USA,{data:function(){return l().image},
getSrc:{cb:function(I,b){var v=l().image.sources,M=l().config.isPreloaded,x=l().config.useWidth,g=l().config.targetWidth,G=l().config.targetHeight,u=l().config.preferredThumbnail;return _.ejY(b,v,M,x,g,G,u)||""}},
config:function(){var I=l().config,b;for(b in I)I[b]===void 0&&delete I[b];return I},
lazy:z.renderLazy})}),_.N(_.is,{when:function(){var I;
return((I=l())==null?void 0:I.type)==="icon"}},function(){return _.N(_.qt,{icon:function(){return l().iconName},
role:function(){return l().config.role},
className:function(){return l().config.className},
style:function(){return l().config.style$+";width: "+(l().config.width+"px;height: ")+(l().config.height+"px;color: ")+(l().config.color+";")},
ariaLabel:function(){return l().config["aria-label$"]},
ariaHidden:function(){return l().config["aria-hidden$"]},
dataDisabled:function(){return l().config["data-disabled$"]},
active:function(){return l().config.isToggled},
size:function(){return l().config.size}})}))},"d");
_.pK.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var aN_=function(z){return function(l){return _.N(ij1,null,function(){var I=l.data(),b=_.d2(l.config);return _.N(lq,null,function(){return void z(I,b)})})}}(G0$),OTk=_.P(function(z){var l=function(b){var v,M=_.xl(function(y){v=S3(function(){for(var f=_.D(Z()),R=f.next();!R.done;R=f.next()){R=NJG(R.value);
R=typeof R==="string"?document.createTextNode(R):R;if(!(R instanceof Node)){f=new _.qB("Part is not a node",R,typeof R);_.dE(f);break}y.appendChild(R)}})}),x=OW(function(){return qCf(b())},{isEqual:x$7}),g=_.Df(z.config),G=function(){var y,f=x();
return!((y=g())==null||!y.ariaLabel)||!(f.commandRuns&&f.commandRuns.length!==0||f.paragraphStyleRuns&&f.paragraphStyleRuns.length!==0)},u=OW(g,{isEqual:uRf}),Z=function(){var y=Xpt(x(),u());
F$H(y,u());return x().content?dTH(x().content,y).parts:[]},H=!0;
_.Te(function(){x();u();if(H)H=!1;else{var y=Z();Promise.resolve().then(function(){var f=M.value;if(f){f.innerText="";var R;(R=v)==null||R();v=_.T3(f,function(){return _.N(EXt,{parts:y})},"e")}})}},"YlhjWd");
return _.N("span",{el:M,class:function(){return x()&&NWt(x(),g())},
dir:function(){var y;return((y=g())==null?0:y.userInput)?"auto":void 0},
"aria-label":function(){var y;return G()?(y=g())==null?void 0:y.ariaLabel:void 0},
role:function(){return G()?"text":void 0}})},I;
return((I=z.config)==null?0:I.renderedFromFormattedString)?l(z.text):_.N(_.E,{cond:z.text,then:l})},"f");
OTk.idomCompat=!0;_.Rf=_.P(function(z){var l=_.Df(z.text),I=ZTx(z);z.renderedFromFormattedString!==void 0&&(I.renderedFromFormattedString=!0);return _.C("attr_string_reactive")?_.N(OTk,{text:l,config:I}):_.N(_.E,{cond:function(){var b;return l()&&((b=qCf(l()))==null?void 0:b.content)},
then:function(){return _.N(aN_,{data:z.text,config:I})},
debugInstance:"Apcuac"})},"g");
_.Rf.idomCompat=!0;var HT7=function(z,l,I){l=l===void 0?"unknown":l;I=I===void 0?{}:I;_.qB.call(this,z+" ("+l+")",Object.assign({},{name:"YtWcwError",tagName:l},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(HT7,_.qB);_.EW=new WeakMap;_.Nt=!1;var k0$,m$Q,Cex;_.mB=Symbol("mh");_.GH=Symbol("nh");k0$=Symbol("oh");m$Q=new Set(Object.getOwnPropertyNames(Element.prototype));Cex=Symbol("ph");var Vu_=_.P(function(z){return _.N("yt-attributed-string",{"aria-label":z.ariaLabel,hidden:z.hidden,id:z.id,class:z.className,"force-default-style":z.forceDefaultStyle},_.N(_.Rf,{text:z.data,ariaLabel:z.ariaLabel,ellipsisTruncate:z.ellipsisTruncate,isOverlay:z.isOverlay,linkInheritColor:z.linkInheritColor,noPreWrap:z.noPreWrap,noWrap:z.noWrap,userInput:z.userInput,noEndpoints:z.noEndpoints,headerRuns:z.headerRuns,isHeadline:z.isHeadline}))},"h");
_.C("web_wiz_attributed_string")&&_.uO(Vu_,"yt-attributed-string",{props:{ariaHidden:_.mB,ariaLabel:_.mB,className:_.mB,ellipsisTruncate:_.mB,isOverlay:_.mB,linkInheritColor:_.mB,noEndpoints:_.mB,noStyleRuns:_.mB,noLinkColor:_.mB,noPreWrap:_.mB,noWrap:_.mB,skipOnClick:_.mB,userInput:_.mB,headerRuns:_.mB,isHeadline:_.mB,id:_.mB,data:_.mB,hidden:_.mB,forceDefaultStyle:_.mB,text:_.GH,disableUpgrade:_.GH,disable:_.GH,slot:_.GH}});var K1=function(){return _.q.apply(this,arguments)||this};
_.m(K1,_.q);K1.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},G0$(this.data,this.config))};
_.e([_.t(xSM),_.w("design:type",Object)],K1.prototype,"ytIdomTemplatingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],K1.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],K1.prototype,"ariaLabel",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"disable",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"ellipsisTruncate",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"isOverlay",void 0);
_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"linkInheritColor",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"noPreWrap",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"noWrap",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"userInput",void 0);_.e([_.X(),_.w("design:type",Boolean)],K1.prototype,"noEndpoints",void 0);_.e([_.X(),_.w("design:type",Array)],K1.prototype,"headerRuns",void 0);
_.e([_.Wy({is:"yt-attributed-string",disableElementRegistration:!0})],K1);
_.C("web_wiz_attributed_string")||_.r(K1,"yt-attributed-string",function(){if(Tau===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
z.content.insertBefore(Y_w().content.cloneNode(!0),z.content.firstChild);Tau=z}z=Tau;return z},{mode:2});var jvI,J9_,FS5;jvI=function(){this.firstThumbnailLoaded=!1};
_.zj4=function(){J9_||(J9_=new jvI);return J9_};
FS5=function(z){var l=_.zj4();l.firstThumbnailLoaded||(l.firstThumbnailLoaded=!0,_.sK("ftl",z))};
jvI.prototype.reset=function(){this.firstThumbnailLoaded=!1};var tIu=0,iTH=new WeakMap,Xzt=0,ye=new Set;var ly0,Iyj=function(){return ly0!==void 0?ly0:ly0=document.createElement("template")};
document.head.appendChild(Iyj().content);var bxA;var cVf,d$Q,t4;_.kl=_.v7.caches;t4=function(){};
t4.prototype.open=function(z){return _.kl.open(vpu(z))};
t4.prototype.has=function(z){return _.kl.has(vpu(z))};
t4.prototype.delete=function(z){return _.kl.delete(vpu(z))};
t4.prototype.match=function(z,l){var I=this,b,v,M,x,g,G;return _.O(function(u){switch(u.nextAddress){case 1:return u.yield(I.keys(),2);case 2:b=u.yieldResult,v=_.D(b),M=v.next();case 3:if(M.done){u.jumpTo(5);break}x=M.value;return u.yield(I.open(x),6);case 6:return g=u.yieldResult,u.yield(g.match(z,l),7);case 7:if(G=u.yieldResult)return u.return(G);M=v.next();u.jumpTo(3);break;case 5:return u.return()}})};
var oXt=function(){};
_.m(oXt,t4);var vpu=function(z){if(z.includes(":"))throw Error("sh`"+z);return z+":"+_.BV("CacheStorage get")};
oXt.prototype.keys=function(){var z,l,I,b,v,M,x,g,G;return _.O(function(u){if(u.nextAddress==1)return z=[],l=_.BV("CacheStorage keys"),u.yield(_.kl.keys(),2);I=u.yieldResult;b=_.D(I);for(v=b.next();!v.done;v=b.next())M=v.value,x=_.TJk(M),g=x.originalName,G=x.datasyncId,G===l&&z.push(g);return u.return(z)})};var BZ=function(){var z=_.q.apply(this,arguments)||this;z.objectURL=null;z.loadTime=Infinity;return z};
_.m(BZ,_.q);_.p=BZ.prototype;_.p.renderIdom=function(){Yyp(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&vX$(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.p.objectFitToContentMode=function(z){switch(z){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.p.logThumbnailFailureVe=function(){var z=_.kU(197497);_.oc(_.iY(),z);var l=_.sU();l&&z&&l&&_.Vi(l,[z])};
_.p.loadImageFromCacheIfExists=function(z){var l=this,I=z.target;(I==null?0:I.src)&&hif(I.src).then(function(b){l.objectURL=_.w0(b).toString();l.setSrc(I,l.objectURL)}).catch(function(){})};
_.p.onError=function(z){var l=this;if(_.C("web_use_cache_for_image_fallback")){var I=z.target;I&&hif(I.src).then(function(b){l.objectURL=_.w0(b).toString();l.setSrc(I,l.objectURL)}).catch(function(){_.C("kevlar_woffle_log_thumbnail_failure_ve")&&l.logThumbnailFailureVe();
_.C("kevlar_woffle_fallback_image")&&l.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.p.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.p.setConfig=function(){var z=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(l){z.loadImageFromCacheIfExists(l);z.revokeObjectURL();Q$5(z.hostElement)},
onerror:function(l){z.onError(l)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.C("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.p.setSrc=function(z,l){l&&(z.src=l)};
_.e([_.t(xSM),_.w("design:type",Object)],BZ.prototype,"ytIdomTemplatingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],BZ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],BZ.prototype,"alt",void 0);_.e([_.X(),_.w("design:type",Boolean)],BZ.prototype,"ftlEligible",void 0);_.e([_.X(),_.w("design:type",Number)],BZ.prototype,"height",void 0);_.e([_.X(),_.w("design:type",Boolean)],BZ.prototype,"notifyOnLoaded",void 0);
_.e([_.X(),_.w("design:type",Boolean)],BZ.prototype,"notifyOnUnloaded",void 0);_.e([_.X(),_.w("design:type",String)],BZ.prototype,"objectFit",void 0);_.e([_.X(),_.w("design:type",String)],BZ.prototype,"objectPosition",void 0);_.e([_.X(),_.w("design:type",String)],BZ.prototype,"preferredThumbnail",void 0);_.e([_.X(),_.w("design:type",Boolean)],BZ.prototype,"preserveHeight",void 0);_.e([_.X(),_.w("design:type",Boolean)],BZ.prototype,"preserveWidth",void 0);
_.e([_.X({value:!0}),_.w("design:type",Boolean)],BZ.prototype,"useWidth",void 0);_.e([_.X({value:function(){return!_.rr("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.w("design:type",Boolean)],BZ.prototype,"shouldRenderLazy",void 0);_.e([_.X(),_.w("design:type",Number)],BZ.prototype,"width",void 0);_.e([_.Wy({is:"yt-image",disableElementRegistration:!0})],BZ);
_.r(BZ,"yt-image",function(){if(bxA===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);z.content.insertBefore(Iyj().content.cloneNode(!0),z.content.firstChild);
bxA=z}z=bxA;return z},{mode:2});var Xx=function(){return _.q.apply(this,arguments)||this};
_.m(Xx,_.q);Xx.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var z=_.Wh(this.data.onVisibleCommand);z&&this.ytComponentBehavior.resolveCommand(z)}};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yy.YtVisibilityBehavior),_.w("design:type",Object)],Xx.prototype,"ytVisibilityBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xx.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Xx);
_.r(Xx,"yt-bumper-user-edu-content-view-model",function(){if(Mu_===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;v6A===void 0&&(v6A=document.createElement("template"));var b=v6A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Mu_=z}z=Mu_;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var MlA;var ppA,DT0=function(){if(ppA!==void 0)return ppA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;MlA===void 0&&(MlA=document.createElement("template"));var b=MlA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return ppA=z};var xTw;_.qw={};xTw=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"]);_.qw.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var z=this.getContext_();return z?z.getTaskManager():_.ow},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var z=_.gC(this.hostElement,"yt-get-context-provider",{});z.detail&&z.detail.contextProvider?this.cachedProviderNode_=z.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return xTw.has(this.hostElement.localName)},
getNetworkManager:function(){var z=this.getContext_();if(z)return z.getNetworkManager()}};var AVk,Ox_,Gyn,gpj;_.ih=function(z){var l=Ox_.get(z);if(l&&(l=l.pop()))return gpj++,l;Gyn++;try{var I=document.createElement(z)}catch(b){throw new _.qB("ElementPool failed to create element",z,b.message);}return I};
AVk=function(z){var l=z.is;if(l){var I=Ox_.get(l);I||(I=[],Ox_.set(l,I));var b=_.sZ("ELEMENT_POOL_CONFIG")||{};I.length>=(b[l]!==void 0?b[l]:_.sZ("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(z)}else _.PW(new _.qB("Element pool should only handle custom elements:",z.nodeName))};
Ox_=new Map;Gyn=0;gpj=0;var R2=new WeakMap,wzf=new WeakMap;var EpI;_.Fx=function(z,l,I){I=I===void 0?_.Y1():I;this.JSC$13808_defaultPriority=z;this.signal=l;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$13808_parkedJobs=[];this.scheduledJobs=new Map};
_.Qy=function(z,l){if(l){var I=_.uV();z.signal&&!_.ZL(I,z.signal)?(I.addListener(z.signal,function(){z.processSignal()}),z.JSC$13808_parkedJobs.push({job:l,
priority:void 0})):NWA(z,l)}};
EpI=function(z,l){if(l!==z.JSC$13808_defaultPriority){z.JSC$13808_defaultPriority=l;for(var I=_.D(z.scheduledJobs.values()),b=I.next();!b.done;b=I.next())b=b.value,z.scheduler.cancelJob(b.jobId),b.jobId=z.scheduler.addJob(b.jobWrapper,l)}};
_.Fx.prototype.flushJobs=function(){EpI(this,10);this.processSignal()};
_.Fx.prototype.cancel=function(){for(var z=_.D(this.scheduledJobs),l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(l)}this.JSC$13808_parkedJobs=[]};
_.Fx.prototype.processSignal=function(){for(var z=_.D(this.JSC$13808_parkedJobs),l=z.next();!l.done;l=z.next())l=l.value,NWA(this,l.job,l.priority);this.JSC$13808_parkedJobs=[]};
var NWA=function(z,l,I){I=I||z.JSC$13808_defaultPriority;if(I===10)fK(l);else{var b=z.nextJobDescriptor++,v=function(){l();z.scheduledJobs.delete(b)},M=z.scheduler.addJob(v,I);
z.scheduledJobs.set(b,{jobWrapper:v,jobId:M,priority:I})}};FGH({beforeVisit:function(z){if(uY.has(z.type)){var l;(l=z.props).idomKey!=null||(l.idomKey=z.type)}else z.type.TAG_NAME&&(Rix=z.type.TAG_NAME)},
afterRender:function(z,l){var I;Rix=(I=l==null?void 0:l.type)!=null?I:""},
didPatch:function(){Rix=""}});var u9M;_.Y$={};u9M={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Y$.YtRendererstamperBehavior=[_.qw.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 z in this.stampDom){var l=this.stampDom[z];l&&l.id&&this.addReactiveSchema({type:"observe",method:{methodName:rVY(l.id),args:[{type:"wildcard",path:z}]}})}else{(z=(this.constructor.generatedFrom||this).observers)||(z=[]);for(l in this.stampDom){var I=this.stampDom[l];I&&I.id&&z.push(rVY(I.id)+"("+l+".*)")}this.constructor.generatedFrom.observers=z}},
addStampDomObserverFns_:function(){for(var z in this.stampDom){var l=this.stampDom[z];l.id?(this[rVY(l.id)]=this.rendererStamperObserver_.bind(this,z,l.id),this.hasDataPath_[z]=!1):(l=new _.qB("Bad rendererstamper config",this.is+":"+z),_.dE(l))}},
rendererStamperObserver_:function(z,l,I){if(I.path==z){if(I.value===void 0&&!this.hasDataPath_[z])return;this.hasDataPath_[z]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(z,l,I)},
rendererStamperApplyChangeRecord_:function(z,l,I){var b=this.renderJobsMap_[l],v=null;z==I.path?(I=I.value,_.wf(I)||(I=I===void 0||I===null?[]:[I]),z=this.stampDom[z],z.mapping&&(v=this.stampDomArray_.bind(this,I,l,z.mapping,z.reuseComponents,z.events,z.stamperStableList)),b&&b.cancel(),I=z.usePageScheduler?this.getTaskManager():void 0,b||z.initialRenderPriority==void 0)?z.renderPriority==void 0||b||(b=new _.Fx(z.renderPriority,z.waitForSignal,I),this.renderJobsMap_[l]=b):(b=new _.Fx(z.initialRenderPriority,
z.waitForSignal,I),this.renderJobsMap_[l]=b,v=function(M,x){M();EpI(x,10)}.bind(this,v,b)):v=z+".splices"==I.path?this.stampDomArraySplices_.bind(this,z,l,I.value):this.forwardRendererStamperChanges_.bind(this,z,l,I);
b?_.Qy(b,v):v()},
forwardRendererStamperChanges_:function(z,l,I){var b=I.path.slice(z.length+1),v=this.getStampContainer_(l),M=b.indexOf("."),x=b.substring(0,M),g=!1,G=0,u=parseInt(x,0);if(x[0]=="#"){g=parseInt(x.substring(1),0);u=this.get(z);var Z=this.get([z,x]);u[g]==Z?G=g:G=u.indexOf(Z);g=!0}else isNaN(u)||(G=u,g=!0);g&&(b=b.substring(x.length+1),M=b.indexOf("."));x=_.YO(v).children[G];var H;if(v=(H=x==null?void 0:x.polymerController)!=null?H:x)b="data"+b.slice(M),typeof v.notifyPath!=="function"?_.PW(new _.qB("notifyPath missing",
this.is+": "+z+", "+l)):I.value?v.notifyPath(b,I.value):v.notifyPath(b)},
stampDomArraySplices_:function(z,l,I){if(I&&I.indexSplices){var b=this.getStampContainer_(l);if(b){for(var v=_.YO(b),M=eiu(this.stampDom[z].reuseComponents),x=I.indexSplices.length,g=0;g<x;g++){for(var G=I.indexSplices[g],u=v.children[G.index],Z=G.removed.length;Z>0;Z--)u&&u.parentElement&&(_.YO(u.parentElement).removeChild(u),M&&AVk(u),u=v.children[G.index]);Z=this.stampDom[z].mapping;for(var H=G.index+G.addedCount,y=document.createDocumentFragment(),f=M,R=G.index;R<H;R++){var F=G.object[R],Y=s$5(Z,
F);if(Y){var c=Z[Y];F=F[Y];Y=this.getComponentName_(c,F);var d=u?R2.has(u):!1;f&&u&&u.is==Y&&d?(Y=u,this.telemetry_.reuse++,u=u.nextElementSibling):f&&u&&d?(Y=this.createComponent_(c,F,M),d=_.YO(u).nextElementSibling,v.insertBefore(Y,d),nX1(this.is,v,u,M),u=d):(f=!1,Y=this.createComponent_(c,F,M),y.appendChild(Y));this.deferRenderStamperBinding_(Y,c,F)}else c=new _.qB("Unimplemented type",z,l,b.tagName,Object.keys(F)[0]),_.dE(c)}v.insertBefore(y,u)}this.flushRenderStamperComponentBindings_();this.stampDom[z].events&&
_.gC(this.hostElement,"yt-rendererstamper-finished",{container:b})}else z=new _.qB("Container object not found",l,this.hostElement?this.hostElement.is:""),_.dE(z)}},
stampDomArray_:function(z,l,I,b,v,M){var x=this.getStampContainer_(l);if(x)if(l=_.YO(x),b=eiu(b),z){var g=0,G=0,u;if(M=M===void 0?_.rr("STAMPER_STABLE_LIST",!1):M||!1)for(u=l.firstElementChild;u&&!R2.has(u)&&z.length>G;){M=z[G];var Z=s$5(I,M);if(Z){if(this.getComponentName_(I[Z],M[Z])!=u.is){var H=this.createComponent_(I[Z],M[Z],b),y=_.YO(u).nextElementSibling;y?l.insertBefore(H,y):l.appendChild(H);nX1(this.is,l,u,b);u=H}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(u,I[Z],M[Z]);g++;
G++;u=_.YO(u).nextElementSibling}else G++}LSS(this.is,l,g,b);g=u;if(z.length>G){M=document.createDocumentFragment();for(Z=z.length;G<Z;G++)if(H=z[G],y=s$5(I,H))u=this.createComponent_(I[y],H[y],b),this.deferRenderStamperBinding_(u,I[y],H[y]),M.appendChild(u);g&&_.YO(g).parentNode&&u&&!R2.has(u)?l.insertBefore(M,g):l.appendChild(M)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();v&&_.gC(this.hostElement,"yt-rendererstamper-finished",{container:x})}else LSS(this.is,l,0,
b);else z=new _.qB("Container object not found",l,this.hostElement?this.hostElement.is:""),_.dE(z)},
getStampContainer_:function(z){return this.$&&this.$[z]||_.Hy(this.hostElement).querySelector("#"+z)},
getComponentName_:function(z,l){return typeof z==="string"?z:z.matcher?z.matcher.call(this,l):z.component},
createComponent_:function(z,l,I){z=this.getComponentName_(z,l);try{var b=Zf.has(z)||uY.has(z);if(I&&!b){var v=_.ih(z);try{_.R8(v)}catch(M){I="Failed to clear styles for "+z+".",M.message&&(I+=" Original error: "+M.message),_.PW(new _.qB(I))}}else v=document.createElement(z)}catch(M){return v="YtRendererStamperBehavior failed to create "+z+".",M.message&&(v+=" Original description: "+M.message),M.message="YtRendererStamperBehavior failed to create element",_.hK(M,v),u9M.hasOwnProperty(z)?_.PW(M):_.dE(M),
document.createElement("SPAN")}this.telemetry_.create++;return v},
deferRenderStamperBinding_:function(z,l,I){this.deferredBindingTasks_.push({component:z,typeOrConfig:l,data:I})},
flushRenderStamperComponentBindings_:function(){for(var z=0,l=this.deferredBindingTasks_.length;z<l;z++){var I=this.deferredBindingTasks_[z];if(!I)break;var b=void 0,v=void 0,M=void 0,x=void 0,g=I.component,G=I.typeOrConfig;I=I.data;var u=(x=g.polymerController)!=null?x:g;x=g.loggingStatus;try{x&&(x.isRendererStamper=!0);if(typeof G!=="string"){for(M in G.attributes)G.attributes[M]===!0?g.setAttribute(M,""):G.attributes[M]===!1?g.removeAttribute(M):g.setAttribute(M,G.attributes[M]);for(v in G.params)u[v]=
G.params[v],g!==u&&Sg(g.localName,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(b in G.properties){var Z=G.properties[b];if(Z){var H=$$5(Z);u[b]=this.get(H);g!==u&&Sg(g.localName,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(b==="on-tap"||b==="on-click"){var y=this.get(H);g.addEventListener("click",y);wzf.set(g,{property:b,listener:{type:"element",eventName:"click",handler:y}})}}else{var f=new _.qB("Undefined property binding",b);_.dE(f)}}}if(G.classListBinding){var R=$$5(G.classListBinding),
F=R?this[R]:null;if(F)for(b=0;b<F.length;b++)_.fJ(g,F[b],!0)}u.data=I}finally{x&&(x.isRendererStamper=!1)}if(b=R2.get(g))g.hidden=!1,R2.delete(g),_.ow.cancelJob(b)}this.deferredBindingTasks_.length=0}}];_.uO(_.P(function(z){function l(){I().seconds&&M(T3t({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=z.targetTimestamp;z=z.className;var b=_.D(_.Z_("",void 0,"TM9kjd")),v=b.next().value,M=b.next().value;_.c8(function(){l();var x=setInterval(function(){l()},1E3);
_.cb(function(){clearInterval(x)})});
return _.N("yt-countdown",{class:_.m9("ytCountDownHost",z)},_.N("div",null,v))},"i"),"yt-countdown",{props:{targetTimestamp:_.mB,
className:_.GH}});_.T$=new _.yH("KEY_MANAGER_TOKEN");var U$x={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"};_.cZ=_.P(function(z){var l=_.VK("a",z.ref),I=z.aTagConfig?z.aTagConfig:_.kz(function(){var b,v,M,x,g;var G=(g=_.Wh((M=z.command)==null?void 0:M.call(z)))!=null?g:(x=z.command)==null?void 0:x.call(z);return _.LE({innertubeCommand:G,skipOnClick:(b=z.skipOnClick)==null?void 0:b.call(z),defaultTarget:(v=z.target)==null?void 0:v.call(z)})||{}},void 0,"gnrRge");
_.Te(function(){l.value._data=I()._data;l.value.params=I().params},"t2c7fe");
return _.N("a",{el:l,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var b,v;return(v=I().className)!=null?v:(b=z.className)==null?void 0:b.call(z)},
style:function(){var b;if((b=z.style)==null?0:b.call(z))return z.style();var v;return((v=z.disabled)==null?0:v.call(z))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":tN(function(){return I()["force-new-state$"]}),
title:tN(function(){var b,v;return(v=I().title$)!=null?v:(b=z.title)==null?void 0:b.call(z)}),
role:tN(function(){var b;return((b=z.role)==null?void 0:b.call(z))||I().role$}),
target:tN(function(){return I().target$}),
dir:tN(function(){var b;return((b=z.dir)==null?void 0:b.call(z))||I().dir}),
tabindex:function(){var b;return I().tabindex$?Number(I().tabindex$):(b=z.tabIndex)==null?void 0:b.call(z)},
"aria-hidden":function(){var b,v;return(v=I()["aria-hidden$"])!=null?v:(b=z.ariaHidden)==null?void 0:b.call(z)},
"aria-label":function(){var b,v;return(v=I()["aria-label$"])!=null?v:(b=z.ariaLabel)==null?void 0:b.call(z)},
"aria-current":z.ariaCurrent,"aria-disabled":z.disabled,"aria-labelledby":z.ariaLabelledby,"aria-describedby":z.ariaDescribedby,"aria-selected":z.ariaSelected,"tab-identifier":z.tabIdentifier,"on:pointerdown":_.KK(function(b){var v,M;return void((M=(v=I()).onpointerdown)==null?void 0:M.call(v,b))}),
"on:click":_.KK(function(b){var v,M;(M=(v=I()).onclick)==null||M.call(v,b);var x;(x=z.onClick)==null||x.call(z,b)}),
"on:focusin":_.KK(function(b){var v;(v=z.onFocusin)==null||v.call(z,b)}),
"on:focusout":_.KK(function(b){var v;(v=z.onFocusout)==null||v.call(z,b)})},z.children)},"j");var b3Q={duration:1E3,easing:"ease",fill:"forwards"};Id5.componentType=qM;var pw1={duration:1E3,easing:"ease",fill:"forwards"},y3w=_.P(function(z){var l=_.VK("animated-rolling-character"),I=void 0,b=function(){var v,M;return Im((v=z.character)==null?void 0:v.call(z))||Im((M=z.previousCharacter)==null?void 0:M.call(z))};
_.Te(function(){if(z.marginMultiplier()){var v;(v=I)==null||v.cancel();if(b()){var M;v=((M=z.previousCharacter)==null?0:M.call(z))?Number(z.previousCharacter())+10:z.rollUp()?0:30;var x;if((x=z.shouldAnimate)==null||!x.call(z)){var g,G;v-=MUp((g=z.character)==null?void 0:g.call(z),(G=z.previousCharacter)==null?void 0:G.call(z),z.rollUp(),v)}}else{v=z.rollUp()?0:2;var u;(u=z.shouldAnimate)!=null&&u.call(z)||(M=v,x=z.rollUp()?-1:1,v=M-x)}l.value.style.marginTop="-"+v*z.marginMultiplier()+"px";var Z;
if((Z=z.shouldAnimate)==null?0:Z.call(z)){var H,y;I=DVp(l.value,(H=z.character)==null?void 0:H.call(z),(y=z.previousCharacter)==null?void 0:y.call(z),z.rollUp(),v,b(),z.marginMultiplier())}else{var f;l.value.style.display=((f=z.character)==null?0:f.call(z))?"":"none"}}},"EgLkAe");
return _.N("animated-rolling-character",{el:l,class:"animatedRollingCharacterHost"},_.N(_.E,{cond:b,then:function(){return _.N(Zxu,null)},
else:function(){return _.N(Hxw,{character:z.character})}}))},"k");
y3w.idomCompat=!0;var xVG=_.C("web_enable_sink_animated_rolling_character_and_number")?y3w:Id5,fyM=_.C("web_enable_sink_animated_rolling_character_and_number")?y3w:vfu(Id5),Zxu=_.P(function(){for(var z=[],l=1;l<30;l++)z.push(_.N("div",null,l%10));return _.N(_.xP,null,_.N("div",null,"\u00a0"),z,_.N("div",null,"\u00a0"))},"l"),Hxw=_.P(function(z){var l=z.character;
return _.N(_.xP,null,_.N("div",null,"\u00a0"),_.N(_.E,{cond:function(){return!(l==null?0:l())||_.gf(l==null?void 0:l())},
then:function(){return _.N("div",null,"\u00a0")},
else:function(){return _.N("div",null,l)}}),_.N("div",null,"\u00a0"))},"m");O3Q.componentType=qM;var CaM=_.P(function(z){var l=void 0,I=void 0,b=function(){var M;return((M=z.fontSizeMultiplier)==null?0:M.call(z))?z.heightPx()*z.fontSizeMultiplier():z.heightPx()},v=_.kz(function(){if(!z.numberText())return[];
var M,x,g=((M=z.forceRollUp)==null?void 0:M.call(z))||!I||!((x=z.numberValue)==null?0:x.call(z))||I<z.numberValue(),G,u=z.numberText();M=b();x=!((G=z.shouldAnimate)==null||!G.call(z));G=[];var Z=0,H=0,y=(l?l.replace(/\D/g,"").length:0)-(u?u.replace(/\D/g,"").length:0),f=l?l.split(/(\d)/).filter(Boolean):[];for(u=u.split(/(\d)/).filter(Boolean);y<0;){var R=u[H];G.push({character:R,rollUp:g,marginMultiplier:M,shouldAnimate:x});H++;Im(R)&&y++}for(;Z<y;)R=f[Z],G.push({previousCharacter:R,rollUp:g,marginMultiplier:M,
shouldAnimate:x}),Z++,Im(R)||y++;for(;H<u.length;)y=u[H],R=f[Z],Im(y)===Im(R)?(H++,Z++):Im(y)?(Z++,y=void 0):Im(R)&&(H++,R=void 0),G.push({character:y,previousCharacter:R,rollUp:g,marginMultiplier:M,shouldAnimate:x});l=z.numberText();var F;I=(F=z.numberValue)==null?void 0:F.call(z);return G},void 0,"kWiBv");
return _.N("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return z.numberText()?["height: "+b()+"px;","line-height: "+z.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.N(_.qy,{each:v,keyBy:"INDEX"},function(M){return _.N(fyM,{character:function(){return M().character},
previousCharacter:function(){return M().previousCharacter},
marginMultiplier:function(){return M().marginMultiplier},
rollUp:function(){return M().rollUp},
shouldAnimate:function(){return M().shouldAnimate}})}))},"n");
CaM.idomCompat=!0;_.kyM=_.C("web_enable_sink_animated_rolling_character_and_number")?CaM:vfu(O3Q);var RjM=function(z,l){this.fillAnimation=new Animation(EfY(z),document.timeline);this.strokeAnimation=new Animation(uO5(l),document.timeline)};
RjM.prototype.play=function(){var z,l;(l=(z=this.fillAnimation).play)==null||l.call(z);var I,b;(b=(I=this.strokeAnimation).play)==null||b.call(I)};
RjM.prototype.cancel=function(){var z,l;(l=(z=this.fillAnimation).cancel)==null||l.call(z);var I,b;(b=(I=this.strokeAnimation).cancel)==null||b.call(I)};_.SD=_.P(function(z){var l=z.model;var I=z.pointerDownEvent;var b=z.pointerUpEvent;var v=z.pointerLeaveEvent;var M=z.hovered;z=_.VK("div");var x=_.VK("div"),g=_.VK("div"),G=_.D(_.Br(function(){return(b==null?0:b())||(v==null?0:v())?!1:!(I==null||!I())||!1})),u=G.next().value,Z=G.next().value,H=void 0,y=function(){!H&&g.value&&x.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(H=new RjM(g.value,x.value));
var d;(d=H)==null||d.play()},f=function(){var d;
(d=H)==null||d.cancel()},R=function(){var d;
(d=H)==null||d.cancel()};
_.Te(function(){(b==null?0:b())&&y()},"bg756c");
_.Te(function(){(I==null?0:I())&&f()},"QAes8c");
_.Te(function(){(v==null?0:v())&&R()},"YaFbrc");
G=_.KK(function(){y();Z(!1)});
var F=_.KK(function(){f();Z(!0)}),Y=_.KK(function(){R();
Z(!1)});
_.cb(function(){if(H){var d;(d=H)==null||d.cancel();H=void 0}});
var c={};u=_.m9("yt-spec-touch-feedback-shape",function(){return Z3G(l().color)},function(){return H31(l().thumbnailSize,!!l().isExtended)},(c["yt-spec-touch-feedback-shape--focused"]=function(){return!!l().focused&&!l().disabled},c["yt-spec-touch-feedback-shape--circular"]=function(){return!!l().circular},c["yt-spec-touch-feedback-shape--down"]=u,c["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!l().triggerEvents},c["yt-spec-touch-feedback-shape--hovered"]=function(){return M==
null?void 0:M()},c));
return _.N("yt-touch-feedback-shape",{style:_.XV({"border-radius":"inherit"})},_.N("div",{el:z,class:u,style:_.XV({"margin-top":function(){return l().customTopExtend?"-"+l().customTopExtend+"px":void 0}}),
"on:mousedown":F,"on:mouseup":G,"on:pointerleave":Y,"on:touchstart":F,"on:touchend":G,"aria-hidden":!0},_.N(_.E,{cond:function(){return!!l().hoverEffect},
then:function(){return _.N("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.XV({"border-radius":function(){return l().borderRadius},
background:function(){var d;if(d=l().hoverEffect){for(var V=[],A=_.D((d==null?void 0:d.lightingTechniques)||[]),W=A.next();!W.done;W=A.next())switch(W.value){case 2:var L=W=void 0;V.push("linear-gradient(135deg, "+((W=d)==null?void 0:(L=W.palette)==null?void 0:L.keyLight)+",transparent)")}var lH,Gk;V.push((lH=l().hoverEffect)==null?void 0:(Gk=lH.palette)==null?void 0:Gk.background);d=V.join(", ")}else d=void 0;return d}})})}}),_.N("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.XV({"border-radius":function(){return l().borderRadius},
"border-color":function(){var d,V;return(d=l().touchEffect)==null?void 0:(V=d.palette)==null?void 0:V.background}}),
el:x}),_.N("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.XV({"border-radius":function(){return l().borderRadius},
"background-color":function(){var d,V;return(d=l().touchEffect)==null?void 0:(V=d.palette)==null?void 0:V.background}}),
el:g})))},"o");
_.SD.idomCompat=!0;var mT_={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 dl=_.Cu();dl=dl.toLowerCase();if(_.Np(dl,"android")){var K$u=dl.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);K$u&&parseFloat(K$u[1])<100||dl.match("("+Object.keys(mT_).join("|")+")")};var tl4=_.P(function(z){return _.N(_.E,{cond:z.aTagConfig,then:function(l){return _.N(_.cZ,{aTagConfig:l,disabled:z.disabled,className:z.className,style:z.style,title:z.title,ariaLabel:z.ariaLabel,ariaCurrent:function(){var I,b;return((I=z.toggleable)==null?void 0:I.call(z))&&((b=z.toggled)==null?void 0:b.call(z))},
ref:z.ref},z.children)},
else:function(){return _.N("button",{el:_.xl(z.ref),"on:click":_.KK(function(l){var I;return(I=z.onClick)==null?void 0:I.call(z,l)}),
class:z.className,title:z.title,style:z.style,disabled:z.disabled,"aria-pressed":function(){var l,I;return((l=z.toggleable)==null?0:l.call(z))?!((I=z.toggled)==null||!I.call(z)):void 0},
"aria-label":z.ariaLabel,"aria-disabled":z.visiblyDisabled,"aria-hidden":z.ariaHidden,tabindex:z.tabIndex},z.children)}})},"p"),XpA=_.P(function(z){var l=z.data;
var I=z.hasIconLeading;var b=z.hasIconLeadingTrailing;var v=z.hasIconTrailing;var M=z.iconButton;var x=z.iconClassName;var g=z.secondaryIconClassName;var G=z.icon;var u=z.secondaryIcon;var Z=z.textContentClassName;return _.N(of,{className:"",style:"display: inherit; justify-content: center"},_.N(_.E,{debugInstance:"V4z1Uc",cond:function(){return G&&(I()||b()||(M==null?void 0:M()))},
then:function(){return _.N(of,null,_.N("div",{class:x,"aria-hidden":"true"},G==null?void 0:G()))}}),_.N(_.E,{debugInstance:"ok3btb",
cond:function(){return(l().buttonText||l().animatedTextProps||l().formattedButtonText)&&!(M==null?0:M())},
then:function(){return _.N(of,null,_.N(BWu,{className:Z,iconPosition:function(){return l().iconPosition},
text:function(){return l().buttonText},
oneOffCustomTextWrap:function(){return l().oneOffCustomTextWrap},
formattedButtonText:function(){return l().formattedButtonText},
animatedTextProps:function(){return l().animatedTextProps}}))}}),_.N(_.E,{debugInstance:"DO5Rz",
cond:v,then:function(){return _.N(of,null,_.N("div",{class:x},G==null?void 0:G()))}}),_.N(_.E,{debugInstance:"bnojSc",
cond:b,then:function(){return _.N(of,null,_.N("div",{class:g},u==null?void 0:u()))}}),_.N(_.E,{debugInstance:"HN3kad",
cond:function(){return!l().disabled&&!0},
then:function(){return _.N(_.SD,{model:function(){var H=l();return{color:H.style==="overlay-dark"?4:H.style==="overlay"?H.type==="filled"?4:3:H.type==="filled"||H.style==="call-to-action-inverse"||H.style==="mono-inverse"?2:1}}})}}))},"q"),BWu=_.P(function(z){var l=function(){var I,b;
return((I=z.iconPosition)==null?void 0:I.call(z))==="icon-with-label"||((b=z.oneOffCustomTextWrap)==null?void 0:b.call(z))};
return _.N("div",{class:z.className,"aria-hidden":function(){var I,b,v;return((I=z.ariaHidden)==null?void 0:I.call(z))&&(!((b=z.animatedTextProps)==null||!b.call(z))||!((v=z.formattedButtonText)==null||!v.call(z)))}},_.N(_.Q7,null,_.N(_.is,{when:function(){var I;
return(I=z.animatedTextProps)==null?void 0:I.call(z)}},function(){return _.N(_.kyM,{numberText:function(){return z.animatedTextProps().numberText},
numberValue:function(){return z.animatedTextProps().numberValue},
heightPx:function(){return z.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return z.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return z.animatedTextProps().shouldAnimate},
forceRollUp:function(){return z.animatedTextProps().forceRollUp}})}),_.N(_.is,{when:function(){var I;
return(I=z.formattedButtonText)==null?void 0:I.call(z)}},function(){return _.N(_.Rf,{text:function(){return Object.assign({},z.formattedButtonText(),{lineBreakMode:l()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":z.formattedButtonText().lineBreakMode,
alignment:l()?"TEXT_ALIGNMENT_CENTER":z.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!l()}})}),_.N(_.is,{when:function(){var I,b;
return((I=z.iconPosition)==null?void 0:I.call(z))==="icon-with-label"&&((b=z.text)==null?void 0:b.call(z))}},function(){return _.N(_.Rf,{text:function(){return{content:z.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.N(_.F0,null,function(){return z.text})))},"r"),qCw=_.P(function(z){return _.N(_.E,{debugInstance:"kM7Sgc",
cond:z.hasLabel,then:function(){var l;return _.N("label",{class:z.className},z.children,(l=z.textContent)==null?void 0:l.call(z))},
else:function(){return z.children}})},"s"),of=_.P(function(z){return z.children},"t");var ixw=_.P(function(z){var l=_.xl(),I=_.D(_.Z_(void 0,void 0,"Ug77pc")),b=I.next().value,v=I.next().value;I=_.D(_.Z_(void 0,void 0,"XGf7Zb"));var M=I.next().value,x=I.next().value;I=_.D(_.Z_(0,void 0,"Ygnx7b"));var g=I.next().value,G=I.next().value;I=_.KK(function(){switch(g()){case 1:G(2);break;case 3:var Z,H;(H=(Z=l.value).hidePopover)==null||H.call(Z);G(0);v(void 0);x(void 0)}});
_.Te(function(){if(z.show()){var Z;v((Z=z.children)==null?void 0:Z.call(z));var H;x((H=z.location)==null?void 0:H.call(z));switch(g()){case 0:var y,f;(f=(y=l.value).showPopover)==null||f.call(y);G(1);break;case 3:G(1);var R,F;(F=(R=l.value).hidePopover)==null||F.call(R);var Y,c;(c=(Y=l.value).showPopover)==null||c.call(Y)}}else switch(g()){case 2:G(3);break;case 1:var d,V;(V=(d=l.value).hidePopover)==null||V.call(d);v(void 0);x(void 0);G(0)}},"lOyibf");
_.Sm(function(){});
var u={};return _.N("yt-popover",{popover:"manual",el:l,style:_.XV({left:function(){var Z;return(Z=M())==null?void 0:Z.left},
top:function(){var Z;return(Z=M())==null?void 0:Z.top},
bottom:function(){var Z;return(Z=M())==null?void 0:Z.bottom},
right:function(){var Z;return(Z=M())==null?void 0:Z.right}}),
class:_.m9("ytPopoverComponentHost",z.classNames,(u.ytPopoverComponentHostClosing=function(){return g()===3},u.ytPopoverComponentHostSeeThrough=function(){var Z;
return((Z=z.seeThrough)==null?void 0:Z.call(z))===!0},u)),
"on:animationend":I},b)},"u");var F$u={left:"0px",right:"auto",top:"0px",bottom:"auto"},Qgz=function(){var z=this;this.registerTooltipElement=function(I){var b;z.tooltipElement=(b=I.querySelector("yt-popover"))!=null?b:void 0};
var l=_.D(_.Z_(void 0,void 0,"z4iHWd"));this.state=l.next().value;this.setState=l.next().value;l=_.D(_.Z_(void 0,void 0,"uKDcaf"));this.schedulerJobID=l.next().value;this.setSchedulerJobID=l.next().value},Bht=function(z,l){var I=FV,b=_.ow.addJob(function(){var v=YCj(I,z,l);
I.setState({text:l.text,location:v,anchor:z,offset:l.offset})},4,l.delay);
I.setSchedulerJobID(b)},Xwx=function(){var z=FV,l=z.schedulerJobID();
l&&(_.ow.cancelJob(l),z.setSchedulerJobID(void 0));z.setState(void 0)};
Qgz.prototype.notify=function(z,l){var I;((I=this.state())==null?void 0:I.anchor)===z&&(I=YCj(this,z,l),this.setState({text:l.text,location:I,anchor:z,offset:l.offset}))};
var YCj=function(z,l,I){var b=l.getBoundingClientRect();l=window.innerWidth;var v=window.innerHeight,M=I.location,x=I.offset;I=I.text;if(z=z.tooltipElement){var g=getComputedStyle(z);z=g.font;var G=iO(g.lineHeight),u=iO(g.paddingLeft),Z=iO(g.paddingRight),H=iO(g.paddingTop);g=iO(g.paddingBottom);var y=document.createElement("canvas").getContext("2d");y.font=z;I={width:y.measureText(I).width+u+Z,height:G+H+g}}else I=void 0;z=I;if(!z)return F$u;I=z.width;z=z.height;u=x+z;H=x+I;G=b.top>=u;u=v-b.bottom>=
u;Z=b.left>=H;H=l-b.right>=H;g=M;switch(M){case "top":!G&&u&&(g="bottom");break;case "bottom":!u&&G&&(g="top");break;case "left":!Z&&H&&(g="right");break;case "right":!H&&Z&&(g="left")}switch(g){case "top":M=b.left+b.width/2-I/2;b=b.top-z-x;break;case "bottom":M=b.left+b.width/2-I/2;b=b.bottom+x;break;case "left":M=b.left-I-x;b=b.top+b.height/2-z/2;break;case "right":M=b.right+x;b=b.top+b.height/2-z/2;break;default:M=b.left+b.width/2-I/2,b=b.bottom+x}x=Object.assign({},F$u);M+I>l?(x.right="0px",x.left=
"auto"):(x.left=Math.round(Math.max(0,M)+window.scrollX)+"px",x.right="auto");b+z>v?(x.bottom="0px",x.top="auto"):(x.top=Math.round(Math.max(0,b)+window.scrollY)+"px",x.bottom="auto");return x};var FV;FV=new Qgz;_.TW0=_.P(function(){var z=_.kz(function(){var I;return(I=FV.state())==null?void 0:I.text},void 0,"jgLmfd"),l=_.kz(function(){var I;
return(I=FV.state())==null?void 0:I.location},void 0,"zV1Udb");
return _.N("yt-tooltip",{class:"ytTooltipContainerHost",el:_.xl(FV.registerTooltipElement),"aria-hidden":"true"},_.N(ixw,{classNames:"ytTooltipContainerContent",location:l,show:function(){return!!z()},
seeThrough:!0},z))},"v");var Knu=MM("stamper-context");_.PZ=_.P(function(z){var l=z.data;var I=z.icon;var b=z.iconName;var v=z.animateIcon;var M=z.secondaryIcon;var x=z.secondaryIconName;var g=z.focusedOverride;var G=z.clientOnlyWizTooltipsEnabled;i37();var u=ySt(l),Z=u.size,H=u.style;z=u.disabled;var y=u.onTap,f=u.alignByText,R=u.aTagConfig,F=u.customColors,Y=u.segmentedPosition,c=u.toggled,d=u.toggleable,V=u.accessibilityLabel,A=u.onToggle,W=u.iconPosition,L=u.oneOffCustomTextWrap,lH=u.disableTextEllipsis,Gk=u.disableBackdropFilter,uH=u.tooltipText,
Xt=u.ariaHidden,R1=u.tabIndex,H7=u.buttonText,P7=u.formattedButtonText,o1=u.animatedTextProps,z_=REG(l,I,M,b,x,g,v),dw=z_.type;I=z_.shouldFocus;b=z_.hasIconLeading;v=z_.hasIconTrailing;var Ej=z_.hasIconLeadingTrailing,JG=z_.hasIconOnly;M=z_.hasIconOnly40;var yu=z_.hasIconWithLabel;x=z_.iconButton;var uu=z_.visiblyDisabled;g=z_.overrideSmallSizeIcon;u=z_.iconToRender;z_=z_.secondaryIconToRender;var Y0=_.D(qV7(uH)).next().value,iK={},a_={};return _.N(qCw,{className:_.m9("yt-spec-button-shape-with-label",
(iK["yt-spec-button-shape-with-label--is-overlay"]=function(){return H()==="overlay"||H()==="overlay-dark"},iK)),
hasLabel:yu,textContent:function(){return _.N(BWu,{text:H7,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:W,formattedButtonText:P7,animatedTextProps:o1})}},_.N(tl4,{aTagConfig:R,
className:_.m9("yt-spec-button-shape-next",function(){return mVQ(dw())},function(){return uu()?void 0:KmS(H())},function(){return tUt(Z())},(a_["yt-spec-button-shape-next--disabled"]=uu,a_["yt-spec-button-shape-next--focused"]=I,a_["yt-spec-button-shape-next--icon-trailing"]=v,a_["yt-spec-button-shape-next--icon-leading"]=b,a_["yt-spec-button-shape-next--icon-leading-trailing"]=Ej,a_["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Ej()&&!(H7()||P7())},a_["yt-spec-button-shape-next--icon-button"]=
function(){return JG()||yu()},a_["yt-spec-button-shape-next--icon-only-default"]=M,a_["yt-spec-button-shape-next--align-by-text"]=f,a_["yt-spec-button-shape-next--segmented-start"]=function(){return Y()==="start"},a_["yt-spec-button-shape-next--segmented-end"]=function(){return Y()==="end"},a_["yt-spec-button-shape-next--override-small-size-icon"]=g,a_["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,a_["yt-spec-button-shape-next--disable-text-ellipsis"]=lH,a_["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Gk()&&!_.C("web_disable_backdrop_filter")},a_)),
style:function(){var pu=F();if(pu){var lu=pu.color;var k0=pu.backgroundColor;pu=pu.borderColor;var E8="";lu&&(E8+="color: "+lu+";");k0&&(E8+="background-color: "+k0+";");pu&&(E8+="border-color: "+pu+";");lu={style:E8}}else lu={};return lu.style},
onClick:function(pu){y==null||y(pu);d()&&(A==null||A(pu))},
disabled:z,ariaLabel:V,toggleable:d,toggled:c,title:function(){return(G==null?0:G())||!uH()?"":uH()},
visiblyDisabled:uu,ariaHidden:Xt,tabIndex:R1,ref:function(pu){(G==null?0:G())&&Y0(pu)}},_.N(XpA,{data:l,
hasIconLeading:b,hasIconLeadingTrailing:Ej,hasIconTrailing:v,iconButton:x,icon:u,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:z_})))},"w");
_.PZ.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.h4=_.P(function(z){var l=z.data;var I=z.className;var b=z.style;var v=z.useOutlinedIcon;var M=z.buttonOverrides;var x=z.animatedTextProps;var g=z.onClick;var G=z.target;var u=_.VK("button-view-model",function(d){d.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var V=l().targetId;V&&_.ZgI(_.jC(),V,d);return function(){EV_(_.jC(),d)}}),Z=function(){return l().iconName},H,y=(H=_.pG().resolve(_.MB(_.I2)))==null?void 0:H(),f=function(){var d=l();
var V=M==null?void 0:M(),A=x==null?void 0:x(),W=G==null?void 0:G();if(d){var L=dVQ(d.type);var lH=!!d.title||!!d.titleFormatted;var Gk=!(!d.iconName&&!d.iconImage);lH=Gk&&!lH?"icon-only":Gk?d.iconTrailing||d.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;lH==="icon-only-40"&&(L="text");var uH;Gk=(uH=V==null?void 0:V.state)!=null?uH:ofQ(d.state);var Xt,R1=(Xt=V==null?void 0:V.disabled)!=null?Xt:d.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||d.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.C("web_button_vm_refactor_disabled")){var H7;R1=(H7=V==null?void 0:V.disabled)!=null?H7:Gk==="disabled"}A=A&&A.numberText&&!isNaN(Number(A.numberValue))?A:void 0;Xt=Object;H7=Xt.assign;uH=d.title;var P7=d.titleFormatted,o1=d.accessibilityText,z_=SVS(d.style),dw=PFt(d.buttonSize);W=cS5(d,u,R1,g,W);R1=R1&&!d.onDisabledTap;var Ej=YVQ(d,u),JG=d.customFontColor,yu=d.customBackgroundColor;var uu=d.customBorderColor;var Y0=d.customDarkThemeFontColor,iK=d.customDarkThemeBackgroundColor,a_=d.customDarkThemeBorderColor;
JG=y&&Y0?Y0:JG;yu=y&&iK?iK:yu;uu=y&&a_?a_:uu;uu={color:JG?_.aD(JG):void 0,backgroundColor:yu?_.aD(yu):void 0,borderColor:uu?_.aD(uu):void 0};d=H7.call(Xt,{},{buttonText:uH,formattedButtonText:P7,animatedTextProps:A,accessibilityLabel:o1,style:z_,type:L,state:Gk,size:dw,iconPosition:lH,onTap:W,disabled:R1,aTagConfig:Ej,customColors:uu,tooltipText:d.tooltip},V)}else d={style:"mono",type:"text",state:"active",size:"M"};d.focused=Y();return d},R=function(){return CF7(f(),!!l().iconName)};
z=_.D(_.Z_(!1,void 0,"WVXhrd"));H=z.next().value;var F=z.next().value,Y=H;z=_.KK(function(){var d=_.pG().resolve(_.MB(_.T$));d&&F(d.isKeyBoardInUse());return!1});
H=_.KK(function(){F(!1);return!1});
_.Te(function(){var d,V=_.k(l==null?void 0:(d=l())==null?void 0:d.onVisible,_.Ax);V&&_.nE(V,{disableClickTracking:!0})},"w0lGYc");
var c=_.C("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.N("button-view-model",{el:u,class:_.m9("ytSpecButtonViewModelHost",I),"on:focusin":z,"on:focusout":H},_.N(_.E,{cond:function(){var d;return(l==null?0:(d=l())==null?0:d.iconImage)?{sources:[l().iconImage]}:void 0},
then:function(d){return _.N(_.PZ,{data:f,icon:function(){return _.N(_.pK,{data:d,alt:"",targetWidth:R,targetHeight:R,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:c})},
else:function(){return _.N(_.PZ,{data:f,icon:function(){return _.N(_.qt,{icon:Z,active:function(){return(v==null?0:v())?!1:f().toggled},
animateIcon:function(){var d;return!!(b==null?0:(d=b())==null?0:d.animateIcon)},
size:R})},
clientOnlyWizTooltipsEnabled:c})}}))},"x");
_.h4.idomCompat={callbacks:{onClick:!0}};_.uO(_.P(function(z){return _.N("yt-button-view-model",{id:z.id,class:_.m9(z.scopingClassName,z.classes),icon:function(){var l;return(l=z.icon)==null?void 0:l.call(z)},
"dialog-dismiss":function(){var l;return((l=z.dialogDismiss)==null?0:l.call(z))?"":void 0}},_.N(_.h4,{data:function(){var l;
return(l=z.data)==null?void 0:l.call(z)},
className:function(){var l;return(l=z.className)==null?void 0:l.call(z)},
style:function(){var l;return(l=z.style)==null?void 0:l.call(z)},
useOutlinedIcon:function(){var l;return(l=z.useOutlinedIcon)==null?void 0:l.call(z)},
buttonOverrides:function(){var l;return(l=z.buttonOverrides)==null?void 0:l.call(z)},
animatedTextProps:function(){var l;return(l=z.animatedTextProps)==null?void 0:l.call(z)},
onClick:function(l){var I;return(I=z.onClick)==null?void 0:I.call(z,l)}}))},"y"),"yt-button-view-model",{props:{data:_.mB,
className:_.mB,style:_.mB,useOutlinedIcon:_.mB,buttonOverrides:_.mB,animatedTextProps:_.mB,onClick:_.GH,scopingClassName:_.mB,id:_.mB,icon:_.mB,dialogDismiss:_.mB,classes:_.mB,target:_.GH}});_.uO(_.P(function(z){var l=z.data;var I=z.id;var b=z.className;var v=z.iconName;var M=z.animateIcon;var x=z.secondaryIconName;z=_.D(_.Z_(!1,void 0,"TtJl8"));var g=z.next().value,G=z.next().value,u=function(){var H=_.pG().resolve(_.MB(_.T$));H&&G(H.isKeyBoardInUse())},Z=function(){G(!1)};
z=_.VK("yt-button-shape",function(H){if(_.pG().resolve(_.MB(_.T$)))return H.addEventListener("focusin",u),H.addEventListener("focusout",Z),function(){H.removeEventListener("focusin",u);H.removeEventListener("focusout",Z)}});
return _.N("yt-button-shape",{el:z,id:I,class:b},_.N(_.E,{cond:l,then:function(){return _.N(_.PZ,{data:l,iconName:v,secondaryIconName:x,focusedOverride:g,animateIcon:M})}}))},"z"),"yt-button-shape",{props:{data:_.mB,
id:_.mB,className:_.mB,iconName:_.mB,animateIcon:_.mB,secondaryIconName:_.mB,clientOnlyWizTooltipsEnabled:_.mB,disableUpgrade:_.mB},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var sF=function(){var z=_.q.apply(this,arguments)||this;z.isGoalActive=!0;return z};
_.m(sF,_.q);sF.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
sF.prototype.progressBarChanged=function(){var z=_.Hy(this.hostElement).querySelector("#progress-bar-progress"),l,I,b,v=(b=Number((l=this.creatorGoalState)==null?void 0:l.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?b:0,M;z.style.width=((M=Math.min(v,100))!=null?M:0)+"%"};
sF.prototype.goalStateChanged=function(){var z;this.isGoalActive=((z=this.creatorGoalState)==null?void 0:z.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var l;z={"--yt-progress-bar-color":tuS((l=this.creatorGoalState)==null?void 0:l.progressBarColor)};_.R8(this.hostElement,z)};
sF.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.vP.Object.defineProperties(sF.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var z;return this.isGoalActive&&!((z=this.creatorGoalState)==null||!z.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.creatorGoalState)==null?0:z.endTimestampMs){var l;z=Number((l=this.creatorGoalState)==null?void 0:l.endTimestampMs)/1E3;return{seconds:String(z)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.creatorGoalState)==null?0:z.themedTargetImage){var l;z=_.k((l=this.creatorGoalState)==null?void 0:l.themedTargetImage,QVA);return this.isAppDarkTheme()?z==null?void 0:z.imageDark:z==null?void 0:z.imageLight}}}});
_.vP.Object.defineProperties(sF,{template:{configurable:!0,enumerable:!0,get:function(){return DT0()}}});
sF.prototype.goalStateChanged=sF.prototype.goalStateChanged;sF.prototype.progressBarChanged=sF.prototype.progressBarChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],sF.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);
_.e([_.X({selectorArgs:["data.creatorGoalEntityKey"],selector:function(z,l){return _.Cc(z.entities,"creatorGoalEntity",l)}}),
_.w("design:type",Object)],sF.prototype,"creatorGoalState",void 0);_.e([_.X(),_.w("design:type",Object)],sF.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],sF.prototype,"isGoalActive",void 0);_.e([_.B("creatorGoalState","isGoalActive"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sF.prototype,"shouldShowCountdown",null);_.e([_.B("creatorGoalState"),_.w("design:type",Object),_.w("design:paramtypes",[])],sF.prototype,"endTimestamp",null);
_.e([_.B("creatorGoalState"),_.w("design:type",Object),_.w("design:paramtypes",[])],sF.prototype,"targetIconThemedImage",null);_.e([_.By("creatorGoalState.currentGoalCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sF.prototype,"progressBarChanged",null);_.e([_.By("creatorGoalState.creatorGoalState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sF.prototype,"goalStateChanged",null);
_.e([_.Wy({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],sF);_.r(sF,"yt-creator-goal-progress-flow-view-model",function(){return DT0()},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var c3A;var SCM;var rl=function(){return _.q.apply(this,arguments)||this};
_.m(rl,_.q);rl.prototype.attached=function(){var z,l,I;if(this==null?0:(z=this.data)==null?0:(l=z.pdgPurchasedBumperLoggingDirectives)==null?0:(I=l.loggingDirectives)==null?0:I.trackingParams){var b,v,M;rSt(this==null?void 0:(b=this.data)==null?void 0:(v=b.pdgPurchasedBumperLoggingDirectives)==null?void 0:(M=v.loggingDirectives)==null?void 0:M.trackingParams)}};
rl.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],rl.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rl.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],rl);
_.r(rl,"yt-live-chat-item-bumper-view-model",function(){if(SCM===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;c3A===void 0&&(c3A=document.createElement("template"));var b=c3A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);SCM=z}z=SCM;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var dTu;var opM;_.pY=function(z,l){this.data=z;this.actions=l;this.data=z;this.actions=l};
_.jO=function(){};_.$$={};_.$$.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(z,l){$VQ(this.hostElement,z,l)},
getNavigationEndpointPopupAction:function(z){return eEp(z,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(z,l){wwQ(this.hostElement,z,l,this.openPopupConfig)}};var zlf=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.eD={};
_.eD.YtEndpointBehavior=[_.$$.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.sZ("openPopupConfig");(this.useClickHandler=_.rr("useClickHandler",!1))?this.hostElement.addEventListener("click",m2(this,this.onEndpointClick_)):(oK(this.hostElement,"tap",m2(this,this.onEndpointTap_)),oK(this.hostElement,"touchend",m2(this,this.onEndpointTouchEnd_)));oK(this.hostElement,"touchstart",m2(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
m2(this,this.onEndpointTapStart_))},
onEndpointClick_:function(z){nfH(this.hostElement,z,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(z){var l=this.hostElement,I=this.openPopupConfig,b=this.disableCommandHandlerOverride;b=b===void 0?!1:b;var v=ASH(z);if(v){v.href&&JY(v.href);var M=z.detail;var x=M.sourceEvent;M=M.preventer;x=x.button!==void 0?x.button===0&&!Yl(x):M?!Yl(M):!0;v.data&&x&&WmQ(l,v,z,I,b)}},
onEndpointTouchEnd_:function(z){Yl(z)||ASH(z)&&z.preventDefault()},
onEndpointTapStart_:function(z){joG(z)}}];_.wl={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(z){for(var l=_.WW.getInstance(),I=_.D(Object.keys(z)),b=I.next();!b.done;b=I.next()){var v=b.value;b=z[v];if(this&&this[b]){var M=l.actionRoutingMap.get(v);M||(M=new Map,l.actionRoutingMap.set(v,M));l.registerActionHandler(this,v,this[b].bind(this),M)}else v=Error("md"),v.params=b,_.$P(v)}},
unregisterActionMap:function(z){_.UN(_.WW.getInstance(),z,this)}}]};var SO=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_"+(_.C("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.C("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.C("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:_.C("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:_.C("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:_.C("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var cr;var o2=new Map;var EG1=window.matchMedia("(forced-colors: active)").matches;var Pau;var hjn;var sgj=new _.yH("LOTTIE_LOADER_TOKEN");_.A4=_.P(function(z){var l=z.data;var I=z.className;var b=z.animationName;var v=z.animationRef;var M=z.elRefForInterop;var x=_.z1("lottie-component"),g;_.cb(function(){var u;return void((u=g)==null?void 0:u.destroy())});
var G;_.Te(function(){var u=_.d2(b);if(u!==G){G=u;var Z=Object.assign({},{animationName:u,animationRef:_.d2(v)},_.d2(l));try{_.pG().resolve(sgj)().then(function(f){var R;(R=g)==null||R.destroy();var F,Y;R=(Y=M==null?void 0:(F=M())==null?void 0:F.value)!=null?Y:x.value;F=Z.animationRef;Y=Z.listeners;f=f.loadAnimation(Object.assign({},{container:R},Z.animationConfig));F&&(F.lottieEl=f);if(Y)for(R=_.D(Object.entries(Y)),F=R.next();!F.done;F=R.next())Y=_.D(F.value),F=Y.next().value,(Y=Y.next().value)&&
f.addEventListener(F,Y);g=f})}catch(f){u=f;
var H="LottieComponent error.";u.message&&(H+=" Original description: "+u.message);_.hK(u,H);_.PW(u);var y;((y=Z.listeners)==null?0:y.error)&&Z.listeners.error(u)}}},"nrJISd");
return _.N(Vnp,{cond:function(){return!(M==null?0:M())},
then:function(){return _.N("lottie-component",{class:_.m9("ytLottieComponentHost",I),el:x})}})},"A");_.uO(_.P(function(z){return _.N("ytd-lottie-player",{id:z.id,hidden:z.hidden,class:z.className,"aria-label":z.ariaLabel,style:"display: block;"},_.N(_.A4,{data:z.data,animationName:function(){var l;return((l=z.data().animationConfig)==null?void 0:l.name)||""},
animationRef:function(){return z.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.mB,
id:_.mB,hidden:_.mB,className:_.mB,ariaLabel:_.mB}});var WZ=function(){var z=_.q.apply(this,arguments)||this;z.animationRef={};z.delhiIconsEnabled=_.C("enable_web_delhi_icons");return z};
_.m(WZ,_.q);_.p=WZ.prototype;
_.p.handlePropertyChange=function(){var z=this.animatedIcon,l=this.active,I=this.isDarkTheme;if(z){var b=this.previousActive!==l;this.previousActive=l;this.animationRef.lottieEl?b&&this.toggleAnimation(l,z.totalFrames):l?this.initializeAnimationAsToggled(z.lottiePlayerProps,z.totalFrames):this.initializeAnimationAsUntoggled(z.lottiePlayerProps);z.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=z.type;this.lottiePlayerProps=this.computeLottiePlayerProps(z,I)}};
_.p.computeLottiePlayerProps=function(z,l){var I=this.deepCloneLottiePlayerProps(z);l?(l=z.nameDarkTheme,z=z.pathDarkTheme):(l=z.name,z=z.path);I.animationConfig.name=l;(l=o2.get(z))?I.animationConfig.animationData=l:I.animationConfig.path=z;return I};
_.p.initializeAnimationAsToggled=function(z,l){z.animationConfig.initialSegment=[l-1,l]};
_.p.initializeAnimationAsUntoggled=function(z){z.animationConfig.initialSegment=void 0};
_.p.toggleAnimation=function(z,l){if(z){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,l],!0)}else{var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,1],!0)}};
_.p.deepCloneLottiePlayerProps=function(z){var l=Object.assign({},z.lottiePlayerProps.animationConfig);z=Object.assign({},z.lottiePlayerProps);z.animationConfig=l;return z};
WZ.prototype.handlePropertyChange=WZ.prototype.handlePropertyChange;_.e([_.X(),_.w("design:type",Object)],WZ.prototype,"animatedIcon",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],WZ.prototype,"active",void 0);_.e([_.X(),_.w("design:type",Boolean)],WZ.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],WZ.prototype,"animatedIconType",void 0);_.e([_.X(),_.w("design:type",Boolean)],WZ.prototype,"previousActive",void 0);
_.e([_.X(),_.w("design:type",Object)],WZ.prototype,"lottiePlayerProps",void 0);_.e([_.X(),_.w("design:type",Object)],WZ.prototype,"animationRef",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],WZ.prototype,"delhiIconsEnabled",void 0);_.e([_.By("animatedIcon","active","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WZ.prototype,"handlePropertyChange",null);_.e([_.Wy({is:"yt-animated-icon",disableElementRegistration:!0})],WZ);
_.r(WZ,"yt-animated-icon",function(){if(hjn===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Pau===void 0&&(Pau=document.createElement("template"));var b=Pau;I.call(l,b.content.cloneNode(!0),z.content.firstChild);hjn=z}z=hjn;return z},{mode:2});var r3_;var $T_;var C$Y=_.P(function(z){var l=_.z1("span"),I=dr(function(){return{value:null,cancelled:!1}});
_.cb(function(){I.cancelled=!0});
var b=_.kz(z.data,{equals:function(v,M){return v.iconName===M.iconName&&v.iconStyle===M.iconStyle&&v.iconSize===M.iconSize&&v.iconSetName===M.iconSetName&&v.iconSelected===M.iconSelected}},"AoOoyf");
_.Te(function(){var v,M=(v=z.options)==null?void 0:v.call(z);f3Y(l,I,b(),M)},"Tie9e");
return _.N("span",{class:"yt-icon-shape",el:l})},"C");
C$Y.idomCompat=!0;var yB$=["youtube_fill","youtube_outline"];var ejj=new _.Wo({type:"iconset",value:void 0}),n1=function(){var z=_.q.apply(this,arguments)||this;z.isDarkTheme=document.documentElement.hasAttribute("dark");z.iconName="";z.iconsetName="yt-icons";z.iconset=null;z.missingIconSet=!1;z.iconType=null;z.iconShapeDataSignal=_.Z_(void 0,void 0,"b0v7Ac");z.renderingOptionsSignal=_.Z_({iconWidth:"100%",iconHeight:"100%",iconFilter:z.iconFilter},void 0,"Ls6l3e");z.wizHasRendered=!1;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(n1,_.q);n1.prototype.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&(this.isDarkTheme=z)};
n1.prototype.handlePropertyChange=function(){var z=this,l,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c;return _.O(function(d){switch(d.nextAddress){case 1:if(l=!z.icon&&!z.iconName||!z.isAttached)return d.return();I=z;b=I.icon;v=I.size;M=I.defaultToFilled;x=I.active;g=I.targetContainer;z.toggleContainerClass(g);_.C("kevlar_use_wil_icons")&&b&&(G=VeY(b),z.iconType=G.length?G[1]:null);if(b){d.jumpTo(2);break}z.iconsetName="";z.iconName="";return d.yield(z.renderIcon(g,b),3);case 3:return d.return();case 2:u=wp4(b);
Z=VeY(u);Z.length&&(z.iconsetName=Z[0],z.iconName=Z[1]);if(!_.C("kevlar_use_wil_icons")){d.jumpTo(4);break}H=n1;y=A3u;f=z.iconType;R=z.active;F=z.defaultToFilled;Y=z.size;c=z.iconsetName;return d.yield(W$u(),6);case 6:return d.yield(y.call(H,f,R,F,Y,c,d.yieldResult),5);case 5:z.iconShapeData=d.yieldResult;case 4:if(z.shouldRenderIconShape(g)){d.jumpTo(7);break}return d.yield(z.determineIconSet(u,x,M,v,g),7);case 7:return d.yield(z.renderIcon(g,b),0)}})};
n1.prototype.toggleContainerClass=function(z){z?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var wp4=function(z){return!_.C("default_to_innertube_icon")||z.indexOf(":")>0?z:_.Re(z)};
_.p=n1.prototype;_.p.determineIconSet=function(z,l,I,b){var v=this;return _.O(function(M){return M.nextAddress==1?_.C("kevlar_system_icons")||_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?M.yield(v.switchToYtSysIconset(z,l,I,b),3):M.jumpTo(2):M.nextAddress!=2?M.return():M.yield(v.useYtSysIconsetForMissingIcons(z,l,I,b),0)})};
_.p.switchToYtSysIconset=function(z,l,I,b){var v=this,M,x,g,G,u,Z,H;return _.O(function(y){switch(y.nextAddress){case 1:if(!z||v.iconsetName!=="yt-icons"&&v.iconsetName!=="yt-sys-icons"){y.jumpTo(0);break}M=VeY(z);x=M[1];x=_.DSp(x);_.C("enable_polymer_icons_replace_underscores_dash")&&x.includes("_filled")&&(x=x.replace(/_filled/g,"-filled"));return y.yield(kC(x,!0),3);case 3:return g=y.yieldResult,y.yield(kC(x,!1),4);case 4:if((G=y.yieldResult)||l&&g)v.iconsetName="yt-sys-icons";v.iconName=v.getIconName(x,
l,I,G,g);if(b===24){y.jumpTo(0);break}u="yt-sys-icons"+b+":"+v.iconName;return y.yield(kC(u,!1,!0),6);case 6:return Z=y.yieldResult,y.yield(kC(u,!0,!0),7);case 7:H=y.yieldResult;v.iconName=v.getIconName(x,l,I,Z,H);if(!l&&Z||l&&H)v.iconsetName="yt-sys-icons"+b;_.qe(y)}})};
_.p.getIconName=function(z,l,I,b,v){z.includes("-filled")&&(z=z.replace("-filled",""));return v&&(l||I)?z+"-filled":z};
_.p.useYtSysIconsetForMissingIcons=function(z,l,I,b){var v=this,M,x;return _.O(function(g){if(g.nextAddress==1)return v.iconsetName!=="yt-icons"?g.jumpTo(0):g.yield(kC(v.iconName,!1,!1,!0),3);if(g.nextAddress!=4)return M=g.yieldResult,g.yield(kC(v.iconName,!1),4);x=g.yieldResult;if(M||!x)return g.jumpTo(0);v.iconsetName="yt-sys-icons";return g.yield(v.switchToYtSysIconset(z,l,I,b),0)})};
_.p.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var W$u=function(){return _.O(function(z){try{return z.return(_.pG().resolve(_.mh))}catch(l){return z.return(new Promise(function(I){_.uV().parkOrScheduleJob(function(){I(_.pG().resolve(_.mh))},2,"ci")}))}})},A3u=function(z,l,I,b,v,M){b=b===void 0?24:b;
if(z){z=z.toLowerCase();var x=z.endsWith("_filled")||z.endsWith("-filled");l={iconName:z,iconStyle:(l===void 0?0:l)||(I===void 0?0:I)||x?"youtube_fill":"youtube_outline",iconSize:b,iconSetName:v===void 0?"yt-icons":v};I=!!M.resolveIcon(l);I||(l.iconSize=void 0,I=!!M.resolveIcon(l));!I&&x&&(l.iconName=z.substring(0,z.length-7),l.iconSize=b,I=!!M.resolveIcon(l),I||(l.iconSize=void 0,I=!!M.resolveIcon(l)));I||(l.iconStyle=void 0,I=!!M.resolveIcon(l));I||_.PW(new _.qB("Icon not supported",{iconName:l.iconName,
iconStyle:l.iconStyle,iconSize:l.iconSize,iconType:z}));return I?l:void 0}};
_.p=n1.prototype;_.p.shouldRenderIconShape=function(z){if(!_.C("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;z=this.getContainer(z);return!ujH(z,this.icon)};
_.p.renderIcon=function(z,l){var I=this,b,v,M,x,g,G,u,Z;return _.O(function(H){switch(H.nextAddress){case 1:if(l&&I.icon!==l)return H.return();b=I.getContainer(z);v=ujH(b,I.icon);if(I.shouldRenderIconShape(z)&&I.iconType)return I.applyIconShape(v,b),H.return();I.removeIconShape();if(!b)return H.return();I.iconName===""&&I.iconset&&b&&(I.removeStaticIcon(I.iconset,b),v&&I.removeAnimatedIcon(b));if(I.iconName===""&&I.iconset||!I.iconsetName||!ejj)return H.return();I.iconset=ejj.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.KJ(I,I.onIconsetAdded)),H.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.KJ(I,I.onIconsetAdded)));x=(M=v||I.isAnimatedIcon?Gm$(I.icon):void 0)&&!M.lazyLoad;G=M&&((g=M)==null?void 0:g.lazyLoad)&&(M.lottiePlayerProps.animationConfig.animationData?!0:o2.get(I.isDarkTheme?M.pathDarkTheme:M.path)?!0:!1);if(x||G)return I.applyAnimatedIcon(b,M,I.iconset),H.return();if(G||
(u=M)==null||!u.lazyLoad){H.jumpTo(2);break}Z=HhY(M,I.isDarkTheme);I.applyStaticIcon(I.iconset,b,I.iconName,z,v);return H.yield(Z,3);case 3:return H.yield(I.renderIcon(I.targetContainer,I.icon),4);case 4:return H.return();case 2:I.applyStaticIcon(I.iconset,b,I.iconName,z,v),_.qe(H)}})};
_.p.getContainer=function(z){var l,I=(l=CPY(this.hostElement))==null?void 0:l.host;l=!!I&&!!I.polymerController;if(!z||l)return z?this.getTargetContainer(z,I):this.hostElement};
_.p.getTargetContainer=function(z,l){var I=_.Hy(l).querySelector("#"+z);I||(z=new _.qB("yt-icon container missing",l.is,z),_.dE(z));return I};
_.p.applyStaticIcon=function(z,l,I,b,v){v&&this.removeAnimatedIcon(l);this.removeIconShape();v=v&&!!this.iconType&&!!this.iconShapeData&&_.C("kevlar_use_wil_icons");try{v?this.applyIconShape(!1,l):z.applyIcon(l,I)}catch(M){this.handleError(M,b,l)}};
_.p.applyIconShape=function(z,l){this.iconset&&l&&(this.removeStaticIcon(this.iconset,l),z&&this.removeAnimatedIcon(l));z={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var I=_.D(this.iconShapeDataSignal);l=I.next().value;I=I.next().value;var b=_.D(this.renderingOptionsSignal),v=b.next().value;b=b.next().value;I(this.iconShapeData);b(z);if(!this.wizHasRendered)for(this.wizHasRendered=!0,z=_.D(km$(l,v)).next().value;z.firstChild;)_.Hy(this.hostElement).appendChild(z.firstChild)};
_.p.removeIconShape=function(){if(_.C("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.p.removeStaticIcon=function(z,l){z.removeIcon(l)};
_.p.applyAnimatedIcon=function(z,l,I){this.removeStaticIcon(I,z);this.removeIconShape();var b;I=this.animatedIconElement&&((b=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:b.type)===l.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=l;var v;((v=this.animatedIconElement)==null?void 0:v.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(z),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=l,this.animatedIconElement.polymerController.active=this.active,_.C("delhi_modern_web_player_icons")?(l=N87(z,this.icon)&&z.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=l?l.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.C("kevlar_use_wil_icons")?
z.insertBefore(this.animatedIconElement,z.childNodes[0]):(z=_.Hy(z),z.insertBefore(this.animatedIconElement,z.childNodes[0]))};
_.p.removeAnimatedIcon=function(z){_.C("kevlar_use_wil_icons")?this.animatedIconElement&&z.contains(this.animatedIconElement)&&z.removeChild(this.animatedIconElement):(z=_.Hy(z),this.animatedIconElement&&z.contains(this.animatedIconElement)&&z.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.p.handleError=function(z,l,I){_.hK(z,this.iconName,l,I);l=ujH(I,this.icon);var b=!1;window.location.href.includes("JpymaW6Lh2w")?b=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.hK(z,I),I==="YT-ICON"&&z.name==="NotFoundError"?b=!0:z.name==="NotFoundError"&&l&&(b=!0));b?_.PW(z):_.dE(z)};
_.vP.Object.defineProperties(n1,{template:{configurable:!0,enumerable:!0,get:function(){if($T_===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;
r3_===void 0&&(r3_=document.createElement("template"));var b=r3_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);$T_=z}z=$T_;return z}}});
n1.prototype.handlePropertyChange=n1.prototype.handlePropertyChange;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],n1.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",String)],n1.prototype,"icon",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],n1.prototype,"active",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],n1.prototype,"defaultToFilled",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],n1.prototype,"isAnimatedIcon",void 0);
_.e([_.X({value:24}),_.w("design:type",Number)],n1.prototype,"size",void 0);_.e([_.X({value:""}),_.w("design:type",String)],n1.prototype,"targetContainer",void 0);_.e([_.X(),_.w("design:type",Object)],n1.prototype,"animatedIconElement",void 0);_.e([_.X(),_.w("design:type",Object)],n1.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],n1.prototype,"ariaHidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],n1.prototype,"ariaLabel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],n1.prototype,"role",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],n1.prototype,"tabindex",void 0);_.e([_.X(),_.w("design:type",String)],n1.prototype,"style",void 0);_.e([_.X(),_.w("design:type",String)],n1.prototype,"iconFilter",void 0);
_.e([_.By("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],n1.prototype,"handlePropertyChange",null);_.e([_.Wy({is:"yt-icon",noInjection:!0})],n1);var RlG="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),KR1=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var np0={};np0.YtPlaintextBehavior=[_.rB,{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(z){z.preventDefault();z=z.clipboardData.getData("text/plain");document.execCommand("insertText",!1,z)},
preventRichTextFormatting_:function(z){_.kx&&(z=z.detail.keyboardEvent,z.stopImmediatePropagation(),z.preventDefault())}}];var L$0;var UTj;var L1=function(){var z=_.q.apply(this,arguments)||this;z.ignoreShadyDom=!1;z.hasChange_=!1;z.hasSetTitle_=!1;z.useIOObserverForVisibilityLogging_=_.C("kevlar_use_vimio_behavior")&&_.sZ("INNERTUBE_CLIENT_NAME")==="WEB";z.ytFormattedStringObserverHandlerKeys_=void 0;return z};
_.m(L1,_.q);_.p=L1.prototype;_.p.created=function(){this.useIOObserverForVisibilityLogging_=_.C("kevlar_use_vimio_behavior")&&_.sZ("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.p.ready=function(){_.sZ("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_()};
_.p.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.p.detached=function(){this.unobserveIOObservers_()};
_.p.clearContents_=function(){for(var z=this.getRoot(),l=z.lastChild;l&&l.tagName!=="STYLE";){try{z.removeChild(l)}catch(I){break}l=z.lastChild}};
_.p.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var z=_.D(this.ytFormattedStringObserverHandlerKeys_),l=z.next();!l.done;l=z.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(l.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.p.resetForAttributedString=function(){var z=this.getRoot();!z.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),z.appendChild(this.ytAttributedStringElementRef))};
_.p.resetForFormattedString=function(){var z=this.getRoot(),l=z.querySelector("yt-attributed-string");l&&(this.ytAttributedStringElementRef=z.removeChild(l))};
_.p.textChanged=function(){this.textChanged_(this.text)};
_.p.textChanged_=function(z){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!z||!z.runs&&!z.simpleText;if(_.C("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var l=this.hostElement.firstChild;l&&l.nodeName==="FONT";){var I=l;l=l.nextSibling;this.hostElement.removeChild(I)}l=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=z.simpleText;var b;!I&&((b=z.runs)==null?void 0:b.length)===1&&this.isSimpleString_(z.runs[0])&&(I=z.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.sZ("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{l.textContent=I}catch(v){}l.textContent||(this.isEmpty=!0)}else z=z.runs,I!==void 0&&(z=[{text:I}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),z&&this.updateText_(z),
l.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.p.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)};
_.p.computeAriaLabel_=function(z){return z};
_.p.computeEllipsisTruncateStyling=function(z,l){return z&&!l};
_.p.computeUseAttributedString=function(z){return _.C("web_replace_formatted_with_attributed_string")&&r9Q(z)&&!this.disableAttributedString&&!this.enableContentEditable};
_.p.setNodeStyle_=function(z,l){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.C("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?l.removeAttribute("dir"):l.setAttribute("dir","auto");l.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");l.style.color="";var I=null;this.noStyles||(z.bold&&(l.classList.add("bold"),I="bold"),z.deemphasize&&(l.classList.add("deemphasize"),I="deemphasize"),z.italics&&l.classList.add("italic"),
z.strikethrough&&l.classList.add("strikethrough"),z.errorUnderline&&(l.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),z.bracket&&l.classList.add("bracket"),z.textColor&&(l.style.color=_.Ur(z.textColor)));I!==l.getAttribute("style-target")&&(I?l.setAttribute("style-target",I):l.removeAttribute("style-target"))};
_.p.setUpVisibilityLogging_=function(z,l){var I=this;this.setNodeTrackingParams_(z,l);var b;((b=l.data)==null?0:b.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(z=this.ytRendererBehavior.visibilityObserver.observe(l,function(v){var M=I.ytRendererBehavior.getVisibilityLogger();M&&M.reportShown(v)},this.ytRendererBehavior.visibilityOptionVisible_),l=this.ytRendererBehavior.visibilityObserver.observe(l,function(v){var M=I.ytRendererBehavior.getVisibilityLogger();
M&&M.reportHidden(v)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(z),this.ytFormattedStringObserverHandlerKeys_.push(l))};
_.p.setNodeTrackingParams_=function(z,l){l.data||(l.data={});if((z=z.loggingDirectives?z.loggingDirectives.trackingParams:null)||l.data.trackingParams)l.data.trackingParams=z};
_.p.computeHasLinkOnly_=function(z){return!(!z||z.length!==1||this.noEndpoints||!z[0].navigationEndpoint)};
_.p.getRoot=function(){var z=this.buildScopeDomOptions();return this.enableContentEditable?_.Hy(_.Hy(this.hostElement,z).querySelector("[contenteditable]")):_.Hy(this.hostElement,z)};
_.p.fixContenteditableScope=function(){var z=function(l){l&&(l.nodeType===1&&l.classList&&(l.classList.add("style-scope"),l.classList.add("yt-formatted-string")),l.childNodes&&l.childNodes.forEach(function(I){z(I)}))};
z(this.getRoot())};
_.p.updateText_=function(z){for(var l=z.length,I=this.getRoot(),b=I.firstChild;b&&b.nodeName==="STYLE";)b=b.nextSibling;for(var v=0;v<l&&b;){var M=z[v],x=_.C("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)if(b.nodeName==="#text"){b.textContent!=x&&(b.textContent=x);v++;b=b.nextSibling;continue}else break;if(_.k(M,eZ))break;else if(!this.noEndpoints&&M.navigationEndpoint){if(b.nodeName!=="A")break;this.setDataOnAnchor_(b,
M.navigationEndpoint)}else if(b.nodeName!=="SPAN")break;this.setNodeStyle_(M,b);this.setUpVisibilityLogging_(M,b);b.textContent!=x&&(b.textContent=x);v++;b=b.nextSibling}if(b)for(M=I.lastChild,b=v?b.previousSibling:null;M&&M!=b;){try{I.removeChild(M)}catch(g){break}M=I.lastChild}v!==l&&this.addTextNodes_(z,v)};
_.p.addTextNodes_=function(z,l){for(var I=document.createDocumentFragment(),b=z.length;l<b;l++){var v=z[l],M=_.C("remove_cr_char")&&v.text?v.text.replace("\r",""):v.text;if(this.isSimpleString_(v)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(M));else{var x=_.k(v,eZ);if(x){if(x.image){var g=document.createElement("img");x.isCustomEmoji||g.classList.add("small-emoji");g.classList.add("emoji");x.isCustomEmoji&&(g.dataset.emojiId=x.emojiId);g.src=_.ZY(x.image.thumbnails,
this.emojiSize);(v=this.get("image.accessibility.accessibilityData.label",x))?g.alt=v:x.shortcuts&&x.shortcuts.length>0?g.alt=x.shortcuts[0]:x.emojiId&&(g.alt=x.emojiId);I.appendChild(g);this.hasEmoji=!0}}else!this.noEndpoints&&v.navigationEndpoint?(g=document.createElement("a"),g.classList.add("yt-simple-endpoint"),g.setAttribute("spellcheck","false"),this.setDataOnAnchor_(g,v.navigationEndpoint)):g=document.createElement("span"),this.setNodeStyle_(v,g),this.setUpVisibilityLogging_(v,g),g.appendChild(document.createTextNode(M)),
I.appendChild(g)}}this.getRoot().appendChild(I)};
_.p.isSimpleString_=function(z){return(this.noEndpoints||!z.navigationEndpoint)&&!_.k(z,eZ)&&(this.noStyles||!(z.bold||z.deemphasize||z.italics||z.strikethrough||z.errorUnderline||z.bracket||z.textColor))&&!z.loggingDirectives};
_.p.getRawText=function(){return _.ID(this.text)};
_.p.getFirstRunText=function(){var z;if(((z=this.text)==null?0:z.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.p.setFirstRunText=function(z){var l;((l=this.text)==null?0:l.runs)&&this.text.runs[0]&&(this.text.runs[0].text=z,this.textChanged_(this.text))};
_.p.setDataOnAnchor_=function(z,l){var I=this;!_.C("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(l)||this.isSignalServiceEndpoint_(l)?(z.onclick=this.serviceEndpointHandler_(l),nD(z,"#")):ey$({text:this.text,command:l},function(){l61(z,l,I.target)})};
_.p.isServiceEndpoint_=function(z){var l;return!((l=_.k(z==null?void 0:z.commandMetadata,_.kB))==null||!l.sendPost)};
_.p.isSignalServiceEndpoint_=function(z){return!!_.k(z,_.CM)};
_.p.serviceEndpointHandler_=function(z){var l=this;return function(I){_.uJ(l.hostElement,[z]);I.preventDefault()}};
_.p.overrideAriaLabelChanged_=function(){var z=this.getRoot();this.enableContentEditable&&z&&z.setAttribute("aria-label",this.overrideAriaLabel)};
_.p.enableContentEditableChanged_=function(){var z=this,l=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),l=_.Hy(this.hostElement,l),!l.lastChild||l.lastChild instanceof HTMLElement&&l.lastChild.id!=="contenteditable-root"){var I=document.createElement("div");I.id="contenteditable-root";I.setAttribute("contenteditable","true");I.setAttribute("dir","auto");I.onfocus=function(){z.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
l.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.y5(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.Hy(this.hostElement,l).removeChild(I)};
_.p.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.p.getNodesForVisibilityLogging_=function(){return _.E9(this.getRoot().childNodes,function(z){var l;return!((l=z.data)==null||!l.trackingParams)})};
_.p.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.p.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var z=this.ytRendererBehavior.getVisibilityLogger();z&&this.getNodesForVisibilityLogging_().forEach(function(l){z.reportShown(l)})}};
_.p.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var z=this.ytRendererBehavior.getVisibilityLogger();z&&this.getNodesForVisibilityLogging_().forEach(function(l){z.reportHidden(l)})}};
_.vP.Object.defineProperties(L1.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.C("enable_mixed_direction_formatted_strings")}}});
L1.prototype.enableContentEditableChanged_=L1.prototype.enableContentEditableChanged_;L1.prototype.overrideAriaLabelChanged_=L1.prototype.overrideAriaLabelChanged_;L1.prototype.ellipsisTruncateChanged_=L1.prototype.ellipsisTruncateChanged_;L1.prototype.textChanged=L1.prototype.textChanged;_.e([_.t(np0.YtPlaintextBehavior),_.w("design:type",Object)],L1.prototype,"ytPlaintextBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],L1.prototype,"text",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"noEndpoints",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"noStyles",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],L1.prototype,"isDarkTheme",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],L1.prototype,"splitLines",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],L1.prototype,"forceDefaultStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],L1.prototype,"ellipsisTruncate",void 0);_.e([_.X(),_.w("design:type",Object)],L1.prototype,"ignoreShadyDom",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.w("design:type",Boolean)],L1.prototype,"ellipsisTruncateStyling",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.w("design:type",String)],L1.prototype,"ariaLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],L1.prototype,"isEmpty",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.w("design:type",Boolean)],L1.prototype,"hasLinkOnly_",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"hasEmoji",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"disableAttributedString",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"isOverlay",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"linkInheritColor",void 0);
_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"noPreWrap",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"userInput",void 0);_.e([_.X({value:16}),_.w("design:type",Number)],L1.prototype,"emojiSize",void 0);_.e([_.X(),_.w("design:type",String)],L1.prototype,"target",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"enableContentEditable",void 0);_.e([_.X(),_.w("design:type",String)],L1.prototype,"overrideAriaLabel",void 0);
_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"respectHtmlDir",void 0);_.e([_.X(),_.w("design:type",Boolean)],L1.prototype,"respectLangDir",void 0);_.e([_.B("plaintextOnly"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],L1.prototype,"useMixedDirectionFormattedStrings",null);_.e([_.X({computed:"computeUseAttributedString(text)"}),_.w("design:type",Boolean)],L1.prototype,"useYtAttributedString",void 0);
_.e([_.By("text"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L1.prototype,"textChanged",null);_.e([_.By("ellipsisTruncate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L1.prototype,"ellipsisTruncateChanged_",null);_.e([_.By("overrideAriaLabel"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L1.prototype,"overrideAriaLabelChanged_",null);
_.e([_.By("enableContentEditable"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L1.prototype,"enableContentEditableChanged_",null);_.e([_.Wy({is:"yt-formatted-string",disableElementRegistration:!0})],L1);
_.r(L1,"yt-formatted-string",function(){if(UTj===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;L$0===void 0&&(L$0=document.createElement("template"));var b=L$0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);UTj=z}z=UTj;return z});var ay_;var VlM;var jgA;var J3p;var UF=function(){var z=_.q.apply(this,arguments)||this;z.focused=!1;z.disabled=!1;z.isOverlay=!1;return z};
_.m(UF,_.q);UF.prototype.triggerDown=function(){if(!this.disabled){_.fJ(this.hostElement,"down",!0);var z;(z=this.currentAnimation)==null||z.cancel()}};
UF.prototype.triggerUp=function(){if(!this.disabled){_.fJ(this.hostElement,"down",!1);var z=this.fillElement;var l=this.strokeElement;typeof GroupEffect==="function"?(z=new GroupEffect([EfY(z),uO5(l)]),z=new Animation(z,document.timeline)):z=new RjM(z,l);this.currentAnimation=z;var I;(I=this.currentAnimation)==null||I.play()}};
_.e([_.qX(".stroke"),_.w("design:type",HTMLElement)],UF.prototype,"strokeElement",void 0);_.e([_.qX(".fill"),_.w("design:type",HTMLElement)],UF.prototype,"fillElement",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],UF.prototype,"focused",void 0);_.e([_.X(),_.w("design:type",Object)],UF.prototype,"disabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],UF.prototype,"isOverlay",void 0);_.e([_.Wy({is:"yt-interaction",disableElementRegistration:!0})],UF);
_.r(UF,"yt-interaction",function(){if(J3p===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;jgA===void 0&&(jgA=document.createElement("template"));var b=jgA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);J3p=z}z=J3p;return z},{mode:2});var af=function(){return _.q.apply(this,arguments)||this};
_.m(af,_.q);_.p=af.prototype;_.p.ready=function(){var z=this,l=_.Hy(this.hostElement).querySelector("#button");l.addEventListener("focus",function(){Bqw||(Bqw=new tsI);z.keyboardFocused=Bqw.isKeyBoardInUse()});
l.addEventListener("blur",function(){z.keyboardFocused=!1;z.rippleUp_()})};
_.p.computeTabIndex_=function(z){return z?-1:0};
_.p.computeButtonAriaPressed_=function(z){if(this.toggleable)return z?"true":"false"};
_.p.rippleDown_=function(){_.Hy(this.hostElement).querySelector("#interaction").triggerDown()};
_.p.rippleUp_=function(){_.Hy(this.hostElement).querySelector("#interaction").triggerUp()};
_.p.onPressedChanged_=function(){var z=_.y5(_.Hy(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.y5(_.Hy(this.hostElement).querySelector("#button")).children[0];z&&(z.active=this.pressed)};
af.prototype.onPressedChanged_=af.prototype.onPressedChanged_;af.prototype.rippleUp_=af.prototype.rippleUp_;af.prototype.rippleDown_=af.prototype.rippleDown_;_.e([_.X(),_.w("design:type",String)],af.prototype,"label",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],af.prototype,"disabled",void 0);_.e([_.X(),_.w("design:type",Boolean)],af.prototype,"pressed",void 0);_.e([_.X(),_.w("design:type",Object)],af.prototype,"toggleable",void 0);
_.e([_.X(),_.w("design:type",Boolean)],af.prototype,"untabbable",void 0);_.e([_.X(),_.w("design:type",Boolean)],af.prototype,"keyboardFocused",void 0);_.e([_.tP("down"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],af.prototype,"rippleDown_",null);_.e([_.tP("up"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],af.prototype,"rippleUp_",null);
_.e([_.By("pressed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],af.prototype,"onPressedChanged_",null);_.e([_.Wy({is:"yt-icon-button",disableElementRegistration:!0})],af);
_.r(af,"yt-icon-button",function(){if(VlM===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ay_===void 0&&(ay_=document.createElement("template"));var b=ay_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);VlM=z}z=VlM;return z},{mode:2});var zi_;var lg_=function(){var z=document.body,l=z.appendChild;if(zi_===void 0){var I=document.createElement("template");_.K(I,'\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>');
zi_=I}I=zi_;l.call(z,I.content)};
document.body?lg_():window.addEventListener("DOMContentLoaded",lg_);var Ig4=_.zs(["aria-"]),Vy={};Vy.YtRenderButtonBehavior=[_.U.YtRendererBehavior,_.eD.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!!_.pG().resolve(_.MB(_.T$))&&_.C("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 z=this.computeHref_(this.endpoint,!0);z?nD(this.elements_.endpoint,z):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){z=this.buttonClass.split(" ");z=_.D(z);for(var l=z.next();!l.done;l=z.next())l=l.value,_.fJ(this.hostElement,l,!0),this.elements_.button&&_.fJ(this.elements_.button,l,!0),this.elements_.text&&_.fJ(this.elements_.text,l,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(z=null,this.buttonAccessibility&&(z=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=z:z?_.D1([_.Nj(Ig4)],this.elements_.button,"aria-label",z):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var z=_.pG().resolve(_.MB(_.T$));z&&(this.keyboardFocused=z.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.ih("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,_.YO(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.YO(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(z,l){if(l)for(z=l.split(" "),z=_.D(z),l=z.next();!l.done;l=z.next())l=l.value,_.fJ(this.hostElement,l,!1),this.elements_.button&&_.fJ(this.elements_.button,l,!1),this.elements_.text&&_.fJ(this.elements_.text,l,!1)},
buttonIconChanged_:function(z){this.elements_.icon?z?(this.elements_.icon.icon=z,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.YO(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.CJ(this.hostElement,"is-paper-button-with-icon",!1)):z&&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"&&_.YO(this.elements_.button).appendChild(this.elements_.icon):_.YO(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.CJ(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(z){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,z){var l=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(z){case "yt_icon_button_with_label":l=!0;_.fJ(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();z=_.YO(this.elements_.button).firstElementChild;
this.elements_.icon=z;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.YO(this.elements_.endpoint).appendChild(this.elements_.button);_.YO(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.ih("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;_.YO(this.elements_.button).appendChild(this.elements_.text);_.YO(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":l=!0,this.elements_.button=this.getYtIconButton_(),z=_.YO(this.elements_.button).firstElementChild,this.elements_.icon=z,this.setIconActive_(this.elements_.icon),
_.YO(this.elements_.endpoint).appendChild(this.elements_.button)}_.CJ(this.hostElement,"is-icon-button",l);_.CJ(this.hostElement,"is-paper-button",!l);_.CJ(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 I;_.Hy((I=this.container.hostElement)!=null?I:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.YO(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(z){if(z!=void 0||this.disabled)this.disabled=z,this.elements_.button&&(this.elements_.button.disabled=z)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(z){_.C("kevlar_system_icons")&&z&&this.data&&(this.data.isSelected!==void 0?z.active=this.data.isSelected:this.data.isToggled!==void 0&&(z.active=this.data.isToggled))},
observeBasicPalette_:function(z){_.Pr(this.hostElement,z)},
disabledChanged_:function(z){this.data&&this.set("data.isDisabled",z)},
onYtButtonTap_:function(z){if(this.disabled)z.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.uJ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(z=this.disableCommandHandlerOverride,!this.data||!this.data.command||z||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.C("handle_service_request_actions")||_.uJ(this.hostElement,[this.serviceEndpoint]),
_.gC(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.C("handle_service_request_actions")?(z=[],this.serviceEndpoint&&z.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&z.push(this.data.command),z.length&&_.ZE(this.hostElement,z,this.hostElement)):this.data&&this.data.command&&(z=this.data.command,z.accountUnlinkCommand||z.accountLinkCommand||z.insertAdCommand||z.insertHighlightMarkerCommand||
z.createLivestreamHighlightClipCommand||z.getVideoUploadFeedbackCommand||z.musicDeletePrivatelyOwnedEntityCommand||z.ypcCancelRecurrenceEndpoint||z.getMultiSelectCommandEndpoint?_.uJ(this.hostElement,[z]):_.ZE(this.hostElement,[z],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 z,l=_.Hy((z=this.container.hostElement)!=null?z:this.container);l.lastChild&&l.lastChild.tagName!="STYLE";)try{l.removeChild(l.lastChild)}catch(I){break}},
getYtIconButton_:function(){var z=this.reuseEnabled_()?_.ih("yt-icon-button"):document.createElement("yt-icon-button"),l=_.YO(z).firstElementChild;if(l&&l.is!="yt-icon"){for(l=_.YO(z);l.lastChild;)l.removeChild(l.lastChild);l=null}l||(l=this.getIcon_(),this.setIconActive_(l),_.YO(z).appendChild(l));return z},
reuseEnabled_:function(){return _.C("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.ih("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.ih("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.bTj={};
_.bTj.YtButtonBehavior=[Vy.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var z=this.data;z&&(this._setEndpoint(this.computeEndpoint_(z)),this._setServiceEndpoint(this.computeServiceEndpoint_(z)),this._setCommand(this.computeCommand_(z)),this._setButtonIcon(this.computeButtonIcon_(z)),this._setButtonText(this.computeButtonText_(z,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(z)),this._setButtonTooltip(this.computeTooltip_(z)),this._setButtonClass(this.computeButtonClass_(z)),this._setIconPositionType(this.computeIconPositionType_(z)),this.updateRenderedElements())},
setPressedState:function(z){var l;if((l=this.elements_)==null?0:l.button)this.elements_.button.pressed=!!z},
computeIconPositionType_:function(z){return z&&z.iconPosition||null},
computeEndpoint_:function(z){var l=z&&z.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:z&&z.command&&z.command.modalEndpoint?z.command:I&&!b&&z.command?z.command:null},
computeServiceEndpoint_:function(z){var l=z&&z.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:I&&z.command?z.command:null},
computeCommand_:function(z){return z&&z.command||null},
computeButtonIcon_:function(z){return z&&z.icon&&z.icon.iconType?_.Re(z.icon.iconType):null},
computeButtonText_:function(z,l){return!l&&z&&z.text||null},
computeAccessibility_:function(z){return this.get("accessibilityData.accessibilityData",z)||z&&z.accessibility||(z&&z.text?{label:this.getSimpleString(z.text)}:null)},
computeTooltip_:function(z){return z?z.isDisabled&&z.disabledTooltip||z.tooltip||null:null},
computeButtonClass_:function(z){var l=z&&z.style?z.style.toLowerCase().replace(/_/g,"-")+" ":"";l+=z&&z.size?z.size.toLowerCase().replace(/_/g,"-")+" ":"";z.colorData&&z.colorData.basicColorPaletteData&&z.colorData.basicColorPaletteData.borderColor&&(l+="palette-with-border");return l.trim()}}];var hN={};var vXu;var MIu;var pzA,D$w=function(){return pzA!==void 0?pzA:pzA=document.createElement("template")};
document.head.appendChild(D$w().content);var x$_;var OT_,gXM=function(){return OT_!==void 0?OT_:OT_=document.createElement("template")};
document.head.appendChild(gXM().content);var G0u;var NJp,EXA=function(){return NJp!==void 0?NJp:NJp=document.createElement("template")};
document.head.appendChild(EXA().content);var uRw;var ZTM=document.head,HT_=ZTM.appendChild,yVn;if(uRw===void 0){var fg_=document.createElement("template");_.K(fg_,"\x3c!--css-build:shady--\x3e");fg_.content.insertBefore(EXA().content.cloneNode(!0),fg_.content.firstChild);uRw=fg_}yVn=uRw;HT_.call(ZTM,yVn.content);var CeM=document.head,k0u=CeM.appendChild,RiM;if(G0u===void 0){var m$A=document.createElement("template");_.K(m$A,"\x3c!--css-build:shady--\x3e");m$A.content.insertBefore(gXM().content.cloneNode(!0),m$A.content.firstChild);G0u=m$A}RiM=G0u;k0u.call(CeM,RiM.content);var KS4=document.head,tIn=KS4.appendChild,BJn;if(x$_===void 0){var XzA=document.createElement("template");_.K(XzA,"\x3c!--css-build:shady--\x3e");XzA.content.insertBefore(D$w().content.cloneNode(!0),XzA.content.firstChild);x$_=XzA}BJn=x$_;tIn.call(KS4,BJn.content);var qyu;_.sW("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");qyu=_.C("web_button_rework")&&_.rr("BUTTON_REWORK")||_.C("web_button_rework_with_live");_.zK=function(){return _.q.apply(this,arguments)||this};
_.m(_.zK,_.q);_.zK.prototype.created=function(){this.openPopupConfig=_.sZ("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.zK.prototype.onYtNavigate_=function(z){var l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(z.detail.endpoint);l&&(this.ytOpenPopupBehavior.openPopup(l),z.stopPropagation(),z.preventDefault())};
_.vP.Object.defineProperties(_.zK,{template:{configurable:!0,enumerable:!0,get:function(){if(MIu===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;vXu===void 0&&(vXu=document.createElement("template"));var b=vXu;I.call(l,b.content.cloneNode(!0),z.content.firstChild);MIu=z}z=MIu;return z}}});
_.zK.prototype.onYtNavigate_=_.zK.prototype.onYtNavigate_;_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],_.zK.prototype,"ytOpenPopupBehavior",void 0);_.e([_.t(_.bTj.YtButtonBehavior),_.w("design:type",Object)],_.zK.prototype,"ytButtonBehavior",void 0);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],_.zK.prototype,"onYtNavigate_",null);
_.e([_.Wy({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:qyu})],_.zK);var iTu;var FS0=_.C("web_button_rework")&&_.rr("BUTTON_REWORK")||_.C("web_button_rework_with_live"),lr=function(){var z=_.q.apply(this,arguments)||this;z.isPressed=!1;z.forceIconButton=!1;z.forceIconOnly=!1;z.forceModernIconButton=!1;z.skipCommandHandling=!1;z.alignByText=!1;z.fitToVisibleBounds=!0;z.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};z.onTap=function(l){_.gC(z.hostElement,"yt-service-request-sent-button-renderer",l)};
return z};
_.m(lr,_.q);_.p=lr.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.p.onClick=function(z){var l,I=this.disabled||((l=this.data)==null?void 0:l.isDisabled);l=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&l&&z.stopPropagation()};
_.p.computeIcon=function(){var z,l,I=(z=this.data)==null?void 0:(l=z.icon)==null?void 0:l.iconType;if(I)return _.Re(I)};
_.p.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.p.handleUpdateButtonAction=function(z){z=_.k(z,K3M);var l=_.k(z==null?void 0:z.updatedButton,_.xm);if(this.data&&z&&l){var I=this.data;I.targetId&&z.targetId&&I.targetId===z.targetId&&(this.data=l)}};
_.vP.Object.defineProperties(lr.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var z=this;if(this.data){var l=FRp({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.gC(z.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.gC(z.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});l.alignByText=this.alignByText;return l}}}});
_.vP.Object.defineProperties(lr,{template:{configurable:!0,enumerable:!0,get:function(){if(iTu===void 0){var z=document.createElement("template");_.K(z,'\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>');iTu=z}z=iTu;return z}}});
lr.prototype.onClick=lr.prototype.onClick;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],lr.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],lr.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"isPressed",void 0);
_.e([_.X(),_.w("design:type",Object)],lr.prototype,"forceIconButton",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"forceIconOnly",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"forceModernIconButton",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"skipCommandHandling",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"alignByText",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"buttonTooltipPosition",void 0);
_.e([_.X(),_.w("design:type",Object)],lr.prototype,"fitToVisibleBounds",void 0);_.e([_.X({computed:"computeTooltip(data)"}),_.w("design:type",Object)],lr.prototype,"tooltip",void 0);_.e([_.X(),_.w("design:type",Object)],lr.prototype,"overrides",void 0);_.e([_.X(),_.w("design:type",Boolean)],lr.prototype,"disabled",void 0);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],lr.prototype,"onClick",null);
_.e([_.B("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.w("design:type",Object),_.w("design:paramtypes",[])],lr.prototype,"computedButtonShape",null);_.e([_.Wy({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!FS0,cssBuildOptOut:!0}),_.Wy({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!FS0,cssBuildOptOut:!0})],lr);var Q$0;var Yyz;var IV=function(){var z=_.q.apply(this,arguments)||this;z.empty_=!0;z.loadTime=Infinity;z.pendingPaint=!1;z.hasChange_=!1;z.oldThumbnail_=null;z.oldDelayedSrc_="";z.objectURL_=null;return z};
_.m(IV,_.q);_.p=IV.prototype;_.p.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.p.ready=function(){var z=this.shouldShowPlaceholder_();_.fJ(this.hostElement,"no-transition",!0);z&&this.hostElement.classList.add("with-placeholder")};
_.p.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.p.isThumbPreloaded_=function(z){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",z)};
_.p.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||TJ_};
_.p.computeThumbnailSrc_=function(z){return z&&z.thumbnails?_.ZY(z.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.p.computeAlt_=function(){var z=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&z||""};
_.p.thumbnailChanged_=function(){var z=_.D([this.thumbnail,this.oldThumbnail_]),l=z.next().value;z=z.next().value;this.oldThumbnail_=l;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(z=this.computeThumbnailSrc_(z),this.computeThumbnailSrc_(l)===z))return;_.C("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(l)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):l&&_.rr("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.IR(this,this.onReload_):_.IR(this,this.onShow_):this.resetImage_();l&&(this.hostElement.style.opacity=""+l.opacity)}};
_.p.delayedSrcChanged_=function(){var z=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===z||this.resetImage_()};
_.p.setSrc_=function(z){z?(_.Hy(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Hy(this.hostElement).querySelector("#img").src=z):(_.Hy(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.p.resetImage_=function(){Yyp(this.hostElement);this.empty_=!0;this.setSrc_(TJ_);this.ytRendererBehavior.invalidate(!1)};
_.p.observePlaceholderColor_=function(){var z=this.thumbnail&&this.thumbnail.placeholderColor;z?this.hostElement.style.backgroundColor=_.Ur(z):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.p.onLoad_=function(){_.Hy(this.hostElement).querySelector("#img").src&&_.Hy(this.hostElement).querySelector("#img").src!==TJ_&&(Q$5(this.hostElement),this.notifyOnLoaded&&_.gC(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.p.onError_=function(){var z=this;if(_.C("web_use_cache_for_image_fallback"))hif(_.Hy(this.hostElement).querySelector("#img").src).then(function(l){z.objectURL_=_.w0(l).toString();z.setSrc_(z.objectURL_)}).catch(function(){_.C("kevlar_woffle_fallback_image")&&z.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.p.onPrescanVisible=function(){this.onShow_()};
_.p.onVisible=function(){if(_.C("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.p.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var z=this.computeSrc_();z!==_.Hy(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(z))}};
_.p.onReload_=function(){this.empty_=!1;var z=this.computeSrc_();z!==_.Hy(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(z))};
_.p.shouldShowPlaceholder_=function(){return _.C("kevlar_thumbnail_bg")};
IV.prototype.observePlaceholderColor_=IV.prototype.observePlaceholderColor_;IV.prototype.delayedSrcChanged_=IV.prototype.delayedSrcChanged_;IV.prototype.thumbnailChanged_=IV.prototype.thumbnailChanged_;_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],IV.prototype,"alt",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],IV.prototype,"ariaHidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],IV.prototype,"ariaLabel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],IV.prototype,"hidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],IV.prototype,"id",void 0);_.e([_.t(_.yy.YtVisibilityBehavior),_.w("design:type",Object)],IV.prototype,"ytVisibilityBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",String)],IV.prototype,"delayedSrc",void 0);
_.e([_.X(),_.w("design:type",Object)],IV.prototype,"thumbnail",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],IV.prototype,"loaded",void 0);_.e([_.X(),_.w("design:type",Boolean)],IV.prototype,"notifyOnLoaded",void 0);_.e([_.X(),_.w("design:type",Number)],IV.prototype,"height",void 0);_.e([_.X(),_.w("design:type",Number)],IV.prototype,"width",void 0);_.e([_.X({value:function(){return"width"}}),
_.w("design:type",String)],IV.prototype,"dimension",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],IV.prototype,"fit",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],IV.prototype,"fitHeight",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],IV.prototype,"fitWidth",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],IV.prototype,"objectFit",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],IV.prototype,"objectPosition",void 0);_.e([_.X(),_.w("design:type",String)],IV.prototype,"preferredThumbnail",void 0);_.e([_.X({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.w("design:type",String)],IV.prototype,"alt_",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],IV.prototype,"sharedTooltipText",void 0);
_.e([_.X(),_.w("design:type",Boolean)],IV.prototype,"ftlEligible",void 0);_.e([_.X({value:void 0}),_.w("design:type",String)],IV.prototype,"observeHiddenOption",void 0);_.e([_.X({value:"observe_once"}),_.w("design:type",String)],IV.prototype,"observePrescanOption",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],IV.prototype,"roundedContainer",void 0);
_.e([_.YE("thumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IV.prototype,"thumbnailChanged_",null);_.e([_.YE("delayedSrc"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IV.prototype,"delayedSrcChanged_",null);_.e([_.By("thumbnail.placeholderColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IV.prototype,"observePlaceholderColor_",null);
_.e([_.Wy({is:"yt-img-shadow",disableElementRegistration:!0})],IV);var TJ_=_.rr("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Hh()(IV,"yt-img-shadow",function(){if(Yyz===void 0){var z=document.createElement("template");_.K(z,'\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">');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Q$0===void 0&&(Q$0=document.createElement("template"));var b=Q$0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Yyz=z}z=Yyz;return z},{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 MBY;_.br=new _.yH("SCREEN_MANAGER_TOKEN");MBY=new _.yH("LOG_INITIAL_SCREEN_TOKEN");var cVw=_.$l({entities:{}});var Syw=_.eO(cVw)(cVw.entities,{selectSfvAudioItemPlaybackState:function(z,l){var I,b;z=(b=_.Cc(z,"sfvAudioItemCurrentlyPlayingEntity",l))!=null?b:void 0;return(I=z==null?void 0:z.sfvAudioItemPlaybackState)!=null?I:void 0},
playlistLoopStateEntitySelector:function(z,l){var I;return(I=_.Cc(z,"playlistLoopStateEntity",l))!=null?I:void 0}});_.vL=_.P(function(z){function l(lH){return _.k(lH,_.N1)}
function I(){var lH=b().isTogglingDisabled||F()&&b().toggledIsTogglingDisabled,Gk=lH||y()?F():!F();Y(Gk);d(!1);if(!lH){var uH;(uH=x)==null||uH(!!Gk)}var Xt;((Xt=M)==null?0:Xt())||_.sE(_.pG().resolve(_.br),b().trackingParams);var R1;if(!Gk||!l(b().defaultButtonViewModel)||(R1=M)!=null&&R1()){var H7;!l(b().toggledButtonViewModel)||((H7=M)==null?0:H7())||_.sE(_.pG().resolve(_.br),l(b().toggledButtonViewModel).trackingParams)}else _.sE(_.pG().resolve(_.br),l(b().defaultButtonViewModel).trackingParams)}
var b=z.data,v=z.buttonShapeOverrides,M=z.disableExplicitClickLogging,x=z.onToggle,g=z.style,G=z.useOutlinedIcon,u=z.className,Z=function(){var lH,Gk;return F()?(lH=z.animatedTextPropsToggled)==null?void 0:lH.call(z):(Gk=z.animatedTextPropsDefault)==null?void 0:Gk.call(z)},H=_.kz(function(){return Z()?Object.assign({},Z(),{shouldAnimate:c()}):void 0},void 0,"Zp4uoe"),y=function(){var lH;
return((lH=W())==null?void 0:lH.isToggled)!==void 0},f=_.D(_.Br(function(){var lH,Gk,uH;
return y()?(lH=W())==null?void 0:lH.isToggled:(uH=v==null?void 0:(Gk=v())==null?void 0:Gk.toggled)!=null?uH:b().isToggled})),R=f.next().value;
f=f.next().value;var F=R,Y=f;f=_.D(_.Br(function(){var lH,Gk;return(lH=z.animatedTextPropsToggled)==null?void 0:(Gk=lH.call(z))==null?void 0:Gk.shouldAnimate}));
R=f.next().value;f=f.next().value;var c=R,d=f;R=_.D(_.Z_(!1,void 0,"mq3Zfe"));var V=R.next().value,A=R.next().value,W=_.nK(function(lH){a:{var Gk=b().entityKey,uH=b().toggledStateEntitySelectorType;if(uH)switch(uH){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Gk)break;lH=Syw.selectSfvAudioItemPlaybackState(lH,Gk);if(lH==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){lH={isToggled:!0};break a}if(lH){lH={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":lH=
{isToggled:_.cLp(lH).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":lH={isToggled:_.cLp(lH).includes("engagement-panel-live-chat-item-section")};break a;default:_.PW(new _.qB("Error: entitySelectorType defined but not matched in selector.",lH,uH))}lH=void 0}return lH}),L=function(){return Object.assign({},v==null?void 0:v(),{onToggle:I,
toggleable:!0,toggled:F(),focused:V()})};
return _.N("toggle-button-view-model",{"on:focusin":_.KK(function(){var lH=_.pG().resolve(_.MB(_.T$));lH&&A(lH.isKeyBoardInUse());return!1}),
"on:focusout":_.KK(function(){A(!1);return!1})},_.N(_.E,{cond:function(){return F()?l(b().toggledButtonViewModel):l(b().defaultButtonViewModel)},
then:function(lH){return _.N(_.h4,{data:lH,className:u,style:g,useOutlinedIcon:G,buttonOverrides:L,animatedTextProps:H})}}))},"E");
_.vL.idomCompat={callbacks:{onToggle:!0}};_.uO(_.P(function(z){return _.N("yt-toggle-button-view-model",{class:function(){var l;return(l=z.scopingClassName)==null?void 0:l.call(z)}},_.N(_.vL,{data:function(){var l;
return(l=z.data)==null?void 0:l.call(z)},
buttonShapeOverrides:function(){var l;return(l=z.overrides)==null?void 0:l.call(z)},
animatedTextPropsDefault:function(){var l;return(l=z.animatedTextPropsDefault)==null?void 0:l.call(z)},
animatedTextPropsToggled:function(){var l;return(l=z.animatedTextPropsToggled)==null?void 0:l.call(z)},
disableExplicitClickLogging:function(){var l;return(l=z.disableExplicitClickLogging)==null?void 0:l.call(z)},
onToggle:function(l){var I;return(I=z.onToggle)==null?void 0:I.call(z,l)},
style:function(){var l;return(l=z.style)==null?void 0:l.call(z)},
useOutlinedIcon:function(){var l;return(l=z.useOutlinedIcon)==null?void 0:l.call(z)},
className:function(){var l;return(l=z.className)==null?void 0:l.call(z)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.mB,
buttonShapeOverrides:_.mB,overrides:_.mB,animatedTextPropsDefault:_.mB,animatedTextPropsToggled:_.mB,disableExplicitClickLogging:_.mB,onToggle:_.GH,style:_.mB,useOutlinedIcon:_.mB,className:_.mB,scopingClassName:_.mB}});var MQ=function(){return _.q.apply(this,arguments)||this};
_.m(MQ,_.q);MQ.prototype.onTap=function(z){z.stopPropagation();z=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.sc("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:z})):this.ytLiveChatReduxBehavior.dispatch(_.cU("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:z}))};
_.vP.Object.defineProperties(MQ.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.engagementState)==null?void 0:z.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var z=_.k(this.data.toggleButton,_.uS),l;if(Number(((l=this.likeCountState)==null?void 0:l.likeCountIfIndifferentNumber)||"0")===0){var I;l=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var b,v,M;l=((b=this.likeCountState)==null?void 0:(v=b.likeCountIfIndifferent)==null?void 0:v.content)||((M=this.data.likeCountPlaceholder)==null?void 0:M.content)||""}var x,g;I=((x=this.likeCountState)==null?void 0:(g=
x.likeCountIfLiked)==null?void 0:g.content)||"1";x=_.k(z.toggledButtonViewModel,_.N1);return Object.assign({},z,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.k(z.defaultButtonViewModel,_.N1),{title:l})},toggledButtonViewModel:{buttonViewModel:Object.assign({},x,{title:I})}})}}}});
MQ.prototype.onTap=MQ.prototype.onTap;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],MQ.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],MQ.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],MQ.prototype,"data",void 0);
_.e([_.X({selectorArgs:["data.likeCountEntityKey"],selector:S6x}),_.w("design:type",Object)],MQ.prototype,"likeCountState",void 0);_.e([_.X({selectorArgs:["data.engagementStateKey"],selector:hEQ}),_.w("design:type",Object)],MQ.prototype,"engagementState",void 0);_.e([_.B("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],MQ.prototype,"isLiked",null);
_.e([_.B("data","likeCountState","isLiked"),_.w("design:type",Object),_.w("design:paramtypes",[])],MQ.prototype,"toggleButton",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],MQ.prototype,"onTap",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],MQ);
_.r(MQ,"yt-live-chat-like-button-view-model",function(){if(opM===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;dTu===void 0&&(dTu=document.createElement("template"));var b=dTu;I.call(l,b.content.cloneNode(!0),z.content.firstChild);opM=z}z=opM;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var d$A;var oXA;var pe=function(){return _.q.apply(this,arguments)||this};
_.m(pe,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pe.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],pe);
_.r(pe,"yt-live-chat-paid-message-footer-renderer",function(){if(oXA===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;d$A===void 0&&(d$A=document.createElement("template"));var b=d$A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);oXA=z}z=oXA;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var PeI;var hiw;var s$0;var rVj,$$0=function(){if(rVj!==void 0)return rVj;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;s$0===void 0&&(s$0=document.createElement("template"));var b=s$0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return rVj=z};var D$=function(){return _.q.apply(this,arguments)||this};
_.m(D$,_.q);D$.prototype.onTap=function(z){z.stopPropagation()};
_.vP.Object.defineProperties(D$.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var z=_.k(this.data.replyButton,_.N1),l,I,b,v,M,x,g,G=Number(((l=this.replyCountState)==null?void 0:l.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(b=I.replyCountPlaceholder)==null?void 0:b.content:((v=this.replyCountState)==null?void 0:(M=v.replyCount)==null?void 0:M.content)||((x=this.data)==null?void 0:(g=x.replyCountPlaceholder)==null?void 0:g.content)||"",u;return Object.assign({},
z,{title:G,accessibilityText:(u=this.replyCountState)==null?void 0:u.replyButtonAccessibilityText})}}}});
_.vP.Object.defineProperties(D$,{template:{configurable:!0,enumerable:!0,get:function(){return $$0()}}});
D$.prototype.onTap=D$.prototype.onTap;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],D$.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],D$.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],D$.prototype,"data",void 0);
_.e([_.X({selectorArgs:["data.replyCountEntityKey"],selector:function(z,l){return _.Cc(z.entities,"replyCountEntity",l)}}),
_.w("design:type",Object)],D$.prototype,"replyCountState",void 0);_.e([_.B("data","replyCountState"),_.w("design:type",Object),_.w("design:paramtypes",[])],D$.prototype,"buttonViewModel",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],D$.prototype,"onTap",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],D$);
_.r(D$,"yt-live-chat-reply-button-view-model",function(){return $$0()},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var ein;var wzw;var xY=function(){var z=_.q.apply(this,arguments)||this;z.ariaLabel="";return z};
_.m(xY,_.q);
xY.prototype.dataChanged=function(){for(var z=(0,_.kE)(_.Hy(this.hostElement).querySelector("#image"));z.firstChild;)z.removeChild(z.firstChild);if(this.data)if(this.data.icon){var l=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(l.polymerController.icon="yt-sys-icons:shield-filled",l.polymerController.defaultToFilled=!0):l.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();z.appendChild(l)}else if(this.data.customThumbnail){l=document.createElement("img");
var I=_.KSS(this.data.customThumbnail.thumbnails,16);I?(l.src=I,z.appendChild(l),l.setAttribute("alt",this.hostElement.ariaLabel||"")):_.PW(new _.qB("Could not compute URL for thumbnail",this.data.customThumbnail))}};
xY.prototype.identity=function(z){return z};
xY.prototype.computeType=function(z){return fE(z||void 0)};
xY.prototype.dataChanged=xY.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],xY.prototype,"data",void 0);_.e([_.X({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.w("design:type",Object)],xY.prototype,"ariaLabel",void 0);_.e([_.X({computed:"computeType(data)",reflectToAttribute:!0}),_.w("design:type",String)],xY.prototype,"type",void 0);
_.e([_.X({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.w("design:type",String)],xY.prototype,"sharedTooltipText",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("live_chat_enable_new_moderator_badge")}}),
_.w("design:type",Boolean)],xY.prototype,"enableNewModeratorBadge",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xY.prototype,"dataChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],xY);
_.r(xY,"yt-live-chat-author-badge-renderer",function(){if(wzw===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ein===void 0&&(ein=document.createElement("template"));var b=ein;I.call(l,b.content.cloneNode(!0),z.content.firstChild);wzw=z}z=wzw;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var AV_;var WS_;var OM=function(){return _.q.apply(this,arguments)||this};
_.m(OM,_.q);_.p=OM.prototype;_.p.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"}}}}};
_.p.computeBadgesInsideChip=function(z){return z?z.filter(function(l){return fE(l.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.p.computeBadgesOutsideChip=function(z){return this.prependChatBadges||!z?[]:z.filter(function(l){l=fE(l.liveChatAuthorBadgeRenderer);return l!=="verified"&&l!=="owner"})};
_.p.computeBadgesBeforeChip=function(z){return this.prependChatBadges&&z?z.filter(function(l){l=fE(l.liveChatAuthorBadgeRenderer);return l!=="verified"&&l!=="owner"}):[]};
_.p.computeIsHighlighted=function(z,l){var I=!!eku(z,"owner"),b=!!eku(z,"verified");z=!!eku(z,"moderator");return(I||b&&!z)&&!l};
_.p.computeAuthorType=function(z){return $9$(z)};
_.p.computeAuthorClass=function(z,l){return l?(z?z+" ":"")+"single-line":z};
_.p.onSeedColorChanged=function(){_.C("live_chat_author_name_color_usernames")||_.C("live_chat_seed_color_usernames")||_.C("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):_.C("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
OM.prototype.onSeedColorChanged=OM.prototype.onSeedColorChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],OM.prototype,"authorName",void 0);_.e([_.X(),_.w("design:type",Array)],OM.prototype,"authorBadges",void 0);
_.e([_.X({computed:"computeAuthorType(authorBadges)"}),_.w("design:type",String)],OM.prototype,"authorType",void 0);_.e([_.X({computed:"computeAuthorClass(authorType, singleLine)"}),_.w("design:type",String)],OM.prototype,"authorClass",void 0);_.e([_.X({computed:"computeBadgesInsideChip(authorBadges)"}),_.w("design:type",Array)],OM.prototype,"badgesInsideChip",void 0);_.e([_.X({computed:"computeBadgesOutsideChip(authorBadges)"}),_.w("design:type",Array)],OM.prototype,"badgesOutsideChip",void 0);
_.e([_.X({computed:"computeBadgesBeforeChip(authorBadges)"}),_.w("design:type",Array)],OM.prototype,"badgesBeforeChip",void 0);_.e([_.X({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.w("design:type",Boolean)],OM.prototype,"isHighlighted",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],OM.prototype,"singleLine",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],OM.prototype,"disableHighlighting",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],OM.prototype,"dashboardMoneyFeed",void 0);_.e([_.X({value:_.C("live_chat_prepend_badges"),reflectToAttribute:!0}),_.w("design:type",Boolean)],OM.prototype,"prependChatBadges",void 0);_.e([_.X(),_.w("design:type",String)],OM.prototype,"authorNameColor",void 0);_.e([_.qX("#author-name"),_.w("design:type",HTMLDivElement)],OM.prototype,"username",void 0);
_.e([_.By("authorNameColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OM.prototype,"onSeedColorChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],OM);
_.r(OM,"yt-live-chat-author-chip",function(){if(WS_===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;AV_===void 0&&(AV_=document.createElement("template"));var b=AV_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);WS_=z}z=WS_;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var nX_;var LS4;var gI=function(){var z=_.q.apply(this,arguments)||this;z.debounceCommand=_.S1(function(l){z.ytComponentBehavior.resolveCommand(l)},1500);
return z};
_.m(gI,_.q);gI.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var z=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",l,I,b=this.isHearted?(l=this.data)==null?void 0:l.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.sc("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:z}));(z=_.Wh(b))&&this.debounceCommand(z)}};
_.vP.Object.defineProperties(gI.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var z,l;if(!((z=this.data)==null?0:(l=z.creatorThumbnail)==null?0:l.sources))return{};z={thumbnails:[]};l={};l.url=this.data.creatorThumbnail.sources[0].url;z.thumbnails.push(l);return z}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((I=this.engagementState)==null?void 0:I.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}}});
gI.prototype.onTap=gI.prototype.onTap;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],gI.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],gI.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gI.prototype,"data",void 0);
_.e([_.X({selectorArgs:["data.engagementStateKey"],selector:hEQ}),_.w("design:type",Object)],gI.prototype,"engagementState",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],gI.prototype,"thumbnailDetails",null);_.e([_.B("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gI.prototype,"isHearted",null);_.e([_.B("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gI.prototype,"isEditable",null);
_.e([_.B("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gI.prototype,"showCreatorView",null);_.e([_.B("data","engagementState"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gI.prototype,"showButton",null);_.e([_.B("data","isHearted"),_.w("design:type",String),_.w("design:paramtypes",[])],gI.prototype,"label",null);_.e([_.B("data","isHearted"),_.w("design:type",Object),_.w("design:paramtypes",[])],gI.prototype,"heartHoverText",null);
_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gI.prototype,"onTap",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],gI);
_.r(gI,"yt-live-chat-creator-heart-view-model",function(){if(LS4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;nX_===void 0&&(nX_=document.createElement("template"));var b=nX_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);LS4=z}z=LS4;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var GK=function(){};
_.m(GK,r3);GK.prototype.JSC$13114_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:jn("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
GK.prototype.getApiPaths=function(){return[]};
GK.prototype.getExtension=function(){};
GK.prototype.JSC$13114_buildRequest=function(){};var U$M={},ag0=(U$M.GET_DATASYNC_IDS=QX(GK),U$M);var VIu,j$u,JVj,Wu_,NQ,Id0,ja4,ld_,zE_;VIu="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");j$u=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.zS=function(z,l,I,b,v,M,x,g,G){this.endpointMap=z;this.networkManager=l;this.authService=I;this.responseProcessorMap=b;this.innertubeResponseStore=v;this.contextProcessors=M;this.asyncContextProcessors=x;this.localInnertubeRouter=g;this.requestSequencer=G;this.inflightRequests=new Map;z.signalEndpointMap||(z.signalEndpointMap={});z.signalEndpointMap=Object.assign({},ag0,z.signalEndpointMap)};
JVj=function(z,l,I,b,v,M,x,g,G){if(_.zS.instance!==void 0){if(b=_.zS.instance,z=[z!==b.endpointMap,l!==b.networkManager,I!==b.authService,v!==b.innertubeResponseStore,M!==b.contextProcessors,x!==b.asyncContextProcessors,g!==b.localInnertubeRouter],z.some(function(u){return u}))throw new _.qB("InnerTubeTransportService is already initialized",z);
}else _.zS.instance=new _.zS(z,l,I,b,v,M,x,g,G)};
_.I0=function(z,l,I){var b=b===void 0?uYu:b;var v=ja4(z,l);return v?new _.yK(function(M,x){var g,G,u,Z,H;return _.O(function(y){switch(y.nextAddress){case 1:return y.yield(v,2);case 2:g=y.yieldResult;G=g.JSC$13114_getRequest(l,I,b);if(!G){x(new _.qB("Error: Failed to build request for command.",l));y.jumpTo(0);break}JY(G.input);Z=((u=G.requestShell)==null?void 0:u.mode)==="cors"?"cors":void 0;if(z.authService.syncHeaders){H=zE_(G.config,Z);y.jumpTo(4);break}return y.yield(ld_(G.config,Z),5);case 5:H=
y.yieldResult;case 4:M(Id0(z,G,H)),_.qe(y)}})}):_.Ph(new _.qB("Error: No request builder found for command.",l))};
Wu_=function(z,l,I,b){var v=v===void 0?uYu:v;var M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L;return _.O(function(lH){switch(lH.nextAddress){case 1:M=P$1(l,z.endpointMap);if(!M)throw new _.qB("Error: No streaming request builder found for command",l);x=M.JSC$13114_getRequest(l,I,v);if(!x)throw new _.qB("Failed to build YtRequest for streaming Command",l);if((g=z.localInnertubeRouter)==null||!g.shouldPreferLocalResponse(x.input,x.innerTubeRequest)){lH.jumpTo(2);break}return lH.yield(z.localInnertubeRouter.localInnertubeResponse(x.input,
x.innerTubeRequest),3);case 3:return G=lH.yieldResult,u={},G.playerResponse&&(NQ(z,G.playerResponse,x),u.player=G.playerResponse,(Z=b)==null||Z(u,G)),G.watchNextResponse&&(NQ(z,G.watchNextResponse,x),u.content=G.watchNextResponse,(H=b)==null||H(u,G)),lH.return(u);case 2:f=((y=x.requestShell)==null?void 0:y.mode)==="cors"?"cors":void 0;if(z.authService.syncHeaders){R=zE_(x.config,f);lH.jumpTo(4);break}return lH.yield(ld_(x.config,f),5);case 5:R=lH.yieldResult;case 4:return c=(Y=(F=x.requestShell)==
null?void 0:F.headers)!=null?Y:{},x.requestShell=Object.assign({},x.requestShell,{headers:Object.assign({},c,R)}),d=Object.assign({},x.requestShell),V=JSON.stringify(x.innerTubeRequest),x.requestShell.method==="POST"&&(d=Object.assign({},d,{body:V})),A=function(Gk,uH){NQ(z,uH.playerResponse||uH.watchNextResponse||uH.reelItemWatchResponse||uH.reelWatchSequenceResponse,x);b==null||b(Gk,uH)},W={},lH.yield(b3I(z.networkManager,x.input,d,A),6);
case 6:return W=lH.yieldResult,((L=x.config)==null?0:L.responseTick)&&_.sK(x.config.responseTick),lH.return(W)}})};
_.Gv=function(z,l,I,b,v){v=v===void 0?{authStrategy:{identity:uYu}}:v;var M=M===void 0?!0:M;var x=function(){};
x=cix(YeG(I));l.context||(l.context=_.J$x(b,M));return new _.yK(function(g){var G,u,Z,H,y;return _.O(function(f){if(f.nextAddress==1)return G=kCH(I),u=_.V0(G),z.authService.syncHeaders?(Z=zE_(v,u),f.jumpTo(2)):f.yield(ld_(v,u),3);f.nextAddress!=2&&(Z=f.yieldResult);H=RCx(kCH(I));y={input:H,requestShell:jn(H),innerTubeRequest:l,config:v};g(Id0(z,y,Z,x));_.qe(f)})})};
NQ=function(z,l,I){var b;if(l&&!(l==null?0:(b=l.sequenceMetaData)==null?0:b.skipProcessing)&&z.responseProcessorMap){b=_.D(VIu);for(var v=b.next();!v.done;v=b.next())v=v.value,z.responseProcessorMap[v]&&z.responseProcessorMap[v].handleResponse(l,I)}};
Id0=function(z,l,I,b){b=b===void 0?function(){}:b;
var v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH,Gk,uH,Xt,R1,H7,P7,o1,z_,dw,Ej,JG,yu,uu,Y0,iK,a_,pu,lu,k0,E8;return _.O(function(R_){switch(R_.nextAddress){case 1:x=(v=l.config)==null?void 0:(M=v.storeStrategy)==null?void 0:M.storeKey;if(!(x&&z.innertubeResponseStore&&z.innertubeResponseStore.has(x))||((g=l.config)==null?0:(G=g.storeStrategy)==null?0:G.disableCache)){R_.jumpTo(2);break}return R_.yield(z.innertubeResponseStore.get(x),3);case 3:if((u=R_.yieldResult)&&!u.isExpired())return R_.return(Promise.resolve(_.x1(u)));
case 2:if(!((Z=l)==null?0:(H=Z.innerTubeRequest)==null?0:H.context)){R_.jumpTo(4);break}y=l.innerTubeRequest.context;if(!(z.asyncContextProcessors&&z.asyncContextProcessors.length>0)){R_.jumpTo(5);break}f=[];R=_.D(z.asyncContextProcessors);for(F=R.next();!F.done;F=R.next())Y=F.value,c=Y.processContext(l),c.wrappedPromise_&&f.push(c.wrappedPromise_);if(!(f.length>0)){R_.jumpTo(5);break}return R_.yield(Promise.all(f),5);case 5:d=_.D(z.contextProcessors||[]),V=d.next();case 8:if(V.done){R_.jumpTo(4);
break}A=V.value;return R_.yield(A.processContext(y),9);case 9:V=d.next();R_.jumpTo(8);break;case 4:if((W=z.localInnertubeRouter)==null||!W.shouldPreferLocalResponse(l.input,l.innerTubeRequest)){R_.jumpTo(12);break}return R_.yield(z.localInnertubeRouter.localInnertubeResponse(l.input,l.innerTubeRequest),13);case 13:return L=R_.yieldResult,NQ(z,L,l),R_.return(L);case 12:return(uH=(Gk=l.config)==null?void 0:Gk.requestKey)&&z.inflightRequests.has(uH)?lH=z.inflightRequests.get(uH):(Xt=JSON.stringify(l.innerTubeRequest),
P7=(H7=(R1=l.requestShell)==null?void 0:R1.headers)!=null?H7:{},l.requestShell=Object.assign({},l.requestShell,{headers:Object.assign({},P7,I)}),o1=Object.assign({},l.requestShell),l.requestShell.method==="POST"&&(o1=Object.assign({},o1,{body:Xt})),((z_=l.config)==null?0:z_.requestTick)&&_.sK(l.config.requestTick),dw=function(){return z.networkManager.fetch(l.input,o1,l.config)},lH=z.requestSequencer?vfn(z.requestSequencer,l,dw):dw(),uH&&z.inflightRequests.set(uH,lH)),R_.yield(lH,14);
case 14:(Ej=R_.yieldResult)&&_.C("web_streaming_player")&&Array.isArray(Ej)&&(Ej=Ej[0].playerResponse);if(Ej&&"error"in Ej&&((JG=Ej)==null?0:(yu=JG.error)==null?0:yu.details))for(uu=Ej.error.details,Y0=_.D(uu),iK=Y0.next();!iK.done;iK=Y0.next())a_=iK.value,(pu=a_["@type"])&&j$u.indexOf(pu)>-1&&(delete a_["@type"],Ej=a_);uH&&z.inflightRequests.has(uH)&&z.inflightRequests.delete(uH);((lu=l.config)==null?0:lu.responseTick)&&_.sK(l.config.responseTick);if(Ej||(k0=z.localInnertubeRouter)==null||!k0.canProvideFallbackResponse(l.input,
l.innerTubeRequest)){R_.jumpTo(15);break}return R_.yield(z.localInnertubeRouter.localFallbackInnertubeResponse(l.input,l.innerTubeRequest),16);case 16:Ej=R_.yieldResult;case 15:return NQ(z,Ej,l),((E8=l.config)==null?0:E8.processorTick)&&_.sK(l.config.processorTick),b(),R_.return(Ej||void 0)}})};
_.l1=function(z,l){return oGY(l,z.endpointMap)};
ja4=function(z,l){z=hlG(l,z.endpointMap);if(z!==void 0)return Promise.resolve(z)};
ld_=function(z,l){var I,b,v,M;return _.O(function(x){if(x.nextAddress==1){v=(I=z)==null?void 0:(b=I.authStrategy)==null?void 0:b.sessionIndex;var g=x.yield;var G=_.Hu(oW5({sessionIndex:v}));return g.call(x,G,2)}M=x.yieldResult;return x.return(Promise.resolve(Object.assign({},ss1(l),M)))})};
zE_=function(z,l){var I;z=z==null?void 0:(I=z.authStrategy)==null?void 0:I.sessionIndex;I=oW5({sessionIndex:z});return Object.assign({},ss1(l),I)};var MUz,pw_,DVz,xVp,O3I,gf_,Efj,uO0,Z$,Z3p,H3_,Nh4,ySA;MUz=0;pw_=/tone[1-5]/;DVz=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");xVp="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
O3I=Number.MAX_SAFE_INTEGER;gf_=RegExp("\ufe0f","g");_.EM=function(z){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;z&&_.Gd_(this,z)};
_.Gd_=function(z,l){try{_.fG(l,{context:z,onSuccess:function(b,v){Array.isArray(v)?z.load(v):(b=new _.qB("Emoji manager JSON response was not an array!",{response:v}),_.dE(b))},
onError:function(b){b=new _.qB("Failed to retrieve emoji manager initial JSON data!",{url:l,statusCode:_.NB(b).toString()});_.PW(b)}})}catch(b){var I=new _.qB("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:l});
_.PW(I)}};
_.EM.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.EM.prototype.load=function(z,l){if(l)if(z.length)z=z.concat(l.emojis);else{this.emojis=l.emojis;this.emojiMap=l.emojiMap;this.emojiShortcutMap=l.emojiShortcutMap;this.emojiShortcutCharMap=Nh4(l);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=l.emojiRegex;return}this.emojis=[].concat(_.ht(new Set(this.emojis.concat(z))));this.hasInitializedShortcutCharMap=!1;z=Array(this.emojis.length);for(l=0;l<this.emojis.length;l++){var I=this.emojis[l];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
l;for(var b=0;I.shortcuts&&b<I.shortcuts.length;b++)this.emojiShortcutMap[I.shortcuts[b].toLocaleLowerCase()]=I;z[l]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}z.sort(function(v,M){return M.length-v.length});
if(z.length)try{this.emojiRegex=new RegExp(z.join("|").replace("*","\\*"),"gi")}catch(v){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Efj=function(z,l){l=_.D(l);for(var I=l.next();!I.done;I=l.next()){var b=I.value;if(b.emojiId&&z.emojiMap[b.emojiId]){I=Object.assign({},z.emojiMap[b.emojiId],b);z.emojiMap[b.emojiId]=I;var v=void 0;I.index&&((v=z.emojis[I.index])==null?void 0:v.emojiId)===b.emojiId&&(z.emojis[I.index]=I);b=void 0;if((b=I.shortcuts)==null?0:b.length)for(z.hasInitializedShortcutCharMap=!1,b=_.D(I.shortcuts),v=b.next();!v.done;v=b.next())z.emojiShortcutMap[v.value.toLocaleLowerCase()]=I}}};
uO0=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(_.JM.getInstance(),2);if(b.nextAddress!=3)return(l=b.yieldResult)?b.yield(l.get("ytlc-emoji-pref"),3):b.return();(I=b.yieldResult)&&Efj(z,Object.keys(I).map(function(v){return{emojiId:v,stickyPrefId:I[v]}}).filter(function(v){return!!v.emojiId&&!!v.stickyPrefId}));
_.qe(b)})};
_.ur=function(z,l,I){return(z=z.emojiMap[l])&&(!z.isLocked||I!==void 0&&I)?z:void 0};
Z$=function(z,l,I){I=_.ur(z,l,I===void 0?!1:I);var b=l.match("\u200d");I&&z.skinTone!==0&&(z=(b==null?void 0:b.length)===1?_.ur(z,l.replace("\u200d",DVz[z.skinTone]+"\u200d")):_.ur(z,l+DVz[z.skinTone]))&&(I=z);return I};
Z3p=function(z,l){var I=z.emojiMap[l];return(I==null?0:I.stickyPrefId)?z.emojiMap[I.stickyPrefId]:Z$(z,l)};
_.yb=function(z,l){z=z.emojiShortcutMap[l.toLocaleLowerCase()];return!z||z.isLocked?null:z};
H3_=function(z,l,I){return Nh4(z,I===void 0?!1:I)[l]||{}};
Nh4=function(z,l){l=l===void 0?!1:l;if(!z.hasInitializedShortcutCharMap){z.hasInitializedShortcutCharMap=!0;for(var I=0;I<z.emojis.length;I++){var b=z.emojis[I];if(!(b.isLocked||l&&b.isCustomEmoji&&b.emojiId&&!z.pickerCustomEmojiIds.includes(b.emojiId)))for(var v=0;b.shortcuts&&v<b.shortcuts.length;v++){var M=b.shortcuts[v];M.startsWith(":_")&&b.isCustomEmoji&&(z.emojiShortcutCharMap[":_"]==null&&(z.emojiShortcutCharMap[":_"]=Object.create(null)),z.emojiShortcutCharMap[":_"][M]=b);if(!(M.length<3||
!b.isCustomEmoji&&pw_.test(M))){var x=M.substr(0,3).toLocaleLowerCase();z.emojiShortcutCharMap[x]==null&&(z.emojiShortcutCharMap[x]=Object.create(null));z.emojiShortcutCharMap[x][M]=b}}}}return z.emojiShortcutCharMap};
_.EM.prototype.createEmoji=function(z,l){l=l===void 0?!0:l;var I=document.createElement("img");z.isCustomEmoji||I.classList.add("small-emoji");I.classList.add("emoji");I.classList.add("yt-formatted-string");I.src=z.image?_.ZY(z.image.thumbnails,this.emojiSize)||"":"";var b=void 0;z.image&&z.image.accessibility&&z.image.accessibility.accessibilityData&&(b=z.image.accessibility.accessibilityData.label);I.alt=b?b:(z.isCustomEmoji&&z.shortcuts?z.shortcuts[0]:z.emojiId)||"";z.isCustomEmoji&&(I.dataset.emojiId=
z.emojiId);_.Zs&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));l&&(z.shortcuts&&z.shortcuts.length&&I.setAttribute("shared-tooltip-text",z.shortcuts[0]),I.id="emoji-"+MUz++);return I};
_.EM.prototype.createDocumentFragment=function(z,l,I,b){l=l===void 0?!1:l;I=I===void 0?!0:I;b=b===void 0?!1:b;z=z.replace(gf_,"");for(var v=document.createDocumentFragment(),M=0,x,g=0;(x=this.emojiRegex.exec(z))!=null;){var G=_.ur(this,x[0])||_.yb(this,x[0]);!G||G.isCustomEmoji&&!l||(G=this.createEmoji(G,I),M!==x.index&&v.appendChild(document.createTextNode(z.substring(M,x.index))),v.appendChild(G),M=x.index+x[0].length,g++)}if(!b||g)return v.appendChild(document.createTextNode(z.substr(M))),v};
ySA=function(z,l,I){var b,v,M,x,g,G,u,Z,H;return _.O(function(y){if(y.nextAddress==1){if(!l.emojiId||!z.emojiMap[l.emojiId])return y.return();b=Object.assign({},z.emojiMap[l.emojiId],{stickyPrefId:I});z.emojiMap[l.emojiId]=b;l.index&&((v=z.emojis[l.index])==null?void 0:v.emojiId)===l.emojiId&&(z.emojis[l.index]=b);if((M=l.shortcuts)==null?0:M.length)for(z.hasInitializedShortcutCharMap=!1,x=_.D(l.shortcuts),g=x.next();!g.done;g=x.next())G=g.value,z.emojiShortcutMap[G.toLocaleLowerCase()]=b;return y.yield(_.JM.getInstance(),
2)}if(y.nextAddress!=4)return(u=y.yieldResult)?y.yield(u.get("ytlc-emoji-pref"),4):y.jumpTo(0);H=(Z=y.yieldResult)!=null?Z:{};H[l.emojiId]=I;return y.yield(u.set("ytlc-emoji-pref",H,O3I),0)})};
_.HL=new _.EM;var kdM;_.yS={};
kdM={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.C("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:_.C("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 zN(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 z=_.Hy(this.hostElement||this).querySelector("#inline-action-button-container");z&&z.setAttribute("aria-hidden","true");this.menuButton=_.Hy(this.hostElement).querySelector("#menu-button")},
attached:function(){var z=this.menuButton;z&&(z.addEventListener("focusin",_.KJ(this,this.onMenuButtonFocus_)),z.addEventListener("focusout",_.KJ(this,this.onMenuButtonBlur_)))},
detached:function(){var z=this.menuButton;z&&(z.removeEventListener("focusin",_.KJ(this,this.onMenuButtonFocus_)),z.removeEventListener("focusout",_.KJ(this,this.onMenuButtonBlur_)))},
identity:_.df,truthy:function(z){return!!z},
computeTimestampString:function(z){return z?z.timestampText?this.getSimpleString(z.timestampText):this.TIME_FORMATTER.format(new Date(z.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(z){return z},
computeMenuVisible_:function(z,l){return z||l},
computeHasInlineActionButtons:function(z){if(!z)return!1;var l,I;return!((l=z.inlineActionButtons)==null||!l.length)||!((I=z.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(z){var l=_.HL.createDocumentFragment.bind(_.HL),I;if((I=this.participantsManager)==null||!I.viewerRegex)return l(z);I=document.createDocumentFragment();for(var b=0,v;(v=this.participantsManager.viewerRegex.exec(z))!=null;){if(v.index>0){var M=":"+v[0]+":";if((_.ur(_.HL,M)||_.yb(_.HL,M))&&z.indexOf(M)===v.index-1)continue}I.appendChild(l(z.substring(b,v.index)));b=document.createElement("span");b.appendChild(l(v[0]));b.classList.add("mention");I.appendChild(b);
b=v.index+v[0].length}I.appendChild(l(z.substring(b)));return I},
createDocumentFragment:function(z){var l=document.createDocumentFragment();if(z.simpleText)return l.appendChild(this.createDocumentFragmentFromString(z.simpleText)),l;if(!z.runs)return l;for(var I=0;I<z.runs.length;I++){var b=z.runs[I];if(b.emoji)l.appendChild(_.HL.createEmoji(b.emoji));else if(b.text)if(b.navigationEndpoint){var v=document.createElement("a");v.classList.add("yt-simple-endpoint");l61(v,b.navigationEndpoint);_.Hy(v).appendChild(this.createDocumentFragmentFromString(b.text));l.appendChild(v)}else l.appendChild(this.createDocumentFragmentFromString(b.text))}return l},
hasModerationOverlayVisible:function(){var z;return((z=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:z.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(z){z.composedPath().some(function(l){return(l=l instanceof Element?l:null)?l.tagName&&(l.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||l.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.C("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(z)},
colorFromDecimal:function(z){return tuS(z)},
markAsDeleted:function(z,l){this.set("data.deletedStateMessage",z);this.set("data.showOriginalContentMessage",l)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(z){if(this.data.contextMenuEndpoint){var l=_.pG().resolve(_.wD),I=this.data.contextMenuEndpoint,b;(b=_.zS.instance)&&_.l1(b,I)?(l=fd_(l,I),b=_.Gv(b,{},l)):b=_.CF_(l,I);b.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);z&&z.stopPropagation()}},
handleGetContextMenuResponse_:function(z){var l=_.zS.instance;l&&_.l1(l,{liveChatEndpoint:{}})||(z=z.response);z.liveChatItemContextMenuSupportedRenderers&&z.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(z.liveChatItemContextMenuSupportedRenderers.menuRenderer);z.actions&&_.Gb(this.hostElement,"yt-live-chat-actions",[z.actions])},
handleGetContextMenuError:function(z){if(z instanceof Error||z instanceof Object||z instanceof String)var l=z;_.dE(new _.qB("Error encountered calling GetLiveChatItemContextMenu",l))},
showContextMenu_:function(z){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:z}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.gC(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.gC(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.yS.YtLiveChatItemBehavior=[kdM,_.uh.YtComponentBehavior,_.$$.YtOpenPopupBehavior];_.fe=function(){};var REp;var mVA;var Km4;var tUA;var Ce=function(){var z=_.q.apply(this,arguments)||this;z.active=!1;z.identity=_.df;return z};
_.m(Ce,_.q);Ce.prototype.dataChanged=function(){this.active=!1};
Ce.prototype.onClick=function(){_.gC(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],Ce.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ce.prototype,"active",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ce.prototype,"dataChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Ce);
_.r(Ce,"yt-live-chat-text-input-field-suggestion",function(){if(tUA===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Km4===void 0&&(Km4=document.createElement("template"));var b=Km4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);tUA=z}z=tUA;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});_.kY=function(z,l,I){return CustomEvent.call(this,z,{detail:{value:l,path:I}})||this};
_.m(_.kY,CustomEvent);_.RV=function(){var z=_.q.apply(this,arguments)||this;z.viewerName=null;z.actionMap={"yt-live-chat-actions":"onChatMessage_"};z.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];z.PARTICIPANT_TIME_USEC_=3E8;return z};
_.m(_.RV,_.q);_.p=_.RV.prototype;_.p.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.p.addParticipant=function(z){var l=_.iuk(this.participants,z,function(b,v){b=b[Object.keys(b)[0]];v=v[Object.keys(v)[0]];b=String(_.ID(b.authorName)).toLowerCase();v=String(_.ID(v.authorName)).toLowerCase();return b<v?-1:b==v?0:1}.bind(this));
if(l>=0){var I=this.participants[l];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",l,1,z)}else this.splice("participants",-l-1,0,z);z=z[Object.keys(z)[0]];l=_.ID(z.authorName).toLocaleLowerCase();I=l.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][l]=z};
_.p.getAuthorsFromPrefix=function(z){return this.allParticipantsCharMap_.hasOwnProperty(z)?this.allParticipantsCharMap_[z]:null};
_.p.computeViewerRegex_=function(z){if(!z)return null;z=z.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var l=z.indexOf("@")===0&&_.C("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(l+z.replace(/ /g,"\\s*")+"|^"+z.replace(/ /g,"\\s*")+"$|^"+z.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+z.replace(/ /g,"\\s*")+"$|(?<=\\s)"+z.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.p.checkForStaleParticipants_=function(){var z=this;this.trimOldParticipants_();this.asyncHandle_&&jaS(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.JP(function(){z.checkForStaleParticipants_()},3E4))};
_.p.onChatMessage_=function(z){var l=this,I=Date.now()*1E3;z.forEach(function(b){if(b=_.k(b,jr0)){b=b.item;var v=Object.keys(b)[0];l.SUPPORTED_ITEM_TYPES_.indexOf(v)!=-1&&b[v].timestampUsec>=I-l.PARTICIPANT_TIME_USEC_&&l.addParticipant(b)}},this);
this.checkForStaleParticipants_()};
_.p.trimOldParticipants_=function(){for(var z=Date.now()*1E3,l=this.participants.length-1;l>=0;l--){var I=this.participants[l];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<z-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",l,1)}};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],_.RV.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],_.RV.prototype,"viewerName",void 0);_.e([_.X({computed:"computeViewerRegex_(viewerName)"}),_.w("design:type",Object)],_.RV.prototype,"viewerRegex",void 0);_.e([_.X({value:function(){return[]},
notify:!0}),_.w("design:type",Array)],_.RV.prototype,"participants",void 0);_.e([_.Wy({is:"yt-live-chat-participants-manager",noInjection:!0})],_.RV);var BhA=/.*([:@#].*?)$/,m6=/\u00a0/g,XwM=String.fromCharCode(160),qV_={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"},Ke=function(){var z=_.q.apply(this,arguments)||this;z.disabled=!1;z.liveChatRichMessageInput=null;z.messageInput=null;z.isValidWithNoInputText=!1;z.suggestions=[];z.emojiManager=_.HL;z.inputMethodEditorActive=
!1;z.suggestionIndex=-1;z.JSC$14114_lastSuggestionRange=null;return z};
_.m(Ke,_.q);_.p=Ke.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.p.attached=function(){_.Hx&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.p.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.p.dataChanged=function(){if(!this.ignoreColorMapping){var z=!1,l={},I;for(I in qV_)this.data&&this.data.hasOwnProperty(I)&&(l[qV_[I]]=this.colorFromDecimal(this.data[I]),z=!0);z&&_.R8(this.hostElement,l)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.p.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.p.colorFromDecimal=function(z){z=Math.floor(Number(z));return"rgba("+[z>>16&255,z>>8&255,z&255,(z>>24&255)/255].join()+")"};
_.p.preventDrag=function(z){z.dataTransfer&&(z.dataTransfer.dropEffect="none");z.preventDefault()};
_.p.preventResize=function(z){z.returnValue=!1};
_.p.onInputChange=function(){var z=this.characterCount,l=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&l&&l.remove();if(!l&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var b=I.getRangeAt(0);I.removeAllRanges();I.addRange(b)}}if(I=this.getCurrentRange())b=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,b,!0)||this.updateSuggestions(I,b);b=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(b);
_.gC(this.hostElement,"yt-live-chat-message-input-change",b);l&&this.characterCount===0&&l.remove();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>z):I&&!I.collapsed&&I.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(z=this.input.childNodes.length-1;z>=0;z--)this.input.childNodes[z].nodeName==="BR"&&this.input.childNodes[z].remove()};
_.p.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.p.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var z=this.getCurrentRange();z&&z.commonAncestorContainer.parentElement.id==="input"&&z.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.mergeOverflowText=function(z){if(z){var l=document.createRange();l.selectNodeContents(z);l=l.extractContents();this.input.insertBefore(l,z)}};
_.p.checkRangeAtEndOfInput=function(){var z=this.getCurrentRange();if(z){var l=_.Hy(this.hostElement).querySelector("#overflow-text"),I=document.createRange();l&&l.previousSibling?l.previousSibling instanceof HTMLImageElement?I.selectNode(l.previousSibling):I.selectNodeContents(l.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?I.selectNode(this.input.lastChild):I.selectNodeContents(this.input.lastChild));I.collapse(!1);return I.isPointInRange(z.startContainer,
z.startOffset)}return!1};
_.p.handleOverflowText=function(z){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var l=_.Hy(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();z=this.checkRangeAtEndOfInput()&&z;this.mergeOverflowText(l);for(var b,v=0,M=0,x,g=this.input.childNodes,G=0;G<g.length;G++){var u=g[G];u instanceof Text?(M+=u.textContent.length,M>this.maxCharacterLimit&&(b=u,v=this.maxCharacterLimit+u.textContent.length-M)):u instanceof HTMLImageElement&&
(b=void 0,M=u.dataset.emojiId&&((b=this.data)==null?0:b.emojiCharacterCount)?M+this.data.emojiCharacterCount:M+u.alt.length,b=this.input,v=G);if(M>this.maxCharacterLimit&&b){x=document.createRange();x.collapse(!1);l?(M=this.input.lastChild.previousSibling,M instanceof Text?x.setEnd(this.input.lastChild.previousSibling,M.textContent.length):M instanceof HTMLImageElement&&x.setEnd(this.input,this.input.childNodes.length-1)):x.selectNodeContents(this.input);x.setStart(b,v);break}}x&&(b=!1,I&&(z=x.isPointInRange(I.startContainer,
I.startOffset-1)),l||(l=document.createElement("span"),l.id="overflow-text",l.textContent="",l.setAttribute("contenteditable","true"),_.Hy(_.Hy(this.hostElement).querySelector("#input")).appendChild(l),b=!0),l&&(I=x.extractContents(),l.insertBefore(I,l.firstChild),z&&l.firstChild&&(I=document.createRange(),b?I.setStartAfter(l.lastChild):I.setStartAfter(l.firstChild),I.collapse(!0),l=window.getSelection(),l.removeAllRanges(),l.addRange(I))))}};
_.p.checkForDuplicateSpans=function(){for(var z=0;z<this.input.childNodes.length;z++){var l=this.input.childNodes[z];if(l.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(l);I=I.extractContents();this.input.insertBefore(I,l);l.remove()}}this.handleOverflowText(!0)};
_.p.getCurrentRange=function(){var z=window.getSelection();return z&&z.rangeCount?z.getRangeAt(0).cloneRange():null};
_.p.getInputRange=function(){var z=this.getCurrentRange();if(z){for(var l=z.commonAncestorContainer,I=!1,b=_.Hy(this.hostElement).querySelector("#input");l;){if(l===b){I=!0;break}l=l.parentNode}I||(z=null)}z||(z=this.getRangeAtEnd());return z};
_.p.getRangeAtEnd=function(){var z=document.createRange(),l=_.Hy(this.hostElement).querySelector("#input").lastChild;!l||l.nodeName!=="#text"&&l.nodeName!=="SPAN"?(z.selectNodeContents(_.Hy(this.hostElement).querySelector("#input")),z.collapse(!1)):l.nodeName==="#text"?z.setStart(l,l.textContent.length):z.setStart(l,l.childNodes.length);return z};
_.p.getChatParticipantSuggestions=function(z,l,I,b){var v=_.C("live_chat_enable_handles_web_text_input_update");if(l)for(var M in l)if(M.indexOf(z)===0||v&&M.indexOf(I+z)===0){var x=l[M],g=_.ID(x.authorName);b.push({suggestion:{author:!0,authorType:I,image:x.authorPhoto,alt:g,text:g}});if(b.length>=64)break}};
_.p.getSuggestions=function(z){var l=[],I=z.substring(0,3),b=H3_(_.HL,I,!0);if(b)for(var v in b)if(v.toLocaleLowerCase().indexOf(z)===0){var M=b[v];if(M&&M.emojiId){if(M=Z3p(_.HL,M.emojiId)){var x=void 0,g=void 0,G=void 0,u=void 0,Z=((x=M.image)==null?0:(g=x.accessibility)==null?0:(G=g.accessibilityData)==null?0:G.label)||M.isCustomEmoji?(u=M.shortcuts)==null?void 0:u[0]:M.emojiId;l.push({suggestion:{emoji:!0,image:M.image,alt:Z,text:v,textToInsertWhenSelected:M.isCustomEmoji?v:Z}})}if(l.length>=
64)break}}if(!this.participantsManager)return null;if(I.indexOf("@")===0||I.indexOf("#")===0)b=I.charAt(0),z=z.substring(1),v=_.C("live_chat_enable_handles_web_text_input_update"),I.indexOf("@")===0&&v&&(v=this.participantsManager.getAuthorsFromPrefix(I.substring(0,2)),this.getChatParticipantSuggestions(z,v,b,l)),I=I.substring(1),I=this.participantsManager.getAuthorsFromPrefix(I),this.getChatParticipantSuggestions(z,I,b,l);return l?l.sort(function(H,y){return y.suggestion.text<H.suggestion.text?-1:
y.suggestion.text===H.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(z){var l=_.C("live_chat_enable_handles_web_text_input_update"),I=z.authorType;l=z.text.indexOf(I)===0&&l?z.text+XwM:I+z.text+XwM;z.emoji?this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,z.textToInsertWhenSelected||""):z.author&&this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,l)};
_.p.updateSuggestionsAtCaret=function(){var z=this.getCurrentRange();z&&this.updateSuggestions(z,this.calculateTextBeforeRange(z))};
_.p.offsetStartOfRangeBy=function(z,l){for(;l>0;)if(z.startOffset-l>=0){z.setStart(z.startContainer,z.startOffset-l);break}else{l=z.startContainer instanceof HTMLImageElement?l-z.startContainer.alt.length:l-z.startOffset;var I=z.startContainer.previousSibling;if(!I){z.setStart(z.startContainer,0);break}if(_.C("live_chat_require_space_for_autocomplete_emoji")){var b=void 0,v=void 0;z.setStart(I,((b=I)==null?void 0:(v=b.textContent)==null?void 0:v.length)||0)}else z.setStart(I,I.childNodes.length||
0)}};
_.p.updateSuggestions=function(z,l){var I=this;this.JSC$14114_lastSuggestionRange&&(this.JSC$14114_lastSuggestionRange.detach(),this.JSC$14114_lastSuggestionRange=null);if((l=BhA.exec(l))&&l.length&&(l=l[l.length-1].toLocaleLowerCase(),l.length>2&&(this.offsetStartOfRangeBy(z,l.length),this.JSC$14114_lastSuggestionRange=z,(z=this.getSuggestions(l))&&z.length))){this.suggestions=z;_.IR(this,function(){_.Hy(I.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(z.length-1);return}this.dropdown.opened=!1};
_.p.completeEmojisInRange=function(z,l,I){var b=l.replace(/[\s\xa0]+$/,"");l=l.length-b.length;b=b.split(" ");b=b[b.length-1].trim().toLocaleLowerCase();var v=b.lastIndexOf(":");if(I&&!l&&v!==b.length-1)return!1;v!==-1&&(I=b.lastIndexOf(":",v-1),I!==-1&&(b=b.substring(I)));if((I=_.yb(_.HL,b))&&I.emojiId){I=Z3p(_.HL,I.emojiId)||null;this.offsetStartOfRangeBy(z,b.length+l);var M,x,g,G;b=(((M=I)==null?0:M.isCustomEmoji)?(x=I)==null?void 0:(g=x.shortcuts)==null?void 0:g[0]:(G=I)==null?void 0:G.emojiId)||
"";l&&(b+=XwM);this.insertTextAtRange(z,b);this.dropdown.opened=!1;return!0}return!1};
_.p.onSuggestion=function(z){this.insertSuggestion(z.detail);this.dropdown.opened=!1};
_.p.onKeyPress=function(z){z.keyCode===13&&(z.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.gC(this.hostElement,"yt-live-chat-send-message"))};
_.p.completeEmojis=function(){var z=document.createRange(),l=_.Hy(this.hostElement).querySelector("#input").lastChild;l?z.setStart(l,l.childNodes.length):(z.selectNodeContents(_.Hy(this.hostElement).querySelector("#input")),z.collapse(!1));this.completeEmojisInRange(z,this.calculateTextBeforeRange(z),_.C("live_chat_require_space_for_autocomplete_emoji"))};
_.p.maybePreventTextFormatting=function(z){!_.kx||!z.ctrlKey&&!z.metaKey||z.keyCode!==66&&z.keyCode!==73||(z.stopImmediatePropagation(),z.preventDefault())};
_.p.onKeyDown=function(z){this.maybePreventTextFormatting(z);if(this.dropdown.opened)switch(z.keyCode){case 27:this.dropdown.opened=!1;z.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;z.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);z.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),z.preventDefault()}};
_.p.onKeyUp=function(z){switch(z.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Zs)this.onInputChange()};
_.p.changeSuggestionIndex=function(z){if(this.dropdown.opened){var l=_.Hy(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<l.children.length&&(l.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(z+I)%I;z=l.children[this.suggestionIndex];z.active=!0;l.scrollTop=z.offsetTop}};
_.p.onInputPaste=function(z){z.preventDefault();(z=z.clipboardData)&&z.types&&(z=z.getData("text/plain")||"",z=z.replace(/\n/g,""),this.insertText(z));(z=this.getCurrentRange())&&z.commonAncestorContainer.parentElement.id==="input"&&z.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.onFocus=function(){this._setFocused(!0)};
_.p.onBlur=function(){this._setFocused(!1)};
_.p.insertText=function(z){this.insertTextAtRange(this.getInputRange(),z)};
_.p.insertTextAtRange=function(z,l){if(z&&(z.collapsed||z.deleteContents(),l=_.HL.createDocumentFragment(l,!0,!1))){for(var I=_.D((l==null?void 0:l.childNodes)||[]),b=I.next();!b.done;b=I.next()){b=b.value;var v=void 0,M=void 0,x=void 0,g=void 0,G=void 0;(x=(v=window)==null?void 0:(M=v.ShadyCSS)==null?void 0:M.ScopingShim)==null||(G=(g=x).scopeNode)==null||G.call(g,b,this.hostElement.localName)}I=l.lastChild;z.insertNode(l);this.focused||this.input.focus();if(this.focused){z=z.cloneRange();z.selectNodeContents(I);
z.collapse(!1);if(l=window.getSelection())l.removeAllRanges(),l.addRange(z);z.commonAncestorContainer.parentElement.id==="input"&&z.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}z=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(z);_.gC(this.hostElement,"yt-live-chat-message-input-change",z)}};
_.p.setLiveChatRichMessageInput=function(z){_.Hy(_.Hy(this.hostElement).querySelector("#input")).textContent="";if(z&&z.textSegments){for(var l=0;l<z.textSegments.length;l++){var I=z.textSegments[l];I.text?_.Hy(_.Hy(this.hostElement).querySelector("#input")).appendChild(_.HL.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.ur(_.HL,I.emojiId))&&_.Hy(_.Hy(this.hostElement).querySelector("#input")).appendChild(_.HL.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.p.setText=function(z){this.setLiveChatRichMessageInput(z?{textSegments:[{text:z}]}:null)};
_.p.calculateTextBeforeRange=function(z){var l="",I=z.startContainer;if(I&&I instanceof Text){var b;l=((b=I.textContent)==null?void 0:b.substring(0,z.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)l=I.textContent+l,I=I.previousSibling;return l.replace(m6," ")};
_.p.calculateLiveChatRichMessageInput=function(){for(var z=[],l="",I=_.Hy(_.Hy(this.hostElement).querySelector("#input")).childNodes,b=0;b<I.length;b++){var v=I[b];v instanceof Text?l+=v.textContent:v instanceof HTMLImageElement&&(v.dataset.emojiId?(l&&(z.push({text:l.replace(m6," ")}),l=""),z.push({emojiId:v.dataset.emojiId})):l+=v.alt)}l&&z.push({text:l.replace(m6," ")});if(I=_.Hy(this.hostElement).querySelector("#overflow-text")){l="";I=I.childNodes;for(b=0;b<I.length;b++)v=I[b],v instanceof Text?
l+=v.textContent:v instanceof HTMLImageElement&&(v.dataset.emojiId?(l&&(z.push({text:l.replace(m6," ")}),l=""),z.push({emojiId:v.dataset.emojiId})):l+=v.alt);l&&z.push({text:l.replace(m6," ")})}return{textSegments:z}};
_.p.computeCharacterCount=function(z){if(!z||!z.textSegments)return 0;for(var l=0,I=0;I<z.textSegments.length;I++){var b=z.textSegments[I];if(b.text)l+=b.text.length;else if(b.emojiId){var v=void 0;if((v=this.data)==null?0:v.emojiCharacterCount)l+=this.data.emojiCharacterCount;else{var M=v=void 0,x=void 0;l+=((M=_.ur(_.HL,(v=b)==null?void 0:v.emojiId))==null?void 0:(x=M.shortcuts)==null?void 0:x[0].length)||0}}}return l};
_.p.characterCountChanged=function(){_.gC(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.p.focusedChanged=function(){this.hostElement.dispatchEvent(new _.kY("focused-changed",this.focused))};
_.p.focus=function(){this.setFocus(!1)};
_.p.focusAtEnd=function(){this.setFocus(!0)};
_.p.setFocus=function(z){z=z?this.getRangeAtEnd():this.getInputRange();_.Hy(this.hostElement).querySelector("#input").focus();var l=window.getSelection();l&&(l.removeAllRanges(),l.addRange(z))};
_.p.insertEmoji=function(z){var l,I=((z==null?0:z.isCustomEmoji)?(l=z.shortcuts)==null?void 0:l[0]:z==null?void 0:z.emojiId)||"";this.insertText(I)};
_.p.computeText=function(z){if(!z||!z.textSegments)return"";for(var l="",I=0;I<z.textSegments.length;I++){var b=z.textSegments[I];if(b.text)l+=b.text;else if(b.emojiId){var v=void 0,M=void 0,x=void 0;l+=((M=_.ur(_.HL,(v=b)==null?void 0:v.emojiId))==null?void 0:(x=M.shortcuts)==null?void 0:x[0])||""}}return l};
_.p.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.vP.Object.defineProperties(Ke.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.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}}});
Ke.prototype.focusedChanged=Ke.prototype.focusedChanged;Ke.prototype.characterCountChanged=Ke.prototype.characterCountChanged;Ke.prototype.onSuggestion=Ke.prototype.onSuggestion;Ke.prototype.onMessageSet=Ke.prototype.onMessageSet;Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Ke.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ke.prototype,"disabled",void 0);_.e([_.B("disabled"),_.w("design:type",Number),_.w("design:paramtypes",[])],Ke.prototype,"inputTabIndex",null);_.e([_.B("data.maxCharacterLimit"),_.X({readOnly:!0,notify:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],Ke.prototype,"maxCharacterLimit",null);
_.e([_.B("liveChatRichMessageInput"),_.X({readOnly:!0,notify:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],Ke.prototype,"characterCount",null);_.e([_.B("maxCharacterLimit, characterCount"),_.X({readOnly:!0,notify:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],Ke.prototype,"remainingCharacterCount",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ke.prototype,"isChatMessageInput",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ke.prototype,"inputExpanded",void 0);_.e([_.X({readOnly:!0,notify:!0}),_.w("design:type",Object)],Ke.prototype,"liveChatRichMessageInput",void 0);_.e([_.X(),_.w("design:type",Object)],Ke.prototype,"messageInput",void 0);_.e([_.X(),_.w("design:type",Boolean)],Ke.prototype,"ignoreColorMapping",void 0);_.e([_.B("characterCount"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ke.prototype,"hasText",null);
_.e([_.X(),_.w("design:type",Object)],Ke.prototype,"isValidWithNoInputText",void 0);_.e([_.B("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.X(),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ke.prototype,"isInputValid",null);_.e([_.X({readOnly:!0,value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ke.prototype,"focused",void 0);_.e([_.X(),_.w("design:type",Array)],Ke.prototype,"suggestions",void 0);
_.e([_.X(),_.w("design:type",_.EM)],Ke.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",_.RV)],Ke.prototype,"participantsManager",void 0);_.e([_.X(),_.w("design:type",Boolean)],Ke.prototype,"noUnderline",void 0);_.e([_.X(),_.w("design:type",Object)],Ke.prototype,"inputMethodEditorActive",void 0);_.e([_.qX("#dropdown"),_.w("design:type",Object)],Ke.prototype,"dropdown",void 0);_.e([_.qX("#input"),_.w("design:type",HTMLElement)],Ke.prototype,"input",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ke.prototype,"dataChanged",null);_.e([_.By("messageInput"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ke.prototype,"onMessageSet",null);_.e([_.tP("yt-live-chat-select-suggestion"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ke.prototype,"onSuggestion",null);
_.e([_.By("characterCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ke.prototype,"characterCountChanged",null);_.e([_.By("focused"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ke.prototype,"focusedChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Ke);
_.i3_=_.r(Ke,"yt-live-chat-text-input-field-renderer",function(){if(mVA===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;REp===void 0&&(REp=document.createElement("template"));var b=REp;I.call(l,b.content.cloneNode(!0),z.content.firstChild);mVA=z}z=mVA;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var to=function(){var z=_.q.apply(this,arguments)||this;z.buttonOverrides={style:"overlay",type:"filled"};z.allowAnimations=!1;z.modern=_.C("web_button_rework_with_live");z.noPadding=!1;return z};
_.m(to,_.q);_.p=to.prototype;_.p.shouldSupportInlineActionButtons=function(){return!0};
_.p.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"}}}}};
_.p.ready=function(){var z=document.querySelector("yt-live-chat-app");z&&z.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.attached=function(){this.allowAnimations=!1};
_.p.dataChanged=function(){if(this.data){var z={"--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)};_.R8(this.hostElement,z);this.allowAnimations=!0}};
_.p.messageChanged=function(){var z,l=(z=this.data)==null?void 0:z.message;z=_.Hy(_.Hy(this.hostElement).querySelector("#message"));z.textContent="";l&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.p.computeShowOnlyHeader=function(z,l){return!z||z.pdgLikeButton||z.replyButton||z.buyFlowButton?!1:this.isEmpty(z,l)&&!z.footer};
_.p.computeShowFooterDivider=function(z,l,I){return z?!!z.footer&&!this.isEmpty(z,l)&&!I:!1};
_.p.computeIsUserEditable=function(z){return!!z.inputField};
_.p.computeHasHeartButton=function(z){return(z==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(z==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(z==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.p.computeNoveltyImage=function(z){if(z.headerOverlayImage&&z.headerOverlayImage.thumbnails.length){var l=z.headerOverlayImage.thumbnails[0],I,b;if((I=z.pdgPurchasedNoveltyLoggingDirectives)==null?0:(b=I.loggingDirectives)==null?0:b.trackingParams){var v,M;rSt((v=z.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=v.loggingDirectives)==null?void 0:M.trackingParams)}return l.width||0}return 0};
_.p.computeAuthorPhotoSize=function(z){return(z==null?0:z.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.p.inputFocus=function(){var z=_.Hy(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");z&&z.focus()};
_.p.inputInsertEmoji=function(z){var l=_.Hy(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");l&&l.insertEmoji(z)};
_.p.inputMessage=function(){var z=_.Hy(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),l;return z&&((l=this.data)==null?0:l.inputField)?(z.completeEmojis(),_.Ve(z.liveChatRichMessageInput)):null};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.p.isEmpty=function(z,l){return z?z.empty||!(z.message||z.inputField||l):!0};
_.p.onLowerBuyButtonClick=function(){var z,l=_.k((z=this.data)==null?void 0:z.buyButton,_.xm);l&&l.trackingParams&&!XiG(l.command)&&(z=_.ch(l.trackingParams))&&(l=_.sU())&&_.JH(l,z)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.vP.Object.defineProperties(to.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
to.prototype.isDeletedChanged=to.prototype.isDeletedChanged;to.prototype.messageChanged=to.prototype.messageChanged;to.prototype.dataChanged=to.prototype.dataChanged;_.e([_.t(bA_.YtPdgLiveChatItemBehavior),_.w("design:type",Object)],to.prototype,"ytPdgLiveChatItemBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],to.prototype,"ytLiveChatReduxBehavior",void 0);
_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],to.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],to.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:hEQ}),_.w("design:type",Object)],to.prototype,"engagementState",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.w("design:type",Boolean)],to.prototype,"isUserEditable",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.w("design:type",Boolean)],to.prototype,"hasHeartButton",void 0);_.e([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.w("design:type",Boolean)],to.prototype,"showOnlyHeader",void 0);
_.e([_.X({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.w("design:type",Boolean)],to.prototype,"showFooterDivider",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Object)],to.prototype,"allowAnimations",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],to.prototype,"dashboardMoneyFeed",void 0);_.e([_.X({computed:"computeNoveltyImage(data)"}),_.w("design:type",Number)],to.prototype,"noveltyWidth",void 0);
_.e([_.X({computed:"computeAuthorPhotoSize(data)"}),_.w("design:type",Number)],to.prototype,"authorPhotoSize",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],to.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],to.prototype,"noPadding",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],to.prototype,"dataChanged",null);
_.e([_.By("data.message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],to.prototype,"messageChanged",null);_.e([_.B("data","dashboardMoneyFeed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],to.prototype,"hideLowerBumper",null);_.e([_.By("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],to.prototype,"isDeletedChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],to);
_.r(to,"yt-live-chat-paid-message-renderer",function(){if(hiw===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;PeI===void 0&&(PeI=document.createElement("template"));var b=PeI;I.call(l,b.content.cloneNode(!0),z.content.firstChild);hiw=z}z=hiw;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var FmA;var QoI;var BL=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;return z};
_.m(BL,_.F6);BL.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.sZ("openPopupConfig")};
_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],BL.prototype,"ytOpenPopupBehavior",void 0);_.e([_.Q5()],BL);_.XD=[_.$$.YtOpenPopupBehavior,BL.prototype];var YVA;var vU=[_.BF,TOj,_.M1,_.XN,_.zb,_.zJ_,_.FN,_.SEj,_.hf,pkt];_.C("web_watch_get_updated_metadata_response_processing")&&vU.push(_.z50);_.C("web_continuation_response_processing")&&vU.push(_.a2);var qkf=new _.yH("RESPONSE_RECEIVED_COMMANDS"),IDt=new _.yH("RESPONSE_RECEIVED_COMMANDS");var Uf7="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),LR5=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],nGQ=["GET_UNSEEN_NOTIFICATION_COUNT"];var qQ=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;z.serviceEndpointHandlers=[];return z};
_.m(qQ,_.F6);qQ.prototype.created=function(){var z=this;this.endpointHandlerActionMap={"yt-service-request":function(l,I,b,v){var M;return WRH(z.hostElement,l,I,b,v,z.serviceEndpointHandlers,(M=z.onEntitiesUpdated)==null?void 0:M.bind(z))}}};
qQ.prototype.attached=function(){_.n2(_.WW.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
qQ.prototype.detached=function(){_.UN(_.WW.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.e([_.Q5()],qQ);_.Thp=[qQ.prototype];var cS0,SV4=function(){return cS0!==void 0?cS0:cS0=document.createElement("template")};
document.head.appendChild(SV4().content);var dVA;var ofA=document.head,PFA=ofA.appendChild,hEA;if(dVA===void 0){var so_=document.createElement("template");_.K(so_,"\x3c!--css-build:shady--\x3e");so_.content.insertBefore(SV4().content.cloneNode(!0),so_.content.firstChild);dVA=so_}hEA=dVA;PFA.call(ofA,hEA.content);var rSA,$VI=function(){return rSA!==void 0?rSA:rSA=document.createElement("template")};
document.head.appendChild($VI().content);var eEz;var wwA=document.head,ASu=wwA.appendChild,WmA;if(eEz===void 0){var nfu=document.createElement("template");_.K(nfu,"\x3c!--css-build:shady--\x3e");nfu.content.insertBefore($VI().content.cloneNode(!0),nfu.content.firstChild);eEz=nfu}WmA=eEz;ASu.call(wwA,WmA.content);var LmI;_.sW("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.sW("sharingRendererButtons","buttonRenderer","ytd-button-renderer");LmI=_.C("web_button_rework")&&_.rr("BUTTON_REWORK")||_.C("web_button_rework_with_live");_.ir=function(){var z=_.q.apply(this,arguments)||this;z.isPressed=!1;z.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return z};
_.m(_.ir,_.q);_.p=_.ir.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.onHintIdChanged=function(){var z=this,l,I,b=(l=this.ytButtonBehavior.data)==null?void 0:(I=l.hint)==null?void 0:I.hintRenderer;if(b&&b.hintId){l=_.EK(this.hostElement,"yt-get-opened-popups-action");l=(l&&l.length===1?l[0]:[]).length>0;var v=null;b.hintId!=="sponsor-pre-purchase"||l?b.hintId.startsWith("sponsor-post-purchase")&&!l?v=Cz_("membership-manage"):b.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!l&&(v=Cz_("membership-freebie-join")):v=Cz_("membership-join");v&&_.ow.addLowPriorityJob(function(){for(var M=
_.D(v),x=M.next();!x.done;x=M.next())z.ytComponentBehavior.resolveCommand(x.value)})}};
_.p.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.p.onYtNavigate=function(z){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(z.detail.endpoint);l&&(z.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(l))};
_.p.onYtServiceRequestSent=function(z,l){this.handleServiceRequestActions(l);_.gC(this.hostElement,"yt-service-request-sent-button-renderer")};
_.p.onServiceRequestCompleted=function(z,l){this.handleServiceRequestActions(l);_.gC(this.hostElement,"yt-service-request-completed-button-renderer")};
_.p.updateButton=function(z){var l;if(z=(l=_.k(z,K3M))==null?void 0:l.updatedButton)this.ytButtonBehavior.data=_.k(z,_.xm)};
_.p.handleUpdateButtonAction=function(z){var l=this.ytButtonBehavior.data;l.targetId&&z.updateButtonAction.targetId&&l.targetId===z.updateButtonAction.targetId&&this.updateButton(z)};
_.p.handleServiceRequestActions=function(z){if(z=z.actions)for(var l=0;l<z.length;l++)this.updateButton(z[l])};
_.vP.Object.defineProperties(_.ir,{template:{configurable:!0,enumerable:!0,get:function(){if(YVA===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);YVA=z}z=YVA;return z}}});
_.ir.prototype.onServiceRequestCompleted=_.ir.prototype.onServiceRequestCompleted;_.ir.prototype.onYtServiceRequestSent=_.ir.prototype.onYtServiceRequestSent;_.ir.prototype.onYtNavigate=_.ir.prototype.onYtNavigate;_.ir.prototype.onPressedStateChanged=_.ir.prototype.onPressedStateChanged;_.ir.prototype.onHintIdChanged=_.ir.prototype.onHintIdChanged;_.e([_.X(),_.w("design:type",Object)],_.ir.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],_.ir.prototype,"isPressed",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],_.ir.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.bTj.YtButtonBehavior),_.w("design:type",Object)],_.ir.prototype,"ytButtonBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],_.ir.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],_.ir.prototype,"ytComponentBehavior",void 0);
_.e([_.t(Vy.YtRenderButtonBehavior),_.w("design:type",Object)],_.ir.prototype,"ytRenderButtonBehavior",void 0);_.e([_.By("data.hint.hintRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],_.ir.prototype,"onHintIdChanged",null);_.e([_.By("isPressed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],_.ir.prototype,"onPressedStateChanged",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],_.ir.prototype,"onYtNavigate",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],_.ir.prototype,"onYtServiceRequestSent",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],_.ir.prototype,"onServiceRequestCompleted",null);_.e([_.S({is:"ytd-button-renderer",disableElementRegistration:LmI})],_.ir);var FD=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_button_rework_with_live");z.buttonOverrides={style:"overlay",type:"filled"};return z};
_.m(FD,_.q);_.p=FD.prototype;_.p.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"}}}}};
_.p.ready=function(){var z=document.querySelector("yt-live-chat-app");z&&z.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.dataChanged=function(){if(this.data&&this.data.sticker){var z=_.ZY(this.data.sticker.thumbnails,this.stickerWidth);z||_.Ov$(z).thenCatch(function(){_.PW(new _.qB("Failed to load Super Sticker with url",z))})}};
_.p.computeAuthorPhotoSize=function(z){return(z==null?0:z.isV2Style)?32:40};
_.p.computeIsV2Style=function(z){return(z==null?0:z.isV2Style)?!0:!1};
_.p.onStickerLoaded=function(z){var l,I,b;(l=_.pJ(z))==null||(I=l.parentNode)==null||(b=I.classList)==null||b.add("sticker-loaded")};
_.p.computeNoveltyImageWidth=function(z){var l,I;if(z==null?0:(l=z.headerOverlayImage)==null?0:(I=l.thumbnails)==null?0:I.length){l=z.headerOverlayImage.thumbnails[0];var b,v;if((b=z.pdgPurchasedNoveltyLoggingDirectives)==null?0:(v=b.loggingDirectives)==null?0:v.trackingParams){var M,x;rSt((M=z.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(x=M.loggingDirectives)==null?void 0:x.trackingParams)}return l.width||0}return 0};
_.p.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.p.updateStickerStyles=function(){var z=this.data;z&&(z={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(z.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(z.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(z.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(z.authorNameTextColor)},
_.R8(this.hostElement,z))};
_.p.onBuyButtonClick=function(){var z,l=_.k((z=this.data)==null?void 0:z.buyButton,_.xm);l&&!XiG(l.command)&&this.ytRendererBehavior.logExplicitClick(l)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.vP.Object.defineProperties(FD.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 z;return((z=this.data)==null?0:z.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
FD.prototype.updateStickerStyles=FD.prototype.updateStickerStyles;FD.prototype.isDeletedChanged=FD.prototype.isDeletedChanged;FD.prototype.onStickerLoaded=FD.prototype.onStickerLoaded;FD.prototype.dataChanged=FD.prototype.dataChanged;_.e([_.t(bA_.YtPdgLiveChatItemBehavior),_.w("design:type",Object)],FD.prototype,"ytPdgLiveChatItemBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],FD.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],FD.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],FD.prototype,"data",void 0);
_.e([_.X({computed:"computeAuthorPhotoSize(data)"}),_.w("design:type",Number)],FD.prototype,"authorPhotoSize",void 0);_.e([_.X(),_.w("design:type",Boolean)],FD.prototype,"isDeleted",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],FD.prototype,"dashboardMoneyFeed",void 0);_.e([_.X({computed:"computeNoveltyImageWidth(data)"}),_.w("design:type",Number)],FD.prototype,"noveltyWidth",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],FD.prototype,"modern",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.w("design:type",Boolean)],FD.prototype,"isV2Style",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FD.prototype,"dataChanged",null);_.e([_.tP("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],FD.prototype,"onStickerLoaded",null);
_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],FD.prototype,"stickerWidth",null);_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],FD.prototype,"stickerHeight",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],FD.prototype,"hasHeartButton",null);_.e([_.B("data","dashboardMoneyFeed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],FD.prototype,"hideLowerBumper",null);
_.e([_.By("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FD.prototype,"isDeletedChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FD.prototype,"updateStickerStyles",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],FD);
_.r(FD,"yt-live-chat-paid-sticker-renderer",function(){if(QoI===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;FmA===void 0&&(FmA=document.createElement("template"));var b=FmA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);QoI=z}z=QoI;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var UV_;var ad4;var VUA,jop=function(){return VUA!==void 0?VUA:VUA=document.createElement("template")};
document.head.appendChild(jop().content);var JSw,zlw=function(){return JSw!==void 0?JSw:JSw=document.createElement("template")};
document.head.appendChild(zlw().content);var l30;var I3w,bh4=function(){return I3w!==void 0?I3w:I3w=document.createElement("template")};
document.head.appendChild(bh4().content);var vGM;var M4A=document.head,psw=M4A.appendChild,DfA;if(vGM===void 0){var xfA=document.createElement("template");_.K(xfA,"\x3c!--css-build:shady--\x3e");xfA.content.insertBefore(bh4().content.cloneNode(!0),xfA.content.firstChild);vGM=xfA}DfA=vGM;psw.call(M4A,DfA.content);var Ohw=document.head,gGw=Ohw.appendChild,Gmu;if(l30===void 0){var QS=document.createElement("template");_.K(QS,"\x3c!--css-build:shady--\x3e");QS.content.insertBefore(zlw().content.cloneNode(!0),QS.content.firstChild);QS.content.insertBefore(jop().content.cloneNode(!0),QS.content.firstChild);l30=QS}Gmu=l30;gGw.call(Ohw,Gmu.content);var YY=function(){var z=_.F6.apply(this,arguments)||this;z.focusedIndex=0;z.verticalOffset=0;z.verticalAlign="top";z.dynamicAlign=!0;return z};
_.m(YY,_.F6);YY.prototype.emojiUrl=function(z){z=_.ur(this.emojiManager,z);if(!z)return"";var l;z=(l=z.image)==null?void 0:l.thumbnails;return _.ZY(z,24)||""};
var N8_=function(z){var l;z.emojiVariants&&(l=z.data)!=null&&l.target&&_.IR(z,function(){z.set("verticalOffset",-1*z.hostElement.clientHeight);var I=_.Hy(z.hostElement).querySelector("img");I&&I.focus()})};
_.p=YY.prototype;_.p.onKeyboardEnter=function(){};
_.p.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.p.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.p.onKeyDown=function(z){switch(z.keyCode){case 13:this.onKeyboardEnter();z.preventDefault();break;case 40:this.changeFocus(1);z.preventDefault();break;case 38:this.changeFocus(-1);z.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.p.onYtEmojiSelect=function(z){var l=this,I,b,v,M,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1)return b=(I=l.data)==null?void 0:I.emoji,x=((v=b)==null?void 0:v.stickyPrefId)||((M=b)==null?void 0:M.emojiId),G=(g=z.detail)==null?void 0:g.emojiId,x&&G&&x!==G?Z.yield((u=l.emojiManager)==null?void 0:ySA(u,b,G),2):Z.return();_.Gb(l.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[b,G]);_.qe(Z)})};
_.p.changeFocus=function(z){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+z+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(z=_.Hy(this.hostElement).querySelector("#variants"))&&z.children[this.focusedIndex].focus())};
_.vP.Object.defineProperties(YY.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
YY.prototype.onYtEmojiSelect=YY.prototype.onYtEmojiSelect;YY.prototype.onKeyDown=YY.prototype.onKeyDown;YY.prototype.onEmojiVariantsChanged=YY.prototype.onEmojiVariantsChanged;YY.prototype.onVerticalOffsetOrPositionTargetChanged=YY.prototype.onVerticalOffsetOrPositionTargetChanged;_.e([_.t(_.GJ),_.w("design:type",Object)],YY.prototype,"ironOverlayBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],YY.prototype,"data",void 0);_.e([_.X(),_.w("design:type",_.EM)],YY.prototype,"emojiManager",void 0);
_.e([_.X(),_.w("design:type",Object)],YY.prototype,"emojiVariants",void 0);_.e([_.X(),_.w("design:type",Object)],YY.prototype,"focusedIndex",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],YY.prototype,"positionTarget",null);_.e([_.X({reflectToAttribute:!0}),_.B("verticalOffset","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YY.prototype,"isPositioned",null);_.e([_.X(),_.w("design:type",Object)],YY.prototype,"verticalOffset",void 0);
_.e([_.X(),_.w("design:type",Object)],YY.prototype,"verticalAlign",void 0);_.e([_.X(),_.w("design:type",Object)],YY.prototype,"dynamicAlign",void 0);_.e([_.By("verticalOffset","positionTarget"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YY.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.e([_.By("emojiVariants"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YY.prototype,"onEmojiVariantsChanged",null);
_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],YY.prototype,"onKeyDown",null);_.e([_.tP("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype",Promise)],YY.prototype,"onYtEmojiSelect",null);_.e([_.Q5()],YY);var EG_=[YY.prototype];var uju;var Zhn;var Hhj=/medium-light|medium-dark|light|medium|dark/,yL4=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,f3j=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),TK=function(){var z=_.q.apply(this,arguments)||this;z.userSelection={left:null,right:null};z.scrollAction="lock";z.isEmojiDraftInProgress=!1;return z};
_.m(TK,_.q);_.p=TK.prototype;_.p.onClick=function(z){z=_.pJ(z);z instanceof HTMLImageElement&&this.selectOrUpdateEmoji(z)};
_.p.selectOrUpdateEmoji=function(z){var l=z.getAttribute("selection");l&&(l==="default"?_.gC(this.hostElement,"yt-emoji-select",_.ur(this.emojiManager,z.id)):l==="left"?this.userSelection=Object.assign({},this.userSelection,{left:z.src}):l==="right"?this.userSelection=Object.assign({},this.userSelection,{right:z.src}):l==="user"&&this.userSelection.left&&this.userSelection.right&&_.gC(this.hostElement,"yt-emoji-select",_.ur(this.emojiManager,z.id)))};
_.p.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.p.onMultiSelectorThumbnailRowChanged=function(){var z,l,I;((z=this.data)==null?0:(l=z.emoji)==null?0:(I=l.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.p.getThumbnailFromEmojiRow=function(z){var l,I;return(z==null?void 0:(l=z.thumbnails)==null?void 0:(I=l[0])==null?void 0:I.url)||""};
_.p.getEmojiAltTextForPartialSelector=function(z){var l;return((l=this.getThumbnailFromEmojiRow(z).match(yL4))==null?void 0:l[0])||""};
_.p.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.p.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.p.getRowSelection=function(z){return["left","right"][z]};
_.p.getIdFromComposedEmoji=function(z){return(z==null?void 0:z.emojiId)||""};
_.p.getEmojiFromPartialSelections=function(z,l){if(!z&&!l)return null;var I,b,v=(I=this.data)==null?void 0:(b=I.emoji)==null?void 0:b.variantIds;if(!v||!v.length)return null;var M;z=(M=z.match(Hhj))==null?void 0:M[0];var x;l=(x=l.match(Hhj))==null?void 0:x[0];if(!z||!l)return null;var g=f3j.get(z);x=f3j.get(l);if(g===x){x=Array.from(f3j.values()).filter(function(u){return u!==g}).join("|");
var G=new RegExp("^((?!("+x+")).)*"+g+"$")}else G=new RegExp(g+".*"+x);return(v=v.find(function(u){return G.test(u)}))&&_.ur(this.emojiManager,v)||null};
_.p.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var z,l=this.ytEmojiSelectorBehavior.emojiUrl(((z=this.data.emoji)==null?void 0:z.emojiId)||"");_.Hy(this.hostElement).querySelector('[selection="user"]').src.includes(l)||(this.isEmojiDraftInProgress=!0)}};
_.p.onDomChange=function(){N8_(this.ytEmojiSelectorBehavior)};
_.p.getFocusableElements=function(){return _.Hy(this.hostElement).querySelectorAll("img").filter(function(z){return z.getAttribute("role")==="option"})};
_.p.changeFocus=function(z){var l=this.getFocusableElements();l!=null&&l.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+z+l.length)%l.length,this.ytEmojiSelectorBehavior.focusedIndex<l.length&&(z=l[this.ytEmojiSelectorBehavior.focusedIndex])&&z.focus())};
_.p.onKeyboardEnter=function(){var z=this.getFocusableElements();z!=null&&z.length&&(z=z[this.ytEmojiSelectorBehavior.focusedIndex])&&z instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(z),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.vP.Object.defineProperties(TK.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var z=this,l,I,b;return this.emojiManager&&((l=this.data)==null?0:(I=l.emoji)==null?0:(b=I.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(v){return!!v&&_.ur(z.emojiManager,v)}).filter(function(v){return!!v}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var z,l=(z=this.userSelection)==null?void 0:z.left,I;z=(I=this.userSelection)==null?void 0:I.right;return l&&z?this.getEmojiFromPartialSelections(l,z):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.composedEmojiSelection)==null?0:z.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var l;z=(l=this.userSelection)==null?void 0:l.left;var I;l=(I=this.userSelection)==null?void 0:I.right;if(!z&&!l){var b;return this.ytEmojiSelectorBehavior.emojiUrl(((b=this.data.emoji)==null?void 0:b.emojiId)||"")}return z&&!l?z:!z&&l?l:""}}});
TK.prototype.onMultiSelectorThumbnailRowChanged=TK.prototype.onMultiSelectorThumbnailRowChanged;TK.prototype.onClick=TK.prototype.onClick;_.e([_.t(_.GJ),_.w("design:type",Object)],TK.prototype,"ironOverlayBehavior",void 0);_.e([_.t(EG_),_.w("design:type",Object)],TK.prototype,"ytEmojiSelectorBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TK.prototype,"data",void 0);_.e([_.X(),_.w("design:type",_.EM)],TK.prototype,"emojiManager",void 0);
_.e([_.X(),_.w("design:type",Object)],TK.prototype,"userSelection",void 0);_.e([_.X(),_.w("design:type",Object)],TK.prototype,"scrollAction",void 0);_.e([_.X(),_.w("design:type",Object)],TK.prototype,"isEmojiDraftInProgress",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],TK.prototype,"emojiVariants",null);_.e([_.B("data","userSelection"),_.w("design:type",Object),_.w("design:paramtypes",[])],TK.prototype,"composedEmojiSelection",null);
_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[MouseEvent]),_.w("design:returntype")],TK.prototype,"onClick",null);_.e([_.By("data.emoji.multiSelectorThumbnailRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TK.prototype,"onMultiSelectorThumbnailRowChanged",null);_.e([_.B("data","userSelection","composedEmojiSelection"),_.w("design:type",String),_.w("design:paramtypes",[])],TK.prototype,"draftEmojiUrl",null);
_.e([_.Wy({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],TK);
_.r(TK,"yt-emoji-multi-person-selector",function(){if(Zhn===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;uju===void 0&&(uju=document.createElement("template"));var b=uju;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Zhn=z}z=Zhn;return z},{mode:2});var C$j;var kmu;var cL=function(){var z=_.q.apply(this,arguments)||this;z.tooltip_=null;return z};
_.m(cL,_.q);_.p=cL.prototype;_.p.dataChanged_=function(){var z;if((z=this.data)==null?0:z.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Hy(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.kE)(this.tooltip_).textContent=this.data.tooltip};
_.p.computeTargetId=function(){var z;return((z=this.data)==null?void 0:z.targetId)||""};
_.p.computeId_=function(z){return z};
_.p.computeIcon_=function(z){return _.Re(z)};
_.p.onTap_=function(){this.active=!this.active;_.gC(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.p.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("active-changed",this.active))};
_.vP.Object.defineProperties(cL.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var z,l;if((z=this.data)==null?0:(l=z.icon)==null?0:l.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,b;return((I=this.data)==null?void 0:(b=I.icon)==null?void 0:b.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
cL.prototype.activeChangedForBinding=cL.prototype.activeChangedForBinding;cL.prototype.dataChanged_=cL.prototype.dataChanged_;_.e([_.t(_.EF.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],cL.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cL.prototype,"data",void 0);_.e([_.X({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.w("design:type",String)],cL.prototype,"id",void 0);
_.e([_.X({computed:"computeTargetId(data.targetId)"}),_.w("design:type",String)],cL.prototype,"targetId",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],cL.prototype,"active",void 0);_.e([_.X({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.w("design:type",String)],cL.prototype,"icon",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cL.prototype,"dataChanged_",null);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],cL.prototype,"iconFilled",null);_.e([_.By("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cL.prototype,"activeChangedForBinding",null);_.e([_.Wy({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],cL);
_.r(cL,"yt-emoji-picker-category-button-renderer",function(){if(kmu===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;C$j===void 0&&(C$j=document.createElement("template"));var b=C$j;I.call(l,b.content.cloneNode(!0),z.content.firstChild);kmu=z}z=kmu;return z},{mode:2});var Rlp;var mfA;var S$=function(){var z=_.q.apply(this,arguments)||this;z.ariaLabel=null;z.ariaActivedescendant=null;z.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};z.JSC$14179_ignoreNextFocus_=!1;z.longPressTimeoutId=-1;return z};
_.m(S$,_.q);_.p=S$.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var z=_.iY(),l=0;l<this.emoji.length;l++){var I={veType:88013,elementIndex:l},b=this.emoji[l];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(I=_.q8(z,I))&&(b.visualElement=I)}};
_.p.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.p.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.p.emojiSkinToneChanged_=function(z){this.skinTone=z};
_.p.dataChanged=function(){this.data&&this.data.emojiData&&Efj(this.emojiManager,this.data.emojiData)};
_.p.emojiUrl=function(z){z=this.getEmoji(z);if(!z)return"";var l;z=(l=z.image)==null?void 0:l.thumbnails;return _.ZY(z,24)||""};
_.p.emojiAlt=function(z){var l=this.get("image.accessibility.accessibilityData.label",z);return l?l:z.isCustomEmoji?z.shortcuts[0]:z.emojiId};
_.p.emojiAriaLabel=function(z){return z.shortcuts?z.shortcuts[0]:""};
_.p.emojiAriaSelected=function(z,l,I){return z&&I==l?"true":"false"};
_.p.getEmoji=function(z){if(this.emojiManager)return this.shouldUseStickyPreferences?Z3p(this.emojiManager,z):Z$(this.emojiManager,z)};
_.p.computeId_=function(z){return z.categoryId||""};
_.p.computeEmoji=function(z){var l=this;return this.emojiManager?z.emojiIds?z.emojiIds.map(function(I){return I?_.ur(l.emojiManager,I):null}).filter(gDH):z.emojiData?z.emojiData.map(function(I){var b=!!I.emojiId&&_.ur(l.emojiManager,I.emojiId);
return b?Object.assign({},b,I):null}).filter(gDH):[]:[]};
_.p.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.p.computeAriaLabel_=function(z){return _.ID(z)};
_.p.computeAriaActivedescendant_=function(z,l){return z&&z[l]?z[l].emojiId||"":""};
_.p.handleLongPressEmojiWithVariants=function(z,l){this.changeFocusToEmoji(z.emojiId,!1);this.openVariantSelector(z,l)};
_.p.onMouseDown=function(z){var l=this;this.hostElement!==document.activeElement&&(this.JSC$14179_ignoreNextFocus_=!0);if(z.button===0){var I=_.pJ(z);if(I instanceof HTMLImageElement){var b=_.Hy(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(b)&&(this.longPressTimeoutId=setTimeout(function(){l.handleLongPressEmojiWithVariants(b,I)},500))}}};
_.p.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.p.onFocus=function(){this.JSC$14179_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14179_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.emojiContainsVariants=function(z){return!!(z&&z.variantIds&&z.variantIds.length)};
_.p.onClick=function(z){clearTimeout(this.longPressTimeoutId);z=_.pJ(z);if(z instanceof HTMLImageElement){var l=z.id;this.changeFocusToEmoji(l,!1);var I=this.getEmoji(l),b;if(b=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var v;b=!((v=this.emojiManager.emojiMap[l])!=null&&v.stickyPrefId)}b?(v=_.Hy(this.hostElement).querySelector("#repeat").itemForElement(z),this.openVariantSelector(v,z)):_.gC(this.hostElement,"yt-emoji-select",I)}};
_.p.isActiveEmojiWithVariants=function(z,l){return z&&l?l.stickyPrefId?z===l.stickyPrefId:z===l.emojiId:!1};
_.p.onCloseEmojiVariantSelector=function(z){this.activeEmojiWithVariantsId===z&&(this.activeEmojiWithVariantsId="")};
_.p.onMouseOver_=function(z){z=_.pJ(z);z instanceof HTMLImageElement&&_.gC(this.hostElement,"yt-emoji-hover",_.ur(this.emojiManager,z.id))};
_.p.changeFocus_=function(z,l){this.focusedIndex=(this.focusedIndex+z+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(z=this.emoji[this.focusedIndex],l&&(this.showFocus=!0,_.Hy(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.gC(this.hostElement,"yt-emoji-hover",z)))};
_.p.changeFocusToEmoji=function(z,l){if(z){var I=this.emoji.findIndex(function(b){return b.emojiId===z});
I!==-1&&this.changeFocus_(I-this.focusedIndex,l)}};
_.p.onKeyDown_=function(z){switch(z.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var l=this.emoji[this.focusedIndex];if(l&&l.emojiId){if(this.emojiContainsVariants(l)){var I=_.Hy(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(l,I)}else _.gC(this.hostElement,"yt-emoji-select",Z$(this.emojiManager,l.emojiId)),this.hostElement.focus();z.preventDefault()}}break;case 40:this.changeFocus_(1,!0);z.preventDefault();break;case 38:this.changeFocus_(-1,!0),
z.preventDefault()}};
_.p.onEmojiStickyPreferenceChanged=function(z,l){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&z.emojiId&&z.variantIds&&z.variantIds.includes(l)&&this.activeEmojiWithVariantsId!==l&&this.setStickyEmojiPreference(z.emojiId,l)};
_.p.openVariantSelector=function(z,l){this.activeEmojiWithVariantsId=z.stickyPrefId||z.emojiId||"";_.gC(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:z,target:l})};
_.p.setStickyEmojiPreference=function(z,l){if(this.data){var I=this.emoji.findIndex(function(v){return v.emojiId===z});
if(I!==-1){var b=this.emoji[I];b.stickyPrefId=l;this.set("emoji."+I,Object.assign({},b));this.activeEmojiWithVariantsId=l}}};
S$.prototype.onKeyDown_=S$.prototype.onKeyDown_;S$.prototype.onMouseOver_=S$.prototype.onMouseOver_;S$.prototype.onClick=S$.prototype.onClick;S$.prototype.onBlur_=S$.prototype.onBlur_;S$.prototype.onFocus=S$.prototype.onFocus;S$.prototype.onMouseUp=S$.prototype.onMouseUp;S$.prototype.onMouseDown=S$.prototype.onMouseDown;S$.prototype.dataChanged=S$.prototype.dataChanged;S$.prototype.disableIncrementalLoadingChanged_=S$.prototype.disableIncrementalLoadingChanged_;S$.prototype.emojiManagerChanged_=S$.prototype.emojiManagerChanged_;
S$.prototype.emojiChanged_=S$.prototype.emojiChanged_;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],S$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],S$.prototype,"data",void 0);_.e([_.X({computed:"computeId_(data)"}),_.w("design:type",String)],S$.prototype,"id",void 0);_.e([_.X({computed:"computeEmoji(data)"}),_.w("design:type",Array)],S$.prototype,"emoji",void 0);_.e([_.X(),_.w("design:type",Number)],S$.prototype,"skinTone",void 0);
_.e([_.X(),_.w("design:type",_.EM)],S$.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",Boolean)],S$.prototype,"disableIncrementalLoading",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],S$.prototype,"focusedIndex",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],S$.prototype,"showFocus",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.w("design:type",Object)],S$.prototype,"ariaLabel",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.w("design:type",Object)],S$.prototype,"ariaActivedescendant",void 0);_.e([_.X({value:60}),_.w("design:type",Number)],S$.prototype,"domRepeatTargetFramerate",void 0);_.e([_.X({value:1}),_.w("design:type",Number)],S$.prototype,"domRepeatInitialCount",void 0);_.e([_.X({value:""}),_.w("design:type",String)],S$.prototype,"activeEmojiWithVariantsId",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],S$.prototype,"shouldUseStickyPreferences",void 0);_.e([_.By("emoji"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"emojiChanged_",null);_.e([_.By("emojiManager"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"emojiManagerChanged_",null);
_.e([_.By("disableIncrementalLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"disableIncrementalLoadingChanged_",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"dataChanged",null);_.e([_.tP("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],S$.prototype,"onMouseDown",null);
_.e([_.tP("mouseup"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"onMouseUp",null);_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"onFocus",null);_.e([_.tP("blur"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S$.prototype,"onBlur_",null);
_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],S$.prototype,"onClick",null);_.e([_.tP("mouseover"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],S$.prototype,"onMouseOver_",null);_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],S$.prototype,"onKeyDown_",null);
_.e([_.Wy({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],S$);
_.r(S$,"yt-emoji-picker-category-renderer",function(){if(mfA===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Rlp===void 0&&(Rlp=document.createElement("template"));var b=Rlp;I.call(l,b.content.cloneNode(!0),z.content.firstChild);mfA=z}z=mfA;return z},{mode:2});var KR_;var t4I;var B8z;var Xsz;var dI=function(){var z=_.q.apply(this,arguments)||this;z.ariaLabel=null;z.ariaActivedescendant=null;z.getFormattedStringRawText=_.ID;z.JSC$14185_ignoreNextFocus_=!1;return z};
_.m(dI,_.q);_.p=dI.prototype;_.p.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")};
_.p.emojiUrl=function(z){var l,I;z=(l=Z$(this.emojiManager,z,!0))==null?void 0:(I=l.image)==null?void 0:I.thumbnails;return _.ZY(z,24)||""};
_.p.emojiAlt=function(z){var l=this.get("image.accessibility.accessibilityData.label",z);return l?l:z.isCustomEmoji?z.shortcuts[0]:z.emojiId};
_.p.emojiId=function(z){return"emoji"+z};
_.p.computeId_=function(z){return z.categoryId||""};
_.p.computeAriaActivedescendant_=function(z){return this.emoji&&z<this.emoji.length?this.emojiId(z):""};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var z=_.iY(),l=0;l<this.emoji.length;l++){var I={veType:88013,elementIndex:l},b=this.emoji[l];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(I=_.q8(z,I))&&(b.visualElement=I)}};
_.p.computeEmoji_=function(z){var l=this;return this.emojiManager?z.emojiIds.map(function(I){return _.ur(l.emojiManager,I,!0)}).filter(Gax):[]};
_.p.titleOffsetChanged_=function(){var z=this.hostElement.getBoundingClientRect(),l=_.Hy(this.hostElement).querySelector("#title").getBoundingClientRect();z=Math.max(0,Math.min(this.titleOffset,z.height-l.height));_.Hy(this.hostElement).querySelector("#title").style.top=z+"px"};
_.p.onEmojiMouseOver_=function(z){_.gC(this.hostElement,"yt-emoji-hover",z.model.item)};
_.p.onEmojiTap_=function(z){this.data.command&&(z=UV1(_.pG().resolve(_.MB(wE)),this.data.command,z),_.gC(this.hostElement,"yt-navigate",z))};
_.p.emojiAriaLabel=function(z){return z.shortcuts[0]};
_.p.emojiAriaSelected=function(z,l,I){return z&&I==l?"true":"false"};
_.p.changeFocus_=function(z,l){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+z+I)%I;z=this.emoji[this.focusedIndex];if(l){var b;(b=_.Hy(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||b.scrollIntoView(!1);_.gC(this.hostElement,"yt-emoji-hover",z)}};
_.p.onMouseDown_=function(){this.JSC$14185_ignoreNextFocus_=!0};
_.p.onFocus_=function(){this.JSC$14185_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14185_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.onKeyDown_=function(z){switch(z.keyCode){case 13:this.onEmojiTap_(z);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);z.preventDefault();break;case 38:this.changeFocus_(-1,!0),z.preventDefault()}};
dI.prototype.onKeyDown_=dI.prototype.onKeyDown_;dI.prototype.onBlur_=dI.prototype.onBlur_;dI.prototype.onFocus_=dI.prototype.onFocus_;dI.prototype.onMouseDown_=dI.prototype.onMouseDown_;dI.prototype.onEmojiTap_=dI.prototype.onEmojiTap_;dI.prototype.titleOffsetChanged_=dI.prototype.titleOffsetChanged_;dI.prototype.emojiChanged_=dI.prototype.emojiChanged_;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],dI.prototype,"data",void 0);_.e([_.X({computed:"computeId_(data)"}),_.w("design:type",String)],dI.prototype,"id",void 0);_.e([_.X({computed:"computeEmoji_(data)"}),_.w("design:type",Array)],dI.prototype,"emoji",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],dI.prototype,"titleOffset",void 0);_.e([_.X({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.w("design:type",Object)],dI.prototype,"ariaLabel",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.w("design:type",Object)],dI.prototype,"ariaActivedescendant",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],dI.prototype,"showFocus",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],dI.prototype,"focusedIndex",void 0);_.e([_.X(),_.w("design:type",_.EM)],dI.prototype,"emojiManager",void 0);
_.e([_.By("emoji"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dI.prototype,"emojiChanged_",null);_.e([_.By("titleOffset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dI.prototype,"titleOffsetChanged_",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],dI.prototype,"onEmojiTap_",null);
_.e([_.tP("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dI.prototype,"onMouseDown_",null);_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dI.prototype,"onFocus_",null);_.e([_.tP("blur"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dI.prototype,"onBlur_",null);
_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],dI.prototype,"onKeyDown_",null);_.e([_.Wy({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],dI);
_.r(dI,"yt-emoji-picker-upsell-category-renderer",function(){if(Xsz===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;B8z===void 0&&(B8z=document.createElement("template"));var b=B8z;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Xsz=z}z=Xsz;return z},{mode:2});var q6u;var ih_;var oV=function(){var z=_.q.apply(this,arguments)||this;z.scrollAction="lock";z.verticalAlign="top";return z};
_.m(oV,_.q);_.p=oV.prototype;_.p.onClick=function(z){z=_.pJ(z);z instanceof HTMLImageElement&&_.gC(this.hostElement,"yt-emoji-select",_.ur(this.emojiManager,z.id))};
_.p.openSelector=function(){this.ironOverlayBehavior.open()};
_.p.onDomChange=function(){N8_(this.ytEmojiSelectorBehavior)};
_.p.computeIsFamilySelector=function(z){var l;return(z==null?void 0:(l=z.emoji)==null?void 0:l.emojiId)==="\ud83d\udc6a"};
_.p.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var z=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];z&&z.emojiId&&(_.gC(this.hostElement,"yt-emoji-select",_.ur(this.emojiManager,z.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.vP.Object.defineProperties(oV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var z=this,l,I,b;return this.emojiManager&&((l=this.data)==null?0:(I=l.emoji)==null?0:(b=I.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(v){return!!v&&_.ur(z.emojiManager,v)}).filter(function(v){return!!v}):[]}}});
oV.prototype.onClick=oV.prototype.onClick;_.e([_.t(_.GJ),_.w("design:type",Object)],oV.prototype,"ironOverlayBehavior",void 0);_.e([_.t(EG_),_.w("design:type",Object)],oV.prototype,"ytEmojiSelectorBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],oV.prototype,"data",void 0);_.e([_.X(),_.w("design:type",_.EM)],oV.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",Object)],oV.prototype,"scrollAction",void 0);_.e([_.X(),_.w("design:type",Object)],oV.prototype,"verticalAlign",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.w("design:type",Boolean)],oV.prototype,"isFamilySelector",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],oV.prototype,"emojiVariants",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[MouseEvent]),_.w("design:returntype")],oV.prototype,"onClick",null);_.e([_.Wy({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],oV);
_.r(oV,"yt-emoji-variant-selector",function(){if(ih_===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;q6u===void 0&&(q6u=document.createElement("template"));var b=q6u;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ih_=z}z=ih_;return z},{mode:2});var FRz=/:/g,QsA=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],PL=function(){var z=_.q.apply(this,arguments)||this;z.emojiVariantSelector=null;z.emojiMultiPersonSelector=null;z.identity=_.df;z.lastAnimationTime_=0;z.animationStart_=null;z.animationEnd_=null;return z};
_.m(PL,_.q);_.p=PL.prototype;
_.p.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}}};
_.p.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.HL)};
_.p.attached=function(){_.Zs&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&uO0(this.emojiManager)};
_.p.dataChanged=function(){var z;if((z=this.data)==null?0:z.categories){z=this.emojiManager;var l=this.getCustomEmojiIds();z.pickerCustomEmojiIds=[].concat(_.ht(xVp),_.ht(l))}};
_.p.getCustomEmojiIds=function(){var z,l=(z=this.data.categories)==null?void 0:z.find(function(M){var x;return((x=M.emojiPickerCategoryRenderer)==null?void 0:x.categoryId)&&QsA.includes(M.emojiPickerCategoryRenderer.categoryId)}),I;
z=(I=this.data.categories)==null?void 0:I.find(function(M){return M.emojiPickerUpsellCategoryRenderer});
var b,v;return[l==null?void 0:(b=l.emojiPickerCategoryRenderer)==null?void 0:b.emojiIds,z==null?void 0:(v=z.emojiPickerUpsellCategoryRenderer)==null?void 0:v.emojiIds].flat().filter(function(M){return!!M})};
_.p.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.p.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.p.updateCategoriesAndPlaceholderInternal=function(z,l){var I=this;z&&l&&(this.categories=z.categories||[],this.categoryButtons=z.categoryButtons||[],this.resetPlaceholder(),this.search="",_.JP(function(){I.updateButtons_()}))};
_.p.computeId_=function(z){return z.id||""};
_.p.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(z){return z.emojiPickerCategoryRenderer&&z.emojiPickerCategoryRenderer.emojiData}):!1};
_.p.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.p.onShowEmojiVariantSelector=function(z){var l=z.detail.emojiData;l.variantIds&&l.variantIds.length&&(l.multiSelectorThumbnailRow&&l.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:l,target:z.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:l,target:z.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onIronOverlayClosed=function(z){var l=Z3p(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");l&&z.composedPath&&(z.composedPath().includes(_.Hy(this.hostElement).querySelector("#emoji-variant-selector"))||z.composedPath().includes(_.Hy(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Gb(this.hostElement,"yt-close-emoji-variant-selector",[l.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onEmojiVariantSelectorMouseup=function(z){var l=z.target.firstChild;this.variantSelectorOpened&&l&&_.JP(function(){l.noCancelOnOutsideClick=!1},100)};
_.p.onEmojiVariantSelectorMousedown=function(z){z=z.target.firstChild;this.variantSelectorOpened&&z&&(z.noCancelOnOutsideClick=!1)};
_.p.onSelectCategory_=function(z){var l=this.search!="";this.search="";for(var I=_.Hy(this.hostElement).querySelector("#categories").children,b=0;b<I.length;b++){var v=I[b];if(v.id==z.detail.categoryId){l?(_.Hy(this.hostElement).querySelector("#categories").scrollTop=v.offsetTop,this.updateButtons_()):(this.animationStart_=_.Hy(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=v.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.p.onEmojiHover_=function(z){this.placeholder=z.detail.shortcuts?z.detail.shortcuts[0]:""};
_.p.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.p.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.p.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.p.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.p.computeSearchCategory_=function(z){z=z.replace(FRz,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();z=z.split(" ");for(var l=[],I=this.emojiManager.emojis,b=0;b<I.length;b++){var v=I[b];if(v.searchTerms)for(var M=0;M<v.searchTerms.length;M++){for(var x=v.searchTerms[M].toLocaleLowerCase(),g=!1,G=0;G<z.length;G++)if(x.indexOf(z[G])!=-1){g=!0;break}if(g&&(!v.isCustomEmoji||!v.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(v.emojiId))){l.push(v.emojiId);
break}}}return{categoryId:-1,emojiIds:l}};
_.p.computeSearchEmptyMessage_=function(z,l){return z&&l&&l.emojiIds&&l.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.p.computeSearching_=function(z){return this.emojiManager&&z.replace(FRz,"").length>1};
_.p.computeSkinToneHidden=function(){var z;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((z=this.data)==null||!z.hideSkinTonePicker)};
_.p.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.p.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.p.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.p.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.p.selectSkinTone_=function(z){z=Number(z.target.getAttribute("tone"));this.set("emojiManager.skinTone",z);_.Gb(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[z]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.p.skinToneChanged_=function(){_.Hy(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var z=_.Hy(this.hostElement).querySelector("#dropdown-content").children,l=0;l<z.length;l++)l===this.skinTone?z[l].setAttribute("selected",""):z[l].removeAttribute("selected")};
_.p.animateScroll_=function(z){this.lastAnimationTime_||(this.lastAnimationTime_=z);z-=this.lastAnimationTime_;z<200?(_.Hy(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*z/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Hy(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.p.searchChanged_=function(){this.updateButtons_()};
_.p.updateButtons_=function(){var z=null;if(!this.search)for(var l=_.Hy(this.hostElement).querySelector("#categories").scrollTop,I=_.Hy(this.hostElement).querySelector("#categories").children,b=0;b<I.length;b++){var v=I[b];v.offsetTop<=l&&(z=v.id)}l=_.Hy(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<l.length;I++)b=l[I],b.active=b.id===z};
PL.prototype.searchChanged_=PL.prototype.searchChanged_;PL.prototype.skinToneChanged_=PL.prototype.skinToneChanged_;PL.prototype.onEmojiHover_=PL.prototype.onEmojiHover_;PL.prototype.onSelectCategory_=PL.prototype.onSelectCategory_;PL.prototype.onShowEmojiVariantSelector=PL.prototype.onShowEmojiVariantSelector;PL.prototype.updateCategoriesAndPlaceholder_=PL.prototype.updateCategoriesAndPlaceholder_;PL.prototype.dataChanged=PL.prototype.dataChanged;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],PL.prototype,"data",void 0);_.e([_.X({value:function(){return[]}}),
_.w("design:type",Array)],PL.prototype,"categories",void 0);_.e([_.X({value:function(){return[]}}),
_.w("design:type",Array)],PL.prototype,"categoryButtons",void 0);_.e([_.X({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.w("design:type",Boolean)],PL.prototype,"disableScroll",void 0);_.e([_.X({computed:"computeId_(data)",reflectToAttribute:!0}),_.w("design:type",String)],PL.prototype,"id",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],PL.prototype,"selected",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],PL.prototype,"disableIncrementalLoading",void 0);_.e([_.X(),_.w("design:type",String)],PL.prototype,"placeholder",void 0);_.e([_.X({value:""}),_.w("design:type",String)],PL.prototype,"search",void 0);_.e([_.X({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.w("design:type",Boolean)],PL.prototype,"searching",void 0);_.e([_.X({computed:"computeSearchCategory_(search)"}),_.w("design:type",Object)],PL.prototype,"searchCategory",void 0);
_.e([_.X({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.w("design:type",Object)],PL.prototype,"searchEmptyMessage",void 0);_.e([_.X({computed:"identity(emojiManager.skinTone)"}),_.w("design:type",Number)],PL.prototype,"skinTone",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],PL.prototype,"skinToneOpened",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],PL.prototype,"variantSelectorOpened",void 0);
_.e([_.X({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.w("design:type",Boolean)],PL.prototype,"skinToneHidden",void 0);_.e([_.X(),_.w("design:type",_.EM)],PL.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",Object)],PL.prototype,"emojiVariantSelector",void 0);_.e([_.X(),_.w("design:type",Object)],PL.prototype,"emojiMultiPersonSelector",void 0);
_.e([_.X({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.w("design:type",Boolean)],PL.prototype,"shouldUseStickyPreferences",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PL.prototype,"dataChanged",null);_.e([_.By("data","selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PL.prototype,"updateCategoriesAndPlaceholder_",null);
_.e([_.tP("yt-show-emoji-variant-selector"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],PL.prototype,"onShowEmojiVariantSelector",null);_.e([_.tP("yt-emoji-picker-select-category"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],PL.prototype,"onSelectCategory_",null);_.e([_.tP("yt-emoji-hover"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],PL.prototype,"onEmojiHover_",null);
_.e([_.By("skinTone"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PL.prototype,"skinToneChanged_",null);_.e([_.By("search"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PL.prototype,"searchChanged_",null);_.e([_.Wy({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],PL);
_.r(PL,"yt-emoji-picker-renderer",function(){if(t4I===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;KR_===void 0&&(KR_=document.createElement("template"));var b=KR_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);t4I=z}z=t4I;return z},{mode:2});var ho=function(){var z=_.q.apply(this,arguments)||this;z.emojiManager=_.HL;z.isDarkTheme=document.documentElement.hasAttribute("dark");z.selectedIndex=1;z.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return z};
_.m(ho,_.q);_.p=ho.prototype;_.p.handleEmojiCustomizationVisible=function(z){this.emojiPickerRenderer.selected=z;this.selectedIndex=1;z?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.p.emojiCustomizationSetChanged=function(){var z;(z=this.data)!=null&&z.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.a1(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.p.updateSaveButtonState=function(z){var l;(l=this.data)!=null&&l.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.cU("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:z}))};
_.p.emojiUrl=function(z){z=_.ur(this.emojiManager,z);if(!z)return"";var l;z=(l=z.image)==null?void 0:l.thumbnails;return _.ZY(z,24)||""};
_.p.emojiAlt=function(z){var l=_.ur(this.emojiManager,z);if(!l)return z;var I,b,v,M=(l==null?void 0:(I=l.image)==null?void 0:(b=I.accessibility)==null?void 0:(v=b.accessibilityData)==null?void 0:v.label)||"";return M?M:l.isCustomEmoji?l.shortcuts[0]:l.emojiId||z};
_.p.emojiAriaLabel=function(z){var l,I;return((l=_.ur(this.emojiManager,z))==null?void 0:(I=l.shortcuts)==null?void 0:I[0])||z};
_.p.onEmojiClick=function(z){z.model.index!==0&&(this.selectedIndex=z.model.index)};
_.p.onEmojiSelect=function(z){z=z.detail;var l,I;((l=this.data)==null?0:l.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&z.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,z.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.cU("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,z.emojiId,this.selectedIndex)}))};
_.p.canEditEmoji=function(z,l,I){z=z.indexOf(l);return z===I||z===0||I===0?!1:!0};
_.p.getUpdatedEmojiIdList=function(z,l,I){var b=z.indexOf(l);z=[].concat(_.ht(z));b>=0&&(z[b]=z[I]);z[I]=l;return z};
_.vP.Object.defineProperties(ho,{template:{configurable:!0,enumerable:!0,get:function(){if(ad4===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;UV_===void 0&&(UV_=document.createElement("template"));var b=UV_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ad4=z}z=ad4;return z}}});
ho.prototype.onEmojiSelect=ho.prototype.onEmojiSelect;_.e([_.t(_.Nw),_.w("design:type",Object)],ho.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ho.prototype,"ytActionHandlerBehavior",void 0);_.e([_.qX("yt-emoji-picker-renderer"),_.w("design:type",Object)],ho.prototype,"emojiPickerRenderer",void 0);
_.e([_.X({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(z,l){return _.Cc(z.entities,"emojiCustomizationSetEntity",l)},
observer:"emojiCustomizationSetChanged"}),_.w("design:type",Object)],ho.prototype,"emojiCustomizationSet",void 0);_.e([_.X(),_.w("design:type",Object)],ho.prototype,"originalEmojiSet",void 0);_.e([_.X(),_.w("design:type",_.EM)],ho.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",Object)],ho.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ho.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],ho.prototype,"selectedIndex",void 0);
_.e([_.tP("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ho.prototype,"onEmojiSelect",null);_.e([_.Wy({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],ho);var Y60;var T8A;var cLz;var S6M;var sM=function(){var z=_.q.apply(this,arguments)||this;z.authorBadges=[];return z};
_.m(sM,_.q);_.p=sM.prototype;_.p.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.p.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]]"}}}}}};
_.p.dataChanged=function(){var z=$9$(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",z)};
_.p.updateMessage=function(){var z=this.data.message,l=_.Hy(_.Hy(this.hostElement).querySelector("#message"));l.textContent="";z&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(z))};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.p.onShowOriginalClick=function(z){z.preventDefault();this.showOriginal=!0};
_.p.computeShowBar=function(z,l,I){return z&&l||I};
_.p.computeAuthorBadges=function(z){return z.authorBadges||[]};
_.p.computeAuthorIsOwner=function(z){return!!eku(z.authorBadges,"owner")};
_.p.computeAuthorNameColor=function(z){var l;if(_.C("live_chat_author_name_color_usernames")&&(z==null?0:(l=z.authorName)==null?0:l.simpleText))return _.U9Q(_.a85(z.authorName.simpleText));if(_.C("live_chat_seed_color_usernames")&&(z==null?0:z.authorSeedColorArgb))return _.U9Q(_.CE(z.authorSeedColorArgb));if(_.C("live_chat_colored_usernames"))return"#cc0000";var I;return _.C("live_chat_simple_color_usernames")&&(z==null?0:(I=z.authorName)==null?0:I.simpleText)&&(z==null?0:z.authorUsernameColorLight)&&
(z==null?0:z.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.CE(z.authorUsernameColorDark):_.CE(z.authorUsernameColorLight):""};
sM.prototype.updateMessage=sM.prototype.updateMessage;sM.prototype.dataChanged=sM.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],sM.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sM.prototype,"data",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"showOriginal",void 0);_.e([_.X({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"isDimmed",void 0);_.e([_.X({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"showBar",void 0);
_.e([_.X({computed:"computeAuthorBadges(data)"}),_.w("design:type",Array)],sM.prototype,"authorBadges",void 0);_.e([_.X({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"authorIsOwner",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"inCollapsedBanner",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"inBanner",void 0);
_.e([_.X({value:_.C("live_chat_hide_avatars"),reflectToAttribute:!0}),_.w("design:type",Boolean)],sM.prototype,"avatarHidden",void 0);_.e([_.X({computed:"computeAuthorNameColor(data)"}),_.w("design:type",String)],sM.prototype,"authorNameColor",void 0);_.e([_.X(),_.w("design:type",_.RV)],sM.prototype,"participantsManager",void 0);_.e([_.X({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.w("design:type",Object)],sM.prototype,"filledButtonOverrides",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sM.prototype,"dataChanged",null);_.e([_.By("data.message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sM.prototype,"updateMessage",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],sM);
_.r(sM,"yt-live-chat-text-message-renderer",function(){if(S6M===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;cLz===void 0&&(cLz=document.createElement("template"));var b=cLz;I.call(l,b.content.cloneNode(!0),z.content.firstChild);S6M=z}z=S6M;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var rI=function(){var z=_.q.apply(this,arguments)||this;z.tonalButtonOverrides={type:"tonal",style:"overlay"};return z};
_.m(rI,_.q);
rI.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]]"}}}}}};
rI.prototype.shouldSupportInlineActionButtons=function(){return!0};
rI.prototype.shouldSupportWholeItemClick=function(){return!0};
_.vP.Object.defineProperties(rI.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],rI.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rI.prototype,"data",void 0);_.e([_.X(),_.w("design:type",_.RV)],rI.prototype,"participantsManager",void 0);
_.e([_.X(),_.w("design:type",Object)],rI.prototype,"tonalButtonOverrides",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.infoDialogButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],rI.prototype,"hasInfoDialogButton",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],rI);
_.r(rI,"yt-live-chat-auto-mod-message-renderer",function(){if(T8A===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Y60===void 0&&(Y60=document.createElement("template"));var b=Y60;I.call(l,b.content.cloneNode(!0),z.content.firstChild);T8A=z}z=T8A;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var df0;var oGj;var P$_;var hlp=function(){return _.q.apply(this,arguments)||this};
_.m(hlp,_.q);_.e([_.X(),_.w("design:type",Object)],hlp.prototype,"data",void 0);_.e([_.S({is:"ytd-factoid-renderer",disableElementRegistration:!0})],hlp);
_.r(hlp,"ytd-factoid-renderer",function(){if(P$_!==void 0)return P$_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return P$_=z},{mode:1});var $Y=function(){return _.q.apply(this,arguments)||this};
_.m($Y,_.q);$Y.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.e([_.X(),_.w("design:type",Object)],$Y.prototype,"data",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],$Y);
_.r($Y,"yt-live-chat-channel-activity-reputation-renderer",function(){if(oGj===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;df0===void 0&&(df0=document.createElement("template"));var b=df0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);oGj=z}z=oGj;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var ss_;var rLj;var e$=function(){return _.q.apply(this,arguments)||this};
_.m(e$,_.q);e$.prototype.ready=function(){var z=document.querySelector("yt-live-chat-app");z&&z.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Boolean)],e$.prototype,"menuFocused",void 0);_.e([_.X(),_.w("design:type",Object)],e$.prototype,"data",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],e$.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],e$);
_.r(e$,"yt-live-chat-donation-announcement-renderer",function(){if(rLj===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;ss_===void 0&&(ss_=document.createElement("template"));var b=ss_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);rLj=z}z=rLj;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var $fp;var elu,wsp=function(){if(elu!==void 0)return elu;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;$fp===void 0&&($fp=document.createElement("template"));var b=$fp;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return elu=z};var wI=function(){return _.q.apply(this,arguments)||this};
_.m(wI,_.q);_.vP.Object.defineProperties(wI,{template:{configurable:!0,enumerable:!0,get:function(){return wsp()}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wI.prototype,"data",void 0);_.e([_.Wy({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],wI);_.r(wI,"yt-live-chat-empty-feed-view-model",function(){return wsp()},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var AL_;var WRu;var Ao=function(){return _.q.apply(this,arguments)||this};
_.m(Ao,_.q);Ao.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"}}}}}};
_.vP.Object.defineProperties(Ao.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var z,l;return{runs:[{text:(z=this.data)==null?void 0:(l=z.channelName)==null?void 0:l.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var z=[],l;if((l=this.data)==null||!l.channelBadges)return z;var I;l=_.D((I=this.data)==null?void 0:I.channelBadges);for(I=l.next();!I.done;I=l.next()){I=_.k(I.value,Ylj);var b=void 0,v=void 0;if((b=I)==null?0:(v=b.badgeImage)==null?0:v.sources)b=void 0,v={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(b=_.k(I.rendererContext,_.YM))==null?void 0:b.label}}}},I.badgeImage.sources[0].clientResource?v.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:v.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},z.push(v)}return z}}});
_.e([_.X(),_.w("design:type",Object)],Ao.prototype,"data",void 0);_.e([_.B("data.channelName"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ao.prototype,"channelName",null);_.e([_.B("data.channelBadges"),_.w("design:type",Array),_.w("design:paramtypes",[])],Ao.prototype,"channelBadges",null);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ao);
_.r(Ao,"yt-live-chat-identity-view-model",function(){if(WRu===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;AL_===void 0&&(AL_=document.createElement("template"));var b=AL_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);WRu=z}z=WRu;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var nGA;var LR0;var Uf_;var a3j;var WL=function(){var z=_.q.apply(this,arguments)||this;z.hidden=!1;z.supportsInlineActionButtons=!0;return z};
_.m(WL,_.q);WL.prototype.ready=function(){var z;((z=document.querySelector("yt-live-chat-app"))==null?0:z.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
WL.prototype.dataChanged=function(z){var l=(0,_.kE)(_.Hy(this.hostElement).querySelector("#detail-text"));l.textContent="";(z==null?0:z.detailText)&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(z.detailText))};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],WL.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({observer:"dataChanged"}),_.w("design:type",Object)],WL.prototype,"data",void 0);
_.e([_.X({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.w("design:type",Object)],WL.prototype,"hidden",void 0);_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],WL);
_.r(WL,"yt-live-chat-legacy-paid-message-renderer",function(){if(a3j===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Uf_===void 0&&(Uf_=document.createElement("template"));var b=Uf_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);a3j=z}z=a3j;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var V4z;var js_;var JLj={},ne=function(){return _.F6.apply(this,arguments)||this};
_.m(ne,_.F6);ne.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ne.prototype.onLiveChatMembershipItemBehaviorClick=ne.prototype.onLiveChatMembershipItemBehaviorClick;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ne.prototype,"data",void 0);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],ne.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.e([_.Q5()],ne);
JLj.YtLiveChatMembershipItemBehavior=[ne.prototype,_.U.YtRendererBehavior];var Le=function(){var z=_.q.apply(this,arguments)||this;z.supportsInlineActionButtons=!0;z.hasPrimaryHeaderText=!1;z.showOnlyHeader=!1;z.authorBadges=[];z.modern=_.C("web_button_rework_with_live");z.buttonOverrides={style:"overlay",type:"filled"};return z};
_.m(Le,_.q);_.p=Le.prototype;_.p.shouldSupportInlineActionButtons=function(){return!0};
_.p.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.p.ready=function(){var z=document.querySelector("yt-live-chat-app");z&&z.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.p.messageChanged=function(){var z=this.data.message,l=(0,_.kE)(_.Hy(this.hostElement).querySelector("#message"));l.textContent="";z&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(z))};
_.p.computeHasPrimaryHeaderText=function(z){return!(!z||!z.headerPrimaryText)};
_.p.computeShowOnlyHeader=function(z,l){return this.isMessageEmpty(z,l)};
_.p.computeAuthorBadges=function(z){return z.authorBadges||[]};
_.p.isMessageEmpty=function(z,l){return!z||z.empty?!0:!z.message&&!z.inputField&&!l};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.p.getInputElement=function(){return _.Hy(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.p.inputFocus=function(){var z=this.getInputElement();z&&z.focus()};
_.p.inputInsertEmoji=function(z){var l=this.getInputElement();l&&l.insertEmoji(z)};
_.p.inputMessage=function(){var z=this.getInputElement();return z&&this.data.inputField?(z.completeEmojis(),_.Ve(z.liveChatRichMessageInput)):null};
_.p.onFooterButtonClick=function(){this.data.footerButton&&_.gC(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.p.shouldSupportWholeItemClick=function(){return!0};
Le.prototype.isDeletedChanged=Le.prototype.isDeletedChanged;Le.prototype.messageChanged=Le.prototype.messageChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],Le.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(JLj.YtLiveChatMembershipItemBehavior),_.w("design:type",Object)],Le.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Le.prototype,"data",void 0);_.e([_.X({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.w("design:type",Object)],Le.prototype,"hasPrimaryHeaderText",void 0);_.e([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.w("design:type",Object)],Le.prototype,"showOnlyHeader",void 0);
_.e([_.X({computed:"computeAuthorBadges(data)"}),_.w("design:type",Array)],Le.prototype,"authorBadges",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Le.prototype,"modern",void 0);_.e([_.By("data.message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Le.prototype,"messageChanged",null);_.e([_.By("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Le.prototype,"isDeletedChanged",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Le);
_.r(Le,"yt-live-chat-membership-item-renderer",function(){if(js_===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;V4z===void 0&&(V4z=document.createElement("template"));var b=V4z;I.call(l,b.content.cloneNode(!0),z.content.firstChild);js_=z}z=js_;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var zzp;var lDu;var UM=function(){return _.q.apply(this,arguments)||this};
_.m(UM,_.q);UM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],UM.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],UM);
_.r(UM,"yt-live-chat-mode-change-message-renderer",function(){if(lDu===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;zzp===void 0&&(zzp=document.createElement("template"));var b=zzp;I.call(l,b.content.cloneNode(!0),z.content.firstChild);lDu=z}z=lDu;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var IDA;var bvu;var aV=function(){return _.q.apply(this,arguments)||this};
_.m(aV,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],aV.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],aV.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],aV);
_.r(aV,"yt-live-chat-moderation-message-renderer",function(){if(bvu===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;IDA===void 0&&(IDA=document.createElement("template"));var b=IDA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);bvu=z}z=bvu;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var vD4;var Mdu;var VS=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_button_rework");return z};
_.m(VS,_.q);VS.prototype.onClick=function(){var z;if((z=this.data)!=null&&z.onClickCommand){var l;_.KE.instance.resolveCommand((l=this.data)==null?void 0:l.onClickCommand)}};
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VS.prototype,"modern",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],VS.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],VS.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],VS.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],VS);
_.r(VS,"yt-live-chat-offer-click-count-message-renderer",function(){if(Mdu===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;vD4===void 0&&(vD4=document.createElement("template"));var b=vD4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Mdu=z}z=Mdu;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var pkA;var D0w=function(){return _.q.apply(this,arguments)||this};
_.m(D0w,_.q);_.e([_.X(),_.w("design:type",Object)],D0w.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],D0w);
_.r(D0w,"yt-live-chat-placeholder-item-renderer",function(){if(pkA===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);pkA=z}z=pkA;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var x0_;var Ovu;var gDu=new zN(7),j$=function(){var z=_.q.apply(this,arguments)||this;z.data={};return z};
_.m(j$,_.q);j$.prototype.dataChanged=function(){var z;((z=this.data)==null?0:z.class)&&_.fJ(this.hostElement,this.data.class,!0);var l;((l=this.oldData)==null?0:l.class)&&_.fJ(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
j$.prototype.computeTimestampString=function(z){return gDu.format(new Date(z/1E3))};
j$.prototype.dataChanged=j$.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],j$.prototype,"data",void 0);_.e([_.X({computed:"computeTimestampString(data.timestampUsec)"}),_.w("design:type",String)],j$.prototype,"timestampString",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j$.prototype,"dataChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],j$);
_.r(j$,"yt-live-chat-server-error-message",function(){if(Ovu===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;x0_===void 0&&(x0_=document.createElement("template"));var b=x0_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Ovu=z}z=Ovu;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var GaM;var Nv4;var Jo=function(){var z=_.q.apply(this,arguments)||this;z.defaultToFilledIcon=!1;return z};
_.m(Jo,_.q);Jo.prototype.computeHasPrimaryColorIcon=function(z){return z==="SPARK"||z==="SPONSORSHIP_STAR"};
Jo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],Jo.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jo.prototype,"defaultToFilledIcon",void 0);_.e([_.X(),_.w("design:type",Object)],Jo.prototype,"data",void 0);
_.e([_.X({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Jo.prototype,"hasPrimaryColorIcon",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Jo);
_.r(Jo,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Nv4===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;GaM===void 0&&(GaM=document.createElement("template"));var b=GaM;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Nv4=z}z=Nv4;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var EDu;var zq=function(){var z=_.q.apply(this,arguments)||this;z.modernUpdate=!1;z.buttonStyle="overlay";z.buttonType="filled";return z};
_.m(zq,_.q);zq.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
zq.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zq.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zq.prototype,"modernUpdate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],zq.prototype,"buttonStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],zq.prototype,"buttonType",void 0);
_.e([_.S({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],zq);
_.r(zq,"ytd-ad-hover-text-button-renderer",function(){if(EDu!==void 0)return EDu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return EDu=z},{mode:1});var u8_;var l0=function(){var z=_.q.apply(this,arguments)||this;z.buttonOverrides={size:"XS"};z.modern=_.C("web_button_rework");return z};
_.m(l0,_.q);l0.prototype.onHelpTap=function(z){this.data&&this.data.informationDialog&&(_.gC(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),z.preventDefault(),z.stopPropagation())};
_.e([_.X(),_.w("design:type",Object)],l0.prototype,"buttonOverrides",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],l0.prototype,"modern",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],l0.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],l0);
_.r(l0,"ytd-live-chat-purchased-product-message-renderer",function(){if(u8_!==void 0)return u8_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return u8_=z},{mode:1});var ZvA;var Hv4;var IJ=function(){var z=_.q.apply(this,arguments)||this;z.isContainerDeleted=!1;return z};
_.m(IJ,_.q);IJ.prototype.onContextMenuClick=function(z){this.ytLiveChatItemBehavior.showContextMenu(z)};
IJ.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))};
IJ.prototype.isContainerDeletedChanged=IJ.prototype.isContainerDeletedChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],IJ.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],IJ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],IJ.prototype,"isContainerDeleted",void 0);
_.e([_.X(),_.w("design:type",String)],IJ.prototype,"deletedStateMessage",void 0);_.e([_.By("isContainerDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IJ.prototype,"isContainerDeletedChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],IJ);
_.r(IJ,"ytd-sponsorships-live-chat-header-renderer",function(){if(Hv4!==void 0)return Hv4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Hv4=z},{mode:1});var b0=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_button_rework_with_live");z.buttonOverrides={style:"overlay",type:"filled"};return z};
_.m(b0,_.q);b0.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]]"}}}}}};
b0.prototype.onCtaButtonClick=function(){var z,l=_.k((z=this.data)==null?void 0:z.optInPrompt,_.xm);if(z=this.maybeGetButtonCommand(l)){var I;(I=_.iY())==null||I.clickCommand(z)}};
b0.prototype.maybeGetButtonCommand=function(z){return!z||!z.command||_.k(z.command,GvM)===void 0&&_.k(z.command,gT_)===void 0?null:z.command};
b0.prototype.shouldHideOptinPrompt=function(z,l){return!z||l};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],b0.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],b0.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],b0.prototype,"modern",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],b0);
_.r(b0,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(ZvA!==void 0)return ZvA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ZvA=z},{mode:1});var yc0;var vE=function(){return _.q.apply(this,arguments)||this};
_.m(vE,_.q);vE.prototype.onContextMenuClick=function(z){this.ytLiveChatItemBehavior.showContextMenu(z)};
vE.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))};
vE.prototype.isDeletedChanged=vE.prototype.isDeletedChanged;_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],vE.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],vE.prototype,"data",void 0);_.e([_.By("isDeleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vE.prototype,"isDeletedChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],vE);
_.r(vE,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(yc0!==void 0)return yc0;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yc0=z},{mode:1});var Md=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return z};
_.m(Md,_.q);_.p=Md.prototype;
_.p.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"}}}};
_.p.handleLiveChatAction=function(z){_.k(z,zCj)?this.handleMarkChatItemAsDeletedAction(_.k(z,zCj)):_.k(z,Jgj)&&this.handleRemoveChatItemAction(_.k(z,Jgj))};
_.p.handleLiveChatActions=function(z){z.forEach(this.handleLiveChatAction,this)};
_.p.handleMarkChatItemAsDeletedAction=function(z){var l=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(b,v){var M=Object.keys(b)[0];Object.values(b)[0].id===z.targetItemId&&l.markAsDeleted("data.items",v,M,z.deletedStateMessage,z.showOriginalContentMessage)})};
_.p.handleRemoveChatItemAction=function(z){var l=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(b,v){Object.values(b)[0].id===z.targetItemId&&l.splice("data.items",v,1)})};
_.p.markAsDeleted=function(z,l,I,b,v){z=[z,l,I].join(".");this.set(z+".deletedStateMessage",b);this.set(z+".showOriginalContentMessage",v)};
_.e([_.X(),_.w("design:type",Object)],Md.prototype,"data",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Md);
_.r(Md,"yt-live-chat-item-display-list-renderer",function(){if(LR0===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;nGA===void 0&&(nGA=document.createElement("template"));var b=nGA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);LR0=z}z=LR0;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var fDj;var CxI,kap=function(){if(CxI!==void 0)return CxI;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;fDj===void 0&&(fDj=document.createElement("template"));var b=fDj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return CxI=z};var pf=function(){var z=_.q.apply(this,arguments)||this;z.isHeader=!1;return z};
_.m(pf,_.q);pf.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.vP.Object.defineProperties(pf,{template:{configurable:!0,enumerable:!0,get:function(){return kap()}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pf.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pf.prototype,"isHeader",void 0);_.e([_.Wy({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],pf);_.r(pf,"yt-live-chat-item-display-renderer",function(){return kap()},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var Rzj,m0I,qmu,Xk_;
Rzj={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}};m0I={home:"eohps",search:"eosps",watch:"eowps"};_.Kz_=["watch","search","home"];
_.DW=function(){this.JSC$14296_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14296_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.sZ("PRECONSTRUCTION_DELAY",0);this.signals_=_.uV();this.targetPage_=""};
_.DW.prototype.init=function(z,l){z=z===void 0?"":z;l=l===void 0?null:l;if(this.JSC$14296_isInitialized_)this.abort();else if(this.JSC$14296_isInitialized_=!0,z&&_.tdu(this,z),l){var I=_.ZL(this.signals_,"pcl")?0:10,b=function(){for(var v=0,M;M=_.Kz_[v++];)M!=z&&M!=l&&this.pendingPages_.push(M);_.Bvn(this)}.bind(this);
this.signals_.parkOrScheduleJob(b,I,"pcl")}};
_.DW.prototype.abort=function(){this.fragmentJobId_&&(_.ow.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Xk_(this)};
_.tdu=function(z,l){z.JSC$14296_isInitialized_&&!z.targetPage_&&(z.targetPage_=l,qmu(z,l),z.isInitialPass_=!1,qmu(z,l),z.signals_.processSignal(m0I[z.targetPage_]),Xk_(z),_.Bvn(z))};
_.Bvn=function(z){z.pendingPages_.length&&!z.pagePreparerJobId_&&(z.pagePreparerJobId_=_.qA(_.ow,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.tdu(this,this.pendingPages_.shift())}.bind(z),z.DEFAULT_DELAY_))};
qmu=function(z,l){if(l=Rzj[l])for(var I in l){var b=!1,v=I;I.charAt(0)=="~"&&(b=!0,v=I.substring(1));var M=l[I];M=typeof M=="object"?M:{count:M};l[I]=M;M.componentName=v;M.count>0&&(z.isInitialPass_?b||z.isSeenDuringInitialPass_[v]||(z.JSC$14296_queue_.push({componentName:v,count:1,signals:M.signals}),z.isSeenDuringInitialPass_[v]=!0,M.count--):z.JSC$14296_queue_.push(M))}};
Xk_=function(z){z.JSC$14296_queue_.length=0;z.targetPage_="";z.isInitialPass_=!0;z.signals_.processSignal("eop")};
_.DW.getInstance=function(){return _.pI(_.DW)};var iv4=function(){this.signals=_.uV();this.init()};
iv4.prototype.startPreconstruction=function(){_.DW.getInstance().init(_.rr("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
iv4.prototype.init=function(){Fzw(this);window.Polymer&&JKu&&c$u();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var z=_.v7.ytcsi;if(z&&z.gt&&(z=z.gt())&&z.tick&&(z.tick.aft>0||z.tick.pbs>0)&&(_.rr("IS_HOMEPAGE_COLD")||_.rr("IS_RESULTS_PAGE_COLD")||_.rr("IS_WATCH_PAGE_COLD"))){QHA(this);break a}iJ1(mYY,this.onNotifications,this)}};
var Fzw=function(z){var l=function(){z.signals.processSignal("dl")};
document.readyState==="complete"?(_.nP(Error("yh"),"WARNING"),l()):_.vlf(window,"load",l)};
iv4.prototype.onNotifications=function(z){z.timer||(_.rr("IS_HOMEPAGE_COLD")||_.rr("IS_RESULTS_PAGE_COLD")||_.rr("IS_WATCH_PAGE_COLD"))&&QHA(this)};
var QHA=function(z){z.signals.parkOrScheduleJob(function(){z.signals.processSignal("eocs")},10,"eor")};
new iv4;var xj,Ym_=function(){return _.F6.apply(this,arguments)||this};
_.m(Ym_,_.F6);_.p=Ym_.prototype;_.p.enableActiveViewMeasurement=function(z){if(this.isActiveViewEnabled(z)){var l=this.getUrlPrefixesFromCommand(z.viewableCommands);z=this.getUrlPrefixesFromCommand(z.endOfSessionCommands);if(!xj){var I=_.OI("custom_active_view_tos_timeout_ms");xj=I>0&&I!==36E5?new pSQ(this.getVersion(),I):new pSQ(this.getVersion())}xEY(xj,this.hostElement);Oau(xj,this.hostElement,l,z)}};
_.p.stopActiveViewMeasurement=function(){xj&&xEY(xj,this.hostElement)};
_.p.isActiveViewEnabled=function(z){return!!z&&(this.hasAtLeastOneUrl(z.viewableCommands)||this.hasAtLeastOneUrl(z.endOfSessionCommands))};
_.p.hasAtLeastOneUrl=function(z){return!!z&&z.length>0&&z[0].loggingUrls!=null&&z[0].loggingUrls.length>0};
_.p.getVersion=function(){var z=_.sZ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(z==null?void 0:z.length)===2?z[1]:null};
_.p.getUrlPrefixesFromCommand=function(z){if(!z)return[];var l=[];z=_.D(z);for(var I=z.next();!I.done;I=z.next())if(I=I.value,I.loggingUrls){I=_.D(I.loggingUrls);for(var b=I.next();!b.done;b=I.next())b=b.value,b.baseUrl&&l.push(b.baseUrl)}return l};
_.e([_.Q5()],Ym_);var O3=[Ym_.prototype];var Tvu=function(){return _.F6.apply(this,arguments)||this};
_.m(Tvu,_.F6);_.vP.Object.defineProperties(Tvu.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_entity_store_from_dependency_injection")?_.M8():_.vF()}}});
_.e([_.Q5()],Tvu);_.gU=[Mw.prototype,Tvu.prototype];var cc_=["ytd-rich-shelf-renderer"],Gq=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;z.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";z.followUpDialogPromise=null;z.followUpDialogPromiseResolve=null;z.followUpDialogPromiseReject=null;return z};
_.m(Gq,_.F6);_.p=Gq.prototype;_.p.dismissibleItemIsDismissedChanged_=function(z){_.C("kevlar_fluid_dismiss")&&(z?_.gC(this.hostElement,"yt-dismissible-item-dismissed"):_.gC(this.hostElement,"yt-dismissible-item-undismissed"))};
_.p.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.p.dismissibleItemReset_=function(){var z=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 _.yK(function(l,I){z.followUpDialogPromiseResolve=l;z.followUpDialogPromiseReject=I});
_.gC(this.hostElement,"yt-enable-lockup-interaction")};
_.p.dismissibleItemOnYtServiceRequestSent_=function(z,l){l.actions&&this.dismissibleItemProcessActions(l.actions,z)};
_.p.dismissibleItemOnRequestSent=function(z){if(_.C("web_button_rework"))for(var l=_.D(z.detail),I=l.next();!I.done;I=l.next()){var b=void 0;(I=(b=_.k(I.value,_.CM))==null?void 0:b.actions)&&this.dismissibleItemProcessActions(I,z)}};
_.p.dismissibleItemOnCommandSent=function(z,l){l&&this.dismissibleItemProcessActions(l,z)};
_.p.setAndGetDismissedContentId=function(z){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+z};
_.p.replayDismissAction=function(z){this.dismissibleItemProcessActions([z])};
_.p.dismissibleItemProcessActions=function(z,l){for(var I=0;I<z.length;I++){var b=z[I],v=void 0;((v=_.k(b,_.yi))==null?0:v.commands)&&this.dismissibleItemProcessActions(_.k(b,_.yi).commands,l);if(_.k(b,_.$K)){if(v=_.k(b,_.$K),!v.replaceParentSection||cc_.includes(this.hostElement.nodeName.toLowerCase()))v.groupDismissal&&NvS(this,v.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(v),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.cU("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:b})),b=void 0,(b=l)==null||b.stopPropagation()}else if(_.k(b,J5_))this.dismissibleItemHandleHideEnclosingAction_(),b=void 0,(b=l)==null||b.stopPropagation();else if(_.k(b,mRw))b=_.k(b,mRw),v=void 0,((v=b)==null?0:v.targetGroupId)&&NvS(this,{targetGroupId:b.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.cU("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
b=void 0,(b=l)==null||b.stopPropagation();else if(_.k(b,_.CM))(b=_.k(b,_.CM).actions)&&_.ZE(this.hostElement,b,this.hostElement),b=void 0,(b=l)==null||b.stopPropagation();else{var M=v=void 0;((v=_.k(b,_.eX))==null?void 0:v.signal)!=="TELL_US_WHY"||((M=_.k(b,_.eX))==null?0:M.targetId)&&_.C("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),b=void 0,(b=l)==null||b.stopPropagation())}}};
_.p.dismissibleItemOnYtServiceRequestCompleted_=function(z,l){var I=this.get("feedbackResponses.0.followUpDialog",l.data);I?this.followUpDialogPromiseResolve(I):l.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(l.actions,z)};
_.p.dismissibleItemHandleReplaceEnclosingAction_=function(z){this.dismissedRenderer=z.item;this.isDismissed=!0;var l=null;(l=_.Hy(this.hostElement).querySelector("#dismissed"))&&_.IR(this,function(){_.JW(l)});
_.gC(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.p.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.p.dismissibleItemHandleUndoFeedbackAction_=function(){_.gC(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.p.dismissibleItemHandleTellUsWhySignalAction_=function(){var z=this;this.followUpDialogPromise.then(function(l){z.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:l}})})};
Gq.prototype.dismissibleItemOnYtServiceRequestCompleted_=Gq.prototype.dismissibleItemOnYtServiceRequestCompleted_;Gq.prototype.dismissibleItemOnCommandSent=Gq.prototype.dismissibleItemOnCommandSent;Gq.prototype.dismissibleItemOnRequestSent=Gq.prototype.dismissibleItemOnRequestSent;Gq.prototype.dismissibleItemOnYtServiceRequestSent_=Gq.prototype.dismissibleItemOnYtServiceRequestSent_;Gq.prototype.dismissibleItemDataChanged_=Gq.prototype.dismissibleItemDataChanged_;
Gq.prototype.dismissibleItemIsDismissedChanged_=Gq.prototype.dismissibleItemIsDismissedChanged_;_.e([_.t(_.XD),_.w("design:type",Object)],Gq.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Gq.prototype,"isDismissed",void 0);_.e([_.X(),_.w("design:type",Object)],Gq.prototype,"dismissedRenderer",void 0);
_.e([_.By("isDismissed"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean]),_.w("design:returntype")],Gq.prototype,"dismissibleItemIsDismissedChanged_",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gq.prototype,"dismissibleItemDataChanged_",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],Gq.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.e([_.tP("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Gq.prototype,"dismissibleItemOnRequestSent",null);
_.e([_.tP("yt-dismissible-item-action"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Array]),_.w("design:returntype")],Gq.prototype,"dismissibleItemOnCommandSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],Gq.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.e([_.Q5()],Gq);_.Nd=[_.XD,_.gU,Gq.prototype];var E3=function(){var z=_.F6.apply(this,arguments)||this;z.disableGridStateAware=!1;z.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};z.currentGridClass="";return z};
_.m(E3,_.F6);E3.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.IR(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var z=this.gridStateAwareGetElement();_.fJ(z,"grid",!0)}};
E3.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
E3.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Hy(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
E3.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var z="grid-disabled";else{z=_.Kuu.getInstance();var l=this.get("pageSubtype");z=l&&kX_.includes(l)?"grid-disabled":z.currentSnapState_?z.currentSnapState_.className:null}(l=this.gridStateAwareGetElement())&&z!==this.currentGridClass&&(z&&_.fJ(l,z,!0),this.currentGridClass&&_.fJ(l,this.currentGridClass,!1),this.currentGridClass=z)};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",String)],E3.prototype,"gridStateAwareSizingElementSelector",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],E3.prototype,"disableGridStateAware",void 0);_.e([_.Q5()],E3);_.u0=[E3.prototype,_.wl.YtActionHandlerBehavior];_.ZW=new _.yH("GUIDE_TOKEN");var yW;_.HE={};yW=function(){var z=_.F6.apply(this,arguments)||this;z.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 z};
_.m(yW,_.F6);_.p=yW.prototype;_.p.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.p.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var z=_.pG().resolve(_.MB(_.ZW));z&&(this.guidePersistentAndVisible=z.getGuidePersistentAndVisible(),this.activeEndpoint=z.getActiveEndpoint(),this.guideOpened=z.getGuideOpened(),this.miniGuideVisible=z.getMiniGuideVisible())};
_.p.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.p.handleGuideStateAction=function(z){this.guidePersistentAndVisible=z};
_.p.handleMiniGuideStateAction=function(z){this.miniGuideVisible=z};
_.p.handleGuideOpenedAction=function(z){this.guideOpened=z};
_.p.handleActiveEndpointAction=function(z){this.activeEndpoint=z};
yW.prototype.onActiveEndpointChange=yW.prototype.onActiveEndpointChange;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],yW.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],yW.prototype,"guidePersistentAndVisible",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],yW.prototype,"miniGuideVisible",void 0);_.e([_.X(),_.w("design:type",Object)],yW.prototype,"activeEndpoint",void 0);
_.e([_.By("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yW.prototype,"onActiveEndpointChange",null);_.e([_.X(),_.w("design:type",Boolean)],yW.prototype,"guideOpened",void 0);_.e([_.Q5()],yW);_.HE.YtdGuideStateAwareBehavior=[];_.HE.YtdGuideStateAwareBehavior.push(yW.prototype,_.wl.YtActionHandlerBehavior);var SmI=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],ff=function(){var z=_.F6.apply(this,arguments)||this;z.hoverJobId=0;z.JSC$14327_touched=!1;return z};
_.m(ff,_.F6);_.p=ff.prototype;_.p.created=function(){this.useExpandableTooltip=!SmI.includes(this.is)};
_.p.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.p.detached=function(){this.useExpandableTooltip=!1};
_.p.lockupOnDown=function(z){this.interactionElement&&!_.DX(_.MX(z),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.p.lockupOnUp=function(z){this.interactionElement&&!_.DX(_.MX(z),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.p.onTouchStart=function(){this.JSC$14327_touched=!0};
_.p.lockupOnMouseEnter=function(){var z=this,l=_.OI("kevlar_lockup_hover_delay",-1);this.JSC$14327_touched&&l>=0?(_.ow.cancelJob(this.hoverJobId),this.hoverJobId=_.ow.addJob(function(){z.lockupIsHovered=!0},8,l),this.JSC$14327_touched=!1):this.lockupIsHovered=!0};
_.p.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ow.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.p.lockupOnPopupClosed=function(z,l){var I;((I=l.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(z=l.popupRenderer.veData,l=_.sU(),z&&l&&_.j_(l,[z]))};
_.p.lockupOnLockupRequested=function(z){var l=z.detail.videoIds[0],I;z.detail&&l===((I=this.data)==null?void 0:I.videoId)&&(z.detail.returnValue=[this.data])};
_.p.lockupOnYtServiceRequestSent=function(z,l){if(z=l.actions)for(var I=0;I<z.length;I++){var b=z[I];if(b.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&l.ajaxPromise){var v=void 0,M=(v=_.k(l.endpoint,_.M1))==null?void 0:v.playlistId;v=void 0;b=(v=b.removedVideoId)!=null?v:"";WLw(_.ya(),b,M)}else b.action==="ACTION_REMOVE_VIDEO"&&l.ajaxPromise&&(M=void 0,b=(M=b.setVideoId)!=null?M:"",_.nHu(_.ya(),b))}};
_.p.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.p.lockupOnLockupEnabled=function(){if(!this.$){var z=_.pG().resolve(_.OB).getCurrentPage(),l=this.getParentRenderer?this.getParentRenderer():void 0;_.PW(new _.qB("component not ready",this.is,this.isAttached,z==null?void 0:z.is,l==null?void 0:l.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
ff.prototype.lockupOnLockupEnabled=ff.prototype.lockupOnLockupEnabled;ff.prototype.lockupOnLockupDisabled=ff.prototype.lockupOnLockupDisabled;ff.prototype.lockupOnYtServiceRequestSent=ff.prototype.lockupOnYtServiceRequestSent;ff.prototype.lockupOnLockupRequested=ff.prototype.lockupOnLockupRequested;ff.prototype.lockupOnPopupClosed=ff.prototype.lockupOnPopupClosed;ff.prototype.lockupOnMouseLeave=ff.prototype.lockupOnMouseLeave;ff.prototype.lockupOnMouseEnter=ff.prototype.lockupOnMouseEnter;
ff.prototype.onTouchStart=ff.prototype.onTouchStart;ff.prototype.lockupOnUp=ff.prototype.lockupOnUp;ff.prototype.lockupOnDown=ff.prototype.lockupOnDown;_.e([_.X(),_.w("design:type",Object)],ff.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],ff.prototype,"lockupIsHovered",void 0);_.e([_.X(),_.w("design:type",Boolean)],ff.prototype,"lockupTouchTriggered",void 0);_.e([_.X(),_.w("design:type",Boolean)],ff.prototype,"useExpandableTooltip",void 0);
_.e([_.qX("#interaction"),_.w("design:type",Object)],ff.prototype,"interactionElement",void 0);_.e([_.tP("down"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ff.prototype,"lockupOnDown",null);_.e([_.tP("up"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ff.prototype,"lockupOnUp",null);
_.e([_.tP("touchstart"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ff.prototype,"onTouchStart",null);_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ff.prototype,"lockupOnMouseEnter",null);_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ff.prototype,"lockupOnMouseLeave",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],ff.prototype,"lockupOnPopupClosed",null);_.e([_.tP("yt-lockup-requested"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ff.prototype,"lockupOnLockupRequested",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],ff.prototype,"lockupOnYtServiceRequestSent",null);_.e([_.tP("yt-disable-lockup-interaction"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ff.prototype,"lockupOnLockupDisabled",null);
_.e([_.tP("yt-enable-lockup-interaction"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ff.prototype,"lockupOnLockupEnabled",null);_.e([_.Q5()],ff);_.Cf=[ff.prototype];_.d0_={YtdReduxBehavior:[]};_.d0_.YtdReduxBehavior.push.apply(_.d0_.YtdReduxBehavior,_.gU);var kj=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;z.disableNowPlaying=!1;z.disableTooltips=!1;z.useHoveredProperty=!1;z.hovered=!1;z.isThumbnailHovered_=!1;z.addBackground=_.C("kevlar_thumbnail_bg");z.nowPlaying=!1;z.disableRounding=!1;z.size="small";return z};
_.m(kj,_.F6);_.p=kj.prototype;_.p.computeThumbnailOverlaySidePanelWidth_=function(z,l){return z-l};
_.p.computeSize=function(z,l){if(!this.disableRounding){if(!z&&!l)return"small";z=Math.max(z||0,l||0);return z>=256?"large":z>=96?"medium":"small"}};
_.p.computeFinalHoveredState_=function(z,l,I){return this.nowPlaying?!1:_.C("kevlar_thumbnail_fluid")&&z?l:I};
_.p.computeHoverOverlays_=function(z,l){return z&&l?l:void 0};
_.p.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.p.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.p.checkMiniplayer_=function(){var z;if(((z=this.data)==null?0:z.playlistSetVideoId)&&_.C("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{z=_.wb();var l=z.currentEndpoint;!this.disableNowPlaying&&l&&_.k(l,_.zb)&&this.data?(l=_.k(l,_.zb),this.nowPlaying=this.data.playlistId?l.playlistId===this.data.playlistId:l.videoId===this.data.videoId,this.isVideoPlaying=z==null?void 0:z.isVideoPlaying):this.nowPlaying=!1}};
kj.prototype.checkMiniplayer_=kj.prototype.checkMiniplayer_;kj.prototype.onMouseLeave_=kj.prototype.onMouseLeave_;kj.prototype.onMouseEnter_=kj.prototype.onMouseEnter_;kj.prototype.computeHoverOverlays_=kj.prototype.computeHoverOverlays_;kj.prototype.computeFinalHoveredState_=kj.prototype.computeFinalHoveredState_;kj.prototype.computeSize=kj.prototype.computeSize;kj.prototype.computeThumbnailOverlaySidePanelWidth_=kj.prototype.computeThumbnailOverlaySidePanelWidth_;
_.e([_.t(_.gU),_.w("design:type",Object)],kj.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],kj.prototype,"height",void 0);_.e([_.X(),_.w("design:type",Boolean)],kj.prototype,"bottomSidePanel",void 0);_.e([_.X(),_.w("design:type",Number)],kj.prototype,"width",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"disableNowPlaying",void 0);
_.e([_.X({selector:_.rg}),_.w("design:type",Boolean)],kj.prototype,"miniplayerIsActive",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"disableTooltips",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"useHoveredProperty",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"hovered",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"isThumbnailHovered_",void 0);
_.e([_.X({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.w("design:type",Boolean)],kj.prototype,"finalHoveredState_",void 0);_.e([_.X({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.w("design:type",Number)],kj.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],kj.prototype,"addBackground",void 0);
_.e([_.X({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.w("design:type",Object)],kj.prototype,"hoverOverlays_",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],kj.prototype,"nowPlaying",void 0);_.e([_.X(),_.w("design:type",Boolean)],kj.prototype,"isVideoPlaying",void 0);_.e([_.X(),_.w("design:type",Object)],kj.prototype,"disableRounding",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.w("design:type",Object)],kj.prototype,"size",void 0);_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kj.prototype,"onMouseEnter_",null);_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kj.prototype,"onMouseLeave_",null);
_.e([_.By("data","disableNowPlaying","miniplayerIsActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kj.prototype,"checkMiniplayer_",null);_.e([_.Q5()],kj);var oD_=[kj.prototype];_.RJ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(z,l){return z+":"+_.UY(l)},
getPlayerListener_:function(z,l,I){z=this.getPlayerListenerKey_(z,l);l=this.playerListeners_.get(z);I&&this.playerListeners_.delete(z);return l},
savePlayerListener_:function(z,l){var I=l.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(z,l),I);return I},
listenToPlayerEvent:function(z,l,I){I=this.savePlayerListener_(l,I);z.addEventListener(l,I)},
listenToPlayerEvents:function(z,l){l.forEach(function(I,b){this.listenToPlayerEvent(z,b,I)}.bind(this))},
unlistenFromPlayerEvent:function(z,l,I){I=this.getPlayerListener_(l,I,!0);z.removeEventListener(l,I)},
unlistenFromPlayerEvents:function(z,l){l.forEach(function(I,b){this.unlistenFromPlayerEvent(z,b,I)}.bind(this))}}};
_.mW=function(){};_.PxA=new _.yH("PLAYER_API_TOKEN");var HvS=!1,kaG,fDY=!1,m0Q;var u1=function(z,l,I,b,v){_.Q9.call(this);var M=this;this.playerId=l;this.webPlayerContextConfig=b;this.loc=v;this.dKz=!1;this.api={};this.wof=this.myf=null;this.esM=new _.ks;this.iT={};this.pWf=this.jAN=this.elementId=this.lyL=this.config=null;this.n1L=!1;this.y6=this.kvf=null;this.uX0={};this.fVa=["onReady"];this.lastError=null;this.arS=NaN;this.dEW={};this.j2L=0;this.vW=this.targetElement=z;_.kN(this,this.esM);hzu(this);I?this.j2L=setTimeout(function(){M.loadNewVideoConfig(I)},0):b&&(sHA(this),
rc0(this))};
_.m(u1,_.Q9);u1.prototype.getId=function(){return this.playerId};
u1.prototype.loadNewVideoConfig=function(z){if(!this.isDisposed()){this.j2L&&(clearTimeout(this.j2L),this.j2L=0);var l=z||{};l instanceof zFp||(l=new zFp(l));this.config=l;this.setConfig(z);rc0(this);this.isReady()&&$0_(this)}};
var sHA=function(z){var l;z.webPlayerContextConfig?l=z.webPlayerContextConfig.rootElementId:l=z.config.attrs.id;z.elementId=l||z.elementId;z.elementId==="video-player"&&(z.elementId=z.playerId,z.webPlayerContextConfig?z.webPlayerContextConfig.rootElementId=z.playerId:z.config.attrs.id=z.playerId);var I;((I=z.vW)==null?void 0:I.id)===z.elementId&&(z.elementId+="-player",z.webPlayerContextConfig?z.webPlayerContextConfig.rootElementId=z.elementId:z.config.attrs.id=z.elementId)};
u1.prototype.setConfig=function(z){this.lyL=z;this.config=ezj(z);sHA(this);if(!this.jAN){var l;this.jAN=wkn(this,((l=this.config.args)==null?void 0:l.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var I;if((I=this.config)==null?0:I.attrs)z=this.config.attrs,(l=z.width)&&this.vW&&(this.vW.style.width=Vl(Number(l)||l,!0)),(z=z.height)&&this.vW&&(this.vW.style.height=Vl(Number(z)||z,!0))};
var $0_=function(z){if(z.config&&z.config.loaded!==!0)if(z.config.loaded=!0,!z.config.args||z.config.args.autoplay!=="0"&&z.config.args.autoplay!==0&&z.config.args.autoplay!==!1){var l;z.api.loadVideoByPlayerVars((l=z.config.args)!=null?l:null)}else z.api.cueVideoByPlayerVars(z.config.args)},Wz_=function(z){var l=!0,I=z.getPlayerElement();
I&&z.config&&(l=I.dataset.version===Ac_(z));return l&&!!_.W8("yt.player.Application.create")},rc0=function(z){if(!z.isDisposed()&&!z.n1L){var l=Wz_(z);
if(l&&(z.getPlayerElement()?"html5":null)==="html5")z.pWf="html5",z.isReady()||nDu(z);else if(Lzz(z),z.pWf="html5",l&&z.y6&&z.targetElement)z.targetElement.appendChild(z.y6),nDu(z);else{z.config&&(z.config.loaded=!0);var I=!1;z.kvf=function(){I=!0;var b=U0_(z,"player_bootstrap_method")?_.W8("yt.player.Application.createAlternate")||_.W8("yt.player.Application.create"):_.W8("yt.player.Application.create");var v=z.config?ezj(z.config):void 0;b&&b(z.targetElement,v,z.webPlayerContextConfig,z.loc);nDu(z)};
z.n1L=!0;l?z.kvf():(_.nQ(Ac_(z),z.kvf),(l=aDM(z))&&eCx(l||""),Vdn(z)&&!I&&_.vd("yt.player.Application.create",null))}}};
u1.prototype.getPlayerElement=function(){var z=_.EB(document,this.elementId);!z&&this.vW&&this.vW.querySelector&&(z=this.vW.querySelector("#"+this.elementId));return z};
var nDu=function(z){if(!z.isDisposed()){var l=z.getPlayerElement(),I=!1;l&&l.getApiInterface&&l.getApiInterface()&&(I=!0);if(I){z.n1L=!1;if(!U0_(z,"html5_remove_not_servable_check_killswitch")){var b;if((l==null?0:l.isNotServable)&&z.config&&(l==null?0:l.isNotServable((b=z.config.args)==null?void 0:b.video_id)))return}jHp(z)}else z.arS=setTimeout(function(){nDu(z)},50)}},jHp=function(z){hzu(z);
z.dKz=!0;var l=z.getPlayerElement();if(l){z.myf=Jc_(z,l,"addEventListener");z.wof=Jc_(z,l,"removeEventListener");var I=l.getApiInterface();I=I.concat(l.getInternalApiInterface());for(var b=z.api,v=0;v<I.length;v++){var M=I[v];b[M]||(b[M]=Jc_(z,l,M))}}for(var x in z.iT)z.iT.hasOwnProperty(x)&&z.myf&&z.myf(x,z.iT[x]);$0_(z);z.jAN&&z.jAN(z.api);z.esM.publish("onReady",z.api)},Jc_=function(z,l,I){var b=l[I];
return function(){var v=_.AT.apply(0,arguments);try{return z.lastError=null,b.apply(l,v)}catch(M){if(I!=="sendAbandonmentPing")throw M.params=I,z.lastError=M,v=new _.qB("PlayerProxy error in method call",{error:M,method:I,playerId:z.playerId}),v.level="WARNING",v;}}},hzu=function(z){z.dKz=!1;
if(z.wof)for(var l in z.iT)z.iT.hasOwnProperty(l)&&z.wof(l,z.iT[l]);for(var I in z.dEW)z.dEW.hasOwnProperty(I)&&clearTimeout(Number(I));z.dEW={};z.myf=null;z.wof=null;l=z.api;for(var b in l)l.hasOwnProperty(b)&&(l[b]=null);l.addEventListener=function(v,M){z.addEventListener(v,M)};
l.removeEventListener=function(v,M){z.removeEventListener(v,M)};
l.destroy=function(){z.dispose()};
l.getLastError=function(){return z.getLastError()};
l.getPlayerType=function(){return z.getPlayerType()};
l.getCurrentVideoConfig=function(){return z.lyL};
l.loadNewVideoConfig=function(v){z.loadNewVideoConfig(v)};
l.isReady=function(){return z.isReady()}};
u1.prototype.isReady=function(){return this.dKz};
u1.prototype.addEventListener=function(z,l){var I=this;this.isDisposed();var b=wkn(this,l);b&&(_.rf(this.fVa,z)||this.iT[z]||(l=zOj(this,z),this.myf&&this.myf(z,l)),this.esM.subscribe(z,b),z==="onReady"&&this.isReady()&&setTimeout(function(){b(I.api)},0))};
u1.prototype.removeEventListener=function(z,l){this.isDisposed()||(l=wkn(this,l))&&this.esM.unsubscribe(z,l)};
var wkn=function(z,l){var I=l;if(typeof l==="string"){if(z.uX0[l])return z.uX0[l];I=function(){var b=_.AT.apply(0,arguments),v=_.W8(l);if(v)try{v.apply(_.v7,b)}catch(M){throw b=new _.qB("PlayerProxy error when executing callback",{error:M}),b.level="ERROR",b;}};
z.uX0[l]=I}return I?I:null},zOj=function(z,l){var I=function(b){var v=function(){z.isDisposed();
if(!z.isDisposed())try{z.esM.publish(l,b!=null?b:void 0)}catch(g){var x=new _.qB("PlayerProxy error when creating global callback",{error:g.message,event:l,playerId:z.playerId,data:b,originalStack:g.stack,componentStack:g.componentStack});x.level="WARNING";throw x;}};
if(U0_(z,"web_player_publish_events_immediately"))v();else{var M=setTimeout(function(){v();_.h7.remove(z.dEW,String(M))},0);
_.h7.add(z.dEW,String(M),!0)}};
return z.iT[l]=I};
u1.prototype.getPlayerType=function(){return this.pWf||(this.getPlayerElement()?"html5":null)};
u1.prototype.getLastError=function(){return this.lastError};
var Lzz=function(z){z.cancel();hzu(z);z.pWf=null;z.config&&(z.config.loaded=!1);var l=z.getPlayerElement();l&&(Wz_(z)||!Vdn(z)?z.y6=l:(l&&l.destroy&&l.destroy(),z.y6=null));z.targetElement&&_.wy(z.targetElement)};
u1.prototype.cancel=function(){this.kvf&&_.yvQ(Ac_(this),this.kvf);clearTimeout(this.arS);this.n1L=!1};
u1.prototype.disposeInternal=function(){Lzz(this);if(this.y6&&this.config&&this.y6.destroy)try{this.y6.destroy()}catch(l){var z=new _.qB("PlayerProxy error during disposal",{error:l});z.level="ERROR";throw z;}this.uX0=null;for(z in this.iT)this.iT.hasOwnProperty(z)&&delete this.iT[z];this.lyL=this.config=this.api=null;delete this.targetElement;delete this.vW;_.Q9.prototype.disposeInternal.call(this)};
var Vdn=function(z){var l,I;z=(l=z.config)==null?void 0:(I=l.args)==null?void 0:I.fflags;return!!z&&z.indexOf("player_destroy_old_version=true")!==-1},Ac_=function(z){return z.webPlayerContextConfig?z.webPlayerContextConfig.jsUrl:(z=z.config.assets)?z.js:""},aDM=function(z){return z.webPlayerContextConfig?z.webPlayerContextConfig.cssUrl:(z=z.config.assets)?z.css:""},U0_=function(z,l){if(z.webPlayerContextConfig)var I=z.webPlayerContextConfig.serializedExperimentFlags;
else{var b;if((b=z.config)==null?0:b.args)I=z.config.args.fflags}return(I||"").split("&").includes(l+"=true")},ezj=function(z){for(var l={},I=_.D(Object.keys(z)),b=I.next();!b.done;b=I.next()){b=b.value;
var v=z[b];l[b]=typeof v==="object"?_.h7.clone(v):v}return l};var qm$={},Xkk="player_uid_"+(Math.random()*1E9>>>0);var Kf=function(z,l,I,b,v,M){l=l===void 0?document.createElement("div"):l;this.webPlayerContextConfig=z;this.container=l;this.commandResolver=I;this.apiResolver=QHt();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.yX;b||M?lw_(this):Iwu(this);this.pendingPlayerResponse=b;this.pendingWatchNextResponse=v;this.pendingPlayerVars=M;bXn(this)};
Kf.prototype.loadVideoWithPlayerResponse=function(z,l,I){this.loadVideo(z,l,I)};
Kf.prototype.loadVideoWithPlayerVars=function(z){return this.loadVideo(void 0,void 0,z)};
Kf.prototype.destroy=function(z){if(z=_.EB(document,z))z=Xkk+"_"+_.UY(z),(z=qm$[z])&&z.dispose()};
var MVA=function(z,l){var I;_.O(function(b){if(b.nextAddress==1)return z.pendingWatchNextResponse=l,z.synchronousApi?(I=z.synchronousApi,b.jumpTo(2)):b.yield(z.api,3);b.nextAddress!=2&&(I=b.yieldResult);if(!va0(z,I))return b.return();z.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:z.pendingWatchNextResponse}),z.pendingWatchNextResponse=void 0);_.qe(b)})},va0=function(z,l){var I;
if(!(l==null?0:(I=l.isReady)==null?0:I.call(l))){var b;_.PW(new _.qB("playerApi is falsey",{synchronousApi:z.synchronousApi,apiResolved:z.apiResolver.resolved,playerApiUndefined:l===void 0,playerApiNull:l===null,playerApiReady:(l==null?void 0:(b=l.isReady)==null?void 0:b.call(l))===!0,playerApiMethods:l?Object.keys(l):[]}));return!1}return!0},pj_=function(z,l){if(typeof z[l]==="function")return z[l]()},D34=function(z){var l=window,I,b=(I=l.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=b==null?void 0:b.firstElementChild)&&_.vH(I,"html5-video-player")){var v,M,x=(v=l.ytplayer)==null?void 0:(M=v.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;v=z.webPlayerContextConfig.contextId;if(x&&x===v){b!==z.container&&(b=!1,pj_(I,"getPlayerState")===2&&(b=!0),z.container.appendChild(I),b||pj_(I,"playVideo"));var g;if((g=l.ytplayer)==null?0:g.bootstrapPlayerResponse)z.bootstrapPlayerResponse=l.ytplayer.bootstrapPlayerResponse}}},bXn=function(z){var l,I,b,v,M;
_.O(function(x){if(x.nextAddress==1)return z.pageReadyOrDataAvailable?x.jumpTo(2):x.yield(z.pageReadyOrDataAvailableResolver.promise,2);if(x.nextAddress!=4)return!_.C("kevlar_player_unified_player_loading")||yc5()&&CxQ()?x.jumpTo(4):x.yield(td$(),4);D34(z);if(z.pendingPlayerResponse||z.pendingPlayerVars)l=Bvu(z.pendingPlayerResponse,z.pendingWatchNextResponse,z.pendingPlayerVars),z.pendingPlayerResponse&&z.pendingPlayerResponse===z.bootstrapPlayerResponse&&(l.loaded=!0),z.bootstrapPlayerResponse=
void 0;I=Fzf(z.container,l,z.webPlayerContextConfig);((b=l)==null?0:b.loaded)&&z.pendingWatchNextResponse?(MVA(z,z.pendingWatchNextResponse),z.pendingPlayerResponse=void 0,z.pendingPlayerVars=void 0):x3_(z);v=function(g){I.removeEventListener("onReady",v);z.synchronousApi=g;z.apiResolver.resolve(g)};
I.addEventListener("onReady",v);z.commandResolver!==void 0&&(M=z.commandResolver,I.addEventListener("innertubeCommand",function(g){M(g)}));
_.qe(x)})};
Kf.prototype.loadVideo=function(z,l,I){var b=this,v,M,x,g,G,u,Z,H,y;return _.O(function(f){if(f.nextAddress==1)return b.pendingPlayerResponse=z,b.pendingWatchNextResponse=l,b.pendingPlayerVars=I,lw_(b),b.synchronousApi?(v=b.synchronousApi,f.jumpTo(2)):f.yield(b.api,3);f.nextAddress!=2&&(v=f.yieldResult);if(!va0(b,v))return f.return(new Promise(function(){}));
x=new Promise(function(R){M=R});
g=function(){var R=v.getPlayerResponse();R&&(v.removeEventListener("onVideoDataChange",g),M(R))};
v.addEventListener("onVideoDataChange",g);if(b.pendingPlayerResponse||b.pendingPlayerVars)b.pendingPlayerResponse&&b.pendingPlayerResponse===b.bootstrapPlayerResponse?(M(b.pendingPlayerResponse),b.pendingWatchNextResponse&&MVA(b,b.pendingWatchNextResponse)):(G=Bvu(b.pendingPlayerResponse,b.pendingWatchNextResponse,b.pendingPlayerVars),(y=(u=b.pendingPlayerResponse)==null?void 0:(Z=u.playerConfig)==null?void 0:(H=Z.playbackStartConfig)==null?void 0:H.startPaused)?v.cueVideoByPlayerVars(G.args):v.loadVideoByPlayerVars(G.args)),
x3_(b),b.bootstrapPlayerResponse=void 0;return f.return(x)})};
var Iwu=function(z){if(document.readyState==="complete"||document.readyState==="interactive")lw_(z);else{var l=function(){document.removeEventListener("DOMContentLoaded",l);lw_(z)};
document.addEventListener("DOMContentLoaded",l)}},lw_=function(z){z.pageReadyOrDataAvailable=!0;
z.pageReadyOrDataAvailableResolver.resolve()},x3_=function(z){z.pendingPlayerResponse=void 0;
z.pendingWatchNextResponse=void 0;z.pendingPlayerVars=void 0};
_.vP.Object.defineProperties(Kf.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var t$=function(z){VH.call(this,z===void 0?"document_active":z);var l=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(I){l.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){l.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){l.transition("document_disposed",{event:I});l.hasRun=new Map})};
_.m(t$,VH);
t$.prototype.runPreventableDispose=function(z,l){if(!this.hasRun.get("document_disposed_preventable")){z(l==null?void 0:l.event);var I,b;if((l==null?0:(I=l.event)==null?0:I.defaultPrevented)||(l==null?0:(b=l.event)==null?0:b.returnValue)){l.event.returnValue||(l.event.returnValue=!0);l.event.defaultPrevented||l.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
t$.prototype.runDispose=function(z,l){this.hasRun.get("document_disposed")?this.transition("document_active"):(z(l==null?void 0:l.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
t$.prototype.runFlush=function(z,l){z(l==null?void 0:l.event);this.transition("document_active")};
t$.prototype.runActive=function(){};var BE=function(z){VH.call(this,z===void 0?"document_visibility_unknown":z);var l=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(I){document.visibilityState==="visible"?l.transition("document_visible",{event:I}):l.transition("document_hidden",
{event:I})});
_.C("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){l.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){l.transition("document_foregrounded",{event:I})}))};
_.m(BE,VH);BE.prototype.runVisible=function(z,l){z(l==null?void 0:l.event);_.C("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
BE.prototype.runHidden=function(z,l){z(l==null?void 0:l.event);_.C("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
BE.prototype.runBackgrounded=function(z,l){z(l==null?void 0:l.event)};
BE.prototype.runForegrounded=function(z,l){z(l==null?void 0:l.event)};var Xe=function(){this.teardownLifecycle=new t$;this.visibilityLifecycle=new BE};
Xe.prototype.install=function(){var z=_.AT.apply(0,arguments),l=this;z.forEach(function(I){l.teardownLifecycle.install(I)});
z.forEach(function(I){l.visibilityLifecycle.install(I)})};var qd=function(){Xe.call(this);var z={};this.install((z.document_disposed={callback:this.abortSlisAndFlush},z));_.C("combine_ve_grafts")&&(z={},this.install((z.document_disposed={callback:this.flushInteractionLoggingAttachVes},z)));z={};this.install((z.flush_logs={callback:this.logFinalPayload},z));_.C("web_log_cfg_cee_ks")||_.qA(_.ow,OX0)};
_.m(qd,Xe);var Ym1=function(){qd.loggingInstance||(qd.loggingInstance=new qd);return qd.loggingInstance};
qd.prototype.logFinalPayload=function(){if(_.C("web_fp_via_jspb")){var z=new qUu,l=_.sU();l&&_.Th(z,1,l);l=_.C("jspb_sparse_encoded_pivot")?new XL([{}]):new XL;_.Xr(l,380,iQ0,z);DYf("finalPayload",l);_.C("web_fp_via_jspb_and_json")&&_.cW("finalPayload",{csn:_.sU()})}else _.cW("finalPayload",{csn:_.sU()})};
qd.prototype.abortSlisAndFlush=function(){hsj(Hf);yV!=null&&yV.flush()};
qd.prototype.flushInteractionLoggingAttachVes=function(){vQ_(_.iY())};
var OX0=function(){var z=_.sZ("CLIENT_EXPERIMENT_EVENTS");if(z){var l=Up7();z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,l(I)&&_.cW("genericClientExperimentEvent",{eventType:I});delete _.P8.CLIENT_EXPERIMENT_EVENTS}};var ga0={};
ga0.YtPlayerBehavior=[_.RJ.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 z=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.yX;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;TvH(function(){z.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.rS(this,"pan-down"),_.C("kevlar_pinch_fullscreen")&&_.JC().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.C("kevlar_pinch_fullscreen")&&_.JC().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(z,l,I){var b=this;ZX(this.useUnifiedPlayer_());if(this.mainAppPlayer_)ZX(!1,"MainAppPlayer already created.");else{var v=_.C("kevlar_player_container_query_killswitch")?this.$.container:_.Hy(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Kf(this.getWebPlayerContextConfig_(),v,function(M){return _.tx(M,b.hostElement)},z,l,I);
this.mainAppPlayer_.api.then(function(M){b.player_=M;b.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Mp_.resolve(M)})}},
loadVideoWithPlayerResponse:function(z,l){var I=this;if(this.useUnifiedPlayer_()){var b=this.watchNextData,v,M=(v=z.videoDetails)==null?void 0:v.videoId,x,g,G;(v=(x=this.watchNextData)==null?void 0:(g=x.currentVideoEndpoint)==null?void 0:(G=g.watchEndpoint)==null?void 0:G.videoId)&&M!=v&&(b=void 0,_.C("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(z,b,l):this.createMainAppPlayer_(z,b,l);this.mainAppPlayer_.api.then(function(){_.gC(I.hostElement,
"yt-player-updated")})}else this.update(ED$(z,l))},
loadVideoWithPlayerVars:function(z){var l=this;this.useUnifiedPlayer_()?(_.C("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(z):this.createMainAppPlayer_(void 0,void 0,z),this.mainAppPlayer_.api.then(function(){_.gC(l.hostElement,"yt-player-updated")})):this.update({args:z})},
update:function(z){var l=this;if(this.useUnifiedPlayer_())ZX(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(z);var I=XK5(z.args);I&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==I&&Object.assign(z.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(z).then(function(b){_.gC(l.hostElement,"yt-player-updated",_.C("kevlar_player_updated_obsolete_player_killswitch")?
b:void 0)})}_.oy(new _.qB("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.getPlayerPromise(),2);I=b.yieldResult;if(!I)throw Error("Ah");z&&l.updatePlayerPlaylist_(z);_.qe(b)})},
acquireApi_:function(z){var l=this;if(this.useUnifiedPlayer_())ZX(!1,"Invalid method call in kevlar_unified_player.");else return _.ow.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(ZX(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){l.shouldAutoplay_(z)?I.loadVideoByPlayerVars(z.args):I.cueVideoByPlayerVars(z.args)})):this.initPlayerPromise_=this.initPlayerContainer_(z),this.initPlayerPromise_},
initPlayerContainer_:function(z){var l=this;if(this.useUnifiedPlayer_())ZX(!1,"Invalid method call in kevlar_unified_player.");else return ZX(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.PW(Error("Bh")),ZX(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.C("kevlar_player_container_query_killswitch")?this.$.container:_.Hy(this.hostElement).querySelector("#container"),td$().then(function(){var I=l.initPlayer_(z);l.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(z,l){this.useUnifiedPlayer_()?ZX(!1,"Invalid method call in kevlar_unified_player."):(z.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Mp_.resolve(z),l(z))},
maybeCallApiMethodOnElement_:function(z,l){if(typeof z[l]==="function")return z[l]()},
maybeAdoptBootstrapPlayer_:function(){var z=window,l,I=(l=z.ytplayer)==null?void 0:l.bootstrapPlayerContainer;if((l=I==null?void 0:I.firstElementChild)&&l.classList.contains("html5-video-player")){var b,v,M=(b=z.ytplayer)==null?void 0:(v=b.bootstrapWebPlayerContextConfig)==null?void 0:v.contextId;b=this.getWebPlayerContextConfig_().contextId;if(M&&M===b){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(l,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(l),I||this.maybeCallApiMethodOnElement_(l,
"playVideo"));var x;if((x=z.ytplayer)==null?0:x.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=z.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(z){var l=this;if(this.useUnifiedPlayer_())ZX(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){l.maybeAdoptBootstrapPlayer_();var b=z?u8k(z):void 0;b&&b==l.bootstrapPlayerResponse_&&(z.loaded=!0);b=l.playerContainer_;var v=l.getWebPlayerContextConfig_();b=Fzf(b,z,v);l.player_=b;l.onPlayerReadyEvent_=l.onPlayerReady_.bind(l,l.player_,I);l.player_.addEventListener("onReady",l.onPlayerReadyEvent_);l.player_.addEventListener("innertubeCommand",
l.onPlayerInnerTubeCommand_.bind(l))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(z){z.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(z){z.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var z=_.pG().resolve(_.OB).getCurrentPage();z&&z.getScrollTop()<=0?_.rS(this,"pan-down"):_.rS(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(z){z.isFullscreen()||z.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(z){z.isFullscreen()&&z.toggleFullscreen()})},
updatePlayerPlaylist_:function(z){var l=this,I,b,v;return _.O(function(M){if(M.nextAddress==1)return I=_.pG().resolve(_.MB(_.NG)),b=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),M.yield(l.getPlayerPromise(),2);var x=v=M.yieldResult,g=x.updatePlaylist,G=[];if(_.C("kevlar_player_playlist_use_local_index")){var u,Z;var H=(Z=(u=z.localCurrentIndex)!=null?u:z.currentIndex)!=null?Z:0}else{var y;H=(y=z.currentIndex)!=null?y:0}if(z.contents)for(u=0;u<z.contents.length;u++)if((Z=z.contents[u])&&Z.playlistPanelVideoRenderer)if(K6t(Z)){Z=
Z.playlistPanelVideoRenderer;y="";Z.shortBylineText&&(y=_.ID(Z.shortBylineText));var f="";Z.title?f=_.ID(Z.title):Z.unplayableText&&(f=_.ID(Z.unplayableText));G.push({author:y,title:f,encrypted_id:Z.videoId})}else u<H&&--H;g.call(x,{index:H,list:z.playlistId?z.playlistId:"",loop:b,playlist_title:z.title,playlist_length:G.length,video:G,fetch:0,external_list:"1",title:z.title?z.title:"",playlist_author:z.ownerName?_.ID(z.ownerName):void 0});_.qe(M)})},
focusOnPlayer:function(){_.IR(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var z=this.playerContainer_.querySelector(".html5-video-player");z&&(_.i0(_.pG().resolve(_.TH)),z.focus())}})},
preparePlayer:function(){var z=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(l){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")l();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);l()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return td$()}).then(function(){z.initPlayerPromise_||z.preparePlayerJobId_||(z.preparePlayerJobId_=_.qA(_.ow,function(){z.initPlayerPromise_||(z.initPlayerPromise_=z.initPlayerContainer_())}))}):_.oy(new _.qB("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(z){this.useUnifiedPlayer_()?ZX(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(z)||(z.args.autoplay="0")},
shouldAutoplay_:function(z){if(this.useUnifiedPlayer_())ZX(!1,"Invalid method call in kevlar_unified_player.");else{var l=this.get("args.el",z);return l&&l!="detailpage"&&this.isMiniplayerActive_()||l&&(l=="sponsorshipsoffer"||l=="handlesclaiming")&&this.get("args.autoplay",z)=="0"?!1:(z=u8k(z))&&this.get("playerConfig.playbackStartConfig.startPaused",z)?!1:!0}},
isMiniplayerActive_:function(){return _.pG().resolve(_.Af).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var z=this.getPlayer();if(z){var l=z.getPlayerState();_.C("kevlar_player_check_ad_state_on_stop")&&(l=z.getPlayerState(z.getPresentingPlayerType()));l!=5&&z.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(z,l,I){I=I===void 0?!1:I;var b=this,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return l||(l=b.hostElement),v=b.useUnifiedPlayer_()?!!b.mainAppPlayer_:!!b.initPlayerPromise_,v?G.yield(b.getPlayerPromise(),2):(I?z.insertBefore(l,z.firstChild):z.appendChild(l),G.return());M=G.yieldResult;x=M.getPlayerState(M.getPresentingPlayerType());g=!1;if(x==-1||x==1||x==3)g=!0;I?z.insertBefore(l,z.firstChild):z.appendChild(l);g&&M.playVideo();M.setSize(NaN,NaN);_.qe(G)})},
watchNextDataChanged_:function(z){var l=this;z&&(this.useUnifiedPlayer_()&&_.C("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&MVA(this.mainAppPlayer_,z):this.getPlayerPromise().then(function(I){I.updateVideoData(l.computeWatchNextPlayerVars_(z))}))},
computeWatchNextPlayerVars_:function(z){if(this.useUnifiedPlayer_()&&_.C("kevlar_unified_player_update_watch_next_killswitch"))ZX(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:z}},
maybeSendAbandonmentPing_:function(){var z=this.getPlayer();z&&z.getPlayerState()!=5&&z.getPlayerState()!=0&&z.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var z=_.sZ("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(z=Object.assign({},z),z.rootElementId=this.playerId);z.serializedExperimentIds&&z.serializedExperimentFlags||_.PW(Error("Ch"));return z},
hasWebPlayerContextConfig_:function(){return!!_.sZ("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(z){this.useUnifiedPlayer_()?ZX(!1,"Invalid method call in kevlar_unified_player."):_.tx(z,this.hostElement)},
useUnifiedPlayer_:function(){var z=_.C("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.C("kevlar_unified_player")||z}}];var GU4={};GU4.YtPlaylistPanelBehavior=[_.U.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(z){z=z.detail;if(z.actions.loop!=void 0||z.actions["yt-icons:loop"]!=void 0)this.loopOn=z.actions.loop||z.actions["yt-icons:loop"];if(z.actions.shuffle!=void 0||z.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=z.actions.shuffle||z.actions["yt-icons:shuffle"]},
setMenuData_:function(z){if(!z||!z.playlistButtons||z.isInfinite)return null;for(var l=z.playlistButtons.menuRenderer.topLevelButtons,I=l.length,b=0;b<I;b++)if(l[b].toggleButtonRenderer){var v=l[b].toggleButtonRenderer;v.defaultIcon.iconType=="LOOP"&&this.loopOn?v.isToggled=this.loopOn:v.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(v.isToggled=this.shuffleOn)}return z.playlistButtons}}];var Nu_=function(z){Nr.call(this,z,132);this.isDocument=z===document.documentElement};
_.m(Nu_,Nr);Nu_.prototype.calculateScrollDelta=function(z,l,I){var b=0;z<l?b=z<l-100?-48:-8:z>l+I&&(b=z>l+I+100?48:8);return b};
Nu_.prototype.JSC$11397_onMouseMove=function(z){this.isDocument||(z.clientX=z.event_.pageX,z.clientY=z.event_.pageY);Nr.prototype.JSC$11397_onMouseMove.call(this,z)};var Fe=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;z.scrollElement=document.documentElement;z.JSC$14386_dragListGroup=null;z.dragScrollSupport=null;z.onDraggerCreated=function(l){var I=l.JSC$11393_dragger;I.scrollTarget_=z.scrollElement;l=l.draggerEl;I&&l.menuOpened&&I.setEnabled(!1)};
z.onDragStart=function(l){var I=l.draggerEl;l=l.currDragItem;var b=Object.assign({},l==null?void 0:l.data);b.trackingParams=void 0;I.data=b;I.style.position="absolute";I.style.width=(l==null?void 0:l.clientWidth)+"px";I.style.zIndex="2030";I.onDrag&&I.onDrag();_.C("web_owner_document_fallback_killswitch")?(l=document.querySelector("ytd-app"))&&_.Hy(l).appendChild(I):(l=_.e6(I),(b=l.querySelector("ytd-app"))?_.Hy(b).appendChild(I):l.body.appendChild(I));z.dragScrollSupport=new Nu_(z.scrollElement);
z.dragScrollSupport.horizontalScrolling_=!1;I=z.dragScrollSupport;I.constrainScroll_=!!I.margin_&&!1};
z.onDrop=function(l){z.handleDrop(l);z.dragScrollSupport&&(_.p0(z.dragScrollSupport),z.dragScrollSupport=null)};
z.onReorderableScroll=function(){if(z.JSC$14386_dragListGroup){var l=z.JSC$14386_dragListGroup;XyM(l,l.currDragItem_)}};
return z};
_.m(Fe,_.F6);Fe.prototype.detached=function(){_.Ean(this)};
_.Ean=function(z){z.JSC$14386_dragListGroup&&(_.dO(z.JSC$14386_dragListGroup,yPu,z.onDragStart),_.dO(z.JSC$14386_dragListGroup,RHp,z.onDragStart),z.JSC$14386_dragListGroup.dispose(),z.JSC$14386_dragListGroup=null);z.dragScrollSupport&&(_.p0(z.dragScrollSupport),z.dragScrollSupport=null);z.scrollElement.removeEventListener("scroll",z.onReorderableScroll)};
_.uCA=function(z,l,I,b){b=b===void 0?"":b;_.Ean(z);I&&(z.scrollElement=I);z.JSC$14386_dragListGroup=new vo;z.JSC$14386_dragListGroup.hysteresisDistance_=2;K2M(z.JSC$14386_dragListGroup,l);z.JSC$14386_dragListGroup.draggerElClasses_=ZS("dragging").split(" ");b&&tgA(z.JSC$14386_dragListGroup,function(v){var M=v||document,x=null;M.getElementsByClassName?x=M.getElementsByClassName(b)[0]:x=vSn("*",b,v);return x||v});
_.dZ(z.JSC$14386_dragListGroup,ZJz,z.onDraggerCreated);_.dZ(z.JSC$14386_dragListGroup,yPu,z.onDragStart);_.dZ(z.JSC$14386_dragListGroup,RHp,z.onDrop);z.JSC$14386_dragListGroup.init();z.scrollElement.addEventListener("scroll",z.onReorderableScroll,{passive:!0})};
Fe.prototype.handleDrop=function(){};
_.vP.Object.defineProperties(Fe.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.e([_.X({value:100}),_.w("design:type",Number)],Fe.prototype,"scrollMargin",void 0);_.e([_.Q5()],Fe);_.ZXA=[Fe.prototype];_.QW={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(z,l,I){var b=this.getClickTarget_(l);if(b&&this.isClickAllowed_(b)){l.preventDefault();z=(0,_.h7.unsafeClone)(z);var v=this.getContainerBoundingRect();l=this.getRelativeClickXy_(l,v);this.expandEndpointUrlMacros_(z,{NX:l[0],NY:l[1],NB:b.code});I&&this.truncateWebCommendMetadataUrl_(z);_.gC(this.hostElement,"yt-navigate",{endpoint:z})}},
getClickTarget_:function(z){if(!this.clickTargetMap)return null;z=_.MX(z)||[];z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;if(l===_.Hy(this.hostElement).querySelector("#menu"))break;if(l=this.clickTargetMap.get(l.id))return l}return null},
getRelativeClickXy_:function(z,l){var I=z.detail.x,b=z.detail.y;_.C("use_on_click_for_desktop_display_ad")&&z.clientX!=null&&z.clientY!=null&&(I=z.clientX,b=z.clientY);z=Math.round(I-l.left);l=Math.round(b-l.top);return z<0||l<0?[null,null]:[z,l]},
getContainerBoundingRect:function(){return _.Hy(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(z,l){for(var I=_.D(z.loggingUrls||[]),b=I.next();!b.done;b=I.next())b=b.value,b.baseUrl&&(b.baseUrl=l_7(b.baseUrl,l));z.urlEndpoint&&z.urlEndpoint.url&&(z.urlEndpoint.url=l_7(z.urlEndpoint.url,l));z.commandMetadata&&z.commandMetadata.webCommandMetadata&&z.commandMetadata.webCommandMetadata.url&&(z.commandMetadata.webCommandMetadata.url=l_7(z.commandMetadata.webCommandMetadata.url,l))},
truncateWebCommendMetadataUrl_:function(z){if(z.commandMetadata&&z.commandMetadata.webCommandMetadata&&z.commandMetadata.webCommandMetadata.url){var l=z.commandMetadata.webCommandMetadata.url,I=l.indexOf("&pp=");if(I>0){var b=l.indexOf("&",I+1);z.commandMetadata.webCommandMetadata.url=b>I&&b<l.length?l.slice(0,I)+l.slice(b):l.slice(0,I)}}},
configureClickTargets:function(z,l,I){this.containerId=z;this.clickTargetMap=new Map;z=_.D(l);for(l=z.next();!l.done;l=z.next())if(l=l.value,l.location){var b=I.get(l.location);b&&(_.fJ(_.Hy(this.hostElement).querySelector("#"+b),"yt-simple-endpoint",this.isClickAllowed_(l)),this.clickTargetMap.set(b,l))}},
isClickAllowed_:function(z){return z.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||z.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||z.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||z.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Yj={};
_.Yj.YtLazyListBehavior=[_.qw.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 z=(this.constructor.generatedFrom||this).observers;z||(z=[]);z.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
z}},
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 z=this.renderElementsOutsideVisibleArea_;z&&(EpI(z,4),z.processSignal())},
deepLazyListObserver_:function(z){var l=this;if(z){var I=z.value||[];if(this.itemsPath==z.path){var b=this.nonDeferredItemCount;z=0;b>-1&&I.length>b&&(z=_.sZ("REMAINING_DOVA_DEFERRED_CHUNKS",-1));z>0?(b>0&&(b=I.slice(0,b),this.setInitialItemsOnDataChanged(b)),(b=this.renderElementsOutsideVisibleArea_)?b.cancel():(b=this.renderElementsOutsideVisibleArea_=new _.Fx(2,"eocs"),_.vlf(window,"scroll",function(){return l.renderDeferredElements()})),_.Qy(b,function(){l.setInitialItemsOnDataChanged(I)}),_.hr("REMAINING_DOVA_DEFERRED_CHUNKS",
z-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==z.path)this.onItemsUpdated_(I);
else b="shownItems"+z.path.substr(this.itemsPath.length),this.useSignals&&b==="shownItems.length"||this.notifyPath(b,z.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(z){z&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(z),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(z){z=z.indexSplices;for(var l=0,I=z.length;l<I;l++){var b=z[l];if(b.index<this.shownCount&&(b.removed&&this.splice("shownItems",b.index,b.removed.length),b.addedCount)){var v=b.object.slice(b.index,b.index+b.addedCount);b=["shownItems",b.index,0];b.push.apply(b,v);this.splice.apply(this,b)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(z){this.cancelPendingTasks_();z||(z=[]);this.items_=z;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&&(_.rr("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.IR(this,this.tryRenderChunk_)))},
fillRange_:function(z,l){this.canShowMore&&this.items_&&(z=this.items_.slice(z,l),z.unshift("shownItems"),this.push.apply(this,z),this.shownCount=l,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var z=this;this.canShowMore&&_.z4(this,"renderChunk",function(){z.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.rr("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.o0(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var z=this.renderElementsOutsideVisibleArea_;z&&(z.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var z=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(z-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=z;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(z){return Math.ceil(1E3/z)},
onCanShowMoreUpdated_:function(z){this.data&&this.items_!==null&&(z?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(z){!this.shouldUseTaskManager()&&this.data&&(!z&&this.canShowMore?(_.I75(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):z&&this.partiallyRenderedItems_.has(this.items_)&&(_.C("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var ST;_.Tq={};
ST=function(){var z=_.F6.apply(this,arguments)||this;z.atStart=!0;z.atEnd=!0;z.startIndex=0;z.endIndex=0;z.scrollCount=0;z.initialStartIndex=0;z.disableScrollEventListener=!1;z.useFloorScrolling=!1;z.isSearch=!1;z.dragging=!1;z.dragMouseStart=0;z.dragOffsetStart=0;z.disableWheelScroll=!1;z.centerListItems=!1;z.offset=0;z.minComponentWidth=0;z.marginWidthRight=0;z.marginWidthLeft=0;z.setButtonsStateRequested=!1;z.itemsVisibilityObserver=null;z.fullyVisibleItemsIndices=[];z.JSC$14397_onWheelScroll=function(l){if(z.isSearch&&
!z.disableWheelScroll&&_.C("desktop_enable_dmpanel_wheel_scroll")){var I=l.shiftKey?Math.abs(l.deltaY)>Math.abs(l.deltaX)?l.deltaY:l.deltaX:l.deltaX;I!==0&&(l.preventDefault(),z.ytLazyListBehavior.fillRemainingListItems(),z.offset+=I,cE(z),z.reposition_())}};
z.onPointerDown=function(l){HX0(z)&&(z.dragMouseStart=l.clientX,z.dragOffsetStart=z.offset,z.dragging=!0)};
z.onPointerMove=function(l){HX0(z)&&z.dragging&&(z.ytLazyListBehavior.fillRemainingListItems(),z.offset=z.dragOffsetStart-(l.clientX-z.dragMouseStart),cE(z),z.reposition_())};
z.onPointerUp=function(){HX0(z)&&(z.dragging=!1)};
return z};
_.m(ST,_.F6);var yju=function(z){var l=_.Hy(z.hostElement).querySelector("#items").children;if(!l)return 0;var I=0;z=_.D(z.fullyVisibleItemsIndices);for(var b=z.next();!b.done;b=z.next())I+=l[b.value].clientWidth;return I},HX0=function(z){return z.isSearch&&_.C("desktop_enable_dmpanel_click_drag_scroll")};
ST.prototype.created=function(){this.cachedViewportWidth=_.sZ("initialInnerWidth")||window.innerWidth;this.JSC$14397_cachedViewportHeight=_.sZ("initialInnerHeight")||window.innerHeight;_.sZ("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.hr("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
ST.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.C("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();fwu(this)};
ST.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.C("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var z;(z=this.itemsVisibilityObserver)==null||z.disconnect();this.itemsVisibilityObserver=null;var l;(l=this.itemsObserver)==null||l.disconnect()};
var fwu=function(z){var l=_.Hy(z.hostElement).querySelector("#scroll-container");if(l){if(!z.itemsVisibilityObserver){var I=window.getComputedStyle(l).marginRight;z.itemsVisibilityObserver=new IntersectionObserver(function(b){CDw(z,b)},{root:l,
rootMargin:I,threshold:.98})}if(l=_.Hy(z.hostElement).querySelector("#items"))z.itemsObserver=new vW4(l,function(b){kUp(z,b)})}},kUp=function(z,l){RO4(z)&&(Array.from(l.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){z.itemsVisibilityObserver&&z.itemsVisibilityObserver.observe(I)}),Array.from(l.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){z.itemsVisibilityObserver&&z.itemsVisibilityObserver.unobserve(I)}))},
CDw=function(z,l){var I=new Set(z.fullyVisibleItemsIndices);
l=_.D(l);for(var b=l.next();!b.done;b=l.next()){b=b.value;var v=b.target.parentElement;v?(v=Array.from(v.children).indexOf(b.target),b.isIntersecting?I.add(v):I.has(v)&&I.delete(v)):_.PW(new _.qB("Parent element not found",b.target.nodeName))}z.fullyVisibleItemsIndices=Array.from(I).sort(function(M,x){return M-x});
I.size===0?_.PW(new _.qB("No visible entries in horizontal list")):(z.startIndex=z.fullyVisibleItemsIndices[0],z.endIndex=z.fullyVisibleItemsIndices[z.fullyVisibleItemsIndices.length-1])},RO4=function(z){z.data?z=(z=z.data)&&z.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===z.itemSizeConstraint:!1:z=!1;
return z};
_.p=ST.prototype;_.p.addScrollEventListeners=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container");z.style.touchAction="pan-y";z.addEventListener("wheel",this.JSC$14397_onWheelScroll);z.addEventListener("pointerdown",this.onPointerDown);z.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.p.removeScrollEventListeners=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container");z.removeEventListener("wheel",this.JSC$14397_onWheelScroll);z.removeEventListener("pointerdown",this.onPointerDown);z.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.p.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.IR(this,this.setStartIndex,[this.initialStartIndex])};
_.p.reposition_=function(){var z=_.sZ("HTML_DIR")=="rtl"?"":"-",l=_.Hy(this.hostElement).querySelector("#items");l&&(l.style.transform="translateX("+z+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.p.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.IR(this,this.setButtonsState_))};
_.p.setButtonsState_=function(){this.setButtonsStateRequested=!1;var z=_.Hy(this.hostElement).querySelector("#items").firstElementChild;if(z){this.minComponentWidth||(this.minComponentWidth=m3j(this,z));z=_.Hy(this.hostElement).querySelector("#scroll-container").clientWidth;var l=_.Hy(this.hostElement).querySelector("#items");l=_.C("kevlar_horizontal_list_scroll_width_killswitch")?l.clientWidth:l.scrollWidth;var I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var b=Math.round(z/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+b,I.length)-1)}this.ytLazyListBehavior.canShowMore?l+this.minComponentWidth>=this.offset+z&&(this.atEnd=!1):this.atEnd=this.offset+z>=l-20?!0:!1;this.atStart=this.offset<=20}};
_.p.setStartIndex=function(z){if(!this.minComponentWidth){var l=_.Hy(this.hostElement).querySelector("#items").firstElementChild;if(!l)return;this.minComponentWidth=m3j(this,l)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*z;cE(this);this.reposition_()};
_.p.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Y4();var z=_.Hy(this.hostElement).querySelector("#scroll-container").clientWidth;_.C("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=m3j(this,_.Hy(this.hostElement).querySelector("#items").firstElementChild));z=this.useFloorScrolling?Math.floor(z/this.minComponentWidth)||1:Math.round(z/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&KNn(this);this.offset+=RO4(this)?
yju(this):z*this.minComponentWidth;cE(this);this.reposition_();this.scrollCount++};
_.p.prevClick_=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container").clientWidth;z=this.useFloorScrolling?Math.floor(z/this.minComponentWidth)||1:Math.round(z/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=RO4(this)?yju(this):this.minComponentWidth*this.scrollCount-1):this.offset-=RO4(this)?yju(this):z*this.minComponentWidth;this.centerListItems&&KNn(this);cE(this);this.reposition_()};
_.p.onIronResize_=function(){this.resizeSupportEnabled&&_.IR(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.p.onItemsTransitionEnd_=function(z){_.pJ(z)===_.Hy(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.p.onChildElementFocus_=function(z){z=z.target.closest("#items > *");var l=_.Hy(this.hostElement).querySelector("#scroll-container");if(l.contains(z)){if(_.C("web_horizontal_list_behavior_focus_killswitch"))if(z.offsetLeft<this.offset)this.offset=Math.abs(z.offsetLeft)<z.clientWidth?0:z.offsetLeft;else if(z.offsetLeft+z.clientWidth>this.offset+l.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Y4(),this.offset=z.offsetLeft+z.clientWidth-l.clientWidth;else return;else{var I=_.Hy(this.hostElement).querySelector("#items"),
b=_.sZ("HTML_DIR")==="rtl",v=b?I.clientWidth-z.offsetLeft:z.offsetLeft;I=b?I.clientWidth-(z.offsetLeft+z.clientWidth):z.offsetLeft+z.clientWidth;var M=b?v>this.offset+l.clientWidth:v<this.offset,x=b?I<this.offset:I>this.offset+l.clientWidth,g=b?M:x;if(b?x:M)l=b?I:v,this.offset=Math.abs(l)<z.clientWidth?0:l;else if(g)this.ytLazyListBehavior.fillRemainingListItems(),_.Y4(),this.offset=(b?v:I)-l.clientWidth;else return}cE(this);this.reposition_()}};
_.p.observeShownItems_=function(){this.reset()};
_.p.checkComponentWidthResize=function(){var z=_.Hy(this.hostElement).querySelector("#items").firstElementChild;z&&(z=m3j(this,z),this.centerListItems||z!==this.minComponentWidth)&&(this.minComponentWidth=z,this.offset=z*this.scrollCount,this.centerListItems&&KNn(this),cE(this),this.reposition_())};
var m3j=function(z,l){var I=window.getComputedStyle(l).marginRight;I=Math.floor(Number(I.replace("px","")));var b=window.getComputedStyle(l).marginLeft;b=Math.floor(Number(b.replace("px","")));z.centerListItems&&!z.marginWidthRight&&(z.marginWidthRight=I,z.marginWidthLeft=b);return z.resizeSupportEnabled?l.getBoundingClientRect().width+I:l.offsetWidth+I},cE=function(z){var l=_.Hy(z.hostElement).querySelector("#scroll-container").clientWidth,I=_.Hy(z.hostElement).querySelector("#items").clientWidth;
z.offset<0?z.offset=0:z.offset+l>=I&&(z.offset=I-l)},KNn=function(z){z.offset-=(_.Hy(z.hostElement).querySelector("#scroll-container").clientWidth+z.marginWidthRight-z.minComponentWidth)/2-z.marginWidthLeft};
_.vP.Object.defineProperties(ST.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var z=_.sZ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(z==-1)z=this.JSC$14397_cachedViewportHeight,z=z>1320?5:z>1020?4:z>730?3:z>430?2:1;else if(z==0)return 0;_.hr("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",z-1);z=_.sZ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(z>-1)return z;z=this.cachedViewportWidth;z=z>1600?6:z>1400?5:z>1300?4:z>1090?5:z>870?4:z>660?3:2;_.hr("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
z);return z},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.C("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
ST.prototype.observeShownItems_=ST.prototype.observeShownItems_;ST.prototype.onChildElementFocus_=ST.prototype.onChildElementFocus_;ST.prototype.onItemsTransitionEnd_=ST.prototype.onItemsTransitionEnd_;ST.prototype.onIronResize_=ST.prototype.onIronResize_;ST.prototype.prevClick_=ST.prototype.prevClick_;ST.prototype.nextClick_=ST.prototype.nextClick_;ST.prototype.setButtonsState_=ST.prototype.setButtonsState_;ST.prototype.requestButtonsStateUpdate_=ST.prototype.requestButtonsStateUpdate_;
ST.prototype.reposition_=ST.prototype.reposition_;ST.prototype.reset=ST.prototype.reset;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],ST.prototype,"ytLazyListBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ST.prototype,"atStart",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ST.prototype,"atEnd",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"startIndex",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"endIndex",void 0);_.e([_.X({value:6}),_.w("design:type",Number)],ST.prototype,"initialCount",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"scrollCount",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"initialStartIndex",void 0);
_.e([_.X(),_.w("design:type",Object)],ST.prototype,"disableScrollEventListener",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"supportComponentResize",void 0);_.e([_.X({value:function(){var z=this;return function(){return z.prevClick_()}}}),
_.w("design:type",Function)],ST.prototype,"boundPrevClick",void 0);_.e([_.X({value:function(){var z=this;return function(){return z.nextClick_()}}}),
_.w("design:type",Function)],ST.prototype,"boundNextClick",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"useFloorScrolling",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"isSearch",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"dragging",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"dragMouseStart",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"dragOffsetStart",void 0);
_.e([_.X(),_.w("design:type",Object)],ST.prototype,"disableWheelScroll",void 0);_.e([_.X(),_.w("design:type",Object)],ST.prototype,"centerListItems",void 0);_.e([_.tP("iron-resize"),_.By("guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ST.prototype,"onIronResize_",null);_.e([_.tP("transitionend"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],ST.prototype,"onItemsTransitionEnd_",null);
_.e([_.tP("focusin"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],ST.prototype,"onChildElementFocus_",null);_.e([_.By("shownItems"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ST.prototype,"observeShownItems_",null);_.e([_.Q5()],ST);_.Tq.YtdHorizontalListBehavior=[];_.Tq.YtdHorizontalListBehavior.push(_.ap,_.U.YtRendererBehavior,_.Yj.YtLazyListBehavior,_.HE.YtdGuideStateAwareBehavior,ST.prototype);var SmQ=["APP_STATE","PI"];var tVI=_.zs(["about:blank"]),Buu={pushState:window.history.pushState,replaceState:window.history.replaceState};var dU=function(z){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=z;this.internalPushState=z.pushState.bind(z);this.internalReplaceState=z.replaceState.bind(z)};
dU.prototype.init=function(){this.initialized=!0};
dU.prototype.pushState=function(z,l){this.initialized||this.init();this.internalPushState&&this.internalPushState(z,"",l)};
dU.prototype.replaceState=function(z,l){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(z,"",l)};
dU.prototype.getState=function(){return this.history&&this.history.state};var Xju=function(z){var l=function(){var I=z.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.m(l,z);l.prototype.init=function(){var I=_.tA("IFRAME");_.JT(I,_.HR(tVI));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();z.prototype.init.call(this)};
l.prototype.bindHistoryStateFunctions=function(){var I=this,b=[],v;this.iframe&&((v=this.iframe.contentWindow)==null?0:v.history)&&(v=this.iframe.contentWindow.history)&&(b.push(v),Object.getPrototypeOf(v)&&b.push(Object.getPrototypeOf(v)));window.history&&b.push(window.history);v=window.history;Object.getPrototypeOf(v)&&b.push(Object.getPrototypeOf(v));b.push(Buu);v=function(x){for(var g=null,G=0;G<b.length;G++){var u=b[G][x];if(typeof u==="function"){g=u.bind(window.history);I.debugInfo[x]=G;break}}return g};
if(!this.boundHistoryReplaceState){var M=v("replaceState");M&&(this.internalReplaceState=M,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(v=v("pushState"))&&(this.internalPushState=v,this.boundHistoryPushState=!0)};
return l}(dU),q1M=function(){return Xju.call(this,window.history)||this};
_.m(q1M,Xju);q1M.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var oJ=function(z){this.browserHistory=z;this.initialized=!1};
oJ.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
oJ.prototype.pushState=function(z,l){this.initialized||this.init();this.browserHistory.pushState(z,l)};
oJ.prototype.replaceState=function(z,l){this.initialized||this.init();this.browserHistory.replaceState(z,l)};
oJ.prototype.handlePopstate=function(z){return z.state};_.iXA=function(z,l,I,b,v){this.endpoint=z;this.forward=l;this.historyEntry=I;this.JSC$30183_savedComponentState=b;this.legacyBorder=v===void 0?!1:v};var FNu=function(z,l){this.rootData=z;this.scrollTop=l};var i9=new _.yH("PAGE_REQUEST_TOKEN"),eaM=new _.yH("FETCH_PBJ_TOKEN");_.PE=new _.yH("EPHEMERAL_STORE_TOKEN");_.h$=function(z){this.data=Object.assign({},z);var l;(l=this.data.innertubeResponse)==null||delete l.frameworkUpdates};
_.h$.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Dr)()};
_.x1=function(z){return Object.assign({},z.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Qz4=function(){this.maxSize=100;this.timeToDataCache=new Map};
Qz4.prototype.get=function(z){var l=this.timeToDataCache.get(z);l&&(this.timeToDataCache.delete(z),this.timeToDataCache.set(z,l));if(l&&l.rootData&&(_.C("web_use_response_store_for_history_cache")||_.C("mweb_use_new_history_manager"))){var I=_.pG().resolve(_.PE),b=Y1M(l),v=!!b;if(b){if(b.content){var M=s3(I,b.content);v&&M?l.rootData.response=_.x1(M):v=!1}b.player&&(M=s3(I,b.player),v&&M?l.rootData.playerResponse=_.x1(M):v=!1);b.reelSequence&&(I=s3(I,b.reelSequence),v&&I?l.rootData.reelWatchSequenceResponse=
_.x1(I):v=!1)}v||(this.timeToDataCache.delete(z),l=void 0)}return l};
Qz4.prototype.set=function(z,l){if(l.rootData&&(_.C("web_use_response_store_for_history_cache")||_.C("mweb_use_new_history_manager"))){var I=Y1M(l),b=Object.assign({},l.rootData);I&&(I.content&&l.rootData.response&&(Tu4(this,I.content,l.rootData.response),b.response=null),I.player&&l.rootData.playerResponse&&(Tu4(this,I.player,l.rootData.playerResponse),b.playerResponse=null),I.reelSequence&&l.rootData.reelWatchSequenceResponse&&(Tu4(this,I.reelSequence,l.rootData.reelWatchSequenceResponse),b.reelWatchSequenceResponse=
null));l=new FNu(b,l.scrollTop)}this.timeToDataCache.has(z)?this.timeToDataCache.delete(z):this.timeToDataCache.size>=this.maxSize&&(I=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(I.value));this.maxSize!==0&&this.timeToDataCache.set(z,l)};
Qz4.prototype.clear=function(){this.timeToDataCache.clear()};
var Y1M=function(z){var l=_.pG().resolve(_.MB(i9)),I;if((I=z.rootData)==null?0:I.endpoint)return l==null?void 0:Rwp(l,z.rootData.endpoint);var b;_.PW(new _.qB("History snapshot response data does not contain endpoint",(b=z.rootData)==null?void 0:b.url));return null},Tu4=function(z,l,I){if(z.maxSize>0){var b;
(z=(b=I.responseContext)==null?void 0:b.maxAgeSeconds)&&Number(z)>0&&(b=_.pG().resolve(_.PE),I=fY(I,z),b.put(l,new _.h$(I)))}};var cju=function(z,l,I){this.endpoint=l;this.JSC$30188_savedComponentState=I===void 0?null:I;this.entryTime=z};var rc5=1;var rU=function(z){var l=function(){var I=z.apply(this,[].concat(_.ht(_.AT.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.m(l,z);l.prototype.createHistoryCache=function(){return new Qz4};
l.prototype.saveAndReplace=function(I,b,v){var M=window.location.href;var x=x===void 0?{}:x;var g=(g=this.browserHistory.getState())&&g.entryTime?g.entryTime:$0k();I=this.createNewHistoryEntry(I,x,g);this.saveSnapshot(g,b,v);this.replaceState(I,M||window.location.href)};
l.prototype.saveAndPush=function(I,b,v,M,x){x=x===void 0?{}:x;this.saveSnapshot(this.historyEntryTime,v,M);v=this.historySnapshotCache;M=this.historyEntryTime;var g=v.timeToDataCache.keys();g=_.D(g);for(var G=g.next();!G.done;G=g.next())G=G.value,G>M&&v.timeToDataCache.delete(G);b=this.createNewHistoryEntry(b,x);this.pushState(b,I)};
l.prototype.saveSnapshot=function(I,b,v){this.historySnapshotCache.set(I,new FNu(b,v))};
l.prototype.createNewHistoryEntry=function(I,b,v){v=v===void 0?$0k():v;return new cju(v,I,b)};
l.prototype.handlePopstate=function(I){var b=z.prototype.handlePopstate.call(this,I),v=null,M=null,x=!1,g=null;b&&b.entryTime&&(g=this.historySnapshotCache.get(b.entryTime)||null,x=b.entryTime>this.historyEntryTime,this.historyEntryTime=b.entryTime,v=b.endpoint,M=b.JSC$30188_savedComponentState);this.handleHistoryCacheLoad(new _.iXA(v,x,g,M),I);return b};
l.prototype.pushState=function(I,b){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);z.prototype.pushState.call(this,I,b)};
l.prototype.replaceState=function(I,b){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);z.prototype.replaceState.call(this,I,b)};
l.prototype.handleHistoryCacheLoad=function(){};
return l}(oJ),S1I=function(){var z=rU.call(this,new q1M)||this;
z.dispatchElement=null;z.entryIndex=0;return z};
_.m(S1I,rU);_.p=S1I.prototype;_.p.init=function(z){z=z===void 0?!0:z;rU.prototype.init.call(this);this.initialized||(z||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.p.handlePopstate=function(z){var l=null;z.state||(l="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return rU.prototype.handlePopstate.call(this,z);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.Gb(this.dispatchElement,"yt-history-pop",[I,{errorMsg:l}]);_.EK(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.pG().resolve(_.OB);l=I.getCurrentData();var b=I.getCurrentPage();I=0;b?(b=_.Gb(this.dispatchElement,"yt-get-page-offset",
[b]),b.length>0&&(I=b[0])):_.PW(new _.qB("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:l?l.page:"undefined"}));l&&(l.csn=_.sU());this.saveSnapshot(this.historyEntryTime,l,I)}return rU.prototype.handlePopstate.call(this,z)};
_.p.handleHistoryCacheLoad=function(z,l){z.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.D(_.EK(this.dispatchElement,"yt-history-will-navigate",[l])).next().value||_.Gb(this.dispatchElement,"yt-history-load",[l,z]))};
_.p.pushState=function(z,l){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.qB("history.pushState is not a function",this.getDebugString());_.dE(I)}rU.prototype.pushState.call(this,z,l)};
_.p.replaceState=function(z,l){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.qB("history.replaceState is not a function",this.getDebugString());_.dE(I)}rU.prototype.replaceState.call(this,z,l)};
_.p.saveAndPush=function(z,l,I,b,v){v=v===void 0?{}:v;I&&(I.csn=_.sU());rU.prototype.saveAndPush.call(this,z,l,I,b,v)};
_.p.getDebugString=function(){var z=[];this.initialized&&z.push("i");this.browserHistory.boundHistoryReplaceState&&z.push("bhr");this.browserHistory.boundHistoryPushState&&z.push("bhs");"replaceState"in this.browserHistory.debugInfo&&z.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&z.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&z.push("ei:"+String(this.entryIndex));return z.join(",")};
_.eT=function(z,l){z.init(!0);var I=z.browserHistory.getState();z.replaceState(I,yo(l))};
S1I.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.wU=new _.yH("DESKTOP_HISTORY_MANAGER_TOKEN");var d3u=[10,20,30,40,50,60],A$=function(){this.currentPartitionIndex=0},oan=function(z){nY_({mainAppWeb:_.l5(),
survivalSli:{partitionMinute:z,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},PDz=function(z){nY_({mainAppWeb:_.l5(),
survivalSli:{partitionMinute:z,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},hOn=function(z){return z.currentPartitionIndex>=0&&z.currentPartitionIndex<d3u.length?d3u[z.currentPartitionIndex]:-1},szA=function(z){return z.currentPartitionIndex>0&&z.currentPartitionIndex-1<d3u.length?d3u[z.currentPartitionIndex-1]:-1};
A$.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var z=szA(this);z>0&&PDz(z);z=hOn(this);z>0&&oan(z);rju(this)}};
var rju=function(z){var l=hOn(z);if(l>0){var I=szA(z);I<0&&(I=0);z.intervalId=_.ow.addJob(function(){var b=szA(z);b>0&&PDz(b);b=hOn(z);b>0&&oan(b);rju(z)},3,(l-I)*6E4);
z.currentPartitionIndex+=1}else z.currentPartitionIndex=-1};var $3u=function(){this.skipNextNavigation=!1},eOw=function(z,l,I){if(!l)return!1;
if(z.skipNextNavigation)return z.skipNextNavigation=!1;if(_.k(I,_.AK))return!1;var b,v,M;if((b=_.k(I,_.BF))==null?0:(v=b.browseEndpointContextSupportedConfigs)==null?0:(M=v.browseEndpointContextMainConfig)==null?0:M.skipConfirmation)return!1;var x;return((x=_.k(l.commandMetadata,_.kB))==null?void 0:x.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
$3u.prototype.showConfirmationDialog=function(z,l){this.navigateParams=l;this.customConfirmationCommand?_.pG().resolve(_.DQ).resolveCommand(this.customConfirmationCommand):(l={openPopupAction:{popup:{confirmDialogRenderer:{title:_.lc(_.mY("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.lc(_.mY("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.lc(_.mY("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.lc(_.mY("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.WW.getInstance().triggerAction("yt-open-popup-action",l,z))};
$3u.prototype.cancelPendingNavigation=function(){var z;((z=this.navigateParams)==null?void 0:z.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var wjI=function(){},WNM=function(z,l,I,b,v,M,x){I=I===void 0?{}:I;
x=x===void 0?{}:x;var g=_.UD.instance,G,u=(G=_.k(l,_.AK))==null?void 0:G.url;return u?bZY(g,u,I,window.location.href,function(Z,H){AjI(z,Z,H,!1,!0,I,M,b)},function(){return!1}):LI(g,l,I,window.location.href,qo(l),function(Z,H){AjI(z,Z,H,!1,!0,I,M,b)},v,x)},AjI=function(z,l,I,b,v,M,x,g){if(!z.JSC$14455_chunkHandler)if(I.page==="learning_journey_watch"&&_.C("web_enable_canvas_on_learning_journey")){var G=!_.k(g,_.BF);
v=v||b;if(G)if(v){if(_.C("kevlar_continue_playback_without_player_response")){var u;var Z=(u=_.k(g,_.zb))==null?void 0:u.videoId}b={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:b,previousVideoId:Z},tempData:M}}else b={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else b={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};z.JSC$14455_chunkHandler=new Ey0(_.GS,b,x,G,v)}else if(I.page==="watch"||I.page==="learning_journey_watch")if(v||b){if(_.C("kevlar_continue_playback_without_player_response")){var H;
G=(H=_.k(g,_.zb))==null?void 0:H.videoId}z.JSC$14455_chunkHandler=new Hzp(_.GS,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:b,previousVideoId:G},tempData:M},x)}else z.JSC$14455_chunkHandler=new GXM(_.GS);else I.page==="shorts"&&v&&!b?z.JSC$14455_chunkHandler=new Zzz(_.GS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:M},x):z.JSC$14455_chunkHandler=new Nq_(x);z.JSC$14455_chunkHandler.processChunk({endpoint:l,data:I});return z.JSC$14455_chunkHandler.nj.promise},
nau=function(z,l,I,b,v){(I=_.bgz(I))&&AjI(z,l,I,!1,!0,b,void 0,v)};var LN_=function(){this.pendingNavigationPromise=null};
_.p=LN_.prototype;_.p.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.p.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.p.addEventListener=function(){throw Error("Dh");};
_.p.dispatchEvent=function(){throw Error("Dh");};
_.p.removeEventListener=function(){throw Error("Dh");};var U3n=new _.yH("APP_ROOT");var wku=null;var awA=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],WE=function(){_.oW.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];VVA(this)};
_.m(WE,_.oW);WE.prototype.verifyUser=function(){var z=VVA(this),l=z.logout;if(!z.sessionChange)return!0;this.dispatchEvent("ytsessionchange");l&&this.dispatchEvent("ytuserinvalid");return!1};
var VVA=function(z){var l=awA.map(function(v){var M;return(M=_.mZ.get(v))!=null?M:""}),I=l.some(function(v,M){return z.sessionCookies&&z.sessionCookies[M]!==""&&v===""}),b=l.some(function(v,M){return z.sessionCookies&&z.sessionCookies[M]!==v});
z.sessionCookies=l;return{logout:I,sessionChange:b}};
WE.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ow.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var aDx=new _.yH("POSTMESSAGE_TUNNEL_TOKEN");var nD$=["/parent_tools","/file_download","/artist_roster"],Jck=[PHu,hQu,s1w,$pu,rG0,o5j,eQu,w7w];var nf=new _.yH("NAVIGATION_CONFIRMATION_SERVICE");var jz_="/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(" "),Jj0=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],Lf=function(z,l){this.pendingNavigationPromise=null;this.JSC$14478_clientRoot=z;this.historyManager=l;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new wjI;this.debugString=z.is;z={"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};_.n2(_.WW.getInstance(),z,this.JSC$14478_clientRoot)},v3p,Mh_,p5j,DUp,b8_;
_.m(Lf,LN_);Lf.prototype.reload=function(){_.z9(window.location.href)};
var p9u=function(z){z.currentEndpoint&&_.k(z.currentEndpoint,_.FN)?z.reload():z.currentEndpoint&&z.navigate(z.currentEndpoint,!0,void 0,{disableCache:!0})};
Lf.prototype.navigate=function(z,l,I,b,v,M,x,g){l=l===void 0?!1:l;I=I===void 0?{}:I;b=b===void 0?{}:b;var G=_.pG().resolve(nf),u;if(!x&&eOw(G,(u=this.currentEndpoint)!=null?u:void 0,z))return G.showConfirmationDialog(this.JSC$14478_clientRoot.parentElement,{endpoint:z,reload:l,params:I,tempData:b,requestType:v,createScreenConfig:M}),!1;var Z=_.uV();_.ZL(Z,"eocs")||Z.parkOrScheduleJob(function(){Z.processSignal("eocs")},10,"eor");
Ac7();x=qo(z);G=b.autonav==="1";u=_.sU();WE.instance||(WE.instance=new WE);var H=WE.instance.verifyUser(),y;if(_.C("enable_dark_theme_only_on_shorts")){var f=document.documentElement.hasAttribute("dark"),R=_.Sb(!0)==="USER_INTERFACE_THEME_DARK";if(x==="shorts"){if(!f)if(_.C("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var F;_.z9((F=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:F.url,void 0,void 0,window.top)}}else{var Y;_.z9(_.jm((Y=_.k(z==
null?void 0:z.commandMetadata,_.kB))==null?void 0:Y.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.C("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!f){var c;_.z9(_.jm((c=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:c.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(R!==f){var d;_.z9(_.jm((d=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:d.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(x==="watch"){if(zrA(_.pG().resolve(_.Af),
z)&&(H||_.C("fix_miniplayer_navigation_killswitch")))return!1;_.C("block_all_player_prefetch_requests")||(y=vV0(_.pI(_.aE),z,G))}else{var V,A=(V=_.k(this.currentEndpoint,_.zb))==null?void 0:V.videoId;A&&_.JM.getInstance().then(function(R1){R1&&R1.set("yt-miniplayer-shown-video-id",A)})}y&&(I.frags=y.missingFragments_.join(","));
F=null;var W;Y=(W=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:W.ignoreNavigation;if(!Y)if(_.C("kevlar_command_url")){var L;F=(L=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?void 0:L.url}else F=_.wUQ(z,I);if(F&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&F==this.lastNavigationUrl)return _.om({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.HJ(WP(),"CANCELLED")}F&&(this.lastNavigationUrl=F);QJY();_.hr("IS_HOMEPAGE_COLD",
!1);_.hr("IS_RESULTS_PAGE_COLD",!1);_.hr("IS_WATCH_PAGE_COLD",!1);z.loggingUrls&&z.loggingUrls.forEach(function(R1){R1.baseUrl&&_.np(R1.baseUrl)});
_.bXu(z,M?M.layer:0)&&_.C("kevlar_flush_logs_on_away_navigation")&&_.SX();if(zOY(z))return!1;Pd_(x,v);if(!F)return Y||_.PW(new _.qB("Can't construct url for endpoint",z)),_.HJ(WP(),"FAILURE"),!1;_.Wzk();W=z&&_.k(z,_.BF)&&_.k(z,_.BF).browseId.startsWith("UC");I=(L=_.C("enable_dark_theme_only_on_shorts")&&x==="shorts"?!1:_.dD()&&document.documentElement.hasAttribute("dark")!==_.cF())?{themeRefresh:1}:{};L&&!_.tE()&&_.Sb()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");W=L||lOI(F)&&!W&&!_.C("kevlar_disable_url_allowlist");
H||(W=!0);if(W||_.sZ("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var lH;var Gk=(lH=window.top)==null?void 0:lH.location.href}catch(R1){var uH;Gk=(uH=R1)==null?void 0:uH.message}_.PW(new _.qB("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Gk}))}z=_.C("kevlar_redirect_on_window_killswitch")?window.top:window;JY(F);_.z9(_.jm(F,I),void 0,void 0,z);_.HJ(WP(),"ABORTED");return!1}_.C("kevlar_early_popup_close")&&_.Gb(this.JSC$14478_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14455_chunkHandler=void 0;var Xt;Gk=qo((Xt=this.currentEndpoint)!=null?Xt:void 0);(Xt=x==="shorts"&&Gk==="shorts")||_.Xok();_.em(NBt)("nr",void 0);G&&_.om({webInfo:{navigationReason:"an"}});z.clickTrackingParams&&(b.itct=z.clickTrackingParams,b.csn=u);$mS(b);b.endpoint=JSON.stringify(z);_.C("enable_unknown_lact_fix_on_html5")&&(_.pG().resolve(_.TH),b.lact=_.p2());_.h7.isEmpty(b)||_.vu(F,b);!_.C("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(M=Object.assign({},{layer:0},M,{parentLayer:3}));this.pendingNavigationPromise=M=WNM(this.pageFetcher,z,b,this.currentEndpoint,this.JSC$14478_isNetworkPromiseStale.bind(this),M,g);M=M.then(this.handleNavigateSuccess.bind(this,M,z,y,b),this.handleNavigateFail.bind(this,M,z));_.wb().navigationFinishPromise=M;l={endpoint:z,pageType:x,url:yo(F),reload:!!l,noProgressBar:Xt};v&&(l.type=v);this.fireEvent("yt-navigate-start",l);y&&nau(this.pageFetcher,z,y,b,this.currentEndpoint);
return!0};
Lf.prototype.JSC$14478_isNetworkPromiseStale=function(z){return z!=this.pendingNavigationPromise};
var IOj=function(z,l,I,b,v){var M=qo(l);l={endpoint:l,pageType:M};v&&(l.errorMessage=v);_.PW(I);l.navigationDoneMs=_.sK("nd");l.navigationErrorReason=b;z.fireEvent("yt-navigate-error",l)};
Lf.prototype.handleNavigateFail=function(z,l,I){var b=void 0;I instanceof _.nj&&(b=I,$vS(I));if(this.JSC$14478_isNetworkPromiseStale(z))return _.Ph(b);_.HJ(WP(),"FAILURE");IOj(this,l,I,"101");return _.Ph(I)};
Lf.prototype.handleNavigateSuccess=function(z,l,I,b,v){if(this.JSC$14478_isNetworkPromiseStale(z))return _.Hu();this.pendingNavigationPromise=null;if(!v)return l=new _.qB("Missing data in response for navigation endpoint",l),_.Ph(l);if(v.reload)return window.location.reload(!0),_.Hu();I&&(z={},_.h7.extend(z,_.bgz(I),v),v=z);var M,x;I=(M=v)==null?void 0:(x=M.timing)==null?void 0:x.responseStart;I!=null&&_.sK("srt",I);_.sK("pdc");var g,G;M=(g=v)==null?void 0:(G=g.timing)==null?void 0:G.info;M!=null&&
(g=_.em(_.HRf)(M),_.om(g));_.HJ(WP(),"SUCCESS");b8_(this,l,v,1,b);return _.Hu()};
var lOI=function(z){var l=z;_.C("kevlar_no_redirect_to_classic_2_ks")||(l=(new _.lJ(z)).getPath());if(l==="/"||l==="/red")return!1;var I=!0;jz_.forEach(function(b){z.indexOf(b)===0&&(I=!1)});
Jj0.forEach(function(b){var v=b.url;_.C(b.expFlag)&&z.indexOf(v)===0&&(I=!1)});
return I};
Lf.prototype.publishPageData=function(z){this.fireEvent("yt-page-data-fetched",{pageData:z})};
v3p=function(z,l,I,b,v,M){var x=null;l.page!=="watch"&&l.page!=="learning_journey_watch"||b?l.filler||_.Gb(z.JSC$14478_clientRoot,"yt-stop-old-player",[l]):x=AjI(z.pageFetcher,v,l,I,!1,M,void 0,z.currentEndpoint);if(x)return x.then(z.publishPageData.bind(z,l));z.publishPageData(l);return _.Hu()};
Mh_=function(z,l,I){var b=null;if(!I)return b=new _.qB("Empty data",z.debugString,l);var v=I.response;if(!v)return b;var M={endpointType:qo(l)||"unknown"};v.responseContext?(v=v.responseContext.errors)&&(b=new _.qB("Errors in response context",z.debugString,l,v,M)):b=v.error||v.errorMetadata?new _.qB("Errors in response",z.debugString,l,v.error,v.errorMetadata,M):new _.qB("responseContext missing",z.debugString,l,Object.keys(v).sort().join(","),M);var x,g,G,u;if(z=I==null?void 0:(x=I.response)==null?
void 0:(g=x.responseContext)==null?void 0:(G=g.webResponseContextExtensionData)==null?void 0:(u=G.webResponseContextDebugData)==null?void 0:u.debugErrorMessages)for(x=0;x<z.length;x++);return b};
p5j=function(z){var l,I,b,v;return z==null?void 0:(l=z.response)==null?void 0:(I=l.responseContext)==null?void 0:(b=I.errors)==null?void 0:(v=b.error)==null?void 0:v["0"]};
DUp=function(z,l){var I;if(I=l.url&&!l.url.startsWith("/clip"))I=l.url,I=!_.C("webfe_parse_debug_param_in_resolveurl_service")&&z.searchDebugUrlMatcher.test(I)||V_5(I)?!0:!1;if(I)V_5(l.url)&&_.V7(window.location.href).themeRefresh?(l=_.Mu(l.url,"themeRefresh"),_.eT(z.historyManager,l)):l.url&&!hz$(l.url)&&_.eT(z.historyManager,l.url);else if(l.endpoint){var b,v,M;(I=(b=l.endpoint)==null?void 0:(v=b.commandMetadata)==null?void 0:(M=v.webCommandMetadata)==null?void 0:M.url)&&!hz$(I)&&_.eT(z.historyManager,
I);I&&l.url&&I!=l.url&&!l.url.match("playnext=1")&&new _.qB("Response url mismatch in response data",z.debugString,I,l.url)}};
_.xUu=function(z,l,I,b,v,M,x,g){M=M===void 0?!1:M;var G=_.pG().resolve(nf),u;if(!g&&eOw(G,(u=z.currentEndpoint)!=null?u:void 0,l))return G.showConfirmationDialog(z.JSC$14478_clientRoot.parentElement,{endpoint:l,data:I,navigationType:b,tempData:v,isMiniplayer:M,isForwardHistoryNavigation:x==null?void 0:x.forward}),_.Hu();z.pageFetcher.JSC$14455_chunkHandler=void 0;return b8_(z,l,I,b,v,M)};
b8_=function(z,l,I,b,v,M){M=M===void 0?!1:M;z.isMiniplayerExpansion=M;var x=b===2;z.currentEndpoint=l;z.numNavigations++;z.numNavigations&&(iyp.navigationCount=z.numNavigations);_.hr("NUM_NAV",z.numNavigations);var g=Mh_(z,l,I);if(g)return IOj(z,l,g,"102",p5j(I)),_.Ph(g);var G,u,Z,H;g=I.rootVe||(I==null?void 0:(G=I.response)==null?void 0:(u=G.responseContext)==null?void 0:(Z=u.webResponseContextExtensionData)==null?void 0:(H=Z.ytConfigData)==null?void 0:H.rootVisualElementType);!x&&I&&DUp(z,I);var y,
f;G=I==null?void 0:(y=I.response)==null?void 0:(f=y.responseContext)==null?void 0:f.maxAgeSeconds;if(!x&&!isNaN(G)){var R;_.C("kevlar_use_response_ttl_to_invalidate_cache")?R=(0,_.Dr)()+1E3*G:_.C("kevlar_always_invalidate_cache")&&(R=0);isNaN(R)||(I.expirationTime=R)}_.pI(_.aE).prefetchCache_.clear();x||I.page!=="watch"||I.type!=="reduced"&&b!==1?b=v3p(z,I,x,!!M,l,v):(z.publishPageData(I),b=_.Hu());v=b.then(function(){var F=qo(l);F={endpoint:l,pageType:F,fromHistory:x,response:I};F.navigationDoneMs=
_.sK("nd");z.fireEvent("yt-navigate-finish",F)});
I.csn&&g&&I.clientSideGrafts&&b.then(z.attachClientSideGrafts.bind(z,I,_.h8()));return v};
_.p=Lf.prototype;_.p.attachClientSideGrafts=function(z,l){z.clientSideGrafts&&l&&z.clientSideGrafts.forEach(function(I){if(l&&I){var b=_.ch(I);_.C("combine_ve_grafts")?_.iY().graftServerVe(I,l):_.LM(z.csn,l,b)}})};
_.p.handleSignalActionHistoryBack=function(){window.history.back()};
_.p.handleSignalActionCloseWindow=function(){window.close()};
_.p.handleSignalActionReloadPage=function(){this.reload()};
_.p.handleSignalActionSoftReloadPage=function(){p9u(this)};
_.p.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.p.fireEvent=function(z,l){z=new CustomEvent(z,{bubbles:!0,cancelable:!1,composed:!0,detail:l});this.dispatchEvent(z)};
_.p.addEventListener=function(z,l){this.JSC$14478_clientRoot.addEventListener(z,l)};
_.p.dispatchEvent=function(z){return this.JSC$14478_clientRoot.dispatchEvent(z)};
_.p.removeEventListener=function(z,l){this.JSC$14478_clientRoot.removeEventListener(z,l)};
Lf[HG]=[U3n,_.wU];_.p1p=new d3("browse","h8y2qb");_.DPS=new d3("search","JzFVk");_.xP5=new d3("shorts","xwEKAe");_.OF1=new d3("watchFixie","nmfa2d");_.giu=new d3("watchFlexy","CF909");_.GjS=new d3("watchGrid","Tm0L3c");_.Ne5=new d3("watchLearningJourney","L3n37");var O8I;var g3M=function(){return _.q.apply(this,arguments)||this};
_.m(g3M,_.q);_.vP.Object.defineProperties(g3M,{template:{configurable:!0,enumerable:!0,get:function(){if(O8I===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);O8I=z}z=O8I;return z}}});
_.e([_.t(ga0.YtPlayerBehavior),_.w("design:type",Object)],g3M.prototype,"ytPlayerBehavior",void 0);_.e([_.S({is:"ytd-player"})],g3M);var GiI;var N6j;var E3n;var U3=function(){var z=_.q.apply(this,arguments)||this;z.forceModernIconButton=!1;z.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return z};
_.m(U3,_.q);U3.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]]"}}}}}};
U3.prototype.handleAccountLinkingStateChangedCommand=function(z){if(z=_.k(z,QrA)){var l,I=(l=this.data)==null?void 0:l.providerKey;l=z.providerKey;I&&l&&I.id===l.id&&I.subject===l.subject&&(z=z.linked,z!==void 0&&(this.set("data.linked",z),this.notifyPath("data.linked"),_.C("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(z)))}};
U3.prototype.setPlayerAccountLinkState=function(z){var l=new W1p;n4n(l,wKu(new eCM,z));var I=_.GS();I&&I.getPlayerPromise().then(function(b){b.setAccountLinkState(_.Tc(l.JSC$12171_serializeBinary(),4));b.updateAccountLinkingConfig(z)})};
U3.prototype.handleShowAccountLinkDialog=function(){var z=this.get("button.buttonRenderer.command");z&&_.fM([z],this.hostElement)};
_.vP.Object.defineProperties(U3.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.e([_.t([_.wl.YtActionHandlerBehavior]),_.w("design:type",Object)],U3.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],U3.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],U3.prototype,"overrides",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],U3.prototype,"forceModernIconButton",void 0);_.e([_.X({value:"bottom"}),_.w("design:type",String)],U3.prototype,"buttonTooltipPosition",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],U3.prototype,"forceIconButton",void 0);_.e([_.X(),_.w("design:type",Boolean)],U3.prototype,"disableTextTransform",void 0);
_.e([_.B("data","data.linked","data.isWarning"),_.w("design:type",Object),_.w("design:paramtypes",[])],U3.prototype,"button",null);_.e([_.S({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],U3);
_.r(U3,"ytd-account-link-button-renderer",function(){if(E3n!==void 0)return E3n;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return E3n=z},{mode:1});var uc_;var Z84=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],aJ=function(){return _.q.apply(this,arguments)||this};
_.m(aJ,_.q);aJ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
aJ.prototype.updateButtonActiveState=function(){var z=this,l=!!Z84.find(function(I){return z.currentState===I});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.C("enable_web_delhi_icons")&&(l=!1);this.button&&(this.button.isPressed=l)};
_.vP.Object.defineProperties(aJ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.playlistLoopStateEntity)==null?void 0:z.state)||((l=this.data)==null?void 0:l.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var z=void 0,l;if(this.currentState&&((l=this.data)==null?0:l.states)){l=_.D(this.data.states);for(var I=l.next();!I.done;I=l.next()){I=_.k(I.value,_.a9w);var b=void 0;if(((b=I)==null?void 0:b.state)===this.currentState){z=I;break}}}return z}}});
aJ.prototype.updateButtonActiveState=aJ.prototype.updateButtonActiveState;_.e([_.t(_.gU),_.w("design:type",Object)],aJ.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.ga5}),_.w("design:type",Object)],aJ.prototype,"playlistLoopStateEntity",void 0);_.e([_.X(),_.w("design:type",Object)],aJ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],aJ.prototype,"forceIconOnly",void 0);_.e([_.qX("ytd-button-renderer"),_.w("design:type",_.ir)],aJ.prototype,"button",void 0);
_.e([_.B("data","playlistLoopStateEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],aJ.prototype,"currentState",null);_.e([_.By("currentButtonStateRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aJ.prototype,"updateButtonActiveState",null);_.e([_.B("currentState"),_.w("design:type",Object),_.w("design:paramtypes",[])],aJ.prototype,"currentButtonStateRenderer",null);
_.e([_.S({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],aJ);
_.r(aJ,"ytd-playlist-loop-button-renderer",function(){if(uc_!==void 0)return uc_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return uc_=z},
{mode:1});var H8w;var y1A=_.mY("DOWNLOAD",{},"Download"),fO0=_.mY("DOWNLOADING",{},"Downloading"),Cj0=_.mY("DOWNLOADED",{},"Downloaded"),kij=_.mY("RETRY",{},"Retry"),VW=function(){var z=_.q.apply(this,arguments)||this;z.forceIconButton=!1;z.forceIconOnly=!1;z.overrides=!1;z.buttonTooltipPosition=!1;z.styleActionButton=!1;z.disableTextTransform=!1;z.downloadProgress=0;z.isDownloadComplete=!1;z.isHidden=!0;z.transferState="TRANSFER_STATE_UNKNOWN";z.isVideoDeletedByUser=!1;z.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return z};
_.m(VW,_.q);_.p=VW.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var z;(z=this.data)!=null&&z.text||(z=_.wg(_.vF().getState(),this.videoId),this.updateButtonState(z))};
_.p.computeVideoId=function(z){return z};
_.p.showHideButton=function(){this.updateButtonVisibility()};
_.p.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(z){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==fO0||!_.ii(z))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(z){case "TRANSFER_STATE_UNKNOWN":z=y1A;var l="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":z=kij;l="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":z=Cj0;l="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":z=
fO0;l="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":z=kij;l="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:z=y1A,l="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(z=y1A,l="OFFLINE_DOWNLOAD",I="ACTION_ADD");var b=Object.assign({},this.data);b.text=_.lc(z);b.tooltip=z;b.icon={iconType:l};b.size="SIZE_DEFAULT";b.style="STYLE_DEFAULT";_.k(b.command,_.qv)&&(_.k(b.command,_.qv).action=I);this.set("data",b)}};
_.p.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var z="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?z="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?z="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?z="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?z="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?z="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(z="OFFLINE_PIN",this.isDownloadComplete=!0);var l;z!==((l=this.data.icon)==null?void 0:l.iconType)&&(l=Object.assign({},this.data),l.text=_.lc(fO0),l.tooltip=fO0,l.icon={iconType:z},_.k(l.command,_.qv)&&(_.k(l.command,_.qv).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",l))}};
VW.prototype.updateProgress=VW.prototype.updateProgress;VW.prototype.onTransferStateChanged=VW.prototype.onTransferStateChanged;VW.prototype.showHideButton=VW.prototype.showHideButton;VW.prototype.dataChanged=VW.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],VW.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],VW.prototype,"forceIconButton",void 0);
_.e([_.X(),_.w("design:type",Object)],VW.prototype,"forceIconOnly",void 0);_.e([_.X(),_.w("design:type",Object)],VW.prototype,"overrides",void 0);_.e([_.X(),_.w("design:type",Object)],VW.prototype,"buttonTooltipPosition",void 0);_.e([_.X(),_.w("design:type",Object)],VW.prototype,"styleActionButton",void 0);_.e([_.X(),_.w("design:type",Object)],VW.prototype,"disableTextTransform",void 0);
_.e([_.X({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.w("design:type",String)],VW.prototype,"videoId",void 0);_.e([_.X(),_.w("design:type",Object)],VW.prototype,"data",void 0);_.e([_.X({selector:Wg,selectorArgs:["videoId"]}),_.w("design:type",Object)],VW.prototype,"downloadProgress",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VW.prototype,"isDownloadComplete",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VW.prototype,"isHidden",void 0);_.e([_.X({selector:_.wg,selectorArgs:["videoId"]}),_.w("design:type",String)],VW.prototype,"transferState",void 0);_.e([_.X({selector:_.qDQ,selectorArgs:["videoId"]}),_.w("design:type",Object)],VW.prototype,"isVideoDeletedByUser",void 0);_.e([_.X({selector:R5$,selectorArgs:["videoId"]}),_.w("design:type",Object)],VW.prototype,"offlineabilityState",void 0);
_.e([_.X({value:!0}),_.w("design:type",Boolean)],VW.prototype,"showTooltips",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],VW.prototype,"sendCommandWhenDisabled",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],VW.prototype,"disabled",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VW.prototype,"dataChanged",null);
_.e([_.YE("offlineabilityState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VW.prototype,"showHideButton",null);_.e([_.YE("transferState","isVideoDeletedByUser"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VW.prototype,"onTransferStateChanged",null);_.e([_.YE("downloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VW.prototype,"updateProgress",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],VW);
_.r(VW,"ytd-download-button-renderer",function(){if(H8w!==void 0)return H8w;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return H8w=z},{mode:2});var Rrp;var mUj,KPj=function(){if(mUj!==void 0)return mUj;var z=document.createElement("template");_.K(z,'\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 mUj=z};var thI=_.C("web_button_rework")&&_.rr("BUTTON_REWORK")||_.C("web_button_rework_with_live"),B6A=_.OI("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,jT=function(){var z=_.q.apply(this,arguments)||this;z.isPressed=!1;z.forceIconButton=!1;z.forceIconOnly=!1;z.forceModernIconButton=!1;z.alignByText=!1;z.isShorts=!1;z.animatedText=!1;z.shouldAnimate=!1;z.JSC$14515_browserSupportsAnimation=_.C("web_supports_animations_api");z.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};z.onTap=function(){var l;if((l=z.data)==null||!l.defaultNavigationEndpoint){var I;l=!((I=z.data)==null?0:I.isToggled);var b;if((b=z.data)==null||!b.preventAutoToggle){z.shouldAnimate=!1;z.disableTextUpdateJobId&&_.ow.cancelJob(z.disableTextUpdateJobId);z.disableTextUpdateJobId=_.ow.addLowPriorityJob(function(){z.disableTextUpdateJobId=void 0},B6A);
var v;z.set("data.isToggled",!((v=z.data)==null?0:v.isToggled));I=z.getInnertubeIcon();b={toggled:l,actions:{}};I&&(b.actions[I.toLowerCase()]=l);_.gC(z.hostElement,"yt-toggle-button",b)}}};
return z};
_.m(jT,_.q);_.p=jT.prototype;_.p.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ow.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.toggle=function(z){var l;this.set("data.isToggled",z!==void 0?z:!((l=this.data)==null?0:l.isToggled))};
_.p.handleUpdateToggleButtonStateCommand=function(z){if(this.data){z=_.k(z,rJ_);var l,I,b,v=(l=this.data)==null?void 0:(I=l.toggleButtonSupportedData)==null?void 0:(b=I.toggleButtonIdData)==null?void 0:b.id;v&&z&&v===(z==null?void 0:z.buttonId)&&this.set("data.isToggled",z.toggled)}};
_.p.handleUpdateToggleButtonTextAction=function(z){if(this.data){z=_.k(z,l$M);var l,I,b,v=(l=this.data)==null?void 0:(I=l.toggleButtonSupportedData)==null?void 0:(b=I.toggleButtonIdData)==null?void 0:b.id;v&&z&&v===(z==null?void 0:z.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=z.defaultNumericalValue,this.set("data.defaultText",z.defaultText),this.set("data.toggledText",z.toggledText),this.shouldAnimate=!1)}};
_.p.getInnertubeIcon=function(){var z=this.data;if(z){var l,I,b=((l=z.defaultIcon)==null?0:l.iconType)?(I=z.defaultIcon)==null?void 0:I.iconType:null,v,M;l=((v=z.toggledIcon)==null?0:v.iconType)?(M=z.toggledIcon)==null?void 0:M.iconType:b;return z.isToggled?l:b}};
_.p.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.vP.Object.defineProperties(jT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var z={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$14515_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var l=z.renderer;var I=z.element;var b=z.toggled;var v=z.onTapCallback;var M=z.commandClientArgs;var x=z.overrides;var g=z.forceIcon;var G=z.forceModernIconButton;var u=z.forceDisabled;var Z=z.useAnimatedText;var H=z.animatedTextProps;z=uCQ(l,b);g=!l.defaultIcon||!g&&l.defaultText?l.defaultIcon?"leading":void 0:G?"icon-only":"icon-only-40";g==="icon-only-40"&&(z.type="text");var y;G=Object;var f=G.assign,R;a:switch((R=
l.style)==null?void 0:R.styleType){case "STYLE_COMPACT_GRAY":R={size:"S"};break a;default:R={size:"M"}}var F=!!b;var Y=(Y=b&&l.toggledText||l.defaultText)?_.$C(Y):void 0;Z?(Z=_.ID(b&&l.toggledText||l.defaultText))&&H&&!isNaN(Number(H.numberValue))?(H.numberText=Z,b&&(H.numberValue+=1),Z=H):Z=void 0:Z=void 0;var c,d,V,A;var W=(H=((d=b?l.toggledAccessibilityData||((W=l.toggledText)==null?void 0:W.accessibility):l.accessibilityData||((c=l.defaultText)==null?void 0:c.accessibility))==null?void 0:(V=d.accessibilityData)==
null?void 0:V.label)||((A=l.accessibility)==null?void 0:A.label))?H:_.ID(b&&l.toggledText||l.defaultText);u=u===void 0?l.isDisabled:u;I=Eau(l,b,v,I,M);b=Nu1(l,b);b!=null&&b.length?(b=_.LE({innertubeCommand:zjS(b),forceNewState:!0}),b=Ui(b)?b:void 0):b=void 0;l=f.call(G,{},z,R,{iconPosition:g},x,{focused:!1,toggled:F,toggleable:!0,formattedButtonText:Y,animatedTextProps:Z,accessibilityLabel:W,disabled:u,onTap:I,aTagConfig:b},t4Q((y=l.colorData)==null?void 0:y.basicColorPaletteData));l.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(l.type="filled");return l}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var z=this.getInnertubeIcon();if(z)return _.Re(z)}}});
jT.prototype.resetAnimation=jT.prototype.resetAnimation;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],jT.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],jT.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],jT.prototype,"isPressed",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"forceIconButton",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"forceIconOnly",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"forceModernIconButton",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"alignByText",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"overrides",void 0);
_.e([_.X(),_.w("design:type",Boolean)],jT.prototype,"disabled",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"isShorts",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"buttonTooltipPosition",void 0);_.e([_.X(),_.w("design:type",Object)],jT.prototype,"animatedText",void 0);_.e([_.X(),_.w("design:type",String)],jT.prototype,"textNumberValue",void 0);_.e([_.X({computed:"computeTooltip(data, data.isToggled)"}),_.w("design:type",Object)],jT.prototype,"tooltip",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jT.prototype,"resetAnimation",null);_.e([_.B("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.w("design:type",Object),_.w("design:paramtypes",[])],jT.prototype,"computedButtonShape",null);_.e([_.B("data.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],jT.prototype,"computedIcon",null);
_.e([_.S({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],jT);thI&&_.r(jT,"ytd-toggle-button-renderer",KPj,{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var X5A=_.P(function(z){function l(u){var Z;return _.O(function(H){if(H.nextAddress==1)return(Z=!HX5(u,g())||!g().enabled)?H.jumpTo(2):H.yield(ROS(),3);H.nextAddress!=2&&(Z=H.yieldResult);if(Z)return H.return();I();setTimeout(function(){x(!1)},1500);
_.qe(H)})}
function I(){setTimeout(function(){x(!0);var u;(u=b.lottieEl)==null||u.goToAndPlay(0)},150)}
var b=_.KY(),v=_.D(_.Z_(!1,void 0,"UfUosc")),M=v.next().value,x=v.next().value,g=_.Df(z.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Sm(function(){var u,Z;((u=z.settings)==null?void 0:(Z=u.call(z))==null?void 0:Z.uniqueId)==="this is not intended behavior"&&_.PW(new _.qB("Smartimation Settings is undefined"))});
_.Te(function(){g().experimentEnabled&&(g().enabled?yj$(l):(x(!1),fw$(l)),_.cb(function(){fw$(l)}))},"IHhVmc");
_.Te(function(){g().timings.join("");g().experimentEnabled&&(CDf(g()),_.cb(function(){kUG(g())}))},"fsfhOe");
var G=_.kz(function(){var u=b,Z=g().uniqueId+"-border",H,y;var f="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((y=(H=_.pG().resolve(_.MB(_.I2)))==null?void 0:H())!=null&&y?"dark":"light")+"_v2.json";return{animationRef:u,animationConfig:{name:Z,autoplay:!1,loop:!1,path:f}}},void 0,"UWvUGe");
v={};return _.N("yt-smartimation",{class:_.m9(z.className,"smartimation",(v["smartimation--experiment-enabled"]=function(){return g().experimentEnabled},v["smartimation--active-border"]=M,v["smartimation--enable-masking"]=m3Y(),v))},_.N(_.E,{cond:function(){return g().experimentEnabled},
then:function(){return _.N("div",{class:"smartimation__border"},_.N(_.A4,{className:"smartimation__border-gradient",data:G,animationName:function(){return G().animationConfig.name}}))}}),_.N("div",{class:"smartimation__content"},z.children))},"G");
X5A.idomCompat=!0;_.uO(X5A,"yt-smartimation",{props:{className:_.mB,settings:_.mB}});var J$=function(){var z=_.q.apply(this,arguments)||this;z.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};z.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};z.shouldEnableSmartimation=!1;return z};
_.m(J$,_.q);J$.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
J$.prototype.onDataChanged=function(){var z,l;this.shouldEnableSmartimation=(((z=this.data)==null?void 0:(l=z.timedAnimationData)==null?void 0:l.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
J$.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var z=_.k(this.data.likeButton,_.OE),l=_.k(this.data.dislikeButton,_.OE);return!!((z==null?0:z.isToggled)||(l==null?0:l.isToggled))};
J$.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]]"}}}}}};
_.vP.Object.defineProperties(J$.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var z,l,I=((z=this.data)==null?void 0:(l=z.timedAnimationData)==null?void 0:l.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
J$.prototype.onDataChanged=J$.prototype.onDataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],J$.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],J$.prototype,"likeButtonOverride",void 0);_.e([_.X(),_.w("design:type",Object)],J$.prototype,"dislikeButtonOverride",void 0);
_.e([_.B("shouldEnableSmartimation"),_.w("design:type",Object),_.w("design:paramtypes",[])],J$.prototype,"smartimationSettings",null);_.e([_.By("data"),_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],J$.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],J$);
_.r(J$,"ytd-segmented-like-dislike-button-renderer",function(){if(Rrp!==void 0)return Rrp;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Rrp=z},{mode:1});var qTA;var i8M;(i8M=document.body)==null||i8M.setAttribute("rounded-container","");var FP_={};FP_.YtToggleButtonBehavior=[_.wl.YtActionHandlerBehavior,Vy.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 z=this.data.isToggled;if(!this.isModal_(z)){if(!this.data.preventAutoToggle){this.toggle();var l={toggled:this.data.isToggled,actions:{}};l.actions[this.buttonIcon]=this.data.isToggled;_.gC(this.hostElement,"yt-toggle-button",l)}l=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(l&&I||l&&this.data.preventAutoToggle)z=z?I:l,l=this.disableCommandHandlerOverride,_.C("killswitch_toggle_button_behavior_resolve_command")||l?_.uJ(this.hostElement,
[z]):_.tx(z,this.hostElement),_.gC(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:z})}},
stateChanged_:function(){var z=this.data;if(z){var l=z.isToggled;this._setEndpoint(this.computeEndpoint_(z));this._setServiceEndpoint(this.computeServiceEndpoint_(z));this._setButtonIcon(this.computeButtonIcon_(z,l));this._setButtonText(this.computeButtonText_(z,l));this._setButtonAccessibility(this.computeAccessibility_(z,l));this._setButtonTooltip(this.computeTooltip_(z,l));this._setButtonClass(this.computeButtonClass_(z,l));this._setIconPositionType(this.computeIconPositionType_(z));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=l):this.elements_.button.setAttribute("aria-pressed",l));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=l)}},
shouldSetIconActiveState_:function(){return _.C("kevlar_system_icons")},
toggle:function(z){this.set("data.isToggled",z!==void 0?z:!this.data.isToggled);_.C("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(z){if(z){var l,I;return!!((l=this.data)==null?0:(I=l.toggledServiceEndpoint)==null?0:I.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(z){return z&&z.defaultNavigationEndpoint||null},
computeButtonIcon_:function(z,l){var I=z&&z.defaultIcon?_.Re(z.defaultIcon.iconType):null;z=z&&z.toggledIcon?_.Re(z.toggledIcon.iconType):I;return l?z:I},
handleUpdateToggleButtonStateCommand_:function(z){z=z.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==z.buttonId&&this.toggle(z.toggled)},
computeButtonText_:function(z,l){return z?l&&z.toggledText||z.defaultText||null:null},
computeAccessibility_:function(z,l){return z?(l?this.get("toggledAccessibilityData.accessibilityData",z):this.get("accessibilityData.accessibilityData",z))||z.accessibility||null:null},
computeTooltip_:function(z,l){return z?l&&z.toggledTooltip||z.defaultTooltip||null:null},
computeButtonClass_:function(z,l){if(!z)return"";var I="",b=z.toggledStyle||z.style;if(l=l?b:z.style){l.styleType&&(l=l.styleType);try{I+=l.toLowerCase().replace(/_/g,"-")+" "}catch(v){_.hK(v,l,typeof l),_.PW(v)}}if(z=z.size){z.sizeType&&(z=z.sizeType);try{I+=z.toLowerCase().replace(/_/g,"-")+" "}catch(v){_.hK(v,z,typeof z),_.PW(v)}}return I.trim()},
computeIconPositionType_:function(z){return z&&z.iconPosition||null},
computeServiceEndpoint_:function(z){var l=z&&z.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:I&&z.command?z.command:null},
handleUpdateToggleButtonTextAction_:function(z){z=z.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==z.buttonId&&(this.set("data.defaultText",z.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",z.toggledText),this.notifyPath("data.toggledText"))}}];_.sW("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var QG_=_.C("web_button_rework")&&_.rr("BUTTON_REWORK")||_.C("web_button_rework_with_live"),zM=function(){var z=_.q.apply(this,arguments)||this;z.systemIcons=_.C("kevlar_system_icons");z.roundedContainer=!0;return z};
_.m(zM,_.q);zM.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
zM.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var z=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var l={toggled:!!this.data.isToggled,actions:{}};l.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,b;l.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(b=I.playlistEditEndpoint)==null?void 0:b.playlistId;_.gC(this.hostElement,"yt-toggle-button",l)}(z=z?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(z)}};
zM.prototype.onYtNavigate=function(z){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(z.detail.endpoint);l&&(z.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(l))};
_.vP.Object.defineProperties(zM,{template:{configurable:!0,enumerable:!0,get:function(){if(qTA===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);qTA=z}z=qTA;return z}}});
zM.prototype.onYtNavigate=zM.prototype.onYtNavigate;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],zM.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],zM.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(FP_.YtToggleButtonBehavior),_.w("design:type",Object)],zM.prototype,"ytToggleButtonBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],zM.prototype,"data",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],zM.prototype,"showTooltips",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zM.prototype,"systemIcons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zM.prototype,"roundedContainer",void 0);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],zM.prototype,"onYtNavigate",null);
_.e([_.S({is:"ytd-toggle-button-renderer",disableElementRegistration:QG_})],zM);var YTM,T64;_.lL=new _.yH("PANEL_CONTROLLER_TOKEN");_.In=new _.yH("SHEET_CONTROLLER_TOKEN");_.bL=new _.yH("DIALOG_CONTROLLER_TOKEN");YTM=new _.yH("DIALOG_CONTAINER_TOKEN");T64=new _.yH("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.vD=new _.yH("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Y1x=_.mY("DOWNLOAD",{},"Download"),TuS=_.mY("DOWNLOADING",{},"Downloading"),cjH=_.mY("DOWNLOADED",{},"Downloaded"),S1Q=_.mY("RETRY",{},"Retry");var c1_=_.P(function(z){var l=szQ,I=function(){return""},b=d3$(z.data),v=oau(z.data),M=PDp(z.data),x=hOu(z.data);
l=function(){var g=z.data(),G=FNH(g,b(),v(),M(),x()),u=!!g.videoId,Z=G.text;return{title:u?Z:void 0,tooltip:u?void 0:Z,accessibilityText:Z,onTap:G.onTap,iconName:G.iconType,style:g.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:G.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:g.buttonSize}};
I={};I=_.m9("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var g=z.data(),G=x();return g.playlistId||G()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||G()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.N("download-button-view-model",{class:I},_.N(_.h4,{data:l}))},"H");
c1_.idomCompat=!0;var U3u=new _.yH("SUBMIT_API_SERVICE_TOKEN");var WNx,na$,awQ={submitAction:"SUBMIT_ACTION_SUBMISSION"};var GiQ=new _.yH("RENDERER_LOGGER_TOKEN");var DUG=new _.yH("RENDERER_STAMPER_OPTIONS_TOKEN");var VVt;_.YU=new xtI;VVt=new Map;var xU$="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),g3x=["notificationTextRenderer","notificationMultiActionRenderer"],
O8Q="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),p5Y=jz7(function(z){return _.d2(z==null?void 0:z.targetId)}).useUpdatableData;var Mh1=0;_.TS.debugName="EjJbCe";var STw=_.P(function(z){var l=z.data;z=z.className;_.c8(function(){l().formId||_.dE(Error("Fh"))});
var I=_.AjQ(function(){return l().formId},function(){return l().beforeSubmitCommand},function(){return l().afterSubmitCommand}),b=I.submitForm,v=I.isValid,M=I.isSubmitting,x=function(){return{state:l().isDisabled||!v()||M()?"disabled":"active"}};
return _.N("yt-submit-button-view-model",{class:_.m9("ytSubmitButtonViewModelHost",z)},_.N(_.TS,{data:function(){return l().button}},{buttonViewModel:function(g){return _.N(_.h4,{data:g.data,
buttonOverrides:x,onClick:b})}}))},"I");var o3_=_.P(function(z){var l=z.backgroundLottieRef;var I=z.foregroundLottieRef;var b=z.children;var v=z.wrapperClass;var M=z.disableAnimation;z=function(){return(_.C("web_animated_actions")||_.C("web_animated_actions_v2"))&&!(M==null?0:M())};
return _.N("yt-animated-action",{class:_.m9("ytAnimatedActionHost",v)},_.N("div",{class:"ytAnimatedActionContentWithBackground"},_.N(_.E,{cond:z,then:function(){return _.N(dUw,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:l==null?void 0:l(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(N6Y()?"dark":"light")+"_v5.json"}}}})}}),b),_.N(_.E,{cond:z,
then:function(){return _.N(dUw,{lottiePlayerProps:function(){return{animationRef:I==null?void 0:I(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(N6Y()?"dark":"light")+"_v4.json"}}}})}}))},"J");
o3_.idomCompat=!0;var dUw=_.P(function(z){var l=z.wrapperClass;var I=z.lottieClass;var b=z.lottiePlayerProps;return _.N("div",{class:_.m9("ytAnimatedActionLottie",l),"aria-hidden":"true"},_.N(_.A4,{className:I,data:b,animationName:function(){return b().animationConfig.name}}))},"K");var E3u={isOpen:!1};var Z8S={isAllowed:!1};var y1t={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Cj5={isOpen:!1};var RrG={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var PjM={response:void 0};var KPY=function(z,l){z=z===void 0?PjM:z;switch(l.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},z,{response:l.payload});default:return z}};var hr0={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var thQ=function(z,l){z=z===void 0?hr0:z;switch(l.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},z,{nextDisabled:l.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},z,{nextCommand:l.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},z,{footerSubmissionData:l.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},z,{isImpersonationValid:l.payload});default:return z}};var sGp={reportFormData:void 0,reportDetailsFormData:void 0};var B6t=function(z,l){z=z===void 0?sGp:z;switch(l.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},z,{reportFormData:l.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},z,{reportDetailsFormData:l.payload});default:return z}};var r1w=void 0;_.C("mweb_enable_redux_store_on_demand")||(r1w=new bc(X5t()));var Mm=_.C("enable_web_delhi_icons");var $UI=_.P(function(z){z=_.xC(z,{themeOverride:void 0,animationRef:{}});var l=z.animatedIconType,I=z.active,b=z.themeOverride,v=z.animationRef;z=z.staticIconFn;var M=_.D(_.Z_(void 0,void 0,"l48agc")),x=M.next().value,g=M.next().value,G=function(){a:{var Y=l();var c=b==null?void 0:b();var d;c=(c==null?void 0:c.useDarkTheme)||((d=_.pG().resolve(_.MB(_.I2)))==null?void 0:d());switch(Y){case "LIKE":r1w||(r1w=new bc(X5t()));Y=(Y=DfQ(r1w.getState()))&&Y.animationLightUrl&&Y.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:c?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:c?Y.animationDarkUrl:Y.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(Y){c=Y;break a}c="animated_like_icon_"+(c?"dark":"light")+"_"+(Mm?"v5":"v4");c={lottiePlayerProps:{animationConfig:{name:c,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+c+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Mm?" animated-like-icon-delhi":"")}}},totalFrames:Mm?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":c={lottiePlayerProps:{animationConfig:{name:c?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(c?"dark":"light")+(Mm?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Mm?" animated-subscribe-icon-delhi":"")}}},totalFrames:Mm?120:79,lazyLoad:!1};break a}c=
void 0}return c},u=function(){var Y,c;
return(c=(Y=G())==null?void 0:Y.lottiePlayerProps.animationConfig.name)!=null?c:""},Z=function(){if(G()){var Y=G().lottiePlayerProps.animationConfig.path;
return o2.get(Y)||x()}};
M=_.D(_.Z_(!1,void 0,"sDrGId"));var H=M.next().value;M=M.next().value;var y=i8x(M),f=function(){var Y=G(),c,d,V;return(V=Y==null?void 0:(c=Y.lottiePlayerProps.animationConfig)==null?void 0:(d=c.rendererSettings)==null?void 0:d.className)!=null?V:""},R=void 0,F=void 0;
_.Te(function(){var Y=G(),c=u(),d=Z(),V=H(),A=I();if(Y&&(F!==c&&(F=c,R=A,c=v(),y.animationConfig=Y.lottiePlayerProps.animationConfig,y.animationRef=c,d&&(y.animationConfig.animationData=d,y.animationConfig.path=void 0),c=Y.lottiePlayerProps.animationConfig.path,!o2.get(c)&&Y.lazyLoad&&c&&qTQ(c,g)),!(V||Y.lazyLoad&&!d))){if(d=!v().lottieEl)A?(V=Y.totalFrames,y.animationConfig.initialSegment=[V-1,V]):y.animationConfig.initialSegment=void 0;if(R!==A&&!d)if(d=v(),A){var W;(W=d.lottieEl)==null||W.playSegments([0,
Y.totalFrames],!0)}else{var L;(L=d.lottieEl)==null||L.playSegments([0,1],!0)}R=A}},"RQVZ1d");
return _.N("animated-icon",{class:"ytAnimatedIconHost"},_.N(_.E,{cond:function(){var Y,c;return!((Y=G())==null||!Y.lottiePlayerProps.animationConfig.path||((c=G())==null?0:c.lazyLoad)&&!Z()||H())},
then:function(){return _.N(_.A4,{data:y,animationName:u,className:f,animationRef:v})},
else:z}))},"L");_.py=_.P(function(z){var l=_.VK("yt-subscribe-button-view-model"),I=_.VK("div"),b=_.VK("div"),v=_.KY(),M=_.KY(),x=_.KY(),g=_.F1(va5,function(){return z.data().stateEntityStoreKey}),G=_.F1(MVt,function(){var JG,yu;
return(yu=(JG=z.data().notificationStateEntityStoreKeys)==null?void 0:JG.subsNotificationStateKey)!=null?yu:""}),u=function(){return!z.data().enableSubscribeButtonPostClickAnimation},Z=_.D(_.Z_(0,void 0,"YtsSKb")),H=Z.next().value,y=Z.next().value;
Z=_.D(_.Z_(0,void 0,"V6JxRe"));var f=Z.next().value,R=Z.next().value;Z=_.D(_.Z_(!1,void 0,"JUCSZ"));var F=Z.next().value,Y=Z.next().value;Z=_.D(_.Z_(!1,void 0,"oV6jwf"));var c=Z.next().value,d=Z.next().value;Z=_.D(_.Z_(!1,void 0,"hK1Whe"));var V=Z.next().value,A=Z.next().value,W;Z=_.D(_.Z_(!1,void 0,"Asaolf"));var L=Z.next().value,lH=Z.next().value,Gk=function(){d(!0);_.o0(_.ow,function(){d(!1)},1500)};
_.Te(function(){var JG=c();uE(function(){JG&&!u()&&g()&&hr5(v,M,x)})},"Qq6Hsf");
_.Te(function(){var JG=g();uE(function(){if(!u()&&JG){var yu;((yu=z.animateWidth)==null?0:yu.call(z))&&Pjx(l.value,!!JG.subscribed,H(),f());var uu,Y0;((uu=W)==null?0:uu.subscribed)||!JG.subscribed||JG.key!==((Y0=W)==null?void 0:Y0.key)||Gk();W=JG}})},"hog8te");
Z=_.kz(function(){var JG,yu,uu,Y0=z.data(),iK=!((JG=g())==null||!JG.subscribed);JG=!((yu=z.isOverlay)==null||!yu.call(z));yu=F()?l:void 0;var a_=(uu=G())==null?void 0:uu.state;uu=L();o3k(Y0,a_);return YTx({model:Y0,subscribed:iK,isOverlay:JG,element:yu,notificationState:a_,disableTextEllipsis:!0,focused:uu})},void 0,"hc1PRd");
var uH=function(){var JG;if(!u()&&((JG=z.animateWidth)==null?0:JG.call(z))&&(I==null?0:I.value)&&(b==null?0:b.value)&&!V()){JG=g();var yu=_.D((JG==null?0:JG.subscribed)?[I,b]:[b,I]),uu=yu.next().value;yu=yu.next().value;uu=Math.ceil(uu.value.getBoundingClientRect().width);yu=Math.ceil(yu.value.getBoundingClientRect().width);y(uu);R(yu);Pjx(l.value,!(JG==null||!JG.subscribed),uu,yu);A(!0)}},Xt=_.KK(function(JG){uH();
var yu=g();yu&&(JG.detail.endpoint.subscribeEndpoint||JG.detail.endpoint.unsubscribeEndpoint)&&c11(l.value,!yu.subscribed,yu)}),R1=function(){var JG=_.pG().resolve(_.MB(_.T$));
JG&&lH(JG.isKeyBoardInUse())},H7=function(){lH(!1)};
_.ay("yt-player-subscribe",function(JG){var yu=g();yu&&JG===z.data().channelId&&c11(l.value,!0,yu)});
_.ay("yt-player-unsubscribe",function(JG){var yu=g();yu&&JG===z.data().channelId&&c11(l.value,!1,yu)});
_.ay("yt-update-subscribe-button-action",function(JG){JG=_.k(JG,t7A);var yu=g();yu&&JG&&JG.channelId===z.data().channelId&&c11(l.value,!!JG.subscribed,yu)});
_.Sm(function(){l.value&&(l.value.addEventListener("focusin",R1),l.value.addEventListener("focusout",H7));var JG=_.qA(_.ow,function(){uH()});
Y(!0);_.cb(function(){_.ow.cancelJob(JG);l.value&&(l.value.removeEventListener("focusin",R1),l.value.removeEventListener("focusout",H7))})});
var P7=function(){var JG,yu,uu;if(uu=!((JG=g())==null||!JG.subscribed))JG=!!z.data().disableNotificationBell,uu=(yu=G())==null?void 0:yu.state,uu=!JG&&!!uu;return uu},o1=function(){var JG;
return!((JG=g())==null?0:JG.subscribed)},z_=function(){var JG,yu;
if(yu=o1()){yu=!!z.data().disableNotificationBell;var uu=(JG=G())==null?void 0:JG.state;yu=!yu&&!!uu}return yu},dw={},Ej={};
return _.N("yt-subscribe-button-view-model",{class:_.m9(z.className,"ytSubscribeButtonViewModelHost",(dw.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var JG,yu;return!((JG=g())==null||!JG.subscribed)&&((yu=z.animateWidth)==null?void 0:yu.call(z))&&c()},dw.ytSubscribeButtonViewModelHostHidden=function(){var JG;
return!((JG=g())==null?0:JG.subscribed)&&z.data().hideWhenUnsubscribed},dw)),
el:l,"on:yt-service-request-sent":Xt},_.N(o3_,{backgroundLottieRef:v,foregroundLottieRef:M,wrapperClass:_.m9("ytSubscribeButtonViewModelAnimatedActionWrapper",(Ej.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var JG;return((JG=z.animateWidth)==null?void 0:JG.call(z))&&c()},Ej.ytSubscribeButtonViewModelStaticWidth=function(){var JG;
return!((JG=z.animateWidth)==null?0:JG.call(z))},Ej)),
disableAnimation:u},_.N("div",{el:I,class:"ytSubscribeButtonViewModelContainer"},_.N(_.PZ,{data:Z,icon:function(){return _.N(_.E,{cond:P7,then:function(){var JG=function(){var yu;return T6S((yu=G())==null?void 0:yu.state)};
return _.N(_.E,{cond:function(){return u()||JG()!=="NOTIFICATIONS_NONE"},
then:function(){return _.N(_.qt,{icon:JG})},
else:function(){return _.N($UI,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:x})}})}})},
secondaryIconName:function(){return P7()?"EXPAND":void 0}}))),_.N("div",{el:b,
class:"ytSubscribeButtonViewModelInvisible"},_.N(_.E,{cond:function(){var JG;return((JG=z.animateWidth)==null?void 0:JG.call(z))&&!u()&&!V()},
then:function(){return _.N(_.PZ,{data:_.kz(function(){var JG;return YTx({model:z.data(),subscribed:o1(),isOverlay:!((JG=z.isOverlay)==null||!JG.call(z)),element:l,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var JG;return z_()?T6S((JG=G())==null?void 0:JG.state):void 0},
secondaryIconName:function(){return z_()?"EXPAND":void 0}})}})))},"M");
_.py.idomCompat=!0;var er4=_.P(function(z){var l=z.data;var I=_.F1(va5,function(){return l().subscriptionStateEntityKey});
return _.N(_.E,{cond:function(){var b=l(),v=I();return!b.hideWhenUnsubscribed||(v==null?0:v.subscribed)?_.k(l().button,_.N1):void 0},
then:function(b){return _.N("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.N(_.h4,{data:b,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
er4.idomCompat=!0;var w5A,DR;w5A=_.P(function(z){return _.N(_.TS,{data:function(){return z.actionRow().actions}},{buttonViewModel:function(l){var I=l.data;
return _.N(DR,{isRow:z.isRow,isIconOnlyButton:function(){return sGG(I())},
useIntrinsicWidth:z.useIntrinsicWidth},_.N(_.h4,{data:I}))},
subscribeButtonViewModel:function(l){return _.N(DR,{isRow:z.isRow},_.N(_.py,{data:l.data,isOverlay:!1,animateWidth:function(){return!z.isRow()}}))},
downloadButtonViewModel:function(l){var I=l.data;return _.N(DR,{isRow:z.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.N(c1_,{data:I}))},
submitButtonViewModel:function(l){var I=l.data;return _.N(DR,{isRow:z.isRow,isIconOnlyButton:function(){var b=I();return sGG(_.k(b==null?void 0:b.button,_.N1))}},_.N(STw,{data:I}))},
toggleButtonViewModel:function(l){var I=l.data;return _.N(DR,{isRow:z.isRow,isIconOnlyButton:function(){var b=I();return sGG(_.k(b.isToggled?b.toggledButtonViewModel:b.defaultButtonViewModel,_.N1))}},_.N(_.vL,{data:I}))},
subscribePlusButtonViewModel:function(l){return _.N(DR,{isRow:z.isRow},_.N(er4,{data:l.data}))}})},"O");
DR=_.P(function(z){var l={};return _.N("div",{class:_.m9("ytFlexibleActionsViewModelAction",(l.ytFlexibleActionsViewModelActionRowAction=z.isRow,l.ytFlexibleActionsViewModelActionIntrinsicWidth=z.useIntrinsicWidth,l.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,l.ytFlexibleActionsViewModelActionIconOnlyButton=z.isIconOnlyButton,l))},z.children)},"P");
_.xJ=_.P(function(z){var l=function(){var b;return((b=z.layout)==null?void 0:b.call(z))===1},I={};
return _.N("yt-flexible-actions-view-model",{class:_.m9("ytFlexibleActionsViewModelHost",z.className,(I.ytFlexibleActionsViewModelInline=function(){return!l()},I.ytFlexibleActionsViewModelScrollable=function(){return z.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.N(_.qy,{each:function(){return z.data().actionsRows||[]}},function(b){return _.N(_.E,{cond:l,
then:function(){return _.N("div",{class:"ytFlexibleActionsViewModelActionRow"},_.N(w5A,{actionRow:b,isRow:l,useIntrinsicWidth:function(){return!!z.data().respectActionIntrinsicWidth}}))},
else:function(){return _.N(w5A,{actionRow:b,isRow:l})}})}))},"Q");_.uO(_.xJ,"yt-flexible-actions-view-model",{props:{data:_.mB,layout:_.mB,justifyContentOverride:_.mB,className:_.mB}});_.Os=_.P(function(z){var l=_.F1(LK,function(){var v;return(v=z.data().dislikeEntityKey)!=null?v:""}),I=_.kz(function(){var v=l();
return v?v.likeStatus==="DISLIKE":_.k(z.data().toggleButtonViewModel,_.uS).isToggled},void 0,"fNr9he"),b=_.kz(function(){return Object.assign({},_.k(z.data().toggleButtonViewModel,_.uS),{isToggled:I()})},void 0,"AezoCc");
return _.N("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.N(_.vL,{data:b,buttonShapeOverrides:z.buttonShapeOverrideables,onToggle:function(v){var M=l();M&&v!==(M.likeStatus==="DISLIKE")&&M.key&&_.pE(_.sc("likeStatusEntity",M.key,{likeStatus:v?"DISLIKE":"INDIFFERENT",hadUserInteraction:v}))}}))},"R");
_.Os.idomCompat=!0;_.gP=_.P(function(z){var l=_.C("web_supports_animations_api"),I=OW(function(y){var f=u();if(!y){var R,F;return{numberText:(F=f==null?void 0:(R=f.likeCountIfIndifferent)==null?void 0:R.content)!=null?F:"",numberValue:Number(f==null?void 0:f.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var Y;R=(f==null?void 0:(Y=f.likeCountIfIndifferent)==null?void 0:Y.content)!==y.numberText;if(g()||!R)return y;var c;return{numberText:(f==null?void 0:(c=f.likeCountIfIndifferent)==null?void 0:c.content)||
"",numberValue:Number(f==null?void 0:f.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!f}}),b=OW(function(y){var f=u();
if(!y){var R,F;return{numberText:(F=f==null?void 0:(R=f.likeCountIfLiked)==null?void 0:R.content)!=null?F:"",numberValue:Number(f==null?void 0:f.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var Y;R=(f==null?void 0:(Y=f.likeCountIfIndifferent)==null?void 0:Y.content)!==y.numberText;if(g()||!R)return y;var c;return{numberText:(f==null?void 0:(c=f.likeCountIfLiked)==null?void 0:c.content)||"",numberValue:Number(f==null?void 0:f.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!f}}),v=_.D(_.Z_(void 0,
void 0,"xldjge")),M=v.next().value,x=v.next().value,g=M,G=_.F1(LK,function(){var y,f;
return(f=(y=z.data())==null?void 0:y.likeStatusEntityKey)!=null?f:""}),u=_.F1(S6x,function(){var y,f;
return((y=z.likeCountEntity)==null?void 0:(f=y.call(z))==null?void 0:f.key)||""}),Z=_.kz(function(){var y;
return((y=G())==null?void 0:y.likeStatus)==="LIKE"},void 0,"B3od5e"),H=function(){var y;
return l&&!((y=z.likeCountEntity)==null||!y.call(z))};
return _.N("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.N(_.vL,{data:function(){var y=Object,f=y.assign,R;var F=_.k((R=z.data())==null?void 0:R.toggleButtonViewModel,_.uS);return f.call(y,{},F||{},{isToggled:Z()})},
buttonShapeOverrides:z.buttonShapeOverrideables,animatedTextPropsDefault:function(){return H()?I():void 0},
animatedTextPropsToggled:function(){return H()?b():void 0},
onToggle:function(y){r1f(y,G(),g(),x)},
style:function(){var y;return((y=z.disableIconAnimation)==null?0:y.call(z))?void 0:{animateIcon:"true"}}}))},"S");
_.gP.idomCompat=!0;var A14=_.P(function(z){var l=function(){return _.k(z.data().likeButtonViewModel,_.bS)},I=function(){var v;
return((v=l())==null?void 0:v.likeStatusEntityKey)||""},b=_.kz(function(){var v,M;
var x=(M=_.F1(LK,I)())!=null?M:(v=l())==null?void 0:v.likeStatusEntity;v=z.data();var g;v=(v==null?void 0:(g=v.timedAnimationData)==null?void 0:g.animationTiming)||[];return{uniqueId:"like-dislike",timings:v,enabled:(x==null?void 0:x.likeStatus)==="INDIFFERENT"&&v.length>0,experimentEnabled:v.length>0}},void 0,"wEl1fe");
return _.N("segmented-like-dislike-button-view-model",{class:_.m9("ytSegmentedLikeDislikeButtonViewModelHost",z.className),"button-renderer":!0},_.N(X5A,{settings:b},_.N("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.N(_.E,{cond:l,then:function(v){return _.N(_.gP,{data:v,likeCountEntity:function(){return z.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.N(_.E,{cond:function(){return _.k(z.data().dislikeButtonViewModel,_.Ic)},
then:function(v){return _.N(_.Os,{data:v,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
A14.idomCompat=!0;_.uO(A14,"segmented-like-dislike-button-view-model",{props:{data:_.mB,className:_.mB}});var WP_=_.P(function(z){var l=z.data;var I=z.className;var b=z.setMinWidth;var v=z.forceIconOnly;var M=_.VK("account-link-button-view-model"),x=_.F1(_.$UQ,function(){var y;return(y=l().accountLinkStatusEntityKey)!=null?y:""}),g=_.F1(_.$UQ,function(){var y;
return(y=l().accountLinkStatusSecondaryEntityKey)!=null?y:""}),G=function(){if(!_.C("web_account_link_secondary_killswitch")){var y,f;
return((y=x())==null?void 0:y.linked)||((f=g())==null?void 0:f.linked)}var R;return(R=x())==null?void 0:R.linked};
_.Te(function(){var y=x();if(y){var f=n4n(new W1p,wKu(new eCM,!!y.linked));_.R0().then(function(R){R&&(R.setAccountLinkState(_.Tc(f.JSC$12171_serializeBinary(),4)),R.updateAccountLinkingConfig(!!y.linked))})}},"IvZF7");
var u=function(){return _.k(l().toggleButtonViewModel,_.uS)};
_.ay("yt-signal-action-show-account-link-dialog",function(){if(u()){var y=G()?u().toggledButtonViewModel:u().defaultButtonViewModel;y=_.k(y,_.N1);var f;if((f=x())==null?0:f.isWarning){f=_.k(l().warningButtonViewModel,_.N1);if(!f){_.nP(Error("Gh"));return}y=f}var R;(f=_.Wh((R=y)==null?void 0:R.onTap))&&_.fM([f],M.value)}else _.nP(Error("Hh"))});
var Z=function(){var y=u();return Object.assign({},y,{isToggled:G()})},H=function(){return(v==null?0:v())?{iconPosition:"icon-only"}:{}};
return _.N("account-link-button-view-model",{class:_.m9("ytwAccountLinkButtonViewModelHost",I,function(){return(b==null?0:b())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:M,"button-renderer":!0},_.N("div",null,_.N(_.E,{cond:function(){var y;if((y=x())==null?0:y.isWarning)return(y=_.k(l().warningButtonViewModel,_.N1))||_.nP(Error("Gh")),y},
then:function(y){return _.N(_.h4,{data:y,buttonOverrides:H})},
else:function(){return _.N(_.vL,{data:Z,buttonShapeOverrides:H})}})))},"U");_.uO(WP_,"account-link-button-view-model",{props:{data:_.mB,className:_.GH,setMinWidth:_.GH,forceIconOnly:_.GH}});_.sW("menuRenderer","menuRenderer","ytd-menu-renderer");
var n30={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"}},
LP_=_.C("web_fix_missing_action_buttons")?100:200,GM=function(){var z=_.q.apply(this,arguments)||this;z.safeArea=!_.C("kevlar_flex_menu_safe_area_killswitch");z.tonalOverride=!1;z.threeDotSize="M";z.isOverlay=!1;z.useOverlayDark=!1;z.topLevelIconsOnly=!1;z.JSC$14646_lastWidth=0;z.maybeUpdateFlexibleMenu=function(){_.C("web_fix_missing_action_buttons")?requestAnimationFrame(z.maybeUpdateFlexibleMenuImpl):z.maybeUpdateFlexibleMenuImpl()};
z.maybeUpdateFlexibleMenuImpl=function(){var l;if((l=z.data)!=null&&l.flexibleItems){z.maybeFlushDebouncer();l=z.hostElement.clientWidth;var I=l>z.JSC$14646_lastWidth,b,v=((b=z.topLevelButtonsContainer)==null?void 0:b.scrollHeight)||0,M;b=((M=z.flexibleItemButtonsContainer)==null?void 0:M.scrollHeight)||0;M=z.hostElement.scrollHeight>Math.max(v,b)+8;I?(z.resetFlexibleItems(),z.JSC$14646_lastWidth=z.hostElement.clientWidth,z.maybeUpdateFlexibleMenu()):M&&(z.shrinkFlexibleMenu(),z.JSC$14646_lastWidth=
l)}};
z.computeThreeDotButtonShape=function(){if(z.tonalOverride)return Object.assign({},{onTap:function(){z.onOverflowTap()},
iconPosition:"icon-only",style:z.isOverlay?z.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:z.threeDotSize,state:"active",accessibilityLabel:z.computeAccessibilityLabel(z.data)},z.threeDotButtonOverride)};
z.onOverflowTap=function(){if(z.data.fetchMenuCommand)_.pG().resolve(_.DQ).resolveCommand(z.data.fetchMenuCommand,{form:{element:z.hostElement}});else if(z.data.isDisabled&&z.data.disabledCommand)_.tx(z.data.disabledCommand,z.hostElement);else{var l=z.createMenuRendererVe(),I={items:z.items};z.data.menuPopupAccessibility&&(I.menuPopupAccessibility=z.data.menuPopupAccessibility);z.data.footer&&(I.footer=z.data.footer);l={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:l}};
_.pG().resolve(_.In).openSheet({openPopupActionCommand:l},z.hostElement)}};
return z};
_.m(GM,_.q);_.p=GM.prototype;_.p.updateButtonOverrides=function(){if(!_.C("menu_renderer_label_update_upkillswitch")){var z=_.Hy(this.hostElement).querySelector("yt-button-view-model");z&&(z.buttonOverrides=this.buttonOverrides)}};
_.p.computeHasItems=function(){var z;return((z=this.topLevelButtonData)==null?void 0:z.length)||this.hasFlexibleItems};
_.p.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.p.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.R8(this.hostElement,{"--ytd-menu-renderer-button-color":_.Ur(this.data.iconColor)}))};
_.p.onStamperFinished=function(){this.JSC$14646_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.p.setupFlexibleMenu=function(){var z=this,l;(l=this.data)!=null&&l.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.zD(this.maybeUpdateFlexibleMenu,LP_,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){z.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))};
_.p.maybeFlushDebouncer=function(){if(_.C("web_replace_formatted_with_attributed_string")){var z;(z=this.topLevelButtons)==null||z.forEach(function(I){var b;(I=(b=I.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&bgp(I)});
var l;(l=this.flexibleItemButtons)==null||l.forEach(function(I){var b;(I=(b=I.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&bgp(I)})}};
_.p.resetFlexibleItems=function(){var z;if((z=this.data)!=null&&z.flexibleItems){_.C("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var l;this.flexAsTopLevelButtons=(l=this.data.flexibleItems)==null?void 0:l.map(function(I){return _.k(I,_.m1M).topLevelButton});
_.C("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.p.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.p.shrinkFlexibleMenu=function(){var z;(z=this.flexAsTopLevelButtons)!=null&&z.length&&(this.flexAsTopLevelButtons=[].concat(_.ht(this.flexAsTopLevelButtons.slice(0,-1))))};
_.p.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:n30,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:n30,events:!0}}};
_.p.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.p.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.p.detached=function(){this.icon="MORE_VERT"};
_.p.computeTopLevelButtonData=function(z){if(!z)return[];var l;z=(l=z==null?void 0:z.topLevelButtons)!=null?l:[];return _.h7.unsafeClone([].concat(_.ht(z)))};
_.p.computeItems=function(z,l){if(!z)return[];var I=[];if(l){var b=(z.flexibleItems||[]).map(function(x){return _.k(x,_.m1M)});
b=_.D(b);for(var v=b.next();!v.done;v=b.next())v=v.value,l.includes(v.topLevelButton)||(v=v.menuItem)&&I.push(v)}var M;z=(M=z==null?void 0:z.items)!=null?M:[];return[].concat(_.ht(I),_.ht(z))};
_.p.computeMenuActive=function(z,l){return z||l};
_.p.onPopupOpened=function(){this.overlayOpen=!0;_.gC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.p.onPopupClosed=function(){this.overlayOpen=!1;_.gC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.onPopupCanceled=function(){this.overlayOpen=!1;_.gC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.computeAccessibilityLabel=function(z){return this.get("accessibility.accessibilityData.label",z)};
_.p.isHidden=function(z,l){return this.tonalOverride||!z?!0:z.fetchMenuCommand||z.isDisabled&&z.disabledCommand?!1:!(l==null?0:l.length)};
_.p.isModernOverflowHidden=function(z,l){return this.tonalOverride&&z?z.fetchMenuCommand?!1:!(l==null?0:l.length):!0};
_.p.createMenuRendererVe=function(){var z=this.data.trackingParams,l=_.sU(),I=_.h8();return z&&l&&I?(z=_.ch(z),I=_.kU(7591),_.C("combine_ve_grafts")?_.oc(_.iY(),I,z):_.LM(l,z,I),I):null};
_.vP.Object.defineProperties(GM.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.flexAsTopLevelButtons)==null||!z.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
GM.prototype.onPopupCanceled=GM.prototype.onPopupCanceled;GM.prototype.onPopupClosed=GM.prototype.onPopupClosed;GM.prototype.onPopupOpened=GM.prototype.onPopupOpened;GM.prototype.tonalOverrideChanged=GM.prototype.tonalOverrideChanged;GM.prototype.resetFlexibleItems=GM.prototype.resetFlexibleItems;GM.prototype.setupFlexibleMenu=GM.prototype.setupFlexibleMenu;GM.prototype.iconButtonColorChanged=GM.prototype.iconButtonColorChanged;GM.prototype.updateButtonOverrides=GM.prototype.updateButtonOverrides;
_.e([_.t(_.XD),_.w("design:type",Object)],GM.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#button-shape"),_.w("design:type",HTMLElement)],GM.prototype,"buttonShape",void 0);_.e([_.qX("#button"),_.w("design:type",Object)],GM.prototype,"button",void 0);
_.e([_.X(),_.w("design:type",Object)],GM.prototype,"data",void 0);_.e([_.X({computed:"computeTopLevelButtonData(data)"}),_.w("design:type",Array)],GM.prototype,"topLevelButtonData",void 0);_.e([_.X(),_.w("design:type",Array)],GM.prototype,"flexAsTopLevelButtons",void 0);_.e([_.X({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.w("design:type",Array)],GM.prototype,"items",void 0);_.e([_.X({value:"MORE_VERT"}),_.w("design:type",String)],GM.prototype,"icon",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GM.prototype,"safeArea",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.w("design:type",Boolean)],GM.prototype,"menuActive",void 0);_.e([_.X(),_.w("design:type",Boolean)],GM.prototype,"menuFocused",void 0);_.e([_.X({value:"bottom"}),_.w("design:type",String)],GM.prototype,"buttonTooltipPosition",void 0);_.e([_.X(),_.w("design:type",Boolean)],GM.prototype,"overlayOpen",void 0);
_.e([_.X({value:!0}),_.w("design:type",Boolean)],GM.prototype,"forceIconButton",void 0);_.e([_.X(),_.w("design:type",Boolean)],GM.prototype,"styleActionButton",void 0);_.e([_.X(),_.w("design:type",Boolean)],GM.prototype,"disableTextTransformOnButtons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GM.prototype,"tonalOverride",void 0);_.e([_.X(),_.w("design:type",Object)],GM.prototype,"threeDotSize",void 0);
_.e([_.X(),_.w("design:type",Object)],GM.prototype,"threeDotButtonOverride",void 0);_.e([_.X(),_.w("design:type",Object)],GM.prototype,"isOverlay",void 0);_.e([_.X(),_.w("design:type",Object)],GM.prototype,"useOverlayDark",void 0);_.e([_.X({computed:"computeButtonOverride(tonalOverride)"}),_.w("design:type",Object)],GM.prototype,"buttonOverride",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],GM.prototype,"hasCustomIconColor",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("flexAsTopLevelButtons"),_.w("design:type",Object),_.w("design:paramtypes",[])],GM.prototype,"hasFlexibleItems",null);_.e([_.X({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.w("design:type",Boolean)],GM.prototype,"hasItems",void 0);_.e([_.X(),_.w("design:type",Object)],GM.prototype,"topLevelIconsOnly",void 0);
_.e([_.By("topLevelIconsOnly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"updateButtonOverrides",null);_.e([_.B("topLevelIconsOnly"),_.w("design:type",Object),_.w("design:paramtypes",[])],GM.prototype,"buttonOverrides",null);_.e([_.qX("#top-level-buttons-computed"),_.w("design:type",HTMLElement)],GM.prototype,"topLevelButtonsContainer",void 0);_.e([_.i5(".top-level-buttons > *"),_.w("design:type",Array)],GM.prototype,"topLevelButtons",void 0);
_.e([_.qX("#flexible-item-buttons"),_.w("design:type",HTMLElement)],GM.prototype,"flexibleItemButtonsContainer",void 0);_.e([_.i5("#flexible-item-buttons > *"),_.w("design:type",Array)],GM.prototype,"flexibleItemButtons",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"iconButtonColorChanged",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"setupFlexibleMenu",null);_.e([_.YE("topLevelIconsOnly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"resetFlexibleItems",null);_.e([_.By("tonalOverride"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"tonalOverrideChanged",null);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"onPopupOpened",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"onPopupClosed",null);_.e([_.tP("yt-popup-canceled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GM.prototype,"onPopupCanceled",null);
_.r(GM,"ytd-menu-renderer",function(){if(N6j===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);N6j=z}z=N6j;return z},{mode:2});var UU_;var aO4;_.Nm=_.P(function(z){var l=z.data;var I=function(){if(l().icon)a:{var v={iconName:l().icon};for(var M=_.pG().resolve(_.mh),x=_.D([12,24]),g=x.next();!g.done;g=x.next()){var G=g.value;g=Object.assign({},v,{iconStyle:"youtube_fill",iconSize:G});G=Object.assign({},v,{iconStyle:"youtube_outline",iconSize:G});if(M.resolveIcon(g)){v=g;break a}if(M.resolveIcon(G)){v=G;break a}}v=void 0}else v=void 0;return v};
z={};var b={};return _.N("badge-shape",{class:_.m9("yt-badge-shape",function(){return LP7(l().type)},(z["yt-badge-shape--overlay"]=function(){return l().isOverlay},z["yt-badge-shape--ads-include-dot"]=function(){return l().adsIncludeDot},z["yt-badge-shape--thumbnail-badge"]=function(){a:switch(l().type){case 17:case 18:case 19:var v=!0;
break a;default:v=!1}return v},z["yt-badge-shape--status-badge"]=function(){a:switch(l().type){case 12:case 13:case 14:case 15:case 16:var v=!0;
break a;default:v=!1}return v},z["yt-badge-shape--no-text"]=function(){return!l().text},z["yt-badge-shape--modern"]=function(){return l().modern||_.C("web_modern_badge_shape")},z)),
style:_.XV({"background-color":function(){var v;return(v=l().customColors)==null?void 0:v.backgroundColor}}),
role:function(){return l().accessibilityText?"img":void 0},
"aria-label":function(){return l().accessibilityText}},_.N(_.E,{cond:function(){return l().animation},
then:function(v){return _.N(_.A4,{className:"yt-badge-shape__icon",data:v,animationName:function(){return v().animationConfig.name||""}})}}),_.N(_.E,{cond:function(){var v;
return I()&&!((v=l())==null?0:v.animation)},
then:function(){return _.N("div",{class:"yt-badge-shape__icon"},_.N(C$Y,{data:function(){return I()}}))}}),_.N("div",{class:_.m9("yt-badge-shape__text",(b["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(l().numBadgesInRow||0)>1},b))},function(){var v;
return(v=l())==null?void 0:v.text}))},"V");
_.Nm.idomCompat=!0;_.uO(_.Nm,"badge-shape",{props:{data:_.mB}});var Es=function(){var z=_.q.apply(this,arguments)||this;z.systemIcons=_.C("kevlar_system_icons");z.animated=_.C("animated_live_badge_icon");z.useBadgeShape=_.C("web_badge_shape_defrag");return z};
_.m(Es,_.q);_.p=Es.prototype;_.p.addTooltips=function(){for(var z=_.Hy(this.hostElement).querySelectorAll(".badge"),l=0,I;I=z[l++];){var b=this.repeatElement.itemForElement(I);I=_.Hy(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(b=b.metadataBadgeRenderer&&b.metadataBadgeRenderer.tooltip){var v=_.ih("tp-yt-paper-tooltip");(0,_.kE)(v).textContent=b;v.setAttribute("position","top");v.setAttribute("aria-hidden","true");I.appendChild(v)}}};
_.p.badgesChanged=function(){var z=this;_.uV().parkOrScheduleJob(function(){z.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.p.standaloneRoundedBadgeChanged=function(){var z=this.useRoundedBadge?this.useRoundedBadge:void 0;z&&(this.useRoundedBadge=z)};
_.p.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.p.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.p.computeStyle=function(z){_.C("enable_html5_teal_ad_badge")&&z==="BADGE_STYLE_TYPE_AD"&&(z="badge-style-type-ad-alternate");_.C("kevlar_ytb_live_badges")&&z==="BADGE_STYLE_TYPE_LIVE_NOW"&&(z="badge-style-type-live-now-alternate");return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeRole=function(z){return this.computeAriaLabel(z)?"img":"status"};
_.p.computeAriaLabel=function(z){var l;return(z==null?void 0:(l=z.accessibilityData)==null?void 0:l.label)||(z==null?void 0:z.label)};
_.p.computeBadgeShape=function(z){if(z){var l,I;var b=WP1(z.style);var v=n35(z.style),M=z.label,x=((l=z.accessibilityData)==null?void 0:l.label)||z.label;a:switch(z.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":l=!0;break a;default:l=!1}var g=(I=z.icon)==null?void 0:I.iconType;a:switch(z.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":z=!0;break a;default:z=!1}b={type:b,brNzRatingBadgeType:v,text:M,accessibilityText:x,
isOverlay:l,icon:g!=="PREMIUM"?g:void 0,modern:_.C("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:z}}else b={};return b};
_.p.updateComputedBadges=function(z,l,I){var b=this;(l=l?[l]:I?[I]:void 0)?this.computedBadges=l:this.computedBadges=z==null?void 0:z.filter(function(v){var M;if((M=v.metadataBadgeRenderer)==null?0:M.groups){M=!1;v=_.D(v.metadataBadgeRenderer.groups);for(var x=v.next();!x.done;x=v.next()){x=x.value;var g=void 0;M=M||((g=b.hiddenBadgeGroups)==null?void 0:g.includes(x))}return!M}return!0})};
_.p.useFilledIcons=function(z){return _.C("kevlar_system_icons")&&(z==="AUDIO_BADGE"||z==="CHECK_CIRCLE_THICK"||z==="OFFICIAL_ARTIST_BADGE"||z==="SPONSORSHIP_STAR"||z==="PERSON_RADAR_FILLED"||z==="PERSON_RADAR")};
_.p.computeBadgeShapeStyle=function(z){return this.useBadgeShape?z==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||z==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.p.computeIcon=function(z){var l,I;z=z==null?void 0:(l=z.metadataBadgeRenderer)==null?void 0:(I=l.icon)==null?void 0:I.iconType;if(z!=="PREMIUM"&&z)return _.Re(z)};
_.p.computeStandaloneBadge=function(z){var l;z=z==null?void 0:(l=z.icon)==null?void 0:l.iconType;return z==="PREMIUM_STANDALONE"||z==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Es.prototype.hiddenBadgeGroupsChanged=Es.prototype.hiddenBadgeGroupsChanged;Es.prototype.standaloneBadgeChanged=Es.prototype.standaloneBadgeChanged;Es.prototype.standaloneRoundedBadgeChanged=Es.prototype.standaloneRoundedBadgeChanged;Es.prototype.badgesChanged=Es.prototype.badgesChanged;_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"hidden",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Es.prototype,"componentBehavior",void 0);
_.e([_.X(),_.w("design:type",Array)],Es.prototype,"badges",void 0);_.e([_.X(),_.w("design:type",Object)],Es.prototype,"topStandaloneBadge",void 0);_.e([_.X(),_.w("design:type",Object)],Es.prototype,"bottomStandaloneBadge",void 0);_.e([_.X(),_.w("design:type",Object)],Es.prototype,"computedBadges",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"mediumFontAdBadge",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"useRoundedBadge",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"largeFontAdBadge",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"overlayAd",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"overlayPremium",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"noDotAdBadge",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"collectionTruncate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"isThumbnailBadge",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Es.prototype,"wrapBadges",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Number)],Es.prototype,"numBadgesInRow",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Es.prototype,"systemIcons",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Es.prototype,"animated",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Es.prototype,"useBadgeShape",void 0);_.e([_.X({value:[]}),_.w("design:type",Array)],Es.prototype,"hiddenBadgeGroups",void 0);_.e([_.qX("#repeat"),_.w("design:type",sx)],Es.prototype,"repeatElement",void 0);_.e([_.YE("badges"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Es.prototype,"badgesChanged",null);
_.e([_.YE("useRoundedBadge"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Es.prototype,"standaloneRoundedBadgeChanged",null);_.e([_.YE("topStandaloneBadge","bottomStandaloneBadge"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Es.prototype,"standaloneBadgeChanged",null);_.e([_.YE("hiddenBadgeGroups"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Es.prototype,"hiddenBadgeGroupsChanged",null);
_.e([_.S({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Es);
var VhM=_.Hh()(Es,"ytd-badge-supported-renderer",function(){if(aO4===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);aO4=z}z=aO4;return z},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.yP("kevlar_poly_si_batch_j053")?1:2});var uL=function(){var z=_.q.apply(this,arguments)||this;z.iconType="STAR";z.standardizeIconSize=_.C("kevlar_system_icons");z.mediaHoverOverlayInitialVisibility=_.C("enable_top_landscape_image_button_command_web");z.noBottomMargin=!1;z.thumbnailObjectFit="CONTAIN";z.thumbnailFitHeight=!0;z.actionMap={"yt-mute-ad-action":"handleMuteAd"};return z};
_.m(uL,_.q);_.p=uL.prototype;
_.p.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"}}}};
_.p.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",uL.JSC$14658_DEFAULT_CLICK_LOCATION_BEHAVIOR,uL.JSC$14658_CLICK_LOCATION_ID_MAP))};
_.p.onTap=function(z){if(!_.C("use_on_click_for_desktop_display_ad"))this.onTapOrClick(z)};
_.p.onClick=function(z){if(_.C("use_on_click_for_desktop_display_ad"))this.onTapOrClick(z)};
_.p.onTapOrClick=function(z){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,z,!1)};
_.p.updateMediaBackgroundImage=function(){var z=this.get("data.image.thumbnail.thumbnails");z&&(z=_.ZY(z,0))&&_.R8(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+z+")"})};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var z=0;z<this.data.impressionEndpoints.length;z++){var l=this.data.impressionEndpoints[z];l.clickTrackingParams&&delete l.clickTrackingParams;_.pG().resolve(_.DQ).resolveCommand(l,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.p.handleMuteAd=function(){};
_.p.attached=function(){var z=this;_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.C("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vP.Object.defineProperties(uL.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.titleText)return"";var l;return _.mY("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((l=this.data)==null?void 0:l.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.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 z;return!((z=this.data)==null||!z.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"}}});
uL.prototype.onClick=uL.prototype.onClick;uL.prototype.onTap=uL.prototype.onTap;uL.prototype.dataChanged=uL.prototype.dataChanged;
uL.JSC$14658_CLICK_LOCATION_ID_MAP=_.C("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"]]);
uL.JSC$14658_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.C("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.Nd),_.w("design:type",Object)],uL.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],uL.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],uL.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.t(O3),_.w("design:type",Object)],uL.prototype,"ytdActiveViewBehavior",void 0);_.e([_.t([_.wl.YtActionHandlerBehavior]),_.w("design:type",Object)],uL.prototype,"actionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],uL.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],uL.prototype,"clickCommand",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],uL.prototype,"miniMode",void 0);_.e([_.X(),_.w("design:type",String)],uL.prototype,"iconType",void 0);_.e([_.B("data.titleText"),_.w("design:type",String),_.w("design:paramtypes",[])],uL.prototype,"titleAriaLabel",null);
_.e([_.B("data.rating"),_.w("design:type",Object),_.w("design:paramtypes",[])],uL.prototype,"getRating",null);_.e([_.B("data.price"),_.w("design:type",Object),_.w("design:paramtypes",[])],uL.prototype,"getPrice",null);_.e([_.B("data.thirdLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],uL.prototype,"getThirdLine",null);_.e([_.B("data.fourthLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],uL.prototype,"getFourthLine",null);
_.e([_.B("data.fifthLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],uL.prototype,"getFifthLine",null);_.e([_.B("getRating"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"computeRatingHidden",null);_.e([_.B("getPrice"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"computePriceHidden",null);_.e([_.B("getThirdLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"computeThirdLineHidden",null);
_.e([_.B("getFourthLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"computeFourthLineHidden",null);_.e([_.B("getFifthLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"computeFifthLineHidden",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.energyIcon"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"hasEnergyIcon",null);
_.e([_.B("computePriceHidden","computeRatingHidden"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"computeSecondaryTextHidden",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uL.prototype,"standardizeIconSize",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uL.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uL.prototype,"noBottomMargin",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.layout"),_.w("design:type",String),_.w("design:paramtypes",[])],uL.prototype,"layout",null);_.e([_.B("data.layout"),_.w("design:type",Object),_.w("design:paramtypes",[])],uL.prototype,"mediaThumbnailWidth",null);_.e([_.B("layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uL.prototype,"useRoundedBadge",null);_.e([_.X(),_.w("design:type",String)],uL.prototype,"thumbnailObjectFit",void 0);
_.e([_.X(),_.w("design:type",Object)],uL.prototype,"thumbnailFitHeight",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uL.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uL.prototype,"onTap",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uL.prototype,"onClick",null);
_.e([_.S({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],uL);
_.r(uL,"ytd-display-ad-renderer",function(){if(UU_!==void 0)return UU_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return UU_=z},{mode:1});var jG_;var J1_;var zD_;var UUk=new Map;var llw=!1;var ZR=function(){var z=_.q.apply(this,arguments)||this;z.DEFAULT_TOOLTIP_OFFSET="10";z.TOOLTIP_OFFSET_NO_BANNER="-8";z.badges=null;z.noEndpoints=!1;z.wrapText=!1;z.forceVerified=!1;z.tooltipPosition="top";z.compactStyle=!1;z.height=0;z.lineHeight=0;return z};
_.m(ZR,_.q);_.p=ZR.prototype;_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.p.attached=function(){var z=this;this.observer=new MutationObserver(function(l,I){z.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.p.detached=function(){this.observer&&this.observer.disconnect()};
_.p.logTooltipEvent=function(){_.C("kevlar_wiz_tooltip_event_killswitch")||llw||(_.aOS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),llw=!0)};
_.p.handleWindowResized=function(){this.handleResized()};
_.p.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")))};
_.p.onHeightChanged=function(){if(this.verified){var z=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.sZ("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=z:this.textContainerEl.style.marginRight=z}};
_.p.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.sZ("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.p.handleResized=function(){var z=this;this.verified&&_.ow.addLowPriorityJob(function(){z.fitBackgroundToText();var l=getComputedStyle(z.hostElement).lineHeight;l&&(l=l.match(/\d+/))&&l.length&&(z.lineHeight=Number(l[0]));z.height=z.lineHeight&&!z.wrapText?z.lineHeight:z.textEl.offsetHeight})};
_.p.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var z=document.createRange(),l=_.Hy(this.textEl).children;l.length>0?z.selectNodeContents(l[0]):z.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(z.getBoundingClientRect().width)+"px"}};
_.p.computeChannelBadgeStyle=function(z){var l;if((z==null?0:(l=z.runs)==null?0:l.length)&&z.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Ur(z.runs[0].textColor)+";"};
_.vP.Object.defineProperties(ZR.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"?_.lc(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var z=this.get("badges.0.metadataBadgeRenderer.tooltip");if(z)return z}return _.ID(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
ZR.prototype.onLineHeightChanged=ZR.prototype.onLineHeightChanged;ZR.prototype.onHeightChanged=ZR.prototype.onHeightChanged;ZR.prototype.onChannelNameChanged=ZR.prototype.onChannelNameChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"badges",void 0);_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"channelName",void 0);
_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"noEndpoints",void 0);_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"wrapText",void 0);_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"forceVerified",void 0);_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"tooltipPosition",void 0);_.e([_.X(),_.w("design:type",String)],ZR.prototype,"tooltip",void 0);_.e([_.X(),_.w("design:type",Boolean)],ZR.prototype,"hasChannelArt",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ZR.prototype,"compactStyle",void 0);_.e([_.qX("#text-container"),_.w("design:type",HTMLElement)],ZR.prototype,"textContainerEl",void 0);_.e([_.qX("#text"),_.w("design:type",Object)],ZR.prototype,"textEl",void 0);_.e([_.qX("#verified-tooltip"),_.w("design:type",HTMLElement)],ZR.prototype,"verifiedTooltip",void 0);_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"height",void 0);
_.e([_.X(),_.w("design:type",Object)],ZR.prototype,"lineHeight",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("badges","forceVerified"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ZR.prototype,"verified",null);_.e([_.B("badges","verified"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ZR.prototype,"hideBadges",null);_.e([_.B("channelName"),_.w("design:type",Object),_.w("design:paramtypes",[])],ZR.prototype,"formattedName",null);
_.e([_.B("badges","verified","formattedName"),_.w("design:type",String),_.w("design:paramtypes",[])],ZR.prototype,"tooltipText",null);_.e([_.B("hasChannelArt"),_.w("design:type",String),_.w("design:paramtypes",[])],ZR.prototype,"tooltipOffset",null);_.e([_.By("channelName"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZR.prototype,"onChannelNameChanged",null);
_.e([_.By("height"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZR.prototype,"onHeightChanged",null);_.e([_.By("lineHeight","height"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZR.prototype,"onLineHeightChanged",null);_.e([_.S({is:"ytd-channel-name",disableElementRegistration:!0})],ZR);
_.r(ZR,"ytd-channel-name",function(){if(zD_!==void 0)return zD_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return zD_=z},{mode:_.yP("kevlar_poly_si_batch_j036")?1:2});var HD=function(){var z=_.q.apply(this,arguments)||this;z.standardizeIconSize=_.C("kevlar_system_icons");return z};
_.m(HD,_.q);HD.prototype.basicPaletteChanged=function(){var z;(z=this.data.color)!=null&&z.basicColorPaletteData&&_.Pr(this.hostElement,this.data.color.basicColorPaletteData)};
HD.prototype.useFilledIcons=function(z){return _.C("kevlar_system_icons")&&(z==="CHECK_CIRCLE_THICK"||z==="OFFICIAL_ARTIST_BADGE")};
_.vP.Object.defineProperties(HD.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return this.data.authorCreator||((z=this.data)==null?void 0:(l=z.color)==null?void 0:(I=l.basicColorPaletteData)==null?void 0:I.backgroundColor)}}});
HD.prototype.basicPaletteChanged=HD.prototype.basicPaletteChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],HD.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],HD.prototype,"standardizeIconSize",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.authorUnifiedVerified"),_.w("design:type",Object),_.w("design:paramtypes",[])],HD.prototype,"verified",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],HD.prototype,"creator",null);_.e([_.By("data.color.basicColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],HD.prototype,"basicPaletteChanged",null);_.e([_.S({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],HD);
_.r(HD,"ytd-author-comment-badge-renderer",function(){if(J1_!==void 0)return J1_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return J1_=z},{mode:1});var Ilu;var yN=function(){return _.q.apply(this,arguments)||this};
_.m(yN,_.q);yN.prototype.computeThumbnailWidth=function(z){if(z==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yN.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],yN.prototype,"icon",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],yN.prototype,"surface",void 0);
_.e([_.X({reflectToAttribute:!0,value:_.C("enable_shrink_image_size_on_web_posts_singleton")}),_.w("design:type",Boolean)],yN.prototype,"searchSxsUx",void 0);_.e([_.S({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],yN);
_.r(yN,"ytd-backstage-image-renderer",function(){if(Ilu!==void 0)return Ilu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ilu=z},{mode:1});var bSA;var fy=function(){var z=_.q.apply(this,arguments)||this;z.isLoading=!1;z.selectedItemIndex=-1;return z};
_.m(fy,_.q);_.p=fy.prototype;_.p.computeIsChannelOwner=function(z){if(!z)return!0;z=z[0];return!(z&&(z.signinEndpoint||z.selectServiceEndpoint))};
_.p.computeIsImagePoll=function(z){return(z==null?void 0:z.type)==="POLL_TYPE_IMAGE"};
_.p.computeIsTotalVotesDisabled=function(z){return!(z==null?0:z.totalVotes)};
_.p.thumbnailSrc=function(z){var l,I,b,v;return(z==null?0:(l=z.thumbnails)==null?0:(I=l[0])==null?0:I.url)?_.eA((b=z.thumbnails)==null?void 0:(v=b[0])==null?void 0:v.url):void 0};
_.p.progressWidth=function(z){return"width:"+(z?z*100:0)+"%;"};
_.p.textAreaWidth=function(z){return this.isImagePoll?null:"width:"+(z?z*100:0)+"%;"};
_.p.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.p.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var z=this.data.choices,l=0;l<z.length;l++)if(z[l].selected){this.selectedItemIndex=l;break}};
_.p.onPopupClosed=function(z,l){z=Number(this.pollVotes.selected);l.confirmed&&(this.selectChoice(z,!1),_.Gb(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.p.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.p.onYtCommentPollRevert=function(z,l){l&&(this.selectChoice(l.selectedChoiceIndex,!0),this.set("data.totalVotes",l.totalVotes))};
_.p.onYtServiceRequestSent=function(z,l){if(l.actions)for(z=0;z<l.actions.length;z++){var I=l.actions[z];_.k(I,Ad)&&this.set("data.totalVotes",_.k(I,Ad).totalVotes)}};
_.p.onYtServiceRequestCompleted=function(z){var l=this.get("detail.data.actionResults.0.feedback",z);z=this.get("detail.data.actionResults.0.status",z);if(l==="FEEDBACK_DESELECT"||l==="FEEDBACK_SELECT")this.isLoading=!1,z==="STATUS_FAILED"?_.gC(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.p.getEndpoint=function(z,l){return l===z?this.data.choices[l].deselectServiceEndpoint||null:this.data.choices[z].selectServiceEndpoint||null};
_.p.selectChoice=function(z,l){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var b;if(z===this.selectedItemIndex){var v=!1;var M=b=null}else b=(v=I===z)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,M=v?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",b);
this.set("data.choices."+I+".votePercentage",M);this.set("data.choices."+I+".selected",v)}l||(this.isLoading=!0,(l=this.getEndpoint(z,this.selectedItemIndex))&&_.pG().resolve(_.DQ).resolveCommand(l,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===z?-1:z};
_.vP.Object.defineProperties(fy.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
fy.prototype.onYtServiceRequestCompleted=fy.prototype.onYtServiceRequestCompleted;fy.prototype.onYtServiceRequestSent=fy.prototype.onYtServiceRequestSent;fy.prototype.onYtCommentPollRevert=fy.prototype.onYtCommentPollRevert;fy.prototype.onPopupClosed=fy.prototype.onPopupClosed;fy.prototype.dataChanged=fy.prototype.dataChanged;_.e([_.t(_.uA),_.w("design:type",Object)],fy.prototype,"paperItemBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],fy.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fy.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],fy.prototype,"isLoading",void 0);_.e([_.X({computed:"computeIsChannelOwner(data.choices)"}),_.w("design:type",Boolean)],fy.prototype,"isChannelOwner",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.w("design:type",Boolean)],fy.prototype,"isImagePoll",void 0);_.e([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.w("design:type",Boolean)],fy.prototype,"isTotalVotesDisabled",void 0);_.e([_.X(),_.w("design:type",Object)],fy.prototype,"previousPollInfo",void 0);_.e([_.X(),_.w("design:type",Object)],fy.prototype,"selectedItemIndex",void 0);_.e([_.qX("#poll-votes"),_.w("design:type",Object)],fy.prototype,"pollVotes",void 0);
_.e([_.B("isChannelOwner"),_.w("design:type",Object),_.w("design:paramtypes",[])],fy.prototype,"endpointStyle",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fy.prototype,"dataChanged",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],fy.prototype,"onPopupClosed",null);
_.e([_.tP("yt-comment-poll-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],fy.prototype,"onYtCommentPollRevert",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],fy.prototype,"onYtServiceRequestSent",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],fy.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],fy);
_.r(fy,"ytd-backstage-poll-renderer",function(){if(bSA!==void 0)return bSA;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return bSA=z},{mode:2});var vuI;var ML_={autoplay:!1,loop:!1},pvz={simpleText:""},Cy=function(){var z=_.q.apply(this,arguments)||this;z.isLoading=!1;z.usesPanelLockup=!1;z.selectedItemIndex=-1;z.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},ML_,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});z.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},ML_,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});z.correctnessAnimationProps=[];z.correctnessAnimationRefs=[];return z};
_.m(Cy,_.q);_.p=Cy.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.p.computeIsChannelOwner=function(z){if(!z)return!0;z=z[0];return!(z&&(z.signinEndpoint||z.selectServiceEndpoint))};
_.p.computeIsTotalVotesDisabled=function(z){return!(z==null?0:z.totalVotes)};
_.p.computeIsImageQuiz=function(z){return(z==null?void 0:z.type)==="POLL_TYPE_IMAGE"};
_.p.onExplanationChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var z=this.data.choices;if(z){this.maybeInitializeQuizLotties(z);for(var l=0;l<z.length;l++)if(z[l].isSelected||this.isChannelOwner&&z[l].isCorrect){this.selectedItemIndex=l;return}this.selectedItemIndex=-1}}};
_.p.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var z=this.selectedItemIndex,l=Number(this.quizVotes.selected);this.selectChoice(l);this.sendVoteAction(l,z);this.quizVotes.selected=-1;var I;z=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(z)}};
_.p.onYtCommentPollRevert=function(z,l){l&&(this.selectChoice(l.selectedChoiceIndex),this.set("data.totalVotes",l.totalVotes))};
_.p.onYtServiceRequestSent=function(z,l){if(l.actions)for(z=_.D(l.actions),l=z.next();!l.done;l=z.next())(l=_.k(l.value,Ad))&&this.set("data.totalVotes",l.totalVotes)};
_.p.onYtServiceRequestCompleted=function(z){var l=this.get("detail.data.actionResults.0.feedback",z);z=this.get("detail.data.actionResults.0.status",z);if(l==="FEEDBACK_DESELECT"||l==="FEEDBACK_SELECT")this.isLoading=!1,z==="STATUS_FAILED"?_.gC(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.p.getAnimationPropsForChoiceIndex=function(z,l){return l[z]};
_.p.maybePlayAnswerAnimations=function(z){z=z===void 0?!1:z;var l;if((l=this.data)!=null&&l.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){l=_.D(this.correctnessAnimationRefs);for(var I=l.next();!I.done;I=l.next()){var b=void 0,v=void 0;(b=I.value)==null||(v=b.lottieEl)==null||v.stop()}if(!(this.selectedItemIndex<0)){l=0;z&&(l=this.isCorrect?37:25);var M,x;(M=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(x=M.lottieEl)==null||x.goToAndPlay(z?l:0,!0);if(!(this.isCorrect||
(M=this.data.choices.findIndex(function(Z){return Z.isCorrect}),M<0))){var g,G;
(G=(g=this.correctnessAnimationRefs[M])==null?void 0:g.lottieEl)==null||G.goToAndPlay(37,!0);var u;g=(u=this.fadeContainers)==null?void 0:u.item(M);!z&&g&&this.fadeIn(g)}}}};
_.p.thumbnailSrc=function(z){var l,I,b,v;return(z==null?0:(l=z.thumbnails)==null?0:(I=l[0])==null?0:I.url)?_.eA((b=z.thumbnails)==null?void 0:(v=b[0])==null?void 0:v.url):void 0};
_.p.a11yVotedText=function(z,l){var I,b,v=((I=this.data)==null?void 0:(b=I.correctVotedText)==null?void 0:b.simpleText)||"",M,x;I=((M=this.data)==null?void 0:(x=M.votedText)==null?void 0:x.simpleText)||"";if(!l)return"";var g,G;if((g=this.data)==null?0:(G=g.choices)==null?0:G[z].isCorrect)return v;var u,Z;return((u=this.data)==null?0:(Z=u.choices)==null?0:Z[z].isSelected)?I:""};
_.p.getEndpoint=function(z,l){return l===z?this.data.choices[z].deselectServiceEndpoint||null:this.data.choices[z].selectServiceEndpoint||null};
_.p.sendVoteAction=function(z,l){if(z=this.getEndpoint(z,l))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(z)};
_.p.selectChoice=function(z){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var l=0;l<this.data.choices.length;l++)this.set("data.choices."+l+".isSelected",z===this.selectedItemIndex?!1:l===z);this.selectedItemIndex=this.selectedItemIndex===z?-1:z};
_.p.maybeInitializeQuizLotties=function(z){var l=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=z.map(function(I){return{animationConfig:I.isCorrect?l.baseCorrectLottiePlayerAnimationConfig:l.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){l.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.p.fadeIn=function(z){z.classList.add("fade-in");_.CK(_.ow,function(){z.classList.remove("fade-in")},900)};
_.vP.Object.defineProperties(Cy.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.ID(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 z,l;return((z=this.data)==null?void 0:(l=z.choices)==null?void 0:l.some(function(I){return I.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null||!z.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?pvz:this.data.choices[this.selectedItemIndex].explanation||pvz}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null||!z.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Cy.prototype.onYtServiceRequestCompleted=Cy.prototype.onYtServiceRequestCompleted;Cy.prototype.onYtServiceRequestSent=Cy.prototype.onYtServiceRequestSent;Cy.prototype.onYtCommentPollRevert=Cy.prototype.onYtCommentPollRevert;Cy.prototype.dataChanged=Cy.prototype.dataChanged;Cy.prototype.onExplanationChanged=Cy.prototype.onExplanationChanged;_.e([_.t(_.uA),_.w("design:type",Object)],Cy.prototype,"paperItemBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Cy.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.qw.YtTaskEmitterBehavior),_.w("design:type",Object)],Cy.prototype,"ytTaskEmitterBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],Cy.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Cy.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],Cy.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Object)],Cy.prototype,"usesPanelLockup",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.w("design:type",Boolean)],Cy.prototype,"isChannelOwner",void 0);_.e([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.w("design:type",Boolean)],Cy.prototype,"isTotalVotesDisabled",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.w("design:type",Boolean)],Cy.prototype,"isImageQuiz",void 0);_.e([_.X(),_.w("design:type",Object)],Cy.prototype,"previousQuizInfo",void 0);_.e([_.X(),_.w("design:type",Object)],Cy.prototype,"selectedItemIndex",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data","usesPanelLockup"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Cy.prototype,"shouldUseModernUi",null);
_.e([_.i5(".fade-container"),_.w("design:type",Object)],Cy.prototype,"fadeContainers",void 0);_.e([_.X(),_.w("design:type",Array)],Cy.prototype,"correctnessAnimationProps",void 0);_.e([_.B("explanation","showCorrectAnswer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Cy.prototype,"showExplanation",null);_.e([_.B("isChannelOwner","isAttempted"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Cy.prototype,"showCorrectAnswer",null);
_.e([_.B("isChannelOwner","isAttempted","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Cy.prototype,"isQuizAnsweringDisabled",null);_.e([_.B("isQuizAnsweringDisabled"),_.w("design:type",Object),_.w("design:paramtypes",[])],Cy.prototype,"endpointStyle",null);_.e([_.B("data","selectedItemIndex"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Cy.prototype,"isAttempted",null);
_.e([_.B("data","selectedItemIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],Cy.prototype,"explanation",null);_.e([_.B("data","selectedItemIndex"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Cy.prototype,"isCorrect",null);_.e([_.qX("ytd-expander"),_.w("design:type",Object)],Cy.prototype,"expander",void 0);_.e([_.qX("#quiz-votes"),_.w("design:type",Object)],Cy.prototype,"quizVotes",void 0);
_.e([_.By("explanation"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cy.prototype,"onExplanationChanged",null);_.e([_.By("data","isChannelOwner"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cy.prototype,"dataChanged",null);_.e([_.tP("yt-comment-quiz-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Cy.prototype,"onYtCommentPollRevert",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],Cy.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Cy.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Cy);
_.r(Cy,"ytd-backstage-quiz-renderer",function(){if(vuI!==void 0)return vuI;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return vuI=z},{mode:1});var DI4;var kJ=function(){return _.q.apply(this,arguments)||this};
_.m(kJ,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kJ.prototype,"data",void 0);_.e([_.S({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],kJ);
_.r(kJ,"ytd-post-uploaded-video-renderer",function(){if(DI4!==void 0)return DI4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return DI4=z},{mode:1});var xI_;var Rn=function(){return _.q.apply(this,arguments)||this};
_.m(Rn,_.q);Rn.prototype.useFilledIcons=function(z){return z==="SPONSORSHIP_STAR"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Rn.prototype,"data",void 0);_.e([_.S({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Rn);
var OSj=_.Hh()(Rn,"ytd-sponsors-only-badge-renderer",function(){if(xI_===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);xI_=z}z=xI_;return z},{allowedProps:["data"],
mode:1});var gu_;var mr=function(){return _.q.apply(this,arguments)||this};
_.m(mr,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],mr.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mr.prototype,"data",void 0);_.e([_.S({is:"ytd-child-video-renderer",disableElementRegistration:!0})],mr);
_.r(mr,"ytd-child-video-renderer",function(){if(gu_!==void 0)return gu_;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return gu_=z},{mode:1});var Gtz;var NFM;var Ky=function(){var z=_.q.apply(this,arguments)||this;z.size=0;z.enableWebModernCollectionsV2=_.C("web_modern_collections_v2");z.fallbackImageSize={height:void 0,width:9999};z.webModernCollections=!1;return z};
_.m(Ky,_.q);_.p=Ky.prototype;_.p.computeBlurredImageSize=function(z){return z?{height:z*2,width:z*2}:this.fallbackImageSize};
_.p.computeImageSize=function(z){return z?{height:z,width:z}:this.fallbackImageSize};
_.p.computeObjectFit=function(z){return z?"FILL":"CONTAIN"};
_.p.computePreserve=function(z){return z?!0:!1};
_.p.setBackground=function(){var z,l;_.C("web_modern_collections_v2")&&((z=this.data)==null?0:(l=z.thumbnail)==null?0:l.sampledThumbnailColor)&&(z=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+z.red+","+z.green+","+z.blue+",1)")};
Ky.prototype.setBackground=Ky.prototype.setBackground;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Ky.prototype,"watchFeedThumbnail",void 0);_.e([_.X(),_.w("design:type",Object)],Ky.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Ky.prototype,"size",void 0);
_.e([_.X({computed:"computeBlurredImageSize(size)"}),_.w("design:type",Object)],Ky.prototype,"blurredImageSize",void 0);_.e([_.X({computed:"computeImageSize(size)"}),_.w("design:type",Object)],Ky.prototype,"imageSize",void 0);_.e([_.X({computed:"computePreserve(size)"}),_.w("design:type",String)],Ky.prototype,"preserve",void 0);_.e([_.X({computed:"computeObjectFit(size)"}),_.w("design:type",String)],Ky.prototype,"objectFit",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ky.prototype,"enableWebModernCollectionsV2",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ky.prototype,"webModernCollections",void 0);_.e([_.By("data.thumbnail.sampledThumbnailColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ky.prototype,"setBackground",null);_.e([_.S({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Ky);
_.r(Ky,"ytd-playlist-custom-thumbnail-renderer",function(){if(NFM!==void 0)return NFM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return NFM=z},{mode:1});var Eun;var tn=function(){return _.q.apply(this,arguments)||this};
_.m(tn,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],tn.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],tn.prototype,"width",void 0);_.e([_.S({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],tn);
_.r(tn,"ytd-playlist-video-thumbnail-renderer",function(){if(Eun!==void 0)return Eun;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Eun=z},{mode:1});var uyz;var BD=function(){return _.q.apply(this,arguments)||this};
_.m(BD,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],BD.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],BD.prototype,"width",void 0);_.e([_.S({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],BD);
_.r(BD,"ytd-show-custom-thumbnail-renderer",function(){if(uyz!==void 0)return uyz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uyz=z},{mode:1});var ZS_;var XH=function(){return _.q.apply(this,arguments)||this};
_.m(XH,_.q);XH.prototype.useFilledIcons=function(z){return z==="MUSIC"||z==="COURSE"};
XH.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=VX(this.overlayColor,"0.8");else if(this.overlayColor){var z=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+z.red+","+z.green+","+z.blue+",0.8)"}};
_.vP.Object.defineProperties(XH.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)}}});
XH.prototype.overlayColorChanged=XH.prototype.overlayColorChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],XH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],XH.prototype,"overlayColor",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.icon","data.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],XH.prototype,"overlayStyle",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.icon","data.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],XH.prototype,"overlayTextStyle",null);_.e([_.By("overlayColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XH.prototype,"overlayColorChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],XH);
_.r(XH,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(ZS_!==void 0)return ZS_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ZS_=z},{mode:1});var HS_;var qm=function(){var z=_.q.apply(this,arguments)||this;z.active=!1;return z};
_.m(qm,_.q);qm.prototype.computeIsSpinnerHidden=function(z){return(z==null?void 0:z.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
qm.prototype.computeOverlayIcon=function(z){return(z==null?void 0:z.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(z==null?void 0:z.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qm.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],qm.prototype,"active",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],qm);
_.r(qm,"ytd-thumbnail-overlay-downloading-renderer",function(){if(HS_!==void 0)return HS_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return HS_=z},{mode:1});var yau;var iL=function(){return _.q.apply(this,arguments)||this};
_.m(iL,_.q);_.vP.Object.defineProperties(iL.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iL.prototype,"data",void 0);_.e([_.B("data.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],iL.prototype,"text",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],iL);
_.r(iL,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(yau!==void 0)return yau;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yau=z},{mode:1});var flu,CwM=function(){if(flu!==void 0)return flu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return flu=z};var FH=function(){return _.q.apply(this,arguments)||this};
_.m(FH,_.q);_.vP.Object.defineProperties(FH,{template:{configurable:!0,enumerable:!0,get:function(){return CwM()}}});
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],FH.prototype,"animateEqualizer",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],FH);_.Hh()(FH,"ytd-thumbnail-overlay-equalizer",function(){return CwM()},{allowedProps:["animateEqualizer"],
mode:1});var ktM;var QN=function(){var z=_.q.apply(this,arguments)||this;z.nowPlayingBadge=_.C("web_now_playing_badge");z.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return z};
_.m(QN,_.q);QN.prototype.activeChanged=function(){var z=this;_.C("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.IR(this,function(){_.gC(z.hostElement,"yt-playlist-lockup-now-playing-active",z)})};
QN.prototype.onMiniplayerPlayStateChanged=function(z){var l,I=(l=_.k(_.wb().currentEndpoint,_.zb))==null?void 0:l.videoId;this.isVideoPlaying=z&&(_.C("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
QN.prototype.activeChanged=QN.prototype.activeChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],QN.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],QN.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],QN.prototype,"isVideoPlaying",void 0);_.e([_.X(),_.w("design:type",String)],QN.prototype,"videoId",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],QN.prototype,"equalizerOnly",void 0);_.e([_.X(),_.w("design:type",Boolean)],QN.prototype,"isActive",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QN.prototype,"nowPlayingBadge",void 0);_.e([_.By("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QN.prototype,"activeChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],QN);
_.r(QN,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(ktM!==void 0)return ktM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ktM=z},{mode:1});var RDu;var YJ=function(){return _.q.apply(this,arguments)||this};
_.m(YJ,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],YJ.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],YJ);
_.r(YJ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(RDu!==void 0)return RDu;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return RDu=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var mI_;var TM=function(){return _.q.apply(this,arguments)||this};
_.m(TM,_.q);TM.prototype.onDurationChanged=function(){var z,l;_.Hy(this.hostElement).querySelector("#progress").style.width=((l=(z=this.data)==null?void 0:z.percentDurationWatched)!=null?l:0)+"%"};
TM.prototype.onDurationChanged=TM.prototype.onDurationChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],TM.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TM.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],TM.prototype,"isLive",void 0);_.e([_.By("data.percentDurationWatched"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TM.prototype,"onDurationChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],TM);
_.r(TM,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(mI_!==void 0)return mI_;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return mI_=z},{mode:1});var Kkp;var cD=function(){var z=_.q.apply(this,arguments)||this;z.bottomPanel=!1;z.richGridOverlay=!1;z.watchFeedOverlay=!1;z.isCompact=!1;return z};
_.m(cD,_.q);cD.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.vP.Object.defineProperties(cD.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:(l=z.icon)==null?void 0:l.iconType)==="PLAY_ALL"&&_.C("kevlar_system_icons")}}});
cD.prototype.widthChanged=cD.prototype.widthChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cD.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],cD.prototype,"width",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cD.prototype,"bottomPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cD.prototype,"richGridOverlay",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cD.prototype,"watchFeedOverlay",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cD.prototype,"isCompact",void 0);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],cD.prototype,"isIconFilled",null);_.e([_.By("width","watchFeedOverlay"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cD.prototype,"widthChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],cD);
_.r(cD,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Kkp!==void 0)return Kkp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Kkp=z},{mode:1});var tLu;var BFn=["CLIP","SHORTS"],S5=function(){var z=_.q.apply(this,arguments)||this;z.animated=_.C("animated_live_badge_icon");z.hasIcon=!1;z.updateTimerIntervalId=0;z.timeSinceLive=0;return z};
_.m(S5,_.q);_.p=S5.prototype;_.p.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.p.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.p.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.p.hasIconOrText=function(){var z,l;return!!(((z=this.data)==null?0:z.icon)||((l=this.data)==null?0:l.text))};
_.p.initializeLiveBadgeTimer=function(){var z=this,l,I=(l=this.liveBadgeData)==null?void 0:l.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var b;l=Number((b=this.liveBadgeData)==null?void 0:b.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.ZQ(function(){z.canShowLiveBadgeTimer()?z.timeSinceLive++:(z.timeSinceLive=0,window.clearInterval(z.updateTimerIntervalId))},l)}else this.timeSinceLive=0};
_.p.canShowLiveBadgeTimer=function(){var z=Date.now(),l,I;return z<(Number((l=this.liveBadgeData)==null?void 0:l.endTimestampSec)-1)*1E3&&z>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.vP.Object.defineProperties(S5.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var z=this.data;var l=this.timeSinceLive;var I,b,v,M;a:{var x=z.style;if(x===void 0)x=17;else switch(x){case "LIVE":x=18;break a;default:x=17}}l={type:x,text:l?T3t({seconds:l}):_.ID(z.text),accessibilityText:(I=z.text)==null?void 0:(b=I.accessibility)==null?void 0:(v=b.accessibilityData)==null?void 0:v.label,icon:(M=z.icon)==null?void 0:M.iconType}}else l={};return l}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.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 BFn.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
S5.prototype.initializeLiveBadgeTimer=S5.prototype.initializeLiveBadgeTimer;S5.prototype.dataChanged=S5.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],S5.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],S5.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],S5.prototype,"icon",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],S5.prototype,"animated",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.w("design:type",Boolean)],S5.prototype,"hideTimeStatus",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],S5.prototype,"hasIcon",void 0);_.e([_.X(),_.w("design:type",Object)],S5.prototype,"timeSinceLive",void 0);_.e([_.B("data","timeSinceLive"),_.w("design:type",Object),_.w("design:paramtypes",[])],S5.prototype,"badgeShapeData",null);
_.e([_.B("data","overlayType"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],S5.prototype,"hideBadgeShape",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S5.prototype,"dataChanged",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.style"),_.w("design:type",Object),_.w("design:paramtypes",[])],S5.prototype,"overlayStyle",null);
_.e([_.B("data.liveBadgeData"),_.w("design:type",Object),_.w("design:paramtypes",[])],S5.prototype,"liveBadgeData",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.type"),_.w("design:type",Object),_.w("design:paramtypes",[])],S5.prototype,"overlayType",null);_.e([_.B("overlayType","overlayStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],S5.prototype,"useFilledIcon",null);
_.e([_.YE("liveBadgeData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S5.prototype,"initializeLiveBadgeTimer",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],S5);
_.r(S5,"ytd-thumbnail-overlay-time-status-renderer",function(){if(tLu!==void 0)return tLu;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tLu=z},{mode:_.yP("kevlar_poly_si_batch_j035")?1:2});var XvI;var dP=function(){return _.q.apply(this,arguments)||this};
_.m(dP,_.q);dP.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"}}}}};
dP.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(z){if(this.hasPlaybackProgressBar)return{percentDurationWatched:z.percentDurationWatched}};
dP.prototype.computeHasPlaybackProgressBar=function(z){return!!z.percentDurationWatched&&z.percentDurationWatched>0};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dP.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.w("design:type",Boolean)],dP.prototype,"hasPlaybackProgressBar",void 0);
_.e([_.S({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],dP);
_.r(dP,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(XvI!==void 0)return XvI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return XvI=z},{mode:1});var qt_;var iSp=_.P(function(z){var l=z.data;var I=z.children;var b=function(){return!!l().doubleStack},v=function(){return!!l().includeStackHeight};
return _.N("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!l().experimentEnabled}},_.N(_.E,{cond:l,
then:function(){var M={};return _.N(_.xP,null,_.N(_.E,{cond:v,then:function(){var x={};return _.N("div",{class:_.m9("ytCollectionsStackSpacer",(x.ytCollectionsStackSpacerDoubleStack=b,x))})}}),_.N("div",{class:_.m9((M.ytCollectionsStackRelativeStack=v,M))},_.N(_.E,{cond:b,
then:function(){var x={};return _.N("div",{class:_.m9("ytCollectionsStackCollectionStack2",function(){return l().customClassName2ndStack},(x.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return l().enableResponsiveMode},x)),
style:_.XV({"background-color":function(){return jG7(l())}})})}}),_.N("div",{class:_.m9("ytCollectionsStackCollectionStack1",function(){return l().customClassName1stStack},function(){return Vhx(l().thumbnailSize?l().thumbnailSize:"medium")}),
style:_.XV({"background-color":function(){return jG7(l())}})}),I))}}))},"W");_.uO(iSp,"yt-collections-stack",{props:{data:_.mB}});var on=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};z.webModernCollections=!1;z.isSearch=!1;z.isDoubleStack=!1;z.thumbnailSize="medium";z.enableWebModernCollectionsV2=_.C("web_modern_collections_v2");return z};
_.m(on,_.q);_.p=on.prototype;
_.p.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]]"}}}}}};
_.p.getThumbnailDetails=function(z){if(z!=null&&z.thumbnailRenderer){var l=z.thumbnailRenderer,I;if((I=l.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return l.playlistVideoThumbnailRenderer.thumbnail;var b;if((b=l.playlistCustomThumbnailRenderer)==null?0:b.thumbnail)return l.playlistCustomThumbnailRenderer.thumbnail;z=z.thumbnailRenderer;var v;if((v=z.showCustomThumbnailRenderer)==null?0:v.thumbnail)return z.showCustomThumbnailRenderer.thumbnail}};
_.p.computeOverlayColor=function(z){var l,I;if((l=this.getThumbnailDetails(z))==null?0:(I=l.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(z).darkColorPalette.section2Color;var b;return(b=this.getThumbnailDetails(z))==null?void 0:b.sampledThumbnailColor};
_.p.computeWebModernCollections=function(z){if(z==null||!z.thumbnailOverlays)return!1;z=_.D(z.thumbnailOverlays);for(var l=z.next();!l.done;l=z.next()){var I=void 0;if((I=l.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.p.computeNavigationEndpoint=function(z){return GJp(z==null?void 0:z.navigationEndpoint)};
_.vP.Object.defineProperties(on.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var z=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:z==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:z==null?void 0:z.vibrantColorPalette,darkColorPalette:z==null?void 0:z.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],on.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(oD_),_.w("design:type",Object)],on.prototype,"ytdThumbnailBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],on.prototype,"componentBehavior",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],on.prototype,"watchFeedThumbnail",void 0);_.e([_.X(),_.w("design:type",Number)],on.prototype,"customThumbnailSize",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],on.prototype,"hideAria",void 0);_.e([_.X(),_.w("design:type",Object)],on.prototype,"data",void 0);_.e([_.X({computed:"computeOverlayColor(data)"}),_.w("design:type",Object)],on.prototype,"overlayColor",void 0);
_.e([_.X({computed:"computeWebModernCollections(data)"}),_.w("design:type",Object)],on.prototype,"webModernCollections",void 0);_.e([_.X({computed:"computeNavigationEndpoint(data)"}),_.w("design:type",Object)],on.prototype,"computedNavigationEndpoint",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],on.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],on.prototype,"isDoubleStack",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],on.prototype,"thumbnailSize",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],on.prototype,"enableWebModernCollectionsV2",void 0);_.e([_.B("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.w("design:type",Object),_.w("design:paramtypes",[])],on.prototype,"collectionStack",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],on);
_.r(on,"ytd-playlist-thumbnail",function(){if(qt_!==void 0)return qt_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return qt_=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var Fku;var PD=function(){var z=_.q.apply(this,arguments)||this;z.noEndpoints=!1;z.amsterdamPostMvp=_.C("web_amsterdam_post_mvp_playlists");z.badges=[];z.transferState="TRANSFER_STATE_UNKNOWN";return z};
_.m(PD,_.q);_.p=PD.prototype;_.p.getMetadata=function(z){if(!z)return[];var l=[],I=z.shortViewCountText||z.viewCountText;I&&l.push(_.ID(I));z.publishedTimeText&&l.push(_.ID(z.publishedTimeText));z.upcomingEventData&&z.upcomingEventData.upcomingEventText&&l.push(_.PU(_.ID(z.upcomingEventData.upcomingEventText),Number(z.upcomingEventData.startTime)));return l};
_.p.observeDataForBylineSeparator=function(){this.data&&_.fJ(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.p.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Ur(this.metadataColor)};
_.p.getSimpleString=function(z){return _.ID(z)};
_.p.isBylineHidden=function(z){return this.noByline||!((z==null?0:z.longBylineText)||(z==null?0:z.shortBylineText))};
_.p.isMetadataHidden=function(z){var l;return((l=this.getMetadata(z))==null?void 0:l.length)===0};
_.p.isBylineMetadataSeparatorHidden=function(z){return this.isMetadataHidden(z)||!this.shouldShowVideoInfo};
_.p.isLongByline=function(z,l){return l&&!(z==null||!z.longBylineText)};
_.vP.Object.defineProperties(PD.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var z;return this.amsterdamPostMvp&&!((z=this.data)==null||!z.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.C("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
PD.prototype.metadataColorChanged=PD.prototype.metadataColorChanged;PD.prototype.observeDataForBylineSeparator=PD.prototype.observeDataForBylineSeparator;_.e([_.t(_.gU),_.w("design:type",Object)],PD.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],PD.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],PD.prototype,"noEndpoints",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"isSlimShort",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"radioMeta",void 0);_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],PD.prototype,"isGridViewEnabled",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"richMeta",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PD.prototype,"amsterdamPostMvp",void 0);_.e([_.X(),_.w("design:type",Boolean)],PD.prototype,"noByline",void 0);
_.e([_.X({computed:"isLongByline(data, radioMeta)"}),_.w("design:type",Boolean)],PD.prototype,"longByline",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"truncateMetadataLine",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"miniMode",void 0);_.e([_.X(),_.w("design:type",Number)],PD.prototype,"metadataColor",void 0);_.e([_.X(),_.w("design:type",Array)],PD.prototype,"badges",void 0);
_.e([_.X({selector:_.wg,selectorArgs:["data.videoId"]}),_.w("design:type",String)],PD.prototype,"transferState",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"isDownloading",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PD.prototype,"typographyBump",void 0);_.e([_.qX("#metadata-line"),_.w("design:type",HTMLElement)],PD.prototype,"metadataLine",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PD.prototype,"observeDataForBylineSeparator",null);_.e([_.By("metadataColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PD.prototype,"metadataColorChanged",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],PD.prototype,"shouldShowVideoInfo",null);
_.e([_.B("badges"),_.w("design:type",String),_.w("design:paramtypes",[])],PD.prototype,"inlineBadgeClass",null);_.e([_.B("longByline"),_.w("design:type",String),_.w("design:paramtypes",[])],PD.prototype,"longBylineClass",null);_.e([_.B("data","longByline"),_.w("design:type",Object),_.w("design:paramtypes",[])],PD.prototype,"bylineText",null);_.e([_.B("isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],PD.prototype,"watchFeedBigThumbs",null);
_.e([_.S({is:"ytd-video-meta-block",disableElementRegistration:!0})],PD);
_.r(PD,"ytd-video-meta-block",function(){if(Fku!==void 0)return Fku;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Fku=z},{mode:_.yP("kevlar_poly_si_batch_j080")?1:2});_.sW("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var hn=function(){var z=_.q.apply(this,arguments)||this;z.displayItemCount=2;z.isBackstagePlaylist=!1;z.isPostCompactPlaylist=!1;z.shouldShowChannelThumbnail=!1;z.useModernCollectionsV2=_.C("web_modern_collections_v2");return z};
_.m(hn,_.q);_.p=hn.prototype;_.p.computeFirstVideos=function(z,l){return z===void 0||l===void 0?[]:z.slice(0,l)};
_.p.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var z=this.data.thumbnailRenderer;z.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",z.playlistVideoThumbnailRenderer.thumbnail);z.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",z.playlistCustomThumbnailRenderer.thumbnail)}};
_.p.computeThumbnailHeight=function(z,l,I,b,v){return b?v==="BIG"?280:v==="MASSIVE"?337:234:I?240:l?72:z?118:138};
_.p.computeThumbnailWidth=function(z,l,I,b,v){return b?v==="MEDIUM"?450:v==="BIG"?500:v==="MASSIVE"?600:420:I?360:l?128:z?210:246};
_.p.computeUseBiggerThumbs=function(z){return z&&_.C("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelThumbnail=function(z,l){return z&&!(l==null||!l.channelThumbnail)};
_.vP.Object.defineProperties(hn.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
hn.prototype.dataChanged=hn.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],hn.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],hn.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],hn.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],hn.prototype,"displayItemCount",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],hn.prototype,"isBackstagePlaylist",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],hn.prototype,"isPostCompactPlaylist",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],hn.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.w("design:type",Boolean)],hn.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],hn.prototype,"biggerThumbsStyle",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],hn.prototype,"isDownloads",void 0);_.e([_.X({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.w("design:type",Object)],hn.prototype,"shouldShowChannelThumbnail",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],hn.prototype,"useModernCollectionsV2",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hn.prototype,"dataChanged",null);_.e([_.B("isSearch"),_.w("design:type",String),_.w("design:paramtypes",[])],hn.prototype,"stackThumbnailSize",null);_.e([_.S({is:"ytd-playlist-renderer",disableElementRegistration:!0})],hn);
_.r(hn,"ytd-playlist-renderer",function(){if(Gtz===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);Gtz=z}z=Gtz;return z},{mode:1});var QdA;var Ytw;var ss=function(){var z=_.q.apply(this,arguments)||this;z.collections=!!_.C("web_modern_collections_v2");z.startX=0;return z};
_.m(ss,_.q);ss.prototype.onEndpointMouseDown=function(z){this.startX=z.clientX};
ss.prototype.onEndpointClick=function(z){this.startX!==z.clientX&&(z.preventDefault(),z.stopPropagation())};
ss.prototype.computeObjectFit=function(z){return z==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||z==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||z==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
ss.prototype.computeCardStyle=function(z){return z?z.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.vP.Object.defineProperties(ss.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var z,l;return this.collections&&((z=this.data)==null?void 0:(l=z.searchRefinementCardRendererStyle)==null?void 0:l.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ss.prototype,"data",void 0);_.e([_.X({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.w("design:type",Number)],ss.prototype,"objectFit",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.w("design:type",String)],ss.prototype,"cardStyle",void 0);
_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],ss.prototype,"roundContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ss.prototype,"collections",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ss.prototype,"isAlbumCard",null);_.e([_.B("data","collections","isAlbumCard"),_.w("design:type",Object),_.w("design:paramtypes",[])],ss.prototype,"collectionStack",null);
_.e([_.S({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],ss);
_.r(ss,"ytd-search-refinement-card-renderer",function(){if(Ytw!==void 0)return Ytw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ytw=z},{mode:1});var TFw;var rP=function(){var z=_.q.apply(this,arguments)||this;z.isRichGrid=!1;return z};
_.m(rP,_.q);_.e([_.X(),_.w("design:type",Object)],rP.prototype,"data",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],rP.prototype,"componentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],rP.prototype,"ytdReduxBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],rP.prototype,"isRichGrid",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],rP.prototype,"miniMode",void 0);
_.e([_.S({is:"ytd-game-details-renderer",disableElementRegistration:!0})],rP);
_.r(rP,"ytd-game-details-renderer",function(){if(TFw!==void 0)return TFw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return TFw=z},{mode:1});var can;var StI;var $J=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return z};
_.m($J,_.q);_.p=$J.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(z){var l=z||this.data;return l&&l.states&&l.currentStateId!=null?l.states.find(function(I){return I.stateId===l.currentStateId})||null:null};
_.p.currentStateRendererData=function(z){return(z=this.currentStateData(z))&&z.state&&z.state.buttonRenderer?z.state.buttonRenderer:null};
_.p.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())};
_.p.computeButtonIcon=function(z){z=this.currentStateRendererData(z);var l;return(z==null?0:(l=z.icon)==null?0:l.iconType)?z.icon.iconType.toLowerCase():null};
_.p.computeAccessibility=function(z){return(z=this.currentStateRendererData(z))&&z.accessibilityData?z.accessibilityData.accessibilityData||null:null};
_.p.computeButtonClass=function(z){var l=this.currentStateRendererData(z);if(!l)return"";z="";var I=l.style;I&&(z+=I.toLowerCase().replace(/_/g,"-")+" ");(l=l.size)&&(z+=l.toLowerCase().replace(/_/g,"-")+" ");return z.trim()};
_.p.computeServiceEndpoint=function(z){if(!z)return null;var l=z&&z.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",z);return l?l:I&&z.command?z.command:null};
_.p.computeBellMenuItemParams=function(z){var l;z=(l=_.k(z==null?void 0:z.command,_.yi))==null?void 0:l.commands;if(!z||z.length===0)return null;l=_.k(z[0],_.WT);var I,b;return(l==null?0:(I=l.popup)==null?0:(b=I.menuPopupRenderer)==null?0:b.items)?l.popup.menuPopupRenderer.items.map(function(v){return v.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(z){var l=z.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&l&&I&&I.includes(l)&&this.ytRenderButtonBehavior._setButtonIcon(z.icon.iconType.toLowerCase())};
_.p.onYtServiceRequestCompleted=function(z,l){(z=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",l))&&this.set("data",z)};
_.p.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.p.resetState=function(){this.set("data.currentStateId",3)};
_.p.onYtButtonTapHandler=function(){if(this.data){var z=this.currentStateRendererData(this.data);z&&this.ytRendererBehavior.logExplicitClick(z)}};
$J.prototype.onYtServiceRequestError=$J.prototype.onYtServiceRequestError;$J.prototype.onYtServiceRequestCompleted=$J.prototype.onYtServiceRequestCompleted;$J.prototype.stateChanged=$J.prototype.stateChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],$J.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(Vy.YtRenderButtonBehavior),_.w("design:type",Object)],$J.prototype,"ytRenderButtonBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$J.prototype,"data",void 0);_.e([_.YE("data","data.currentStateId"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$J.prototype,"stateChanged",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],$J.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$J.prototype,"onYtServiceRequestError",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],$J);
_.r($J,"ytd-subscription-notification-toggle-button-renderer",function(){if(StI!==void 0)return StI;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return StI=z},{mode:1});var dIu;var e5=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};z.tapHandler=function(){if(z.data){var l=z.currentStateRendererData();l&&z.ytRendererBehavior.logExplicitClick(l)}};
return z};
_.m(e5,_.q);_.p=e5.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(){var z=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(l){return l.stateId===z.data.currentStateId})||null:null};
_.p.currentStateRendererData=function(){var z=this.currentStateData();return z&&z.state&&z.state.buttonRenderer?z.state.buttonRenderer:null};
_.p.computeAccessibilityLabel=function(){var z,l,I;return(z=this.currentStateRendererData())==null?void 0:(l=z.accessibilityData)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label};
_.p.computeBellMenuItemParams=function(){var z,l,I=(l=_.k((z=this.data)==null?void 0:z.command,_.yi))==null?void 0:l.commands;if(!I||I.length===0)return null;z=_.k(I[0],_.WT);var b,v;return(z==null?0:(b=z.popup)==null?0:(v=b.menuPopupRenderer)==null?0:v.items)?z.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(z){var l=z.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&l&&I&&I.includes(l)&&(z==null||!z.isDisabled)){var b;((b=_.k(z.serviceEndpoint,_.CM))==null?void 0:b.signal)!=="CLIENT_SIGNAL"&&(this.icon=z.icon.iconType)}};
_.p.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.p.onYtServiceRequestCompleted=function(z,l){if(z=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",l))this.icon=void 0,this.set("data",z)};
_.p.onYtServiceRequestError=function(){this.icon=void 0};
_.vP.Object.defineProperties(e5.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var z=this.data,l=this.textLabel,I=this.hostElement,b=this.computeAccessibilityLabel(),v=this.tapHandler,M=this.isOverlay?"overlay":"mono",x=(z==null?0:z.disableButton)?"disabled":"active";l=l?_.$C(l):void 0;return{style:M,type:"tonal",state:x,size:"M",focused:!1,formattedButtonText:l,iconPosition:"leading-trailing",onTap:zD7(z,v,I),accessibilityLabel:b}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var z=this.currentStateRendererData(),l,I,b=(I=this.icon)!=null?I:z==null?void 0:(l=z.icon)==null?void 0:l.iconType;if(b)return _.Re(b)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.data)==null?void 0:(l=z.secondaryIcon)==null?void 0:l.iconType;if(I)return _.Re(I)}}});
e5.prototype.onYtServiceRequestError=e5.prototype.onYtServiceRequestError;e5.prototype.onYtServiceRequestCompleted=e5.prototype.onYtServiceRequestCompleted;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],e5.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],e5.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],e5.prototype,"textLabel",void 0);
_.e([_.X(),_.w("design:type",String)],e5.prototype,"icon",void 0);_.e([_.X(),_.w("design:type",Boolean)],e5.prototype,"isOverlay",void 0);_.e([_.B("data.*","textLabel"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"computedButtonShape",null);_.e([_.B("data.*","icon"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"computedIcon",null);_.e([_.B("computedIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"computedAnimateIcon",null);
_.e([_.B("data.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],e5.prototype,"computedSecondaryIcon",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],e5.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],e5.prototype,"onYtServiceRequestError",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],e5);
_.r(e5,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(dIu!==void 0)return dIu;var z=document.createElement("template");_.K(z,'\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 dIu=z},{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var ou0;_.uO(o3_,"yt-animated-action",{props:{backgroundLottieRef:_.mB,foregroundLottieRef:_.mB,wrapperClass:_.mB,disableAnimation:_.mB},unsafeExternallySettableAttributes:new Set(["key"])});var wP=function(){var z=_.q.apply(this,arguments)||this;z.animatedActionEnabled=_.C("web_animated_actions");z.foregroundLottieRef={};z.backgroundLottieRef={};z.forceIconOnly=!1;z.showTextWhileAnimating=!1;z.keyboardFocused=!1;z.isAnimating=!1;z.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return z};
_.m(wP,_.q);_.p=wP.prototype;_.p.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.p.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]]"}}}}}};
_.p.attached=function(){this.keyboardFocused=!1};
_.p.onYtServiceRequestSent=function(z,l){(this.get("endpoint.subscribeEndpoint",l)||this.get("endpoint.unsubscribeEndpoint",l))&&this.updateSubscriptionState(!this.subscribed)};
_.p.onYtServiceRequestCompleted=function(z,l){(z=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",l.data))&&this.bellButton&&(this.bellButton.data=z)};
_.p.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.R8(this.hostElement)};
_.p.onPlayerSubscribe=function(z){this.isCompactRed()||z!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.p.onPlayerUnsubscribe=function(z){this.isCompactRed()||z!==this.data.channelId||this.updateSubscriptionState(!1)};
_.p.handleUpdateSubscribeButtonAction=function(z){z=_.k(z,t7A);var l;z&&z.channelId===((l=this.data)==null?void 0:l.channelId)&&this.updateSubscriptionState(!!z.subscribed)};
_.p.computeButtonStyle=function(z){return this.get("style.styleType",z)||null};
_.p.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.p.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.p.updateSubscriptionState=function(z){if(z!==this.subscribed){this.set("data.subscribed",z);var l,I=(l=this.data)==null?void 0:l.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.cU("subscriptionStateEntity",I,{key:I,subscribed:z}));this.isCompactRed()||_.gC(this.hostElement,"yt-subscription-changed",z);z||(_.Gb(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!z),z&&this.hasBellButton&&this.startAnimation())}};
_.p.startAnimation=function(){var z=this;if(!this.isAnimating){var l=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var I;(I=this.backgroundLottieRef.lottieEl)==null||I.goToAndPlay(0);var b;(b=this.foregroundLottieRef.lottieEl)==null||b.goToAndPlay(0);_.ow.addJob(function(){z.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ow.addJob(function(){z.updateContainerToFitContent(!!z.subscribed,!0)},2,1500);
_.ow.addJob(function(){z.isAnimating=!1},2,l)}};
_.p.maybeAnimateBellIcon=function(){var z=_.y5(this.hostElement).querySelector("yt-animated-icon");if(z){var l;(l=z.animationRef.lottieEl)==null||l.goToAndPlay(0)}};
_.p.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.p.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.p.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var z;this.unsubscribedWidth=(z=this.subscribeButtonShape)==null?void 0:z.getBoundingClientRect().width}var l;this.subscribedWidth=(l=this.bellButton)==null?void 0:l.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.p.updateContainerToFitContent=function(z,l){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(z?(z=this.subscribedWidth,l=this.isAnimating&&!l,this.subscribedIconOnlyWidth===void 0||l||(z=this.subscribedIconOnlyWidth),this.hostElement.style.width=z+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.p.clearContainerSize=function(){this.hostElement.style.width=""};
_.p.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.p.maybeSetSubscribedButtonIconOnlyWidth=function(){var z=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var l;z.subscribedIconOnlyWidth=(l=z.bellButton)==null?void 0:l.getBoundingClientRect().width;requestAnimationFrame(function(){if(z.bellButton){var I;z.bellButton.textLabel=
(I=z.data)==null?void 0:I.subscribedButtonText}})})))};
_.vP.Object.defineProperties(wP.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 z;return(z=this.data)==null?void 0:z.subscribedButtonText}var l;return this.forceIconOnly?void 0:(l=this.data)==null?void 0:l.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var z,l,I=((z=this.data)==null?void 0:(l=z.timedAnimationData)==null?void 0:l.animationTiming)||[];return{uniqueId:"subscribe",timings:I,enabled:I.length>0&&!this.subscribed,experimentEnabled:I.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var z;return!this.subscribed&&((z=this.data)==null?void 0:z.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 z={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var l=z.renderer;var I=z.element;var b=z.subscribed;var v=z.commandController;var M=z.isOverlay;z=z.stopPropagation;var x=vuQ(l,b);M&&(x.style="overlay");M=Object;var g=M.assign,G;a:switch((G=l.style)==null?void 0:G.styleType){case "COMPACT_GRAY":case "COMPACT_RED":G={size:"S"};break a;default:G={size:"M"}}var u=bSQ(l,
b);var Z=(Z=b?l.subscribedButtonText:l.unsubscribedButtonText)?_.$C(Z):void 0;return g.call(M,{},x,G,{focused:!1,toggled:b,accessibilityLabel:u,formattedButtonText:Z,onTap:Il$(l,b,I,v,z)})}}}});
wP.prototype.onMouseDown=wP.prototype.onMouseDown;wP.prototype.onDataChanged=wP.prototype.onDataChanged;wP.prototype.observedSubscribed=wP.prototype.observedSubscribed;wP.prototype.onYtServiceRequestCompleted=wP.prototype.onYtServiceRequestCompleted;wP.prototype.onYtServiceRequestSent=wP.prototype.onYtServiceRequestSent;wP.prototype.maybeUpdateBellButtonText=wP.prototype.maybeUpdateBellButtonText;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],wP.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],wP.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],wP.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wP.prototype,"data",void 0);
_.e([_.X({selectorArgs:["data.subscribedEntityKey"],selector:va5}),_.w("design:type",Object)],wP.prototype,"subscriptionStateEntity",void 0);_.e([_.X({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.w("design:type",Boolean)],wP.prototype,"subscribed",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],wP.prototype,"branded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wP.prototype,"animatedActionEnabled",void 0);
_.e([_.X(),_.w("design:type",Object)],wP.prototype,"foregroundLottieRef",void 0);_.e([_.X(),_.w("design:type",Object)],wP.prototype,"backgroundLottieRef",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],wP.prototype,"overlayButton",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.w("design:type",Object)],wP.prototype,"buttonStyle",void 0);_.e([_.X(),_.w("design:type",Object)],wP.prototype,"forceIconOnly",void 0);
_.e([_.X(),_.w("design:type",Object)],wP.prototype,"showTextWhileAnimating",void 0);_.e([_.X({value:function(){return!!_.pG().resolve(_.MB(_.T$))&&_.C("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.w("design:type",Boolean)],wP.prototype,"useKeyboardFocused",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wP.prototype,"keyboardFocused",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wP.prototype,"isAnimating",void 0);_.e([_.B("data.notificationPreferenceButton.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"hasBellButton",null);
_.e([_.By("subscribedButtonText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wP.prototype,"maybeUpdateBellButtonText",null);_.e([_.B("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"subscribedButtonText",null);_.e([_.B("data.timedAnimationData.animationTiming","subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"smartimationSettings",null);
_.e([_.X({reflectToAttribute:!0}),_.B("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"subscribeButtonHidden",null);_.e([_.X({reflectToAttribute:!0}),_.B("subscribed","hasBellButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"subscribeButtonInvisible",null);
_.e([_.X({reflectToAttribute:!0}),_.B("subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"unsubscribeButtonHidden",null);_.e([_.qX("ytd-subscription-notification-toggle-button-renderer-next"),_.w("design:type",Object)],wP.prototype,"bellButton",void 0);_.e([_.qX("#subscribe-button-shape"),_.w("design:type",HTMLElement)],wP.prototype,"subscribeButtonShape",void 0);
_.e([_.B("overlayButton","subscribed","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],wP.prototype,"buttonShape",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],wP.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],wP.prototype,"onYtServiceRequestCompleted",null);
_.e([_.By("subscribed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wP.prototype,"observedSubscribed",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wP.prototype,"onDataChanged",null);_.e([_.tP("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],wP.prototype,"onMouseDown",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],wP);
_.r(wP,"ytd-subscribe-button-renderer",function(){if(ou0!==void 0)return ou0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ou0=z},{mode:1});var An=function(){var z=_.q.apply(this,arguments)||this;z.isRichGrid=!1;return z};
_.m(An,_.q);An.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],An.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],An.prototype,"isRichGrid",void 0);_.e([_.S({is:"ytd-game-card-renderer",disableElementRegistration:!0})],An);
_.r(An,"ytd-game-card-renderer",function(){if(can!==void 0)return can;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return can=z},{mode:1});var WD={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.C("defer_menus")&&!RRw?0:void 0,waitForSignal:"eocs"};var Pwu;var hD4;var ny=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return z};
_.m(ny,_.q);_.p=ny.prototype;_.p.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.p.onSeriesReminderStateEntityChange=function(){var z,l,I;((z=this.eventReminderStateEntity)==null?0:z.key)&&((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.cU("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.p.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.p.onYtServiceRequestError=function(){var z;this.updateReminderStateEntitiesFromButtonState((z=this.data)==null?void 0:z.currentState)};
_.p.handleUpdateUpcomingEventReminderButtonStateCommand=function(z){if(z=_.k(z,ETu)){var l,I=(l=this.data)==null?void 0:l.targetId;I&&z.targetId===I&&_.JP(this.updateReminderStateEntitiesFromButtonState.bind(this,z.state))}};
_.p.getButtonStateFromReminderState=function(){var z;if(((z=this.seriesReminderStateEntity)==null?void 0:z.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var l;if(((l=this.eventReminderStateEntity)==null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,b;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((b=this.eventReminderStateEntity)==
null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var v;return(v=this.data)==null?void 0:v.currentState};
_.p.updateReminderStateEntitiesFromButtonState=function(z){if(z){switch(z){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":z="UPCOMING_EVENT_REMINDER_STATE_NONE";var l="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":z="UPCOMING_EVENT_REMINDER_STATE_SINGLE";l="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":z="UPCOMING_EVENT_REMINDER_STATE_NONE";l="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.cU("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:z})));var b;((b=this.seriesReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.cU("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:l})))}};
_.vP.Object.defineProperties(ny.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var z=this.getButtonStateFromReminderState(),l,I;if(z&&((l=this.data)==null?0:(I=l.states)==null?0:I.length))for(l=_.D(this.data.states),I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;if(((b=_.k(I,uX_))==null?void 0:b.state)===z)return _.k(I,uX_)}}}});
ny.prototype.onYtServiceRequestError=ny.prototype.onYtServiceRequestError;ny.prototype.onYtServiceRequestCompleted=ny.prototype.onYtServiceRequestCompleted;ny.prototype.onSeriesReminderStateEntityChange=ny.prototype.onSeriesReminderStateEntityChange;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],ny.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ny.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:pj7}),_.w("design:type",Object)],ny.prototype,"eventReminderStateEntity",void 0);
_.e([_.X({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(z,l){return _.Cc(z.entities,"sportsSeriesReminderStateEntity",l)}}),
_.w("design:type",Object)],ny.prototype,"seriesReminderStateEntity",void 0);_.e([_.B("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],ny.prototype,"currentButtonStateRenderer",null);_.e([_.By("seriesReminderStateEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ny.prototype,"onSeriesReminderStateEntityChange",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ny.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ny.prototype,"onYtServiceRequestError",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],ny);
_.r(ny,"ytd-upcoming-event-reminder-button-renderer",function(){if(hD4!==void 0)return hD4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return hD4=z},{mode:1});var sdp;var Ly=function(){return _.q.apply(this,arguments)||this};
_.m(Ly,_.q);Ly.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.vP.Object.defineProperties(Ly.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(_.C("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ly.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Ly.prototype,"shelfDismissal",void 0);_.e([_.B("data.responseText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ly.prototype,"text",null);
_.e([_.B("data.responseText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ly.prototype,"textAriaLabel",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Ly);
_.r(Ly,"ytd-notification-multi-action-renderer",function(){if(sdp!==void 0)return sdp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sdp=z},{mode:1});var raM;var Us=function(){return _.q.apply(this,arguments)||this};
_.m(Us,_.q);Us.prototype.ready=function(){var z=this;_.Hy(this.hostElement).querySelector("#undo").addEventListener("tap",function(){z.onUndoTap()})};
Us.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Us.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Us);
_.r(Us,"ytd-notification-text-renderer",function(){if(raM!==void 0)return raM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return raM=z},{mode:1});var $II;var an=function(){var z=_.q.apply(this,arguments)||this;z.mouseOverDelayJobId=0;z.fadeInImageDelayJobId=0;z.startTimeMs=-1;z.loadingStartTimeMs=-1;z.loadingEndTimeMs=-1;z.hasVideoPreview=!1;return z};
_.m(an,_.q);_.p=an.prototype;_.p.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.p.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.p.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.p.showThumbnail=function(){var z=this;this.csn=_.sU();_.rC("fmth");_.ow.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.CK(_.ow,function(){z.loadingStartTimeMs=(0,_.Dr)();var l=_.Hy(z.hostElement).querySelector("#thumbnail");l.complete?z.displayMouseOverImage():l.addEventListener("load",_.KJ(z,z.displayMouseOverImage))},150):_.fJ(_.Hy(this.hostElement).querySelector("#play"),"show",!0)};
_.p.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.p.onTap=function(){this.removeVideoPreview()};
_.p.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var z=this.videoId,l=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,b=this.startTimeMs,v=this.hasVideoPreview,M=_.ch(this.trackingParams),x={isMovingThumbnail:v};v&&b>0&&(I>0&&(x.movingThumbnailLoadingDurationMs=Math.round(I)),x.durationHoveredMs=Math.round((0,_.Dr)()-b));z&&(x.videoId=z);_.zZ(l,M,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:x});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.p.removeVideoPreview=function(){_.ow.cancelJob(this.mouseOverDelayJobId);_.ow.cancelJob(this.fadeInImageDelayJobId);var z=_.Hy(this.hostElement).querySelector("#thumbnail");_.fJ(z,"fade-in",!1);z.removeEventListener("load",_.KJ(this,this.displayMouseOverImage));z=_.Hy(this.hostElement).querySelector("#play");_.fJ(z,"fade-in",!1);_.fJ(z,"show",!1)};
_.p.displayMouseOverImage=function(){var z=_.Hy(this.hostElement).querySelector("#thumbnail"),l=_.Hy(this.hostElement).querySelector("#play");this.isImageAvailable(z)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Dr)(),this.startTimeMs=(0,_.Dr)(),this.fadeInImageDelayJobId=_.CK(_.ow,function(){_.fJ(z,"fade-in",!0)},50)):_.fJ(l,"fade-in",!0)};
_.p.computeThumbnail=function(z,l){var I;z&&z.movingThumbnailDetails&&z.movingThumbnailDetails.thumbnails&&l?I=_.ZY(z.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=l?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.eA(I)};
_.p.isImageAvailable=function(z){return!(!z.src||z.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||z.naturalWidth===120)};
an.prototype.onTap=an.prototype.onTap;an.prototype.dataChanged=an.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],an.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],an.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],an.prototype,"csn",void 0);_.e([_.X(),_.w("design:type",Object)],an.prototype,"trackingParams",void 0);
_.e([_.X(),_.w("design:type",String)],an.prototype,"videoId",void 0);_.e([_.X(),_.w("design:type",Boolean)],an.prototype,"isAttachedAndDataSet",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],an.prototype,"dataChanged",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],an.prototype,"onTap",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],an);
_.r(an,"ytd-moving-thumbnail-renderer",function(){if($II!==void 0)return $II;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return $II=z},{mode:1});var eD_;_.NN=function(z){this.hostElement=z;this.eventSink=null;this.eventList=[]};
_.NN.prototype.shouldForward=function(){var z,l;return(l=(z=this.eventSink)==null?void 0:z.isConnected)!=null?l:document.body.contains(this.eventSink)};
_.NN.prototype.start=function(z,l){this.eventSink&&this.stop();for(var I=0;I<z.length;I++)this.hostElement.addEventListener(z[I],_.KJ(this,this.forwardEvent));var b;this.eventSink=(b=l.hostElement)!=null?b:l;this.eventList=z};
_.NN.prototype.stop=function(){for(var z=0;z<this.eventList.length;z++)this.hostElement.removeEventListener(this.eventList[z],_.KJ(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.NN.prototype.forwardEvent=function(z,l){this.shouldForward()&&(z.stopPropagation(),this.eventSink instanceof Element?_.gC(this.eventSink,z.type,l):_.PW(new _.qB("eventSink is not an element")))};_.VN={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.NN(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(z,l){this.forwarder_.start(z,l)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var j5=function(){return _.q.apply(this,arguments)||this};
_.m(j5,_.q);_.p=j5.prototype;_.p.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=_.sZ("HTML_DIR")==="rtl"?"right":"left"};
_.p.dataChanged=function(){this.popupOpen=!1};
_.p.computeAriaLabel=function(z){return _.k(z,WTA).label};
_.p.onTap=function(z){z.stopPropagation();z.preventDefault();this.data.command&&_.pG().resolve(_.DQ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.p.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.p.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
j5.prototype.onPopupClosed=j5.prototype.onPopupClosed;j5.prototype.onPopupOpened=j5.prototype.onPopupOpened;j5.prototype.onTap=j5.prototype.onTap;j5.prototype.dataChanged=j5.prototype.dataChanged;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],j5.prototype,"eventForwardingBehavior",void 0);_.e([_.t(_.jF),_.w("design:type",Object)],j5.prototype,"ironButtonState",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],j5.prototype,"componentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],j5.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:-1}),_.w("design:type",Number)],j5.prototype,"tabindex",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.w("design:type",Object)],j5.prototype,"ariaLabel",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],j5.prototype,"disableTooltips",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],j5.prototype,"popupOpen",void 0);
_.e([_.X(),_.w("design:type",Element)],j5.prototype,"eventSink",void 0);_.e([_.qX("#tooltip"),_.w("design:type",Object)],j5.prototype,"tooltip",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j5.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],j5.prototype,"onTap",null);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j5.prototype,"onPopupOpened",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],j5.prototype,"onPopupClosed",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],j5);
_.r(j5,"ytd-thumbnail-overlay-button-renderer",function(){if(eD_!==void 0)return eD_;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return eD_=z},{mode:1});var wvA;var Jn=function(){return _.q.apply(this,arguments)||this};
_.m(Jn,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jn.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Jn.prototype,"disableAnimation",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Jn.prototype,"rounded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Jn.prototype,"transparentBackground",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Jn.prototype,"noPadding",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Jn);
_.r(Jn,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(wvA!==void 0)return wvA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return wvA=z},{mode:1});var Aa0;var z2=function(){return _.q.apply(this,arguments)||this};
_.m(z2,_.q);z2.prototype.computeIconPosition=function(z){return this.get("iconPosition",z)||null};
z2.prototype.computeIconStyle=function(z){return this.get("iconStyle",z)||null};
z2.prototype.computeIsIconStyleFilled=function(z){if(!z)return!1;var l;return z.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((l=z.icon)==null?void 0:l.iconType)==="ERROR_BLACK"};
_.e([_.X(),_.w("design:type",Object)],z2.prototype,"data",void 0);_.e([_.X({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.w("design:type",Object)],z2.prototype,"iconPosition",void 0);_.e([_.X({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.w("design:type",Object)],z2.prototype,"iconStyle",void 0);_.e([_.X({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],z2.prototype,"iconStyleFilled",void 0);
_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],z2);
_.r(z2,"ytd-thumbnail-overlay-icon-renderer",function(){if(Aa0!==void 0)return Aa0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Aa0=z},{mode:1});var Wkn;var lP=function(){return _.q.apply(this,arguments)||this};
_.m(lP,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lP.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],lP);
_.r(lP,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Wkn!==void 0)return Wkn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Wkn=z},{mode:1});var nu4;var It=function(){var z=_.q.apply(this,arguments)||this;z.isPreviewLoading=!1;return z};
_.m(It,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],It.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],It.prototype,"isPreviewLoading",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],It);
_.r(It,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(nu4!==void 0)return nu4;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return nu4=z},{mode:1});var Lk_;var bP=function(){return _.q.apply(this,arguments)||this};
_.m(bP,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bP.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],bP);
_.r(bP,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Lk_!==void 0)return Lk_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Lk_=z},{mode:1});var UI_;var Mb=function(){var z=_.q.apply(this,arguments)||this;z.disableTooltips=!1;z.isLoading=!1;z.useExpandableTooltip=!1;z.toggled=!1;z.hovered=!1;z.mouseoverDelayJobId=0;z.toggleDelayJobId=0;z.expandAnimationDelayJobId=0;return z};
_.m(Mb,_.q);_.p=Mb.prototype;_.p.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");_.Hy(this.hostElement).querySelector("#tooltip").position=_.sZ("HTML_DIR")==="rtl"?"right":"left"};
_.p.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ow.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ow.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ow.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.p.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ow.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ow.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ow.cancelJob(this.expandAnimationDelayJobId)};
_.p.computeIcon=function(z,l,I){return(z=I?l:z)&&z.iconType?_.Re(z.iconType):void 0};
_.p.computeAriaLabel=function(z,l,I){return _.k(I?l:z,WTA).label};
_.p.computeTooltip=function(z,l,I){return I?l:z};
_.p.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.p.computeIconOnHover=function(z,l){if((z==null?0:z.iconType)&&!l)return _.Re(z.iconType)};
_.p.onTap=function(z){var l=this;z.stopPropagation();z.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(z=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(z),this.useExpandableTooltip&&(this.toggleDelayJobId=_.CK(_.ow,function(){l.hovered=!1;l.data&&!l.data.toggledServiceEndpoint&&(l.expandAnimationDelayJobId=_.CK(_.ow,function(){l.set("data.isToggled",
!1)},200))},2E3))};
_.p.onMouseenter=function(){var z=this;this.mouseoverDelayJobId=_.CK(_.ow,function(){z.hovered=!0},300)};
_.p.onMouseleave=function(){_.ow.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.p.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.p.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.p.onServiceRequestCompleted=function(z,l){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(l)||this.set("data.isToggled",!this.data.isToggled)};
_.p.serviceRequestWasSuccessful=function(z){return _.k(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.M1)?z.data.status==="STATUS_SUCCEEDED":!0};
Mb.prototype.onServiceRequestCompleted=Mb.prototype.onServiceRequestCompleted;Mb.prototype.onPopupClosed=Mb.prototype.onPopupClosed;Mb.prototype.onPopupOpened=Mb.prototype.onPopupOpened;Mb.prototype.onMouseleave=Mb.prototype.onMouseleave;Mb.prototype.dataChanged=Mb.prototype.dataChanged;_.e([_.t(_.jF),_.w("design:type",Object)],Mb.prototype,"ironButtonState",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Mb.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],Mb.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Mb.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.w("design:type",Object)],Mb.prototype,"ariaLabel",void 0);_.e([_.X(),_.w("design:type",Object)],Mb.prototype,"disableTooltips",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Mb.prototype,"popupOpen",void 0);_.e([_.X(),_.w("design:type",Object)],Mb.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Element)],Mb.prototype,"eventSink",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Mb.prototype,"useExpandableTooltip",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.w("design:type",Object)],Mb.prototype,"toggled",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Mb.prototype,"hovered",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.w("design:type",Object)],Mb.prototype,"iconOnHover",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mb.prototype,"dataChanged",null);
_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mb.prototype,"onMouseleave",null);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mb.prototype,"onPopupOpened",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Mb.prototype,"onPopupClosed",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],Mb.prototype,"onServiceRequestCompleted",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Mb);
_.r(Mb,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(UI_!==void 0)return UI_;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return UI_=z},{mode:_.yP("kevlar_poly_si_batch_j053")?1:2});var alu;var VLI=_.P(function(z){var l=z.data;var I=z.thumbnailSize;var b=function(){return l().enableSegmentView};
return _.N("yt-thumbnail-overlay-progress-bar-view-model",{class:_.m9("ytThumbnailOverlayProgressBarHost",function(){return MLk(I==null?void 0:I())})},_.N(_.E,{cond:b,
then:function(){return _.N("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.N("div",{class:_.sB("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+l().startPercent+"%"}}),_.N("div",{class:_.sB("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+l().segmentDurationPercent+"%"}},_.N("div",{class:_.sB("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.N("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.N("div",null," ",function(){return l().segmentLabel})),_.N("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.N("div",{class:_.sB("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.N(_.E,{cond:function(){return!b()&&l().startPercent},
then:function(){var v={};return _.N("div",{class:_.sB("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(v.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.C("web_enable_modern_progress_bar_overlay"),v))},_.N("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+l().startPercent+"%"}}))}}))},"X");
VLI.idomCompat=!0;var jdu=_.P(function(z){var l=_.KY(),I=_.nK(function(v){var M,x,g;a:{var G=(M=z.data())==null?void 0:M.animationActivationTargetId;M=((x=z.data())==null?void 0:x.animationActivationEntityKey)||"";x=(g=z.data())==null?void 0:g.animationActivationEntitySelectorType;if(M&&G)switch(x){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":v=_.Cc(v.entities,"playerStateEntity",M);g=_.pG().resolve(_.MB(_.Af));G=!!(v&&v.videoId===G&&(g==null?0:g.isMiniplayerActive()));G={activated:G,playAnimation:G&&
v.playerState==="PLAYER_STATE_PLAYING"};break a}G=void 0}return G});
_.Te(function(){var v;if((v=I())==null?0:v.activated){var M;if((M=I())==null?0:M.playAnimation){var x;(x=l.lottieEl)==null||x.goToAndPlay(0)}else{var g;(g=l.lottieEl)==null||g.goToAndStop(0)}}},"DbQiXd");
var b=function(){var v,M=!((v=I())==null||!v.activated);if(z.data()){v=z.data();var x=void 0;v.icon&&(x=_.sgY(v.icon),x=np5(x));var g=void 0,G;if((G=v.backgroundColor)==null?0:G.lightTheme){var u;g={backgroundColor:VX((u=v.backgroundColor)==null?void 0:u.lightTheme,"0.8")}}if(v.text||x||M){if(M&&v.lottieData&&l){u=v.lottieData;var Z,H,y;G={animationConfig:{name:u.url,path:u.url,autoplay:(Z=u.settings)==null?void 0:Z.autoplay,loop:(y=(H=u.settings)==null?void 0:H.loop)!=null?y:!0},animationRef:l}}else G=
void 0;if(M)Z=17;else b:switch(v.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":Z=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":Z=19;break b;default:Z=17}M={type:Z,text:M&&v.animatedText?v.animatedText:v.text,icon:x,customColors:g,animation:G}}else M=void 0}else M=void 0;return M};
return _.N("yt-thumbnail-badge-view-model",{class:_.m9("ytThumbnailBadgeViewModelHost",z.class)},_.N(_.E,{cond:b,then:function(){return _.N(_.Nm,{data:function(){return b()}})}}))},"Y");var Jap=_.P(function(z){var l={},I={};return _.N("yt-thumbnail-bottom-overlay-view-model",{class:_.m9("ytThumbnailBottomOverlayViewModelHost",(l.ytThumbnailBottomOverlayViewModelHostBackground=function(){return z.data().enableGradientBackground},l))},_.N(_.TS,{data:function(){return z.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(b){return _.N(VLI,{data:b.data,
thumbnailSize:z.thumbnailSize})}}),_.N("div",{class:_.m9("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var b;
return pvp((b=z.thumbnailSize)==null?void 0:b.call(z))},(I.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var b;
return(b=z.isClip)==null?void 0:b.call(z)},I.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var b;
return!_.C("web_enable_modern_progress_bar_overlay")&&((b=z.thumbnailSize)==null?void 0:b.call(z))==="small"},I))},_.N(_.TS,{data:function(){return z.data().badge}},{thumbnailBadgeViewModel:function(b){return _.N(jdu,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.N(_.TS,{data:function(){return z.data().badges}},{thumbnailBadgeViewModel:function(b){return _.N(jdu,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
Jap.idomCompat=!0;_.uO(Jap,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.GH,thumbnailSize:_.GH,isClip:_.GH}});var HS1={calledOnce:!1,state:"visible"},ya$={calledOnce:!1,state:"hidden"};var p5=_.P(function(z){var l=z.data;var I=z.className;z=z.alwaysShow;var b=_.OSY(),v={};return _.N("thumbnail-hover-overlay-view-model",{el:_.xl(_.AR(function(){return l().rendererContext})),
class:_.m9("ytThumbnailHoverOverlayViewModelHost",I,(v.ytThumbnailHoverOverlayViewModelHostForceHover=z,v)),"aria-label":function(){var M;return(M=_.k(l().rendererContext,_.YM))==null?void 0:M.label},
role:function(){return _.e9(l().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.e9(l().rendererContext)!==void 0?0:void 0},
"on:keypress":b},_.N("div",{class:_.m9("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(l().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.N(_.E,{cond:function(){return l().icon},
then:function(M){return _.N(_.pK,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.N(_.E,{cond:function(){return l().text},
then:function(M){return _.N(_.Rf,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
p5.idomCompat=!0;var z$A=_.P(function(z){var l=z.data;return _.N(_.TS,{data:function(){return l==null?void 0:l().overlays}},{thumbnailHoverOverlayViewModel:p5})},"aa");
z$A.idomCompat=!0;var lmM={};var Imz=_.P(function(z){var l=z.data;var I=z.image;var b=z.state;var v=z.iconType;var M=z.overlays;var x=z.isOverlay;var g=_.z1("div");z=_.D(_.Z_(!0,void 0,"AA4e7b"));var G=z.next().value,u=z.next().value,Z=function(){return!!l().onTap},H=_.Df(v,"LIVE");
_.Te(function(){var f=l();requestAnimationFrame(function(){if(g.value===null)var R=!0;else{var F=g.value;R=f.badgeText;var Y=ktx(f.size);R in lmM?F=lmM[R]:(F=F.clientWidth,lmM[R]=F);(R=F>Y)?g.value.style.display="none":g.value.style.visibility="visible"}u(R)})},"vNdN8b");
var y=function(){var f={};return f["yt-spec-avatar-shape__image"]=!0,f["yt-spec-avatar-shape__image--ads-app"]=l().type===1,f["yt-spec-avatar-shape__image--square"]=l().type===2,f};
return _.N("yt-avatar-shape",null,_.N("div",{el:_.xl(mIk(Z,{keydown:function(f){if(f.key==="Enter"){var R;(R=f.currentTarget)==null||R.click()}},
click:function(f){var R,F;return void((F=(R=l()).onTap)==null?void 0:F.call(R,f))}})),
class:function(){var f={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},R=l();f=(f[R.clusterLayoutConfig?BFu(R.clusterLayoutConfig):XvQ(R.size)]=!0,f["yt-spec-avatar-shape__button--tappable"]=Z(),f);(R=l().avatarButtonCustomClassName)&&(f[R]=!0);return _.sB(f)},
"aria-label":function(){return Z()?l().accessibilityText:""},
role:function(){return Z()?"button":void 0},
tabindex:function(){return Z()?0:void 0}},_.N("div",{class:function(){var f,R=l(),F=b==null?void 0:b(),Y=x==null?void 0:x(),c=!((f=R.decorations)==null||!f.includes(2)||R.size!=="medium"&&R.size!=="large"),d=R.size==="tiny"||R.size==="extra-small",V,A,W,L,lH={};
f=(lH["yt-spec-avatar-shape--live-ring"]=!!(((V=R.decorations)==null?0:V.includes(0))&&iSG(R.size)),lH["yt-spec-avatar-shape--stories-watched"]=c&&!(F==null||!F.storiesWatched),lH["yt-spec-avatar-shape--stories-unwatched"]=c&&!(F==null?0:F.storiesWatched),lH["yt-spec-avatar-shape--background-border"]=Fk$(R.decorations)&&!d,lH["yt-spec-avatar-shape--background-border-thin"]=Fk$(R.decorations)&&d,lH["yt-spec-avatar-shape__on-select-border"]=!((A=R.decorations)==null||!A.includes(4)),lH["yt-spec-avatar-shape__white-border"]=
!((W=R.decorations)==null||!W.includes(5)),lH["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((L=R.decorations)==null?0:L.includes(5))&&d),lH["yt-spec-avatar-shape--is-overlay"]=!!Y,lH);return _.sB(f)},
style:function(){a:{var f=l().clusterLayoutConfig;if(f){b:{var R=f.numAvatarsInCluster;var F=f.avatarIndex;if(F!==R-1){switch(f.clusterSize){case "small":f="32";break;case "medium":f="36";break;case "40":f="40";break;default:R=void 0;break b}R="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+f+"x"+f+"_avatars_"+R+"_index_"+F+".svg"}else R=void 0}if(R){R=_.XV({"-webkit-mask-image":"url("+R+")","mask-image":"url("+R+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}R=void 0}return R}},_.N("div",{class:function(){var f={};
var R=l();f=(f[R.clusterLayoutConfig?KkG(R.clusterLayoutConfig):tLH(R.size)]=!0,f["yt-spec-avatar-shape--no-margin"]=Fk$(l().decorations),f);return _.sB(f)}},_.N(_.pK,{data:I,
alt:function(){return!Z()&&l().accessibilityText?l().accessibilityText:""},
targetWidth:function(){return qtk(l().size)},
targetHeight:function(){return qtk(l().size)},
className:function(){return _.sB(y())}}),_.N(_.E,{cond:function(){var f;
return((f=l().decorations)==null?void 0:f.includes(0))&&iSG(l().size)},
then:function(){return _.N("div",{class:function(){var f={};f=(f["yt-spec-avatar-shape__live-badge"]=!0,f["yt-spec-avatar-shape__live-badge--badge-small"]=l().size==="small",f["yt-spec-avatar-shape__live-badge--badge-medium"]=l().size==="medium"||l().size==="48",f["yt-spec-avatar-shape__live-badge--badge-large"]=l().size==="large",f["yt-spec-avatar-shape__live-badge--badge-extra-large"]=l().size==="extra-large"||l().size==="extra-extra-large"||l().size==="giant",f);return _.sB(f)}},_.N(_.E,{cond:function(){return l().badgeText},
then:function(f){return _.N("div",{class:"yt-spec-avatar-shape__badge-text",el:g},f)}}),_.N(_.E,{cond:G,
then:function(){return _.N("div",{class:"yt-spec-avatar-shape__badge-icon"},_.N(_.qt,{icon:H,size:function(){a:switch(l().size){case "extra-large":var f=16;break a;default:f=13}return f}}))}}))}}),_.N(_.E,{cond:function(){var f,R;
return((f=l().decorations)==null?void 0:f.includes(1))||((R=l().decorations)==null?void 0:R.includes(0))&&!iSG(l().size)},
then:function(){return _.N("div",{class:function(){var f=l(),R,F,Y={};var c=(Y["yt-spec-avatar-shape__live-dot"]=!((R=f.decorations)==null||!R.includes(0)||iSG(f.size)),Y["yt-spec-avatar-shape__new-content"]=!((F=f.decorations)==null||!F.includes(1)),Y);return _.sB(c)}})}}),_.N(_.E,{cond:function(){return!!M},
then:function(){return _.N("div",{class:function(){var f={};f=Object.assign((f["yt-spec-avatar-shape__image-overlays"]=!0,f),y());return _.sB(f)}},M==null?void 0:M())}})))))},"ba");
Imz.idomCompat={callbacks:{overlays:!0}};_.Dz=_.P(function(z){function l(){I().endpoint&&_.ae(I().endpoint)}
var I=z.data;var b=z.decorations;var v=z.avatarButtonCustomClassName;var M=z.isOverlay;var x=z.clusterLayoutConfig;return _.N("avatar-view-model",null,_.N(_.E,{cond:function(){return I().image},
then:function(g){return _.N(Imz,{data:function(){return Ytf({data:I(),onTap:I().endpoint?l:void 0,decorations:b==null?void 0:b(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:v==null?void 0:v(),clusterLayoutConfig:x==null?void 0:x()})},
image:g,iconType:"RADAR_LIVE",overlays:function(){return _.N(z$A,{data:I})},
isOverlay:M})}}))},"ca");
_.Dz.idomCompat=!0;_.xQ=_.P(function(z){var l=z.data;z=z.className;var I=_.z1("yt-decorated-avatar-view-model"),b=function(){return _.k(l().avatar,_.WU)},v=_.kz(function(){var M,x=l(),g=b(),G=_.e9(l().rendererContext),u=(M=I.value)!=null?M:void 0,Z;
if(g){u={data:x,avatar:g,onTap:G,element:u};M=u.data;x=u.avatar;g=u.onTap;G=u.element;u=u.commandController;g=g?dIH(g,G,u):void 0;G=[];M.liveData&&G.push(0);var H;u=(H=M.liveData)==null?void 0:H.liveBadgeText;H=(Z=_.k(M.rendererContext,_.YM))==null?void 0:Z.label;Z=Ytf({data:x,onTap:g,decorations:G,badgeText:u,accessibilityText:H?H:M.a11yLabel})}else Z={size:"medium"};return Z},void 0,"c00kWd");
return _.N("yt-decorated-avatar-view-model",{class:_.m9("ytDecoratedAvatarViewModelHost",z),el:I},_.N(_.E,{cond:function(){var M;return(M=b())==null?void 0:M.image},
then:function(M){return _.N(Imz,{data:v,image:M,iconType:"RADAR_LIVE",overlays:function(){return _.N(z$A,{data:b})}})}}))},"da");
_.xQ.idomCompat=!0;_.Oq=_.P(function(z){var l=function(){var g;return Object.assign({},z.data(),(g=z.overrides)==null?void 0:g.call(z))},I=function(){return _.w5(l().rendererContext)},b=function(){var g=l().avatars,G,u;
return(u=(G=(g==null?0:g[0])?_.k(g[0],_.WU):void 0)==null?void 0:G.avatarImageSize)!=null?u:"AVATAR_SIZE_UNKNOWN"},v=function(){return StQ(l())},M=function(){if(l().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var g=void 0;
else if((g=z.decorations)==null?0:g.call(z))g=z.decorations();else{g=l();var G=0;g.avatars&&(G+=g.avatars.length);g.decoratedText&&(G+=1);g=G>1?[3]:[]}return g},x={};
return _.N("yt-avatar-stack-view-model",{el:_.xl(_.AR(function(){return l().rendererContext})),
class:_.m9("yt-avatar-stack-view-model",z.className,(x["yt-avatar-stack-view-model--tappable"]=I,x["yt-avatar-stack-view-model--is-overlay"]=z.isOverlay,x["yt-avatar-stack-view-model--medium-text"]=z.useMediumText,x)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var g,G;return(G=(g=_.k(l().rendererContext,_.YM))==null?void 0:g.label)!=null?G:""}},_.N(_.E,{cond:function(){var g;
return l().avatars&&!((g=z.hideAvatar)==null?0:g.call(z))},
then:function(){return _.N("div",{class:"yt-avatar-stack-view-model__avatars"},_.N(_.E,{cond:function(){return l().decoratedText},
then:function(g){var G={};return _.N("div",{class:_.m9("yt-avatar-stack-view-model__text-container",(G["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return b()==="AVATAR_SIZE_XXS"||b()==="AVATAR_SIZE_XS"},G["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var u;
return((u=z.isOverlay)==null?void 0:u.call(z))&&(b()==="AVATAR_SIZE_XXS"||b()==="AVATAR_SIZE_XS")},G)),
style:_.XV({width:function(){return v().avatarSizeInPx+"px"},
height:function(){return v().avatarSizeInPx+"px"}})},_.N(_.Rf,{text:g,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.N("div",{style:function(){return _.XV(v().avatarStackStyle)()},
class:function(){return v().avatarStackClass}},_.N(_.TS,{data:function(){return v().avatars.reverse()}},{avatarViewModel:function(g,G){return _.N("div",{style:function(){var u,Z;
return _.XV((Z=(u=v()).avatarStyle)==null?void 0:Z.call(u,G()))()},
class:function(){return v().avatarClass}},_.N(_.Dz,{data:g.data,
decorations:M,avatarButtonCustomClassName:function(){return v().avatarButtonCustomClassName},
isOverlay:z.isOverlay,clusterLayoutConfig:function(){var u,Z;return(Z=(u=v()).clusterLayoutConfig)==null?void 0:Z.call(u,G())}}))},
decoratedAvatarViewModel:function(g,G){return _.N("div",{style:function(){var u,Z;return _.XV((Z=(u=v()).avatarStyle)==null?void 0:Z.call(u,G()))()},
class:function(){return v().avatarClass}},_.N(_.xQ,{data:g.data}))}})))}}),_.N(_.E,{cond:function(){return l().text},
then:function(g){return _.N(_.Rf,{text:g,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.Oq.idomCompat=!0;_.uO(_.P(function(z){var l=z.data;var I=z.thumbnailSize;return _.N("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.N("div",{class:_.m9("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return ou5(I==null?void 0:I())})},_.N(_.TS,{data:function(){return l().avatarStack}},{avatarStackViewModel:function(b){return _.N(_.Oq,{data:b.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.mB,
thumbnailSize:_.mB}});var bBu=_.P(function(z){z=_.xC(z,{hidden:!1});var l=z.data;return _.N("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:z.hidden},_.N(_.Rf,{text:function(){return l().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.N(_.E,{cond:function(){return l().subtitle},
then:function(){return _.N(_.Rf,{text:function(){return l().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
bBu.idomCompat=!0;_.uO(bBu,"yt-thumbnail-overlay-title-view-model",{props:{data:_.mB,hidden:_.mB}});var v_4=_.P(function(z){z=_.xC(z,{isClip:!1});var l=z.data,I=z.thumbnailSize,b={};return _.N("yt-thumbnail-overlay-badge-view-model",{class:_.m9("yt-thumbnail-overlay-badge-view-model",function(){a:switch(l().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var v="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:v="yt-thumbnail-overlay-badge-view-model--bottom-end"}return v},function(){return PwH(I==null?void 0:I())},(b["yt-thumbnail-overlay-badge-view-model--clip"]=z.isClip,
b))},_.N(_.TS,{data:function(){return l().thumbnailBadges}},{thumbnailBadgeViewModel:function(v){return _.N(jdu,{data:v.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"ha");
v_4.idomCompat=!0;_.uO(v_4,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.mB,thumbnailSize:_.mB,isClip:_.mB}});var MJz=_.P(function(z){var l=z.data;z=z.hidden;var I=_.kz(function(){return l().indicatorCount||0},void 0,"AbKnMc"),b={};
return _.N("yt-page-indicator-view-model",{class:_.m9("ytPageIndicatorViewModelHost",(b.ytPageIndicatorViewModelIndicatorHidden=function(){return!l().indicatorCount},b)),
hidden:z},_.N(_.qy,{each:function(){return Array(I())}},function(v,M){var x={};
return _.N("div",{class:_.m9("ytPageIndicatorViewModelIndicator",(x.ytPageIndicatorViewModelIndicatorSelected=function(){return l().selectedIndex===M()},x))})}))},"ia");
MJz.idomCompat=!0;_.uO(MJz,"yt-page-indicator-view-model",{props:{data:_.mB,hidden:_.mB}});var gA=function(){var z=_.q.apply(this,arguments)||this;z.eventSink=function(){return z};
z.disableInteraction=!1;z.noRoundedCorners=!1;z.isPreviewLoading=!1;z.isOriginalAspectRatio=!1;z.computedObjectFit=!1;z.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return z};
_.m(gA,_.q);_.p=gA.prototype;
_.p.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:_.C("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"}}};
_.p.onImageLoaded=function(){this.loaded=!0};
_.p.onImageUnloaded=function(){this.loaded=!1};
_.p.computeRichThumbnail=function(z,l,I,b){if(z&&l&&!b&&!_.C("disable_moving_thumbs_handling")&&!I)return l};
_.p.computeImageWidth=function(z,l){return l||9999};
_.p.computeIsOriginalAspectRatio=function(z){return z};
_.p.computeIsLive=function(z){if(z==null?0:z.badges)for(var l=0;l<z.badges.length;l++){var I=z.badges[l];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(z==null?0:z.thumbnailOverlays)for(l=0;l<z.thumbnailOverlays.length;l++)if(I=z.thumbnailOverlays[l],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.p.computeObjectFit=function(z,l){return l||(z?"CONTAIN":"")};
_.p.computeNavigationEndpoint=function(z,l,I){return z?l:I};
_.p.computeHasClip=function(z){z=_.D(z||[]);for(var l=z.next();!l.done;l=z.next())if(l.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.p.computeOverlayColor=function(z){var l;return(z==null?0:(l=z.darkColorPalette)==null?0:l.section2Color)?z.darkColorPalette.section2Color:z==null?void 0:z.sampledThumbnailColor};
_.vP.Object.defineProperties(gA.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Gd7(this.width)}}});
gA.prototype.onImageUnloaded=gA.prototype.onImageUnloaded;gA.prototype.onImageLoaded=gA.prototype.onImageLoaded;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(oD_),_.w("design:type",Object)],gA.prototype,"ytdThumbnailBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],gA.prototype,"componentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gA.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],gA.prototype,"circular",void 0);
_.e([_.X({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.w("design:type",Object)],gA.prototype,"richThumbnail",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.w("design:type",Boolean)],gA.prototype,"hasClip",void 0);_.e([_.X(),_.w("design:type",Object)],gA.prototype,"eventSink",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],gA.prototype,"queued",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],gA.prototype,"richGridThumbnail",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],gA.prototype,"useExpandableTooltip",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],gA.prototype,"useUntranslatedNavigationEndpoint",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gA.prototype,"disableInteraction",void 0);
_.e([_.X({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.w("design:type",Object)],gA.prototype,"computedNavigationEndpoint",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],gA.prototype,"nowPlayingEqualizerOnly",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],gA.prototype,"hidePlaybackStatus",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],gA.prototype,"objectFit",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gA.prototype,"noRoundedCorners",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],gA.prototype,"watchFeedThumbnail",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gA.prototype,"isPreviewLoading",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.w("design:type",Object)],gA.prototype,"isOriginalAspectRatio",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.w("design:type",Object)],gA.prototype,"computedObjectFit",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.w("design:type",Boolean)],gA.prototype,"isLiveVideo",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],gA.prototype,"loaded",void 0);_.e([_.X({computed:"computeOverlayColor(data.thumbnail)"}),_.w("design:type",Object)],gA.prototype,"overlayColor",void 0);_.e([_.X({selector:_.gT1}),_.w("design:type",Boolean)],gA.prototype,"inlinePreviewIsEnabled",void 0);_.e([_.X(),_.w("design:type",Number)],gA.prototype,"width",void 0);
_.e([_.B("inlinePreviewIsEnabled"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gA.prototype,"isPreviewDisabled",null);_.e([_.B("width"),_.w("design:type",String),_.w("design:paramtypes",[])],gA.prototype,"thumbnailSize",null);_.e([_.tP("image-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gA.prototype,"onImageLoaded",null);
_.e([_.tP("image-unloaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gA.prototype,"onImageUnloaded",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-thumbnail"})],gA);
var pOz=_.Hh()(gA,"ytd-thumbnail",function(){if(alu===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);alu=z}z=alu;return z},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var rax=function(z){var l=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14919_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14919_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){DJj(l,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var b,v;((b=document.getElementsByTagName("ytd-video-preview"))==null?0:(v=b.item(0))==null?0:v.contains(I))||(l.terminateVideoPreview(),G2(l))};
this.onThumbnailMouseDownFn=function(){l.terminateVideoPreview();G2(l)};
this.onTouchStart=function(){l.JSC$14919_touched=!0};
this.mediaRenderer=z.mediaRenderer;this.thumbnailElement=z.thumbnailElement;this.lockupElement=z.lockupElement;this.videoPreviewOptsInput=z.videoPreviewOpts;xJ_(this);Nb(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)):
_.PW(Error("Ih")):_.PW(Error("Jh")):OBI(this)},vJ=function(z){OBI(z);
var l;(l=z.lockupElement)==null||l.removeEventListener("mouseenter",z.onMouseMoveFn);var I;(I=z.lockupElement)==null||I.removeEventListener("mouseleave",z.onLockupMouseLeaveFn);var b;(b=z.lockupElement)==null||b.removeEventListener("touchstart",z.onTouchStart);var v;(v=z.thumbnailElement)==null||v.removeEventListener("mousedown",z.onThumbnailMouseDownFn);G2(z)},xJ_=function(z){z.inlinePreviewIsEnabledForUser=_.vF().getState().ui.inlinePreviewIsEnabled;
z.unsubscribeFromInlinePreviewIsEnabled=_.Wf(_.vF(),_.gT1,function(l){(z.inlinePreviewIsEnabledForUser=l)||G2(z)});
z.JSC$14919_unsubscribeFromInlinePreviewIsActive=_.Wf(_.vF(),_.OqH,function(l){(z.inlinePreviewIsActive=l)||G2(z)})},OBI=function(z){z.unsubscribeFromInlinePreviewIsEnabled();
z.unsubscribeFromInlinePreviewIsEnabled=function(){};
z.JSC$14919_unsubscribeFromInlinePreviewIsActive();z.JSC$14919_unsubscribeFromInlinePreviewIsActive=function(){}},DJj=function(z,l){l.buttons>0||(l=_.OI("kevlar_lockup_hover_delay",-1),z.JSC$14919_touched&&l>=0?(_.ow.cancelJob(z.videoPreviewJobId),z.videoPreviewJobId=_.CK(_.ow,function(){g_A(z)},l),z.JSC$14919_touched=!1):g_A(z))},tkS=function(z){z.videoPreviewJobId=_.CK(_.ow,function(){return _.O(function(l){return l.yield(G7M(z,{isAutoplay:!0}),0)})})},g_A=function(z){!z.previewTriggered&&Nb(z)&&
(z.inlinePreviewIsActive&&z.terminateVideoPreview(),z.previewTriggered=!0,z.mediaRenderer.isInlinePreviewTriggered=!0,_.ow.cancelJob(z.videoPreviewJobId),z.videoPreviewJobId=_.CK(_.ow,function(){return _.O(function(l){return l.yield(G7M(z),0)})}))},G7M=function(z,l){l=l===void 0?{}:l;
var I=l.isAutoplay===void 0?!1:l.isAutoplay;var b,v,M,x;return _.O(function(g){if(g.nextAddress==1){if(!Nb(z))return g.return();b=z.getVideoPreviewOpts();if(!b)return g.return();I&&(b.isAutoplay=!0);return(M=(v=_.EK(z.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&v[0])?g.yield(v[0],3):g.jumpTo(2)}g.nextAddress!=2&&(M=g.yieldResult===1);if(M){var G=(x=z.mediaRenderer)==null?void 0:x.data;G&&(sdG(G)?delete G.inlinePlayerData:"inlinePlaybackEndpoint"in G&&delete G.inlinePlaybackEndpoint)}_.qe(g)})};
rax.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var z,l;if((l=(z=this.videoPreviewOptsInput)==null?void 0:z.videoPreviewData)!=null)z=l;else if(z=this.mediaRenderer.data)if(sdG(z))z={inlinePlaybackEndpoint:_.Wh(z.inlinePlayerData.onVisible),navigationEndpoint:_.Wh(z.onTap),thumbnail:"image"in z?z.image:z.thumbnail,thumbnailOverlays:void 0,accessibilityText:hDS(z)};else if("multipleInlinePlaybackEndpoint"in z){var I=_.k(_.k(z.multipleInlinePlaybackEndpoint,MGA),pG4);if(I!=
null&&I.playerDescriptors){l=[];I=_.D(I.playerDescriptors);for(var b=I.next();!b.done;b=I.next())b=b.value,l.push({inlinePlaybackEndpoint:b.inlinePlaybackEndpoint,navigationEndpoint:b.navigationEndpoint,thumbnail:b.thumbnail,thumbnailOverlays:b.thumbnailOverlays,accessibilityText:hDS(z)});z=l}else z=void 0}else z={inlinePlaybackEndpoint:z.inlinePlaybackEndpoint,navigationEndpoint:z.navigationEndpoint,thumbnail:z.thumbnail,thumbnailOverlays:z.thumbnailOverlays,accessibilityText:hDS(z)};else z=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:z,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Nb=function(z){var l;if(l=z.inlinePreviewIsEnabledForUser)l=(z=z.mediaRenderer.data)?"inlinePlaybackEndpoint"in z&&z.inlinePlaybackEndpoint||sdG(z)&&z.inlinePlayerData||"multipleInlinePlaybackEndpoint"in z&&z.multipleInlinePlaybackEndpoint?!0:!1:!1;return l};
rax.prototype.terminateVideoPreview=function(){_.Gb(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var G2=function(z){_.ow.cancelJob(z.videoPreviewJobId);z.inlinePreviewIsActive=!1;z.previewTriggered=!1;z.mediaRenderer.isInlinePreviewTriggered=!1};var NMM=_.zs(["#"]),Eq=function(){var z=_.q.apply(this,arguments)||this;z.isDisabled=!1;return z};
_.m(Eq,_.q);_.p=Eq.prototype;_.p.configureRendererStamper=function(){return{"data.menu":WD,"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"}}}};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.getMetadata=function(z){var l=[];if(z.metadataText&&Object.keys(z.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(z.metadataText);z.upcomingEventData&&z.upcomingEventData.upcomingEventText&&(I=_.PU(I,Number(z.upcomingEventData.startTime)));l.push(I)}else z.shortViewCountText&&l.push(this.ytRendererBehavior.getSimpleString(z.shortViewCountText)),z.publishedTimeText&&l.push(this.ytRendererBehavior.getSimpleString(z.publishedTimeText)),z.upcomingEventData&&z.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(z.upcomingEventData.upcomingEventText),l.push(_.PU(I,Number(z.upcomingEventData.startTime))));return l};
_.p.calculateBylineText=function(z){return z.shortBylineText?z.shortBylineText:z.bylineText?z.bylineText:null};
_.p.calculateIsDisabled=function(z){return!!z.isDisabled};
_.p.computeHrefWithDefault=function(z){return this.ytComponentBehavior.computeHref_(z)||_.l15(NMM)};
_.p.onDetailsTap=function(z){var l=this.data&&this.data.navigationEndpoint;l&&!_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.C("kevlar_grid_video_renderer_killswitch")?_.gC(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l))};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14926_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:_.Hy(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Hy(this.hostElement).querySelector("ytd-thumbnail")})};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$14926_inlinePreviewHoverListener)==null||vJ(z)};
_.p.computeThumbnailWidth=function(z,l){return l&&l>0?l:z?360:210};
_.p.computeNumBadgesInRow=function(z){var l;return((l=z.badges)==null?void 0:l.length)||0};
_.p.computeShowChannelThumbnail=function(z,l){var I;return l&&!!(z==null?0:(I=z.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.vP.Object.defineProperties(Eq.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$14926_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Eq.prototype.dataChanged=Eq.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Eq.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],Eq.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.Cf),_.w("design:type",Object)],Eq.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Eq.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Eq.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],Eq.prototype,"noEndpoints",void 0);_.e([_.X({computed:"calculateBylineText(data)"}),_.w("design:type",Object)],Eq.prototype,"bylineText",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Eq.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Eq.prototype,"isDownloading",void 0);_.e([_.X({reflectToAttribute:!0,value:0}),_.w("design:type",Number)],Eq.prototype,"width",void 0);_.e([_.X({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.w("design:type",Object)],Eq.prototype,"isDisabled",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Eq.prototype,"dataChanged",null);_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Eq.prototype,"isHovered",null);_.e([_.S({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Eq);
_.r(Eq,"ytd-grid-video-renderer",function(){if(Pwu!==void 0)return Pwu;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" 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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Pwu=z},{mode:_.yP("kevlar_poly_si_batch_j047")?1:2});var E_M;var uP=function(){var z=_.q.apply(this,arguments)||this;z.roundedContainer=!0;z.skipRoundingTop=!1;z.disableTopPadding=!1;z.amsterdamEnabled=_.C("enable_desktop_amsterdam_info_panels");return z};
_.m(uP,_.q);uP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uP.prototype.onClick=function(z){var l,I=(l=this.data)==null?void 0:l.sourceEndpoint;!_.DX(_.MX(z),this.hostElement,["A".toString()])&&I&&_.gC(this.hostElement,"yt-navigate",{endpoint:I})};
_.vP.Object.defineProperties(uP.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 z;return!((z=this.data)==null||!z.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.data)==null?void 0:z.paragraphMaxLines)!=null?l:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uP.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uP.prototype,"showVerticalDividers",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uP.prototype,"roundedContainer",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uP.prototype,"skipRoundingTop",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uP.prototype,"disableTopPadding",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],uP.prototype,"amsterdamEnabled",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],uP.prototype,"showMetadataAtTop",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],uP.prototype,"showMetadataBelowTitle",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.menu"),_.w("design:type",Object),_.w("design:paramtypes",[])],uP.prototype,"hasMenu",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.truncateParagraphs"),_.w("design:type",Object),_.w("design:paramtypes",[])],uP.prototype,"truncateParagraphs",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.paragraphMaxLines"),_.w("design:type",Number),_.w("design:paramtypes",[])],uP.prototype,"paragraphMaxLines",null);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.B("data.background"),_.w("design:type",Object),_.w("design:paramtypes",[])],uP.prototype,"background",null);_.e([_.S({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],uP);
_.r(uP,"ytd-info-panel-content-renderer",function(){if(E_M!==void 0)return E_M;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return E_M=z},{mode:_.yP("kevlar_poly_si_batch_j076")?1:2});var uKp;var ZBu;var HBj;var y2_;var Zz=function(){return _.q.apply(this,arguments)||this};
_.m(Zz,_.q);Zz.prototype.computeStyle=function(z){return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Zz.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],Zz.prototype,"style_",void 0);_.e([_.Wy({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Zz);
_.r(Zz,"yt-channel-thumbnail-with-link-renderer",function(){if(y2_===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;HBj===void 0&&(HBj=document.createElement("template"));var b=HBj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);y2_=z}z=y2_;return z},{mode:2});var Hm=function(){var z=_.q.apply(this,arguments)||this;z.modernTypography=_.C("web_modern_typography");return z};
_.m(Hm,_.q);Hm.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"}}}};
Hm.prototype.computeTitleStyle=function(z){return z||null};
Hm.prototype.computeAvatarStyle=function(z){return z||null};
Hm.prototype.computeShowNavigationButton=function(z,l){return!(z==null||!z.navigationButton||l)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Hm.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.w("design:type",String)],Hm.prototype,"titleStyle",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.w("design:type",String)],Hm.prototype,"avatarStyle",void 0);_.e([_.X(),_.w("design:type",Boolean)],Hm.prototype,"hideNavigationButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Hm.prototype,"isModernSd",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Hm.prototype,"modernTypography",void 0);
_.e([_.S({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Hm);
_.r(Hm,"ytd-rich-list-header-renderer",function(){if(ZBu!==void 0)return ZBu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ZBu=z},{mode:_.yP("kevlar_poly_si_batch_j058")?1:2});var y8=function(){return _.q.apply(this,arguments)||this};
_.m(y8,_.q);y8.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],y8.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],y8.prototype,"isSearch",void 0);_.e([_.S({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],y8);
_.r(y8,"ytd-preview-card-renderer",function(){if(uKp!==void 0)return uKp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uKp=z},{mode:1});var fmu;var f5=function(){return _.q.apply(this,arguments)||this};
_.m(f5,_.q);f5.prototype.configureRendererStamper=function(){return{"data.menu":WD}};
f5.prototype.dataChanged=function(){var z=this.get("colorExtractionPalette.section1Color",this.data);z=_.Ur(z);_.R8(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":z})};
f5.prototype.computeCardStyle=function(z){return this.get("style.value",z)||null};
f5.prototype.dataChanged=f5.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],f5.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],f5.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.w("design:type",String)],f5.prototype,"cardStyle",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f5.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],f5);
_.r(f5,"ytd-compact-channel-recommendation-card-renderer",function(){if(fmu!==void 0)return fmu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return fmu=z},{mode:1});var C3w;var k7w;var C5=function(){var z=_.q.apply(this,arguments)||this;z.alignAuto=!1;z.collapsed=!0;z.isToggled=!1;z.alwaysCollapsed=!1;z.canToggle=!0;z.collapsedHeight=80;z.disableToggle=!1;z.alwaysToggleable=!1;z.reversed=!1;z.shouldUseNumberOfLines=!1;z.recomputeOnResize=!1;z.canToggleJobId=0;z.lastReversed=!1;return z};
_.m(C5,_.q);_.p=C5.prototype;_.p.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.p.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.p.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var z=_.Hy(this.hostElement),l=z.childNodes,I=document.createDocumentFragment(),b=z.childNodes.length-1;b>=0;b--)_.Hy(I).appendChild(l[b]);_.C("enable_shadydom_free_scoped_node_methods")?_.y5(this.hostElement).appendChild(I):z.appendChild(I)}};
_.p.ready=function(){var z=this;_.JP(function(){z.initChildrenObserver()},1)};
_.p.attached=function(){var z;(z=this.resizeObserver)==null||z.observe(this.content)};
_.p.detached=function(){this.detachObserver()};
_.p.toggle=function(z,l){this.canToggle&&(this.isToggled=l,_.gC(this.hostElement,"yt-refit"),z&&z.stopPropagation())};
_.p.reset=function(){this.childrenChanged()};
_.p.onIronResize=function(){this.recomputeOnResize&&!_.C("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.p.computeIsMoreVisible=function(z,l){return z&&!l};
_.p.computeShouldUseNumberOfLines=function(z){try{return!!z&&window.CSS.supports("-webkit-line-clamp","1")}catch(l){}return!1};
_.p.computeIsLessVisible=function(z,l){return z&&l};
_.p.observeCollapsedHeightAndMaxLines=function(){var z=this.collapsedHeight,l=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.R8(this.hostElement,{"--ytd-expander-max-lines":""+l,"--ytd-expander-collapsed-height":""}):_.R8(this.hostElement,{"--ytd-expander-collapsed-height":z+"px","--ytd-expander-max-lines":""})};
_.p.handleMoreTap=function(z){this.disableToggle||(_.gC(this.hostElement,"yt-expander-more-tapped"),this.toggle(z,!0))};
_.p.handleLessTap=function(z){_.gC(this.hostElement,"yt-expander-less-tapped");this.toggle(z,!1)};
_.p.initChildrenObserver=function(){var z=this;this.observer=new MutationObserver(function(){z.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.C("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.zD(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var l;(l=z.resizeThrottle)==null||l.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.p.childrenChanged=function(){var z=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){fK(function(){z.canToggleJobId=0;z.calculateCanCollapse()})}))};
_.p.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};
_.p.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.p.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("collapsed-changed",this.collapsed))};
_.p.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("is-toggled-changed",this.isToggled))};
_.p.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("can-toggle-changed",this.canToggle))};
_.vP.Object.defineProperties(C5.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
C5.prototype.canToggleChangedForBinding=C5.prototype.canToggleChangedForBinding;C5.prototype.isToggledChangedForBinding=C5.prototype.isToggledChangedForBinding;C5.prototype.collapsedChangedForBinding=C5.prototype.collapsedChangedForBinding;C5.prototype.observeCollapsedHeightAndMaxLines=C5.prototype.observeCollapsedHeightAndMaxLines;C5.prototype.onIronResize=C5.prototype.onIronResize;C5.prototype.reversedChanged=C5.prototype.reversedChanged;C5.prototype.toggledChanged=C5.prototype.toggledChanged;
C5.prototype.alwaysToggleableChanged=C5.prototype.alwaysToggleableChanged;_.e([_.t(_.ap),_.w("design:type",Object)],C5.prototype,"ironResizableBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],C5.prototype,"alignAuto",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],C5.prototype,"collapsed",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"isToggled",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"alwaysCollapsed",void 0);
_.e([_.X(),_.w("design:type",Object)],C5.prototype,"canToggle",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"collapsedHeight",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"disableToggle",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"alwaysToggleable",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"reversed",void 0);_.e([_.X(),_.w("design:type",Number)],C5.prototype,"maxNumberOfLines",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.w("design:type",Object)],C5.prototype,"shouldUseNumberOfLines",void 0);_.e([_.X(),_.w("design:type",Object)],C5.prototype,"recomputeOnResize",void 0);_.e([_.qX("#content"),_.w("design:type",HTMLDivElement)],C5.prototype,"content",void 0);_.e([_.YE("alwaysToggleable"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"alwaysToggleableChanged",null);
_.e([_.YE("isToggled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"toggledChanged",null);_.e([_.B("canToggleJobId"),_.w("design:type",Object),_.w("design:paramtypes",[])],C5.prototype,"isResetting",null);_.e([_.By("reversed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"reversedChanged",null);
_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"onIronResize",null);_.e([_.By("maxNumberOfLines","collapsedHeight"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"observeCollapsedHeightAndMaxLines",null);_.e([_.By("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"collapsedChangedForBinding",null);
_.e([_.By("isToggled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"isToggledChangedForBinding",null);_.e([_.By("canToggle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C5.prototype,"canToggleChangedForBinding",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-expander"})],C5);
_.r(C5,"ytd-expander",function(){if(k7w!==void 0)return k7w;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return k7w=z},{mode:1});var kQ=function(){return _.q.apply(this,arguments)||this};
_.m(kQ,_.q);kQ.prototype.computeIsCarousel=function(z){return!!z.isCarousel};
kQ.prototype.observeLightsourcePalette=function(){var z,l=(z=this.data)==null?void 0:z.vibrantsourceColorPaletteData;l&&_.Pr(this.hostElement,l)};
kQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
kQ.prototype.observeLightsourcePalette=kQ.prototype.observeLightsourcePalette;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kQ.prototype,"data",void 0);_.e([_.X({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],kQ.prototype,"isCarousel",void 0);
_.e([_.By("data.vibrantsourceColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kQ.prototype,"observeLightsourcePalette",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],kQ);
_.r(kQ,"ytd-media-upsell-renderer",function(){if(C3w!==void 0)return C3w;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return C3w=z},{mode:2});var R$_;var Rt=function(){var z=_.q.apply(this,arguments)||this;z.JSC$14954_playerEvents=new Map;z.listeningToPlayer=!1;z.startX=0;z.active=!1;z.shouldShowButtons=_.C("web_buttons_hidden_killswitch");z.isHighlighted=!1;z.useHighlightStyling=_.C("web_enable_deeper_metadata_highlight_styling");z.modern=_.C("kevlar_modern_sd");z.enableProblemWalkthrough=_.C("problem_walkthrough_sd");return z};
_.m(Rt,_.q);_.p=Rt.prototype;
_.p.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}}}}}};
_.p.created=function(){this.JSC$14954_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.KJ(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.KJ(this,this.onActiveUpdate))};
_.p.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.KJ(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.KJ(this,this.onActiveUpdate))};
_.p.onDataChanged=function(){this.removePlayerListeners()};
_.p.onColorPaletteChange=function(){var z={},l;if(_.Sb()==="USER_INTERFACE_THEME_DARK"&&((l=this.data)==null?0:l.darkColorPalette)){var I=this.data.darkColorPalette;z["--ytd-macro-markers-list-item-background-color"]=_.aD(this.get("section2Color",I))}else{var b;_.Sb()==="USER_INTERFACE_THEME_LIGHT"&&((b=this.data)==null?0:b.lightColorPalette)&&(I=this.data.lightColorPalette,z["--ytd-macro-markers-list-item-background-color"]=_.aD(this.get("section3Color",I)))}I?(z["--ytd-macro-markers-list-item-title-color"]=
_.aD(this.get("primaryTitleColor",I)),z["--ytd-macro-markers-list-item-secondary-color"]=_.aD(this.get("secondaryTitleColor",I)),z["--ytd-macro-markers-list-item-timestamp-background-color"]=_.aD(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.aD(this.get("primaryTitleColor",I))}},this.useColorSampling=!0):(z["--ytd-macro-markers-list-item-background-color"]="initial",z["--ytd-macro-markers-list-item-title-color"]="initial",z["--ytd-macro-markers-list-item-secondary-color"]=
"initial",z["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.R8(this.hostElement,z)};
_.p.onEndpointMouseDown=function(z){this.startX=z.clientX};
_.p.onEndpointClick=function(z){var l=this,I,b,v;return _.O(function(M){if(M.nextAddress==1){if(l.startX!==z.clientX)return z.preventDefault(),M.return();l.data&&l.ytRendererBehavior.logExplicitClick(l.data);if(!l.seekWithAnimationOnClick)return M.jumpTo(0);if(z.button!==0||z.shiftKey||z.altKey||z.metaKey||z.ctrlKey||_.DX(_.MX(z),l.hostElement,["BUTTON".toString()]))return M.return();z.stopPropagation();z.preventDefault();return l.data?M.yield(_.Nv().getPlayerPromise(),3):M.return()}I=M.yieldResult;
v=(b=_.k(l.data.onTap,_.zb))==null?void 0:b.startTimeSeconds;v!==void 0&&I.seekToTimeWithAnimation(v*1E3,_.ID(l.data.title));_.qe(M)})};
_.p.computeLayout=function(z){return z};
_.p.computeIsHighlighted=function(z){return!!z};
_.p.computeCarouselType=function(z){return z};
_.p.hideModernCarousel=function(z){return this.modern&&this.hideThumbnail(z)};
_.p.hideThumbnail=function(z){return this.enableProblemWalkthrough&&z!==null&&z==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.p.onRepeatButtonToggle=function(z){var l=this;z.detail.toggled&&_.Nv().getPlayerPromise().then(function(I){l.ytPlayerListenerBehavior.listenToPlayerEvents(I,l.JSC$14954_playerEvents);l.listeningToPlayer=!0})};
_.p.onLoopRangeChange=function(z){var l=_.Hy(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(l){var I=l.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",l.polymerController.data);if(I){var b=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(z==null?void 0:z.startTimeMs)||b!==(z==null?void 0:z.endTimeMs))l.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.p.removePlayerListeners=function(){var z=this;this.listeningToPlayer&&_.Nv().getPlayerPromise().then(function(l){z.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l,z.JSC$14954_playerEvents);z.listeningToPlayer=!1})};
_.p.onActiveUpdate=function(z){this.active=z.detail.active};
Rt.prototype.onColorPaletteChange=Rt.prototype.onColorPaletteChange;Rt.prototype.onDataChanged=Rt.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],Rt.prototype,"ytPlayerListenerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Rt.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Rt.prototype,"useCustomColors",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rt.prototype,"active",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Rt.prototype,"shouldShowButtons",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.w("design:type",String)],Rt.prototype,"layout",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.w("design:type",Object)],Rt.prototype,"isHighlighted",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rt.prototype,"useHighlightStyling",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rt.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rt.prototype,"enableProblemWalkthrough",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.w("design:type",String)],Rt.prototype,"carouselType",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Rt.prototype,"useColorSampling",void 0);_.e([_.X(),_.w("design:type",Boolean)],Rt.prototype,"seekWithAnimationOnClick",void 0);_.e([_.X(),_.w("design:type",Object)],Rt.prototype,"customButtonProperties",void 0);
_.e([_.qX("#repeat-button"),_.w("design:type",HTMLElement)],Rt.prototype,"repeatButton",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rt.prototype,"onDataChanged",null);_.e([_.By("data.lightColorPalette","data.darkColorPalette"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rt.prototype,"onColorPaletteChange",null);_.e([_.S({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Rt);
_.r(Rt,"ytd-macro-markers-list-item-renderer",function(){if(R$_!==void 0)return R$_;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return R$_=z},{mode:1});var mJ_;var KD4;var m8=function(){var z=_.q.apply(this,arguments)||this;z.modernTypography=_.C("web_modern_typography");return z};
_.m(m8,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],m8.prototype,"modernTypography",void 0);_.e([_.X(),_.w("design:type",Object)],m8.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],m8);
_.r(m8,"ytd-title-and-button-list-header-renderer",function(){if(KD4!==void 0)return KD4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return KD4=z},{mode:1});var tJA;var BM_=new _.yH("BUTTON_RENDERER_WIZ_TOKEN"),XO_=new _.yH("BUTTON_RENDERER_TOKEN");_.K5=_.P(function(z){var l=_.pG().resolve(_.MB(BM_));if(l)return _.N(l,Object.assign({},z));var I=_.pG().resolve(XO_);return I?_.N(ij1,null,function(){return _.N(lq,null,function(){var b,v,M,x,g,G,u,Z,H,y,f,R;return void I(z.data(),{onButtonClickCallback:z.onButtonClickCallback,shouldShowIcons:(b=z.shouldShowIcons)==null?void 0:b.call(z),icon:(v=z.icon)==null?void 0:v.call(z),processAllEndpoints:(M=z.processAllEndpoints)==null?void 0:M.call(z),preventDefault:(x=z.preventDefault)==null?void 0:x.call(z),
stopPropagation:(g=z.stopPropagation)==null?void 0:g.call(z),disableButtonRendererClickHandling:(G=z.disableButtonRendererClickHandling)==null?void 0:G.call(z),className:(u=z.className)==null?void 0:u.call(z),buttonOverrides:(Z=z.buttonOverrides)==null?void 0:Z.call(z),forceModernIconButton:(H=z.forceModernIconButton)==null?void 0:H.call(z),isSubscribe:(y=z.isSubscribe)==null?void 0:y.call(z),alignByText:(f=z.alignByText)==null?void 0:f.call(z),forceDisabled:(R=z.forceDisabled)==null?void 0:R.call(z)})})}):
_.N(_.xP,null)},"ja");
_.K5.idomCompat=!0;var qo0=_.P(function(z){var l=z.data,I=_.Df(z.useSquareAspectRatio,!1);return _.N("dismissed-mini-game-card-view-model",null,_.N(_.E,{cond:function(){var b,v;return(b=l().responseText)==null?void 0:(v=b.runs)==null?void 0:v.length},
then:function(){var b={};return _.N("div",{class:_.m9("yt-mini-game-card-view-model__dismissed-card",(b["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},b["yt-mini-game-card-view-model--dismissed-square-card"]=I,b))},_.N("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.N(_.E,{cond:function(){return l().responseText.runs[0].text},
then:function(v){return _.N("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:v},v)}}),_.N(_.TS,{data:function(){return l().buttons}},{buttonRenderer:_.K5,
buttonViewModel:_.h4})))}}))},"ka");var SoA=_.P(function(z){z=_.xC(z,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var l=z.data,I=z.useFullWidth,b=z.isDesktopWeb,v=z.addSearchResultTopMargin,M=function(){return l().layout},x=function(){return l().title},g=function(){return l().metadataText?l().metadataText:l().genre},G=function(){return l().channelName},u=function(){return l().image},Z=function(){return l().colorPalette},H=function(){return l().actionButton},y=function(){return l().overflowButton},
f=function(){return l().avatar},R=function(){var d={};
d=_.m9("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(d["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return b()},d));
return _.N("div",{class:d},_.N(iBA,{imageData:u,colorPalette:Z}),_.N(FD_,{onTap:function(){return l().onTap},
imageData:u,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.N(_.E,{cond:function(){return!b()},
then:function(){return _.N(_.xP,null,_.N(QZA,{layout:M,colorPalette:Z,isDesktopWeb:b,overflowButton:y,avatar:f,onTap:function(){return l().onTap},
genre:g,title:x,channelName:G}),_.N(Yo_,{actionButton:H}))}}))},F=function(){var d={};
d=_.m9((d["yt-mini-game-card-view-model--search-result-desktop"]=function(){return b()},d["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!b()},d["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return v()},d));
return _.N("div",{class:d},R(),_.N(TM_,{description:function(){return l().description},
isDesktopWeb:b,title:x,genre:g,onTap:function(){return l().onTap},
actionButton:H,overflowButton:y,avatar:f,channelName:G}))},Y=function(){var d={};
d=_.m9("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(d["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return b()},d["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return b()&&l().width===135},d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return b()},d["yt-mini-game-card-view-model--big-metadata-font"]=function(){return l().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},d["yt-mini-game-card-view-model--use-full-width"]=
function(){return I()},d["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!H()},d));
return _.N("div",{class:d},_.N(c2M,{colorPalette:Z,isDesktopWeb:b,onTap:function(){return l().onTap},
accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
actionButton:H,imageData:u}),_.N(QZA,{layout:M,colorPalette:Z,isDesktopWeb:b,overflowButton:y,avatar:f,onTap:function(){return l().onTap},
genre:g,title:x,channelName:G}))},c=function(){var d={};
d=_.m9("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(d["yt-mini-game-card-view-model--square-card-desktop"]=function(){return b()},d["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},d));
return _.N("div",{class:d},_.N(FD_,{onTap:function(){return l().onTap},
imageData:u,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.N(QZA,{layout:M,colorPalette:Z,isDesktopWeb:b,overflowButton:y,avatar:f,onTap:function(){return l().onTap},
genre:g,title:x,channelName:G}))};
return _.N("mini-game-card-view-model",{class:z.className},_.N(_.Q7,null,_.N(_.is,{when:function(){return M()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Y()}),_.N(_.is,{when:function(){return M()==="MINI_APP_LAYOUT_SQUARE"}},function(){return c()}),_.N(_.is,{when:function(){return M()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return F()})))},"la");
SoA.idomCompat=!0;var Yo_=_.P(function(z){var l=_.Df(z.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.N(_.TS,{data:z.actionButton},{buttonViewModel:function(I){return _.N("div",{class:l},_.N(_.h4,{data:I.data}))}})},"ma"),FD_=_.P(function(z){var l=z.onTap;
var I=z.imageData;var b=z.accessibilityText;var v=z.overlayBadgeText;var M=z.iconName;var x=z.unplayableInlinePlaybackIconName;z=z.isDesktopWeb;return _.N(_.cZ,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:l},_.N(_.pK,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(b==null?void 0:b())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.N(dJM,{overlayBadgeText:v,iconName:M,unplayableInlinePlaybackIconName:x,isDesktopWeb:z}))},"na"),dJM=_.P(function(z){var l=z.overlayBadgeText;
var I=z.iconName;var b=z.unplayableInlinePlaybackIconName;var v=z.isDesktopWeb;return _.N("div",{class:"yt-mini-game-card-view-model__badge-container"},_.N(_.E,{cond:I,then:function(M){return _.N("div",{class:"yt-mini-game-card-view-model__badge"},_.N("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.N(_.qt,{icon:M,className:"yt-mini-game-card-view-model__icon",size:12}),_.N("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},l)))}}),_.N(_.E,{cond:function(){return!I()&&
l()},
then:function(){return _.N("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},l)}}),_.N(_.E,{cond:function(){return b()&&v()},
then:function(){return _.N("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.N(_.qt,{icon:b,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),iBA=_.P(function(z){var l=z.colorPalette;
var I=z.imageData;var b=function(){return l().vibrantColorPalette?l().vibrantColorPalette.section2Color:l().sectionTwoColor};
return _.N(_.xP,null,_.N("div",{class:"yt-mini-game-card-view-model__background-base",style:_.XV({"background-color":function(){return VX(b(),"1")}})}),_.N("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.XV({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.N("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.XV({background:function(){return"linear-gradient(180deg,\n    "+VX(b(),".8")+" 0%,\n    "+VX(b(),".4")+" 25%,\n    "+VX(l().vibrantColorPalette?l().vibrantColorPalette.section4Color:l().sectionFourColor,".8")+" 100%)"}})}))},"pa"),QZA=_.P(function(z){var l=z.layout;
var I=z.colorPalette;var b=z.overflowButton;var v=z.avatar;var M=z.onTap;var x=z.title;var g=z.channelName;var G=z.genre;var u=function(){var Z;return l()!=="MINI_APP_LAYOUT_SQUARE"&&((Z=I())==null?0:Z.textPrimaryColor)?"color: "+VX(I().textPrimaryColor,".7"):""};
return _.N("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.N(_.E,{cond:v,then:function(){return _.N("div",{class:"yt-mini-game-card-view-model__avatar"},_.N(_.TS,{data:v},{avatarViewModel:_.Dz}))}}),_.N(_.cZ,{command:M,
className:"yt-mini-game-card-view-model__metadata-details"},_.N("h3",{class:"yt-mini-game-card-view-model__title",title:x},x),_.N(_.E,{cond:v,then:function(){return _.N("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.N("span",{class:"yt-mini-game-card-view-model__genre",title:g,style:u},g),_.N("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:u},G))},
else:function(){return _.N("span",{class:"yt-mini-game-card-view-model__genre",title:G},G)}})),_.N("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.N(_.TS,{data:b},{buttonViewModel:function(Z){var H=Z.data;
return _.N(_.h4,{data:function(){return Object.assign({},H(),{customFontColor:l()==="MINI_APP_LAYOUT_SINGLETON"?H().customFontColor:void 0})}})}})))},"qa"),c2M=_.P(function(z){var l=z.colorPalette;
var I=z.isDesktopWeb;var b=z.onTap;var v=z.accessibilityText;var M=z.overlayBadgeText;var x=z.iconName;var g=z.unplayableInlinePlaybackIconName;var G=z.actionButton;z=z.imageData;return _.N("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.N(iBA,{imageData:z,colorPalette:l}),_.N(FD_,{onTap:b,imageData:z,accessibilityText:v,overlayBadgeText:M,iconName:x,unplayableInlinePlaybackIconName:g,isDesktopWeb:I}),_.N(_.E,{cond:function(){return G==null?void 0:G()},
then:function(){return _.N(Yo_,{actionButton:G})}}))},"ra"),TM_=_.P(function(z){var l=z.description;
var I=z.isDesktopWeb;var b=z.title;var v=z.genre;var M=z.onTap;var x=z.actionButton;var g=z.overflowButton;var G=z.avatar;z=z.channelName;var u={};u=_.m9("yt-mini-game-card-view-model--search-result-metadata-wrapper",(u["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,u["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,u["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},u));
var Z={};Z=_.m9("yt-mini-game-card-view-model__search-result-info-row",(Z["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},Z));
return _.N("div",{class:u},_.N("div",{class:Z},_.N(_.cZ,{command:M,className:"yt-mini-game-card-view-model__metadata-details"},_.N("h3",{class:"yt-mini-game-card-view-model__title",title:b},b),_.N("span",{class:"yt-mini-game-card-view-model__genre",title:v},v)),_.N(Yo_,{actionButton:x,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.N("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.N(_.TS,{data:g},{buttonViewModel:_.h4}))),_.N("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.N("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.N("div",{class:"yt-mini-game-card-view-model__avatar"},_.N(_.TS,{data:G},{avatarViewModel:function(H){var y=H.data;return _.N(_.Dz,{data:function(){return Object.assign({},y(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.N(_.cZ,{command:M,
className:"yt-mini-game-card-view-model__description"},_.N("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},z)),_.N(_.cZ,{command:M,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.N("div",null)))),_.N(_.E,{cond:I,then:function(){return _.N(_.cZ,{command:M,className:"yt-mini-game-card-view-model__description"},l)}}))},"sa");_.uO(SoA,"mini-game-card-view-model",{props:{data:_.mB,className:_.mB,useFullWidth:_.mB,isDesktopWeb:_.mB,addSearchResultTopMargin:_.mB}});_.uO(qo0,"dismissed-mini-game-card-view-model",{props:{data:_.mB,useSquareAspectRatio:_.mB}});var tZ=function(){var z=_.q.apply(this,arguments)||this;z.isSearch=!1;z.isRichGrid=!1;return z};
_.m(tZ,_.q);_.p=tZ.prototype;_.p.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.p.dismissibleItemOnYtServiceRequestSent=function(z,l){l.actions&&this.dismissibleItemProcessActions(z,l.actions)};
_.p.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.p.dataChanged=function(){this.dismissibleItemReset()};
_.p.dismissibleItemProcessActions=function(z,l){for(var I=0;I<l.length;I++){var b=l[I];_.k(b,_.$K)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.k(b,_.$K)),z.stopPropagation())}};
_.p.dismissibleItemHandleReplaceEnclosingAction=function(z){this.dismissedRenderer=z.item;this.isDismissed=!0};
_.vP.Object.defineProperties(tZ.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var z;return!!this.data&&!((z=this.dismissedRenderer)==null?0:z.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.dismissedRenderer)==null||!z.notificationMultiActionRenderer)}}});
tZ.prototype.dataChanged=tZ.prototype.dataChanged;tZ.prototype.dismissibleItemOnRequestSent=tZ.prototype.dismissibleItemOnRequestSent;tZ.prototype.dismissibleItemOnYtServiceRequestSent=tZ.prototype.dismissibleItemOnYtServiceRequestSent;_.e([_.X(),_.w("design:type",Object)],tZ.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],tZ.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],tZ.prototype,"isDismissed",void 0);
_.e([_.X(),_.w("design:type",Object)],tZ.prototype,"dismissedRenderer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],tZ.prototype,"isRichGrid",void 0);_.e([_.B("data.layout"),_.w("design:type",Object),_.w("design:paramtypes",[])],tZ.prototype,"useSquareAspectRatio",null);_.e([_.B("data","dismissedRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],tZ.prototype,"showCard",null);
_.e([_.B("data","dismissedRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],tZ.prototype,"showDismissed",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],tZ.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.e([_.tP("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],tZ.prototype,"dismissibleItemOnRequestSent",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tZ.prototype,"dataChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],tZ);
_.r(tZ,"ytd-mini-game-card-view-model",function(){if(tJA!==void 0)return tJA;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return tJA=z},{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var o_A;var P34;var Bm=function(){return _.Mr.apply(this,arguments)||this};
_.m(Bm,_.Mr);Bm.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Bm.prototype.getContinuationUrl=function(z){var l={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(l.itct=this.data.clickTrackingParams);return _.Jr(z,l)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Bm.prototype,"data",void 0);_.e([_.Wy({is:"yt-reload-continuation",noInjection:!0})],Bm);var h$A;var sZu;var XJ=function(){var z=_.q.apply(this,arguments)||this;z.notificationData={};return z};
_.m(XJ,_.q);_.p=XJ.prototype;_.p.isMenuExpanded=function(z){return z&&z.length<=1?"undefined":"false"};
_.p.dataChanged_=function(){this.selected=void 0;var z=this.computeSelectedIndex_(this.data);z>=0&&(this.selected=z);z=this.data&&this.data.length>1;_.fJ(this.hostElement,"has-items",z);_.Hy(this.hostElement).querySelector("#label").tabIndex=z?0:-1};
_.p.onDropdownOpen=function(){var z=_.sU();if(this.parentTrackingParams&&this.data){var l=_.ch(this.parentTrackingParams);this.data.forEach(function(I){z&&l&&I.trackingParams&&(I=_.ch(I.trackingParams),_.LM(z,l,I),_.Vi(z,[I]))})}else this.parentTrackingParams||_.PW(new _.qB("No parent tracking params passed in for yt-dropdown-menu."))};
_.p.hasNotification=function(z){var l;if(z.targetId&&((l=this.notificationData)==null?0:l.targetId)){var I;return z.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.p.computeSelectedIndex_=function(z){if(z)for(var l=0,I=z.length;l<I;l++)if(z[l].selected)return l;return-1};
_.p.computeLabel_=function(z){return this.data&&z!=void 0?this.data[z].title:""};
_.p.computeShowIcon_=function(z,l){return!l&&!!z};
_.p.computeVerticalOffset_=function(z){return z?36:0};
_.p.computeEndpoint_=function(z){return z.endpoint||z.navigationEndpoint};
_.p.onLabelClick_=function(z){this.data&&this.data.length<=1?z.stopPropagation():this.menuExpanded="true"};
_.p.onIronActivate_=function(z){z=z.detail.item;var l=_.Hy(this.hostElement).querySelector("#repeat").itemForElement(z);if(l&&l.trackingParams){var I=_.sU(),b=_.ch(l.trackingParams);I&&_.JH(I,b)}if(l&&l.serviceEndpoint)_.C("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(l.serviceEndpoint):_.uJ(this.hostElement,[l.serviceEndpoint]),_.gC(this.hostElement,"yt-playlist-reloading");else a:{if((l=z.querySelector("yt-supported-renderers"))&&
(l=l.rendererElement)&&l.is=="yt-reload-continuation"){l.trigger();break a}(z=z.querySelector("yt-reload-continuation"))&&z.trigger()}};
_.p.onTap_=function(z){z.preventDefault()};
_.p.onItemTap_=function(z){this.ytEndpointBehavior.onEndpointTap_(z)};
_.p.onLinkFocus_=function(z){try{var l=z.target}catch(b){}if(l){var I=l.querySelector("tp-yt-paper-item");I&&_.z4(this,"focus",function(){I.focus()})}};
_.p.onMenuClose_=function(){this.menuExpanded="false"};
_.p.isLabelIconActive_=function(z){return z==="true"};
_.p.computeHasSubtitle_=function(z){return!!z};
_.p.computeHrefForItem_=function(z){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(z))};
_.p.updateSelectedFromBinding=function(z){this.selected=z.detail.value};
_.vP.Object.defineProperties(XJ.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
XJ.prototype.onMenuClose_=XJ.prototype.onMenuClose_;XJ.prototype.onTap_=XJ.prototype.onTap_;XJ.prototype.onIronActivate_=XJ.prototype.onIronActivate_;XJ.prototype.onDropdownOpen=XJ.prototype.onDropdownOpen;XJ.prototype.dataChanged_=XJ.prototype.dataChanged_;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],XJ.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],XJ.prototype,"ytEndpointBehavior",void 0);
_.e([_.X(),_.w("design:type",Array)],XJ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],XJ.prototype,"parentTrackingParams",void 0);_.e([_.X(),_.w("design:type",Object)],XJ.prototype,"selected",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],XJ.prototype,"useLabel",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],XJ.prototype,"useComputedAriaLabel",void 0);_.e([_.X(),_.w("design:type",String)],XJ.prototype,"icon",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],XJ.prototype,"iconLabel",void 0);_.e([_.X(),_.w("design:type",String)],XJ.prototype,"ariaLabel",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],XJ.prototype,"disabled",void 0);_.e([_.X({computed:"isMenuExpanded(data)"}),_.w("design:type",String)],XJ.prototype,"menuExpanded",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],XJ.prototype,"closeOnActivate",void 0);
_.e([_.X({reflectToAttribute:!0,value:_.C("web_modern_buttons")}),_.w("design:type",Boolean)],XJ.prototype,"modernButtons",void 0);_.e([_.X(),_.w("design:type",Object)],XJ.prototype,"notificationData",void 0);_.e([_.B("ariaLabel, selected"),_.X(),_.w("design:type",String),_.w("design:paramtypes",[])],XJ.prototype,"computedAriaLabel",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XJ.prototype,"dataChanged_",null);
_.e([_.tP("paper-dropdown-open"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],XJ.prototype,"onDropdownOpen",null);_.e([_.tP("iron-activate"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],XJ.prototype,"onIronActivate_",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],XJ.prototype,"onTap_",null);
_.e([_.tP("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],XJ.prototype,"onMenuClose_",null);_.e([_.Wy({is:"yt-dropdown-menu",disableElementRegistration:!0})],XJ);
_.r(XJ,"yt-dropdown-menu",function(){if(sZu===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;h$A===void 0&&(h$A=document.createElement("template"));var b=h$A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);sZu=z}z=sZu;return z},{mode:2});var qb=function(){var z=_.q.apply(this,arguments)||this;z.hasNotification=!1;return z};
_.m(qb,_.q);qb.prototype.computeId=function(z){return z};
qb.prototype.computeHorizontalAlign=function(z){return z?"right":"left"};
qb.prototype.computeAccessibilityLabel=function(z){var l,I;return((l=z.accessibility)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label)||null};
qb.prototype.notificationDataChanged=function(){var z;this.hasNotification=!!this.notificationData&&!((z=this.data)==null?0:z.icon)};
qb.prototype.notificationDataChanged=qb.prototype.notificationDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.EF.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],qb.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qb.prototype,"data",void 0);_.e([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",String)],qb.prototype,"id",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],qb.prototype,"isRightAligned",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],qb.prototype,"disabled",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],qb.prototype,"closeOnActivate",void 0);_.e([_.X(),_.w("design:type",Object)],qb.prototype,"notificationData",void 0);_.e([_.X(),_.w("design:type",Object)],qb.prototype,"hasNotification",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],qb.prototype,"useComputedAriaLabel",void 0);_.e([_.By("notificationData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qb.prototype,"notificationDataChanged",null);_.e([_.Wy({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],qb);
_.r(qb,"yt-sort-filter-sub-menu-renderer",function(){if(P34===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;o_A===void 0&&(o_A=document.createElement("template"));var b=o_A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);P34=z}z=P34;return z},{mode:2});var r2u=_.P(function(z){var l=z.data;var I=_.KK(function(){var M=l().onTap;(M=_.k(M,_.Ax))&&_.pG().resolve(_.DQ).resolveCommand(M);return!1}),b=function(){return{sources:[{url:l().thumbnailUrl,
width:120,height:90}]}},v=function(){return l().rating&&l().ratingA11yLabel&&l().reviewsCount&&l().reviewsCountA11yLabel};
return _.N("place-data-view-model",null,_.N(_.E,{cond:function(){return l().placeName&&l().placeCategory},
then:function(){return _.N("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":I},_.N(_.pK,{data:b,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.N(_.cZ,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return l().onTap}},_.N("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return l().placeName}},function(){return l().placeName})),_.N("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.N(_.E,{cond:v,
then:function(){return _.N("div",{class:_.m9("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.N("span",{class:"score",title:function(){return l().ratingA11yLabel}},function(){return l().rating}),_.N("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.N(_.qt,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.N("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return l().reviewsCountA11yLabel}},function(){return l().reviewsCount}))},
else:function(){return _.N("div",{class:_.m9("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.N("div",{class:_.m9("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.N("span",{class:"category",
title:function(){return l().placeCategory}},function(){return l().placeCategory}))))}}))},"ta");
r2u.idomCompat=!0;_.uO(r2u,"place-data-view-model",{props:{data:_.mB}});var $Jp=new _.yH("INLINE_PLAYBACK_HOOK_TOKEN");var e$u=_.$l({sharedUi:_.lu4});_.JR=_.eO(e$u)(e$u.sharedUi,{animatedThumbnailEnabledSelector:function(z){return z.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(z){return z.inlinePreviewEnabled},
currentPageTypeSelector:function(z){return z.currentPageType},
currentPageSubTypeSelector:function(z){return z.currentPageSubType},
persistentPanelVisibleSelector:function(z){return z.persistentPanelVisible}});var wO_=function(z){this.setActiveSlideIndex=z;this.jobIds=[];this.isSlideshowPlaying=!1},n_u=function(z,l){z.isSlideshowPlaying||(z.isSlideshowPlaying=!0,A2w(z),WD_(z,l,0))},A2w=function(z){_.CK(_.ow,function(){z.setActiveSlideIndex(0)},1)},WD_=function(z,l,I){z.jobIds.push(_.CK(_.ow,function(){var b=I<l-1?I+1:0;
z.setActiveSlideIndex(b);WD_(z,l,b)},1800))};var LD_=new _.yH("IMAGE_ON_LOAD_HANDLER_TOKEN");var UJz=_.P(function(z){return _.N("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.N(_.E,{cond:function(){var l;return(l=z.data())==null?void 0:l.thumbnail},
then:function(l){return _.N(_.pK,{data:l,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.amw=_.P(function(z){var l=z.data;var I=z.lockupExperiments;z={};return _.N("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.N("div",{class:_.m9("ytThumbnailOverlayButtonViewModelButton",(z.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var b;return I&&((b=I())==null?void 0:b.useLegacySizedIconButton)},z))},_.N(_.TS,{data:function(){return l().overlayButton}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
buttonOverrides:function(){var v;return I&&((v=I())==null?0:v.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.amw.idomCompat=!0;var VJz=_.P(function(z){return _.N("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.KK(function(l){l.preventDefault();return!1})},_.N(_.TS,{data:function(){return z.data().buttons}},{toggleButtonViewModel:function(l){return _.N("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.N(_.vL,{data:l.data}))}}))},"wa");
VJz.idomCompat=!0;var jZu=_.P(function(z){var l=function(){var I;return((I=_.k(z.data().rendererContext,_.YM))==null?void 0:I.label)||""};
return _.N("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.N(_.E,{cond:function(){return z.data().image},
then:function(){return _.N("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.N(_.pK,{data:function(){return z.data().image},
alt:l}))}}),_.N(_.E,{cond:function(){return z.data().text},
then:function(){return _.N("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return z.data().text})}}))},"xa");var J2j;J2j=_.JR.animatedThumbnailEnabledSelector;_.iP=_.P(function(z){var l=[],I=function(){var y,f;return Gd7((y=z.width)==null?void 0:y.call(z),(f=z.height)==null?void 0:f.call(z))},b=_.pG().resolve(_.MB(LD_)),v=_.VK("yt-thumbnail-view-model",function(){l.push("elRef.value set");
var y;(y=z.playbackRef)==null||y.call(z,{thumbnailElRef:v,thumbnail:z.data().image,thumbnailOverlays:z.data().overlays,thumbnailSize:I()})});
_.Sm(function(){l.push("onInit");_.cb(function(){l.push("onCleanup")})});
var M=_.nK(J2j),x=function(){var y,f;return(f=(y=z.aspectRatio)==null?void 0:y.call(z))!=null?f:0},g=function(){return(z.data().image?_.hju(z.data().image):x())<=1&&x()===0},G=function(){return g()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},u=function(){v.value||_.PW(new _.qB("Thumbnail elRef.value is null",l.join("\n")));
b&&v.value&&b(v.value)},Z=function(){var y,f;
return((y=z.hovered)==null?void 0:y.call(z))&&I()!=="large"&&((f=z.data().overlays)==null?void 0:f.some(function(R){return _.k(R,sf0)}))},H={};
return _.N("yt-thumbnail-view-model",{class:_.m9("ytThumbnailViewModelHost",z.className,function(){return eDk(x())},function(){var y,f;
a:{var R=I(),F=(y=z.disableRounding)==null?void 0:y.call(z);y=(f=z.isClip)==null?void 0:f.call(z);if(!F&&!y)switch(R){case "large":f="ytThumbnailViewModelLarge";break a;case "small":f="ytThumbnailViewModelSmall";break a;default:f="ytThumbnailViewModelMedium";break a}f=void 0}return f},(H.ytThumbnailViewModelCinematic=g,H)),
style:_.XV({"background-color":function(){var y,f=g()?(y=z.data().backgroundColor)==null?void 0:y.lightTheme:void 0;return f?VX(f,"1"):void 0}}),
el:v},_.N(_.E,{cond:g,then:function(){return _.N("div",{class:"ytThumbnailViewModelBlurredImage"},_.N(_.pK,{data:function(){return z.data().image},
alt:"",contentMode:G,targetWidth:z.width,onload:u}))}}),_.N("div",{class:"ytThumbnailViewModelImage"},_.N(_.pK,{data:function(){return z.data().image},
alt:"",contentMode:G,targetWidth:z.width,onload:u}),null),_.N(_.TS,{data:function(){return Z()?void 0:z.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:bBu,thumbnailOverlayBadgeViewModel:function(y){return _.N(v_4,{data:y.data,thumbnailSize:I,isClip:z.isClip})},
thumbnailBottomOverlayViewModel:function(y){return _.N(Jap,{data:y.data,thumbnailSize:I,isClip:z.isClip})},
thumbnailOverlayFullViewModel:jZu,thumbnailOverlayButtonViewModel:function(y){return _.N(_.amw,{data:y.data,lockupExperiments:z.lockupExperiments})}}),_.N(_.TS,{data:function(){var y;
return((y=z.hovered)==null?0:y.call(z))?z.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(y){return _.N(p5,{data:y.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:VJz}),_.N(_.TS,{data:function(){var y;return((y=z.hovered)==null?0:y.call(z))&&M()?z.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:UJz}),_.N(_.E,{cond:z.isClip,then:function(){return _.N("div",{class:"ytPinkingNsHost"},_.N("svg",{class:"ytPinkingNsPinkingLeft"},_.N("defs",null,_.N("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.N("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.N("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.N("svg",{class:"ytPinkingNsPinkingRight"},_.N("defs",null,_.N("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.N("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.N("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.iP.idomCompat={callbacks:{playbackRef:!0}};var z9A=_.P(function(z){var l=_.D(_.Z_(-1,void 0,"RW2Ole")),I=l.next().value,b=l.next().value;_.Sm(function(){var v=new wO_(b);n_u(v,z.data().thumbnails.length);_.cb(function(){if(v.isSlideshowPlaying){v.isSlideshowPlaying=!1;for(var M=v.jobIds,x=0,g=M.length;x<g;x++)_.ow.cancelJob(M[x]);v.jobIds.length=0}})});
return _.N("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.N(_.TS,{data:function(){return z.data().thumbnails}},{thumbnailViewModel:function(v,M){return _.N("div",{class:function(){var x=!z.data().primaryThumbnail,g=M(),G=I(),u=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
x&&g===0&&u.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");g<=G&&u.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return u.join(" ")}},_.N(_.iP,{data:v.data,
disableRounding:z.disableRounding}))}}))},"za");
z9A.idomCompat=!0;var wvt=new _.yH("DWELL_DETECTOR_REGISTRY_TOKEN");var IUj=_.P(function(z){var l=Aa5(z.triggeringElement),I=function(){return!!z.data().primaryThumbnail},b=function(){var M,x=(M=z.data())==null?void 0:M.maxHeight,g;
M=(g=z.maxHeight)==null?void 0:g.call(z);return x!=null&&M!=null?Math.min(x,M):M!=null?M:x},v=function(){var M=b();
if(M){var x;if(I()&&(x=z.includeStackHeight)!=null&&x.call(z)){var g;x=((g=z.doubleStack)==null?0:g.call(z))?8:4}else x=0;M=M-x-1;if(!(M<0)){g=Math;x=g.ceil;var G,u;var Z=gf7((u=(G=z.aspectRatio)==null?void 0:G.call(z))!=null?u:0);return x.call(g,M*Z)}}};
return _.N("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.XV({height:function(){return b()?b()+"px":void 0},
width:function(){return v()?v()+"px":void 0}})},_.N(lUw,{stackEnabled:I,
thumbnailSize:function(){var M,x;return Gd7((M=z.width)==null?void 0:M.call(z),(x=z.height)==null?void 0:x.call(z))},
doubleStack:z.doubleStack,stackColor:function(){return z.data().stackColor},
includeStackHeight:z.includeStackHeight},_.N(_.TS,{data:function(){return z.data().primaryThumbnail}},{thumbnailViewModel:function(M){var x={};
return _.N(_.iP,{data:M.data,width:z.width,height:z.height,aspectRatio:z.aspectRatio,disableRounding:z.disableRounding,className:_.m9((x.ytCollectionThumbnailViewModelHostHasStacks=I,x)),hovered:z.hovered,playbackRef:z.playbackRef})}}),_.N(_.E,{cond:function(){var M;
return l()&&((M=z.data().thumbnails)==null?void 0:M.length)},
then:function(){return _.N("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.N(z9A,{data:z.data,disableRounding:function(){return!I()}}))}})))},"Aa");
IUj.idomCompat={callbacks:{playbackRef:!0}};
var lUw=_.P(function(z){var l=z.children;var I=z.stackEnabled;var b=z.thumbnailSize;var v=z.doubleStack;var M=z.stackColor;var x=z.includeStackHeight;var g,G=(g=_.pG().resolve(_.MB(_.I2)))==null?void 0:g();return _.N(_.E,{cond:I,then:function(){return _.N(iSp,{data:function(){var u,Z;return{experimentEnabled:!0,thumbnailSize:b(),doubleStack:v==null?void 0:v(),color:G?M==null?void 0:(u=M())==null?void 0:u.darkTheme:M==null?void 0:(Z=M())==null?void 0:Z.lightTheme,enableResponsiveMode:!1,includeStackHeight:x==
null?void 0:x()}}},l)},
else:function(){return l}})},"Ba");var baA=new _.yH("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Q8;_.FJ={calledOnce:!0,state:"visible"};Q8={calledOnce:!0,state:"hidden"};_.YQ=_.P(function(z){var l=z.data;var I=z.customCommandResolver;var b=z.className;var v=z.delayedClassName;var M=z.animationEntityKey;var x=z.isCompactWidth;var g=z.isContentWidth;z=_.D(_.Z_(!1,void 0,"pC3tUb"));var G=z.next().value,u=z.next().value,Z=_.Df(M,""),H=_.F1(M4Q,Z),y=function(){var H7,P7;return(P7=(H7=H())==null?void 0:H7.value)!=null?P7:!1},f=function(){_.pE(_.cU("booleanEntity",Z(),{key:Z(),
value:!0}));W=void 0};
M=_.D(_.Br(y));var R=M.next().value,F=M.next().value;M=_.D(_.Br(y));var Y=M.next().value,c=M.next().value;M=_.D(_.Br(function(){var H7;return y()?(H7=l().styleTransitionConfig)==null?void 0:H7.destinationStyle:void 0}));
var d=M.next().value,V=M.next().value,A=function(){var H7=Object.assign({},l(),d()&&{style:d()});var P7,o1,z_=H7.label,dw=(P7=H7.interaction)==null?void 0:(o1=P7.accessibility)==null?void 0:o1.label;P7=H7.iconImage?H7.label&&H7.label.content?H7.iconLeading?"leading":"trailing":"icon-only":void 0;H7={formattedButtonText:z_,accessibilityLabel:dw,style:UI7(H7.style),type:alH(H7.style),state:"active",size:Lk1(H7.size),iconPosition:P7,disabled:!1,aTagConfig:nuS(H7,I)};_.C("enable_desktop_vdcbg_components")&&
(H7.focused=G());return H7},W;
M=_.ps({visibilityCallback:function(H7){var P7,o1=(P7=l().interaction)==null?void 0:P7.onFirstVisible;H7&&o1&&_.ae(o1)},
showOption:_.FJ});var L=function(){return CF7(A(),!!l().iconImage)};
z={};var lH={};b=_.m9(function(){return"ytwAdButtonViewModelHost"},function(){return l().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var H7=!!l().delayedAppearanceConfig,P7=R();
return H7?P7?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var H7=!!l().delayedAppearanceConfig,P7=Y();
return H7?P7?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!l().delayedAppearanceConfig||R()?v==null?void 0:v():""},(z.ytwAdButtonViewModelHostCompactWidth=function(){return x==null?void 0:x()},z),(lH.ytwAdButtonViewModelHostContentWidth=function(){return g==null?void 0:g()},lH),b!=null?b:"");
var Gk=function(){var H7,P7=(H7=l().delayedAppearanceConfig)==null?void 0:H7.delayedInvisibleSeconds;P7&&(W=_.o0(_.ow,function(){F(!0);uH()},P7*1E3))},uH=function(){var H7,P7=(H7=l().delayedAppearanceConfig)==null?void 0:H7.delayedVisibleSeconds;
P7&&(W=_.o0(_.ow,function(){c(!0);Xt()},P7*1E3))},Xt=function(){var H7,P7=(H7=l().styleTransitionConfig)==null?void 0:H7.styleTransitionSeconds,o1,z_=(o1=l().styleTransitionConfig)==null?void 0:o1.destinationStyle;
P7&&z_?W=_.o0(_.ow,function(){V(z_);f()},P7*1E3):f()},R1=function(){var H7;
return(H7=l().delayedAppearanceConfig)==null?void 0:H7.transitionDurationSeconds};
_.Sm(function(){Gk()});
_.cb(function(){W&&_.ow.cancelJob(W)});
return _.N("ad-button-view-model",{"on:focusin":_.KK(_.C("enable_desktop_vdcbg_components")?function(){var H7=_.pG().resolve(_.MB(_.T$));H7&&u(H7.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.KK(_.C("enable_desktop_vdcbg_components")?function(){u(!1);return!1}:void 0),
class:b,el:_.xl(M),style:_.XV({"transition-duration":function(){return R1()?R1()+"s":void 0}})},_.N(_.E,{cond:A,
then:function(){return _.N(_.PZ,{data:A,icon:function(){return _.N(_.E,{cond:function(){return l().iconImage},
then:function(H7){return _.N(_.pK,{data:H7,alt:"",targetWidth:L,targetHeight:L,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var vgj=_.P(function(z){var l=z.data;z=function(){return l().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var I=_.ps({visibilityCallback:function(M){var x,g=(x=l().interaction)==null?void 0:x.onFirstVisible;M&&g&&_.ae(g)},
showOption:_.FJ}),b={},v={};return _.N("ad-button-group-view-model",{class:_.m9("ytwAdButtonGroupViewModelHost",(b.ytwAdButtonGroupViewModelHostCompactWidth=z,b)),el:_.xl(I)},_.N("div",{class:_.m9("ytwAdButtonGroupViewModelHostSecondaryButton",(v.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=z,v))},_.N(_.TS,{data:function(){return l().secondaryAdButton}},{adButtonViewModel:function(M){return _.N(_.YQ,{data:M.data})}})),_.N("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.N(_.TS,
{data:function(){return l().primaryAdButton}},{adButtonViewModel:function(M){return _.N(_.YQ,{data:M.data})}})))},"Da");var MEj=_.P(function(z){var l=function(){var I;return((I=z.data())==null?void 0:I.answers)||[]};
return _.N("yt-survey-icons",{class:"ytSurveyIconsHost"},_.N("div",{class:"ytSurveyIconsHeader"},_.N("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=z.data())==null?void 0:I.text}),_.N("div",null,_.N(_.PZ,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var I;(I=z.onDismiss)==null||I.call(z)}}},
iconName:"DISMISSAL"}))),_.N("div",null,_.N("div",{class:"ytSurveyIconsAnswers"},_.N(_.qy,{each:function(){return l()},
keyBy:"INDEX"},function(I,b){return _.N("div",null,_.N(_.PZ,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var v;(v=z.onSelect)==null||v.call(z,I(),b)}}},
icon:function(){return _.N(_.qt,{icon:function(){var v,M;return(v=I())==null?void 0:(M=v.icon)==null?void 0:M.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.N("div",{class:"ytSurveyIconsAnswersText"},_.N("div",null,function(){return l().length?l()[0].text:""}),_.N("div",null,function(){return l().length?l()[l().length-1].text:""}))))},"Ea");var pSA=_.P(function(z){var l=_.xl(_.AR(function(){var G;return(G=z.data())==null?void 0:G.rendererContext},void 0,void 0,void 0,!0)),I=_.D(_.Z_(!1,void 0,"GW0yjf")),b=I.next().value,v=I.next().value,M=_.F1(erS,function(){var G;
return(G=z.data().keys)==null?void 0:G.surveyEntityKey}),x=_.F1(w5Q,function(){var G;
return(G=z.data().keys)==null?void 0:G.surveyStateEntityKey});
_.ay("ytd-slimline-survey-show-action",function(){v(!1)});
var g=function(){var G,u;var Z=(G=x())==null?void 0:(u=G.questionStack)==null?void 0:u[0];if(Z!==void 0){var H,y;return(H=M())==null?void 0:(y=H.questions)==null?void 0:y[Z]}};
I={};return _.N("yt-slimline-survey-view-model",{el:l,class:_.m9("ytSlimlineSurveyViewModelHost",(I.ytSlimlineSurveyViewModelCollapsed=function(){return b()},I))},_.N("div",{class:"ytSlimlineSurveyViewModelContainer"},_.N(_.E,{cond:function(){var G;
return((G=g())==null?void 0:G.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.N(MEj,{data:function(){return g()},
onSelect:function(G,u){var Z,H;return _.O(function(y){v(!0);if(H=(Z=z.data())==null?void 0:Z.onSelectRating)_.ae(H),_.pE(NKu(u));_.qe(y)})},
onDismiss:function(){v(!0);var G;var u=(G=M())==null?void 0:G.dismissalFeedbackToken;G=u?{feedbackEndpoint:{feedbackToken:u}}:void 0;G&&_.nE(G,{form:{element:l.value}})}})}})))},"Fa");var DEu=_.P(function(z){return _.N("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.N(_.TS,{data:function(){var l;return(l=z.data())==null?void 0:l.attachments}},{flexibleActionsViewModel:function(l){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(_.xJ,{data:l.data,
layout:function(){var I;return((I=z.lockupStyle())==null?void 0:I.arrangement)===1?0:1},
justifyContentOverride:function(){var I;return((I=z.lockupStyle())==null?void 0:I.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(l){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(pSA,{data:l.data}))},
expandableMetadataViewModel:function(l){l=l.data;var I;return _.N("div",{class:_.m9("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(I=_.pG().resolve(_.MB(baA)))==null?void 0:I({data:l}))},
adButtonGroupViewModel:function(l){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(vgj,{data:l.data}))},
adButtonViewModel:function(l){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(_.YQ,{data:l.data,isCompactWidth:!0}))}}))},"Ga");var Imp=_.OI("rich_grid_min_item_width",310),z$Q=_.OI("rich_grid_max_item_width",500);var xEj=_.P(function(z){var l=z.data;return _.N("br-nz-badge-shape",{class:_.m9(function(){return g_t(l().brNzRatingBadgeType)}),
role:function(){return l().accessibilityText?"img":void 0},
"aria-label":function(){return l().accessibilityText}},function(){var I;
return(I=l())==null?void 0:I.text})},"Ha");_.T2=_.P(function(z){var l=function(){var I=z.data(),b,v,M;if(I){var x=!((b=z.workaroundShortsIsThumbnailBadge)==null||!b.call(z));b=(v=z.modern)==null?void 0:v.call(z);v=(M=z.numBadgesInRow)==null?void 0:M.call(z);var g;a:switch(I.badgeStyle){case "BADGE_OVERLAY":M=!0;break a;default:M=!1}I={type:x?17:G7x(I.badgeStyle),brNzRatingBadgeType:NMx(I.badgeStyle),text:I.badgeText,icon:I.iconName,isOverlay:M,modern:b||_.C("web_modern_badge_view_model"),numBadgesInRow:v,accessibilityText:I.accessibilityLabel||
((g=_.k(I.rendererContext,_.YM))==null?void 0:g.label)}}else I=void 0;return I};
return _.N("yt-badge-view-model",{class:_.m9("ytBadgeViewModelHost",z.class)},_.N(_.Q7,null,_.N(_.is,{when:function(){var I;return!((I=l())==null||!I.brNzRatingBadgeType)}},function(){return _.N(xEj,{data:function(){return l()}})}),_.N(_.is,{when:function(){return!!l()&&!l().brNzRatingBadgeType}},function(){return _.N(_.Nm,{data:function(){return l()}})})))},"Ia");
_.T2.idomCompat=!0;var uKG,E_x;uKG=16/9;E_x=2/3;_.cm=_.P(function(z){var l=z.data;var I=z.className;var b=z.imageSizeConfig;var v=z.notifyOnLoaded;var M=function(){return l().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},x=function(){var y;
return _.w5((y=l())==null?void 0:y.rendererContext)};
z={};z=(z.ytContentPreviewImageViewModelHost=!0,z.ytContentPreviewImageViewModelCircleImage=function(){return M()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},z.ytContentPreviewImageViewModelTappable=function(){return x()},z);
var g=function(){var y,f;return(f=(y=_.k(l().rendererContext,_.YM))==null?void 0:y.label)!=null?f:""},G=function(){return HBY(l())},u=function(){var y=ZB$(M(),l().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",b==null?void 0:b(),y2k(G()),l().layoutWidth,l().layoutHeight),f=Object.assign({},y);
y.width&&(f.width=Math.round(y.width));y.height&&(f.height=Math.round(y.height));y.maxWidth&&(f.maxWidth=Math.round(y.maxWidth));y.maxHeight&&(f.maxHeight=Math.round(y.maxHeight));return f},Z=_.kz(function(){return u().height},void 0,"CxFlJb"),H=_.kz(function(){return u().width},void 0,"lb8Jhd");
return _.N("yt-content-preview-image-view-model",{el:_.xl(_.AR(function(){var y;return(y=l())==null?void 0:y.rendererContext})),
role:function(){return x()?"link":void 0},
tabindex:function(){return x()?0:void 0},
class:_.m9(I,z,function(){var y=M();var f=b==null?void 0:b();y=y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(f==null?void 0:f.size)!=null&&f.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(f==null?void 0:f.size)!=null&&f.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return y}),
style:function(){var y=u(),f=[];y.width&&f.push("width: "+y.width+"px");y.height&&f.push("height: "+y.height+"px");y.maxWidth&&f.push("max-width: "+y.maxWidth+"px");y.maxHeight&&f.push("max-height: "+y.maxHeight+"px");y.fullWidth&&f.push("width: 100%");return f.join(";")}},_.N(_.E,{cond:G,
then:function(y){return _.N(_.pK,{data:y,alt:g,"data-disabled$":function(){return!g()},
notifyOnLoaded:v,targetWidth:H,targetHeight:Z,preserveWidth:function(){return!!H()},
preserveHeight:function(){return!!Z()}})}}),_.N(_.TS,{data:function(){var y;
return(y=l())==null?void 0:y.overlays}},{thumbnailHoverOverlayViewModel:p5,
thumbnailOverlayButtonViewModel:_.amw}))},"Ja");
_.cm.idomCompat=!0;var gg4=_.P(function(z){var l=z.data;var I=z.className;var b=z.useSmallLayout;z=z.useMediumText;var v={};return _.N("yt-attribution-view-model",{el:_.xl(_.AR(function(){var M;return(M=l())==null?void 0:M.rendererContext})),
class:_.m9(I,(v.ytAttributionViewModelHost=!0,v.ytAttributionViewModelMediumText=z,v))},_.N(_.E,{cond:function(){return _.w5(l().rendererContext)},
then:function(){return _.N("button",{class:"ytAttributionViewModelTappable"},_.N(Oan,{data:l,useSmallLayout:b}))},
else:function(){return _.N(Oan,{data:l,useSmallLayout:b})}}))},"Ka"),Oan=_.P(function(z){var l=z.data;
var I=z.useSmallLayout;var b=function(){return{size:(I==null?0:I())?16:24}};
return _.N(_.xP,null,_.N(_.TS,{data:function(){return l().contentPreviewImage}},{contentPreviewImageViewModel:function(v){return _.N(_.cm,{data:v.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:b})}}),_.N(_.TS,{data:function(){return l().badge}},{badgeViewModel:function(v){return _.N(_.T2,{data:v.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.N(_.E,{cond:function(){return l().text},
then:function(){return _.N(_.Rf,{text:function(){return l().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.N(_.E,{cond:function(){return l().suffix},
then:function(){return _.N(_.Rf,{text:function(){return l().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"La");
gg4.idomCompat=!0;var GVz,N_A,Eg_,uiu,Zaw;GVz=_.P(function(z){var l=z.delimiter;var I=z.max;var b=z.index;var v=z.isStandalone;return _.N(_.E,{cond:function(){return I()-1>b()},
then:function(){var M={};return _.N("span",{class:_.m9("yt-content-metadata-view-model__delimiter",(M["yt-content-metadata-view-model__delimiter--standalone"]=v,M)),"aria-hidden":!0},l)}})},"Ma");
N_A=_.P(function(z){var l=z.metadataPart;var I=z.maxLines;return _.N(_.Rf,{text:function(){return l().text},
linkInheritColor:!0,className:function(){return fmH(I())},
userInput:!0})},"Na");
Eg_=_.P(function(z){var l=z.metadataPart;var I=z.maxLines;return _.N(_.E,{cond:function(){return l().tooltip},
then:function(b){return _.N("span",{title:b,role:"tooltip"},_.N(N_A,{metadataPart:l,maxLines:I}))},
else:function(){return _.N(N_A,{metadataPart:l,maxLines:I})}})},"Oa");
uiu=_.P(function(z){var l=z.metadataPart;var I=z.isOverlay;var b=z.useMediumText;var v=z.hideAvatar;var M=function(){return l().maxLines!==void 0?l().maxLines:1};
return _.N(_.xP,null,_.N(_.TS,{data:function(){return l().avatarStack}},{avatarStackViewModel:function(x){return _.N(_.Oq,{data:x.data,
isOverlay:I,useMediumText:b,hideAvatar:v})},
badgeViewModel:_.T2}),_.N(_.E,{cond:function(){return l().leadingIcon},
then:function(x){return _.N(_.qt,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return x().name},
size:function(){return x().width}})}}),_.N(_.E,{cond:function(){return l().text},
then:function(){return _.N(Eg_,{metadataPart:l,maxLines:M})}}),_.N(_.E,{cond:function(){return l().icon},
then:function(x){return _.N(_.qt,{className:"yt-content-metadata-view-model__icon",icon:function(){return x().name},
size:function(){return x().width}})}}))},"Pa");
Zaw=_.P(function(z){var l=z.metadataRow;var I=z.isInline;var b=z.delimiter;var v=z.isOverlay;var M=z.useMediumText;var x=z.extensions;var g=function(){var u,Z=x==null?void 0:(u=x())==null?void 0:u.lockupMetadata;u=l();var H,y;return!!((Z==null?0:(H=Z.byline)==null?0:H.hideAvatar)&&((y=_.k(u,YFM))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},G=function(){return l().metadataParts||[]};
z={};return _.N("div",{class:_.m9("yt-content-metadata-view-model__metadata-row",(z["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=I,z["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var u,Z=x==null?void 0:(u=x())==null?void 0:u.lockupMetadata;u=l();var H,y;return!!((Z==null?0:(H=Z.byline)==null?0:H.addPadding)&&((y=_.k(u,YFM))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},z["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var u;
return!!(x==null?0:(u=x())==null?0:u.lockupMetadata)&&l().badges&&!l().metadataParts},z))},_.N(_.TS,{data:function(){return l().badges}},{badgeViewModel:function(u){return _.N("div",{class:"yt-content-metadata-view-model__badge"},_.N(_.T2,{data:u.data,
numBadgesInRow:function(){var Z,H;return((Z=l())==null?void 0:(H=Z.badges)==null?void 0:H.length)||0}}))}}),_.N(_.qy,{each:G},function(u,Z){return _.N(_.xP,null,_.N(uiu,{metadataPart:u,
isOverlay:v,useMediumText:M,hideAvatar:g}),_.N(GVz,{delimiter:b,max:function(){return G().length},
index:Z,isStandalone:!1}))}),_.N(_.E,{cond:function(){return l().isSpacerRow&&!I()},
then:function(){return _.N("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Qa");
_.Sq=_.P(function(z){z=_.xC(z,{layout:0,isOverlay:!1});var l=z.data,I=z.layout,b=z.isOverlay,v=z.useMediumText,M=z.extensions,x=function(){return I()===0},g=function(){var u;
return((u=l().metadataRows)==null?void 0:u.filter(function(Z){var H,y=M==null?void 0:(H=M())==null?void 0:H.lockupMetadata,f,R;H=!!((y==null?0:(f=y.description)==null?0:f.hideDescription)&&((R=_.k(Z,YFM))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var F,Y;return!((y==null?0:(F=y.spacer)==null?0:F.hideSpacer)&&((Y=_.k(Z,YFM))==null?void 0:Y.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||H)}))||[]},G={};
return _.N("yt-content-metadata-view-model",{class:_.m9(z.className,"yt-content-metadata-view-model",(G["yt-content-metadata-view-model--inline"]=x,G["yt-content-metadata-view-model--tappable"]=function(){return _.w5(l().rendererContext)},G["yt-content-metadata-view-model--medium-text"]=v,G)),
el:_.xl(_.AR(function(){return l().rendererContext}))},_.N(_.qy,{each:g},function(u,Z){return _.N(_.xP,null,_.N(Zaw,{metadataRow:u,
isInline:x,delimiter:function(){return l().delimiter},
isOverlay:b,useMediumText:v,extensions:M}),_.N(_.E,{cond:function(){return x()&&!u.isSpacerRow},
then:function(){return _.N(GVz,{delimiter:function(){return l().delimiter},
max:function(){return g().length},
index:Z,isStandalone:!0})}}))}))},"Ra");
_.Sq.idomCompat=!0;var Hau=_.P(function(z){var l={};return _.N("yt-lockup-metadata-view-model",{class:_.m9("yt-lockup-metadata-view-model",function(){a:{var I=z.lockupStyle();if(I==null?0:I.isOverlay)I="yt-lockup-metadata-view-model--overlay";else switch(I==null?void 0:I.arrangement){case 1:I="yt-lockup-metadata-view-model--horizontal";break a;default:I="yt-lockup-metadata-view-model--vertical"}}return I},function(){a:{var I=z.lockupStyle();
if(I==null?0:I.isTiny)I="yt-lockup-metadata-view-model--tiny";else switch(I==null?void 0:I.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":I="yt-lockup-metadata-view-model--compact";break a;default:I="yt-lockup-metadata-view-model--standard"}}return I},(l["yt-lockup-metadata-view-model--overlay"]=function(){var I;
return(I=z.lockupStyle())==null?void 0:I.isOverlay},l["yt-lockup-metadata-view-model--card"]=function(){var I;
return(I=z.lockupStyle())==null?void 0:I.isCard},l["yt-lockup-metadata-view-model--centered"]=function(){var I;
return(I=z.lockupStyle())==null?void 0:I.isCentered},l["yt-lockup-metadata-view-model--typography-bump"]=function(){var I;
return(I=z.lockupStyle())==null?void 0:I.typographyBump},l["yt-lockup-metadata-view-model--legacy-typography"]=function(){var I;
return(I=z.lockupStyle())==null?void 0:I.useLegacyTypography},l["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var I;
return(I=z.lockupStyle())==null?void 0:I.useRichGridLegacyTypography},l))},_.N(_.TS,{data:function(){return z.data().image}},{avatarStackViewModel:function(I){return _.N("div",{class:"yt-lockup-metadata-view-model__avatar"},_.N(_.Oq,{data:I.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(I){return _.N("div",{class:"yt-lockup-metadata-view-model__avatar"},_.N(_.Dz,{data:I.data}))},
decoratedAvatarViewModel:function(I){return _.N("div",{class:"yt-lockup-metadata-view-model__avatar"},_.N(_.xQ,{data:I.data}))}}),_.N("div",{class:"yt-lockup-metadata-view-model__text-container"},_.N("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var I;return(I=z.data().title)==null?void 0:I.content}},_.N(_.E,{cond:function(){return z.data().title},
then:function(I){return _.N(_.cZ,{command:z.lockupCommand,className:"yt-lockup-metadata-view-model__title",ariaLabel:z.lockupAccessibilityLabel},_.N(_.Rf,{text:I,userInput:!0}))}})),_.N("div",{class:"yt-lockup-metadata-view-model__metadata"},_.N(_.TS,{data:function(){return z.data().metadata}},{contentMetadataViewModel:function(I){return _.N(_.Sq,{data:I.data,
layout:1,useMediumText:function(){var b,v;return((b=z.lockupStyle())==null?void 0:b.typographyBump)||((v=z.lockupStyle())==null?void 0:v.useRichGridLegacyTypography)},
extensions:function(){var b,v,M,x;return{lockupMetadata:{byline:{hideAvatar:((b=z.lockupStyle())==null?void 0:b.arrangement)===0,addPadding:((v=z.lockupStyle())==null?void 0:v.arrangement)===1},description:{hideDescription:!((M=z.lockupStyle())==null||!M.compactMetadata)},spacer:{hideSpacer:!((x=z.lockupStyle())==null||!x.compactMetadata)}}}}})}})),_.N(_.TS,{data:function(){return z.data().attribution}},{attributionViewModel:function(I){return _.N("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.N(gg4,{data:I.data,
useSmallLayout:!0}))}})),_.N("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.N(_.TS,{data:function(){return z.data().menuButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
buttonOverrides:function(){var b;return((b=z.lockupStyle())==null?0:b.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
Hau.idomCompat=!0;var y_w=_.P(function(z){var l=_.VK("notification-multi-action-renderer");_.c8(function(){requestAnimationFrame(function(){_.JW(l.value)})});
var I={},b={},v={};return _.N("notification-multi-action-renderer",{class:_.m9("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var M;return(M=z.useLegacyShelfStyle)==null?void 0:M.call(z)},I)),
el:l},_.N("span",{"aria-live":"polite",class:_.m9("ytNotificationMultiActionRendererTextContainer",(b.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var M;return(M=z.useLegacyShelfStyle)==null?void 0:M.call(z)},b))},_.N(_.Rf,{text:function(){return z.data().responseText}})),_.N("div",{class:_.m9("ytNotificationMultiActionRendererButtonContainer",(v.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var M;
return(M=z.useLegacyShelfStyle)==null?void 0:M.call(z)},v))},_.N(_.TS,{data:function(){var M;
return(M=z.data().buttons)==null?void 0:M.map(function(x){if(x=x.buttonRenderer){var g,G=Object,u=G.assign,Z=(g=x.icon)==null?void 0:g.iconType;g=(g=x.command||x.serviceEndpoint||x.navigationEndpoint)?{innertubeCommand:g}:void 0;x={buttonViewModel:u.call(G,{},{iconName:Z,onTap:g,trackingParams:x.trackingParams,titleFormatted:x.text?_.$C(x.text):void 0},k7f(x))}}else x=void 0;return x}).filter(function(x){return!!x})}},{buttonViewModel:function(M,x){return _.N("div",null,_.N(_.h4,{data:M.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var g;return((g=z.useModernStyles)==null?0:g.call(z))?{type:x()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var fU_=_.P(function(z){var l=_.VK("notification-text-renderer");_.c8(function(){requestAnimationFrame(function(){_.JW(l.value)})});
return _.N("notification-text-renderer",{el:l,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.N(_.Rf,{text:function(){return z.data().successResponseText}}))},"Ua");_.dA=_.P(function(z){var l=_.F1(GUS,function(){var b;return R$1((b=z.contentId)==null?void 0:b.call(z))}),I=function(){var b;
return _.k((b=l())==null?void 0:b.command,_.$K)};
return _.N(_.E,{cond:function(){var b;if(!(b=I())){var v;b=_.k((v=l())==null?void 0:v.command,J5_)}return b},
then:function(){return _.N(_.E,{cond:I,then:function(){var b={};return _.N("div",{class:_.m9("ytDismissibleItemReplacedContent",function(){var v;return mJk((v=z.aspectRatio)==null?void 0:v.call(z))})},_.N("div",{class:_.m9((b.ytDismissibleItemAspectRatioContainer=function(){var v;
return((v=z.aspectRatio)==null?void 0:v.call(z))!==void 0},b))},_.N(_.TS,{data:function(){var v;
return(v=I())==null?void 0:v.item}},{notificationMultiActionRenderer:function(v){return _.N(y_w,{data:v.data,
useModernStyles:z.useModernStyle,useLegacyShelfStyle:z.useLegacyShelfStyle})},
notificationTextRenderer:fU_})))}})},
else:z.children})},"Va");_.Cku=_.P(function(z){var l=z.data;var I=z.customCommandResolver;z=_.xl(_.ps({visibilityCallback:function(M){var x,g=(x=l().interaction)==null?void 0:x.onFirstVisible;M&&g&&_.ae(g)},
showOption:_.FJ}));var b=function(){var M;return((M=l().interaction)==null?0:M.onTap)?function(x){var g;Wku(x,(g=l().interaction)==null?void 0:g.onTap,I)}:void 0},v=function(){var M,x=l(),g=b(),G=(M=_.k(l().rendererContext,_.YM))==null?void 0:M.label;
a:switch(x.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":M=1;break a;default:M=0}return{size:BM7(x.size),type:M,onTap:g,accessibilityText:G}};
return _.N("ad-avatar-view-model",{class:function(){var M;return((M=l().interaction)==null?0:M.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:z},_.N(_.E,{cond:function(){return l().image},
then:function(M){return _.N(Imz,{data:v,image:M})}}))},"Wa");_.ot=_.P(function(z){var l=_.xC(z,{hasDot:!1,usedInMasthead:!1}),I=Object.assign({},l),b=l.data,v=l.hasDot;z=l.customCommandResolver;var M=l.usedInMasthead,x=(delete I.data,delete I.hasDot,delete I.customCommandResolver,delete I.usedInMasthead,I);l=function(){return b().style};
l!==void 0&&l!==null||_.nP(Error("Kh"));z=_.a0(function(){return b().interaction},z);
return _.N("ad-badge-view-model",{class:_.m9(function(){var g;return((g=b().interaction)==null?0:g.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var g=x.adRenderingContextType(),G=M();
b();return g!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||G?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.xl(z)},_.N(_.Nm,{data:function(){var g;b();return{type:2,text:(g=b().label)==null?void 0:g.content,adsIncludeDot:v(),isOverlay:b().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var kVA;_.Pm=_.P(function(z){var l=z.data;var I=z.customCommandResolver;var b=z.adRenderingContextType;return _.N("ad-details-line-view-model",{class:function(){var v;return((v=l().interaction)==null?0:v.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(v){var M,x=(M=l().interaction)==null?void 0:M.onFirstVisible;v&&x&&_.ae(x)},
showOption:_.FJ}),_.a0(function(){return l().interaction},I))},_.N(_.E,{cond:function(){return l().style},
then:function(v){return _.N(_.qy,{each:function(){var M;return((M=l())==null?void 0:M.attributes)||[]},
keyBy:"INDEX"},function(M){return _.N(kVA,{attribute:M,style:v,adRenderingContextType:function(){return b()}})})}}))},"Ya");
kVA=_.P(function(z){var l=z.attribute;var I=z.style;var b=z.adRenderingContextType;return _.N(_.E,{cond:function(){return l().text},
then:function(v){return _.N(_.Rf,{text:v,className:function(){var M=b();I();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var R9n=_.P(function(z){var l=z.data;var I=z.typographyBump;var b=function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
z={};return _.N(_.xP,null,_.N("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.N(_.Rf,{text:function(){return l().headline},
className:_.m9("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return b==null?void 0:b()},z.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(I==null?void 0:I())&&!(b==null?0:b())},z)),
linkInheritColor:!0}),_.N(_.E,{cond:function(){return l().description},
then:function(v){var M={};return _.N(_.Rf,{text:v,className:_.m9("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return b==null?void 0:b()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(I==null?void 0:I())&&!(b==null?0:b())},M)),
linkInheritColor:!0})}}),_.N(_.E,{cond:function(){return l().secondaryDescription},
then:function(v){var M={};return _.N(_.Rf,{text:v,className:_.m9("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return I==null?void 0:I()},M)),
linkInheritColor:!0})}}),_.N("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.N(_.E,{cond:function(){return l().adAvatar},
then:function(){return _.N("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.N(_.TS,{data:function(){return l().adAvatar}},{adAvatarViewModel:_.Cku}))}}),_.N(_.TS,{data:function(){return l().adBadge}},{adBadgeViewModel:function(v){return _.N(_.ot,{data:v.data,
hasDot:function(){return!!l().adDetailsLine},
adRenderingContextType:function(){return l().adRenderingContextType}})}}),_.N(_.TS,{data:function(){return l().adDetailsLine}},{adDetailsLineViewModel:function(v){return _.N(_.Pm,{data:v.data,
adRenderingContextType:function(){return l().adRenderingContextType}})}}))),_.N("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.N(_.TS,{data:function(){return l().menu}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
buttonOverrides:function(){a:switch(l().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var M="S";break a;default:M="M"}return{size:M}}})}})))},"$a"),mEj=_.P(function(z){var l=z.data;
var I=z.noBottomMargin;var b=z.useVideoLockupTopPadding;var v=z.typographyBump;z={};z=_.m9("ytwFeedAdMetadataViewModelHostMetadata",(z.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},z));
var M=function(){return l().adBadge};
M!==void 0&&M!==null||_.nP(Error("Lh"));M={};var x={};return _.N(_.xP,null,_.N(_.E,{cond:function(){return l().adAvatar},
then:function(){return _.N("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.N(_.TS,{data:function(){return l().adAvatar}},{adAvatarViewModel:function(g){return _.N(_.Cku,{data:g.data})}}))}}),_.N("div",{class:z},_.N("div",{class:_.m9("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return v==null?void 0:v()},M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(v==
null?void 0:v())&&_.C("web_enable_typography_bump_v2")},M))},_.N(_.Rf,{text:function(){return l().headline},
linkInheritColor:!0})),_.N(_.E,{cond:function(){return l().description},
then:function(g){return _.N(_.Rf,{text:g,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.N("div",{class:function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.C("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.N(_.TS,{data:function(){return l().adBadge}},
{adBadgeViewModel:function(g){return _.N(_.ot,{data:g.data,
hasDot:function(){return!!l().adDetailsLine},
adRenderingContextType:function(){return l().adRenderingContextType}})}}),_.N(_.TS,{data:function(){return l().adDetailsLine}},{adDetailsLineViewModel:function(g){return _.N(_.Pm,{data:g.data,
adRenderingContextType:function(){return l().adRenderingContextType}})}})),_.N(_.E,{cond:function(){return l().secondaryDescription},
then:function(g){return _.N(_.Rf,{text:g,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.N("div",{class:_.m9("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(x.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},x))},_.N(_.TS,{data:function(){return l().menu}},{buttonViewModel:_.h4})))},"ab"),hZ=_.P(function(z){var l=z.data;
var I=z.noBottomMargin;var b=z.listenToTapEvent;var v=z.setTouchEndHandler;var M=z.useVideoLockupTopPadding;var x=z.typographyBump;z=_.ps({visibilityCallback:function(H){var y,f=(y=l().interaction)==null?void 0:y.onFirstVisible;H&&f&&_.ae(f)},
showOption:_.FJ});var g=_.a0(function(){return l().interaction},void 0,function(){return b==null?void 0:b()}),G=_.D(_.Z_(!1,void 0,"a2FSrb")),u=G.next().value,Z=G.next().value;
G=_.KK(function(H){(v==null?0:v())&&!u()&&(H.currentTarget.click(),Z(!0),setTimeout(function(){Z(!1)},100));
return!1});
return _.N("feed-ad-metadata-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.xl(z,g),"on:touchend":G},_.N(_.Q7,null,_.N(_.is,{when:function(){return l().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.N(R9n,{data:l,
typographyBump:x})}),_.N(_.is,{when:function(){return l().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.N(mEj,{data:l,
noBottomMargin:I,useVideoLockupTopPadding:M,typographyBump:x})})))},"bb");var K_0,tEu;K_0=_.JR.inlinePreviewEnabledSelector;_.sq=_.P(function(z){return _.N("yt-lockup-view-model",{class:_.m9(z.className)},_.N(_.dA,{contentId:function(){return z.data().contentId},
useModernStyle:!0,aspectRatio:function(){var l,I;return((l=z.containerType)==null?void 0:l.call(z))!==3?xJk(z.data().contentType,(I=z.force16By9ThumbnailAspectRatio)==null?void 0:I.call(z)):void 0}},function(){return _.N(tEu,Object.assign({},z))}))},"cb");
tEu=_.P(function(z){z=_.xC(z,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var l=z.data,I=z.containerLayoutConfig,b=z.containerType,v=z.sizing,M=z.protectBackground,x=z.typographyBump,g=z.force16By9ThumbnailAspectRatio,G=z.thumbnailFixedWidth,u=z.thumbnailTargetWidth,Z=z.lockupExperiments,H=z.elementsPerRow;
z=_.xl(_.AR(function(){var H7;return(H7=l())==null?void 0:H7.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 y=_.nK(K_0),f=_.pG().resolve(_.MB($Jp)),R=f?{}:void 0,F=function(){var H7,P7,o1;return(o1=(P7=_.k((H7=l())==null?void 0:H7.rendererContext,_.YM))==null?void 0:P7.label)!=null?o1:void 0},Y=function(){var H7=I==null?void 0:I(),P7;
if(H7==null?0:H7.containerType){var o1=(P7=l())==null?void 0:P7.contentType;P7=Z();var z_=x(),dw=u(),Ej=M();H7=Object.assign({},OBQ(MJp(H7),bBH(H7.responsiveSize),z_,o1,H7.force16By9ThumbnailAspectRatio,dw,Ej,P7),{thumbnailFixedWidth:H7.contentPreviewWidth})}else H7=OBQ(b(),v(),x(),(o1=l())==null?void 0:o1.contentType,g(),u(),M(),Z());return H7};
f&&R&&f({enabled:function(){return y()},
itemPlaybackModel:function(){return l().itemPlayback},
thumbnailElRef:function(){return R.thumbnailElRef},
containerElRef:z,options:function(){var H7,P7=(H7=_.k(l().metadata,_.Tlp))==null?void 0:H7.endorsement;H7=R.thumbnailOverlays||[];var o1;!P7||((o1=Z())==null?0:o1.onFocusEffect)||H7.push(P7);var z_,dw;return{thumbnail:R.thumbnail,thumbnailOverlays:H7,accessibilityText:F(),thumbnailSize:R.thumbnailSize,enableRounding:Y().isCollection,containPlayerWithinThumbnail:Y().isCollection,trackingParams:(z_=_.k(l().rendererContext,_.Fa))==null?void 0:(dw=z_.loggingDirectives)==null?void 0:dw.trackingParams}}});
var c=0;f=_.D(_.Z_(!1,void 0,"GH4i8d"));var d=f.next().value,V=f.next().value;f=_.D(_.Z_(!1,void 0,"hS52Ob"));var A=f.next().value,W=f.next().value;f=_.KK(function(){var H7=y()&&l().itemPlayback;A()?(_.ow.cancelJob(c),c=_.ow.addJob(function(){V(!H7)},8,32)):V(!H7);
return!0});
var L=_.KK(function(){c&&(_.ow.cancelJob(c),c=0);V(!1)});
_.cb(function(){c&&(_.ow.cancelJob(c),c=0)});
var lH=tJQ(function(){W(!0)}),Gk=lH.touchFeedbackEvents,uH=lH.touchFeedbackOnPointerUp,Xt=lH.touchFeedbackOnPointerDown;
lH=lH.touchFeedbackOnPointerLeave;var R1={};return _.N("div",{el:z,class:_.m9("yt-lockup-view-model",function(){a:{var H7=Y();if(H7.isOverlay)H7="yt-lockup-view-model--overlay";else switch(H7.arrangement){case 1:H7="yt-lockup-view-model--horizontal";break a;default:H7="yt-lockup-view-model--vertical"}}return H7},function(){a:{var H7=Y();
if(H7.isOverlay)H7="yt-lockup-view-model--overlay";else{switch(H7.collectionStackNumber){case 1:H7="yt-lockup-view-model--collection-stack-1";break a;case 2:H7="yt-lockup-view-model--collection-stack-2";break a}H7=void 0}}return H7},function(){var H7;
return _.C3f((H7=l())==null?void 0:H7.contentId)},(R1["yt-lockup-view-model--card"]=function(){return Y().isCard},R1["yt-lockup-view-model--compact"]=function(){return Y().isTiny||Y().sizing!=="STANDARD"},R1["yt-lockup-view-model--protect-background"]=M,R1["yt-lockup-view-model--add-margins"]=function(){return Y().addMarginForFullbleed},R1["yt-lockup-view-model--centered"]=function(){return Y().isCentered},R1["yt-lockup-view-model--fullbleed"]=function(){return Y().fullbleed},R1["yt-lockup-view-model--single-column-grid"]=
function(){return H()===1&&b()===2},R1["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var H7;
return(H7=Z())==null?void 0:H7.useRichGridLegacyMargin},R1)),
"on:mousedown":Xt,"on:mouseleave":L,"on:mouseup":uH,"on:mouseover":f,"on:touchstart":Xt,"on:touchend":uH,"on:pointerleave":lH},_.N(_.cZ,{command:function(){var H7;return _.e9((H7=l())==null?void 0:H7.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return G()&&Y().arrangement===1?"width: "+G():""}},_.N(_.TS,{data:function(){var H7;
return(H7=l())==null?void 0:H7.contentImage}},{thumbnailViewModel:function(H7){return _.N(_.iP,{data:H7.data,
aspectRatio:function(){return Y().aspectRatio},
disableRounding:function(){return Y().disableRounding},
width:u,hovered:d,isClip:function(){var P7;return((P7=l())==null?void 0:P7.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:$IQ(R),lockupExperiments:function(){return Z()}})},
collectionThumbnailViewModel:function(H7){return _.N(IUj,{data:H7.data,aspectRatio:function(){return Y().aspectRatio},
disableRounding:function(){return Y().disableRounding},
width:u,doubleStack:function(){return Y().collectionStackNumber===2},
hovered:d,playbackRef:$IQ(R)})},
decoratedAvatarViewModel:_.xQ})),_.N("div",{class:"yt-lockup-view-model__metadata"},_.N(_.TS,{data:function(){var H7;return(H7=l())==null?void 0:H7.metadata}},{lockupMetadataViewModel:function(H7){return _.N(Hau,{data:H7.data,
lockupStyle:Y,lockupCommand:function(){var P7;return _.e9((P7=l())==null?void 0:P7.rendererContext)},
lockupAccessibilityLabel:function(){return F()}})},
feedAdMetadataViewModel:function(H7){return _.N(hZ,{data:H7.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:x})}}),_.N(_.TS,{data:function(){var H7;
return(H7=l())==null?void 0:H7.attachmentSlot}},{lockupAttachmentsViewModel:function(H7){return _.N(DEu,{data:H7.data,
lockupStyle:Y})}})),_.N(_.SD,{model:function(){a:{switch(Y().collectionStackNumber){case 1:var H7=8;
break a;case 2:H7=12;break a}H7=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:H7}},
pointerDownEvent:Gk.pointerDownEvent,pointerUpEvent:Gk.pointerUpEvent,pointerLeaveEvent:Gk.pointerLeaveEvent}))},"db");
_.sq.idomCompat=!0;_.uO(_.sq,"yt-lockup-view-model",{props:{data:_.mB,containerLayoutConfig:_.mB,containerType:_.mB,sizing:_.mB,protectBackground:_.mB,typographyBump:_.mB,thumbnailFixedWidth:_.mB,thumbnailTargetWidth:_.mB,force16By9ThumbnailAspectRatio:_.mB,className:_.mB,lockupExperiments:_.mB,elementsPerRow:_.mB}});var FDk,B__=_.P(function(z){var l=_.xC(z,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),I=l.text,b=l.alwaysShowTruncationText;z=l.truncationText;var v=l.onTextClick,M=l.maxLines,x=l.disableTextMask,g=l.textStyle,G=l.accessibilityLabel,u=l.textSize,Z=l.alwaysTruncateAtMaxLines,H=l.expandOnClick;l=_.D(_.Z_(!1,void 0,"EzA1q"));var y=l.next().value,f=l.next().value;l=_.KK(function(){H()&&f(!y());v==null||v()});
var R=function(){a:switch(u()){case "medium":var L=2;break a;case "large":L=2.2;break a;default:L=1.8}return L},F=TM1(I,function(){return y()?Infinity:M()},R,x,Z,y),Y=F.isTruncated;
I=F.displayText;Z=F.contentRef;var c=F.hiddenRef,d=F.placeholderTruncationTextRef,V=F.hiddenTruncationTextRef;F=F.truncationTextRef;var A={},W={};return _.N("truncated-text",{class:_.m9((A["yt-truncated-text"]=!0,A["yt-truncated-text--overlay"]=function(){return g()==="overlay"},A["yt-truncated-text--medium-text"]=function(){return u()==="medium"},A["yt-truncated-text--large-text"]=function(){return u()==="large"},A["yt-truncated-text--primary-text"]=function(){return g()==="primary-text"},A)),
"on:click":l,style:function(){return"line-height: "+R()+"rem;"}},_.N("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:Z,style:function(){return y()?"":"max-height: "+M()*R()+"rem;"}},_.N(_.Rf,{text:I}),_.N("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:d,style:function(){return"line-height: "+R()+"rem;"}},_.N(_.Rf,{text:z}))),_.N("truncated-text-content",{class:_.m9("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:c,style:function(){return y()?"":"max-height: "+M()*R()+"rem;"},
"aria-hidden":"true"},_.N(_.Rf,{text:I}),_.N("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:V,style:function(){return"line-height: "+R()+"rem;"}},_.N(_.Rf,{text:z}))),_.N("button",{"aria-label":G,
class:_.m9((W["yt-truncated-text__absolute-button"]=function(){return!x()},W["yt-truncated-text__bottom-button"]=function(){return x()},W["yt-truncated-text--hidden"]=function(){return!(!y()&&(b!=null&&b()||Y()))},W)),
el:F,style:function(){return"line-height: "+R()+"rem;"}},_.N(_.Rf,{text:z})))},"eb");
B__.idomCompat={callbacks:{onTextClick:!0}};var iaw=_.P(function(z){var l=z.data;z=z.className;var I=_.kz(function(){return SoQ(l())},void 0,"uDhDke"),b=_.N(_.xP,null,_.N(_.E,{cond:function(){return l().heroText||l().image},
then:function(){return _.N(XSA,{data:l})}}),_.N(qPz,{data:l,
sizeSmall:function(){return l().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.N("yt-video-attribute-view-model",{class:z},_.N("div",{class:function(){var v=l();a:switch(v.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var M="yt-video-attribute-view-model--vertical";break a;default:M="yt-video-attribute-view-model--horizontal"}a:switch(v.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var x="yt-video-attribute-view-model--image-small";break a;default:x="yt-video-attribute-view-model--image-large"}a:switch(v.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var g=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":g="yt-video-attribute-view-model--image-avatar";break a;default:g=""}a:switch(v.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var G="yt-video-attribute-view-model--metadata-header";break a;default:G=""}a:switch(v.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var u="yt-video-attribute-view-model--container-card";break a;default:u=""}return["yt-video-attribute-view-model",M,x,
g,G,u,SoQ(v)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.XV({"background-color":function(){var v=l();if(v.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var M="";else{M=v.lightColorPalette;v=v.darkColorPalette;var x,g=((x=_.pG().resolve(_.MB(_.I2)))==null?0:x())&&v?v:M;M=(M=g==null?void 0:g.section2Color)?_.aD(M):""}return M}})},_.N(_.E,{cond:I,
then:function(){return _.N(_.cZ,{className:"yt-video-attribute-view-model__content-container",command:I,role:"group",ariaLabel:function(){return l().title}},b)},
else:function(){return _.N("div",{class:"yt-video-attribute-view-model__content-container"},b)}})))},"fb");
iaw.idomCompat=!0;var XSA=_.P(function(z){var l=z.data;var I,b=(I=_.pG().resolve(_.MB(_.I2)))==null?void 0:I(),v=function(){return b&&l().darkThemeImage?l().darkThemeImage:l().image},M=_.kz(function(){return dJx(l())},void 0,"UDqj0b");
return _.N("div",{class:"yt-video-attribute-view-model__hero-section"},_.N(_.Q7,null,_.N(_.is,{when:v},function(){return _.N(_.pK,{data:function(){return v()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.N(_.is,{when:function(){return l().heroText}},function(){return _.N("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.N("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return l().heroText}))})),_.N(_.E,{cond:function(){return l().overflowMenuOnTap},
then:function(){return _.N("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.N(_.PZ,{data:M,iconName:"MORE_VERT"}))}}))},"gb");
XSA.idomCompat=!0;var qPz=_.P(function(z){var l=z.data;z=z.sizeSmall;var I=function(){return l().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},b=_.kz(function(){return Ui(_.LE({innertubeCommand:SoQ(l())}))?"link":SoQ(l())?"button":"group"},void 0,"e2MmYe"),v={};
return _.N("div",{class:_.m9("yt-video-attribute-view-model__metadata",(v["yt-video-attribute-view-model--small-font"]=z,v)),role:b},_.N("h1",{class:"yt-video-attribute-view-model__title"},function(){return l().title}),_.N(_.E,{cond:function(){return l().subtitle},
then:function(){return _.N("h4",{class:"yt-video-attribute-view-model__subtitle"},_.N(_.E,{cond:I,then:function(){return _.N(B__,{text:function(){return c2x(l().subtitle)},
truncationText:function(){return c2x(l().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.N("span",null,function(){return l().subtitle})}}))}}),_.N(_.E,{cond:function(){return l().secondarySubtitle},
then:function(M){return _.N("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.N(_.Rf,{text:function(){var x=M();if(x!=null&&x.attachmentRuns){for(var g=[],G=_.D(x.attachmentRuns),u=G.next();!u.done;u=G.next())u=u.value,u.element&&g.push(Object.assign({},u,{element:Object.assign({},u.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));x=Object.assign({},x,{attachmentRuns:g})}return x}}))}}),_.N(_.TS,
{data:function(){return l().buttonViewModel}},{buttonViewModel:function(M){return _.N(_.h4,{data:M.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
qPz.idomCompat=!0;_.uO(iaw,"yt-video-attribute-view-model",{props:{data:_.mB,className:_.mB}});var rA=function(){var z=_.q.apply(this,arguments)||this;z.useHighlightStyling=_.C("web_enable_deeper_metadata_highlight_styling");z.isSearch=!1;z.JSC$15157_lastScrollContainerWidth=NaN;z.pageLoadingFromNavigation=!1;z.currentIndex=0;z.supportComponentResize=!1;return z};
_.m(rA,_.q);_.p=rA.prototype;
_.p.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}}}}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.KJ(this,this.onPageChange))};
_.p.detached=function(){document.removeEventListener("yt-page-type-changed",_.KJ(this,this.onPageChange))};
_.p.getItemsPath=function(){return"data.cards"};
_.p.onIronResize=function(){this.updateListStyles()};
_.p.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var z;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(z=this.data)==null?void 0:z.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.C("problem_walkthrough_sd")&&!!this.centerItems};
_.p.computeCardListStyle=function(z){return z||null};
_.p.computeEmpty=function(z){return!this.get("cards.length",z)};
_.p.computeThumbnailStyle=function(z){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",z)||null};
_.p.computeHasSubtitle=function(z){return!!this.get("header.richListHeaderRenderer.subtitle",z)};
_.p.computeInitialCountNumber=function(z){return this.hasSquareMiniApp&&z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.p.computeUseFloorScrolling=function(z){return z==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.p.computeHasGameCard=function(z){return(z=this.get("cards",z))?z.some(function(l){return l.gameCardRenderer}):!1};
_.p.computeCenterHeaderTitle=function(z){return!(z==null||!z.centerHeaderTitle)};
_.p.computeHasPortraitMiniApp=function(z){return(z=z==null?void 0:z.cards)?z.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.p.computeHasSquareMiniApp=function(z){return(z=z==null?void 0:z.cards)?z.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.p.computeHasSkinnyWidthPortraitMiniApp=function(z){return(z=z==null?void 0:z.cards)?z.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.width===135}):!1};
_.p.computeCenterItems=function(z){return!!z};
_.p.computeHasInfoPanel=function(z){var l;return z==null?void 0:(l=z.cards)==null?void 0:l.some(function(I){return I.infoPanelContentRenderer})};
_.p.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.p.getItemByIndex=function(z){var l=this.items.children;return l&&l.length>z?l[z]:void 0};
_.p.onPageChange=function(){var z=this;this.pageLoadingFromNavigation=!0;_.ow.addJob(function(){z.pageLoadingFromNavigation=!1;_.EK(z.hostElement,"yt-terminate-video-preview-action")},8)};
_.p.updateListStyles=function(){if(_.C("problem_walkthrough_sd")&&this.JSC$15157_scrollContainer!==void 0){var z=this.JSC$15157_scrollContainer.clientWidth;z!==this.JSC$15157_lastScrollContainerWidth&&(this.JSC$15157_lastScrollContainerWidth=z,_.R8(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(z*.8,415)+"px"}),_.gC(this.hostElement,"iron-resize"))}};
_.vP.Object.defineProperties(rA.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.C("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.cards)==null?0:(I=l[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.cards)==null?0:(I=l[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return _.C("enable_desktop_amsterdam_info_panels")&&!!((z=this.data)==null?0:(l=z.cards)==null?0:(I=l[0])==null?0:I.infoPanelContentRenderer)}}});
rA.prototype.dataChanged=rA.prototype.dataChanged;rA.prototype.onIronResize=rA.prototype.onIronResize;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],rA.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.t(_.Nd),_.w("design:type",Object)],rA.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rA.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rA.prototype,"useCustomColors",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],rA.prototype,"useHighlightStyling",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.w("design:type",Object)],rA.prototype,"cardListStyle",void 0);_.e([_.X({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.w("design:type",Boolean)],rA.prototype,"empty",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.w("design:type",Boolean)],rA.prototype,"hasSubtitle",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.w("design:type",Boolean)],rA.prototype,"thumbnailStyle",void 0);_.e([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.w("design:type",Boolean)],rA.prototype,"hasGameCard",void 0);_.e([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.w("design:type",Boolean)],rA.prototype,"centerHeaderTitle",void 0);
_.e([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.w("design:type",Boolean)],rA.prototype,"hasPortraitMiniApp",void 0);_.e([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.w("design:type",Boolean)],rA.prototype,"hasSquareMiniApp",void 0);_.e([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.w("design:type",Boolean)],rA.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.e([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.w("design:type",Boolean)],rA.prototype,"hasInfoPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],rA.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],rA.prototype,"inlineStructuredDescription",void 0);_.e([_.qX("#scroll-container"),_.w("design:type",HTMLDivElement)],rA.prototype,"JSC$15157_scrollContainer",void 0);
_.e([_.X({computed:"computeInitialCountNumber(data.style.type)"}),_.w("design:type",Number)],rA.prototype,"initialCount",void 0);_.e([_.X({computed:"computeUseFloorScrolling(data.style.type)"}),_.w("design:type",Boolean)],rA.prototype,"useFloorScrolling",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.w("design:type",Boolean)],rA.prototype,"centerItems",void 0);_.e([_.X(),_.w("design:type",Object)],rA.prototype,"pageLoadingFromNavigation",void 0);
_.e([_.X(),_.w("design:type",Object)],rA.prototype,"currentIndex",void 0);_.e([_.X(),_.w("design:type",Number)],rA.prototype,"scrollCount",void 0);_.e([_.X(),_.w("design:type",Object)],rA.prototype,"supportComponentResize",void 0);_.e([_.qX("#items"),_.w("design:type",HTMLDivElement)],rA.prototype,"items",void 0);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rA.prototype,"onIronResize",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rA.prototype,"dataChanged",null);_.e([_.X({reflectToAttribute:!0}),_.B("inlineStructuredDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rA.prototype,"hideNavigationButton",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rA.prototype,"modernChapters",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rA.prototype,"hasVideoAttributeViewModels",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],rA.prototype,"modernInfoPanels",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],rA);
_.r(rA,"ytd-horizontal-card-list-renderer",function(){if(mJ_!==void 0)return mJ_;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return mJ_=z},{mode:_.yP("kevlar_poly_si_batch_j072")?1:2});var F_M=_.P(function(z){var l=z.data;var I={};return _.N("video-summary-content-view-model",{class:_.m9("videoSummaryContentViewModelHost",z.className,(I.videoSummaryContentViewModelHostIsSearch=z.isSearch,I))},_.N(_.qy,{each:function(){var b=[],v=l().paragraphs;if(v==null||!v.length)return[];for(var M=0;M<v.length;M++){var x=_.k(v[M],Se4),g=void 0;M>0&&(g=_.k(v[M-1],Se4));g&&!!g.marker===!!x.marker?b[b.length-1].paragraphs.push(x):b.push({isList:!!x.marker,paragraphs:[x]})}return b},
keyBy:"INDEX"},function(b){return _.N(_.E,{cond:function(){return b().isList},
then:function(){return _.N("ul",{class:"videoSummaryContentViewModelList"},_.N(_.qy,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(v){return _.N("li",{class:"videoSummaryContentViewModelListItem"},_.N(_.Rf,{text:function(){return v().text}}))}))},
else:function(){return _.N(_.qy,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(v){return _.N("p",{class:"videoSummaryContentViewModelParagraph"},_.N(_.Rf,{text:function(){return v().text}}))})}})}),_.N(_.E,{cond:function(){return!!_.k(l().likeButtonViewModel,_.bS)&&!!_.k(l().dislikeButtonViewModel,_.Ic)},
then:function(){return _.N("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.N("div",{class:"videoSummaryContentViewModelLikeButton"},_.N(_.gP,{data:function(){return _.k(l().likeButtonViewModel,_.bS)},
disableIconAnimation:!0})),_.N(_.Os,{data:function(){return _.k(l().dislikeButtonViewModel,_.Ic)}}))}}))},"ib");
F_M.idomCompat=!0;_.uO(F_M,"video-summary-content-view-model",{props:{data:_.mB,isSearch:_.mB,className:_.mB}});var $Q=function(){var z=_.q.apply(this,arguments)||this;var l,I;z.isExpanded=(I=(l=z.data)==null?void 0:l.isExpanded)!=null?I:!1;z.disableExpand=!1;z.showProminentLabel=!1;z.showRightSideLabel=!0;z.toggleExpandableContent=function(b){z.disableExpand||(b.stopPropagation(),_.xU(_.MX(b),z.hostElement,["info","expanded-subtitle"])||(z.isExpanded=!z.isExpanded,z.ytRendererBehavior.logExplicitClick(z.data),z.JSC$15168_cardList&&!_.C("expandable_metadata_a11y_fix_ks")&&_.IR(z,function(){_.j8(z.hostElement)})))};
z.useSquareThumbnail=!1;z.contentHiddenWithDisplayNone=_.C("web_expandable_metadata_content_hidden_with_display_none");z.startX=0;return z};
_.m($Q,_.q);_.p=$Q.prototype;_.p.computeUseSquareThumbnail=function(){var z;return(z=this.data)==null?void 0:z.useSquareThumbnail};
_.p.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"}}}}};
_.p.dataChanged=function(){if(this.data){var z,l;this.isExpanded=(l=(z=this.data)==null?void 0:z.isExpanded)!=null?l:!1;var I,b,v,M;if(z=this.isDarkTheme()?(I=this.data)==null?void 0:(b=I.colorData)==null?void 0:b.darkColorPalette:(v=this.data)==null?void 0:(M=v.colorData)==null?void 0:M.lightColorPalette){var x,g;if((x=this.data)==null?0:(g=x.colorData)==null?0:g.vibrantColorPalette)z.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Pr(this.hostElement,z)}}};
_.p.isExpandedChanged=function(){this.isExpanded&&this.JSC$15168_cardList&&_.gC(this.JSC$15168_cardList,"iron-resize")};
_.p.computeIsExpanded=function(z){return!!z.isExpanded};
_.p.computeShowProminentLabel=function(z,l){var I;return!!(z==null?0:(I=z.header)==null?0:I.showLeadingCollapsedLabel)&&!l};
_.p.computeShowRightSideLabel=function(z,l){var I;return!(z==null?0:(I=z.header)==null?0:I.showLeadingCollapsedLabel)&&!l};
_.p.captureContentClick=function(z){if(!this.disableExpand)if(_.C("expandable_metadata_fix_killswitch")){var l=z.target;_.ilp(l,"ytd-macro-markers-list-item-renderer")||z.stopPropagation();(l==null?void 0:l.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.xU(_.MX(z),this.hostElement,["items"])||_.DX(_.MX(z),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.p.timestampClick=function(z){z.stopPropagation();var l,I;(z=(l=this.data)==null?void 0:(I=l.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(z)};
_.p.onDown=function(z){z.stopPropagation();this.startX=z.detail?z.detail.x:0};
_.p.onUp=function(z){this.skipKeyInteraction(z)&&z.stopPropagation()};
_.p.skipKeyInteraction=function(z){var l=z.target;if((l==null?void 0:l.id)==="scroll-container"||(l==null?void 0:l.id)==="items"||z.detail&&z.detail.x!==this.startX)return!0;z=_.MX(z);z=_.D(z);for(l=z.next();!l.done;l=z.next()){l=l.value;if(l===this.hostElement)break;if(l.hasAttribute&&l.hasAttribute("skip-key-interaction"))return!0}return!1};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.vP.Object.defineProperties($Q.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var z;return!!_.k((z=this.data)==null?void 0:z.expandedContent,ciM)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var z;return!!_.k((z=this.data)==null?void 0:z.expandedContent,_.c4M)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.useCustomColors)&&!((l=this.data)==null||!l.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!((z=this.data)==null?0:(l=z.header)==null?0:l.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!((z=this.data)==null?0:(l=z.header)==null?0:l.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!((z=this.data)==null?0:(l=z.header)==null?0:l.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.C("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
$Q.prototype.onUp=$Q.prototype.onUp;$Q.prototype.onDown=$Q.prototype.onDown;$Q.prototype.isExpandedChanged=$Q.prototype.isExpandedChanged;$Q.prototype.dataChanged=$Q.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],$Q.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$Q.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$Q.prototype,"isExpanded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$Q.prototype,"disableExpand",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],$Q.prototype,"isSearch",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],$Q.prototype,"isWatch",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.w("design:type",Object)],$Q.prototype,"showProminentLabel",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.w("design:type",Object)],$Q.prototype,"showRightSideLabel",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"hasVideoSummary",null);_.e([_.X({value:!1,reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"hasLockupViewModel",null);_.e([_.X({reflectToAttribute:!0}),_.B("data","isWatch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"useCustomColors",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"showInfoButton",null);_.e([_.B("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"showTimestamp",null);_.e([_.B("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"showExpandedSubtitle",null);
_.e([_.B("data","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"showThumbnail",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$Q.prototype,"useVppShoppingDestinationStyle",null);_.e([_.X(),_.w("design:type",Object)],$Q.prototype,"toggleExpandableContent",void 0);_.e([_.qX("ytd-horizontal-card-list-renderer"),_.w("design:type",Object)],$Q.prototype,"JSC$15168_cardList",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.w("design:type",Object)],$Q.prototype,"useSquareThumbnail",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$Q.prototype,"contentHiddenWithDisplayNone",void 0);_.e([_.B("isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$Q.prototype,"contentHidden",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$Q.prototype,"dataChanged",null);_.e([_.By("isExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$Q.prototype,"isExpandedChanged",null);_.e([_.tP("down"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$Q.prototype,"onDown",null);
_.e([_.tP("up"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$Q.prototype,"onUp",null);_.e([_.S({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],$Q);
_.r($Q,"ytd-expandable-metadata-renderer",function(){if(QdA!==void 0)return QdA;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return QdA=z},{mode:1});var QTA,YPI=function(){if(QTA!==void 0)return QTA;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return QTA=z};_.uO(_.Oq,"yt-avatar-stack-view-model",{props:{className:_.mB,data:_.mB,overrides:_.mB,isOverlay:_.mB,useMediumText:_.mB,decorations:_.mB,hideAvatar:_.mB}});_.sW("itemSectionRenderer","videoRenderer","ytd-video-renderer");var eq=function(){var z=_.q.apply(this,arguments)||this;z.disableExpand=!1;z.shouldShowChannelInfo=!1;z.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return z};
_.m(eq,_.q);_.p=eq.prototype;_.p.computeUseSearchUi=function(){var z,l;return this.isSearch||((z=this.data)==null?void 0:(l=z.style)==null?void 0:l.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.computeUseThreeLineTitle=function(){var z;return((z=this.data)==null?void 0:z.maxTitleLines)===3};
_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.C("polymer_video_renderer_defer_menu")&&!RRw?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"}}}};
_.p.attached=function(){_.fJ(this.hostElement,"blue-links",_.C("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.CJ(_.Hy(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var z=this.get("data.buttons.buttonRenderer.serviceEndpoint"),l;z&&((l=_.k(z.commandMetadata,_.nw))==null?0:l.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(z);this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15173_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.JSC$15173_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$15173_inlinePreviewHoverListener)==null||vJ(z)};
_.p.onTextWrapperClick=function(z){var l,I,b=this.hideTranslation?(l=this.data)==null?void 0:l.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;l=_.xU(_.MX(z),this.hostElement,["expandable-metadata"]);!b||l&&!_.C("expandable_metadata_fix_killswitch")||_.DX(_.MX(z),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.gC(this.hostElement,"yt-navigate",{endpoint:b})};
_.p.computeThumbnailWidth=function(z,l,I,b,v){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:b?v==="MASSIVE"?600:v==="BIG"?500:v==="MEDIUM"?450:420:I?360:l?128:z?210:246};
_.p.computeUseBiggerThumbs=function(z){return z&&_.C("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.p.computeVideoStyle=function(){if(_.C("enable_video_style")){var z,l;return(z=this.data)==null?void 0:(l=z.style)==null?void 0:l.value}};
_.p.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.handleHideItemSectionVideosByIdCommand=function(z){var l;z=(l=_.k(z,Ii_))==null?void 0:l.videoId;this.data&&this.data.videoId===z&&(this.isHidden=!0)};
_.p.getMetadataSnippetContainerClass=function(z){return z?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.p.computeTitleText=function(z,l,I){return z?I:l};
_.p.computeDescriptionSnippet=function(z,l,I){return z?I:l};
_.p.computeSnippetText=function(z,l,I){return z?I:l};
_.p.computeNavigationEndpoint=function(z,l){return z?l==null?void 0:l.untranslatedNavigationEndpoint:l==null?void 0:l.navigationEndpoint};
_.p.hideInlineTitleIcon=function(z,l){return z||!l};
_.vP.Object.defineProperties(eq.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 z;return(z=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?z:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!(this==null?0:(z=this.data)==null?0:(l=z.channelThumbnailSupportedRenderers)==null?0:(I=l.channelThumbnailWithLinkRenderer)==null?0:I.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var z;return!!_.k((z=this.data)==null?void 0:z.avatar,SF4)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$15173_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.vP.Object.defineProperties(eq,{template:{configurable:!0,enumerable:!0,get:function(){return YPI()}}});
eq.prototype.dataChanged=eq.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],eq.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],eq.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.Cf),_.w("design:type",Object)],eq.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],eq.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],eq.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],eq.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eq.prototype,"isBackstageVideo",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eq.prototype,"isPostCompactVideo",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],eq.prototype,"isHistory",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eq.prototype,"isRichGridVideoPost",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eq.prototype,"isHidden",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eq.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.w("design:type",Boolean)],eq.prototype,"useSearchUi",void 0);_.e([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.w("design:type",Boolean)],eq.prototype,"useThreeLineTitle",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.w("design:type",Boolean)],eq.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.w("design:type",Object)],eq.prototype,"videoStyle",void 0);_.e([_.X({computed:"computeDisableExpand(videoStyle)"}),_.w("design:type",Object)],eq.prototype,"disableExpand",void 0);
_.e([_.X({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.w("design:type",Object)],eq.prototype,"shouldShowChannelInfo",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],eq.prototype,"biggerThumbsStyle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.w("design:type",String)],eq.prototype,"inlineTitleIcon",void 0);_.e([_.X({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.w("design:type",Object)],eq.prototype,"computedNavigationEndpoint",void 0);_.e([_.X({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(z,l){return _.Cc(z.entities,"searchVideoResultEntity",l)}}),
_.w("design:type",Object)],eq.prototype,"searchVideoResultEntity",void 0);_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],eq.prototype,"thumbnail",void 0);_.e([_.qX("#dismissible"),_.w("design:type",HTMLElement)],eq.prototype,"JSC$15173_dismissibleMedia",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eq.prototype,"dataChanged",null);
_.e([_.B("searchVideoResultEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],eq.prototype,"hideTranslation",null);_.e([_.B("searchVideoResultEntity"),_.w("design:type",Array),_.w("design:paramtypes",[])],eq.prototype,"hiddenBadgeGroups",null);_.e([_.B("data","useAvatar"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],eq.prototype,"shouldShowChannelThumbnail",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],eq.prototype,"useAvatar",null);
_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],eq.prototype,"isHovered",null);_.e([_.S({is:"ytd-video-renderer",disableElementRegistration:!0})],eq);_.r(eq,"ytd-video-renderer",function(){return YPI()},{mode:_.yP("kevlar_poly_si_batch_j047")?1:2});var wA=function(){var z=_.q.apply(this,arguments)||this;z.editDialog=null;z.roundedContainer=!0;z.isLoading=!1;z.isRichGrid=!1;z.isRichGridRepost=!1;z.reduceSidePaddings=_.C("reduce_side_paddings_in_shelf");z.JSC$15180_spinnerEl=null;return z};
_.m(wA,_.q);_.p=wA.prototype;
_.p.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"}}}};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){var z=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var l=0,I=this.data.actions&&this.data.actions.length;l<I;l++)this.openEditDialog(_.k(this.data.actions[l],AzA));if((l=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(l=this.get("buttonRenderer.hint.hintRenderer.hintId",l))&&l.startsWith("share-post-hint")){var b=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(b){_.Tv.getInstance();var v=c2(_.lc(_.mY("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ow.addLowPriorityJob(function(){_.ZE(z.hostElement,v,b)})}}}};
_.p.updatePoll=function(z){z>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15180_spinnerEl||(this.JSC$15180_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Hy(this.hostElement).appendChild(this.JSC$15180_spinnerEl));this.JSC$15180_spinnerEl&&(this.JSC$15180_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(z){var l=this.get("updateCommentDialogEndpoint",z.detail.endpoint);l&&(this.openEditDialog(l),z.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(z,l){l&&this.updatePoll(l.selectedChoiceIndex)};
_.p.onYtServiceRequestSent=function(z,l){var I;l.endpoint&&(_.k(l.endpoint,AMu)||_.k(l.endpoint,wf0)&&((I=_.k(l.endpoint,wf0))==null||!I.clientActions))&&(this.isLoading=!0);if(l.actions)for(z=0;z<l.actions.length;z++)I=l.actions[z],_.k(I,Ad)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(z){z&&z.dialog&&(this.editDialog=z.dialog,z=this.editDialogEl.firstElementChild)&&(z.focus(),z.openDialog&&z.openDialog())};
_.p.computeIsPostHidden=function(z,l){return!!z||l};
_.p.computeSurfaceType=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeUsesCompactLockup=function(z){return z==="BACKSTAGE_SURFACE_TYPE_HOME"||z==="BACKSTAGE_SURFACE_TYPE_SEARCH"||z==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||z==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||z==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||z==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeShowWithoutToolbar=function(z){return!z.actionButtons&&!z.actionMenu};
_.p.computePostAttachment=function(z){if(z.backstageAttachment){if(_.k(z.backstageAttachment,Ktu))return"poll";if(_.k(z.backstageAttachment,D1n))return"quiz";if(_.k(z.backstageAttachment,_.gb))return"video";if(_.k(z.backstageAttachment,x1M))return"uploaded-videos";if(_.k(z.backstageAttachment,Zdw))return z.contentText?"image":"image-only";if(_.k(z.backstageAttachment,btA))return"playlist"}return"none"};
_.p.computePostTabIndex=function(z){return z?0:-1};
_.p.computeButtonTooltipPosition=function(z){return this.computeUsesCompactLockup(z)?"top":"bottom"};
_.p.computeHasText=function(z){return!(z==null||!z.contentText)};
_.p.onTap=function(z){var l,I;if(((l=this.data)==null?0:l.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var b;((b=this.data)==null?0:b.navigationEndpoint)&&!_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.vP.Object.defineProperties(wA.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.voteCount)||_.lc("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,Ktu))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,x1M))}}});
wA.prototype.onYtServiceRequestCompleted=wA.prototype.onYtServiceRequestCompleted;wA.prototype.onYtServiceRequestSent=wA.prototype.onYtServiceRequestSent;wA.prototype.onYtCommentPollRevert=wA.prototype.onYtCommentPollRevert;wA.prototype.onYtCommentboxDismiss=wA.prototype.onYtCommentboxDismiss;wA.prototype.onYtNavigate=wA.prototype.onYtNavigate;wA.prototype.isLoadingChanged=wA.prototype.isLoadingChanged;wA.prototype.dataChanged=wA.prototype.dataChanged;wA.prototype.contentTextChanged=wA.prototype.contentTextChanged;
_.e([_.t(_.Nd),_.w("design:type",Object)],wA.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wA.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],wA.prototype,"editDialog",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wA.prototype,"roundedContainer",void 0);_.e([_.X(),_.w("design:type",Object)],wA.prototype,"isLoading",void 0);_.e([_.X({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.w("design:type",String)],wA.prototype,"surface",void 0);
_.e([_.X({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.w("design:type",Boolean)],wA.prototype,"usesCompactLockup",void 0);_.e([_.X({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],wA.prototype,"showWithoutToolbar",void 0);_.e([_.X({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.w("design:type",String)],wA.prototype,"attachment",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wA.prototype,"isRichGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wA.prototype,"isRichGridRepost",void 0);_.e([_.X({reflectToAttribute:!0,value:_.C("use_better_post_dismissals")}),_.w("design:type",Boolean)],wA.prototype,"useBetterPostDismissals",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wA.prototype,"reduceSidePaddings",void 0);
_.e([_.X({computed:"computeHasText(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],wA.prototype,"hasText",void 0);_.e([_.qX("#expander"),_.w("design:type",Object)],wA.prototype,"expander",void 0);_.e([_.qX("#action-buttons"),_.w("design:type",Object)],wA.prototype,"actionButtons",void 0);_.e([_.qX("#edit-dialog"),_.w("design:type",HTMLElement)],wA.prototype,"editDialogEl",void 0);
_.e([_.By("data.contentText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wA.prototype,"contentTextChanged",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wA.prototype,"dataChanged",null);_.e([_.By("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wA.prototype,"isLoadingChanged",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],wA.prototype,"onYtNavigate",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wA.prototype,"onYtCommentboxDismiss",null);_.e([_.tP("yt-comment-poll-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],wA.prototype,"onYtCommentPollRevert",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],wA.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],wA.prototype,"onYtServiceRequestCompleted",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],wA.prototype,"voteCount",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],wA.prototype,"commentCount",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wA.prototype,"hasPoll",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wA.prototype,"hasUploadedVideo",null);_.e([_.S({is:"ytd-post-renderer",disableElementRegistration:!0})],wA);
_.r(wA,"ytd-post-renderer",function(){if(jG_!==void 0)return jG_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return jG_=z},{mode:1});var T__;var c__;var AZ=function(){return _.q.apply(this,arguments)||this};
_.m(AZ,_.q);AZ.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],AZ.prototype,"ytdHorizontalListBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],AZ.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],AZ.prototype,"data",void 0);
_.e([_.X({value:"$.items.children"}),_.w("design:type",String)],AZ.prototype,"itemsPath",void 0);_.e([_.X({value:1}),_.w("design:type",Number)],AZ.prototype,"initialCount",void 0);_.e([_.X(),_.w("design:type",String)],AZ.prototype,"surface",void 0);_.e([_.S({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],AZ);
_.r(AZ,"ytd-post-multi-image-renderer",function(){if(c__!==void 0)return c__;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return c__=z},{mode:_.yP("kevlar_poly_si_batch_j079")?1:2});var SPI={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Wm=function(){var z=_.q.apply(this,arguments)||this;z.hasInlineCommentSection=!1;z.editDialog=null;z.isLoading=!1;z.shouldHideAuthor=!1;z.shouldShowVideoTime=!1;
z.isInEngagementPanel=!1;z.hideBorder=!1;z.usesFullLockup=!1;z.shouldShowMenuInCompactView=!1;z.JSC$15196_spinnerEl=null;z.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return z};
_.m(Wm,_.q);_.p=Wm.prototype;_.p.configureRendererStamper=function(){return SPI};
_.p.computeIsPollHeaderEnabled=function(z){return(z==null?void 0:z.pollMetadataIcon)!=null};
_.p.getPublishTimeStampString=function(z,l){l=new Date((Number(l)-60*((new Date).getTimezoneOffset()-(new Date(Number(l)*1E3)).getTimezoneOffset()))*1E3);l=(new zN(10)).format(l);if(z&&z.runs&&z.runs.length)for(var I=0;I<z.runs.length;I++)z.runs[I].text&&(z.runs[I].text=z.runs[I].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",l));return z};
_.p.created=function(){this.JSC$15196_spinnerEl=null};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var z;if((z=this.data)==null?0:z.actions){z=_.D(this.data.actions);for(var l=z.next();!l.done;l=z.next())this.openEditDialog(_.k(l.value,AzA))}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){_.Hy(this.hostElement).querySelector("#action-buttons").reply()};
_.p.updatePoll=function(z,l){l&&this.set("data.pollMetadataVoteCountText",l);this.hasInlineCommentSection&&(z=z>=0,l=_.Hy(this.hostElement).querySelector("#action-buttons"),z?l.reply():l.hideReplyDialog())};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15196_spinnerEl||(this.JSC$15196_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Hy(this.hostElement).appendChild(this.JSC$15196_spinnerEl));this.JSC$15196_spinnerEl&&(this.JSC$15196_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(z){var l=this.get("updateCommentDialogEndpoint",z.detail.endpoint);l&&(this.openEditDialog(l),z.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(z,l){l&&this.updatePoll(l.selectedChoiceIndex,l.totalVotes)};
_.p.onYtServiceRequestSent=function(z,l){z.stopPropagation();z=_.k(l.endpoint,wf0);if(_.k(l.endpoint,AMu)||z&&!z.clientActions)this.isLoading=!0;if(l.actions)for(z=0;z<l.actions.length;z++){var I=l.actions[z],b=_.k(I,Ad);b&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,b.totalVotes))}};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(z){z&&z.dialog&&(this.editDialog=z.dialog,z=this.editDialogElement.firstElementChild)&&(z.focus(),z.openDialog&&z.openDialog())};
_.p.computeIsBodyHidden=function(z,l){return!!z||l};
_.vP.Object.defineProperties(Wm.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var z,l;if((z=this.data)==null?0:(l=z.pollMetadataIcon)==null?0:l.iconType)return _.Re(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.voteCount)||_.lc("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,Ktu))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,D1n))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,x1M))}}});
Wm.prototype.onYtServiceRequestCompleted=Wm.prototype.onYtServiceRequestCompleted;Wm.prototype.onYtServiceRequestSent=Wm.prototype.onYtServiceRequestSent;Wm.prototype.onYtCommentPollRevert=Wm.prototype.onYtCommentPollRevert;Wm.prototype.onYtCommentboxDismiss=Wm.prototype.onYtCommentboxDismiss;Wm.prototype.onYtNavigate=Wm.prototype.onYtNavigate;Wm.prototype.isLoadingChanged=Wm.prototype.isLoadingChanged;Wm.prototype.dataChanged=Wm.prototype.dataChanged;Wm.prototype.contentTextChanged=Wm.prototype.contentTextChanged;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Wm.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Wm.prototype,"rendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Wm.prototype,"rendererstamperBehavior",void 0);_.e([_.qX("#contentTextExpander"),_.w("design:type",Object)],Wm.prototype,"expander",void 0);
_.e([_.qX("#edit-dialog"),_.w("design:type",Element)],Wm.prototype,"editDialogElement",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"hasInlineCommentSection",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"editDialog",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"isLoading",void 0);
_.e([_.X({computed:"computeIsPollHeaderEnabled(data)"}),_.w("design:type",Boolean)],Wm.prototype,"isPollHeaderEnabled",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"shouldHideAuthor",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"shouldShowVideoTime",void 0);_.e([_.X(),_.w("design:type",Object)],Wm.prototype,"isInEngagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Wm.prototype,"hideBorder",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Wm.prototype,"usesFullLockup",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Wm.prototype,"shouldShowMenuInCompactView",void 0);_.e([_.B("isInEngagementPanel"),_.w("design:type",Number),_.w("design:paramtypes",[])],Wm.prototype,"postTextMaxLines",null);_.e([_.B("data.icon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Wm.prototype,"pollIcon",null);
_.e([_.By("data.contentText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Wm.prototype,"contentTextChanged",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Wm.prototype,"dataChanged",null);_.e([_.By("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Wm.prototype,"isLoadingChanged",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Wm.prototype,"onYtNavigate",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Wm.prototype,"onYtCommentboxDismiss",null);_.e([_.tP("yt-comment-poll-revert"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Wm.prototype,"onYtCommentPollRevert",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],Wm.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Wm.prototype,"onYtServiceRequestCompleted",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Wm.prototype,"voteCount",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Wm.prototype,"commentCount",null);_.e([_.B("data.backstageAttachment"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Wm.prototype,"hasPoll",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Wm.prototype,"hasQuiz",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Wm.prototype,"hasUploadedVideo",null);
_.e([_.S({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Wm);
_.r(Wm,"ytd-backstage-post-renderer",function(){if(T__!==void 0)return T__;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return T__=z},{mode:1});var dE0;var n5=function(){var z=_.q.apply(this,arguments)||this;z.editDialog=null;z.showExpandButton=!1;z.isRichGrid=!1;z.usesFullLockup=!1;return z};
_.m(n5,_.q);_.p=n5.prototype;_.p.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"}}}};
_.p.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.p.computeShowExpandButton=function(z){return this.usesCompactLockup||z&&z.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.p.computeUsesCompactLockup=function(z){return!!z.condensedContent};
_.p.computeShowFullContentText=function(z){return!z};
_.p.onYtNavigate=function(z){z=this.get("updateCommentDialogEndpoint",z.detail.endpoint);this.openEditDialog(z)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.openEditDialog=function(z){z&&z.dialog&&(this.editDialog=z.dialog,z=this.repostEditDialogEl.firstElementChild)&&(z.focus(),z.openDialog&&z.openDialog())};
_.p.onTap=function(z){if(this.data){var l=null;this.usesCompactLockup&&!_.DX(_.MX(z)||[],this.hostElement,["YT-IMG-SHADOW"])?l=this.get("navigationEndpoint",this.data):z.target===this.moreButtonEl&&(l=this.get("navigationEndpoint",z.target.data));l&&_.gC(this.hostElement,"yt-navigate",{endpoint:l})}};
n5.prototype.onYtCommentboxDismiss=n5.prototype.onYtCommentboxDismiss;n5.prototype.onYtNavigate=n5.prototype.onYtNavigate;n5.prototype.dataChanged=n5.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],n5.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],n5.prototype,"editDialog",void 0);_.e([_.X({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],n5.prototype,"usesCompactLockup",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],n5.prototype,"showExpandButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],n5.prototype,"isRichGrid",void 0);
_.e([_.X({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.w("design:type",Boolean)],n5.prototype,"showFullContentText",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],n5.prototype,"usesFullLockup",void 0);_.e([_.qX("#more"),_.w("design:type",Object)],n5.prototype,"moreButtonEl",void 0);_.e([_.qX("#repost-content-text"),_.w("design:type",HTMLElement)],n5.prototype,"repostContentTextEl",void 0);
_.e([_.qX("#repost-edit-dialog"),_.w("design:type",HTMLElement)],n5.prototype,"repostEditDialogEl",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n5.prototype,"dataChanged",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],n5.prototype,"onYtNavigate",null);
_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n5.prototype,"onYtCommentboxDismiss",null);_.e([_.S({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],n5);
_.r(n5,"ytd-shared-post-renderer",function(){if(dE0!==void 0)return dE0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return dE0=z},{mode:1});var og0;var Pk_;var L5=function(){return _.q.apply(this,arguments)||this};
_.m(L5,_.q);L5.prototype.attached=function(){var z=this;this.networkStatusManager||(this.networkStatusManager=new _.U5,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){z.onlineHandler()}))};
L5.prototype.detached=function(){var z=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){z.onlineHandler()}),delete this.networkStatusManager)};
L5.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],L5.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],L5.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],L5);
_.r(L5,"ytd-reload-page-button-renderer",function(){if(Pk_!==void 0)return Pk_;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return Pk_=z},{mode:1});var h90={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"},Uq=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(Uq,_.q);_.p=Uq.prototype;_.p.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.p.computeHasBodyText=function(z){return!!z.bodyText};
_.p.computeButtons=function(z){var l=[];z.ctaButton&&l.push(z.ctaButton);z.secondaryButton&&l.push(z.secondaryButton);return l};
_.p.computeRendererStyle=function(z){return z.style?z.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():z.icon?"":"no-icon"};
_.p.getIconName=function(z,l){l=l===void 0?!1:l;if(z===void 0)return"";z=this.get("icon.iconType",z);var I;_.C("enable_hlp_client_icon_pick")?I=this.getThemedIcon(z,l):I=z;(l=h90[I])||(l="yt-icons");return[l,I].join(":")};
_.p.getThemedIcon=function(z,l){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(z)?l?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(z)?l?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":z};
_.p.isThumbnail=function(z){return!!z.thumbnail};
_.p.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Uq.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Uq.prototype,"data",void 0);
_.e([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],Uq.prototype,"rendererStyle",void 0);_.e([_.X({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.w("design:type",String)],Uq.prototype,"iconName",void 0);_.e([_.X({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Uq.prototype,"thumbnail",void 0);_.e([_.X({computed:"computeButtons(data)"}),_.w("design:type",Array)],Uq.prototype,"buttons",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Uq.prototype,"isDarkTheme",void 0);_.e([_.X({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Uq.prototype,"hasBodyText",void 0);_.e([_.S({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Uq);
_.r(Uq,"ytd-background-promo-renderer",function(){if(og0!==void 0)return og0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return og0=z},{mode:1});var sT_;var at=function(){var z=_.q.apply(this,arguments)||this;z.collections=_.C("web_modern_collections_v2");return z};
_.m(at,_.q);_.vP.Object.defineProperties(at.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v,M;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(z=this.data)==null?void 0:(l=z.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(b=I.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(v=this.data)==null?void 0:(M=v.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],at.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],at.prototype,"collections",void 0);_.e([_.B("data","collections"),_.w("design:type",Object),_.w("design:paramtypes",[])],at.prototype,"collectionStack",null);_.e([_.S({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],at);
_.r(at,"ytd-compact-station-renderer",function(){if(sT_!==void 0)return sT_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return sT_=z},{mode:1});var r_u;var V8=function(){var z=_.q.apply(this,arguments)||this;z.isRichGrid=!1;return z};
_.m(V8,_.q);V8.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],V8.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V8.prototype,"isRichGrid",void 0);_.e([_.S({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],V8);
_.r(V8,"ytd-grid-channel-renderer",function(){if(r_u!==void 0)return r_u;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return r_u=z},{mode:1});var $En;var jq=function(){return _.q.apply(this,arguments)||this};
_.m(jq,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jq.prototype,"data",void 0);_.e([_.S({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],jq);
_.r(jq,"ytd-grid-movie-playlist-renderer",function(){if($En!==void 0)return $En;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $En=z},{mode:1});var e9n;var JZ=function(){var z=_.q.apply(this,arguments)||this;z.downloadProgress=0;z.transferState="TRANSFER_STATE_UNKNOWN";z.modernButtons=_.C("web_modern_buttons");z.useModernCollectionsV2=_.C("web_modern_collections_v2");return z};
_.m(JZ,_.q);JZ.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
JZ.prototype.configureRendererStamper=function(){return{"data.menu":WD}};
JZ.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
JZ.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.C("woffle_playlist_renderer_killswitch")){var z,l=xw5(this.entityInfo,this.transferState,this.downloadProgress,(z=this.data)==null?void 0:z.playlistId,this.isOnline);z=l.viewPlaylistText;var I=l.badges;l=l.thumbnailOverlays;this.isDownloads=!!z||!!I;this.set("data.viewPlaylistText",z);I&&I.length>0&&this.set("data.badges",I);l&&l.length>0&&this.set("data.thumbnailOverlays",
l)}};
_.vP.Object.defineProperties(JZ.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 z;return!((z=this.data)==null?0:z.menu)}}});
JZ.prototype.transferStateChanged=JZ.prototype.transferStateChanged;JZ.prototype.dataChanged=JZ.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],JZ.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],JZ.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X({selector:_.fLQ,selectorArgs:["data.playlistId"]}),_.w("design:type",Object)],JZ.prototype,"downloadProgress",void 0);_.e([_.X({selector:_.Am,selectorArgs:["data.playlistId"]}),_.w("design:type",Object)],JZ.prototype,"transferState",void 0);_.e([_.X({selector:yCt,selectorArgs:["data.playlistId"]}),_.w("design:type",Object)],JZ.prototype,"entityInfo",void 0);_.e([_.X({selector:_.eS}),_.w("design:type",Boolean)],JZ.prototype,"isOnline",void 0);
_.e([_.X(),_.w("design:type",Object)],JZ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],JZ.prototype,"downloadRenderData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],JZ.prototype,"modernButtons",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],JZ.prototype,"isDownloads",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],JZ.prototype,"useModernCollectionsV2",void 0);
_.e([_.B("transferState"),_.X({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],JZ.prototype,"downloadState",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],JZ.prototype,"menuHidden",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JZ.prototype,"dataChanged",null);
_.e([_.YE("transferState","downloadProgress","isOnline"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JZ.prototype,"transferStateChanged",null);_.e([_.S({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],JZ);
_.r(JZ,"ytd-grid-playlist-renderer",function(){if(e9n!==void 0)return e9n;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return e9n=z},{mode:1});var wSM;var zB=function(){var z=_.q.apply(this,arguments)||this;z.collections=_.C("web_modern_collections_v2");return z};
_.m(zB,_.q);zB.prototype.configureRendererStamper=function(){return{"data.menu":WD,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vP.Object.defineProperties(zB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(z=this.data)==null?void 0:(l=z.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(b=I.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(v=this.data)==null?void 0:(M=v.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],zB.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],zB.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zB.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],zB.prototype,"collections",void 0);_.e([_.B("data","collections"),_.w("design:type",Object),_.w("design:paramtypes",[])],zB.prototype,"collectionStack",null);_.e([_.S({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],zB);
_.r(zB,"ytd-grid-radio-renderer",function(){if(wSM!==void 0)return wSM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return wSM=z},{mode:1});var A_w;var lv=function(){var z=_.q.apply(this,arguments)||this;z.useModernCollectionsV2=_.C("web_modern_collections_v2");return z};
_.m(lv,_.q);lv.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
lv.prototype.computeNavigationEndpoint=function(z){return GJp(z==null?void 0:z.navigationEndpoint)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],lv.prototype,"ytdLockupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lv.prototype,"data",void 0);_.e([_.X({computed:"computeNavigationEndpoint(data)"}),_.w("design:type",Object)],lv.prototype,"computedNavigationEndpoint",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],lv.prototype,"useModernCollectionsV2",void 0);_.e([_.S({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],lv);
_.r(lv,"ytd-grid-show-renderer",function(){if(A_w!==void 0)return A_w;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return A_w=z},{mode:1});var W__;_.I6=function(z){this.playerClient=z};
_.ngA=function(z,l,I){I=I===void 0?{}:I;return z.playerClient.setOption("ad",l,I)};
_.I6.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.I6.prototype.executeCommand=function(z,l){this.getOptions().includes("executeCommand")?_.ngA(this,"executeCommand",{command:z,layoutId:l}):_.l7("Calling executeCommand when adModule is not loaded")};var bv=function(){return _.q.apply(this,arguments)||this};
_.m(bv,_.q);bv.prototype.getLayoutId=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.layoutId:null};
bv.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var z=_.GS(),l=this.getLayoutId(),I=this.data.clickthroughEndpoint;z&&l&&_.C("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?z.getPlayerPromise().then(function(b){(new _.I6(b)).executeCommand(I,l)}):_.gC(this.hostElement,"yt-navigate",{endpoint:I})}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bv.prototype,"data",void 0);_.e([_.S({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],bv);
_.r(bv,"ytd-shopping-companion-item-renderer",function(){if(W__!==void 0)return W__;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return W__=z},{mode:1});var L_z;var v6=function(){var z=_.q.apply(this,arguments)||this;z.isExpandableContent=!1;return z};
_.m(v6,_.q);_.vP.Object.defineProperties(v6.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?void 0:z.price)||((l=this.data)==null?void 0:(I=l.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var z,l;if((z=this.data)!=null&&z.dealsData&&((l=this.data)==null||!l.priceReplacementText)){z=this.data.dealsData;var I,b,v;return((I=z.salesData)==null?void 0:I.originalPrice)||((b=z.priceDropData)==null?void 0:b.referencePrice)||((v=z.promotionData)==null?void 0:v.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var z,l;return(z=this.data)==null?void 0:(l=z.dealsData)==null?void 0:l.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],v6.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],v6.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],v6.prototype,"isExpandableContent",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"showCta",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"ctaText",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"hasPriceTopPosition",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"hasPriceBottomPosition",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"useNewStyle",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"showPriceReplacementText",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"priceValue",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"showDeal",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"showAffiliateDisclaimer",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"useSaleStyle",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"useFromBrandCtaStyle",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"useFromVendorCtaStyle",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v6.prototype,"useShoppingCollectionCtaStyle",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],v6);
_.r(v6,"ytd-vertical-product-card-renderer",function(){if(L_z!==void 0)return L_z;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return L_z=z},{mode:1});var UEj;var Mn=function(){return _.q.apply(this,arguments)||this};
_.m(Mn,_.q);Mn.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Mn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],Mn.prototype,"ytdLockupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Mn.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Mn);
_.r(Mn,"ytd-grid-movie-renderer",function(){if(UEj!==void 0)return UEj;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return UEj=z},{mode:1});var aUI;var p6=function(){var z=_.q.apply(this,arguments)||this;z.roundedFix=_.C("web_enable_merch_item_rounding_fix");z.itemStyle="small-item";return z};
_.m(p6,_.q);p6.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var z,l,I,b,v=(l=_.k((z=this.data)==null?void 0:z.buttonCommand,_.rL))==null?void 0:(I=l.item)==null?void 0:(b=I.notificationTextRenderer)==null?void 0:b.successResponseText;v&&_.o_t(this.hostElement,v)}};
_.vP.Object.defineProperties(p6.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.isProductPlaceholder)!==void 0&&((l=this.data)==null?void 0:l.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],p6.prototype,"roundedFix",void 0);_.e([_.X(),_.w("design:type",Object)],p6.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],p6.prototype,"itemStyle",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"hasPrice",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"hasPriceReplacementText",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"hasAdditionalFeesText",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"hasAffiliateDisclaimer",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"isProductPlaceholder",null);
_.e([_.X(),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"hideOpenInNewIcon",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],p6.prototype,"ariaLabel",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],p6);
_.r(p6,"ytd-merch-shelf-item-renderer",function(){if(aUI!==void 0)return aUI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return aUI=z},{mode:1});var VE0=_.P(function(z){return _.N("button-card-view-model",{el:_.xl(_.AR(function(){return z.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return z.data().title},
role:"button"},_.N(_.SD,{model:{}}),_.N("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.N("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.N(_.E,{cond:function(){return z.data().image},
then:function(l){return _.N(_.pK,{data:l,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.N("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return z.data().title})))},"jb");_.C("web_button_view_model_wcw_registration_killswitch")||_.uO(VE0,"button-card-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){z=_.xC(z,{className:void 0});var l=z.data;z=z.className;var I=_.kz(function(){return l().onTapCommand},void 0,"SXkP9e");
return _.N("ytd-shopping-item-card",{class:_.m9("ytdShoppingItemCardHost",z)},_.N(_.cZ,{command:I,className:"ytdShoppingItemCardHostLink"},_.N("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.N(_.TS,{data:function(){return l().thumbnailViewModel}},{thumbnailViewModel:function(b){return _.N(_.iP,{data:b.data,
aspectRatio:3})}})),_.N("div",null,_.N("p",{class:"ytdShoppingItemCardHostItemTitle"},_.N(_.Rf,{text:function(){return l().itemTitle}})),_.N("p",{class:"ytdShoppingItemCardHostPrice"},_.N(_.Rf,{text:function(){return l().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.mB,
className:_.mB}});var jTA={isAdsVideo:!0},J_0={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},zfp={showPlayerControls:!1,videoPreviewDurationMs:15E3},lGj={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var b7=null,P3S={};var r2H="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(" "),Du={},$JG=(Du.FEwhat_to_watch="home",Du.FEhashtag="hashtag",Du.FEtrending="trending",Du.FEhistory="history",Du.SPunlimited="premium",Du.FEmemberships_and_purchases="paid_memberships",Du.SPredeem_code="redeem",Du.SPverify_location="locate",Du.SPminor_moment="minor_moment",
Du.FEmini_app_container="mini_app",Du.FEnews_destination="news",Du.SPopen_in_app="open_in_app",Du.FEexplore="explore",Du.FEsubscriptions="subscriptions",Du.FEsfv_audio_pivot="sfv_audio_pivot",Du.FEplaylist_aggregation="playlist_aggregation",Du);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");_.Hu("init");var IGj=function(){},pMu=_.P(function(z){var l=z.data;
var I=z.inlineMetadata;var b=z.aspectRatio;var v=z.scrimStyle;var M=z.className;var x=z.useDefaultStyle;var g=z.titleStyle;var G=new IGj,u=_.C("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Z=_.kz(function(){return(x==null?0:x())?u==="SHORTS_LOCKUP_STYLE_SLIM":l().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),H=_.kz(function(){return _.d2(I)||Z()||!1},void 0,"neizSe"),y=function(){return(v==null?void 0:v())!==void 0?v==null?void 0:v():1},
f=_.kz(function(){return l().belowThumbnailMetadata||!H()},void 0,"HdmMMe");
z=_.ps({visibilityCallback:function(Gk){var uH=l().onFirstVisible;Gk&&uH&&_.ae(uH)},
showOption:{calledOnce:!0,state:"visible"}});var R=_.xl(),F={},Y=_.m9(function(){return Z(),"shortsLockupViewModelHostThumbnailContainer"},(F.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.d2(b)===1},F.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.d2(b)===2},F.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.C("web_shorts_2_by_3_lockups_study")&&!_.C("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
F)),c=_.kz(function(){if(_.d2(b)===1)return 1;
_.d2(b);return 2},void 0,"ZRUa3c"),d,V=function(){if(G){var Gk;
(Gk=d)==null||vJ(Gk);var uH;if(G.hostElement&&((uH=G.data)==null?0:uH.inlinePlayerData)){Gk=Object.assign({},lGj);var Xt,R1;((Xt=G.data)==null?void 0:(R1=Xt.inlinePlayerData)==null?void 0:R1.maxPlaybackLengthSec)!==void 0&&(Gk.videoPreviewDurationMs=G.data.inlinePlayerData.maxPlaybackLengthSec*1E3);d=nY({mediaRenderer:G,lockupElement:G.hostElement,thumbnailElement:R.value,videoPreviewOpts:Gk})}}};
_.Te(function(){G&&(G.data=l(),V())},"c4oj4d");
var A=_.kz(function(){return l().thumbnail},void 0,"CJHyHc");
F=_.kz(function(){return l().badge},void 0,"g31PIe");
var W=_.kz(function(){return l().onTap},void 0,"CJCUBc"),L={},lH={};
return _.N("ytm-shorts-lockup-view-model",{el:_.xl(function(Gk){G&&(G.hostElement=Gk)},V,z),
class:_.m9("shortsLockupViewModelHost",M)},_.N(_.xP,null,_.N(_.cZ,{command:W,className:_.m9("shortsLockupViewModelHostEndpoint",(L.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!f()},L),"reel-item-endpoint",""),
ariaHidden:function(){return!H()},
tabIndex:function(){return H()?0:-1}},_.N("div",{el:R,
class:_.m9("shortsLockupViewModelHostThumbnailParentContainer",(lH.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!Z()},lH))},_.N(_.E,{cond:A,
then:function(){return _.N("div",{class:Y},_.N(_.pK,{data:function(){var Gk;return(Gk=A==null?void 0:A())!=null?Gk:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.N(_.TS,{data:function(){return l().thumbnailViewModel}},{thumbnailViewModel:function(Gk){return _.N(_.iP,{data:Gk.data,
aspectRatio:function(){return c()},
disableRounding:function(){return Z()}})}}),null),_.N(_.E,{cond:H,
then:function(){return _.N(bVz,{data:l,scrimStyle:y,useDefaultStyle:x,titleStyle:g})}}),_.N(_.TS,{data:F},{badgeViewModel:function(Gk){return _.N(_.T2,{data:Gk.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.N(_.E,{cond:function(){return H()&&l().menuOnTap},
then:function(){return _.N(vkj,{data:l,inlineMetadata:!0})}}),_.N(_.E,{cond:f,
then:function(){return _.N(M04,{data:l,useDefaultStyle:x,inlineMetadata:H})}})))},"lb"),bVz=_.P(function(z){var l=z.data;
var I=z.scrimStyle;var b=z.useDefaultStyle;var v=z.titleStyle;var M=_.C("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",x=b&&_.C("web_hide_primary_text_for_pivot_panel"),g=_.kz(function(){return(b==null?0:b())?M==="SHORTS_LOCKUP_STYLE_SLIM":l().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
z={};z=_.m9("shortsLockupViewModelHostInlineMetadata",(z.shortsLockupViewModelHostMetadataRounded=function(){return!g()},z.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(I==null?void 0:I())===3&&!_.C("enable_shorts_lockup_new_scrim")},z.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(I==null?void 0:I())===3&&_.C("enable_shorts_lockup_new_scrim")},z.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(I==null?void 0:I())===2||(I==null?void 0:
I())===4},z.shortsLockupViewModelHostShowOverPlayer=function(){return!0},z),"image-overlay-text");
var G={};return _.N("div",{class:z},_.N("h3",{class:_.m9("shortsLockupViewModelHostMetadataTitle",(G.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(I==null?void 0:I())===4},G.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return l().belowThumbnailMetadata},G.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(v==null?void 0:v())===1},G.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(v==null?void 0:v())===2},G)),
"aria-label":function(){return l().accessibilityText}},_.N(_.E,{cond:function(){var u;
return!((u=l().overlayMetadata)==null||!u.primaryText)&&!x},
then:function(){return _.N(_.Rf,{text:function(){var u;return(u=l().overlayMetadata)==null?void 0:u.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.N(_.E,{cond:function(){var u;
return(u=l().overlayMetadata)==null?void 0:u.secondaryText},
then:function(){return _.N(Dq_,{data:l,scrimStyle:I,className:void 0})}}))},"mb"),M04=_.P(function(z){var l=z.data;
var I=z.useDefaultStyle;var b=z.inlineMetadata;var v=_.C("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=_.kz(function(){return(I==null?0:I())?v==="SHORTS_LOCKUP_STYLE_SLIM":l().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),x=_.xl(),g;
z=_.KK(function(f){if(_.$U(_.r5(f),x.value,["AVATAR-VIEW-MODEL"]))return!1;var R;(R=g)==null||R.click();return!1});
var G=_.kz(function(){return l().belowThumbnailMetadata||l().overlayMetadata},void 0,"yJVuMb"),u=function(){return l().menuOnTap&&!b()},Z=function(){var f;
return(f=G())==null?void 0:f.avatar},H={},y={};
return _.N("div",{class:_.m9(function(){return M()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(H.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!Z()},H.shortsLockupViewModelHostOutsideMetadataHasMenu=u,H)),
"on:click":z,el:x,role:"presentation"},_.N(_.TS,{data:Z},{avatarViewModel:function(f){return _.N("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.N(_.Dz,{data:f.data}))}}),_.N("div",null,_.N("h3",{class:_.m9("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(y.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var f,R;
return!((f=G())==null?0:(R=f.primaryText)==null?0:R.content)},y.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=b,y)),
role:"presentation"},_.N(_.cZ,{ref:function(f){return void(g=f)},
command:function(){return l().onTap},
className:_.m9("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var f,R;return(f=G())==null?void 0:(R=f.primaryText)==null?void 0:R.content},
"aria-label":function(){return l().accessibilityText}},_.N(_.E,{cond:function(){var f;
return(f=G())==null?void 0:f.primaryText},
then:function(f){return _.N(_.Rf,{text:f,noEndpoints:!0,noStyleRuns:!0})}}))),_.N(_.E,{cond:function(){var f;
return(f=G())==null?void 0:f.secondaryText},
then:function(f){return _.N("div",{class:_.m9("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.N(_.Rf,{text:f,noStyleRuns:!0}))}})),_.N(_.E,{cond:u,
then:function(){return _.N(vkj,{data:l,inlineMetadata:!1})}}))},"nb"),Dq_=_.P(function(z){var l=z.data;
var I=z.scrimStyle;z=z.className;var b={};return _.N("div",{class:_.m9((b.shortsLockupViewModelHostMetadataSubhead=function(){return(I==null?void 0:I())!==4},b.shortsLockupViewModelHostMetadataSubheadNew=_.C("enable_shorts_lockup_new_scrim"),b.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(I==null?void 0:I())===4},b),z),
"aria-hidden":"true"},_.N(_.Rf,{text:function(){var v;return(v=l().overlayMetadata)==null?void 0:v.secondaryText},
noStyleRuns:!0}))},"ob"),vkj=_.P(function(z){var l=z.data;
var I=z.inlineMetadata;z={};z=_.m9((z.shortsLockupViewModelHostInlineMetadataMenu=function(){return I()},z.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!I()},z.shortsLockupViewModelHostShowOverPlayer=function(){return!0},z),"image-overlay-text");
return _.N("div",{class:z},_.N(_.PZ,{data:function(){return{style:I()?"overlay":"mono",accessibilityLabel:l().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(b){b.preventDefault();b.stopPropagation();var v=_.LE({elementsCommand:l().menuOnTap,forceNewState:!0});if(v==null?0:v.onclick)v.onclick(b)}}},
iconName:"MORE_VERT"}))},"pb");var xqp=_.P(function(z){var l=z.data;var I=z.inlineMetadata;var b=z.aspectRatio;var v=z.scrimStyle;var M=z.className;var x=z.useDefaultStyle;z=_.kz(function(){var g=l().entityId;return g?g.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.N("ytm-shorts-lockup-view-model-v2",{class:_.m9("shortsLockupViewModelHost",M)},_.N(_.dA,{contentId:z,aspectRatio:function(){return(b==null?void 0:b())===1?1:(b==null?void 0:b())===2?2:4}},function(){return _.N(pMu,{data:l,
inlineMetadata:I,aspectRatio:b,scrimStyle:v,className:M,useDefaultStyle:x})}))},"qb");_.uO(xqp,"ytm-shorts-lockup-view-model-v2",{props:{data:_.GH,inlineMetadata:_.GH,aspectRatio:_.GH,scrimStyle:_.GH,className:_.GH,useDefaultStyle:_.GH,titleStyle:_.GH}});var OVu=16/9*210,xH=function(){var z=_.q.apply(this,arguments)||this;z.isExpandableContent=!1;z.hideShelfHeader=!1;z.engagementPanel=!1;z.buttonClasses=["arrow"];z.isSearch=!1;z.disableScrollEventListener=!1;z.containsLockup=!1;z.overrideArrowPositionForProductCard=!1;z.overrideArrowPositionForShoppingItemCard=!1;z.overrideArrowPositionForReelItems=!1;z.overrideArrowPositionForGridMovie=!1;z.overrideArrowPositionToCenter=!1;z.isSearchPostShelf=!1;z.overrideArrowPositionForMixedShelf=!1;z.overrideArrowPositionForMixedShelfShortsOnly=
!1;z.hasBigThumbsReelItems=!1;z.shouldUseMixedListHeight=!1;z.shouldUseShortsListHeight=!1;z.gridVideoWidth=0;z.isSearchVodShelf=!1;z.disableWheelScroll=!1;z.sizing="COMPACT";z.shortsLockupAspectRatio=0;return z};
_.m(xH,_.q);_.p=xH.prototype;
_.p.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]]"}}}}};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.C("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.p.computeInitialCountNumber=function(z){if(!z)return 6;var l=z.items.some(function(M){return!!M.topicRecommendationsChipRenderer}),I=z.items.some(function(M){return!!M.displayAdRenderer}),b=this.computeShouldListItemsHaveEqualHeight(z),v=z.items.some(function(M){return!!M.gridPlaylistRenderer});
z=z.items.some(function(M){return!!M.shoppingItemCardViewModel});
return l?9:I?8:v||b?10:z?7:6};
_.p.computeContainsPost=function(z){return!!z&&!!z.items&&z.items.some(function(l){return!!l.postRenderer})};
_.p.computeContainsLockup=function(){if(_.C("web_horizontal_list_lockup_arrow_killswitch"))return!1;var z,l;return(z=this.data)==null?void 0:(l=z.items)==null?void 0:l.some(function(I){return!!I.lockupViewModel})};
_.p.maybeUpdateLockupAspectRatio=function(){var z,l;if(this.computeContainsLockup()&&((z=this.data)==null?0:(l=z.items)==null?0:l.length)){var I;z=xJk((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=NhS(z);I=this.computeLockupWidth()/I;_.R8(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.p.computeOverrideArrowPositionForProductCard=function(z){if(this.isExpandableContent)return!1;var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){return!!I.verticalProductCardRenderer}))};
_.p.computeOverrideArrowPositionForShoppingItemCard=function(z){var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.p.computeOverrideArrowPositionForReelItemRenderer=function(z){return this.containsReelItemRenderer(z)};
_.p.computeHasBigThumbsReelItems=function(z,l){return z&&this.containsReelItemRenderer(l)};
_.p.computeShouldListItemsHaveEqualHeight=function(z){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(z==null?void 0:z.itemSizeConstraint)};
_.p.computeShouldListItemsHaveShortsHeight=function(z){return this.computeShouldListItemsHaveEqualHeight(z)&&!this.containsGridVideoRenderer(z)};
_.p.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.p.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.p.containsReelItemRenderer=function(z){var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.p.containsGridVideoRenderer=function(z){var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.p.computeContainsGridMovieRenderer=function(z){var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){return!!I.gridMovieRenderer}))};
_.p.computeOverrideArrowPositionToCenter=function(z){return this.computeIsSearchPostShelf(z)};
_.p.computeIsSearchPostShelf=function(z){var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){var b,v;return((v=(b=I.postRenderer)==null?void 0:b.surface)!=null?v:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.p.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(z){var l;return!!(z==null?0:(l=z.items)==null?0:l.some(function(I){var b,v,M;return((M=(b=I.backgroundPromoRenderer)==null?void 0:(v=b.style)==null?void 0:v.value)!=null?M:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.p.computeIsSearchVodShelf=function(z,l){return z&&this.containsGridVideoRenderer(l)};
_.p.computeDisableWheelScroll=function(z,l){return this.computeIsSearchVodShelf(z,l)};
_.p.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.p.computeShortsLockupAspectRatio=function(){return 1};
_.p.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.R8(this.hostElement,{"--ytd-reel-item-thumbnail-height":OVu+"px"})};
xH.prototype.dataChanged=xH.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],xH.prototype,"ytdHorizontalListBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xH.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],xH.prototype,"isExpandableContent",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"hideShelfHeader",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"engagementPanel",void 0);_.e([_.X(),_.w("design:type",Array)],xH.prototype,"buttonClasses",void 0);_.e([_.X(),_.w("design:type",Object)],xH.prototype,"isSearch",void 0);
_.e([_.X(),_.w("design:type",Object)],xH.prototype,"disableScrollEventListener",void 0);_.e([_.X({computed:"computeInitialCountNumber(data)"}),_.w("design:type",Number)],xH.prototype,"initialCount",void 0);_.e([_.X({computed:"computeContainsPost(data)"}),_.w("design:type",Boolean)],xH.prototype,"supportComponentResize",void 0);_.e([_.X({computed:"computeContainsPost(data)"}),_.w("design:type",Boolean)],xH.prototype,"containsPost",void 0);
_.e([_.X({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"containsLockup",void 0);_.e([_.X({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],xH.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.e([_.X({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionForProductCard",void 0);_.e([_.X({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.e([_.X({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionForReelItems",void 0);_.e([_.X({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionForGridMovie",void 0);
_.e([_.X({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionToCenter",void 0);_.e([_.X({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"isSearchPostShelf",void 0);_.e([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.e([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.e([_.X({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"hasBigThumbsReelItems",void 0);
_.e([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"shouldUseMixedListHeight",void 0);_.e([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"shouldUseShortsListHeight",void 0);_.e([_.X({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"gridVideoWidth",void 0);
_.e([_.X({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"isSearchVodShelf",void 0);_.e([_.X({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.w("design:type",Object)],xH.prototype,"disableWheelScroll",void 0);_.e([_.X({computed:"computeSizing(isSearch)"}),_.w("design:type",Object)],xH.prototype,"sizing",void 0);
_.e([_.X({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.w("design:type",Object)],xH.prototype,"shortsLockupAspectRatio",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xH.prototype,"dataChanged",null);
_.r(xH,"yt-horizontal-list-renderer",function(){if(GiI===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);GiI=z}z=GiI;return z},{mode:1});var gkI;var GE0=[10,12,14,16,18,20,24,28,32,36],N9_=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],O0=function(){var z=_.q.apply(this,arguments)||this;z.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";z.hideOverflow=!1;z.useRoboto=!1;z.fontClass="";z.overflown=!1;z.actionMap={"yt-window-resized":"resize"};return z};
_.m(O0,_.q);_.p=O0.prototype;
_.p.attached=function(){var z=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();_.IR(this,function(){z.resize()});
if(!_.Zs){var l,I,b;(l=document)==null||(I=l.fonts)==null||(b=I.ready)==null||b.then(function(){z.resize()})}};
_.p.dataChanged=function(){this.resize()};
_.p.guideIsExpandedChanged=function(){this.resize()};
_.p.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 z=this.getMaxNumLines(),l=this.getMinFont(),I=this.getMaxFont(),b=this.useRoboto?GE0:N9_;for(b=b.filter(function(M){return M<=I&&M>=l});b.length>1;){var v=Math.floor(b.length/2);
this.updateFontSize(b[v]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=z)b=b.slice(v,b.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>z)b=b.slice(0,v);else break}this.updateFontSize(b[b.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(z)}};
_.p.handleOverflow=function(z){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>z&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",z.toString()))};
_.p.updateFontSize=function(z){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+z;this.textNode.classList.add(this.fontClass)};
_.p.getMaxFont=function(){var z=this.useRoboto?GE0:N9_;z=z[z.length-1];return this.maxFontSize&&this.maxFontSize<=z?this.maxFontSize:z};
_.p.getMinFont=function(){var z=(this.useRoboto?GE0:N9_)[0];return this.minFontSize&&this.minFontSize>=z?this.minFontSize:z};
_.p.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.p.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.p.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.ID(this.text).split("\n").length-1:Infinity};
_.p.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("Mh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
O0.prototype.guideIsExpandedChanged=O0.prototype.guideIsExpandedChanged;O0.prototype.dataChanged=O0.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],O0.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],O0.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],O0.prototype,"text",void 0);
_.e([_.X(),_.w("design:type",String)],O0.prototype,"fontFamily",void 0);_.e([_.X(),_.w("design:type",Number)],O0.prototype,"maxWidth",void 0);_.e([_.X(),_.w("design:type",Number)],O0.prototype,"maxHeight",void 0);_.e([_.X(),_.w("design:type",Number)],O0.prototype,"maxFontSize",void 0);_.e([_.X(),_.w("design:type",Number)],O0.prototype,"minFontSize",void 0);_.e([_.X(),_.w("design:type",Number)],O0.prototype,"maxLines",void 0);_.e([_.X(),_.w("design:type",Object)],O0.prototype,"hideOverflow",void 0);
_.e([_.X({selector:_.MCk}),_.w("design:type",Boolean)],O0.prototype,"guideIsExpanded",void 0);_.e([_.qX("#container"),_.w("design:type",HTMLElement)],O0.prototype,"containerNode",void 0);_.e([_.qX("#text"),_.w("design:type",HTMLElement)],O0.prototype,"textNode",void 0);_.e([_.YE("text"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],O0.prototype,"dataChanged",null);
_.e([_.YE("guideIsExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],O0.prototype,"guideIsExpandedChanged",null);_.e([_.S({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],O0);
_.r(O0,"yt-dynamic-sizing-formatted-string",function(){if(gkI!==void 0)return gkI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return gkI=z},{mode:1});var Ekn;_.uWw=function(z){_.I1.call(this,z)};
_.m(_.uWw,_.I1);var ZVp=function(z){_.I1.call(this,z)};
_.m(ZVp,_.uWw);var gK=function(){return _.q.apply(this,arguments)||this};
_.m(gK,_.q);gK.prototype.onTapSuspendedChannel=function(){var z;if((z=this.data)!=null&&z.serviceEndpoint){var l,I;(z=(I=_.k((l=this.data)==null?void 0:l.serviceEndpoint,_.AK))==null?void 0:I.url)?_.z9(z,void 0,void 0,window.top):(l=new ZVp("Did not handle suspended account tap. No appealUrl."),_.dE(l))}else l=new ZVp("Did not handle suspended account tap. No serviceEndpoint."),_.dE(l)};
gK.prototype.onTap=function(){var z=this,l=_.iY(),I,b=(I=_.q8(l,{veType:7116}))!=null?I:void 0;_.JN(l,{visualElement:b});_.jb();this.saveRoleText();var v;if((v=this.data)==null?0:v.youtubeSuspended)this.onTapSuspendedChannel();else{var M=!1,x,g;(l=(g=_.k((x=this.data)==null?void 0:x.serviceEndpoint,_.Vau))==null?void 0:g.supportedTokens)&&l.forEach(function(G){if(G.accountSigninToken)if(M=!0,z.onAccountItemTap)z.onAccountItemTap(G.accountSigninToken.signinUrl);else _.z9(G.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!M){if(x=this.get("serviceEndpoint",this.data))M=!0,this.ytComponentBehavior.resolveCommand(x);M||_.oy(new ZVp("Did not handle account switch tap. No token."))}}};
gK.prototype.saveRoleText=function(){if(this.data){var z=this.data,l=z.channelDelegationRole;if(l){var I,b=(I=_.k(z==null?void 0:z.serviceEndpoint,_.Vau))==null?void 0:I.supportedTokens;if(!b){var v,M,x,g;b=(v=_.k(z==null?void 0:z.serviceEndpoint,_.WT))==null?void 0:(M=v.popup)==null?void 0:(x=M.confirmDialogRenderer)==null?void 0:(g=x.confirmButton)==null?void 0:g.buttonRenderer;var G;b=(G=_.k(b==null?void 0:b.command,_.yi))==null?void 0:G.commands;if(!b)return;var u;b=(u=_.k(b[1],_.Vau))==null?
void 0:u.supportedTokens}if(b){G=void 0;u=_.D(b);for(b=u.next();!b.done;b=u.next())if(b=b.value,b.datasyncIdToken){G=b.datasyncIdToken.datasyncIdToken;break}if(G){var Z;a:{if(_.Ss7()&&(u=_.YpY(G+"::pom"))){u=new z$(u);break a}u=void 0}(Z=u)==null||Z.set("role_text",l);if((LrS?LrS:window.location).href.indexOf("studio")!==-1&&(Z=dmt())){u=Z.src?(new URL(Z.src)).origin:"*";var H;(H=Z.contentWindow)==null||H.postMessage({action:"save_pom_role",datasyncId:G,roleText:l},u)}}}}}};
_.vP.Object.defineProperties(gK.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.data)==null?void 0:(l=z.accountPhoto)==null?void 0:l.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
gK.prototype.onTap=gK.prototype.onTap;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],gK.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gK.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Function)],gK.prototype,"onAccountItemTap",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],gK.prototype,"enableRingForActiveAccount",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],gK.prototype,"thumbnailSize",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gK.prototype,"onTap",null);_.e([_.S({is:"ytd-account-item-renderer",disableElementRegistration:!0})],gK);
_.r(gK,"ytd-account-item-renderer",function(){if(Ekn!==void 0)return Ekn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Ekn=z},{mode:1});var HVu;var GB=function(){return _.q.apply(this,arguments)||this};
_.m(GB,_.q);GB.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.pG().resolve(_.DQ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],GB.prototype,"data",void 0);_.e([_.S({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],GB);
_.r(GB,"ytd-identity-chip-renderer",function(){if(HVu!==void 0)return HVu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return HVu=z},{mode:1});var y6_;var fGA;var CG_;var kEp;var Nn=function(){var z=_.q.apply(this,arguments)||this;z.richItemMinWidth=_.OI("wn_grid_min_item_width",310);z.isShorts=!1;z.isWatchNext=!1;z.isExploreHub=!1;return z};
_.m(Nn,_.q);_.vP.Object.defineProperties(Nn.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var z=[],l=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.R8(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var I;if(((I=this.data)==null?0:I.rows)&&l)for(l*=this.data.rows,I=0;I<l;I++)z.push({});return z}}});
_.e([_.t(_.gU),_.w("design:type",Object)],Nn.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Nn.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.sp,value:3}),_.w("design:type",Number)],Nn.prototype,"itemsPerRow",void 0);_.e([_.X({selector:_.vT7,value:6}),_.w("design:type",Number)],Nn.prototype,"slimItemsPerRow",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Number)],Nn.prototype,"richItemMinWidth",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],Nn.prototype,"miniMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Nn.prototype,"isShorts",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Nn.prototype,"isWatchNext",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Nn.prototype,"isExploreHub",void 0);
_.e([_.B("isExploreHub"),_.X({reflectToAttribute:!0}),_.w("design:type",Object),_.w("design:paramtypes",[])],Nn.prototype,"shimmerAnimation",null);_.e([_.B("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.w("design:type",Array),_.w("design:paramtypes",[])],Nn.prototype,"cardItems",null);_.e([_.S({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Nn);
_.Rf_=_.Hh()(Nn,"ytd-ghost-grid-renderer",function(){if(kEp===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);kEp=z}z=kEp;return z},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.uO(_.P(function(z){var l=_.xC(z,{numberOfComments:3}).numberOfComments,I=_.xC(z,{isInitialLoad:!1}).isInitialLoad,b=_.xC(z,{engagementPanel:!1}).engagementPanel,v=function(){return Math.min(Number(l==null?void 0:l())||20,20)};
return _.N("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.N(_.E,{cond:function(){return!(b==null?0:b())&&(I==null?void 0:I())},
then:function(){return _.N("div",{class:"ytGhostCommentsComments"},_.N("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.N("div",{class:_.m9("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.N("div",{class:_.m9("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.N("div",{class:"ytGhostCommentsGhostCard"},_.N("div",{class:"ytGhostCommentsAvatar"},_.N("div",{class:"ytGhostCommentsCircle"})),_.N("div",{class:"ytGhostCommentsComments"},_.N("div",{class:"ytGhostCommentsMeta"},
_.N("div",{class:_.m9("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.N("div",{class:_.m9("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.N("div",{class:"ytGhostCommentsComments"},_.N(_.qy,{each:function(){return Array((v==null?void 0:v())||3)}},function(){return _.N("div",{class:"ytGhostCommentsGhostCard"},_.N("div",{class:"ytGhostCommentsAvatar"},_.N("div",{class:"ytGhostCommentsCircle"})),_.N("div",{class:"ytGhostCommentsHost"},_.N("div",{class:"ytGhostCommentsMeta"},
_.N("div",{class:_.m9("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.N("div",{class:_.m9("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.N("div",{class:_.m9("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.N("div",{class:"ytGhostCommentsGhostLikeDislike"},_.N("div",{class:_.m9("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.N("div",{class:_.m9("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.mB,
isInitialLoad:_.mB,engagementPanel:_.mB}});_.sW("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var E0=function(){var z=_.q.apply(this,arguments)||this;z.isOverridable=!1;z.spinnerActive=!1;z.showButton=!1;z.isCommentsSection=!1;z.engagementPanel=!0;z.isShortsGrid=!1;z.isShortsPage=!1;z.isWatchPage=!1;z.ghostCardExperimentEnabled=_.C("show_ghost_comments_shorts_watch")||_.C("show_ghost_comments_desktop_watch");z.originalShowButton=!1;z.endOfList=!1;return z};
_.m(E0,_.q);_.p=E0.prototype;_.p.resetIntersectionObserver=function(){var z;(z=this.observer)==null||z.disconnect();this.observer=void 0};
_.p.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var z,l;((z=this.data)==null?void 0:z.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((l=this.data)==null?0:l.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.p.initializeIntersectionObserver=function(){var z=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(l){l=_.D(l);for(var I=l.next();!I.done;I=l.next())I.value.isIntersecting&&(z.triggerContinuation(),z.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.p.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.p.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var z;((z=this.data)==null?0:z.continuationEndpoint)&&(z=_.k(this.data.continuationEndpoint,_.a2))&&this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:z}}))};
_.p.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.p.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.p.onServiceRequestCompleted=function(z,l){if(!_.C("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=l.actions)!=null&&I.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.p.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.p.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.p.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.p.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var z=3;if(this.engagementPanel){var l,I,b;z=Math.floor(((((l=this.hostElement)==null?void 0:(I=l.parentElement)==null?void 0:(b=I.parentElement)==null?void 0:b.scrollHeight)||108)-108)/108);z=this.isInitialLoad?Math.max(z,3):3}l=[].concat(_.ht(this.hostElement.querySelectorAll("yt-ghost-comments")));l=_.D(l);for(I=l.next();!I.done;I=l.next())I=I.value,I.numberOfComments=z,I.isInitialLoad=this.isInitialLoad,I.engagementPanel=
this.engagementPanel}};
_.p.detached=function(){this.resetIntersectionObserver()};
_.vP.Object.defineProperties(E0.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.C("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.C("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
E0.prototype.numberOfGhostCommentsChanged=E0.prototype.numberOfGhostCommentsChanged;E0.prototype.continuationTriggerOffsetChanged=E0.prototype.continuationTriggerOffsetChanged;E0.prototype.showButtonChanged=E0.prototype.showButtonChanged;E0.prototype.onYtServiceRequestCompletedForButtonRenderer=E0.prototype.onYtServiceRequestCompletedForButtonRenderer;E0.prototype.onServiceRequestCompleted=E0.prototype.onServiceRequestCompleted;E0.prototype.onYtServiceRequestSentForButtonRenderer=E0.prototype.onYtServiceRequestSentForButtonRenderer;
E0.prototype.observeData=E0.prototype.observeData;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yy.YtVisibilityBehavior),_.w("design:type",Object)],E0.prototype,"ytVisibilityBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"isOverridable",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"spinnerActive",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"showButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],E0.prototype,"isCommentsSection",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],E0.prototype,"engagementPanel",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"isShortsGrid",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.xG$}),_.w("design:type",Object)],E0.prototype,"isShortsPage",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.DGQ}),_.w("design:type",Object)],E0.prototype,"isWatchPage",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],E0.prototype,"ghostCardExperimentEnabled",void 0);
_.e([_.X(),_.w("design:type",Number)],E0.prototype,"continuationTriggerOffset",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"endOfList",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],E0.prototype,"isInitialLoad",void 0);_.e([_.qX("ytd-button-renderer"),_.w("design:type",_.ir)],E0.prototype,"buttonRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],E0.prototype,"buttonOverrides",void 0);
_.e([_.X(),_.B("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.w("design:type",Object),_.w("design:paramtypes",[])],E0.prototype,"isShortsCommentsSection",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],E0.prototype,"observeData",null);
_.e([_.tP("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],E0.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],E0.prototype,"onServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-completed-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],E0.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.e([_.YE("showButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],E0.prototype,"showButtonChanged",null);
_.e([_.YE("continuationTriggerOffset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],E0.prototype,"continuationTriggerOffsetChanged",null);_.e([_.By("isInitialLoad","engagementPanel"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],E0.prototype,"numberOfGhostCommentsChanged",null);_.e([_.S({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],E0);
_.r(E0,"ytd-continuation-item-renderer",function(){if(CG_!==void 0)return CG_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return CG_=z},{mode:1});var mq0;var uv=function(){var z=_.q.apply(this,arguments)||this;z.downloadProgress=0;z.transferState="TRANSFER_STATE_UNKNOWN";z.downloadState="DOWNLOAD_STATE_UNKNOWN";z.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";z.offlineVideoPolicyExpirationTimestamp=0;z.downloadedVideoPlaybackPosition=0;return z};
_.m(uv,_.q);uv.prototype.dataChanged=function(){var z;this.videoData=_.k((z=this.data)==null?void 0:z.renderer,itu);this.transferStateChanged()};
uv.prototype.downloadProgressChanged=function(){if(this.entityInfo){var z=Object.assign({},this.videoData),l=O1G(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=l.publishedTimeText,b=l.badges;z.shortViewCountText=l.shortViewCountText;z.publishedTimeText=I;z.badges=b;this.set("videoData",z)}};
uv.prototype.transferStateChanged=function(){if(this.entityInfo){var z=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",l=_.ii(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!qF(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),b=O1G(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),v=b.publishedTimeText,M=b.badges;I.shortViewCountText=
b.shortViewCountText;I.publishedTimeText=v;I.badges=M;I.isDisabled=l;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=l?void 0:Owf(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var x;z&&((x=this.videoData)==null?0:x.videoId)&&!_.C("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=Dwx(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
uv.prototype.transferStateChanged=uv.prototype.transferStateChanged;uv.prototype.downloadProgressChanged=uv.prototype.downloadProgressChanged;uv.prototype.dataChanged=uv.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],uv.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uv.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],uv.prototype,"videoData",void 0);_.e([_.X({selector:Wg,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"downloadProgress",void 0);_.e([_.X(),_.w("design:type",Number)],uv.prototype,"relativeDateReference",void 0);_.e([_.X({selector:_.wg,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"transferState",void 0);
_.e([_.X({selector:iqu,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"downloadState",void 0);_.e([_.X({selector:ET$,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"offlinePolicyAction",void 0);_.e([_.X({selector:uXk,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.e([_.X({selector:nc,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"downloadedVideoPlaybackPosition",void 0);_.e([_.X({selector:Hqt,selectorArgs:["videoData.videoId"]}),_.w("design:type",Object)],uv.prototype,"entityInfo",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],uv.prototype,"isDownloading",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uv.prototype,"dataChanged",null);
_.e([_.YE("downloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uv.prototype,"downloadProgressChanged",null);_.e([_.YE("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uv.prototype,"transferStateChanged",null);
_.e([_.S({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],uv);
_.r(uv,"ytd-downloaded-video-grid-video-renderer",function(){if(mq0!==void 0)return mq0;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return mq0=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var KVu;var Zu=function(){};
Zu.prototype.resolve=function(z,l){var I=this;return _.O(function(b){return b.yield(I.resolveCommand(z,l),0)})};var t0A,H6;t0A=jz7(function(z){return z.targetId},{shouldPersist:!1});
H6=t0A.updateData;_.B9_=t0A.useUpdatableData;var XMp,qSj;XMp=jz7(function(z){return z.targetId});
qSj=XMp.updateData;_.iV0=XMp.useUpdatableData;var FVM=WD1.bind(null,H6),QSu=WD1.bind(null,qSj);(function(z,l,I){var b=_.k(I==null?void 0:I.updatedRenderer,_.vmp);return b?z({targetId:l},function(){return b}):!1}).bind(null,H6);var yj=function(){};
_.m(yj,Zu);yj.prototype.resolveCommand=function(z){var l;return _.O(function(I){l=_.k(z,_.vDS);if(!l)return I.return();FVM(l.targetId,l);_.qe(I)})};var f6=function(){var z=_.F6.apply(this,arguments)||this;z.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return z};
_.m(f6,_.F6);_.p=f6.prototype;_.p.configureContinuationPathMap=function(){return{}};
_.p.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.p.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.p.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.p.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.p.handleAppendContinuationItemsAction=function(z){var l=_.k(z,_.pHw);if(this.data&&this.data.targetId&&l&&this.continuationPathMap&&l.targetId===this.data.targetId){var I=LEf(z),b=I&&this.continuationPathMap[I];if(b&&I)if(z=this.get(b,this.data)){a:{for(I=0;I<z.length;I++){var v=z[I],M=void 0,x=!!_.k((M=_.k(v,W3_))==null?void 0:M.content,_.ta_);if(_.k(v,_.MN)||x)break a}I=z.length}b="data."+b;l.continuationItems?I===z.length-1?(this.pop(b),this.push.apply(this,[b].concat(_.ht(l.continuationItems)))):
I===z.length?this.push.apply(this,[b].concat(_.ht(l.continuationItems))):this.splice.apply(this,[b,I,1].concat(_.ht(l.continuationItems))):this.splice(b,I,1);(_.C("web_enable_voting_animation")||_.C("enable_music_web_cairo_voting_animation"))&&_.gC(this.hostElement,"yt-append-continuation-items-action-finished");_.gC(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.PW(new _.qB("append continuation items does not exist",I));else _.PW(new _.qB("append continuation path does not exist",
I))}};
_.p.handleReloadContinuationItemsCommand=function(z){var l=_.k(z,_.vDS);if(this.data&&l){if(_.C("web_client_explore_hub")||_.C("web_explore_hub_on_hover")||_.C("web_client_explore_hub_on_hover"))try{_.pG().resolve(yj).resolveCommand(z)}catch(M){}if(this.data.targetId&&this.continuationPathMap&&l.targetId===this.data.targetId&&(!_.C("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||l.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,b=(I=l.slot)==null?void 0:
I.replace("RELOAD_CONTINUATION_SLOT_","");I=(z=LEf(z)+"-"+(b==null?void 0:b.toLowerCase()))&&this.continuationPathMap[z];if(!I||!z||!b)_.PW(new _.qB("reload continuation path does not exist",z));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(l)){if(l.replaceWithFirstItem){var v;this.set("data."+I,((v=l.continuationItems)==null?0:v.length)?l.continuationItems[0]:{})}else this.set("data."+I,l.continuationItems?l.continuationItems:[]);this.continuationIsReloading=
!1;_.gC(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.p.handleShowReloadUiCommand=function(z){z=_.k(z,RN_);var l;((l=this.data)==null?0:l.targetId)&&(z==null?0:z.targetId)&&z.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
f6.prototype.observeData=f6.prototype.observeData;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],f6.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],f6.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],f6.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],f6.prototype,"continuationIsReloading",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f6.prototype,"observeData",null);_.e([_.Q5()],f6);_.C6=[_.uh.YtComponentBehavior,_.wl.YtActionHandlerBehavior,f6.prototype];_.kH={};_.kH.YtNextContinuationBehavior=[_.qw.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",_.KJ(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.KJ(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(z,l){z.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,l,{}):(z={locationRetrieved:function(I){this.makeNextContinuationRequest_(I,l,{})}.bind(this)},_.gC(this.hostElement,"yt-retrieve-location",z))},
makeNextContinuationRequest_:function(z,l,I){_.rC("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();z=l(z);var b;this.canUseContextualNetworkManager_()&&(b=this.getNetworkManager());b||(b=_.pG().resolve(_.wD));l=_.zS.instance;if(_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&l){b=_.Mo([z.startsWith("/")?z.substr(1):z]);var v,M;I=_.Gv(l,{},b,I==null?void 0:(v=I.context)==null?void 0:(M=v.clickTracking)==null?void 0:M.clickTrackingParams).then(function(x){return{response:x}})}else I=
this.nextContinuation.usePost?b.postData(z,I):b.fetchData(z);
I.then(this.updateNextContinuationData_.bind(this,z));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(z,l){var I=this;_.rC("ncl");this.pendingContinuationRequest_=void 0;if(l){var b={};this.nextContinuation&&(b=this.nextContinuation);if(l.response&&l.response.continuationContents&&l.response.continuationContents[b.continuationType]){z=l.response.continuationContents[b.continuationType];var v=b.header||"data.header",M=z[b.responseHeaderKey||"header"];M&&this.set(v,M);v=b.contentsArray||"data.contents";M=this.getContents_(z,b.responseContentsKey||"contents")||[];
this.pathExists_(v)?(M.unshift(v),this.push.apply(this,M)):this.set(v,M);M&&(n_$(_.iY(),l.response,this.hostElement,function(x){_.Gb(I.hostElement,"yt-store-grafted-ve-action",[x])}),_.gC(this.hostElement,"yt-next-continuation-data-updated",{continuationData:l,
page:this,contentsArray:v}));this.set(b.continuationsArray||"data.continuations",z[b.responseContinuationsKey||"continuations"]||[])}else l.reload?_.PW(new _.qB("Reloading from continuation is unsupported")):l.responseContext&&l.responseContext.errors||(delete l.xsrf_token,delete l.timing,delete l.endpoint,delete l.csn,l.responseContext&&delete l.responseContext.serviceTrackingParams,v={request:_.jm(z,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(l).sort()},l.response&&(v.responseContentKeys=
Object.keys(l.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(v.continuationType=this.nextContinuation.continuationType.substr(0,256)),l=new _.qB("Malformed continuation",v),z.indexOf("/comment_service_ajax")==0?_.PW(l):_.dE(l)),this.set(b.continuationsArray||"data.continuations",[])}else _.oy(new _.qB("Missing continuation response",z))},
getContents_:function(z,l){l=l.split(".");return _.h7.getValueByKeys(z,l)},
pathExists_:function(z){var l=this;z=z.toString().split(".");for(var I=0;I<z.length;I++)if(l=l[z[I]],l===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var YS_;var T9j;var R6=function(){var z=_.q.apply(this,arguments)||this;z.triggered_=!1;return z};
_.m(R6,_.q);_.p=R6.prototype;_.p.attached=function(){this.maybeTriggerAutoload()};
_.p.detached=function(){this.hasBeenTriggered_=!1};
_.p.onPrescanVisible=function(){this.onShow()};
_.p.onShow=function(){this.showButton||this.trigger()};
_.p.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.gC(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.p.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.p.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.p.computeLabel_=function(z,l){return z===void 0?null:z.label||!l?z.label:this.showMoreText_};
_.p.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.p.getContinuationUrl=function(z){var l={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(l.itct=this.data.clickTrackingParams);return _.Jr(z,l)};
_.p.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
R6.prototype.showButtonChanged_=R6.prototype.showButtonChanged_;R6.prototype.observeData_=R6.prototype.observeData_;_.e([_.t(_.yy.YtVisibilityBehavior),_.w("design:type",Object)],R6.prototype,"ytVisibilityBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],R6.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],R6.prototype,"showButton",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],R6.prototype,"showIcon",void 0);_.e([_.X({computed:"computeLabel_(data, showButton)"}),_.w("design:type",Object)],R6.prototype,"label",void 0);_.e([_.X({value:_.lc(_.mY("SHOW_MORE",void 0,"Show More"))}),_.w("design:type",Object)],R6.prototype,"showMoreText_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],R6.prototype,"spinnerActive_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],R6.prototype,"hasBeenTriggered_",void 0);
_.e([_.X({value:void 0}),_.w("design:type",String)],R6.prototype,"observeVisibleOption",void 0);_.e([_.X({value:void 0}),_.w("design:type",String)],R6.prototype,"observeHiddenOption",void 0);_.e([_.X({value:"observe_once"}),_.w("design:type",Object)],R6.prototype,"observePrescanOption",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R6.prototype,"observeData_",null);
_.e([_.By("showButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R6.prototype,"showButtonChanged_",null);_.e([_.Wy({is:"yt-next-continuation",disableElementRegistration:!0})],R6);
_.r(R6,"yt-next-continuation",function(){if(T9j===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;YS_===void 0&&(YS_=document.createElement("template"));var b=YS_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);T9j=z}z=T9j;return z},{mode:2});var c6_;var SSA;var mL=function(){return _.q.apply(this,arguments)||this};
_.m(mL,_.q);mL.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mL.prototype,"data",void 0);_.e([_.Wy({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],mL);
_.r(mL,"yt-music-pass-small-feature-info-renderer",function(){if(SSA===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;c6_===void 0&&(c6_=document.createElement("template"));var b=c6_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);SSA=z}z=SSA;return z},{mode:2});_.sW("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var K6=function(){var z=_.q.apply(this,arguments)||this;z.isCollapsible=!1;z.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return z};
_.m(K6,_.q);_.p=K6.prototype;_.p.computeIsCollapsible=function(z){return!!(((z==null?0:z.showMoreText)||(z==null?0:z.visibleRowCount))&&(z==null?0:z.isCollapsible))};
_.p.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"}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.p.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.p.onIronResize=function(){var z=this;_.z4(this,"updateGridInitItems",function(){z.maybeUpdateInitialItemsDisplayed()})};
_.p.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var z=this.getVisibleWidth();z!==0&&(z=Math.floor(z/214)*(this.data.visibleRowCount||2),z!==this.initialCount&&(this.initialCount=z,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.p.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.p.computeExpandVisible=function(z,l,I,b){return z&&l&&I&&!!b&&!!b.showMoreText};
_.p.computeShowMoreButton=function(z){return{text:z,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.p.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.p.initCollapsed=function(){var z=this;this.ytLazyListBehavior.canShowMore=!1;var l;(this.collapsed=!((l=this.data)==null||!l.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.IR(this,function(){_.EK(z.hostElement,"yt-refit-popups-action")})};
_.p.fillRestIfNotCollapsible=function(){var z=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!z||this.ytLazyListBehavior.fillRemainingListItems()};
_.p.computeViewAllHidden=function(z,l){return z||!l.viewAllEndpoint};
K6.prototype.fillRestIfNotCollapsible=K6.prototype.fillRestIfNotCollapsible;K6.prototype.initCollapsed=K6.prototype.initCollapsed;K6.prototype.onIronResize=K6.prototype.onIronResize;K6.prototype.persistentGuideChanged=K6.prototype.persistentGuideChanged;_.e([_.t(_.ap),_.w("design:type",Object)],K6.prototype,"ironResizableBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],K6.prototype,"ytLazyListBehavior",void 0);_.e([_.t(_.kH.YtNextContinuationBehavior),_.w("design:type",Object)],K6.prototype,"ytNextContinuationBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],K6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.t(_.C6),_.w("design:type",Object)],K6.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],K6.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],K6.prototype,"collapsed",void 0);_.e([_.X(),_.w("design:type",Number)],K6.prototype,"initialCount",void 0);_.e([_.X({computed:"computeShowMoreButton(data.showMoreText)"}),_.w("design:type",Object)],K6.prototype,"showMoreButton",void 0);
_.e([_.X({computed:"computeIsCollapsible(data)"}),_.w("design:type",Object)],K6.prototype,"isCollapsible",void 0);_.e([_.qX("#items"),_.w("design:type",HTMLElement)],K6.prototype,"items",void 0);_.e([_.YE("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K6.prototype,"persistentGuideChanged",null);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K6.prototype,"onIronResize",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K6.prototype,"initCollapsed",null);_.e([_.YE("canShowMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K6.prototype,"fillRestIfNotCollapsible",null);_.e([_.S({is:"ytd-grid-renderer",disableElementRegistration:!0})],K6);
_.r(K6,"ytd-grid-renderer",function(){if(KVu!==void 0)return KVu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return KVu=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var tU=function(){return _.q.apply(this,arguments)||this};
_.m(tU,_.q);
tU.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],tU.prototype,"data",void 0);_.e([_.S({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],tU);
_.r(tU,"ytd-carousel-ad-renderer",function(){if(fGA!==void 0)return fGA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return fGA=z},{mode:1});var dqn;var B6=function(){return _.q.apply(this,arguments)||this};
_.m(B6,_.q);_.p=B6.prototype;_.p.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"}}}};
_.p.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,B6.JSC$15373_CLICK_LOCATION_ID_MAP))};
_.p.onSitelinkTap=function(z){z.stopPropagation();var l,I,b=z==null?void 0:(l=z.model)==null?void 0:(I=l.item)==null?void 0:I.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,z,!1)};
_.p.onTap=function(z){var l=this.data&&this.data.content&&this.data.content.navigationEndpoint;l&&this.ytSparklesClickLocationBehavior.handleClick(l,z,!1)};
_.p.sendImpression=function(){if(this.data&&this.data.content)for(var z=_.D(this.data.content.impressionEndpoints||[]),l=z.next();!l.done;l=z.next()){l=_.D(l.value.loggingUrls||[]);for(var I=l.next();!I.done;I=l.next())I=I.value,I.baseUrl&&Lp(I.baseUrl,I.attributionSrcMode)}};
B6.prototype.onTap=B6.prototype.onTap;B6.prototype.dataChanged=B6.prototype.dataChanged;B6.JSC$15373_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],B6.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],B6.prototype,"data",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],B6.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],B6.prototype,"onTap",null);_.e([_.S({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],B6);
_.r(B6,"ytd-promoted-sparkles-text-search-renderer",function(){if(dqn!==void 0)return dqn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return dqn=z},{mode:1});var ok0;var Xf=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-mute-ad-action":"handleMuteAd"};return z};
_.m(Xf,_.q);_.p=Xf.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.C("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]]"}}}}}};
_.p.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.p.computeHasAdBadge=function(z){return!(z==null||!z.adBadge)};
_.p.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Xf.JSC$15382_DEFAULT_AD_BADGE_RENDERER),_.fJ(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Xf.JSC$15382_CLICK_LOCATION_ID_MAP))};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var z;(((z=this.data)==null?void 0:z.impressionCommands)||[]).forEach(function(l){l=_.D(l.loggingUrls||[]);for(var I=l.next();!I.done;I=l.next())I=I.value,I.baseUrl&&Lp(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.p.onTap=function(z){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint,b;(l=(b=this.data)==null?void 0:b.thumbnailNavigationEndpoint)&&_.xU(_.MX(z),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(l,z,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,z,!1)};
_.p.handleMuteAd=function(){this.collapsed=!0};
_.p.attached=function(){var z=this;_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.C("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vP.Object.defineProperties(Xf.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var z;return!(((z=this.data)==null?void 0:z.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var z;return!(((z=this.data)==null?void 0:z.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.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}}});
Xf.prototype.dataChanged=Xf.prototype.dataChanged;
Xf.JSC$15382_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"]]);
Xf.JSC$15382_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.e([_.t(O3),_.w("design:type",Object)],Xf.prototype,"ytdActiveViewBehavior",void 0);
_.e([_.t([_.wl.YtActionHandlerBehavior]),_.w("design:type",Object)],Xf.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],Xf.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xf.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Xf.prototype,"collapsed",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],Xf.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],Xf.prototype,"biggerThumbsStyle",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.w("design:type",Boolean)],Xf.prototype,"fixAlignmentSmallScreens",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs_square")}}),
_.w("design:type",Boolean)],Xf.prototype,"useBiggerThumbsSquare",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.mediaHoverOverlay"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"hideHoverOverlay",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.promotedSparklesWebStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"webSearchLayout",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"webSearchLayoutLandscape",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"webSearchLayoutSquare",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.promotedSparklesWebStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"sparklesCtaNoBackground",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.actionButton"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"hideActionButton",null);_.e([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.w("design:type",Object)],Xf.prototype,"buttonOverride",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.w("design:type",Boolean)],Xf.prototype,"hasNewAdBadge",void 0);_.e([_.B("data.promotedSparklesWebStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Xf.prototype,"useRoundedBadge",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xf.prototype,"dataChanged",null);_.e([_.S({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Xf);
_.r(Xf,"ytd-promoted-sparkles-web-renderer",function(){if(ok0!==void 0)return ok0;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ok0=z},{mode:1});var PGu;var qn=function(){var z=_.q.apply(this,arguments)||this;z.isInlinePreviewTriggered=!1;z.enableMonoStyle=_.C("enable_default_mono_cta_migration_web_client");return z};
_.m(qn,_.q);_.p=qn.prototype;_.p.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]]"}}}}}};
_.p.computeShowCta=function(z){return!(z==null||!z.ctaRenderer)};
_.p.onCtaClick=function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.ctaRenderer)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.p.onWatchButtonClick=function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.watchButtonRenderer)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.p.onTap=function(){};
_.p.dataChanged=function(){if(this.data){var z;_.C("enable_inline_muted_playback_on_web_search")&&((z=this.data)==null?0:z.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",qn.JSC$15386_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",qn.JSC$15386_DEFAULT_CLICK_LOCATION_BEHAVIOR,qn.JSC$15386_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(z=this.thumbnail.getElementsByTagName("a"),z.length>0&&(z=z.namedItem("thumbnail"))&&z.removeAttribute("href"));var l;if(((l=this.data)==null?0:l.forceImpAutoplay)&&_.C("enable_force_imp_autoplay_on_desktop_search")){var I;(I=this.JSC$15387_inlinePreviewHoverListener)==null||tkS(I)}}};
_.p.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var z=_.D(this.data.impressionUrls),l=z.next();!l.done;l=z.next())l=l.value,TZ$(l,Sit(l));this.data.impressionsFired=!0}};
_.p.maybeComputeHref=function(){return null};
_.p.computeIsShortDR=function(z){return!(z==null||!z.watchButtonRenderer)&&!(z==null||!z.ctaRenderer)&&!!this.enableShortDR};
_.p.computeIsNewUiOrShortDr=function(z){return!!this.enableUiUpdate||this.computeIsShortDR(z)};
_.p.computeIsNewUiAndNotShortDr=function(z){return!!this.enableUiUpdate&&!this.computeIsShortDR(z)};
_.p.computeHideAvatar=function(z){return!((z==null?0:z.channelThumbnail)&&this.computeIsNewUiOrShortDr(z))};
_.p.onClick=function(z){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;if(this.enableShortDR&&I&&(_.k(I,_.zb)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,z,!!_.k(I,_.zb)),z.stopPropagation();else if(I&&_.k(I,_.zb))this.ytSparklesClickLocationBehavior.handleClick(I,z,!0),z.stopPropagation();else if(I){var b,v;((b=this.data)==null?0:b.navigationEndpoint)&&((v=this.data)==null?0:v.adPlaybackContextParams)&&(l=this.data.navigationEndpoint,z=this.data.adPlaybackContextParams,
l.commandMetadata&&_.k(l.commandMetadata,_.kB)&&_.k(l.commandMetadata,_.kB).url&&(l=_.V7(_.k(l.commandMetadata,_.kB).url).adurl)&&_.SK1(l)&&_.vu(_.UU(l),{encoded_ad_playback_context:z}));this.ytComponentBehavior.resolveCommand(I)}};
_.p.computeButtonOverride=function(z){if(this.computeIsNewUiOrShortDr(z))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.p.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.p.onThumbnailContainerClick=function(z){this.onClick(z)};
_.p.computeThumbnailWidth=function(z,l){return z?l==="MASSIVE"?600:l==="BIG"?500:l==="MEDIUM"?450:420:360};
_.p.attached=function(){var z=this,l;_.C("enable_inline_muted_playback_on_web_search")&&((l=this.data)==null?0:l.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){var z;_.C("enable_inline_muted_playback_on_web_search")&&((z=this.data)==null?0:z.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.C("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15387_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:jTA})};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$15387_inlinePreviewHoverListener)==null||vJ(z)};
qn.prototype.dataChanged=qn.prototype.dataChanged;qn.prototype.onTap=qn.prototype.onTap;qn.JSC$15386_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};qn.JSC$15386_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
qn.JSC$15386_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.e([_.t(O3),_.w("design:type",Object)],qn.prototype,"ytdActiveViewBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],qn.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],qn.prototype,"ytSparklesClickLocationBehavior",void 0);
_.e([_.qX("#main-container"),_.w("design:type",HTMLElement)],qn.prototype,"mainContainer",void 0);_.e([_.X(),_.w("design:type",Object)],qn.prototype,"isInlinePreviewTriggered",void 0);_.e([_.X(),_.w("design:type",Object)],qn.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],qn.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_video_display_compact_button_group_for_desktop_search")}}),
_.w("design:type",Boolean)],qn.prototype,"enableShortDR",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_vac_ui_update_for_desktop_search")}}),
_.w("design:type",Boolean)],qn.prototype,"enableUiUpdate",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],qn.prototype,"biggerThumbsStyle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.w("design:type",Boolean)],qn.prototype,"showCta",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.w("design:type",Boolean)],qn.prototype,"isShortDr",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.w("design:type",Boolean)],qn.prototype,"isShortDrOrNewUi",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.w("design:type",Boolean)],qn.prototype,"isNewUiAndNotShortDr",void 0);_.e([_.X({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],qn.prototype,"buttonOverride",void 0);_.e([_.X({computed:"computeSecondaryButtonOverride(data)"}),_.w("design:type",Object)],qn.prototype,"secondaryButtonOverride",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],qn.prototype,"enableMonoStyle",void 0);
_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],qn.prototype,"thumbnail",void 0);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qn.prototype,"onTap",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qn.prototype,"dataChanged",null);_.e([_.S({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],qn);
_.r(qn,"ytd-promoted-video-renderer",function(){if(PGu!==void 0)return PGu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PGu=z},{mode:1});var hf_;var iv=function(){var z=_.q.apply(this,arguments)||this;z.useRoundedBadge=!0;z.sitelinkIds=[];return z};
_.m(iv,_.q);_.p=iv.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.C("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]]"}}}}}};
_.p.dataChanged=function(){var z;(z=this.data)!=null&&z.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,iv.JSC$15392_CLICK_LOCATION_ID_MAP)};
_.p.onTap=function(z){var l,I=(l=this.data)==null?void 0:l.navigationCommand;I&&!_.xU(_.MX(z),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,z,!1)};
_.p.onSitelinkTap=function(z){var l,I,b=z==null?void 0:(l=z.model)==null?void 0:(I=l.item)==null?void 0:I.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,z,!1)};
_.p.configureSitelinkClickTargets=function(){var z=this,l,I,b=(l=this.data)==null?void 0:(I=l.clickLocationTargets)==null?void 0:I.find(function(v){return v.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
b&&_.Hy(this.hostElement).querySelectorAll(".sitelink").forEach(function(v){_.fJ(v,"yt-simple-endpoint",!0);z.sitelinkIds.push(v.id);var M,x;(M=z.ytSparklesClickLocationBehavior)==null||(x=M.clickTargetMap)==null||x.set(v.id,b)})};
_.p.sendImpression=function(){var z,l,I=((z=this.data)==null?void 0:(l=z.impressionCommand)==null?void 0:l.loggingUrls)||[];z=_.D(I);for(l=z.next();!l.done;l=z.next())l=l.value,l.baseUrl&&Lp(l.baseUrl,l.attributionSrcMode)};
_.p.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.vP.Object.defineProperties(iv.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
iv.prototype.onTap=iv.prototype.onTap;iv.prototype.dataChanged=iv.prototype.dataChanged;iv.JSC$15392_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],iv.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iv.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iv.prototype,"showFavicon",null);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],iv.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],iv.prototype,"biggerThumbsStyle",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.w("design:type",Boolean)],iv.prototype,"enableThumbnailScalingFix",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iv.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],iv.prototype,"onTap",null);_.e([_.S({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],iv);
_.r(iv,"ytd-text-image-no-button-layout-renderer",function(){if(hf_!==void 0)return hf_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return hf_=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var sSj;var Ff=function(){var z=_.q.apply(this,arguments)||this;z.isInlinePlaybackState=!1;z.uiUpdate=_.C("web_modern_buttons");z.hideCta=_.C("hide_cta_for_home_web_video_ads");z.noBottomMargin=!1;z.animateInTimeStamp=_.OI("hide_cta_for_home_web_video_ads_animate_in_time");z.animateInCta=!1;z.isHovered=!1;z.enableMonoStyle=_.C("enable_default_mono_cta_migration_web_client");z.player=null;z.JSC$15399_playerEvents=new Map;z.JSC$15399_preventProgressSaveTimer=null;z.delayedCtaJobId=null;return z};
_.m(Ff,_.q);_.p=Ff.prototype;_.p.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]]"}}}}}};
_.p.attached=function(){this.JSC$15399_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15399_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.C("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.p.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15399_playerEvents)};
_.p.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ff.JSC$15398_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ff.JSC$15398_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.p.hoverChanged=function(){var z=this;this.delayedCtaJobId&&(_.ow.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.C("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.o0(_.ow,function(){z.buttonContainer.classList.add("show-delayed-buttons")},_.OI("delayed_cta_on_web_delay_milliseconds")))};
_.p.setPlayer=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return(l=_.EK(z.hostElement,"yt-get-inline-preview-player-action"))&&l[0]?I.yield(l[0].getPlayerPromise(),3):I.jumpTo(0);z.player=I.yieldResult;z.ytPlayerListenerBehavior.listenToPlayerEvents(z.player,z.JSC$15399_playerEvents);_.qe(I)})};
_.p.onPlaybackStart=function(){var z=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15399_preventProgressSaveTimer=_.CK(_.ow,function(){z.JSC$15399_preventProgressSaveTimer=null},1E4))};
_.p.onVideoProgress=function(z){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&z>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.p.resetPreventProgressSaveTimer=function(){_.ow.cancelJob(this.JSC$15399_preventProgressSaveTimer);this.JSC$15399_preventProgressSaveTimer=null};
_.p.getSimpleString=function(z){return _.ID(z)};
_.p.onClick=function(z){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint,b;l=(b=this.data)==null?void 0:b.channelEndpoint;var v,M;((M=_.k((v=this.data)==null?void 0:v.adCtaButton,_.xm))==null?0:M.command)&&_.xU(_.MX(z),this.hostElement,["call-to-action"])||(l&&_.xU(_.MX(z),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(l,z,!1):!_.xU(_.MX(z),this.hostElement,
["secondary-button"])&&I&&(_.C("enable_short_dr_for_desktop_launchable")?(b=!!_.k(I,_.zb),this.isInlinePlaybackState&&b&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,z,b)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,z,!0))))}};
_.p.updateWatchEndpointStartTime=function(){var z,l;this.player&&((z=this.data)==null?0:z.inlinePlaybackEndpoint)&&((l=this.data)==null?0:l.navigationEndpoint)&&!this.JSC$15399_preventProgressSaveTimer&&(z=Math.floor(this.player.getCurrentTime()),_.k(this.data.navigationEndpoint,_.zb).startTimeSeconds=z,_.k(this.data.inlinePlaybackEndpoint,_.zb).startTimeSeconds=z)};
_.p.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.p.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.vP.Object.defineProperties(Ff.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.C("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.watchButton)&&!((l=this.data)==null||!l.adCtaButton)}}});
Ff.prototype.hoverChanged=Ff.prototype.hoverChanged;Ff.prototype.dataChanged=Ff.prototype.dataChanged;
Ff.JSC$15398_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"]]);
Ff.JSC$15398_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Ff.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],Ff.prototype,"ytSparklesClickLocationBehavior",void 0);
_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],Ff.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ff.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"isInlinePlaybackState",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Ff.prototype,"miniMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"uiUpdate",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"hideCta",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"noBottomMargin",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"animateInCta",void 0);_.e([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.w("design:type",Object)],Ff.prototype,"buttonOverride",void 0);
_.e([_.X({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.w("design:type",Object)],Ff.prototype,"secondaryButtonOverride",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"isHovered",void 0);_.e([_.qX("#button-container"),_.w("design:type",HTMLElement)],Ff.prototype,"buttonContainer",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Ff.prototype,"typographyBump",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("typographyBump"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ff.prototype,"typographyBumpV2",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ff.prototype,"enableMonoStyle",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ff.prototype,"dataChanged",null);
_.e([_.By("isHovered"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ff.prototype,"hoverChanged",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ff.prototype,"isButtonGroup",null);_.e([_.S({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ff);
_.r(Ff,"ytd-ad-inline-playback-meta-block",function(){if(sSj!==void 0)return sSj;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sSj=z},{mode:_.yP("kevlar_poly_si_batch_j065")?1:2});var r6j;var Qj=function(){var z=_.q.apply(this,arguments)||this;z.noBottomMargin=!1;z.isInlinePreviewTriggered=!1;z.JSC$15404_activeViewMeasurementDataResolver=_.b1();return z};
_.m(Qj,_.q);_.p=Qj.prototype;_.p.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){var z=this;this.updateInlinePreviewHoverListeners();this.JSC$15404_activeViewMeasurementDataResolver.promise.then(function(l){z.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)});
_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners();_.C("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15404_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.JSC$15404_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jTA})};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$15404_inlinePreviewHoverListener)==null||vJ(z)};
_.p.onDataChanged=function(){var z;((z=this.data)==null?0:z.activeView)&&this.JSC$15404_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Qj.JSC$15403_DEFAULT_CLICK_LOCATION_BEHAVIOR,Qj.JSC$15403_CLICK_LOCATION_ID_MAP);this.thumbnail&&(z=this.thumbnail.getElementsByTagName("a"),z.length>0&&(z=z.namedItem("thumbnail"))&&z.removeAttribute("href"));var l;if((l=this.data)==
null?0:l.forceImpAutoplay){var I;(I=this.JSC$15404_inlinePreviewHoverListener)==null||tkS(I)}};
_.p.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.p.onThumbnailContainerClick=function(z){if(this.data&&this.data.navigationEndpoint){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,z,!!_.k(I,_.zb));z.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var z=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var l,I,b=(I=_.k((l=this.data)==null?void 0:l.onImpression,_.yi))==null?void 0:I.commands;b&&(b.forEach(function(v){v.clickTrackingParams&&delete v.clickTrackingParams;z.ytComponentBehavior.resolveCommand(v)}),this.data.impressionsFired=!0)}};
_.vP.Object.defineProperties(Qj.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$15404_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Qj.prototype.onTypographyBumpChanged=Qj.prototype.onTypographyBumpChanged;Qj.prototype.onDataChanged=Qj.prototype.onDataChanged;Qj.JSC$15403_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Qj.JSC$15403_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Qj.prototype,"ytComponentBehavior",void 0);_.e([_.t(O3),_.w("design:type",Object)],Qj.prototype,"ytdActiveViewBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],Qj.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.Cf),_.w("design:type",Object)],Qj.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Qj.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],Qj.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Qj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Qj.prototype,"noBottomMargin",void 0);
_.e([_.X(),_.w("design:type",Object)],Qj.prototype,"isInlinePreviewTriggered",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],Qj.prototype,"miniMode",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Qj.prototype,"typographyBump",void 0);_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],Qj.prototype,"thumbnail",void 0);_.e([_.qX("#dismissible"),_.w("design:type",HTMLElement)],Qj.prototype,"JSC$15404_dismissibleMedia",void 0);
_.e([_.qX("ytd-ad-inline-playback-meta-block"),_.w("design:type",HTMLElement)],Qj.prototype,"adInlinePlaybackMetaBlock",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qj.prototype,"onDataChanged",null);_.e([_.YE("typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qj.prototype,"onTypographyBumpChanged",null);
_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Qj.prototype,"isHovered",null);_.e([_.S({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Qj);
_.r(Qj,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(r6j!==void 0)return r6j;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return r6j=z},{mode:1});var $qM;var YH=function(){var z=_.q.apply(this,arguments)||this;z.isInlinePreviewTriggered=!1;z.JSC$15407_activeViewMeasurementDataResolver=_.b1();return z};
_.m(YH,_.q);_.p=YH.prototype;_.p.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){var z=this;this.updateInlinePreviewHoverListeners();this.JSC$15407_activeViewMeasurementDataResolver.promise.then(function(l){z.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15407_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.JSC$15407_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jTA})};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$15407_inlinePreviewHoverListener)==null||vJ(z)};
_.p.onDataChanged=function(){var z;((z=this.data)==null?0:z.activeView)&&this.JSC$15407_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",YH.JSC$15406_DEFAULT_CLICK_LOCATION_BEHAVIOR,YH.JSC$15406_CLICK_LOCATION_ID_MAP);this.thumbnail&&(z=this.thumbnail.getElementsByTagName("a"),z.length>0&&(z=z.namedItem("thumbnail"))&&z.removeAttribute("href"))};
_.p.onThumbnailContainerClick=function(z){if(this.data&&this.data.navigationEndpoint){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,z,!0);z.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var z=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var l,I,b=(I=_.k((l=this.data)==null?void 0:l.onImpression,_.yi))==null?void 0:I.commands;b&&(b.forEach(function(v){v.clickTrackingParams&&delete v.clickTrackingParams;_.pG().resolve(_.DQ).resolveCommand(v,{form:{element:z.hostElement}})}),this.data.impressionsFired=!0)}};
_.vP.Object.defineProperties(YH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$15407_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
YH.prototype.onDataChanged=YH.prototype.onDataChanged;YH.JSC$15406_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);YH.JSC$15406_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.e([_.t(O3),_.w("design:type",Object)],YH.prototype,"ytdActiveViewBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],YH.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],YH.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],YH.prototype,"ytdReduxBehavior",void 0);
_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],YH.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],YH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],YH.prototype,"isInlinePreviewTriggered",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],YH.prototype,"miniMode",void 0);_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],YH.prototype,"thumbnail",void 0);
_.e([_.qX("#dismissible"),_.w("design:type",HTMLElement)],YH.prototype,"JSC$15407_dismissibleMedia",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],YH.prototype,"onDataChanged",null);_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],YH.prototype,"isHovered",null);_.e([_.S({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],YH);
_.r(YH,"ytd-video-display-full-buttoned-renderer",function(){if($qM!==void 0)return $qM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return $qM=z},{mode:1});var gn=function(z,l,I,b){b=b===void 0?!1:b;_.I1.call(this,z);this.adsClientErrorMessage=I;this.aggressivelySample=b;this.args=[];l&&this.args.push(l)};
_.m(gn,_.I1);var xM=function(z,l,I,b){b=b===void 0?!1:b;_.I1.call(this,z);this.adsClientErrorMessage=I;this.aggressivelySample=b;this.args=[];l&&this.args.push(l)};
_.m(xM,_.I1);var efp=function(z){_.Q9.call(this);var l=this;this.initializationFunction=z;this.instance=null;this.addOnDisposeCallback(function(){_.p0(l.instance);l.instance=null})};
_.m(efp,_.Q9);efp.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.l7("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var lUf=function(){var z=new Map;[].forEach(function(l){z.set(l.JSC$30487_getType(),l)});
this.getters=z};new Promise(function(){});var amf=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"]]),LD7=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"}]]),wMA=function(z){this.experimentApiProvider=z;z=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=z<.1};var TB=function(z,l,I,b){_.Q9.call(this);this.adsControlFlowEventListeners=l;this.adEventLogger=I;this.experimentApiProvider=b;this.adsControlFlowManagerHelper=z(this,this,this,this,this);_.kN(this,this.adsControlFlowManagerHelper);z=_.D(l);for(l=z.next();!l.done;l=z.next())_.kN(this,l.value)};
_.m(TB,_.Q9);var A6u=function(z,l,I,b){c6(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",l,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b);z=_.D(z.adsControlFlowEventListeners);for(b=z.next();!b.done;b=z.next())A6u(b.value,l,I)};
_.p=TB.prototype;_.p.onOpportunityProcessedExternallyManaged=function(z,l,I,b){c6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",z,I,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)};
_.p.onSlotReceivedExternallyManaged=function(z,l){Sp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",z,l)};
_.p.onSlotEntered=function(z){if(dK(this.adsControlFlowManagerHelper,z)!=null){Sp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",z);this.adsControlFlowManagerHelper.onSlotEntered(z);for(var l=_.D(this.adsControlFlowEventListeners),I=l.next();!I.done;I=l.next())I.value.onSlotEntered(z);if(dK(this.adsControlFlowManagerHelper,z)!=null&&dK(this.adsControlFlowManagerHelper,z).isOccupyingSlotType()&&o6(this.adsControlFlowManagerHelper,z)&&!WVw(this.adsControlFlowManagerHelper,z)){var b;P6(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",z,(b=o6(this.adsControlFlowManagerHelper,z))!=null?b:void 0);z=dK(this.adsControlFlowManagerHelper,z);z.slotLifecycleStage!=="entered"&&hU(z.slot,z.slotLifecycleStage,"enterLayoutForSlot");z.slotLifecycleStage="rendering";z.registeredLayoutRenderingAdapter.startRendering(z.layout)}}};
_.p.onSlotExited=function(z){if(dK(this.adsControlFlowManagerHelper,z)!=null){Sp(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",z);this.adsControlFlowManagerHelper.onSlotExited(z);for(var l=_.D(this.adsControlFlowEventListeners),I=l.next();!I.done;I=l.next())I.value.onSlotExited(z);dK(this.adsControlFlowManagerHelper,z)!=null&&dK(this.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests&&nkw(this,z)}};
_.p.onLayoutReceivedExternallyManaged=function(z,l,I){z.managerLayer!=="core"&&P6(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",z,l,I)};
var LVA=function(z,l,I){if(dK(z.adsControlFlowManagerHelper,l)!=null){P6(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,I);z=_.D(z.adsControlFlowEventListeners);for(var b=z.next();!b.done;b=z.next())LVA(b.value,l,I)}};
TB.prototype.onLayoutExited=function(z,l,I){if(dK(this.adsControlFlowManagerHelper,z)!=null){P6(this.adEventLogger,UJp(I),z,l);this.adsControlFlowManagerHelper.onLayoutExited(z,l);for(var b=_.D(this.adsControlFlowEventListeners),v=b.next();!v.done;v=b.next())v.value.onLayoutExited(z,l,I);(I=o6(this.adsControlFlowManagerHelper,z))&&l.layoutId===I.layoutId&&Uqp(this,z)}};
TB.prototype.disposeInternal=function(){var z=aG4(this.adsControlFlowManagerHelper);z=_.D(z);for(var l=z.next();!l.done;l=z.next())nkw(this,l.value);_.Q9.prototype.disposeInternal.call(this)};
var nkw=function(z,l){if(dK(z.adsControlFlowManagerHelper,l)!=null)if(dK(z.adsControlFlowManagerHelper,l).JSC$30517_isSlotExitRequested()||dK(z.adsControlFlowManagerHelper,l).JSC$30517_isLayoutExitRequested())dK(z.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(dK(z.adsControlFlowManagerHelper,l).isOccupyingSlotType())dK(z.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests=!0,Uqp(z,l);else if(dK(z.adsControlFlowManagerHelper,l).JSC$30517_isSlotFillRequested())dK(z.adsControlFlowManagerHelper,
l).markedForUnscheduleAfterOutboundAdapterRequests=!0,dK(z.adsControlFlowManagerHelper,l)!=null&&(Sp(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",l),l=dK(z.adsControlFlowManagerHelper,l),l.fulfillmentLifecycleStage="fill_cancel_requested",l.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=o6(z.adsControlFlowManagerHelper,l),b;z.experimentApiProvider.get();(b=_.C("h5_enable_layout_unscheduling_events"))&&(I?V0M(z,l,I):_.l7(Error("Oh"),l,I,void 0,!1));Sp(z.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",l);var v=dK(z.adsControlFlowManagerHelper,l),M=l.slotEntryTrigger,x=v.registeredSlotEntryTriggerAdapters.get(M.triggerId);x&&(x.unregisterTrigger(M),v.registeredSlotEntryTriggerAdapters.delete(M.triggerId));M=_.D(l.slotFulfillmentTriggers);for(x=M.next();!x.done;x=M.next()){x=x.value;var g=v.registeredFulfillmentTriggerAdapters.get(x.triggerId);g&&(g.unregisterTrigger(x),v.registeredFulfillmentTriggerAdapters.delete(x.triggerId))}M=_.D(l.slotExpirationTriggers);
for(x=M.next();!x.done;x=M.next())if(x=x.value,g=v.registeredExpirationTriggerAdapters.get(x.triggerId))g.unregisterTrigger(x),v.registeredExpirationTriggerAdapters.delete(x.triggerId);v.hasLayout()&&(M=v.layout,s0(v,M.layoutExitNormalTriggers),s0(v,M.layoutExitSkipTriggers),s0(v,M.layoutExitMuteTriggers),s0(v,M.layoutExitUserInputSubmittedTriggers),s0(v,M.layoutExitUserCancelledTriggers));v.registeredFulfillmentAdapter=void 0;v.registeredSlotAdapter!=null&&(v.registeredSlotAdapter.release(),v.registeredSlotAdapter=
void 0);v.registeredLayoutRenderingAdapter!=null&&(v.registeredLayoutRenderingAdapter.release(),v.registeredLayoutRenderingAdapter=void 0);v=z.adsControlFlowManagerHelper;dK(v,l)&&(v=jS_(v,l.slotType+"_"+l.slotPhysicalPosition))&&v.delete(l.slotId);Sp(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",l);z=_.D(z.adsControlFlowEventListeners);for(v=z.next();!v.done;v=z.next())v=v.value,v.onSlotUnscheduled(l),I&&!b&&V0M(v,l,I)}},V0M=function(z,l,I){P6(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
l,I);
P6(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",l,I);z=_.D(z.adsControlFlowEventListeners);for(var b=z.next();!b.done;b=z.next())b=b.value,I&&V0M(b,l,I)},Uqp=function(z,l){if(dK(z.adsControlFlowManagerHelper,l)!=null&&dK(z.adsControlFlowManagerHelper,l).isOccupyingSlotType()){var I=o6(z.adsControlFlowManagerHelper,l);
if(I&&WVw(z.adsControlFlowManagerHelper,l)){if(dK(z.adsControlFlowManagerHelper,l)!=null){var b=z.adEventLogger,v;var M=((v=LD7.get("abandoned"))==null?void 0:v.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";P6(b,M,l,I);z=dK(z.adsControlFlowManagerHelper,l);z.slotLifecycleStage!=="rendering"&&hU(z.slot,z.slotLifecycleStage,"exitLayout");z.slotLifecycleStage="rendering_stop_requested";z.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{Sp(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
l);try{b=dK(z.adsControlFlowManagerHelper,l);if(!b)throw new xM("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");b.slotLifecycleStage!=="enter_requested"&&b.slotLifecycleStage!=="entered"&&b.slotLifecycleStage!=="rendering"&&hU(b.slot,b.slotLifecycleStage,"exitSlot");b.slotLifecycleStage="exit_requested";if(b.registeredSlotAdapter===void 0)throw b.slotLifecycleStage="scheduled",new xM("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
b.registeredSlotAdapter.exit()}catch(x){x instanceof xM&&x.adsClientErrorMessage?(J6w(z.adEventLogger,x.adsClientErrorMessage,l),_.l7(x,l,void 0,void 0,x.aggressivelySample)):(J6w(z.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l),_.l7(x,l))}}}};var rK=function(z,l,I,b,v,M){_.Q9.call(this);this.registry=z;this.experimentApiProvider=M;this.slotMap=new Map};
_.m(rK,_.Q9);var jS_=function(z,l){return(z=z.slotMap.get(l))?z:new Map},dK=function(z,l){return jS_(z,l.slotType+"_"+l.slotPhysicalPosition).get(l.slotId)},aG4=function(z){var l=[];
z.slotMap.forEach(function(I){I=_.D(I.values());for(var b=I.next();!b.done;b=I.next())l.push(b.value.slot)});
return l};
rK.prototype.onSlotEntered=function(z){z=dK(this,z);z.slotLifecycleStage!=="enter_requested"&&hU(z.slot,z.slotLifecycleStage,"onSlotEntered");z.slotLifecycleStage="entered"};
var WVw=function(z,l){z=dK(z,l);return z.hasLayout()&&z.isRendering()},o6=function(z,l){(z=dK(z,l))?z.hasLayout()&&!z.layout&&_.l7("Unexpected empty layout",l):_.l7("Unexpected undefined slotState",l);
return(z==null?void 0:z.layout)||null};
rK.prototype.onSlotExited=function(z){z=dK(this,z);z.slotLifecycleStage!=="exit_requested"&&hU(z.slot,z.slotLifecycleStage,"onSlotExited");z.slotLifecycleStage="scheduled"};
rK.prototype.onLayoutExited=function(z,l){z=dK(this,z);z.isPrimaryLayout(l)&&(z.slotLifecycleStage!=="rendering_stop_requested"&&hU(z.slot,z.slotLifecycleStage,"onLayoutExited"),z.slotLifecycleStage="entered")};
var s0=function(z,l){l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=z.registeredLayoutExitTriggerAdapters.get(I.triggerId);b&&(b.unregisterTrigger(I),z.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},hU=function(z,l,I){_.l7("Slot stage was "+l+" when calling method "+I,z)};var lKw=function(z){_.Q9.call(this);this.deps=z;this.JSC$15457_adsControlFlowManager=zdM(this)};
_.m(lKw,_.Q9);var zdM=function(z){var l=new TB(function(I,b,v,M){return new rK(z.deps.registry,I,b,v,M,z.deps.experimentApiProvider)},new Set(z9t(z.deps.registry).concat(z.deps.listeners)),z.deps.adEventLogger,z.deps.experimentApiProvider);
_.kN(z,l);return l};var smH=function(){};var IK0=function(z,l){_.Q9.call(this);this.experimentApiProvider=z;this.eventLoggingSettingsProvider=l;this.eventCount=0;this.premiumAdSeenEventLogger=rHG()()};
_.m(IK0,_.Q9);IK0.prototype.logEvent=function(z){c6(this,z)};
var Sp=function(z,l,I,b){c6(z,l,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,b)},P6=function(z,l,I,b,v){c6(z,l,void 0,void 0,void 0,I,b?b:void 0,void 0,void 0,I.adSlotLoggingData,b?b.adLayoutLoggingData:void 0,void 0,v);
I=_.pG().resolve(_.MB(i_))==null?void 0:FL();l=I==null?void 0:I.adsSeenHotConfig;I=I==null?void 0:I.adsHotConfig;(l==null?0:l.logOnAdsSeen)&&(I==null?0:I.webEnablePremiumAdsSeenLogging)&&bLA(z,b?b:void 0,v)},J6w=function(z,l,I){c6(z,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:l})},c6=function(z,l,I,b,v,M,x,g,G,u,Z,H,y){y=y===void 0?0:y;
vvp(z.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+l,"slot:",M,"layout:",x,"ping:",g,"Opportunity:",{opportunityType:I,associatedSlotId:b,slotsFromOpportunity:v,triggerBundle:G,adSlotLoggingData:u,adLayoutLoggingData:Z});try{var f=function(){z.experimentApiProvider.get();if(l!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){l||_.l7("Empty PACF event type",M,x);var R=z.eventLoggingSettingsProvider.get();var F;(F=R.alwaysIncludeDebugData)||(R.experimentApiProvider.get(),F=
!1);R=F;F={eventType:l,eventOrder:++z.eventCount};var Y={};M&&(Y.slotData=jZ$(R,M));if(x){var c={type:x.layoutType,controlFlowManagerLayer:amf.get(x.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R&&(c.debugData={layoutId:x.layoutId});Y.layoutData=c}g&&(Y.pingData={pingDispatchStatus:g.dispatchStatus,serializedAdPingMetadata:g.ping.serializedAdPingMetadata,pingIndex:g.index});G&&(Y.triggerData=VJp(G.trigger,G.category));I&&(Y.opportunityData=J2Y(R,I,b,v));F.adClientData=Y;u&&(F.serializedSlotAdServingData=
u.serializedSlotAdServingDataEntry);Z&&(F.serializedAdServingData=Z.serializedAdServingDataEntry);H&&(F.errorInfo=H);_.cW("adsClientStateChange",{adsClientEvent:F})}};
y&&y>0?_.qA(_.Y1(),function(){return f()},y):f()}catch(R){vvp(z.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.qA(_.Y1(),function(){_.l7(R instanceof Error?R:String(R),M,x,{pacf_message:"exception during pacf logging"})})}},bLA=function(z,l,I){if(l){var b=l.adLayoutLoggingData;
_.qA(_.Y1(),function(){z.premiumAdSeenEventLogger!=null&&b&&_.cW("adsSeenClientLogging",{serializedAdServingDataEntry:b.serializedAdServingDataEntry})},I!=null?I:0)}};var MRn=function(z,l){IK0.call(this,z,l)};
_.m(MRn,IK0);var pNn=function(){},vvp=function(z,l){return _.C(l)};var xHI=function(){var z=new DHn;this.JSC$15482_adsControlFlowManager=(new lKw(z)).JSC$15457_adsControlFlowManager},DHn=function(){_.Q9.call(this);
var z=this;this.experimentApiProvider=new efp(function(){return new pNn});
var l=new efp(function(){return new wMA(z.experimentApiProvider)});
this.adEventLogger=new MRn(this.experimentApiProvider,l);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.m(DHn,_.Q9);var OLn=function(){},gvj,$H=function(){gvj||(gvj=new OLn);
return gvj},ep=function(z){if(!z.JSC$15493_externallyManagedSlotAdapterCallback){var l=(new xHI).JSC$15482_adsControlFlowManager;
z.JSC$15493_externallyManagedSlotAdapterCallback=l}return z.JSC$15493_externallyManagedSlotAdapterCallback},Gxn=function(z,l,I){var b=l.opportunityType,v=Error("Ph");
if(b!==void 0){var M=ep(z);A6u(M,b,void 0,I)}else _.l7(v,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});M=[];if(l.adSlotAndLayoutMetadata!==void 0){l=_.D(l.adSlotAndLayoutMetadata);for(var x=l.next();!x.done;x=l.next()){var g=x.value;if(x=g.adSlotMetadata)if(M.push(x),z.onSlotReceivedExternallyManaged(x,I),g.adLayoutMetadata){g=_.D(g.adLayoutMetadata);for(var G=g.next();!G.done;G=g.next())z.onLayoutReceivedExternallyManaged(x,G.value,I)}else I>0&&_.l7("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.l7("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.l7("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(b!==void 0)z.onOpportunityProcessedExternallyManaged(b,M,void 0,I);else _.l7(v,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
OLn.prototype.onSlotReceivedExternallyManaged=function(z,l){z=Oc(z);if(z instanceof xM)_.l7(z,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else ep(this).onSlotReceivedExternallyManaged(z,l)};
OLn.prototype.onLayoutReceivedExternallyManaged=function(z,l,I){z=Oc(z);l=IUY(l);if(z instanceof xM)_.l7(z,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(l instanceof gn)_.l7(l,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else ep(this).onLayoutReceivedExternallyManaged(z,l,I)};
OLn.prototype.onOpportunityProcessedExternallyManaged=function(z,l,I,b){var v=[];l=_.D(l);for(var M=l.next();!M.done;M=l.next())M=Oc(M.value),M instanceof xM?_.l7(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):v.push(M);ep(this).onOpportunityProcessedExternallyManaged(z,v,I,b)};
var NtI=function(z,l){l=Oc(l);if(l instanceof xM)_.l7(l,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=ep(z);Sp(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",l);I=_.D(I.adsControlFlowEventListeners);for(var b=I.next();!b.done;b=I.next())b=dK(b.value,l),b.slotLifecycleStage!=="not_scheduled"&&hU(b.slot,b.slotLifecycleStage,"onSlotScheduled"),b.slotLifecycleStage="scheduled";z=ep(z);Sp(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",l);z=_.D(z.adsControlFlowEventListeners);
for(I=z.next();!I.done;I=z.next())I.value.onSlotEntered(l)}},Ev_=function(z,l){l=Oc(l);
if(l instanceof xM)_.l7(l,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=ep(z);Sp(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);I=_.D(I.adsControlFlowEventListeners);for(var b=I.next();!b.done;b=I.next())b.value.onSlotExited(l);z=ep(z);Sp(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",l);z=_.D(z.adsControlFlowEventListeners);for(I=z.next();!I.done;I=z.next())I.value.onSlotUnscheduled(l)}},u4_=function(z,l,I){l=Oc(l);
I=IUY(I);if(l instanceof xM)_.l7(l,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof gn)_.l7(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var b=ep(z);P6(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",l,I);b=_.D(b.adsControlFlowEventListeners);for(var v=b.next();!v.done;v=b.next())v.value.onLayoutScheduled(l,I);z=ep(z);P6(z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,I);z=_.D(z.adsControlFlowEventListeners);
for(b=z.next();!b.done;b=z.next())LVA(b.value,l,I)}},wK=function(z,l,I){l=Oc(l);
I=IUY(I);if(l instanceof xM)_.l7(l,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof gn)_.l7(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var b=ep(z);P6(b.adEventLogger,UJp("normal"),l,I);b=_.D(b.adsControlFlowEventListeners);for(var v=b.next();!v.done;v=b.next())v.value.onLayoutExited(l,I,"normal");z=ep(z);z=_.D(z.adsControlFlowEventListeners);for(b=z.next();!b.done;b=z.next())V0M(b.value,l,I)}};_.AU=_.P(function(z){var l=_.xC(z,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});z=Object.assign({},l);var I=l.data;l=l.customCommandResolver;var b=(delete z.data,delete z.customCommandResolver,z);z=_.ps({visibilityCallback:function(g,G){var u,Z=(u=I().interaction)==null?void 0:u.onFirstVisible;g&&(Z&&_.ae(Z),b.setOnErrorHandler()&&baQ(G))},
showOption:_.FJ});l=_.a0(function(){return I().interaction},l,function(){var g;
return(g=b.listenToTapEvent)==null?void 0:g.call(b)});
var v=_.D(_.Z_(!1,void 0,"wAC0Lc")),M=v.next().value,x=v.next().value;v=_.KK(function(g){var G;((G=b.setTouchEndHandler)==null?0:G.call(b))&&!M()&&(g.currentTarget.click(),x(!0),setTimeout(function(){x(!1)},100));
return!1});
return _.N("ad-image-view-model",{class:function(){var g,G=[((g=I().interaction)==null?0:g.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],u;((u=b.isGridViewEnabled)==null?0:u.call(b))&&G.push("ytwAdImageViewModelHostInGridView");return G.join(" ")},
el:_.xl(z,l),"on:touchend":v},_.N("div",{class:"ytwAdImageViewModelHostImageContainer"},_.N(_.pK,{data:function(){var g;return{sources:I().imageSources,contentMode:(g=I().imageProperties)==null?void 0:g.contentMode}},
alt:function(){var g,G;return((g=I().interaction)==null?void 0:(G=g.accessibility)==null?void 0:G.label)||""},
targetHeight:b.targetHeight,targetWidth:b.targetWidth,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,useWidth:b.useWidth,style:function(){var g,G;return"vertical-align: bottom;"+(((g=I().background)==null?0:g.color)?"background-color:"+_.Ur((G=I().background)==null?void 0:G.color)+";":"")},
className:function(){return b.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var g,G;return(G=(g=b.setDraggable)==null?void 0:g.call(b))!=null?G:void 0}})))},"sb");var ZLw=_.P(function(z){var l=z.data,I=z.listenToTapEvent,b=function(){};
return _.N("ad-button-hover-overlay-view-model",{"on:click":_.KK(function(v){if(_.C("enable_web_home_top_landscape_image_layout_legacy_click_command")){var M,x=(M=l().interaction)==null?void 0:M.onTap;x&&_.gC(v.currentTarget,"yt-navigate",{endpoint:_.Wh(x)})}}),
class:function(){var v;return((v=l().interaction)==null?0:v.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(v){var M,x=(M=l().interaction)==null?void 0:M.onFirstVisible;v&&x&&_.ae(x)},
showOption:_.FJ}),_.a0(function(){return l().interaction},void 0,function(){return!_.C("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(I==null?void 0:I())}))},function(){return _.C("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.N(_.TS,{data:function(){return l().button}},{adButtonViewModel:function(v){return _.N(_.YQ,{data:v.data,
customCommandResolver:b})}}):_.N(_.TS,{data:function(){return l().button}},{adButtonViewModel:_.YQ})}())},"tb");var GD;_.uO(_.P(function(z){var l=z.data;z=_.ps({visibilityCallback:function(g,G){if(g){var u;(g=(u=l().interaction)==null?void 0:u.onFirstVisible)&&_.ae(g);var Z;if(u=(Z=l().adLayoutData)==null?void 0:Z.activeViewData)Na(G,u),_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ec(G)})}else _.C("stop_av_measurement_on_detach")&&Ec(G)},
showOption:_.FJ,hideOption:Q8});var I=_.a0(function(){return l().interaction},void 0,function(){return!0}),b=_.D(_.Z_(!1,void 0,"VNDDT")),v=b.next().value,M=b.next().value;
b=_.KK(function(){M(!0)});
var x=_.KK(function(){M(!1)});
return _.N("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.xl(z,ggS,I),"on:mouseenter":b,"on:mouseleave":x},_.N("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.XV({"max-width":function(){return _.C("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.N("div",{class:function(){var g;
a:{var G;switch((g=_.k(l().thumbnailImage,GLn))==null?void 0:(G=g.imageProperties)==null?void 0:G.renderingAspect){case "RENDERING_ASPECT_SQUARE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}g=void 0}return g}},_.N(_.TS,{data:function(){return l().thumbnailImage}},{adImageViewModel:function(g){return _.N(_.AU,
{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.C("enable_top_landscape_image_experiment_dom_id_web")})}})),_.N("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.N(_.E,{cond:function(){var g,G,u;
return(g=_.k(l().thumbnailImage,GLn))==null?void 0:(G=g.imageProperties)==null?void 0:(u=G.overlayIcon)==null?void 0:u.iconImage},
then:function(g){return _.N(_.pK,{data:g,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.N("div",{class:function(){return v()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.N(_.TS,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(g){return _.N(ZLw,
{data:g.data,
listenToTapEvent:!0})}}))),_.N("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.N(_.TS,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(g){return _.N(hZ,{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.C("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;z=_.ps({visibilityCallback:function(g,G){if(g){var u;(g=(u=l().interaction)==null?void 0:u.onFirstVisible)&&_.ae(g);var Z;if(u=(Z=l().adLayoutData)==null?void 0:Z.activeViewData)Na(G,u),_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ec(G)})}else _.C("stop_av_measurement_on_detach")&&Ec(G)},
showOption:_.FJ,hideOption:Q8});var I=_.nK(_.Wr),b=_.a0(function(){return l().interaction}),v={},M={},x={};
return _.N("square-image-layout-view-model",{class:_.m9("ytwSquareImageLayoutViewModelHost",(v.ytwSquareImageLayoutViewModelHostColumn=I,v)),el:_.xl(z,GVp,b)},_.N("div",{class:_.m9("ytwSquareImageLayoutViewModelHostImage",(M.ytwSquareImageLayoutViewModelHostColumnImage=I,M))},function(){return _.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(g){return _.N(_.AU,{data:g.data,
isGridViewEnabled:I,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.N("div",{class:_.m9("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(x.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=I,x))},_.N(_.TS,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:hZ}),function(){return _.N(_.TS,{data:function(){return l().adButton}},{adButtonViewModel:function(g){var G={};
return _.N(_.YQ,{data:g.data,className:_.m9((G.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,G.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=I,G))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=z.noBottomMargin;var b=z.typographyBump;z=_.ps({visibilityCallback:function(H,y){if(H){var f;(H=(f=l().interaction)==null?void 0:f.onFirstVisible)&&_.ae(H);var R;if(f=(R=l().adLayoutData)==null?void 0:R.activeViewData)Na(y,f),_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ec(y)})}else _.C("stop_av_measurement_on_detach")&&Ec(y)},
showOption:_.FJ,hideOption:Q8});var v=_.a0(function(){return l().interaction},void 0,function(){return _.C("enable_web_home_top_landscape_image_layout_level_click")}),M=function(){return l().interaction};
M!==void 0&&M!==null||_.nP(Error("Qh"));var x=function(){var H,y,f;return(H=_.k(l().thumbnailImage,GLn))==null?void 0:(y=H.background)==null?void 0:(f=y.backgroundImageSource)==null?void 0:f.imageSources};
M=_.D(_.Z_(!1,void 0,"NFjwje"));var g=M.next().value,G=M.next().value;M=_.KK(function(){G(!0)});
var u=_.KK(function(){G(!1)}),Z=function(){return g()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.N("top-landscape-image-layout-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)&&_.C("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.xl(z,N_t,v),"on:mouseenter":M,"on:mouseleave":u},_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.N(_.E,{cond:function(){return x()&&x().length>0},
then:function(){return _.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.XV({top:"0","background-image":function(){return"url("+String(x()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.N(_.E,{cond:function(){return!!l().adButtonHoverOverlay},
then:function(){return _.N("div",{class:Z},_.N(_.TS,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:ZLw}))}}),_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.N(_.TS,{data:function(){return l().thumbnailImage}},{adImageViewModel:function(H){return _.N(_.AU,{data:H.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.C("enable_web_home_top_landscape_image_layout_level_click")})}})),_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.N(_.pK,{data:{sources:[{clientResource:{imageName:_.C("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.N(_.TS,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(H){return _.N(hZ,{data:H.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.C("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return b==null?void 0:b()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.mB,
noBottomMargin:_.mB,typographyBump:_.mB}});var HLj=_.P(function(z){var l=z.data,I=_.ps({visibilityCallback:function(v){var M,x=(M=l().interaction)==null?void 0:M.onFirstVisible;v&&x&&_.ae(x)},
showOption:_.FJ});z=_.a0(function(){return l().interaction},z.customCommandResolver);
var b={};return _.N("ad-text-image-view-model",{class:_.m9("ytwAdTextImageViewModelHost",(b.ytwAdTextImageViewModelHostDarkBackground=function(){return l().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},b)),
el:_.xl(I,z),"aria-label":function(){var v,M;return(v=l().interaction)==null?void 0:(M=v.accessibility)==null?void 0:M.label}},_.N("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.N(_.Rf,{text:function(){return l().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.N(_.E,{cond:function(){return l().overlayIcon},
then:function(v){return _.N("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.N(_.pK,{data:v,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"xb");var y0A=_.P(function(z){var l=z.data;return _.N("feed-ad-sitelink-view-model",{class:"ytwFeedAdSitelinkViewModelHost",el:_.xl(_.a0(function(){return l().interaction},z.customCommandResolver)),
"aria-label":function(){var I,b;return(I=l().interaction)==null?void 0:(b=I.accessibility)==null?void 0:b.label}},_.N(_.Rf,{text:function(){return l().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"yb");var fKz=_.P(function(z){var l=z.data;z={};return _.N("feed-ad-sitelinks-carousel-view-model",{el:_.xl(_.ps({visibilityCallback:function(I){var b,v=(b=l().interaction)==null?void 0:b.onFirstVisible;I&&v&&_.ae(v)},
showOption:_.FJ})),class:_.m9("ytwFeedAdSitelinksCarouselViewModelHost",(z.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return l().style==="FEED_AD_SITELINKS_STYLE_NONE"},z))},_.N(_.TS,{data:function(){return l().sitelinks}},{feedAdSitelinkViewModel:y0A}))},"zb");_.uO(_.P(function(z){var l=z.data;z=_.ps({visibilityCallback:function(x,g){if(x){var G;(x=(G=l().interaction)==null?void 0:G.onFirstVisible)&&_.ae(x);var u;(G=(u=l().adLayoutData)==null?void 0:u.activeViewData)&&Na(g,G)}},
showOption:_.FJ});var I=_.D(_.Z_(!1,void 0,"BzPhl")),b=I.next().value,v=I.next().value;I=_.KK(function(){v(!0)});
var M=_.KK(function(){v(!1)});
return _.N("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.xl(z),"on:mouseenter":I,"on:mouseleave":M},_.N("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.N("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.N(_.TS,{data:function(){return l().textImage}},{adTextImageViewModel:HLj})),_.N("div",{class:function(){return b()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.N(_.TS,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(x){return _.N(ZLw,{data:x.data,
listenToTapEvent:!0})}}))),_.N("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.N(_.TS,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(x){return _.N(hZ,{data:x.data,
listenToTapEvent:!0})}}),_.N(_.TS,{data:function(){return l().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:fKz})))},"Ab"),"text-image-no-button-layout-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=z.typographyBump;return _.N("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.xl(_.ps({visibilityCallback:function(b,v){if(b){var M;(b=(M=l().interaction)==null?void 0:M.onFirstVisible)&&_.ae(b);var x;(M=(x=l().adLayoutData)==null?void 0:x.activeViewData)&&Na(v,M)}},
showOption:_.FJ,hideOption:Q8}))},_.N("div",null,_.N(_.TS,{data:function(){return l().videoLockup}},{lockupViewModel:function(b){return _.N(_.sq,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"Bb"),"video-display-button-group-layout-view-model",{props:{data:_.mB,
noBottomMargin:_.mB,typographyBump:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=z.className;var b=z.typographyBump;return _.N("video-display-compact-button-group-layout-view-model",{el:_.xl(_.ps({visibilityCallback:function(v,M){if(v){var x;(v=(x=l().interaction)==null?void 0:x.onFirstVisible)&&_.ae(v);var g;(x=(g=l().adLayoutData)==null?void 0:g.activeViewData)&&Na(M,x)}},
showOption:_.FJ})),class:_.m9("videoDisplayCompactButtonGroupLayoutViewModelHost",I)},_.N(_.TS,{data:function(){return l().videoLockup}},{lockupViewModel:function(v){return _.N(_.sq,{data:v.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"Cb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.mB,
className:_.mB,typographyBump:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=z.className;var b=z.typographyBump;return _.N("video-display-compact-buttoned-layout-view-model",{el:_.xl(_.ps({visibilityCallback:function(v,M){if(v){var x;(v=(x=l().interaction)==null?void 0:x.onFirstVisible)&&_.ae(v);var g;(x=(g=l().adLayoutData)==null?void 0:g.activeViewData)&&Na(M,x)}},
showOption:_.FJ})),class:_.m9("videoDisplayCompactButtonedLayoutViewModelHost",I)},_.N(_.TS,{data:function(){return l().videoLockup}},{lockupViewModel:function(v){return _.N(_.sq,{data:v.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"Db"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.mB,
className:_.mB,typographyBump:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=z.className;var b=z.typographyBump;var v=function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},M=_.nK(_.Wr);
z=_.ps({visibilityCallback:function(u,Z){if(u){var H=l();u=H.adLayoutData;var y;(H=(y=H.interaction)==null?void 0:y.onFirstVisible)&&_.ae(H);(y=u==null?void 0:u.activeViewData)&&Na(Z,y)}},
showOption:_.FJ});var x=_.kz(function(){return{containerType:v()&&M()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),g=_.kz(function(){return v()&&M()?"":v()?"168px":"50%"},void 0,"qNDzkb"),G=_.kz(function(){return v()&&M()?9999:void 0},void 0,"Ikn8Kb");
return _.N("video-display-compact-layout-view-model",{el:_.xl(z),class:_.m9("videoDisplayCompactLayoutViewModelHost",I)},_.N(_.TS,{data:function(){return l().videoLockup}},{lockupViewModel:function(u){return _.N(_.sq,{data:u.data,
containerLayoutConfig:x,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:g,thumbnailTargetWidth:G,typographyBump:b})}}))},"Eb"),"video-display-compact-layout-view-model",{props:{data:_.mB,
className:_.mB,typographyBump:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=z.typographyBump;return _.N("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.xl(_.ps({visibilityCallback:function(b,v){if(b){var M;(b=(M=l().interaction)==null?void 0:M.onFirstVisible)&&_.ae(b);var x;(M=(x=l().adLayoutData)==null?void 0:x.activeViewData)&&Na(v,M)}},
showOption:_.FJ,hideOption:Q8}))},_.N("div",null,_.N(_.TS,{data:function(){return l().videoLockup}},{lockupViewModel:function(b){return _.N(_.sq,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"Fb"),"video-display-full-layout-view-model",{props:{data:_.mB,
noBottomMargin:_.mB,typographyBump:_.mB}});_.Cmz=_.P(function(z){var l=z.data;z=_.VK("ad-card-badge-view-model");return _.N("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:z},_.N(_.E,{cond:function(){return l().imageBadge},
then:function(I){return _.N(_.pK,{data:I,alt:""})}}))},"Gb");var kxA=_.P(function(z){var l=z.data;var I=z.customCommandResolver;return _.N("carousel-ad-card-image-view-model",{class:function(){var b;return((b=l().interaction)==null?0:b.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ}),_.a0(function(){return l().interaction},I)),
"aria-label":function(){var b,v;return(b=l().interaction)==null?void 0:(v=b.accessibility)==null?void 0:v.label}},_.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(b){return _.N(_.AU,{data:b.data,
customCommandResolver:I})}}),_.N("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.N(_.TS,{data:function(){return l().badge}},{adCardBadgeViewModel:_.Cmz})),_.N(_.SD,{model:{color:4}}))},"Hb");var Rd_=_.P(function(z){var l=_.D(_.Z_(0,void 0,"JJ0QQc")),I=l.next().value;l.next();var b=l.next().value,v=_.D(_.Z_(!1,void 0,"f6YICe"));l=v.next().value;var M=v.next().value,x;_.cb(function(){clearTimeout(x)});
v=_.KK(function(){var u;((u=z.animate)==null?0:u.call(z))?(M(!0),x=setTimeout(function(){M(!1);g()},200)):g();
return!1});
var g=function(){b(function(u){return(u+z.numShownItems())%z.data().length})},G={};
return _.N("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.N("div",{class:_.m9("ytwHorizontalCarouselCarouselWrapper")},_.N("div",{class:_.m9("ytwHorizontalCarouselCarouselInnerWrapper",(G.ytwHorizontalCarouselAnimating=l,G))},_.N(_.qy,{each:z.data,keyBy:"INDEX"},function(u,Z){return _.N("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.XV({"flex-basis":function(){return"calc((100% - (8px * "+(z.numShownItems()-1)+")) / "+z.numShownItems()+")"},
order:function(){var H=Z-I();H<0&&(H+=z.data().length);return H}})},z.children(u,Z))}))),_.N("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":v},z.nextButton()))},"Ib");var mH4=_.P(function(z){var l=z.data;var I=z.customCommandResolver;var b=z.expansive;return _.N("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.xl(_.ps({visibilityCallback:function(v){var M,x=(M=l().interaction)==null?void 0:M.onFirstVisible;v&&x&&_.ae(x)},
showOption:_.FJ}))},_.N(Rd_,{data:function(){var v;return((v=l())==null?void 0:v.carouselAdCards)||[]},
nextButton:function(){return _.N(_.TS,{data:function(){return l().nextButton}},{buttonViewModel:function(v){var M=v.data;
return _.N(_.h4,{data:function(){return(b==null?0:b())?Object.assign({},M(),{style:"mono"}):M()},
className:_.C("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(v){return _.N(_.TS,{data:v},{carouselAdCardImageViewModel:function(M){return _.N(kxA,{data:M.data,customCommandResolver:I})}})}))},"Jb");var Kpp=_.P(function(z){var l=z.data;var I=z.customCommandResolver;var b=z.className;var v=z.buttonClassName;var M=z.animationEntityKey;var x=z.expansive;return _.N("carousel-button-view-model",{class:_.m9("ytwCarouselButtonViewModelHost",b)},_.N(_.TS,{data:function(){return l().carousel}},{carouselAdCardCollectionViewModel:function(g){return _.N(mH4,{data:g.data,
customCommandResolver:I,expansive:x})}}),_.N(_.TS,{data:function(){return l().button}},{adButtonViewModel:function(g){var G=g.data;
return _.N(_.YQ,{data:function(){return(x==null?0:x())?Object.assign({},G(),{style:"AD_BUTTON_STYLE_TONAL"}):G()},
className:v,customCommandResolver:I,animationEntityKey:M})}}))},"Kb");_.tR_=_.P(function(z){var l=z.data;z=z.className;var I=_.VK("pivot-button-view-model");_.Sm(function(){var b;((b=l())==null?0:b.backgroundColor)&&I.value.setAttribute("data-background-color",String(l().backgroundColor))});
return _.N("pivot-button-view-model",{el:I,class:_.m9("ytwPivotButtonViewModelHost",z)},_.N(_.cZ,{command:function(){var b=l();b=b.onClickCommand?_.Wh(b.onClickCommand):b.contentDescription?_.Dk(b.contentDescription):void 0;return b},
ariaLabel:function(){return l().contentDescription}},_.N(_.E,{cond:function(){return l().thumbnail},
then:function(b){return _.N(_.pK,{data:b,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.N(_.E,{cond:function(){return l().icon},
then:function(b){return _.N(_.qt,{icon:function(){return b().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lb");_.Btz=_.P(function(z){var l=z.data;var I=z.buttonShapeOverrideables;return _.N("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.N(_.TS,{data:function(){return l().buttonViewModels}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
buttonOverrides:I})},
likeButtonViewModel:function(b){return _.N(_.gP,{data:b.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(b){return _.N(_.Os,{data:b.data,buttonShapeOverrideables:I})},
toggleButtonViewModel:function(b){return _.N(_.vL,{data:b.data,buttonShapeOverrides:I})}}))},"Mb");var XNp=_.P(function(z){var l=z.avatar;var I=z.headline;var b=z.badge;var v=z.description;var M=z.expansive;z={};return _.N("yt-ad-metadata-shape",{class:_.m9("ytAdMetadataShapeHost",(z.ytAdMetadataShapeHostLarge=M,z))},_.N("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.N(_.E,{cond:l,then:function(x){return _.N(_.Cku,{data:function(){return(M==null?0:M())?Object.assign({},x(),{size:"AD_AVATAR_SIZE_M"}):x()}})}}),_.N("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.N(_.Rf,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.N(_.E,{cond:b,then:function(x){return _.N(_.ot,{data:function(){return(M==null?0:M())?Object.assign({},x(),{style:"AD_BADGE_STYLE_STARK"}):x()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.N("h2",{class:"ytAdMetadataShapeHostDescription"},_.N(_.Rf,{text:v,
linkInheritColor:!0,isHeadline:function(){return M==null?void 0:M()}})))},"Nb");var qaM=_.P(function(z){var l=z.data;var I=z.onShow;var b=z.expansive;z=_.a0(function(){return l().interaction});
_.Sm(function(){var M,x=(M=l().animatedRenderingConfig)==null?void 0:M.delayedSecondsToVisible;if(x){var g=setTimeout(I,x*1E3);_.cb(function(){clearTimeout(g)})}});
var v={};return _.N("reels-ad-card-buttoned-view-model",{class:_.m9(function(){var M;return((M=l().interaction)==null?0:M.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(v.ytwReelsAdCardButtonedViewModelHostExpansive=b,v)),
el:_.xl(z)},_.N(XNp,{avatar:function(){return _.k(l().avatar,xg_)},
headline:function(){return l().headline},
badge:function(){return _.k(l().adBadge,Od4)},
description:function(){return l().description},
expansive:b}),_.N(_.TS,{data:function(){return l().ctaButton}},{adButtonViewModel:function(M){var x=M.data;
return _.N(_.YQ,{data:function(){return(b==null?0:b())?Object.assign({},x(),{style:"AD_BUTTON_STYLE_FILLED"}):x()}})}}))},"Ob");var iLu=_.P(function(z){var l=z.data;z=z.expansive;var I=_.C("web_ad_metadata_clickable")?_.a0(function(){return l().interaction},void 0,function(){return _.C("web_ad_metadata_clickable")}):void 0,b={};
b=_.sB("ytwReelsAdMetadataViewModelHost",(b.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.C("web_ad_metadata_clickable"),b));return _.N("reels-ad-metadata-view-model",{class:b,el:_.xl(I)},_.N(XNp,{avatar:function(){return _.k(l().avatar,xg_)},
headline:function(){return l().headline},
badge:function(){return _.k(l().adBadge,Od4)},
description:function(){return l().description},
expansive:z}))},"Pb");var FpA={iconPosition:"icon-with-label",size:"L"},Q9_=_.P(function(z){var l=z.data;var I=z.overlayDensity;var b=z.extractOverlay;var v=z.extractActionBar;z=_.VK("reels-player-overlay-layout-view-model");var M=_.Df(I,0),x=function(){var f;return(f=l().reelsAdCardButtonedEntityKey)!=null?f:""},g=function(){return x()+"/ad_button"},G=_.F1(M4Q,x),u=function(){var f,R;
return(R=(f=G())==null?void 0:f.value)!=null?R:!1},Z=_.nK(Egk),H=function(){var f;
return Object.assign({},FpA,(Z()||!((f=v==null?void 0:v())!=null&&f))&&{style:"overlay-dark"})};
I={};var y={};return _.N("reels-player-overlay-layout-view-model",{class:_.m9("ytwReelsPlayerOverlayLayoutViewModelHost",(I.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!l().extension},I.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},I.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return M()===1&&!(b==null?0:b())},I.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var f;
return(f=b==null?void 0:b())!=null?f:!1},I.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var f;
return(f=v==null?void 0:v())!=null?f:!1},I)),
"overlay-density":function(){return String(M())},
el:z},_.N("div",{class:_.m9("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(y.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},y))},_.N("div",{"aria-hidden":function(){return u()},
class:_.m9("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.XV({"transition-duration":function(){return y_f(l())}})},_.N(_.TS,{data:function(){return l().adMetadata}},{reelsAdMetadataViewModel:function(f){return _.N(iLu,{data:f.data,
expansive:function(){return M()===1}})}}),_.N(_.E,{cond:function(){return l().extension},
then:function(f){return _.N("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.N(_.TS,{data:f},{adButtonViewModel:function(R){return _.N(_.YQ,{data:R.data,animationEntityKey:g,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(R){return _.N(Kpp,{data:R.data,animationEntityKey:g,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return M()===1}})}}))}})),_.N("div",{"aria-hidden":function(){return!u()},
class:_.m9("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.XV({"transition-duration":function(){return y_f(l())}})},_.N(_.TS,{data:function(){return l().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(f){return _.N(qaM,{data:f.data,
onShow:function(){_.pE(_.cU("booleanEntity",x(),{key:x(),value:!0}))},
expansive:function(){return M()===1}})}}))),_.N("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.N(_.TS,{data:function(){return l().actions}},{reelActionBarViewModel:function(f){return _.N(_.Btz,{data:f.data,
buttonShapeOverrideables:H})}}),_.N(_.TS,{data:function(){return l().menu}},{buttonViewModel:function(f){return _.N(_.h4,{data:f.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},H(),{type:"tonal"})}})}}),_.N(_.TS,{data:function(){return l().pivotButton}},{pivotButtonViewModel:function(f){return _.N(_.tR_,{data:f.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Qb");_.uO(Q9_,"reels-player-overlay-layout-view-model",{props:{data:_.mB,overlayDensity:_.mB,extractOverlay:_.mB,extractActionBar:_.mB}});var W6=function(){var z=_.q.apply(this,arguments)||this;z.noBottomMargin=!1;z.overlayDensity=0;z.extractOverlay=!1;z.extractActionBar=!1;return z};
_.m(W6,_.q);_.p=W6.prototype;
_.p.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:_.C("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]]"}}}}}};
_.p.ready=function(){var z=this;TvH(function(){z.isAttached&&pj(z.JSC$15537_storedAdSlotMetadata,z.JSC$15537_storedAdLayoutMetadata,z.adSlotMetadata,z.adLayoutMetadata)&&wK($H(),z.JSC$15537_storedAdSlotMetadata,z.JSC$15537_storedAdLayoutMetadata)})};
_.p.attached=function(){pj(this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&u4_($H(),this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata)};
_.p.detached=function(){pj(this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wK($H(),this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata)};
_.p.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15537_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15537_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15537_storedAdLayoutMetadata!==void 0&&this.JSC$15537_storedAdSlotMetadata!==void 0&&wK($H(),this.JSC$15537_storedAdSlotMetadata,this.JSC$15537_storedAdLayoutMetadata),u4_($H(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15537_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15537_storedAdSlotMetadata=this.adSlotMetadata)};
_.vP.Object.defineProperties(W6.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.adLayoutMetadata}}});
W6.prototype.onAdMetadataChanged=W6.prototype.onAdMetadataChanged;W6.prototype.onTypographyBumpChanged=W6.prototype.onTypographyBumpChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],W6.prototype,"rendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],W6.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],W6.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],W6.prototype,"noBottomMargin",void 0);_.e([_.X(),_.w("design:type",Object)],W6.prototype,"overlayDensity",void 0);_.e([_.X(),_.w("design:type",Object)],W6.prototype,"extractOverlay",void 0);_.e([_.X(),_.w("design:type",Object)],W6.prototype,"extractActionBar",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],W6.prototype,"typographyBump",void 0);
_.e([_.B("data.adLayoutMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],W6.prototype,"adLayoutMetadata",null);_.e([_.X(),_.w("design:type",Object)],W6.prototype,"adSlotMetadata",void 0);_.e([_.qX("ytd-video-display-full-buttoned-and-button-group-renderer"),_.w("design:type",HTMLElement)],W6.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.e([_.By("typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],W6.prototype,"onTypographyBumpChanged",null);_.e([_.By("adLayoutMetadata","adSlotMetadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],W6.prototype,"onAdMetadataChanged",null);_.e([_.S({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],W6);
_.r(W6,"ytd-in-feed-ad-layout-renderer",function(){if(y6_!==void 0)return y6_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return y6_=z},
{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var YaM;var Ttp;_.uO(_.ot,"ad-badge-view-model",{props:{data:_.mB,hasDot:_.mB,customCommandResolver:_.GH,adRenderingContextType:_.GH,usedInMasthead:_.GH}});_.uO(_.YQ,"ad-button-view-model",{props:{data:_.mB,customCommandResolver:_.GH,className:_.GH,delayedClassName:_.GH,animationEntityKey:_.GH,isCompactWidth:_.GH,isContentWidth:_.GH}});var n6=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return z};
_.m(n6,_.q);_.p=n6.prototype;_.p.computeHasLiveDescription=function(z){return!(z==null||!z.liveDescription)};
_.p.computeHasByline=function(z){return!(z==null||!z.byline)};
_.p.computeUsesAdButtonViewModel=function(z){return!!_.k(z==null?void 0:z.cta,g9p)};
_.p.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"}}}}}};
_.p.onYtToggleButton=function(z){var l,I=(l=this.data)==null?void 0:l.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.cU("upcomingEventReminderStateEntity",I,{key:I,state:z.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.p.attached=function(){this.updateChannelBanner()};
_.p.dataChanged=function(){this.updateChannelBanner()};
_.p.videoReminderStateChanged=function(){var z;this.videoReminderState&&_.k((z=this.data)==null?void 0:z.cta,_.OE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.p.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var z=_.ZY(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);z&&(z.startsWith("//")&&(z="https:"+z),this.hostElement.classList.add("channel-banner"),_.R8(this.hostElement,{"--ytvmh-channel-banner":"url("+z+")"}))}else _.C("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.p.onPlayerReady=function(){this.onIronResize()};
_.p.maybeFlushDebouncer=function(){_.C("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(z){var l;z=(l=z.getElementsByTagName("yt-attributed-string"))==null?void 0:l[0];bgp(z==null?void 0:z.polymerController)})};
_.p.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var z=_.Hy(this.hostElement).querySelector("#live-description"),l;z&&((l=this.data)==null?0:l.shortLiveDescription)&&z.clientWidth<z.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
n6.prototype.onIronResize=n6.prototype.onIronResize;n6.prototype.videoReminderStateChanged=n6.prototype.videoReminderStateChanged;n6.prototype.dataChanged=n6.prototype.dataChanged;n6.prototype.onYtToggleButton=n6.prototype.onYtToggleButton;_.e([_.t(_.ap),_.w("design:type",Object)],n6.prototype,"ironResizableBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],n6.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],n6.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],n6.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:pj7}),_.w("design:type",Object)],n6.prototype,"videoReminderState",void 0);
_.e([_.X({reflectToAttribute:!0,value:_.C("web_modern_buttons")}),_.w("design:type",Boolean)],n6.prototype,"rounded",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.w("design:type",Boolean)],n6.prototype,"hasLiveDescription",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.w("design:type",Boolean)],n6.prototype,"hasByline",void 0);
_.e([_.X({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.w("design:type",String)],n6.prototype,"adRenderingContextType",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],n6.prototype,"isMasthead",void 0);_.e([_.X({computed:"computeUsesAdButtonViewModel(data)"}),_.w("design:type",Boolean)],n6.prototype,"usesAdButtonViewModel",void 0);
_.e([_.X({reflectToAttribute:!0,value:_.C("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.w("design:type",Boolean)],n6.prototype,"resizableAdBannerSafariFix",void 0);_.e([_.i5("yt-formatted-string"),_.w("design:type",Array)],n6.prototype,"formattedStrings",void 0);_.e([_.qX("#cta-button"),_.w("design:type",HTMLElement)],n6.prototype,"ctaButton",void 0);
_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],n6.prototype,"onYtToggleButton",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n6.prototype,"dataChanged",null);_.e([_.By("videoReminderState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n6.prototype,"videoReminderStateChanged",null);
_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],n6.prototype,"onIronResize",null);_.e([_.S({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],n6);
_.r(n6,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Ttp!==void 0)return Ttp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ttp=z},{mode:1});var c0_;var L6=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};z.isLocked=!1;return z};
_.m(L6,_.q);_.p=L6.prototype;_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded&&_.EK(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(z){z!==this&&(this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(z){this.isLocked=!0;z!==this&&(this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
L6.prototype.onTap=L6.prototype.onTap;L6.prototype.onMouseOver=L6.prototype.onMouseOver;L6.prototype.onExpandedChanged=L6.prototype.onExpandedChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],L6.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],L6.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],L6.prototype,"expanded",void 0);_.e([_.YE("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L6.prototype,"onExpandedChanged",null);_.e([_.tP("mouseover"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L6.prototype,"onMouseOver",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L6.prototype,"onTap",null);
_.e([_.S({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],L6);
_.r(L6,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(c0_!==void 0)return c0_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return c0_=z},{mode:1});var SaI;var U0=function(){var z=_.q.apply(this,arguments)||this;z.buttonOverrides={style:"overlay"};z.useYtdPlayer=_.C("use_ytd_player_for_desktop_masthead");z.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};z.playbackFinished=!1;z.JSC$15551_playerManager=null;z.JSC$15551_mastheadCounter=new jQ_;return z};
_.m(U0,_.q);_.p=U0.prototype;_.p.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"}}}};
_.p.created=function(){this.JSC$15551_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15551_playerManager=new lh)};
_.p.ready=function(){var z=this;this.JSC$15551_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var l=_.Hy(this.hostElement).querySelector("#player");this.useYtdPlayer?l.style.display="none":(this.ytdPlayer.style.display="none",SHz(this.JSC$15551_playerManager,l,function(){z.onPlaybackEnded()}),_.Hy(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=z.data)==null?0:I.navigationEndpoint)&&_.gC(z.hostElement,"yt-navigate",{endpoint:z.data.navigationEndpoint})}))};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15551_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.p.attached=function(){var z=this;_.JP(function(){z.maybePlayVideo()})};
_.p.maybePlayVideo=function(){var z=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$15551_playerManager.playVideo(),this.getPlayerPromise().then(function(){z.JSC$15551_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.p.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15551_playerManager.stopVideo()};
_.p.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var z,l={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((z=this.data.playbackStartMs)!=null?z:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(l);this.setupYtdPlayer()}else oV0(this.JSC$15551_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(d_I(this.JSC$15551_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.p.getPlayerPromise=function(){return this.JSC$15551_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(z){this.useYtdPlayer?this.toggleMute(z.detail.toggled):z.detail.toggled?this.JSC$15551_playerManager.mute():this.JSC$15551_playerManager.unMute()};
_.p.onYtNavigate=function(z){var l=aRQ(z.detail.endpoint),I=V5t(this.data.clickthroughReportingData);l&&I&&(z.detail.endpoint.watchEndpoint?z.detail.tempData=I:_.vu(l,I,30))};
_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded?(_.EK(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(z){z!==this&&(this.stopVideo(),this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(z){z!==this&&(this.isLocked=!0,this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
_.p.lockAndCollapseExpandableTiles=function(){_.Gb(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.p.unlockExpandableTiles=function(){_.Gb(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.p.setupYtdPlayer=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z.ytdPlayer.getPlayerPromise(),2);l=I.yieldResult;l.addEventListener("onStateChange",function(b){z.onPlayerStateChange(b)});
l.addEventListener("onCueRangeExit",function(b){z.onCueRangeExit(b)});
_.qe(I)})};
_.p.onPlayerStateChange=function(z){if(z===1&&(z=this.ytdPlayer.getPlayer())){var l=z.getCurrentTime(),I,b,v=l+((b=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?b:0)/1E3;z.addCueRange("playback",l,v);this.JSC$15551_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.p.onCueRangeExit=function(z){z==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.ytdPlayer.getPlayerPromise(),2);I=b.yieldResult;z?I.mute():I.unMute();_.qe(b)})};
U0.prototype.onTap=U0.prototype.onTap;U0.prototype.onMouseOver=U0.prototype.onMouseOver;U0.prototype.onExpandedChanged=U0.prototype.onExpandedChanged;U0.prototype.onYtNavigate=U0.prototype.onYtNavigate;U0.prototype.onYtToggleButton=U0.prototype.onYtToggleButton;U0.prototype.dataChanged=U0.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],U0.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],U0.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],U0.prototype,"expanded",void 0);_.e([_.X(),_.w("design:type",Object)],U0.prototype,"buttonOverrides",void 0);
_.e([_.X(),_.w("design:type",Object)],U0.prototype,"useYtdPlayer",void 0);_.e([_.qX("#ytd-player"),_.w("design:type",Object)],U0.prototype,"ytdPlayer",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U0.prototype,"dataChanged",null);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],U0.prototype,"onYtToggleButton",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],U0.prototype,"onYtNavigate",null);_.e([_.YE("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U0.prototype,"onExpandedChanged",null);_.e([_.tP("mouseover"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U0.prototype,"onMouseOver",null);
_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U0.prototype,"onTap",null);_.e([_.S({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],U0);
_.r(U0,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(SaI!==void 0)return SaI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return SaI=z},{mode:1});var dHu;var a6=function(){return _.q.apply(this,arguments)||this};
_.m(a6,_.q);a6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
a6.prototype.onShow=function(){var z=_.Hy(this.hostElement).querySelector("#live-description"),l;z&&((l=this.data)==null?0:l.shortLiveDescription)&&z.clientWidth<z.scrollWidth&&this.hostElement.classList.add("short-live-description")};
a6.prototype.onYtToggleButton=function(z){var l,I=(l=this.data)==null?void 0:l.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.cU("upcomingEventReminderStateEntity",I,{key:I,state:z.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
a6.prototype.videoReminderStateChanged=function(){var z;this.videoReminderState&&_.k((z=this.data)==null?void 0:z.cta,_.OE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
a6.prototype.videoReminderStateChanged=a6.prototype.videoReminderStateChanged;a6.prototype.onYtToggleButton=a6.prototype.onYtToggleButton;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],a6.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],a6.prototype,"data",void 0);
_.e([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:pj7}),_.w("design:type",Object)],a6.prototype,"videoReminderState",void 0);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],a6.prototype,"onYtToggleButton",null);_.e([_.By("videoReminderState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a6.prototype,"videoReminderStateChanged",null);
_.e([_.S({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],a6);
_.r(a6,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(dHu!==void 0)return dHu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return dHu=z},{mode:_.yP("kevlar_poly_si_batch_j065")?1:2});var ovn;var Vj=function(){var z=_.q.apply(this,arguments)||this;z.useYtdPlayer=_.C("use_ytd_player_for_desktop_masthead");z.buttonOverrides={style:"overlay"};z.JSC$15559_playerManager=null;z.JSC$15559_mastheadCounter=new jQ_;z.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return z};
_.m(Vj,_.q);_.p=Vj.prototype;_.p.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"}}}};
_.p.created=function(){this.JSC$15559_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15559_playerManager=new lh)};
_.p.ready=function(){var z=this;this.JSC$15559_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var l;(l=this.embeddedPlayer)==null||l.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();SHz(this.JSC$15559_playerManager,this.embeddedPlayer,function(){z.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){z.data&&z.data.navigationEndpoint&&_.gC(z.hostElement,"yt-navigate",{endpoint:z.data.navigationEndpoint})})}};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15559_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.p.dataChanged=function(){var z=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var l=!this.data.disableAutoPlayback,I,b={autoplay:l,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(l?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else oV0(this.JSC$15559_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(d_I(this.JSC$15559_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15559_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Gb(z.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");z.JSC$15559_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.p.getPlayerPromise=function(){return this.JSC$15559_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(z){this.useYtdPlayer?this.toggleMute(z.detail.toggled):z.detail.toggled?this.JSC$15559_playerManager.mute():this.JSC$15559_playerManager.unMute()};
_.p.onYtNavigate=function(z){var l=aRQ(z.detail.endpoint),I=V5t(this.data.clickthroughReportingData);l&&I&&(z.detail.endpoint.watchEndpoint?z.detail.tempData=I:_.vu(l,I,30))};
_.p.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15559_playerManager.stopVideo()};
_.p.setupYtdPlayer=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z.ytdPlayer.getPlayerPromise(),2);l=I.yieldResult;l.addEventListener("onStateChange",function(b){z.onPlayerStateChange(b)});
l.addEventListener("onCueRangeExit",function(b){z.onCueRangeExit(b)});
_.qe(I)})};
_.p.onPlayerStateChange=function(z){if(z===1&&(z=this.ytdPlayer.getPlayer())){var l=z.getCurrentTime(),I,b,v=l+((b=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?b:0)/1E3;z.addCueRange("playback",l,v);_.Gb(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15559_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.p.onCueRangeExit=function(z){z==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.ytdPlayer.getPlayerPromise(),2);I=b.yieldResult;z?I.mute():I.unMute();_.qe(b)})};
_.vP.Object.defineProperties(Vj.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var z,l;if(!((z=this.data)==null?0:(l=z.accessibilityData)==null?0:l.label))return"Ad primary link";var I,b;return _.mY("AD_TITLE",{title:(I=this.data)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label})}}});
Vj.prototype.onYtMastheadHidden=Vj.prototype.onYtMastheadHidden;Vj.prototype.onYtNavigate=Vj.prototype.onYtNavigate;Vj.prototype.onYtToggleButton=Vj.prototype.onYtToggleButton;Vj.prototype.dataChanged=Vj.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Vj.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Vj.prototype,"useYtdPlayer",void 0);_.e([_.qX("ytd-toggle-button-renderer"),_.w("design:type",Object)],Vj.prototype,"muteButton",void 0);_.e([_.X(),_.w("design:type",Object)],Vj.prototype,"buttonOverrides",void 0);
_.e([_.B("data.accessibilityData.label"),_.w("design:type",String),_.w("design:paramtypes",[])],Vj.prototype,"titleAriaLabel",null);_.e([_.qX("#replay-button"),_.w("design:type",Object)],Vj.prototype,"replayButton",void 0);_.e([_.qX("#player-container"),_.w("design:type",Object)],Vj.prototype,"playerContainer",void 0);_.e([_.qX("#player"),_.w("design:type",Object)],Vj.prototype,"embeddedPlayer",void 0);_.e([_.qX("#ytd-player"),_.w("design:type",Object)],Vj.prototype,"ytdPlayer",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vj.prototype,"dataChanged",null);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Vj.prototype,"onYtToggleButton",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Vj.prototype,"onYtNavigate",null);
_.e([_.tP("yt-masthead-hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vj.prototype,"onYtMastheadHidden",null);_.e([_.S({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Vj);
_.r(Vj,"ytd-video-masthead-ad-primary-video-renderer",function(){if(ovn!==void 0)return ovn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ovn=z},{mode:2});var PmM;var jp=function(){var z=_.q.apply(this,arguments)||this;z.collapsed=!1;z.impressionResolver=_.b1();z.JSC$15563_activeViewMeasurementDataResolver=_.b1();z.actionMap={"yt-mute-ad-action":"handleMuteAd"};return z};
_.m(jp,_.q);_.p=jp.prototype;_.p.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"}}}};
_.p.ready=function(){var z=this;_.Hy(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){z.expandAd()});
this.hostElement.addEventListener("yt-action",function(l){if(l.detail.actionName==="yt-service-request"){var I=l.detail.args[1];I.videoMastheadAdMuteCommand&&(z.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),l.stopPropagation())}})};
_.p.attached=function(){var z=this;_.JP(function(){z.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(l){if(!z.collapsed){l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,Lp(I.baseUrl,I.attributionSrcMode);z.data.impressionCommand=void 0}});
this.JSC$15563_activeViewMeasurementDataResolver.promise.then(function(l){z.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)});
_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.dataChanged=function(){var z;((z=this.data.impressionCommand)==null?0:z.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var l;((l=this.data)==null?0:l.activeView)&&this.JSC$15563_activeViewMeasurementDataResolver.resolve(this.data.activeView);(z=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(z.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.p.computeWidescreen=function(z){var l;return!!(z&&((l=_.k(z,bdu))==null?0:l.isWidescreen))};
_.p.computeExpandable=function(z){return!!(z&&z.length>0)};
_.p.onIronResize=function(){if(this.expandable){var z=_.Hy(this.hostElement).querySelector("#expandable-tile-container :first-child");z&&!z.expanded&&(z.expanded=!0)}};
_.p.handleMuteAd=function(){this.collapseAd(null)};
_.p.restoreCollapsedState=function(z){this.collapsed=_.Bu().get("HIDDEN_MASTHEAD_ID")===z};
_.p.collapseAd=function(z){if(z){var l=_.Bu();l.set("HIDDEN_MASTHEAD_ID",z);l.save()}(z=_.Hy(this.hostElement).querySelector("#video"))&&_.gC(z,"yt-masthead-hidden");this.collapsed=!0};
_.p.expandAd=function(){var z=_.Bu();z.set("HIDDEN_MASTHEAD_ID",!1);z.save();location.reload()};
_.p.detached=function(){_.C("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
jp.prototype.onIronResize=jp.prototype.onIronResize;jp.prototype.dataChanged=jp.prototype.dataChanged;_.e([_.t(_.ap),_.w("design:type",Object)],jp.prototype,"ironResizableBehavior",void 0);_.e([_.t(O3),_.w("design:type",Object)],jp.prototype,"ytdActiveViewBehavior",void 0);_.e([_.t(_.u0),_.w("design:type",Object)],jp.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],jp.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jp.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.w("design:type",Boolean)],jp.prototype,"widescreen",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.w("design:type",Boolean)],jp.prototype,"expandable",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jp.prototype,"collapsed",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jp.prototype,"dataChanged",null);
_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jp.prototype,"onIronResize",null);_.e([_.S({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],jp);
_.r(jp,"ytd-video-masthead-ad-v3-renderer",function(){if(PmM!==void 0)return PmM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return PmM=z},{mode:2});var JU=function(){return _.q.apply(this,arguments)||this};
_.m(JU,_.q);_.p=JU.prototype;_.p.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.p.ready=function(){var z=this;TvH(function(){z.isAttached&&pj(z.JSC$15568_storedAdSlotMetadata,z.JSC$15568_storedAdLayoutMetadata,z.adSlotMetadata,z.adLayoutMetadata)&&wK($H(),z.JSC$15568_storedAdSlotMetadata,z.JSC$15568_storedAdLayoutMetadata)})};
_.p.attached=function(){pj(this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&u4_($H(),this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata)};
_.p.detached=function(){pj(this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wK($H(),this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15568_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15568_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15568_storedAdLayoutMetadata!==void 0&&this.JSC$15568_storedAdSlotMetadata!==void 0&&wK($H(),this.JSC$15568_storedAdSlotMetadata,this.JSC$15568_storedAdLayoutMetadata),u4_($H(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15568_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15568_storedAdSlotMetadata=this.adSlotMetadata)};
_.vP.Object.defineProperties(JU.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.adLayoutMetadata}}});
JU.prototype.onAdMetadataChanged=JU.prototype.onAdMetadataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],JU.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],JU.prototype,"data",void 0);_.e([_.B("data.adLayoutMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],JU.prototype,"adLayoutMetadata",null);
_.e([_.X(),_.w("design:type",Object)],JU.prototype,"adSlotMetadata",void 0);_.e([_.By("adLayoutMetadata","adSlotMetadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JU.prototype,"onAdMetadataChanged",null);_.e([_.S({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],JU);
_.r(JU,"ytd-page-top-ad-layout-renderer",function(){if(YaM!==void 0)return YaM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return YaM=
z},{mode:_.yP("kevlar_poly_si_batch_j070")?1:2});var hd4;var zX=function(){var z=_.q.apply(this,arguments)||this;z.noBottomMargin=!1;z.overlayDensity=0;z.typographyBump=!1;z.extractOverlay=!1;z.extractActionBar=!1;return z};
_.m(zX,_.q);_.p=zX.prototype;
_.p.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]]"}}}}}};
_.p.ready=function(){var z=this;TvH(function(){z.isAttached&&z.adSlotMetadata&&Ev_($H(),z.adSlotMetadata)})};
_.p.attached=function(){if(this.adSlotMetadata){var z;if(this.adSlotMetadata===((z=this.data)==null?void 0:z.adSlotMetadata))NtI($H(),this.adSlotMetadata);else{var l;_.PW(Error("Rh`"+this.adSlotMetadata+"`"+((l=this.data)==null?void 0:l.adSlotMetadata)))}}};
_.p.detached=function(){this.adSlotMetadata&&Ev_($H(),this.adSlotMetadata)};
_.p.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.p.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Ev_($H(),this.adSlotMetadata),NtI($H(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.vP.Object.defineProperties(zX.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var z,l,I=_.k((z=this.data)==null?void 0:(l=z.fulfillmentContent)==null?void 0:l.fulfilledLayout,_.Miz),b;return(z=(b=_.k(I==null?void 0:I.renderingContent,v90))==null?void 0:b.layout)?z.toLowerCase().replace(/_/g,"-"):""}}});
zX.prototype.onAdSlotMetadataChanged=zX.prototype.onAdSlotMetadataChanged;zX.prototype.onTypographyBumpChanged=zX.prototype.onTypographyBumpChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],zX.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zX.prototype,"rendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],zX.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],zX.prototype,"noBottomMargin",void 0);_.e([_.X(),_.w("design:type",Object)],zX.prototype,"overlayDensity",void 0);_.e([_.X(),_.w("design:type",Object)],zX.prototype,"typographyBump",void 0);_.e([_.X(),_.w("design:type",Object)],zX.prototype,"extractOverlay",void 0);_.e([_.X(),_.w("design:type",Object)],zX.prototype,"extractActionBar",void 0);
_.e([_.qX("ytd-in-feed-ad-layout-renderer"),_.w("design:type",HTMLElement)],zX.prototype,"inFeedAdLayoutRenderer",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],zX.prototype,"layout",null);_.e([_.By("typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zX.prototype,"onTypographyBumpChanged",null);
_.e([_.By("data.adSlotMetadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zX.prototype,"onAdSlotMetadataChanged",null);_.e([_.S({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],zX);
_.r(zX,"ytd-ad-slot-renderer",function(){if(hd4!==void 0)return hd4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return hd4=z},{mode:_.yP("kevlar_poly_si_batch_j077")?
1:2});var s9_;var lz=function(){return _.q.apply(this,arguments)||this};
_.m(lz,_.q);_.p=lz.prototype;_.p.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"}}}};
_.p.maybeComputeHref=function(){return null};
_.p.onTap=function(){};
_.p.onThumbnailContainerClick=function(z){this.onClick(z)};
_.p.onClick=function(z){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;I&&_.k(I,_.zb)&&(this.ytSparklesClickLocationBehavior.handleClick(I,z,!1),z.stopPropagation())};
_.p.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var z=_.D(this.data.impressionUrls),l=z.next();!l.done;l=z.next())l=l.value,TZ$(l,Sit(l));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",lz.JSC$15576_DEFAULT_CLICK_LOCATION_BEHAVIOR,lz.JSC$15576_CLICK_LOCATION_ID_MAP);this.thumbnail&&(z=this.thumbnail.getElementsByTagName("a"),z.length>0&&(z=z.namedItem("thumbnail"))&&
z.removeAttribute("href"))}};
_.p.attached=function(){var z=this;_.C("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.C("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vP.Object.defineProperties(lz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.C("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.C("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
lz.prototype.dataChanged=lz.prototype.dataChanged;lz.prototype.onTap=lz.prototype.onTap;lz.JSC$15576_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
lz.JSC$15576_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.e([_.t(O3),_.w("design:type",Object)],lz.prototype,"ytdActiveViewBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],lz.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],lz.prototype,"ytSparklesClickLocationBehavior",void 0);
_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],lz.prototype,"isGridViewEnabled",void 0);_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],lz.prototype,"watchFeedBigThumbs",null);_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],lz.prototype,"thumbnailWidth",null);_.e([_.X(),_.w("design:type",Object)],lz.prototype,"data",void 0);
_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],lz.prototype,"thumbnail",void 0);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lz.prototype,"onTap",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lz.prototype,"dataChanged",null);_.e([_.S({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],lz);
_.r(lz,"ytd-compact-promoted-video-renderer",function(){if(s9_!==void 0)return s9_;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return s9_=z},{mode:1});var r00;_.sW("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var DH=function(){return _.q.apply(this,arguments)||this};
_.m(DH,_.q);DH.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],DH.prototype,"data",void 0);_.e([_.S({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],DH);
_.r(DH,"ytd-search-pyv-renderer",function(){if(r00!==void 0)return r00;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return r00=z},{mode:1});var $Hn;_.sW("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var xy=function(){var z=_.q.apply(this,arguments)||this;z.roundedContainer=!0;z.JSC$15584_handleOpenPostCommentDialogActionAfterStamp=!1;z.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return z};
_.m(xy,_.q);_.p=xy.prototype;
_.p.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}}};
_.p.onStampFinished=function(){this.JSC$15584_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var z=_.Hy(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");z?z.openDialog():this.JSC$15584_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.p.computeHideBorder=function(){return this.isInEngagementPanel};
_.p.computeIsCompact=function(){return this.isInEngagementPanel};
_.p.computeUsesCompactLockup=function(z){return z==="BACKSTAGE_SURFACE_TYPE_HOME"||z==="BACKSTAGE_SURFACE_TYPE_SEARCH"||z==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||z==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||z==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||z==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeUsesFullLockup=function(){var z,l=(z=this.data)==null?void 0:z.post,I;z=(I=_.k(l,Hdu))==null?void 0:I.surface;var b;I=(b=_.k(l,CTj))==null?void 0:b.originalPost;var v;if(b=z||((v=_.k(I,Hdu))==null?void 0:v.surface))return!this.computeUsesCompactLockup(b)&&this.useUpdatedRepostUi;var M;return((M=_.k(l,CTj))==null?void 0:M.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.vP.Object.defineProperties(xy.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var z,l;return((l=_.k((z=this.data)==null?void 0:z.post,Hdu))==null?void 0:l.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.useUpdatedRepostUi}}});
xy.prototype.onYtCommentModerationPanelEmpty=xy.prototype.onYtCommentModerationPanelEmpty;xy.prototype.onStampFinished=xy.prototype.onStampFinished;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],xy.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xy.prototype,"roundedContainer",void 0);_.e([_.X({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.w("design:type",Boolean)],xy.prototype,"hideBorder",void 0);_.e([_.X({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.w("design:type",Boolean)],xy.prototype,"isCompact",void 0);
_.e([_.X({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.w("design:type",Boolean)],xy.prototype,"usesFullLockup",void 0);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xy.prototype,"onStampFinished",null);
_.e([_.tP("ytd-comment-moderation-panel-empty"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],xy.prototype,"onYtCommentModerationPanelEmpty",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xy.prototype,"isInEngagementPanel",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xy.prototype,"useUpdatedRepostUi",null);
_.e([_.S({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],xy);
_.r(xy,"ytd-backstage-post-thread-renderer",function(){if($Hn!==void 0)return $Hn;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $Hn=z},{mode:1});var edA;var O$=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(O$,_.q);O$.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
O$.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var z=this.data.thumbnail.thumbnails;this.isDarkTheme&&(z=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(z=_.ZY(z,24,void 0,"height"))?z:void 0}};
O$.prototype.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
O$.prototype.computeHasText=function(){var z;return!((z=this.data)==null||!z.text)};
_.vP.Object.defineProperties(O$.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.eA(this.bannerImageUrl))+'");'}}});
O$.prototype.computeHasText=O$.prototype.computeHasText;O$.prototype.computeBannerImageUrl=O$.prototype.computeBannerImageUrl;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],O$.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],O$.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],O$.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",String)],O$.prototype,"bannerImageUrl",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.w("design:type",Boolean)],O$.prototype,"hasText",void 0);_.e([_.By("data","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],O$.prototype,"computeBannerImageUrl",null);
_.e([_.By("data.text"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],O$.prototype,"computeHasText",null);_.e([_.B("bannerImageUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],O$.prototype,"bannerStyle",null);_.e([_.S({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],O$);
_.r(O$,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(edA!==void 0)return edA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return edA=z},{mode:1});var wN0;var gq=function(){return _.q.apply(this,arguments)||this};
_.m(gq,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gq.prototype,"data",void 0);_.e([_.S({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],gq);
_.r(gq,"ytd-backstage-zero-state-renderer",function(){if(wN0!==void 0)return wN0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return wN0=z},{mode:1});var A0u;var GX=function(){return _.q.apply(this,arguments)||this};
_.m(GX,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],GX.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],GX.prototype,"icon",void 0);_.e([_.S({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],GX);
_.r(GX,"ytd-post-filter-zero-state-renderer",function(){if(A0u!==void 0)return A0u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return A0u=z},{mode:1});var Wpu;var nv0={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},NO=function(){return _.q.apply(this,arguments)||this};
_.m(NO,_.q);NO.prototype.configureRendererStamper=function(){return nv0};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],NO.prototype,"rendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],NO.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],NO.prototype,"icon",void 0);_.e([_.S({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],NO);
_.r(NO,"ytd-post-scheduling-zero-state-renderer",function(){if(Wpu!==void 0)return Wpu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Wpu=z},{mode:1});var Lpu;var E$=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return z};
_.m(E$,_.q);E$.prototype.onTabsActivate=function(z){this.data&&this.data.tabs&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[z.detail.selected].navigationEndpoint})};
E$.prototype.shouldShowTotalCount=function(z){return z&&z.totalCount!==void 0};
E$.prototype.handleUpdatePostsTotalCountAction=function(z){var l=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",z);z=this.get("updatePostsTotalCountAction.number",z);l!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&z&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(l)+z):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(l)-z))};
_.vP.Object.defineProperties(E$.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var z=0,l=this.data.tabs.length;z<l;z++)if(this.data.tabs[z].selected)return z;return 0}}});
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],E$.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],E$.prototype,"rendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],E$.prototype,"data",void 0);_.e([_.B("data.tabs"),_.w("design:type",Number),_.w("design:paramtypes",[])],E$.prototype,"selected",null);_.e([_.S({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],E$);
_.r(E$,"ytd-post-stream-filter-renderer",function(){if(Lpu!==void 0)return Lpu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Lpu=z},{mode:1});var UHI;var uz=function(){return _.q.apply(this,arguments)||this};
_.m(uz,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uz.prototype,"kevlarBehaviors",void 0);_.e([_.X(),_.w("design:type",Object)],uz.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],uz);
_.r(uz,"ytd-channel-age-gate-renderer",function(){if(UHI!==void 0)return UHI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return UHI=z},{mode:1});var aKM;_.sW("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ZH=function(){var z=_.q.apply(this,arguments)||this;z.data=null;return z};
_.m(ZH,_.q);ZH.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vP.Object.defineProperties(ZH.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?0:(l=z.title)==null?0:(I=l.runs)==null?0:I.length)?147:160}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ZH.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],ZH.prototype,"imageSizePx",null);_.e([_.S({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ZH);
_.r(ZH,"ytd-channel-owner-empty-state-renderer",function(){if(aKM!==void 0)return aKM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return aKM=z},{mode:1});var VRu;var j9_;var He=function(){var z=_.q.apply(this,arguments)||this;z.boundSubmitSearch=function(){z.submitSearch()};
z.boundClearSearch=function(){z.clearSearch()};
return z};
_.m(He,_.q);_.p=He.prototype;_.p.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]]"}}}}}};
_.p.toggleClearButton=function(){this.hideClearButton=cDY||!this.input.value};
_.p.submitOnEnterKeyUp=function(z){z.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.p.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.p.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.p.submit=function(){_.gC(this.hostElement,"search-query-changed",this.input.value)};
He.prototype.toggleClearButton=He.prototype.toggleClearButton;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],He.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],He.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],He.prototype,"hideClearButton",void 0);_.e([_.X(),_.w("design:type",Object)],He.prototype,"boundSubmitSearch",void 0);_.e([_.X(),_.w("design:type",Object)],He.prototype,"boundClearSearch",void 0);_.e([_.qX("#input"),_.w("design:type",Object)],He.prototype,"input",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],He.prototype,"toggleClearButton",null);
_.e([_.S({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],He);
_.r(He,"ytd-channel-switcher-search-box-renderer",function(){if(j9_!==void 0)return j9_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return j9_=z},{mode:1});var J0_;var yz=function(){var z=_.q.apply(this,arguments)||this;z.boundSubmit=function(){z.submit()};
return z};
_.m(yz,_.q);_.p=yz.prototype;_.p.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"}}}}};
_.p.ready=function(){var z=this;this.form.addEventListener("submit",function(l){return z.onSubmit(l)})};
_.p.onSubmit=function(z){z.preventDefault();return!1};
_.p.toggleClearButton=function(){this.hideClearButton=cDY||!this.input.value};
_.p.submitOnEnterKeyUp=function(z){z.keyCode===13&&this.submit()};
_.p.submit=function(){var z=this.data.endpoint,l=(0,_.h7.unsafeClone)(z);_.k(l,_.BF)?_.k(l,_.BF).query=this.input.value:_.k(l,_.XN)&&(_.k(l,_.XN).query=this.input.value);var I=_.k(l.commandMetadata,_.kB);(I==null?0:I.url)?(I.url=_.rE(I.url,"query",this.input.value),_.gC(this.hostElement,"yt-navigate",{endpoint:l})):_.k(l,jq_)?(_.k(l,jq_).channelSwitcherQuery=this.input.value,_.pG().resolve(_.DQ).resolveCommand(l,{form:{element:this.hostElement}})):(z=Error("Sh`"+JSON.stringify(z)),_.dE(z))};
_.p.getUrl=function(z){return this.get("commandMetadata.webCommandMetadata.url",z)};
yz.prototype.toggleClearButton=yz.prototype.toggleClearButton;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yz.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],yz.prototype,"hideClearButton",void 0);
_.e([_.X(),_.w("design:type",Object)],yz.prototype,"boundSubmit",void 0);_.e([_.qX("#form"),_.w("design:type",HTMLFormElement)],yz.prototype,"form",void 0);_.e([_.qX("#input"),_.w("design:type",Object)],yz.prototype,"input",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yz.prototype,"toggleClearButton",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],yz);
_.r(yz,"ytd-search-box-renderer",function(){if(J0_!==void 0)return J0_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return J0_=z},{mode:2});var fz=function(){var z=_.q.apply(this,arguments)||this;z.showSearchBox=!0;return z};
_.m(fz,_.q);fz.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fz.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fz.prototype,"showSearchBox",void 0);_.e([_.S({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],fz);
_.r(fz,"ytd-channel-switcher-header-renderer",function(){if(VRu!==void 0)return VRu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return VRu=z},{mode:1});var zA0;var lTu;var Cz=function(){var z=_.q.apply(this,arguments)||this;z.isDisplayed=!0;return z};
_.m(Cz,_.q);_.p=Cz.prototype;_.p.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.isDisplayed=!0};
_.p.computeType=function(z){return z||"UNKNOWN"};
_.p.onYtServiceRequestCompleted=function(z){z.stopPropagation();this.isDisplayed=!1};
_.p.onClose=function(){this.isDisplayed=!1};
Cz.prototype.onYtServiceRequestCompleted=Cz.prototype.onYtServiceRequestCompleted;Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Cz.prototype,"data",void 0);
_.e([_.X({computed:"computeType(data.type)",reflectToAttribute:!0}),_.w("design:type",String)],Cz.prototype,"type",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Cz.prototype,"isDisplayed",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cz.prototype,"dataChanged",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Cz.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Cz);
_.r(Cz,"ytd-alert-with-button-renderer",function(){if(lTu!==void 0)return lTu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return lTu=z},{mode:1});var ky=function(){var z=_.q.apply(this,arguments)||this;z.noResult=!1;z.enableAlertBanner=!1;z.dismissedAlertBanner=!1;z.hideCreateChannelButton=!1;z.boundDismissAlertBanner=function(){z.dismissAlertBanner()};
z.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return z};
_.m(ky,_.q);_.p=ky.prototype;_.p.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.p.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.p.updateChannelSwitcherAction=function(z){var l;z=(l=_.k(z,AJp))==null?void 0:l.page;_.k(z,wH_)!==void 0&&(this.data=_.k(z,wH_))};
_.p.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]]"}}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p.searchQueryChanged=function(z,l){if(this.data&&this.data.contents&&this.data.contents.length){z=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var b=document.querySelectorAll("ytd-account-item-renderer"),v=_.D(b),M=v.next();!M.done;M=v.next())M=M.value,I.push(M),M.style.display="block";this.resetRightBorder(I);if(l){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(M=this.data.contents[I],_.k(M,Uij)){var x=void 0,g=void 0;v=(x=_.k(M,Uij))==null?void 0:(g=
x.accountName)==null?void 0:g.simpleText;g=x=void 0;M=(x=_.k(M,Uij))==null?void 0:(g=x.channelHandle)==null?void 0:g.simpleText;(x=b[I-1])&&v&&_.EY(v,l)?z.push(x):_.C("enable_handle_search_on_channel_switcher")&&x&&M&&_.EY(M.toString(),l.toString())?z.push(x):x.style.display="none"}z.length===0&&(this.noResult=!0);this.resetRightBorder(z)}}};
_.p.resetRightBorder=function(z){for(var l=0;l<z.length;l++)z[l].style.borderRight=!this.hideCreateChannelButton&&(l+2)%3===0||this.hideCreateChannelButton&&(l+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.p.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.p.setShowSearchBox=function(z){if(z&&z.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var l=0;l<z.contents.length;l++)_.k(z.contents[l],_.MN)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.p.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.vP.Object.defineProperties(ky.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null?0:z.contents)}}});
ky.prototype.onContinuationItemsUpdated=ky.prototype.onContinuationItemsUpdated;ky.prototype.searchQueryChanged=ky.prototype.searchQueryChanged;ky.prototype.onDataChanged=ky.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ky.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],ky.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ky.prototype,"data",void 0);_.e([_.qX("ytd-channel-switcher-header-renderer"),_.w("design:type",Object)],ky.prototype,"channelSwitcherHeaderRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],ky.prototype,"noResult",void 0);
_.e([_.X(),_.w("design:type",Object)],ky.prototype,"enableAlertBanner",void 0);_.e([_.X(),_.w("design:type",Object)],ky.prototype,"dismissedAlertBanner",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ky.prototype,"hideCreateChannelButton",void 0);_.e([_.B("data.contents"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ky.prototype,"isLoading",null);_.e([_.X(),_.w("design:type",Object)],ky.prototype,"boundDismissAlertBanner",void 0);
_.e([_.X({computed:"computeButtonOverride()"}),_.w("design:type",Object)],ky.prototype,"buttonOverride",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ky.prototype,"onDataChanged",null);_.e([_.tP("search-query-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,String]),_.w("design:returntype")],ky.prototype,"searchQueryChanged",null);
_.e([_.tP("yt-next-continuation-data-updated"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ky.prototype,"onContinuationItemsUpdated",null);_.e([_.S({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],ky);
_.r(ky,"ytd-channel-switcher-page-renderer",function(){if(zA0!==void 0)return zA0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return zA0=z},{mode:1});var ITn;var bHp;var Ra=function(){var z=_.q.apply(this,arguments)||this;z.images=[];z.selectedImageIndex=0;return z};
_.m(Ra,_.q);_.p=Ra.prototype;
_.p.ready=function(){_.dZ(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.dZ(this.JSC$15629_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.dZ(this.JSC$15629_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.dZ(this.JSC$15629_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.p.onThumbnailClick=function(z){if(z=z.event_.detail)this.selectedImageIndex=this.images.indexOf(z)};
_.p.updateImageThumbnails=function(z){z=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:z.event_.detail});this.images.splice(this.selectedImageIndex,1,z);this.images=[].concat(_.ht(this.images))};
_.p.cancelImageRepositions=function(){this.selectedImageIndex=0;_.gC(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.p.saveImageRepositions=function(){this.selectedImageIndex=0;_.gC(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.vP.Object.defineProperties(Ra.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var z=this;return(this.images||[]).map(function(l,I){return{image:l,selected:I===z.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("ytd-backstage-image-preview-renderer"),_.w("design:type",Object)],Ra.prototype,"JSC$15629_imagePreviewContainer",void 0);_.e([_.qX(".thumbnail-images-container"),_.w("design:type",HTMLElement)],Ra.prototype,"thumbnailImagesContainer",void 0);_.e([_.X(),_.w("design:type",Array)],Ra.prototype,"images",void 0);
_.e([_.X(),_.w("design:type",Object)],Ra.prototype,"repositionInstructions",void 0);_.e([_.X(),_.w("design:type",Object)],Ra.prototype,"selectedImageIndex",void 0);_.e([_.B("images","selectedImageIndex"),_.w("design:type",Array),_.w("design:paramtypes",[])],Ra.prototype,"thumbnailRendererDatas",null);_.e([_.B("images","selectedImageIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ra.prototype,"selectedImageData",null);
_.e([_.S({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Ra);
_.r(Ra,"ytd-backstage-multi-image-reposition-renderer",function(){if(bHp!==void 0)return bHp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return bHp=z},{mode:1});var mu=function(z,l){_.oW.call(this);this.uploadUrl=z;this.channelId=l;this.imagesUploadData=[]};
_.m(mu,_.oW);mu.prototype.getAllUploadStatuses=function(){var z=this,l,I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(vnI(z),2);l=v.yieldResult;I=l.get("succeed");b=l.get("failed");return v.return(I.concat(b))})};
var p4p=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(vnI(z),2);l=b.yieldResult;I=l.get("failed");I.length>0&&MwA(z,I);return b.return(z.getAllUploadStatuses())})},vnI=function(z){var l,I,b,v,M,x,g;
return _.O(function(G){if(G.nextAddress==1)return l=new Map,G.yield(Promise.allSettled(z.imagesUploadData.map(function(u){return u.uploadPromise})),2);
I=G.yieldResult;b=[];v=_.D(I);for(M=v.next();!M.done;M=v.next())x=M.value,x.status==="fulfilled"&&b.push(x.value);g=z.imagesUploadData.map(function(u){return u.image}).filter(function(u){return b.every(function(Z){return Z.id!==u.id})});
l.set("succeed",b);l.set("failed",g);return G.return(l)})},MwA=function(z,l){l=_.D(l);
for(var I=l.next();!I.done;I=l.next()){var b=z;I=I.value;DL_(b,I.id)>=0&&b.cancel(I.id);var v=new xLn(I),M=_.oAn(b.uploadUrl,{"X-YouTube-ChannelId":b.channelId},I.imageBlob);v.transfer=M;v.uploadPromise=OHj(M,I);b.imagesUploadData.push(v);M.run()}};
mu.prototype.cancel=function(z){var l=DL_(this,z);l!==-1&&((l=this.imagesUploadData[l].transfer)&&l.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==z}))};
var DL_=function(z,l){return z.imagesUploadData.findIndex(function(I){return I.image.id===l})},OHj=function(z,l){return new Promise(function(I,b){z.listen("l",function(){var v=z.getResponseText();
v?(v=JSON.parse(v).encryptedBlobId,l.encryptedBlobId=v,I(l)):b("upload failed")});
z.listen("n",function(){b("upload failed")})})},xLn=function(z){this.image=z};var fUk=function(z,l,I,b,v){this.id=z;this.imageBlob=l;this.localImageSrc=I;this.naturalWidth=b;this.naturalHeight=v;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 gn_=[".jpeg",".jpg",".png"],Kz=function(){var z=_.q.apply(this,arguments)||this;z.showImagesPreview=!1;z.pollOptions=[];z.errorMessage="";z.optionPlaceholderText="";z.optionDefaultText="";z.JSC$15640_imageId=0;z.maxFileSizeMb=0;z.maxAspectRatio=0;z.invalidFileSizeError="";z.invalidAspectRatioError="";z.invalidFileTypeError="";z.imageSelector=new TJ(null,"single_file",gn_);return z};
_.m(Kz,_.q);_.p=Kz.prototype;_.p.ready=function(){_.dZ(this.imageSelector,"j",this.onImageSelect,!1,this);_.dZ(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.dZ(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.p.dataChanged=function(){var z,l,I=_.k((z=this.data)==null?void 0:(l=z.cellTemplate)==null?void 0:l.onEmptyCellTap,yd_);if(I&&I.uploadUrl&&I.channelId){var b;this.maxFileSizeMb=((b=I.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0;var v;this.maxAspectRatio=((v=I.imageValidationInfo)==null?void 0:v.allowedMaxAspectRatio)||0;var M;this.invalidFileSizeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileSizeError);var x;this.invalidAspectRatioError=this.getSimpleString((x=this.data)==
null?void 0:x.invalidAspectRatioError);var g;this.invalidFileTypeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileTypeError);this.uploadManager=new mu(I.uploadUrl,I.channelId)}};
_.p.onEditorInfoChange=function(){this.optionPlaceholderText=_.ID(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.ID(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.p.observeAddImageError=function(){this.errorMessage!==""&&_.gC(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.p.onPollOptionsChange=function(){for(var z=!1,l=[],I=0;I<this.pollOptions.length;I++){var b=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==b?(z=!0,l.push(Object.assign({},this.pollOptions[I],{placeholderText:b}))):l.push(this.pollOptions[I])}z&&(this.pollOptions=l);this.isValid()?_.gC(this.hostElement,"yt-commentbox-post-enable"):_.gC(this.hostElement,"yt-commentbox-post-disable")};
_.p.createPollOptions=function(z){var l=[],I;z=(I=z==null?void 0:z.minPollOptions)!=null?I:0;for(I=0;I<z;I++)l.push(this.createPollOption());return l};
_.p.onImageSelect=function(z){var l=this,I,b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1){if(l.selectedImageIndex===void 0)return G.jumpTo(0);I=z.files[0];l.errorMessage="";b=l.validateImage(I);if(b!=="")return l.errorMessage=b,G.return();v=new km(l.maxAspectRatio,!1,!0);return G.yield(v.transform(I),3)}if(G.nextAddress!=4)return M=G.yieldResult,M.transformedData?M.invalidAspectRatio?(l.errorMessage=l.invalidAspectRatioError,G.return()):G.yield(CkH(l.JSC$15640_imageId,z.files[0],M.transformedData),
4):(l.errorMessage=l.invalidFileTypeError,G.return());x=G.yieldResult;l.JSC$15640_imageId++;MwA(l.uploadManager,[x]);g=Object.assign({},l.pollOptions[l.selectedImageIndex],{image:x});l.pollOptions.splice(l.selectedImageIndex,1,g);l.refreshPollOptions();_.gC(l.hostElement,"yt-backstage-poll-image-select");_.qe(G)})};
_.p.validateImage=function(z){return z.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.p.refreshPollOptions=function(){this.pollOptions=[].concat(_.ht(this.pollOptions))};
_.p.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ht(this.pollOptions),[this.createPollOption()]))};
_.p.onRemovePollOption=function(z){var l=this.pollOptions[z.model.index];l&&l.image&&this.uploadManager.cancel(l.image.id);this.pollOptions.splice(z.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.gC(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.p.onTextInput=function(){this.refreshPollOptions()};
_.p.onImageButtonClick=function(z){this.selectedImageIndex=z.model.index;this.imageSelector.click()};
_.p.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.p.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.p.saveImageRepositions=function(z){z=z.event_.detail;for(var l=0,I=[],b=_.D(this.pollOptions),v=b.next();!v.done;v=b.next())v=v.value,v.image!==void 0?(v=Object.assign({},v,{image:z[l]}),I.push(v),l++):I.push(v);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ht(I))};
_.p.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 z=0,l=_.D(this.pollOptions),I=l.next();!I.done;I=l.next())if(I=I.value,I.optionText.trim()!==""||I.image!==void 0){if(!I.image||this.hasCustomOptionText&&I.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;z++}return z>=Number(this.editorInfo.minPollOptions)};
_.p.getAllUploadStatuses=function(){var z=this,l,I,b,v;return _.O(function(M){if(M.nextAddress==1)return M.yield(z.uploadManager.getAllUploadStatuses(),2);l=M.yieldResult;I=_.D(l);for(b=I.next();!b.done;b=I.next())if(v=b.value,v.encryptedBlobId===void 0)return M.return(p4p(z.uploadManager));return M.return(l)})};
_.p.getPostCreateOptions=function(){for(var z=[],l=_.D(this.pollOptions),I=l.next();!I.done;I=l.next())I=I.value,I.image!==void 0&&z.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return z};
_.p.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.p.createButtonRenderer=function(z,l){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:z,accessibilityData:{accessibilityData:{label:this.getSimpleString(z)}},isDisabled:l}};
_.p.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.p.computeThumbnailRendererData=function(z){return z?{image:z,selected:!1}:void 0};
_.p.getSimpleString=function(z){return _.ID(z)};
_.p.updateOptionTextFromBinding=function(z){if(z.target){var l=Array.from(_.Hy(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(z.target);if(l>=0){var I;this.pollOptions[l].optionText=(I=z.detail.value)!=null?I:""}}};
_.vP.Object.defineProperties(Kz.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var z,l;return this.pollOptions.length<((l=(z=this.editorInfo)==null?void 0:z.maxPollOptions)!=null?l:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(z){return z.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(z){return z.image}).map(function(z){return z.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(z){return z.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var z,l=(z=this.data)==null?void 0:z.addOptionButtonText;return l?this.createButtonRenderer(l,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var z,l=(z=this.data)==null?void 0:z.repositionImagesButtonLabel;return l?this.createButtonRenderer(l,!this.hasImages):void 0}}});
Kz.prototype.onPollOptionsChange=Kz.prototype.onPollOptionsChange;Kz.prototype.observeAddImageError=Kz.prototype.observeAddImageError;Kz.prototype.onEditorInfoChange=Kz.prototype.onEditorInfoChange;Kz.prototype.dataChanged=Kz.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("ytd-backstage-multi-image-reposition-renderer"),_.w("design:type",Object)],Kz.prototype,"imageRepositionContainer",void 0);
_.e([_.X(),_.w("design:type",Object)],Kz.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Kz.prototype,"editorInfo",void 0);_.e([_.X(),_.w("design:type",mu)],Kz.prototype,"uploadManager",void 0);_.e([_.X(),_.w("design:type",Object)],Kz.prototype,"showImagesPreview",void 0);_.e([_.X(),_.w("design:type",Array)],Kz.prototype,"pollOptions",void 0);_.e([_.X(),_.w("design:type",Object)],Kz.prototype,"errorMessage",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kz.prototype,"dataChanged",null);_.e([_.YE("editorInfo"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kz.prototype,"onEditorInfoChange",null);_.e([_.By("errorMessage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kz.prototype,"observeAddImageError",null);
_.e([_.YE("pollOptions"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Kz.prototype,"onPollOptionsChange",null);_.e([_.B("pollOptions","editorInfo"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kz.prototype,"isAllowedToAddOption",null);_.e([_.B("pollOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kz.prototype,"hasImages",null);
_.e([_.B("pollOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kz.prototype,"imagesToReposition",null);_.e([_.B("pollOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kz.prototype,"hasCustomOptionText",null);_.e([_.B("data","isAllowedToAddOption"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kz.prototype,"addOptionButton",null);_.e([_.B("data","hasImages"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kz.prototype,"repositionImagesButton",null);
_.e([_.S({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Kz);
_.r(Kz,"ytd-backstage-image-poll-editor-renderer",function(){if(ITn!==void 0)return ITn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ITn=z},{mode:2});var GfM={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 NQp;var tq=function(){var z=_.q.apply(this,arguments)||this;z.a11yConfig=GfM;z.imageDisplayOffsetTop=0;z.imageDisplayOffsetLeft=0;z.pickerDisplayOffsetTop=0;z.pickerDisplayOffsetLeft=0;z.showPreviewContainer=!0;z.startPicker=!1;z.repositionOptional=!1;z.editOnlyMode=!1;z.savedImageDisplayOffsetTop=0;z.savedImageDisplayOffsetLeft=0;return z};
_.m(tq,_.q);_.p=tq.prototype;_.p.created=function(){_.pw.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(z){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){z.detail.keyboardEvent.preventDefault();var l=0,I=0,b="";switch(z.detail.keyboardEvent.key){case "ArrowUp":kVt(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:l=this.imageHeight*.05*-1;break;case "ArrowDown":kVt(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
l=this.imageHeight*.05;break;case "ArrowLeft":kVt(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":kVt(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}b&&_.mY(b)&&_.gC(this.hostElement,"iron-announce",{text:_.mY(b)});if(I||l)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+l)),z=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),z=_.mY(this.a11yConfig.imageVerticalPosition,{x_percent:""+z,y_percent:""+(100-z)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),z=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),z=_.mY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+z,y_percent:""+(100-z)})),z&&_.gC(this.hostElement,"iron-announce",{text:z})}};
_.p.getPreviewPosition=function(z,l,I,b){return Math.round(100*(z+l*.5-I)/b)};
_.p.calculateDisplayPosition=function(){var z=this.imageData.naturalWidth,l=this.imageData.naturalHeight;this.displayScale=Math.max(200/z,200/l);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=z*this.displayScale*this.imageData.previewCoordinates.left,b=l*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=l>z?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=z>l?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-b;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=z*this.displayScale;this.imageHeight=l*this.displayScale};
_.p.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.p.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.p.getSignedPosition=function(z,l,I){return l==="X"&&_.sZ("HTML_DIR")==="rtl"?I==="-"?z+"px":z*-1+"px":I==="-"?z*-1+"px":z+"px"};
_.p.pickerMove=function(z){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var l=this.pickerOffsetX-z.clientX,I=this.pickerOffsetY-z.clientY;this.pickerOffsetX=z.clientX;this.pickerOffsetY=z.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-l))}};
_.p.pickerMoveStart=function(z){this.startPicker=!0;this.pickerOffsetX=z.clientX;this.pickerOffsetY=z.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var z=this.generateCropPreview();z&&_.gC(this.hostElement,"ytd-backstage-image-preview-coordinates-update",z)};
_.p.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.gC(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.p.deleteImage=function(){_.gC(this.hostElement,"ytd-backstage-image-preview-delete")};
_.p.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.p.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var z=this.generateCropPreview();z&&_.gC(this.hostElement,"ytd-backstage-image-preview-coordinates-save",z)};
_.p.getPreviewOffset=function(z,l,I){return l&&z?(I==="X"&&_.sZ("HTML_DIR")==="rtl"?300/l*z:300/l*z*-1)+"px":"0px"};
_.p.getSimpleText=function(z){return z?_.ID(z):""};
_.p.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}};
_.vP.Object.defineProperties(tq.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var z=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.mY(this.a11yConfig.imageVerticalPosition,{x_percent:""+z,y_percent:""+(100-z)})+"\n"+_.mY(this.a11yConfig.verticalRepositionInstruction)}z=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.mY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+z,y_percent:""+(100-z)})+"\n"+_.mY(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 z,l,I=(z=this.instruction)==null?void 0:(l=z.previewInstruction)==null?void 0:l.editButtonLabel;return I?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v=this.editOnlyMode?(z=this.instruction)==null?void 0:(l=z.editInstruction)==null?void 0:l.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(b=I.editInstruction)==null?void 0:b.saveButtonLabel;return v?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleText(v)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.instruction)==null?void 0:(l=z.previewInstruction)==null?void 0:l.deleteButtonLabel;return I?{size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.instruction)==null?void 0:(l=z.editInstruction)==null?void 0:l.cancelButtonLabel;z=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return I?{style:z,size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}: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"}}});
tq.prototype.onEditOnlyModeUpdate=tq.prototype.onEditOnlyModeUpdate;tq.prototype.onImageChange=tq.prototype.onImageChange;_.e([_.X(),_.w("design:type",fUk)],tq.prototype,"imageData",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"instruction",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"a11yConfig",void 0);_.e([_.X(),_.w("design:type",Number)],tq.prototype,"imageWidth",void 0);_.e([_.X(),_.w("design:type",Number)],tq.prototype,"imageHeight",void 0);
_.e([_.X(),_.w("design:type",Number)],tq.prototype,"displayScale",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"imageDisplayOffsetTop",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"imageDisplayOffsetLeft",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"pickerDisplayOffsetTop",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"pickerDisplayOffsetLeft",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"showPreviewContainer",void 0);
_.e([_.X(),_.w("design:type",Object)],tq.prototype,"startPicker",void 0);_.e([_.X(),_.w("design:type",Number)],tq.prototype,"pickerOffsetX",void 0);_.e([_.X(),_.w("design:type",Number)],tq.prototype,"pickerOffsetY",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"repositionOptional",void 0);_.e([_.X(),_.w("design:type",Object)],tq.prototype,"editOnlyMode",void 0);_.e([_.qX("#picker-container"),_.w("design:type",HTMLElement)],tq.prototype,"JSC$15653_pickerContainer",void 0);
_.e([_.qX("#picker"),_.w("design:type",HTMLElement)],tq.prototype,"picker",void 0);_.e([_.qX("#preview-clipper"),_.w("design:type",HTMLElement)],tq.prototype,"previewClipper",void 0);_.e([_.qX("#image-in-picker-background"),_.w("design:type",HTMLImageElement)],tq.prototype,"JSC$15653_imageInBackground",void 0);_.e([_.qX("#image-in-picker"),_.w("design:type",HTMLImageElement)],tq.prototype,"JSC$15653_imageInPicker",void 0);
_.e([_.qX("#image-in-preview-clipper"),_.w("design:type",HTMLImageElement)],tq.prototype,"JSC$15653_imageInPreviewClipper",void 0);_.e([_.B("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],tq.prototype,"altLabelForImage",null);_.e([_.B("imageHeight","imageWidth"),_.w("design:type",Number),_.w("design:paramtypes",[])],tq.prototype,"pickerSize",null);
_.e([_.B("imageHeight","imageWidth"),_.w("design:type",Object),_.w("design:paramtypes",[])],tq.prototype,"imageOrientationStyle",null);_.e([_.B("instruction"),_.w("design:type",Object),_.w("design:paramtypes",[])],tq.prototype,"editButton",null);_.e([_.B("instruction","editOnlyMode"),_.w("design:type",Object),_.w("design:paramtypes",[])],tq.prototype,"saveButton",null);_.e([_.B("instruction"),_.w("design:type",Object),_.w("design:paramtypes",[])],tq.prototype,"deleteButton",null);
_.e([_.B("instruction","editOnlyMode"),_.w("design:type",Object),_.w("design:paramtypes",[])],tq.prototype,"cancelButton",null);_.e([_.B("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.w("design:type",Number),_.w("design:paramtypes",[])],tq.prototype,"cropOffsetTop",null);_.e([_.B("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.w("design:type",Number),_.w("design:paramtypes",[])],tq.prototype,"cropOffsetLeft",null);
_.e([_.B("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],tq.prototype,"pickerBackgroundStyle",null);_.e([_.B("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],tq.prototype,"pickerDisplayStyle",null);_.e([_.B("cropOffsetLeft","cropOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],tq.prototype,"imageInPickerStyle",null);
_.e([_.B("cropOffsetLeft","cropOffsetTop","pickerSize"),_.w("design:type",String),_.w("design:paramtypes",[])],tq.prototype,"previewClipperStyle",null);_.e([_.YE("imageData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tq.prototype,"onImageChange",null);_.e([_.YE("editOnlyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tq.prototype,"onEditOnlyModeUpdate",null);
_.e([_.B("showPreviewContainer"),_.w("design:type",String),_.w("design:paramtypes",[])],tq.prototype,"pickerModeStyle",null);_.e([_.S({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],tq);
_.r(tq,"ytd-backstage-image-preview-renderer",function(){if(NQp!==void 0)return NQp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return NQp=z},{mode:1});var En0;var uUz={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 ZH_;var HH_;var Be=function(){var z=_.q.apply(this,arguments)||this;z.a11yConfig=uUz;z.imageDisplayOffsetTop=0;z.imageDisplayOffsetLeft=0;z.pickerDisplayOffsetTop=0;z.pickerDisplayOffsetLeft=0;z.cropCoordinatesSaved=!1;z.previewSize=0;z.startPicker=!1;z.repositionOptional=!1;return z};
_.m(Be,_.q);_.p=Be.prototype;_.p.created=function(){_.pw.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(z){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){z.detail.keyboardEvent.preventDefault();var l=0,I=0,b="";switch(z.detail.keyboardEvent.key){case "ArrowUp":R9u(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:l=this.imageHeight*.05*-1;break;case "ArrowDown":R9u(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
l=this.imageHeight*.05;break;case "ArrowLeft":R9u(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":R9u(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}b&&_.mY(b)&&_.gC(this.hostElement,"iron-announce",{text:_.mY(b)});if(I||l)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+l)),z=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),z=_.mY(this.a11yConfig.imageVerticalPosition,{x_percent:""+z,y_percent:""+(100-z)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),z=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),z=_.mY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+z,y_percent:""+(100-z)})),z&&_.gC(this.hostElement,"iron-announce",{text:z})}};
_.p.getPreviewPosition=function(z,l,I,b){return Math.round(100*(z+l*.5-I)/b)};
_.p.displayImage=function(){var z=this.JSC$15664_pickerContainer.getBoundingClientRect().width,l=this.JSC$15664_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),b=this.JSC$15664_imageInBackground.naturalWidth,v=this.JSC$15664_imageInBackground.naturalHeight;this.displayScale=Math.max(I/b,I/v);this.imageWidth=b*this.displayScale;this.imageHeight=v*this.displayScale;this.pickerDisplayOffsetLeft=(z-I)/2;this.pickerDisplayOffsetTop=
(l-I)/2;this.imageDisplayOffsetLeft=v>b?this.pickerDisplayOffsetLeft:(z-this.imageWidth)/2;this.imageDisplayOffsetTop=b>v?this.pickerDisplayOffsetTop:(l-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.p.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15664_imageInBackground.src=this.imageData.toString(),this.JSC$15664_imageInPicker.src=this.imageData.toString(),this.JSC$15664_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.p.getSignedPosition=function(z,l,I){return l==="X"&&_.sZ("HTML_DIR")==="rtl"?I==="-"?z+"px":z*-1+"px":I==="-"?z*-1+"px":z+"px"};
_.p.pickerMove=function(z){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var l=this.pickerOffsetX-z.clientX,I=this.pickerOffsetY-z.clientY;this.pickerOffsetX=z.clientX;this.pickerOffsetY=z.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-l))}};
_.p.pickerMoveStart=function(z){this.startPicker=!0;this.pickerOffsetX=z.clientX;this.pickerOffsetY=z.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.p.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.gC(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.p.getPreviewOffset=function(z,l,I,b){return l&&z&&I?(b==="X"&&_.sZ("HTML_DIR")==="rtl"?I/l*z:I/l*z*-1)+"px":"0px"};
_.p.getSimpleText=function(z){return z?_.ID(z):""};
_.p.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var z=this.cropOffsetTop/this.imageHeight,l=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,b=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Hy(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.gC(this.hostElement,"yt-img-crop-coordinates-update",{top:z,right:l,bottom:I,left:b})}};
_.vP.Object.defineProperties(Be.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var z=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.mY(this.a11yConfig.imageVerticalPosition,{x_percent:""+z,y_percent:""+(100-z)})+"\n"+_.mY(this.a11yConfig.verticalRepositionInstruction)}z=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.mY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+z,y_percent:""+(100-z)})+"\n"+_.mY(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 z,l=(z=this.learnMore.runs[0])==null?void 0:z.navigationEndpoint,I;return((I=_.k(l,_.AK))==null?void 0:I.url)||void 0}}}});
Be.prototype.onImageDataChange=Be.prototype.onImageDataChange;_.e([_.X(),_.w("design:type",Object)],Be.prototype,"imageData",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"instruction",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"a11yConfig",void 0);_.e([_.X(),_.w("design:type",Number)],Be.prototype,"imageWidth",void 0);_.e([_.X(),_.w("design:type",Number)],Be.prototype,"imageHeight",void 0);_.e([_.X(),_.w("design:type",Number)],Be.prototype,"displayScale",void 0);
_.e([_.X(),_.w("design:type",Object)],Be.prototype,"imageDisplayOffsetTop",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"imageDisplayOffsetLeft",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"pickerDisplayOffsetTop",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"pickerDisplayOffsetLeft",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"cropCoordinatesSaved",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"previewSize",void 0);
_.e([_.X(),_.w("design:type",Object)],Be.prototype,"startPicker",void 0);_.e([_.X(),_.w("design:type",Number)],Be.prototype,"pickerOffsetX",void 0);_.e([_.X(),_.w("design:type",Number)],Be.prototype,"pickerOffsetY",void 0);_.e([_.X(),_.w("design:type",Object)],Be.prototype,"repositionOptional",void 0);_.e([_.qX("#picker-container"),_.w("design:type",HTMLElement)],Be.prototype,"JSC$15664_pickerContainer",void 0);_.e([_.qX("#picker"),_.w("design:type",HTMLElement)],Be.prototype,"picker",void 0);
_.e([_.qX("#image-in-picker-background"),_.w("design:type",HTMLImageElement)],Be.prototype,"JSC$15664_imageInBackground",void 0);_.e([_.qX("#image-in-picker"),_.w("design:type",HTMLImageElement)],Be.prototype,"JSC$15664_imageInPicker",void 0);_.e([_.qX("#image-in-preview-clipper"),_.w("design:type",HTMLImageElement)],Be.prototype,"JSC$15664_imageInPreviewClipper",void 0);_.e([_.qX("#full-image-as-preview"),_.w("design:type",HTMLImageElement)],Be.prototype,"imageAsPreview",void 0);
_.e([_.B("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],Be.prototype,"altLabelForImage",null);_.e([_.B("imageHeight","imageWidth"),_.w("design:type",Number),_.w("design:paramtypes",[])],Be.prototype,"pickerSize",null);_.e([_.B("imageHeight","imageWidth"),_.w("design:type",Object),_.w("design:paramtypes",[])],Be.prototype,"imageOrientationStyle",null);
_.e([_.B("instruction.previewInstruction.editButtonLabel"),_.w("design:type",Object),_.w("design:paramtypes",[])],Be.prototype,"editButton",null);_.e([_.B("instruction.editInstruction.saveButtonLabel"),_.w("design:type",Object),_.w("design:paramtypes",[])],Be.prototype,"saveButton",null);_.e([_.B("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.w("design:type",Number),_.w("design:paramtypes",[])],Be.prototype,"cropOffsetTop",null);
_.e([_.B("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.w("design:type",Number),_.w("design:paramtypes",[])],Be.prototype,"cropOffsetLeft",null);_.e([_.B("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],Be.prototype,"pickerBackgroundStyle",null);_.e([_.B("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],Be.prototype,"pickerDisplayStyle",null);
_.e([_.B("cropOffsetLeft","cropOffsetTop"),_.w("design:type",String),_.w("design:paramtypes",[])],Be.prototype,"imageInPickerStyle",null);_.e([_.B("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.w("design:type",String),_.w("design:paramtypes",[])],Be.prototype,"previewClipperStyle",null);_.e([_.By("imageData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Be.prototype,"onImageDataChange",null);
_.e([_.B("cropCoordinatesSaved"),_.w("design:type",String),_.w("design:paramtypes",[])],Be.prototype,"pickerModeStyle",null);_.e([_.B("instruction.editInstruction.learnMore"),_.w("design:type",Object),_.w("design:paramtypes",[])],Be.prototype,"learnMore",null);_.e([_.B("learnMore"),_.w("design:type",Object),_.w("design:paramtypes",[])],Be.prototype,"learnMoreUrl",null);_.e([_.Wy({is:"yt-img-crop-picker",disableElementRegistration:!0})],Be);
_.r(Be,"yt-img-crop-picker",function(){if(HH_===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;ZH_===void 0&&(ZH_=document.createElement("template"));var b=ZH_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);HH_=z}z=HH_;return z},{mode:2});var Xw=function(){var z=_.q.apply(this,arguments)||this;z.errorMessage="";z.hasPreview=!1;z.isBackstagePost=!1;z.dismissButtonOverrides={size:"XS"};return z};
_.m(Xw,_.q);_.p=Xw.prototype;_.p.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"}}}};
_.p.detached=function(){this.removeOverlay()};
_.p.setPreview=function(z){_.Hy(this.hostElement).querySelector("#preview-picker").imageData=z;this.hasPreview=!0;_.gC(this.hostElement,"yt-backstage-image-select-preview")};
_.p.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var z=_.Hy(this.hostElement).querySelector("#dropzone");z.classList.remove("dragover");z.classList.remove("error");_.gC(this.hostElement,"yt-backstage-image-select-cancel")};
_.p.setupOverlay=function(){var z=this.imageUploadEndpoint;this.removeOverlay();if(z&&z.imageValidationInfo){var l=_.Hy(this.hostElement).querySelector("#dropzone"),I=_.Hy(this.hostElement).querySelector("#select");this.overlay=new mt(z.uploadUrl,z.channelId,z.imageValidationInfo.maxFileSizeMb,z.imageValidationInfo.allowedMaxAspectRatio,l,I,!0);_.dZ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.dZ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.dZ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.dZ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.dZ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.p.removeOverlay=function(){this.overlay&&(_.dO(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.dO(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.dO(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.dO(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.dO(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.p.onDragOver=function(z){var l=_.Hy(this.hostElement).querySelector("#dropzone");_.fJ(l,"dragover",z.value)};
_.p.onPreview=function(z){this.setPreview(z.value)};
_.p.onImageError=function(z){if(z.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var l;z=(l=this.data)==null?void 0:l.fileSizeError}else if(z.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var I;z=(I=this.data)==null?void 0:I.invalidError}else if(z.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var b;z=(b=this.data)==null?void 0:b.invalidAspectRatioError}else return;this.errorMessage=_.ID(z);_.Hy(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.p.onImageAlert=function(z){this.onImageError(z)};
_.p.uploadPromise=function(){var z=this,l=this.overlay&&this.overlay.uploadPromise();if(l)return l.catch(function(){throw Error(z.data?_.ID(z.data.uploadFailureError):"");})};
_.vP.Object.defineProperties(Xw.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var z,l;if((z=this.data)==null?0:(l=z.icon)==null?0:l.iconType)return _.Re(this.data.icon.iconType)}}});
Xw.prototype.setupOverlay=Xw.prototype.setupOverlay;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Xw.prototype,"rendererStamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xw.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Xw.prototype,"imageUploadEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],Xw.prototype,"errorMessage",void 0);
_.e([_.X(),_.w("design:type",mt)],Xw.prototype,"overlay",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Xw.prototype,"hasPreview",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Xw.prototype,"isBackstagePost",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Xw.prototype,"selectionCancel",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Xw.prototype,"previewCancel",null);
_.e([_.B("data.icon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Xw.prototype,"icon",null);_.e([_.X(),_.w("design:type",Object)],Xw.prototype,"dismissButtonOverrides",void 0);_.e([_.By("imageUploadEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xw.prototype,"setupOverlay",null);_.e([_.S({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Xw);
_.r(Xw,"ytd-backstage-image-select-renderer",function(){if(En0!==void 0)return En0;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return En0=z},{mode:1});var yup;var fTn;var qO=function(){var z=_.q.apply(this,arguments)||this;z.selected=!1;return z};
_.m(qO,_.q);_.p=qO.prototype;_.p.computeSelected=function(z){return z==null?void 0:z.selected};
_.p.computeTransform=function(z,l,I){var b,v,M=(v=(b=this.imageContainer)==null?void 0:b.getBoundingClientRect())!=null?v:{width:0,height:0};b=Math.max(M.width/l,M.height/I);I=I*b*z.top;return"translateX("+this.getSignedPosition(l*b*z.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.p.getSignedPosition=function(z,l,I){return l==="X"&&_.sZ("HTML_DIR")==="rtl"?I==="-"?z+"px":z*-1+"px":I==="-"?z*-1+"px":z+"px"};
_.p.onClick=function(){var z;_.gC(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(z=this.data)==null?void 0:z.image)};
_.p.onKeyPress=function(z){if(z.keyCode===13)this.onClick()};
_.vP.Object.defineProperties(qO.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:(l=z.image)==null?void 0:l.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)!=null&&z.image){var l;z=(l=this.data)==null?void 0:l.image;return z.previewCoordinates.top!==0||z.previewCoordinates.left!==0?(l=this.computeTransform(z.previewCoordinates,z.naturalWidth,z.naturalHeight),z.naturalHeight>=z.naturalWidth?"width:inherit;transform:"+l+";":"height:inherit;transform:"+l+";"):z.naturalHeight>=z.naturalWidth?"width:inherit;":"height:inherit;"}}}});
qO.prototype.onKeyPress=qO.prototype.onKeyPress;_.e([_.qX(".image-container"),_.w("design:type",HTMLElement)],qO.prototype,"imageContainer",void 0);_.e([_.X(),_.w("design:type",Object)],qO.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.w("design:type",Object)],qO.prototype,"selected",void 0);_.e([_.B("data.image"),_.w("design:type",Object),_.w("design:paramtypes",[])],qO.prototype,"thumbnailUrl",null);
_.e([_.B("data.image","data.image.previewCoordinates"),_.w("design:type",Object),_.w("design:paramtypes",[])],qO.prototype,"thumbnailStyle",null);_.e([_.tP("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],qO.prototype,"onKeyPress",null);_.e([_.S({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],qO);
_.r(qO,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(fTn!==void 0)return fTn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return fTn=z},{mode:2});var iz=function(z,l,I){I=I===void 0?!1:I;_.oW.call(this);var b=this;this.dropZoneOverlay=new YK(z);this.selectOverlay=I?new TJ(l,"multiple_file",["image/*"]):new TJ(l,"single_file",["image/*"]);this.handler=new _.GR(this);_.kN(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(l,"click",function(){b.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.m(iz,_.oW);iz.prototype.onChange=function(z){var l;(l=z.files)!=null&&l.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:z.files}))};var Fw=function(){var z=_.q.apply(this,arguments)||this;z.addImageErrorMessage="";z.errorMessage="";z.images=[];z.selectedImageIndex=0;z.modern=_.C("web_modern_buttons");z.maxNumImagesPerPost=_.OI("max_num_images_per_post_web_ui");z.JSC$15679_imageId=0;return z};
_.m(Fw,_.q);_.p=Fw.prototype;_.p.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.gC(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.p.observeDragToReorder=function(){var z=this;if(this.showImagesPreview){var l,I=Xeu(_.Tv.getInstance(),(l=this.data)==null?void 0:l.dragToReorderTooltip);_.ow.addLowPriorityJob(function(){_.ZE(z.hostElement,I,z.thumbnailDragDropArea)})}};
_.p.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}}};
_.p.computeThumbnail=function(z){return(z==null?void 0:z.localImageSrc)||void 0};
_.p.onRendererstamperFinished=function(){_.uCA(this.ytReorderableBehavior,_.Hy(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Hy(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.p.handleDrop=function(z){var l=z.currDragItem;if(l!=null&&l.data){z=this.images[this.selectedImageIndex];var I=l.data.image,b=this.images.indexOf(I)||0;l=_.sY(l.parentNode.children,l);this.images.splice(b,1);this.images.splice(l,0,I);this.images=[].concat(_.ht(this.images));this.selectedImageIndex=this.images.indexOf(z)}};
_.p.setUpImagePicker=function(){var z=this.imageUploadEndpoint;z&&z.imageValidationInfo&&(this.uploadManager=new mu(z.uploadUrl,z.channelId),this.initialPicker||(this.initialPicker=new iz(this.dropzone,this.selectLink,!0),_.dZ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new iz(this.addImageButtonContainer,this.addImageSelectButton),_.dZ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.dZ(this.JSC$15679_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.dZ(this.JSC$15679_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.dZ(_.Hy(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.p.detached=function(){this.initialPicker&&(_.dO(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.dO(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.p.onInitialSelectImages=function(z){var l=this;return _.O(function(I){return I.yield(l.onSelectImages(z,!1),0)})};
_.p.onAddImage=function(z){var l=this;return _.O(function(I){return I.yield(l.onSelectImages(z,!0),0)})};
_.p.onSelectImages=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L;return _.O(function(lH){switch(lH.nextAddress){case 1:l?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");b=z.detail;v=I.validateImages([].concat(_.ht(b)));if(v!=="")return l?I.addImageErrorMessage=v:I.errorMessage=v,lH.return();M=[].concat(_.ht(b)).map(function(Gk){return(new km(I.maxAspectRatio,!1,!0)).transform(Gk)});
return lH.yield(Promise.allSettled(M),2);case 2:x=lH.yieldResult,g=_.D(x.entries()),G=g.next();case 3:if(G.done){lH.jumpTo(5);break}u=G.value;Z=_.D(u);H=Z.next().value;y=Z.next().value;f=H;R=y;if(R.status!=="fulfilled"){c=Y=F=void 0;l?I.addImageErrorMessage=_.ID((F=I.data)==null?void 0:F.invalidError):I.errorMessage=I.errorMessage===""?_.ID((Y=I.data)==null?void 0:Y.invalidError):_.ID((c=I.data)==null?void 0:c.multiFileError);lH.jumpTo(4);break}d=R.value;d.cropped&&_.gC(I.hostElement,"yt-backstage-multi-image-cropped");
if(d.invalidAspectRatio){W=A=V=void 0;l?I.addImageErrorMessage=_.ID((V=I.data)==null?void 0:V.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.ID((A=I.data)==null?void 0:A.invalidAspectRatioError):_.ID((W=I.data)==null?void 0:W.multiFileError);lH.jumpTo(4);break}return lH.yield(CkH(I.JSC$15679_imageId,z.detail[f],d.transformedData),8);case 8:L=lH.yieldResult,I.images.push(L),I.JSC$15679_imageId++;case 4:G=g.next();lH.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return lH.return();l?MwA(I.uploadManager,[I.images[I.images.length-1]]):MwA(I.uploadManager,I.images);I.images=[].concat(_.ht(I.images));I.selectedImageIndex=l?Math.max(I.images.length-1,0):0;_.gC(I.hostElement,"yt-backstage-multi-image-select");_.qe(lH)}})};
_.p.onThumbnailClick=function(z){if(z=z.event_.detail)this.selectedImageIndex=this.images.indexOf(z)};
_.p.validateImages=function(z){if(z.length>this.maxNumImagesPerPost){var l;return _.ID((l=this.data)==null?void 0:l.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;z=z.filter(function(M){return M.size>I}).length;
if(z===0)return"";var b,v;z=z>1?(b=this.data)==null?void 0:b.multiFileError:(v=this.data)==null?void 0:v.fileSizeError;return _.ID(z)};
_.p.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ht(this.images));this.selectedImageIndex=0};
_.p.repositionImage=function(z){this.images[this.selectedImageIndex].previewCoordinates=z.event_.detail;this.images=[].concat(_.ht(this.images))};
_.p.getAllUploadStatuses=function(){var z=this,l,I,b,v;return _.O(function(M){if(M.nextAddress==1)return M.yield(z.uploadManager.getAllUploadStatuses(),2);l=M.yieldResult;I=_.D(l);for(b=I.next();!b.done;b=I.next())if(v=b.value,v.encryptedBlobId===void 0)return M.return(p4p(z.uploadManager));return M.return(l)})};
_.p.hasImages=function(){return this.images.length>0};
_.p.cancel=function(){for(var z=this.uploadManager,l=_.D(z.imagesUploadData),I=l.next();!I.done;I=l.next())z.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.gC(this.hostElement,"yt-backstage-multi-image-cancel")};
_.vP.Object.defineProperties(Fw.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.imageUploadEndpoint)==null?void 0:(l=z.imageValidationInfo)==null?void 0:l.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.imageUploadEndpoint)==null?void 0:(l=z.imageValidationInfo)==null?void 0:l.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var z,l;if((z=this.data)==null?0:(l=z.icon)==null?0:l.iconType)return _.Re(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.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 z=this;return(this.images||[]).map(function(l,I){return{renderer:{image:l,selected:I===z.selectedImageIndex}}})}}});
Fw.prototype.setUpImagePicker=Fw.prototype.setUpImagePicker;Fw.prototype.onRendererstamperFinished=Fw.prototype.onRendererstamperFinished;Fw.prototype.observeDragToReorder=Fw.prototype.observeDragToReorder;Fw.prototype.observeAddImageError=Fw.prototype.observeAddImageError;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Fw.prototype,"rendererStamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.ZXA),_.w("design:type",Object)],Fw.prototype,"ytReorderableBehavior",void 0);_.e([_.qX("#dropzone"),_.w("design:type",HTMLElement)],Fw.prototype,"dropzone",void 0);_.e([_.qX("#select-link"),_.w("design:type",HTMLElement)],Fw.prototype,"selectLink",void 0);_.e([_.qX("#thumbnail-drag-drop-area"),_.w("design:type",HTMLElement)],Fw.prototype,"thumbnailDragDropArea",void 0);_.e([_.qX("#add-image-button-container"),_.w("design:type",HTMLElement)],Fw.prototype,"addImageButtonContainer",void 0);
_.e([_.qX("#add-image-button"),_.w("design:type",HTMLElement)],Fw.prototype,"addImageSelectButton",void 0);_.e([_.qX("#image-preview-container"),_.w("design:type",Object)],Fw.prototype,"JSC$15679_imagePreviewContainer",void 0);_.e([_.X(),_.w("design:type",Object)],Fw.prototype,"addImageErrorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],Fw.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Fw.prototype,"errorMessage",void 0);
_.e([_.X(),_.w("design:type",Object)],Fw.prototype,"imageUploadEndpoint",void 0);_.e([_.X(),_.w("design:type",Array)],Fw.prototype,"images",void 0);_.e([_.X(),_.w("design:type",iz)],Fw.prototype,"initialPicker",void 0);_.e([_.X(),_.w("design:type",iz)],Fw.prototype,"addImagePicker",void 0);_.e([_.X(),_.w("design:type",mu)],Fw.prototype,"uploadManager",void 0);_.e([_.X(),_.w("design:type",Object)],Fw.prototype,"selectedImageIndex",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fw.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fw.prototype,"maxNumImagesPerPost",void 0);_.e([_.B("imageUploadEndpoint"),_.w("design:type",Number),_.w("design:paramtypes",[])],Fw.prototype,"maxAspectRatio",null);_.e([_.B("imageUploadEndpoint"),_.w("design:type",Number),_.w("design:paramtypes",[])],Fw.prototype,"maxFileSizeMb",null);
_.e([_.B("data.icon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Fw.prototype,"dropIcon",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Fw.prototype,"selectionCancel",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Fw.prototype,"previewCancel",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Fw.prototype,"dataForAddImageButton",null);
_.e([_.B("errorMessage"),_.w("design:type",String),_.w("design:paramtypes",[])],Fw.prototype,"dropzoneClass",null);_.e([_.B("images"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Fw.prototype,"showImagesPreview",null);_.e([_.B("images"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Fw.prototype,"containMaxImages",null);_.e([_.By("addImageErrorMessage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fw.prototype,"observeAddImageError",null);
_.e([_.By("showImagesPreview"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fw.prototype,"observeDragToReorder",null);_.e([_.B("images","selectedImageIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],Fw.prototype,"selectedImageData",null);_.e([_.B("images","selectedImageIndex"),_.w("design:type",Array),_.w("design:paramtypes",[])],Fw.prototype,"thumbnailRenderers",null);
_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fw.prototype,"onRendererstamperFinished",null);_.e([_.By("imageUploadEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fw.prototype,"setUpImagePicker",null);_.e([_.S({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Fw);
_.r(Fw,"ytd-backstage-multi-image-select-renderer",function(){if(yup!==void 0)return yup;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yup=z},{mode:1});var CBA;var kfj;var RAA;var Qz=function(){var z=_.q.apply(this,arguments)||this;z.boundCaptureFocus=function(l){z.onCaptureFocus(l)};
return z};
_.m(Qz,_.q);_.p=Qz.prototype;_.p.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.p.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.p.onCaptureFocus=function(z){_.MX(z).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.p.getIconType=function(z){return z?"yt-icons:"+z.toLowerCase():null};
_.p.onSelect=function(){var z;if((z=this.data)==null?0:z.onSelectCommand)if(_.C("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var l;((l=_.k(this.data.onSelectCommand.commandMetadata,_.kB))==null?0:l.url)?_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.pG().resolve(_.DQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.vP.Object.defineProperties(Qz.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.ID(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Qz.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Qz.prototype,"data",void 0);_.e([_.qX("#item"),_.w("design:type",HTMLElement)],Qz.prototype,"item",void 0);_.e([_.B("data.label"),_.w("design:type",String),_.w("design:paramtypes",[])],Qz.prototype,"label",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Qz.prototype,"value",null);_.e([_.S({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Qz);
_.r(Qz,"ytd-privacy-dropdown-item-renderer",function(){if(RAA!==void 0)return RAA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return RAA=z},{mode:1});var Yy=function(){var z=_.q.apply(this,arguments)||this;z.value="";z.label="";z.disabled=!1;return z};
_.m(Yy,_.q);_.p=Yy.prototype;_.p.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"}}}};
_.p.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.p.dataChanged=function(){this.reset()};
_.p.valueChanged=function(){var z;if(this.value&&(z=this.data)!=null&&z.entries){z=_.D(this.data.entries);for(var l=z.next();!l.done;l=z.next())if((l=this.getRendererForEntry(l.value))&&this.getItemRendererValue(l)===this.value){this.label=this.ytComponentBehavior.getSimpleString(l.label);break}}};
_.p.setInitialLabel=function(){if(this.data&&this.data.entries)for(var z=_.D(this.data.entries),l=z.next();!l.done;l=z.next())if(l=this.getRendererForEntry(l.value)){if(l.isSelected){this.label=this.ytComponentBehavior.getSimpleString(l.label);break}this.data.label&&(this.label=this.data.label)}};
_.p.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var z=_.D(this.data.entries),l=z.next();!l.done;l=z.next()){l=this.getRendererForEntry(l.value);var I=void 0;if((I=l)==null?0:I.isSelected)return this.getItemRendererValue(l)||-1}return-1};
_.p.getItemRendererValue=function(z){return"stringValue"in z||"int32Value"in z?z.stringValue||z.int32Value||null:null};
_.p.getRendererForEntry=function(z){return z.dropdownItemRenderer||z.privacyDropdownItemRenderer||z.navigationDropdownItemRenderer||null};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("value-changed",this.value))};
_.p.updateValueFromBinding=function(z){this.value=z.detail.value};
Yy.prototype.valueChangedForBinding=Yy.prototype.valueChangedForBinding;Yy.prototype.valueChanged=Yy.prototype.valueChanged;Yy.prototype.dataChanged=Yy.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Yy.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Yy.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Yy.prototype,"value",void 0);_.e([_.X(),_.w("design:type",Object)],Yy.prototype,"label",void 0);_.e([_.qX("#entries"),_.w("design:type",Object)],Yy.prototype,"entries",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yy.prototype,"disabled",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yy.prototype,"dataChanged",null);
_.e([_.YE("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yy.prototype,"valueChanged",null);_.e([_.By("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yy.prototype,"valueChangedForBinding",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Yy);
_.r(Yy,"ytd-flat-dropdown-renderer",function(){if(kfj!==void 0)return kfj;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return kfj=z},{mode:1});var mL0;var TX=function(){var z=_.q.apply(this,arguments)||this;z.quizOptions=[];z.explanationPlaceholderText="";z.optionPlaceholderText="";z.correctAnswerIndex=-1;z.isMarkAnswerTooltipShown=!1;z.timer=0;return z};
_.m(TX,_.q);_.p=TX.prototype;_.p.dataChanged=function(){this.optionPlaceholderText=_.ID(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.ID(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.p.onMarkCorrectAnswer=function(z){var l,I=((l=this.quizOptions[this.correctAnswerIndex])==null?void 0:l.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[z.model.index]=Object.assign({},this.quizOptions[z.model.index],{explanationText:I,isCorrect:!0});this.correctAnswerIndex=z.model.index;this.quizOptions=[].concat(_.ht(this.quizOptions))};
_.p.updatePlaceholderTexts=function(){for(var z=!1,l=[],I=0;I<this.quizOptions.length;I++){var b=this.optionPlaceholderText+" "+(I+1),v=void 0;((v=this.quizOptions[I])==null?void 0:v.placeholderText)!==b?(z=!0,l.push(Object.assign({},this.quizOptions[I],{placeholderText:b}))):l.push(this.quizOptions[I])}z&&(this.quizOptions=l);this.isValid()?_.gC(this.hostElement,"yt-commentbox-post-enable"):_.gC(this.hostElement,"yt-commentbox-post-disable")};
_.p.getSimpleString=function(z){return _.ID(z)};
_.p.createQuizOptions=function(z){var l=[],I;z=(I=z==null?void 0:z.minQuizOptions)!=null?I:0;for(I=0;I<z;I++)l.push(this.createQuizOption());return l};
_.p.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ht(this.quizOptions),[this.createQuizOption()]))};
_.p.onInput=function(){this.quizOptions=[].concat(_.ht(this.quizOptions))};
_.p.onExplanationInput=function(){_.gC(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.p.onRemoveQuizOption=function(z){this.quizOptions.splice(z.model.index,1);z.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:z.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ht(this.quizOptions));this.quizOptions.length===0&&_.gC(this.hostElement,"yt-quiz-attachment-dismiss")};
_.p.updateHintRenderer=function(){var z=this;clearTimeout(this.timer);this.timer=setTimeout(function(){z.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.p.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var z=0,l=0,I=_.D(this.quizOptions),b=I.next();!b.done;b=I.next()){b=b.value;var v=void 0;if(((v=b.optionText)==null?void 0:v.trim())!==""||b.isCorrect){b.isCorrect&&l++;v=void 0;if(this.hasCustomOptionText&&((v=b.optionText)==null?void 0:v.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;z++}}return z>=
Number(this.editorInfo.minQuizOptions)&&l===1};
_.p.getPostCreateOptions=function(){for(var z=[],l=_.D(this.quizOptions),I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;((b=I.optionText)==null?void 0:b.trim())!==""&&z.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return z};
_.p.getExplanationText=function(){var z;return((z=this.quizOptions[this.correctAnswerIndex])==null?void 0:z.explanationText)||""};
_.p.maybeDisplayMarkAnswerEduToolTip=function(){var z,l,I,b,v,M,x;this.shouldShowMarkAnswerTooltip()&&((z=this.editorInfo)==null?0:(l=z.markAnswerButton)==null?0:(I=l.buttonRenderer)==null?0:(b=I.hint)==null?0:(v=b.hintRenderer)==null?0:(M=v.content)==null?0:(x=M.bubbleHintRenderer)==null?0:x.text)&&(_.Tv.getInstance(),z=c2(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,(z==null?void 0:z.length)>0&&this.optionSelectors&&_.tx(z[0],this.optionSelectors[0]))};
_.p.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var z=0,l=_.D(this.quizOptions),I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;((b=I.optionText)==null?void 0:b.trim())!==""&&z++;if(I.isCorrect)return!1}return z<2?!1:!0};
_.p.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.p.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.p.updateOptionTextFromBinding=function(z){if(z.target){var l=Array.from(_.Hy(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(z.target);if(l>=0){var I;this.quizOptions[l].optionText=(I=z.detail.value)!=null?I:""}}};
_.vP.Object.defineProperties(TX.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.editorInfo)==null?void 0:(l=z.addOptionButton)==null?void 0:l.buttonRenderer;I&&(I.style="STYLE_SUGGESTIVE",I.size="SIZE_SMALL",I.isDisabled=!this.isAllowedToAddOption);return(I==null?0:I.text)?I:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var z,l;return this.quizOptions.length<((l=(z=this.editorInfo)==null?void 0:z.maxQuizOptions)!=null?l:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(z){var l;return(l=z.optionText)==null?void 0:l.trim()})}}});
TX.prototype.updatePlaceholderTexts=TX.prototype.updatePlaceholderTexts;TX.prototype.dataChanged=TX.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],TX.prototype,"editorInfo",void 0);_.e([_.X(),_.w("design:type",Array)],TX.prototype,"quizOptions",void 0);_.e([_.X(),_.w("design:type",Object)],TX.prototype,"explanationPlaceholderText",void 0);_.e([_.i5(".option-selector-button"),_.w("design:type",Array)],TX.prototype,"optionSelectors",void 0);
_.e([_.YE("editorInfo"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TX.prototype,"dataChanged",null);_.e([_.B("editorInfo","isAllowedToAddOption","quizOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],TX.prototype,"addAnswerButton",null);_.e([_.B("editorInfo","quizOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],TX.prototype,"isAllowedToAddOption",null);
_.e([_.YE("quizOptions"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TX.prototype,"updatePlaceholderTexts",null);_.e([_.B("quizOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],TX.prototype,"hasCustomOptionText",null);_.e([_.S({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],TX);
_.r(TX,"ytd-backstage-quiz-editor-renderer",function(){if(mL0!==void 0)return mL0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return mL0=z},{mode:2});var Kbj;var twI=(tQ.FIRSTDAYOFWEEK+1)%7;var BQj;var X4_=[],qRw=0,iHp=0;qRw=0;iHp=24;if(.25*(iHp-qRw)<0)BQj=[];else{for(var Fb_=qRw;Fb_<iHp;Fb_+=.25)X4_.push(Fb_);BQj=X4_}var Q4w=BQj.map(function(z){z=z*60*60;return{secondsSinceMidnight:z,text:(new zN(7)).format(new Date(0,0,0,0,0,z))}});var YRj;var ce=function(){var z=_.q.apply(this,arguments)||this;z.skipNextOpenDialog=!1;z.errorMessage="";z.previousMonthLabel=_.mY("PREVIOUS_MONTH_LABEL");z.nextMonthLabel=_.mY("NEXT_MONTH_LABEL");return z};
_.m(ce,_.q);_.p=ce.prototype;_.p.attached=function(){var z=this,l=new MutationObserver(function(){z.JSC$15722_calendarMain.scrollHeight>0&&(l.disconnect(),z.calendarConfig&&z.calendarConfig.selectedDate&&z.scrollToDate())});
l.observe(this.JSC$15722_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){l.disconnect()},1E3)};
_.p.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.p.onDateTextChange=function(){if(this.calendarConfig){var z=this.validateDateText();z.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(z.details)):this.textbox.setAttribute("invalid","")}};
_.p.handleDayClick=function(z){z.model.day.date&&(this.commitDate(z.model.day.date),this.dialog.close())};
_.p.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var z=QTt(this.calendarConfig.selectedDate,this.renderData);z!==void 0&&this.JSC$15722_calendarMain.scrollToIndex(z)}};
_.p.scrollToNextMonth=function(){this.JSC$15722_calendarMain.scrollToIndex(this.JSC$15722_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$15722_calendarMain.firstVisibleIndex===0&&this.JSC$15722_calendarMain.scrollTo(0,0);this.JSC$15722_calendarMain.scrollToIndex(this.JSC$15722_calendarMain.firstVisibleIndex-1)};
_.p.onFormSubmit=function(z){z.preventDefault();this.calendarConfig&&(z=this.validateDateText(),z.isValid&&(this.commitDate(z.details),this.dialog.close()))};
_.p.onEscOrClickingOutside=function(z){z=z.detail.path&&!!z.detail.path.length&&z.detail.path[0];if(z.classList.contains("ytd-calendar-date-picker")){z===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var l=0;l<this.dropdownButton.children.length;l++)this.dropdownButton.children[l]===z&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}z=this.textbox.value!==this.dateText;l=this.validateDateText();z&&l.isValid&&this.commitDate(l.details);this.dialog.close();this.textbox.value=
this.dateText};
_.p.commitDate=function(z){this.calendarConfig&&(this.set("calendarConfig.selectedDate",z),_.gC(this.hostElement,"ytd-calendar-date-selected",z))};
_.p.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var z=this.textbox.value;var l=new Date;z=(new aUQ(2)).parse(z,l,{validate:!0})===z.length?iaf(l):void 0;if(!z)return this.errorMessage=_.mY("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};l=this.calendarConfig.start;var I=this.calendarConfig.end;if(K_5(z,l))return this.errorMessage=_.mY("ENTER_DATE_OR_LATER",{allowed_date:qPp(l)}),{isValid:!1,details:void 0};if(K_5(I,z))return this.errorMessage=
_.mY("ENTER_DATE_OR_EARLIER",{allowed_date:qPp(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:z}};
_.vP.Object.defineProperties(ce.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?qPp(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var z=this.calendarConfig,l=[],I=0;I<7;I++)l.push(tQ.NARROWWEEKDAYS[(I+twI)%7]);I=[];for(var b=new Date(z.start.year,z.start.month);b.getFullYear()<z.end.year||b.getFullYear()===z.end.year&&b.getMonth()<=z.end.month;){var v=I,M=v.push,x=b.getFullYear(),g=b.getMonth(),G=z,u=void 0,Z=[],H=Object.freeze({extraCssClass:"invisible",debugClass:""}),y=new Date(x,g),f=iaf(y);y=y.getDay();for(var R=iaf(new Date);f.month===
g;){y!==twI&&u||(u=Array.from({length:7}).fill(H),Z.push(u));var F={date:{year:x,month:g,day:f.day},extraCssClass:"",debugClass:""};G.selectedDate&&F.date&&mEY(F.date,G.selectedDate)&&(F.extraCssClass+=" selected");if(K_5(f,G.start)||K_5(G.end,f))F.extraCssClass+=" disabled";mEY(f,R)&&(F.extraCssClass+=" today");F.extraCssClass=F.extraCssClass.trim();u[(y-twI+7)%7]=F;f=B_1(f);y=(y+1)%7}M.call(v,{weeks:Z,monthLabel:tQ.SHORTMONTHS[g]+" "+x,year:x,month:g,monthLabelExtraCssClass:Z[0][2]===H?"shift-down-label":
""});b.setMonth(b.getMonth()+1)}return{months:I,daysOfWeekLabel:l}}}}});
ce.prototype.onEscOrClickingOutside=ce.prototype.onEscOrClickingOutside;ce.prototype.scrollToDate=ce.prototype.scrollToDate;_.e([_.X(),_.w("design:type",Object)],ce.prototype,"calendarConfig",void 0);_.e([_.X(),_.w("design:type",Object)],ce.prototype,"skipNextOpenDialog",void 0);_.e([_.X(),_.w("design:type",Object)],ce.prototype,"errorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],ce.prototype,"previousMonthLabel",void 0);
_.e([_.X(),_.w("design:type",Object)],ce.prototype,"nextMonthLabel",void 0);_.e([_.qX("#textbox"),_.w("design:type",HTMLInputElement)],ce.prototype,"textbox",void 0);_.e([_.qX("#calendar-dialog"),_.w("design:type",Object)],ce.prototype,"dialog",void 0);_.e([_.qX("#calendar-main"),_.w("design:type",Object)],ce.prototype,"JSC$15722_calendarMain",void 0);_.e([_.qX("#date-picker"),_.w("design:type",HTMLElement)],ce.prototype,"dropdownButton",void 0);
_.e([_.B("calendarConfig.selectedDate"),_.w("design:type",String),_.w("design:paramtypes",[])],ce.prototype,"dateText",null);_.e([_.B("calendarConfig","calendarConfig.selectedDate"),_.w("design:type",Object),_.w("design:paramtypes",[])],ce.prototype,"renderData",null);_.e([_.By("renderData","calendarConfig.selectedDate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ce.prototype,"scrollToDate",null);
_.e([_.tP("iron-overlay-canceled"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ce.prototype,"onEscOrClickingOutside",null);_.e([_.Wy({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ce);
_.r(ce,"ytd-calendar-date-picker",function(){if(YRj!==void 0)return YRj;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YRj=z},{mode:2});var TQI=_.mY("UTC_OFFSET_FORMAT",{utc_offset:(new zN("Z")).format(new Date)}),cuu=(new Date).getTimezoneOffset()*-60,SRn=new Date,dLp,onw=Jm(SRn.getTimezoneOffset());dLp=P5u(s8w(onw,SRn));var PBA=_.mY("LOCAL_TIME_GMT_LABEL",{gmt_text:dLp.replace("+0","+").replace("-0","-").replace(":00","")}),Ss=function(){var z=_.q.apply(this,arguments)||this;z.selectedTimeIndex=0;z.selectedTimezoneIndex=0;z.timeOfDayOptions=Q4w;return z};
_.m(Ss,_.q);_.p=Ss.prototype;_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var z=XSt();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=z,this.selectedTimeIndex=0;else{var l=F_x(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},z,{selectedDate:l.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===l.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.p.onDatePicked=function(z){this.selectedDate=z.detail};
_.p.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.gC(this.hostElement,"ytd-date-time-selection-cancelled")};
_.p.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var z=this.selectedDate;z=new Date(z.year,z.month,z.day);_.gC(this.hostElement,"ytd-date-time-selection-update",Math.floor(z.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+z.getTimezoneOffset()*60))}};
_.p.getTimezoneFormat=function(z){return z.localizedDisplayText?z.localizedDisplayText:_.mY("TIMEZONE_FORMAT",{utc_offset_text:""+z.localizedUtcOffset,city_name:""+z.localizedName})};
_.p.updateSelectedTimeIndexFromBinding=function(z){this.selectedTimeIndex=z.detail.value};
_.p.updateSelectedTimezoneIndexFromBinding=function(z){this.selectedTimezoneIndex=z.detail.value};
_.vP.Object.defineProperties(Ss.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var z=this.data.timezoneOptions;var l={name:"Etc/Unknown",localizedName:_.mY("LOCAL_TIME_LABEL"),localizedUtcOffset:TQI,utcOffsetSec:""+cuu,localizedDisplayText:PBA};z?z.length&&z[0].name!==l.name&&(z[0].localizedDisplayText||(l.localizedDisplayText=""),z.unshift(l)):z=[l];return z}}},
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]}}});
Ss.prototype.onDateTimeTimezoneChange=Ss.prototype.onDateTimeTimezoneChange;Ss.prototype.onDatePicked=Ss.prototype.onDatePicked;Ss.prototype.updateDefaultSelectedValue=Ss.prototype.updateDefaultSelectedValue;_.e([_.X(),_.w("design:type",Object)],Ss.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Ss.prototype,"calendarConfig",void 0);_.e([_.X(),_.w("design:type",Object)],Ss.prototype,"selectedDate",void 0);_.e([_.X(),_.w("design:type",Object)],Ss.prototype,"selectedTimeIndex",void 0);
_.e([_.X(),_.w("design:type",Object)],Ss.prototype,"selectedTimezoneIndex",void 0);_.e([_.qX("#time-listbox"),_.w("design:type",Object)],Ss.prototype,"timeListBox",void 0);_.e([_.qX("#timezone-listbox"),_.w("design:type",Object)],Ss.prototype,"timezoneListBox",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ss.prototype,"rendererStamperBehavior",void 0);_.e([_.B("data.timezoneOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ss.prototype,"timeZones",null);
_.e([_.YE("data","timeZones"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ss.prototype,"updateDefaultSelectedValue",null);_.e([_.B("selectedTimezoneIndex","timeZones"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ss.prototype,"selectedTimezone",null);_.e([_.B("selectedTimeIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ss.prototype,"selectedTime",null);
_.e([_.tP("ytd-calendar-date-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ss.prototype,"onDatePicked",null);_.e([_.By("selectedTimezone","selectedTime","selectedDate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ss.prototype,"onDateTimeTimezoneChange",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Ss);
_.r(Ss,"ytd-date-time-picker-renderer",function(){if(Kbj!==void 0)return Kbj;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Kbj=z},{mode:1});var hAz;var dq=function(){var z=_.q.apply(this,arguments)||this;z.boundOnTapDismissButton=function(){z.dismissTapHandler()};
z.dismissButtonOverrides={size:"XS"};return z};
_.m(dq,_.q);dq.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}}}}}};
dq.prototype.dismissTapHandler=function(){_.gC(this.hostElement,"yt-backstage-attachment-dismissed")};
dq.prototype.computeAttachmentType=function(z){return z?z.backstageImageRenderer?"image":z.videoRenderer?"video":"none":"none"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dq.prototype,"attachmentPreview",void 0);_.e([_.X(),_.w("design:type",Object)],dq.prototype,"dismissButton",void 0);_.e([_.X(),_.w("design:type",Object)],dq.prototype,"boundOnTapDismissButton",void 0);
_.e([_.X(),_.w("design:type",Object)],dq.prototype,"dismissButtonOverrides",void 0);_.e([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.w("design:type",String)],dq.prototype,"attachmentType",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],dq);
_.r(dq,"ytd-backstage-dismissable-attachment",function(){if(hAz!==void 0)return hAz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return hAz=z},{mode:1});var s4n;var oa=function(){var z=_.q.apply(this,arguments)||this;z.selectedVideoId=void 0;z.picker=void 0;z.dismissButtonOverrides={size:"XS"};z.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return z};
_.m(oa,_.q);_.p=oa.prototype;_.p.onServiceRequestCompleted=function(z){z.stopPropagation()};
_.p.handleAddVideoPreviewAction=function(z){z=this.get("addVideoPreviewAction",z);this.onGetVideoPreviewSuccess(z)};
_.p.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}}}}}};
_.p.onLaunchVideoPicker=function(z){var l=this,I=_.ID(this.get("addVideoLinkAction.title",z)),b=this.get("addVideoLinkAction.onePickHostId",z);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",z);b&&(this.picker||(I=_.Q34(_.zG7(b).setTitle(I).addView(XV4()).addView(Bkj()),function(v){l.onPickVideo(v)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",z)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.p.onPickVideo=function(z){if(z)if(z.action==="cancel")_.gC(this.hostElement,"yt-video-link-button-cancel");else if(z.action==="picked"){z=z.docs;if(!z||z.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(z=(z==null?0:z.length)?z[0]:void 0)?z.id:void 0;this.setVideoPreview()}};
_.p.setVideoPreview=function(){var z=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){z.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.p.onGetVideoPreviewSuccess=function(z){if(z&&z.videoPreview&&z.cancelButton)this.videoPreview=z.videoPreview,this.cancelButton=z.cancelButton,_.gC(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.p.onGetVideoPreviewError=function(){this.cancel()};
_.p.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.gC(this.hostElement,"yt-video-link-cancel")};
_.p.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
oa.prototype.onServiceRequestCompleted=oa.prototype.onServiceRequestCompleted;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],oa.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],oa.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],oa.prototype,"videoPreview",void 0);_.e([_.X(),_.w("design:type",Object)],oa.prototype,"cancelButton",void 0);_.e([_.X(),_.w("design:type",Object)],oa.prototype,"getVideoPreviewCommand",void 0);_.e([_.X(),_.w("design:type",Object)],oa.prototype,"dismissButtonOverrides",void 0);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],oa.prototype,"onServiceRequestCompleted",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],oa);
_.r(oa,"ytd-backstage-video-link-attachment",function(){if(s4n!==void 0)return s4n;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return s4n=z},{mode:1});var ruz;var $L_;var eA_;var Pe=function(){return _.q.apply(this,arguments)||this};
_.m(Pe,_.q);Pe.prototype.dataChanged=function(){this.active=!1};
Pe.prototype.onTap=function(){_.gC(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Pe.prototype.identity=function(z){return z};
_.vP.Object.defineProperties(Pe.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;if((z=this.data)==null?0:(l=z.image)==null?0:(I=l.thumbnails)==null?0:(b=I[0])==null?0:b.url)return z=this.data.image.thumbnails[0].url,z.startsWith("data:image/svg+xml")?d0(z):_.eA(z)}}});
Pe.prototype.dataChanged=Pe.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],Pe.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Pe.prototype,"active",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pe.prototype,"dataChanged",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Pe.prototype,"imageSrc",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Pe);
_.r(Pe,"ytd-emoji-suggestion",function(){if(eA_!==void 0)return eA_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return eA_=z},{mode:1});var w4w=/.*([:@#].*?)$/,hq=function(){var z=_.q.apply(this,arguments)||this;z.suggestions=[];z.suggestionIndex=-1;z.JSC$15750_lastSuggestionRange=null;return z};
_.m(hq,_.q);_.p=hq.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.p.getSuggestions=function(z){var l=[],I=H3_(this.emojiManager,z.substr(0,3));if(I)for(var b in I)if(b.toLocaleLowerCase().indexOf(z)===0){var v=I[b];if(v&&v.emojiId){v=Z$(this.emojiManager,v.emojiId);var M=void 0,x=void 0,g=void 0,G=void 0,u=((M=v)==null?0:M.isCustomEmoji)?(x=v)==null?void 0:(g=x.shortcuts)==null?void 0:g[0]:(G=v)==null?void 0:G.emojiId;M=void 0;l.push({suggestion:{image:(M=v)==null?void 0:M.image,alt:u,text:b}});if(l.length>=64)break}}return l?l.sort(function(Z,H){return H.suggestion.text<
Z.suggestion.text?-1:H.suggestion.text===Z.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(z){_.gC(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15750_lastSuggestionRange,text:z.alt});this.dropdown.opened=!1};
_.p.updateSuggestionsAtCaret=function(z){this.updateSuggestions(z,this.retrieveTextBeforeRange(z))};
_.p.offsetStartOfRangeBy=function(z,l){z.startOffset>=l&&z.setStart(z.startContainer,z.startOffset-l)};
_.p.updateSuggestions=function(z,l){var I=this;this.JSC$15750_lastSuggestionRange&&(this.JSC$15750_lastSuggestionRange.detach(),this.JSC$15750_lastSuggestionRange=null);if((l=w4w.exec(l))&&l.length&&(l=l[l.length-1].toLocaleLowerCase(),l.length>2||l===":_")&&(this.offsetStartOfRangeBy(z,l.length),this.JSC$15750_lastSuggestionRange=z,(z=this.getSuggestions(l))&&z.length)){this.suggestions=z;_.IR(this,function(){I.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(z.length-1);return}this.dropdown.opened=!1};
_.p.onKeyDown=function(z){if(this.dropdown.opened)switch(z.key){case "Escape":this.dropdown.opened=!1;z.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);z.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);z.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),z.preventDefault()}};
_.p.onKeyUp=function(z,l){switch(z.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(l);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(l)}};
_.p.onKeyPress=function(z){z.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),z.preventDefault())};
_.p.changeSuggestionIndex=function(z){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(z+this.suggestions.length)%this.suggestions.length,z=this.dropdownContent.children[this.suggestionIndex],z.active=!0,this.dropdownContent.scrollTop=z.offsetTop)};
_.p.retrieveTextBeforeRange=function(z){var l=z.startContainer;return l&&l.nodeType===Node.TEXT_NODE?l.textContent.substr(0,z.startOffset):""};
hq.prototype.onKeyPress=hq.prototype.onKeyPress;hq.prototype.onKeyUp=hq.prototype.onKeyUp;hq.prototype.onKeyDown=hq.prototype.onKeyDown;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Array)],hq.prototype,"suggestions",void 0);_.e([_.X(),_.w("design:type",_.EM)],hq.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",Number)],hq.prototype,"verticalSuggestionsOffset",void 0);
_.e([_.qX("#dropdown"),_.w("design:type",Object)],hq.prototype,"dropdown",void 0);_.e([_.qX("#dropdown-content"),_.w("design:type",HTMLDivElement)],hq.prototype,"dropdownContent",void 0);_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],hq.prototype,"onKeyDown",null);_.e([_.tP("keyup"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent,Range]),_.w("design:returntype")],hq.prototype,"onKeyUp",null);
_.e([_.tP("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],hq.prototype,"onKeyPress",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-emoji-input"})],hq);
_.r(hq,"ytd-emoji-input",function(){if($L_!==void 0)return $L_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $L_=z},{mode:2});var AuA;var s$=function(){var z=_.q.apply(this,arguments)||this;z.hasMaxOptions=!1;return z};
_.m(s$,_.q);_.p=s$.prototype;_.p.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.p.setPrefilledChoices=function(z){var l=this;this.set("pollOptions",[]);var I;for(I=0;I<Math.min(z.length,this.data.maxPollOptions);I++)this.push("pollOptions",z[I].substring(0,this.data.maxPollOptionChars));for(;I<this.data.minPollOptions;I++)this.push("pollOptions","");this.hasMaxOptions=I>=this.data.maxPollOptions;_.IR(this,function(){for(var b=l.pollOptions,v=_.Hy(l.hostElement).querySelectorAll(".poll-option-input"),M=0;M<v.length;M++)v[M].value=b[M]})};
_.p.focusChanged=function(){_.R8(this.hostElement)};
_.p.onInput=function(){var z=this;_.z4(this,"onInput",function(){z.isValid()?_.gC(z.hostElement,"yt-commentbox-post-enable"):_.gC(z.hostElement,"yt-commentbox-post-disable")},300)};
_.p.setPollOptions=function(){var z=[],l,I=((l=this.data)==null?0:l.minPollOptions)?this.data.minPollOptions:0;for(l=0;l<I;l++)z.push("");return z};
_.p.addPollOption=function(){var z=this;_.gC(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ow.addLowPriorityJob(function(){var l;(l=_.Hy(z.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||l.focus()})};
_.p.onRemovePollOption=function(z){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.gC(this.hostElement,"yt-poll-attachment-dismiss")):(z=this.repeat.indexForElement(z.target.parentNode),z!==null&&(this.splice("pollOptions",z,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.gC(this.hostElement,"yt-commentbox-post-enable"))))};
_.p.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.p.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var z=0,l=this.pollOptions.length;z<l;z++)if(this.pollOptions[z].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.p.getPollOptions=function(){return this.pollOptions};
_.p.setPollOptionsFromInputs=function(){for(var z=_.Hy(this.hostElement).querySelectorAll(".poll-option-input"),l=0;l<z.length;l++)this.pollOptions[l]=z[l].value.trim()};
_.p.clearPollOptions=function(){var z=_.Hy(this.hostElement).querySelectorAll(".poll-option-input");z=_.D(z);for(var l=z.next();!l.done;l=z.next())l.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.p.getSimpleString=function(z){return _.ID(z)};
_.p.updateValueFromBinding=function(z){if(z.target&&this.pollOptions){var l=Array.from(_.Hy(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(z.target);if(l>=0){var I;this.pollOptions[l]=(I=z.detail.value)!=null?I:"";this.notifyPath("pollOptions."+l)}}};
s$.prototype.dataChanged=s$.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],s$.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Array)],s$.prototype,"pollOptions",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],s$.prototype,"hasMaxOptions",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],s$.prototype,"enableCreationBox",void 0);
_.e([_.qX("#repeat"),_.w("design:type",sx)],s$.prototype,"repeat",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],s$.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-poll-attachment"})],s$);
_.r(s$,"ytd-poll-attachment",function(){if(AuA!==void 0)return AuA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return AuA=z},{mode:2});var WbI;var nn4;var Lbj;var UL0;var rq=function(){return _.q.apply(this,arguments)||this};
_.m(rq,_.q);_.vP.Object.defineProperties(rq.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rq.prototype,"rendererBehaviors",void 0);_.e([_.X(),_.w("design:type",Object)],rq.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],rq.prototype,"focused",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("focused"),_.w("design:type",Object),_.w("design:paramtypes",[])],rq.prototype,"ariaSelected",null);_.e([_.Wy({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],rq);
_.r(rq,"yt-user-mention-suggestion-renderer",function(){if(UL0===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Lbj===void 0&&(Lbj=document.createElement("template"));var b=Lbj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);UL0=z}z=UL0;return z},{mode:2});var aT0;var VwI;var $y=function(){var z=_.q.apply(this,arguments)||this;z.focusedSuggestionIndex=-1;return z};
_.m($y,_.q);_.p=$y.prototype;_.p.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.p.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.p.setFocusedSuggestionIndex=function(z){!this.data||!this.data.suggestions||z<0||z>=this.data.suggestions.length||(this.focusedSuggestionIndex=z,z=this.getSuggestionId(z),this._setFocusedSuggestionId(z))};
_.p.advanceSuggestion=function(z){this.focusedSuggestionIndex===-1||z!==-1&&z!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+z),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.p.ensureSuggestionVisible=function(z){z=this.getSuggestionId(z);z=_.Hy(this.hostElement).querySelector("[id="+z+"]");z!=null&&(z.offsetTop<this.hostElement.scrollTop?z.scrollIntoView(!0):z.offsetTop+z.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&z.scrollIntoView(!1))};
_.p.getSuggestionId=function(z){return"user-mention-suggestion-"+z};
_.p.onSuggestionTap=function(z){var l=_.k(z.model.item,Oqu);this.ytRendererBehavior.logExplicitClick(l);_.gC(this.hostElement,"yt-user-mention-suggestion-selected",{data:l,index:z.model.index})};
_.p.onSuggestionMouseMove=function(z){z.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(z.model.index)};
_.p.isSuggestionFocused=function(z,l){return z===l};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("focused-suggestion-id-changed",this.focusedSuggestionId))};
$y.prototype.focusedSuggestionIdChangedForBinding=$y.prototype.focusedSuggestionIdChangedForBinding;$y.prototype.onDomChange=$y.prototype.onDomChange;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$y.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],$y.prototype,"focusedSuggestionIndex",void 0);_.e([_.X({readOnly:!0}),_.w("design:type",String)],$y.prototype,"focusedSuggestionId",void 0);
_.e([_.tP("dom-change"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$y.prototype,"onDomChange",null);_.e([_.By("focusedSuggestionId"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$y.prototype,"focusedSuggestionIdChangedForBinding",null);_.e([_.Wy({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],$y);
_.r($y,"yt-user-mention-suggestions-dropdown",function(){if(VwI===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;aT0===void 0&&(aT0=document.createElement("template"));var b=aT0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);VwI=z}z=VwI;return z},{mode:2});var es=function(){var z=_.q.apply(this,arguments)||this;z.suggestionsResponse=null;z.activeMention=null;z.selectionChangeListener=z.onSelectionChange.bind(z);z.handlesEnabled=_.C("enable_handles_in_mention_suggest_posts");z.handlesInMentionSuggestionsEnabled=_.C("handles_in_mention_suggest_posts");z.zeroPrefixMentionSuggestionEnabled=_.C("enable_zero_prefix_mention_suggestion_web");z.pendingQuery=null;z.flowNonce=null;return z};
_.m(es,_.q);_.p=es.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.p.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.p.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.p.hasSuggestions=function(z){return!!(z&&z.suggestions&&z.suggestions.length>0)};
_.p.onInput=function(){var z=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var l=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$11349_getText().slice(-1)===" ",b=this.activeMention.JSC$11349_getText().slice(-2,-1)===" ",v="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11349_getText().slice(-2,
-1))>=0;v=this.zeroPrefixMentionSuggestionEnabled&&v;if(this.activeMention.isCollapsed()||(l||b||v)&&I)this.cancelActiveMention();else{var M=this.activeMention.JSC$11349_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.z4(this,"requestSuggestions",function(){z.requestSuggestions(M)},100)}}}};
_.p.onServiceRequestSent=function(z){z.stopPropagation()};
_.p.onServiceRequestCompleted=function(z){z.stopPropagation();z=z.detail.data;z.query&&(!this.pendingQuery||this.pendingQuery!==z.query)||!this.zeroPrefixMentionSuggestionEnabled&&z.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=z,this.hasSuggestions(z)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.p.onServiceRequestError=function(z){z.stopPropagation()};
_.p.onUserMentionSuggestionSelected=function(z){this.selectSuggestion(z.detail.data,z.detail.index)};
_.p.onSelectionChange=function(){if(this.activeMention){var z=_.Cj(),l=this.activeMention.JSC$11349_containsRange(z);z=z&&this.containsHelper(this.dropdown,z.getContainer());l||z||this.cancelActiveMention()}};
_.p.containsHelper=function(z,l){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return z.contains(l);for(;l;){if(l===z)return!0;l=l instanceof ShadowRoot?l.host:l.parentNode}return!1};
_.p.maybeStartSuggest=function(){var z=_.Cj();if(z&&z.isCollapsed()){var l=z.JSC$11349_getStartNode(),I=z.JSC$11349_getStartOffset();if(l instanceof Text&&!(I<1)){var b=l.textContent;!(b=b&&b.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(b)<0||(this.activeMention=_.Ip(l,I-1,z.JSC$11349_getEndNode(),z.JSC$11349_getEndOffset()),this.flowNonce=oR(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.p.updateActiveMention=function(){if(this.activeMention){var z=_.Cj();z&&z.isCollapsed()&&(this.activeMention=_.Ip(this.activeMention.JSC$11349_getStartNode(),this.activeMention.JSC$11349_getStartOffset(),z.JSC$11349_getEndNode(),z.JSC$11349_getEndOffset()))}};
_.p.requestSuggestions=function(z){if(this.activeMention){var l={suggestions_query:z};this.pendingQuery=z;_.uJ(this.hostElement,[this.suggestionsEndpoint,l])}};
_.p.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()};
_.p.focusPreviousSuggestion=function(z){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),z.preventDefault())};
_.p.focusNextSuggestion=function(z){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),z.preventDefault())};
_.p.selectFocusedSuggestion=function(z){if(this.hasSuggestions(this.suggestionsResponse)){var l=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.k(l,Oqu)&&(this.selectSuggestion(_.k(l,Oqu),this.dropdown.focusedSuggestionIndex),z.preventDefault())}};
_.p.selectSuggestion=function(z,l){if(z){var I=this.activeMention;if(I){var b=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&z.handle?_.LN(b,"\u00a0\u2068@"+z.handle+"\u2069\u00a0"):this.handlesEnabled?_.LN(b,"\u00a0"+z.displayName+"\u00a0"):_.LN(b,"\u00a0@"+z.displayName+"\u00a0");nD(b,"/channel/"+z.channelId);b.classList.add("yt-formatted-string","yt-simple-endpoint");b.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$11349_removeContents();I.insertNode(b,!0);z=document.createTextNode(" ");
b.parentNode.insertBefore(z,b.nextSibling);window.getSelection().collapse(z,1);l={suggestionSelected:{suggestionIndex:l}};if(this.zeroPrefixMentionSuggestionEnabled){var v;l.suggestionSelected.isZeroPrefix=((v=this.suggestionsResponse)==null?void 0:v.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",l);this.cancelActiveMention();_.gC(this.hostElement,"yt-mention-inserted")}}};
_.p.getPositionTarget=function(z){return z&&z.getBrowserRangeObject()};
_.p.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.p.onFocusedSuggestionIdChanged=function(z){var l=_.b67(this.hostElement)[0];l&&(z.detail.value?l.setAttribute("aria-activedescendant",z.detail.value):l.removeAttribute("aria-activedescendant"))};
_.p.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.p.logGELEvent=function(z,l){z={eventType:z,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};l&&(z=Object.assign(z,l));_.cW("userMentionAutoCompleteBoxEvent",z)};
es.prototype.onDomChange=es.prototype.onDomChange;es.prototype.onUserMentionSuggestionSelected=es.prototype.onUserMentionSuggestionSelected;es.prototype.onServiceRequestError=es.prototype.onServiceRequestError;es.prototype.onServiceRequestCompleted=es.prototype.onServiceRequestCompleted;es.prototype.onServiceRequestSent=es.prototype.onServiceRequestSent;es.prototype.onInput=es.prototype.onInput;_.e([_.t(_.rB),_.w("design:type",Object)],es.prototype,"ironA11yKeysBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],es.prototype,"suggestionsEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],es.prototype,"suggestionsResponse",void 0);_.e([_.X(),_.w("design:type",Object)],es.prototype,"activeMention",void 0);_.e([_.qX("#dropdown"),_.w("design:type",Object)],es.prototype,"dropdown",void 0);_.e([_.qX("#iron-dropdown"),_.w("design:type",Object)],es.prototype,"ironDropdown",void 0);
_.e([_.tP("input"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],es.prototype,"onInput",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],es.prototype,"onServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],es.prototype,"onServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],es.prototype,"onServiceRequestError",null);_.e([_.tP("yt-user-mention-suggestion-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],es.prototype,"onUserMentionSuggestionSelected",null);
_.e([_.tP("dom-change"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],es.prototype,"onDomChange",null);_.e([_.Wy({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],es);
_.r(es,"yt-user-mention-autosuggest-input",function(){if(nn4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;WbI===void 0&&(WbI=document.createElement("template"));var b=WbI;I.call(l,b.content.cloneNode(!0),z.content.firstChild);nn4=z}z=nn4;return z},{mode:2});var wq=null;
_.hP({is:"ytd-commentbox",_template:function(){if(ruz!==void 0)return ruz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ruz=z},
behaviors:[_.S0Y.YtHostElementBehavior,_.rB,_.wl.YtActionHandlerBehavior,_.uh.YtComponentBehavior,_.Y$.YtRendererstamperBehavior,_.d0_.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(z,l){return _.Cc(z.entities,"aadcGuidelinesStateEntityPayload",l)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(z,l){return _.Cc(z.entities,"commentboxStateEntity",l)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.HL}},
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:_.C("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.C("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",_.KJ(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(z){this.fire(z?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(z){this.set("submitButtonDisabled",void 0);this.clear();z&&this.computeIsEmojiButtonDisplayed_(z)&&(z=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&z.updateEmojiCategories()},
observePrefilledImage_:function(z,l,I){this.isValidPrefilledImage_(z,l,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=l,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(z,l){this.isValidPrefilledVideo_(z,l)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(z){z&&z.pollData&&z.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(z.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Y4();this.focus()},
detached:function(){document.removeEventListener("tap",_.KJ(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(z){z=z.detail;z=z.isCustomEmoji?z.shortcuts[0]:z.emojiId;var l=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(l,z);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var z=_.Cj();if(z){z=z.getBrowserRangeObject();for(var l=z.commonAncestorContainer;l;){if(l===this.getEditableTextArea_())return z;l=l.parentNode}}z=this.getEditableTextArea_();z=_.lX(z,z.childNodes.length);z.select();return z.getBrowserRangeObject()},
insertTextWithEmojis_:function(z,l,I){(l=this.emojiManager.createDocumentFragment(l,!0,!1,I===void 0?!0:I))&&l.childNodes.length!==0&&(z.collapsed||z.deleteContents(),I=l.lastChild,z.insertNode(l),_.MgI(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var z=_.Cj();if(z){var l=z.JSC$11349_getStartNode(),I=z.JSC$11349_getEndNode();if(YPQ(l)&&YPQ(I)){var b=z.JSC$11349_getStartOffset(),v;if(_.CO&&l.nodeType===Node.ELEMENT_NODE&&(v=_.MWj(l)))_.lX(v,0).select();else{v=Ht(l)?l:_.A7(l,Ht);var M=Ht(I)?I:_.A7(I,Ht);if(v||M)if(z.isCollapsed()){if(l.nodeType===Node.TEXT_NODE){z=!0;b===l.length&&(z=!1);if(wq==="end"||wq==="right")z=!1;l=l.parentNode;z=[].concat(_.ht(l.parentNode.childNodes)).indexOf(l)+(z?0:1);_.lX(l.parentNode,
z).select()}}else v?v.previousSibling&&v.previousSibling.length>0?_.Ip(I,z.JSC$11349_getEndOffset(),v.previousSibling,v.previousSibling.length-1).select():(l=document.createTextNode("\u200b"),v.parentNode.insertBefore(l,v),_.Ip(I,z.JSC$11349_getEndOffset(),l,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.Ip(l,z.JSC$11349_getStartOffset(),M.nextSibling,1).select():(I=document.createTextNode("\u200b"),M.parentNode.insertBefore(I,M.nextSibling),_.Ip(l,z.JSC$11349_getStartOffset(),I,I.length).select()));
wq=null}}else wq=null}else wq=null},
leftKeyPressed_:function(){wq="left"},
rightKeyPressed_:function(){wq="right"},
endKeyPressed_:function(){wq="end"},
maybeDeleteChip_:function(){var z=Pk1(!0);if(z){var l=_.Cj(),I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();_.a5(I,l,z,z.childNodes.length).select()}},
maybeBackspaceChip_:function(){var z=Pk1(!1);if(z){var l=_.Cj(),I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();_.a5(I,l,z,0).select()}},
maybeBackspaceChipWordMode_:function(z){var l=_.Cj();if(l.isCollapsed()){var I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();var b=h95(I,l,!0);b&&(_.a5(I,l,b,0).select(),document.execCommand("delete"),z.preventDefault(),z.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(z){var l=_.Cj();if(l.isCollapsed()){var I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();var b=h95(I,l,!1);b&&(_.a5(I,l,b,b.childNodes.length).select(),document.execCommand("delete"),z.preventDefault(),z.stopImmediatePropagation())}},
onTap_:function(z){if(!z.defaultPrevented&&(z.currentTarget.tagName==="YTD-COMMENTBOX"&&Ht(z.target)&&z.preventDefault(),this.isEmojiPickerDisplayed)){var l=this.$$("#emojis"),I=this.$$("#emoji-button"),b=this.getEditableTextArea_();if((z=z.path?z.path:z.composedPath&&z.composedPath())&&!z.includes(l)&&!z.includes(b)&&!z.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(z,l,I){return z==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&l!==void 0&&l.encryptedBlobId!==null&&l.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(z,l){return z==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!l&&!!l.videoRenderer&&!!l.videoRenderer.videoId},
isValidPrefilledAttachment_:function(z,l,I){return this.isValidPrefilledImage_(z,l,I)||this.isValidPrefilledVideo_(z,I)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.C("enable_multi_image_post_creation")){var z=this.$$("ytd-backstage-multi-image-select-renderer");z&&z.hasImages()&&z.cancel()}else(z=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&z.cancel();(z=this.$["poll-attachment"])&&this.hasPoll_&&z.clearPollOptions();(z=this.$["image-poll-attachment"])&&this.hasImagePoll_&&z.resetPollOptions();(z=this.$["quiz-attachment"])&&this.hasQuiz_&&z.resetQuizOptions();
(z=this.$["video-link-attachment"])&&this.hasVideo_&&z.cancel();(z=this.$["access-restrictions-selector"].firstElementChild)&&z.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 _.Hy(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Hy(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(z,l){z=c_7(z,this.emojiManager,l).cloneNode(!0);for(l=z.firstChild;l;)if(l.nodeType!==1)l=l.nextSibling;else switch(l.tagName){case "BR":var I=_.$A();_.ESu(I,l);l=I.nextSibling;break;case "DIV":(I=l.lastChild)&&l.nextSibling&&_.Wc(_.$A(),I);l.previousSibling&&(l.previousSibling.nodeType===1||l.previousSibling.nodeType===3&&!l.previousSibling.textContent.endsWith("\n"))&&_.A5(_.$A(),l);I&&I.nodeName==="BR"&&_.Bl(I);I=l;l.hasChildNodes()?(l=l.firstChild,
_.uqn(I)):(l=l.nextSibling,_.Bl(I));break;default:l=l.nextSibling}return sTk(z)},
onAddImageError_:function(z){z.stopPropagation();this.errorMessage_=_.lc(z.detail)},
setTextAreaValue_:function(z){z||(z="");var l=this.getEditableFormattedString_();l.text="";this.getEditableTextArea_().innerText="";typeof z==="string"&&(z={runs:[{text:z}]});l.text=z},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();wq=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var z=this.getEditableTextArea_();z&&(_.lX(z,z.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.sZ("HTML_DIR")==="rtl"){var z=this.getEditableTextArea_(),l=this.getTextAreaValue()!==""?"auto":"rtl";z.setAttribute("dir",l)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var z;return cgt((z=this.$["quiz-attachment"])==null?void 0:z.getExplanationText())||cgt(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var z=null;if(this.isEmojiButtonDisplayed){var l=this.getInputRange_();l&&(z=this.emojiInput.retrieveTextBeforeRange(l))}this.insertText_(z,!0);this.updateCharCount_();this.setSubmitButton_();z=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=z.scrollHeight>z.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var z=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:z})},
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(z){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(z)},
onPasteEmoji_:function(z){z.preventDefault();z.stopImmediatePropagation();z=z.clipboardData.getData("text/plain");this.insertText_(z,!1,!1)},
insertText_:function(z,l,I){l=l===void 0?!1:l;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&z){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(l&&this.emojiInput.offsetStartOfRangeBy(b,z.length),this.insertTextWithEmojis_(b,z,I),T_1(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,z),this.updateSuggestionOffset_(b)))}},
setSubmitButton_:function(){if(this.data){var z=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",l=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(z||l){var I=this.getTextAreaValue().trim();l=I===this.previousText_;I=!I||this.aboveCharLimit_;z&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=this.aboveCharLimit_);this.submitButtonDisabled=
l||I||!this.getTextLength();z&&_.C("enable_post_scheduling")&&(this.submitButtonDisabled=l&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.ID,computeCreationBoxClass_:function(z){return z?"focused":"not-focused"},
computeFooterMessageClass_:function(z,l){return l?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(z,l){return l?l:z},
computeFooterMessageHidden_:function(z,l){return!l&&!z},
computePlaceholderText_:function(z,l,I){return(I==="video"||I==="image")&&(z==null?0:z.prefilledPlaceholderText)?z==null?void 0:z.prefilledPlaceholderText:l==="poll"||l==="image-poll"?z==null?void 0:z.pollPostPlaceholderText:l==="quiz"?z==null?void 0:z.quizPostPlaceholderText:l==="image"?z==null?void 0:z.imagePostPlaceholderText:z==null?void 0:z.placeholderText},
computeHideAttachmentButtons_:function(z,l,I,b){return z===void 0?!1:b&&this.getSimpleString(b)===this.getSimpleString(z.rateLimitErrorMessage)?!0:l!=="none"||I!=="none"||!z.videoLinkButton&&!z.pollButton&&!z.imagePollButton&&!z.quizButton&&!z.imageButton},
computeHideDismissableAttachment_:function(z){return z!=="image"&&z!=="video"},
computeHasVideo_:function(z){return z==="video"},
computeHasImage_:function(z){return z==="image"},
computeHasPoll_:function(z){return z==="poll"},
computeHasImagePoll_:function(z){return z==="image-poll"},
computeHasQuiz_:function(z){return z==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(z){return z&&z.backstageAttachment?z.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!z.backstageAttachment.quizRenderer&&!z.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(z){if(this.isValidPrefilledAttachment_(z.purpose,z.prefilledImageData,z.backstageAttachment))return z.backstageAttachment},
computeEditAttachment_:function(z){if(this.computePrefilledContent_(z)===void 0)return z.backstageAttachment},
computeAuthorThumbnailDimension_:function(z,l){return z&&!l?24:40},
computeImageUploadEndpoint_:function(z){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",z)},
computeRateLimitErrorCommands_:function(z){var l,I;return z==null?void 0:(l=z.advancedTierFeatures)==null?void 0:(I=l.rateLimit)==null?void 0:I.rateLimitCommands},
computeIsBackstageComment_:function(z){return!(!z||z!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(z){return this.get("submitButton.buttonRenderer.serviceEndpoint",z)||this.get("replyButton.buttonRenderer.serviceEndpoint",z)||this.get("postButton.buttonRenderer.serviceEndpoint",z)},
computeSubmitButtonOverride:function(){if(_.C("web_modern_buttons")){var z,l;return{segmentedPosition:this.dropdownSchedulePanel_||!((z=this.data)==null?0:(l=z.postOptionsMenu)==null?0:l.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.C("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(z,l){z=this.get("submitButton.buttonRenderer",z)||this.get("replyButton.buttonRenderer",z)||this.get("postButton.buttonRenderer",z);l&&(z=l);z&&(z=Object.assign({},z),z.serviceEndpoint=void 0,z.isDisabled=this.submitButtonDisabled);return z},
computeHasExternalLinksAccess_:function(z){if(_.C("enable_rfa_external_links")){var l,I,b;return(b=z==null?void 0:(l=z.advancedTierFeatures)==null?void 0:(I=l.externalLinks)==null?void 0:I.allowExternalLinks)!=null?b:!0}return!0},
computeIsEmojiButtonDisplayed_:function(z){return z.emojiButton&&z.emojiPicker&&z.emojiPicker.emojiPickerRenderer&&z.emojiPicker.emojiPickerRenderer.categories?z.emojiPicker.emojiPickerRenderer.categories.find(function(l){return l.emojiPickerCategoryRenderer?l.emojiPickerCategoryRenderer.emojiIds&&l.emojiPickerCategoryRenderer.emojiIds.length>0:l.emojiPickerUpsellCategoryRenderer?l.emojiPickerUpsellCategoryRenderer.emojis&&l.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(z){return z.charLimit?z.charLimit:null},
computeDropdownSchedulingPanel_:function(z,l){if(z==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&l)return l},
computeInlineSchedulingPanel_:function(z,l){if(z==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&l)return l},
computeHideAuthorThumbnail_:function(z,l){return z||this.computeUseIdentityChip_(l)},
computeHideIdentityChipRenderer_:function(z,l){return z||!this.computeUseIdentityChip_(l)},
computeUseIdentityChip_:function(z){return!!z&&!!z.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(z){var l,I,b,v;(z==null?0:(l=z.detail)==null?0:(I=l.endpoint)==null?0:I.ypcGetOffersEndpoint)||(z==null?0:(b=z.detail)==null?0:(v=b.endpoint)==null?0:v.ypcOffersEndpoint)?(z.stopPropagation(),_.uJ(this,[z.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",z)&&(z.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(z){this.addedAttachment="video";this.selectedVideoId_=z.detail.videoId},
commentboxStateEntityChanged_:function(z){var l=this;(z==null?void 0:z.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(z==null?void 0:z.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){l.focus()})},
onYtServiceRequestSent_:function(z,l){if(l.actions)for(z=_.D(l.actions),l=z.next();!l.done;l=z.next())l.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(z){this.isLoading=!1;var l=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",z),I,b,v,M=z==null?void 0:(I=z.detail)==null?void 0:(b=I.data)==null?void 0:(v=b.actionResult)==null?void 0:v.commentboxStateEntityKey;if(l)this.errorMessage_=l;else if(M){var x;this.dismissData_=z==null?void 0:(x=z.detail)==null?void 0:x.data;this.commentboxStateKey_=M}else{this.clear();var g;this.fire("yt-commentbox-dismiss",z==null?void 0:(g=z.detail)==
null?void 0:g.data)}},
onYtServiceRequestError_:function(z){z.stopPropagation();this.isLoading=!1;var l,I;if(((l=this.data)==null?void 0:l.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(l=this.get("detail.error.args",z)||[],l.length>1&&l[1].message){this.handlePostsServiceRequestError_(l[1].message);return}(z=this.get("detail.error.message",z))?this.errorMessage_=this.data.errorMessage||_.lc(z):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(z){if(_.C("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var l=_.D(this.rateLimitErrorCommands),I=l.next();!I.done;I=l.next())if(I=I.value,I.errorLabel===z){_.tx(I.command,this.hostElement);return}this.errorMessage_=_.lc(z)},
submitIfNotBackstagePost_:function(z){if(!this.isBackstagePost)this.onSubmit_(z)},
onSubmit_:function(z){var l=this,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y;return _.O(function(c){switch(c.nextAddress){case 1:z.stopPropagation();if(!l.serviceEndpoint||!l.isValidInput_())return c.return();if(l.shouldShowPostAadcNotice_())return l.showPostAadcNotice_(),c.return();if(l.shouldShowCommentAadcNotice_())return l.showCommentAadcNotice_(),c.return();if(!(l.$$("ytd-backstage-multi-image-select-renderer")&&l.hasImage_&&_.C("enable_multi_image_post_creation"))){c.jumpTo(2);break}I=l.$$("ytd-backstage-multi-image-select-renderer");
return c.yield(I.getAllUploadStatuses(),3);case 3:b=c.yieldResult;if(!b)return c.return();v=_.D(b);for(M=v.next();!M.done;M=v.next())if(x=M.value,x.encryptedBlobId===void 0)return l.isLoading=!1,G=g=void 0,l.errorMessage_=(G=(g=l.imageUploadEndpoint_)==null?void 0:g.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?G:null,c.return();return c.return(l.submitForm_(void 0,void 0,void 0,void 0,I.images,l.taggedVideoId_));case 2:if(!l.hasImagePoll_||!l.$["image-poll-attachment"]){c.jumpTo(4);
break}return c.yield(l.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:u=c.yieldResult;if(!u)return c.return();Z=_.D(u);for(H=Z.next();!H.done;H=Z.next())if(y=H.value,!y.encryptedBlobId)return l.isLoading=!1,f=void 0,l.errorMessage_=(f=l.data.errorMessage)!=null?f:null,c.return();case 4:F=(R=l.$$("ytd-backstage-image-select-renderer"))&&R.uploadPromise(),Y=l.getSharedPostId_(),F?F.then(function(){l.submitForm_.apply(l,_.ht(_.AT.apply(0,arguments)))}).catch(function(d){l.isLoading=!1;
l.errorMessage_=_.lc(d.message)}):l.selectedVideoId_?l.submitForm_(void 0,l.selectedVideoId_):l.prefilledAttachment_==="image"?l.submitForm_(l.prefilledImageData_.encryptedBlobId,void 0,void 0,l.prefilledImageData_.sourceExternalVideoId,void 0,l.taggedVideoId_):l.prefilledAttachment_==="video"?l.submitForm_(void 0,l.data.backstageAttachment.videoRenderer.videoId):Y?l.submitForm_(void 0,void 0,Y):l.taggedVideoId_!==void 0?l.submitForm_(void 0,void 0,void 0,void 0,void 0,l.taggedVideoId_):l.submitForm_(),
_.qe(c)}})},
openSchedulingPanel:function(z){z&&z.scheduleButton&&z.scheduleButton.buttonRenderer&&(this.scheduleButton_=z.scheduleButton.buttonRenderer);z&&z.dateTimePicker&&this.set("data.schedulingDateTimePicker",z.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(z){z.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(z){z.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(z){z.stopPropagation();z.detail.alertMessage&&(this.alertMessage_=z.detail.alertMessage)},
onImageSelected_:function(z){z.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(z){z.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(z){z.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(z.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(z){z.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(z){var l=this.$["video-link-attachment"];l&&l.onLaunchVideoPicker(z)},
onAttachmentDismiss_:function(z){z.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"&&_.C("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.C("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 z;if(this.addedAttachment==="image-poll"&&((z=this.$["image-poll-attachment"])==null||!z.isValid()))return!1;var l;if(this.addedAttachment==="quiz"&&((l=this.$["quiz-attachment"])==null||!l.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;z=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(z=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")z=!0;return z||!!this.getTextAreaValue().trim()},
submitForm_:function(z,l,I,b,v,M){var x=this.getTextAreaValue().trim(),g={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&x===this.previousText_&&(x=void 0);x!==void 0&&(g.comment_text=x);this.isLoading=!0;M!=void 0&&(g.tagged_video_id=M);z?(g.image_blob_id=z,this.imagePreviewCoordinates_&&(g.image_preview_coordinates=this.imagePreviewCoordinates_)):l?g.attached_video_id=l:I?g.shared_post_id=I:v&&v.length>0&&(g.images_data=v.map(function(G){return{encryptedBlobId:G.encryptedBlobId,
previewCoordinates:G.previewCoordinates}}));
b&&(g.source_video_id=b);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(g.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(g.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(g.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.C("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(g.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.C("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(g.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.uJ(this,[this.serviceEndpoint,g])},
onIsInputFocusChanged_:function(z,l){z?this.fire("yt-autonav-pause-focus"):l!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(z){var l=this.getEditableTextArea_();[].concat(_.ht(z.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(b){l.appendChild(document.createTextNode(b))})});
z.preventDefault()},
preventDefault_:function(z){z.preventDefault()},
onSuggestionInsert_:function(z){this.insertTextWithEmojis_(z.detail.range,z.detail.text)},
onEmojiSuggestionClick_:function(z){this.emojiInput.insertSuggestion(z.detail)},
computeSubmitButtonClass_:function(z,l){return!l||z?"":"with-options"},
updateSuggestionOffset_:function(z){if(this.emojiInput&&_.Hy(this.emojiInput).querySelector("#dropdown")){var l=this.getEditableTextArea_().getBoundingClientRect().bottom,I=z.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(l-I)+5;l=this.getEditableTextArea_().getBoundingClientRect().left;z=z.getBoundingClientRect().left-l;_.Hy(this.emojiInput).querySelector("#dropdown").style.marginLeft=z+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(z){if(_.C("enable_post_scheduling")&&this.data&&this.data.purpose){z=z.detail;if(Math.floor(Date.now()/1E3)>=z)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var l=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(l)||l!==z?this.scheduledPublishTimeSec_=z:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=z;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var z=["image-button","image-poll-button","poll-button"];_.C("enable_quiz_creation")&&z.push("quiz-button");_.C("auto_convert_posts_video_tag")||z.push("video-link-button");return z},
getButtonRenderer:function(z,l){if(z)switch(l){case "video-link-button":var I;return((I=z.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var b;return((b=z.imageButton)==null?void 0:b.buttonRenderer)||void 0;case "poll-button":var v;return((v=z.pollButton)==null?void 0:v.buttonRenderer)||void 0;case "image-poll-button":var M;return((M=z.imagePollButton)==null?void 0:M.buttonRenderer)||void 0;case "quiz-button":var x;return((x=z.quizButton)==null?void 0:x.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var z;return(z=this.data)==null||!z.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var z,l;return!((z=this.data)==null||!z.openAadcDialog)&&!((l=this.aadcGuidelinesState_)==null||!l.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.sZ("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var z;((z=this.data)==null?0:z.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$8("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(z){z.clickTrackingParams&&_.iY().clickCommand(z);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Gb(this,"yt-close-popup-action")},
onHideIdentityChip:function(z){var l;this.set("data.placeholderText",(l=z.hideIdentityChipAction)==null?void 0:l.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Aq=function(){var z=_.q.apply(this,arguments)||this;z.isOpen=!1;z.modern=_.C("web_modern_buttons");z.roundedContainer=!0;z.dropdownButtonOverride=_.C("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;z.inPopupContainer=!1;z.isCommentboxLoading=!1;var l=["image-button","image-poll-button","poll-button"];_.C("enable_quiz_creation")&&l.push("quiz-button");_.C("auto_convert_posts_video_tag")||l.push("video-link-button");z.attachmentButtonIds=l;z.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 z};
_.m(Aq,_.q);_.p=Aq.prototype;_.p.computeButtonOverride=function(){var z;return((z=this.data)==null?0:z.postOptionsMenu)&&_.C("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.p.configureRendererStamper=function(){var z={"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]]"}}}}};_.C("auto_convert_posts_video_tag")||(z["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return z};
_.p.ready=function(){var z=this,l=_.Hy(this.hostElement).querySelector("#placeholder-area"),I=function(b){z.onOpen(b)};
l.addEventListener("tap",I);l.addEventListener("keypress",I)};
_.p.showButtonEduTooltip=function(){var z,l,I,b,v,M,x;if(_.C("enable_quiz_creation")&&((z=this.data)==null?0:(l=z.quizButton)==null?0:(I=l.buttonRenderer)==null?0:(b=I.hint)==null?0:(v=b.hintRenderer)==null?0:(M=v.content)==null?0:(x=M.bubbleHintRenderer)==null?0:x.text)&&(_.Tv.getInstance(),z=c2(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(z==null?void 0:
z.length)>0)){this.ytComponentBehavior.resolveCommand(z[0],{form:{element:this.quizButton}});return}var g;if((g=this.data)==null?0:g.imagePollButtonTooltip)if(_.Tv.getInstance(),g=c2(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(g==null?void 0:g.length)>0){this.ytComponentBehavior.resolveCommand(g[0],{form:{element:this.imagePollButton}});return}var G;_.C("enable_multi_image_post_creation")&&
((G=this.data)==null?0:G.multiImageButtonTooltip)&&(_.Tv.getInstance(),G=c2(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(G==null?void 0:G.length)>0&&this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.imageButton}}))};
_.p.onCreatePollAction=function(z){_.k(z,eo4)&&(this.JSC$15805_commentbox.addedAttachment="poll",this.openDialog())};
_.p.onAddVideoLinkAction=function(z){if(_.k(z,ho_))this.JSC$15805_commentbox.onAddVideoLink(z)};
_.p.onShowSchedulingPanelCommand=function(z){(z=_.k(z,E9_))&&this.openSchedulingPanel(z)};
_.p.onCreateImagePollCommand=function(z){_.k(z,Maj)&&(this.JSC$15805_commentbox.openImagePollComponent(),this.openDialog())};
_.p.onCreateQuizCommand=function(z){_.k(z,pf_)&&(this.JSC$15805_commentbox.openQuizComponent(),this.openDialog())};
_.p.openSchedulingPanel=function(z){_.C("enable_post_scheduling")&&(this.openDialog(),this.JSC$15805_commentbox.openSchedulingPanel(z))};
_.p.onCreateCommentAction=function(z){this.get("createCommentAction.contents",z)&&(this.JSC$15805_commentbox.clear(),this.closeDialog())};
_.p.onOpen=function(z){z instanceof KeyboardEvent&&z.type==="keypress"&&z.keyCode!==13&&z.keyCode!==32||(this.data.prepareAccountEndpoint?_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.closeDialog()};
_.p.onYtCommentboxLoadingStart=function(z){z.stopPropagation();this.isCommentboxLoading=!0};
_.p.onYtCommentboxLoadingEnd=function(z){z.stopPropagation();this.isCommentboxLoading=!1};
_.p.onYtVideoLinkButtonCancel=function(z){z.stopPropagation();this.onOpen(z)};
_.p.onYtVideoLinkSelected=function(z){z.stopPropagation();this.onOpen(z)};
_.p.onIronSelect=function(z){z.stopPropagation();z.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=z.detail.item.value&&(this.accessRestriction?(this.accessRestriction=z.detail.item.value,this.onOpen(z)):this.accessRestriction=z.detail.item.value)};
_.p.onYtNavigate=function(z){this.get("detail.endpoint.backstageImageUploadEndpoint",z)&&(this.JSC$15805_commentbox.addedAttachment="image",this.JSC$15805_commentbox.submitButtonDisabled=!0,this.onOpen(z))};
_.p.onRequestSent=function(z){if(_.C("web_button_rework"))for(var l=_.D(z.detail),I=l.next();!I.done;I=l.next())_.k(I.value,yd_)&&(this.JSC$15805_commentbox.addedAttachment="image",this.JSC$15805_commentbox.submitButtonDisabled=!0,this.onOpen(z))};
_.p.openDialog=function(){this.JSC$15805_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15805_commentbox.focus()};
_.p.onPopupClosed=function(){_.Tv.getInstance()};
_.p.computeCreationDisabled=function(z){return!!z};
_.p.computeIsCreationDialog=function(z){return!!z&&z==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.p.computeDisabledPostButton=function(z){if(!z)return null;z.isDisabled=!0;return z};
_.p.computeIsCreationDialogWithHeader=function(z){return!this.inPopupContainer&&!!z&&!!z.authorText&&z.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.p.computeIsHeaderHidden=function(z,l){return!z||l};
_.p.computeDropdownRendererClasses=function(z){return z?["text-secondary-style"]:[]};
_.p.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var z=_.Hy(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;z&&z.reset()};
Aq.prototype.onPopupClosed=Aq.prototype.onPopupClosed;Aq.prototype.onRequestSent=Aq.prototype.onRequestSent;Aq.prototype.onYtNavigate=Aq.prototype.onYtNavigate;Aq.prototype.onIronSelect=Aq.prototype.onIronSelect;Aq.prototype.onYtVideoLinkSelected=Aq.prototype.onYtVideoLinkSelected;Aq.prototype.onYtVideoLinkButtonCancel=Aq.prototype.onYtVideoLinkButtonCancel;Aq.prototype.onYtCommentboxLoadingEnd=Aq.prototype.onYtCommentboxLoadingEnd;Aq.prototype.onYtCommentboxLoadingStart=Aq.prototype.onYtCommentboxLoadingStart;
Aq.prototype.onYtCommentboxDismiss=Aq.prototype.onYtCommentboxDismiss;Aq.prototype.showButtonEduTooltip=Aq.prototype.showButtonEduTooltip;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Aq.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Aq.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Aq.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Aq.prototype,"isOpen",void 0);_.e([_.X({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],Aq.prototype,"buttonOverride",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Aq.prototype,"modern",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Aq.prototype,"roundedContainer",void 0);_.e([_.X(),_.w("design:type",Object)],Aq.prototype,"dropdownButtonOverride",void 0);_.e([_.X({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.w("design:type",Boolean)],Aq.prototype,"creationDisabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Aq.prototype,"enableCreationBox",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.w("design:type",Boolean)],Aq.prototype,"isCreationDialog",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Aq.prototype,"inPopupContainer",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.w("design:type",Boolean)],Aq.prototype,"isCreationDialogWithHeader",void 0);_.e([_.X(),_.w("design:type",Object)],Aq.prototype,"accessRestriction",void 0);
_.e([_.X({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.w("design:type",Array)],Aq.prototype,"dropdownRendererClasses",void 0);_.e([_.X(),_.w("design:type",Object)],Aq.prototype,"isCommentboxLoading",void 0);_.e([_.X(),_.w("design:type",Array)],Aq.prototype,"attachmentButtonIds",void 0);_.e([_.qX("#image-button"),_.w("design:type",HTMLElement)],Aq.prototype,"imageButton",void 0);
_.e([_.qX("#image-poll-button"),_.w("design:type",HTMLElement)],Aq.prototype,"imagePollButton",void 0);_.e([_.qX("#quiz-button"),_.w("design:type",HTMLElement)],Aq.prototype,"quizButton",void 0);_.e([_.qX("#commentbox"),_.w("design:type",Object)],Aq.prototype,"JSC$15805_commentbox",void 0);_.e([_.By("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Aq.prototype,"showButtonEduTooltip",null);
_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onYtCommentboxDismiss",null);_.e([_.tP("yt-commentbox-loading-start"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onYtCommentboxLoadingStart",null);
_.e([_.tP("yt-commentbox-loading-end"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onYtCommentboxLoadingEnd",null);_.e([_.tP("yt-video-link-button-cancel"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onYtVideoLinkButtonCancel",null);
_.e([_.tP("yt-video-link-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onYtVideoLinkSelected",null);_.e([_.tP("iron-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onIronSelect",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onYtNavigate",null);
_.e([_.tP("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Aq.prototype,"onRequestSent",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Aq.prototype,"onPopupClosed",null);_.e([_.S({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Aq);
_.r(Aq,"ytd-backstage-post-dialog-renderer",function(){if(CBA!==void 0)return CBA;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div 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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return CBA=z},{mode:1});var j4_;var Juu;var We=function(){return _.q.apply(this,arguments)||this};
_.m(We,_.q);_.p=We.prototype;_.p.computeHeartButtonStyle=function(z){return(z==null?0:z.styleType)?z.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onYtButtonTap=function(){if(this.data.isEnabled){var z=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(z=this.getEndpoint(z))&&_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})}else(z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(z)};
_.p.toggle=function(z){this.set("data.isHearted",z!==void 0?z:!this.data.isHearted)};
_.p.getEndpoint=function(z){var l,I=(l=this.data)==null?void 0:l.heartEndpoint,b;l=(b=this.data)==null?void 0:b.unheartEndpoint;if(I&&l)return z?l:I};
_.p.computeButtonAccessibility=function(z,l){var I,b,v=z==null?void 0:(I=z.heartedAccessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label,M,x;z=z==null?void 0:(M=z.unheartedAccessibility)==null?void 0:(x=M.accessibilityData)==null?void 0:x.label;return l?v:z};
_.vP.Object.defineProperties(We.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 z;return _.C("kevlar_system_icons")&&!((z=this.data)==null||!z.isHearted)}}});
We.prototype.onYtButtonTap=We.prototype.onYtButtonTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],We.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],We.prototype,"data",void 0);_.e([_.B("data.isHearted"),_.w("design:type",Object),_.w("design:paramtypes",[])],We.prototype,"heartTooltip",null);
_.e([_.B("data.isHearted"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],We.prototype,"iconFilled",null);_.e([_.X({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.w("design:type",String)],We.prototype,"buttonAccessibility",void 0);_.e([_.X({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],We.prototype,"heartButtonStyle",void 0);
_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],We.prototype,"onYtButtonTap",null);_.e([_.S({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],We);
_.r(We,"ytd-creator-heart-renderer",function(){if(Juu!==void 0)return Juu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Juu=z},{mode:1});var nz=function(){var z=_.q.apply(this,arguments)||this;z.hasCreatorReply=!1;z.buttonOverrides={size:"S",iconPosition:"icon-only"};z.replyButtonOverrides={size:"S",type:"text"};z.forceIconButton=!_.C("web_modern_buttons");z.modern=_.C("web_modern_buttons");z.buttonTooltipPosition="bottom";z.systemIcons=_.C("kevlar_system_icons");z.replyDialog=null;return z};
_.m(nz,_.q);_.p=nz.prototype;
_.p.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]]"}}}}}};
_.p.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.p.dataChange=function(){this.replyDialog&&_.Hy(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var z,l,I;this.isLiked=this.systemIcons&&!!((z=this.data)==null?0:(l=z.likeButton)==null?0:(I=l.toggleButtonRenderer)==null?0:I.isToggled)};
_.p.computeShowVoteCountBeginning=function(z,l){return z===void 0||l===void 0?!0:z.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.p.computeShowVoteCountEnd=function(z,l){return z===void 0||l===void 0?!0:z.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.p.computeShowCommentCount=function(z,l){return z===void 0||l===void 0?!0:z.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.p.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.p.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.p.showReplyDialog=function(z){z&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Hy(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=z,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.p.onRequestSent=function(z){if(_.C("web_button_rework")){z=_.D(z.detail);for(var l=z.next();!l.done;l=z.next())(l=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",l.value))&&this.showReplyDialog(l)}};
_.p.onYtNavigate=function(z){var l,I;(z=(l=_.k(z.detail.endpoint,_.CA_))==null?void 0:(I=l.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(z)};
_.p.onYtServiceRequestSent=function(z,l){z.stopPropagation();if(l.actions)for(z=0;z<l.actions.length;z++){var I=_.k(l.actions[z],Ug0);I&&this.handleUpdateCommentVoteAction(I)}};
_.p.handleUpdateCommentVoteAction=function(z){this.voteCount=z.voteCount||_.lc("0");z.voteStatus==="LIKE"?this.JSC$15816_ytdDislikeToggleButtonRenderer.toggle(!1):z.voteStatus==="DISLIKE"?this.JSC$15816_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15816_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15816_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.p.computeReplyButtonHidden=function(z){return z};
_.p.computeReplyButtonBeginning=function(z){return(z==null?0:z.replyButton)&&z.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?z.replyButton:void 0};
_.p.computeReplyButtonEnd=function(z){return(z==null?0:z.replyButton)&&z.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?z.replyButton:void 0};
_.p.computeActionButtonStyle=function(z){return(z==null?0:z.style)?z.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.p.onYtToggleButton=function(z){var l,I;this.isLiked=this.systemIcons&&!!((l=z.detail)==null?0:(I=l.actions)==null?0:I.like)};
nz.prototype.onYtToggleButton=nz.prototype.onYtToggleButton;nz.prototype.onButtonTooltipPositionChanged=nz.prototype.onButtonTooltipPositionChanged;nz.prototype.onYtServiceRequestSent=nz.prototype.onYtServiceRequestSent;nz.prototype.onYtNavigate=nz.prototype.onYtNavigate;nz.prototype.onRequestSent=nz.prototype.onRequestSent;nz.prototype.onYtCommentboxDismiss=nz.prototype.onYtCommentboxDismiss;nz.prototype.dataChange=nz.prototype.dataChange;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"voteCount",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"commentCount",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"replyThumbnail",void 0);
_.e([_.X(),_.w("design:type",Object)],nz.prototype,"hasCreatorReply",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],nz.prototype,"enableCreationBox",void 0);_.e([_.X({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],nz.prototype,"actionButtonsStyle",void 0);_.e([_.X({computed:"computeReplyButtonBeginning(data)"}),_.w("design:type",Object)],nz.prototype,"replyButtonBeginning",void 0);
_.e([_.X({computed:"computeReplyButtonEnd(data)"}),_.w("design:type",Object)],nz.prototype,"replyButtonEnd",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"buttonOverrides",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"replyButtonOverrides",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"forceIconButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],nz.prototype,"useCommentIcon",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],nz.prototype,"modern",void 0);_.e([_.X(),_.w("design:type",Object)],nz.prototype,"buttonTooltipPosition",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],nz.prototype,"systemIcons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],nz.prototype,"isLiked",void 0);_.e([_.qX("ytd-button-renderer"),_.w("design:type",Object)],nz.prototype,"ytdReplyButtonRenderer",void 0);
_.e([_.qX("#like-button"),_.w("design:type",Object)],nz.prototype,"JSC$15816_ytdLikeToggleButtonRenderer",void 0);_.e([_.qX("#dislike-button"),_.w("design:type",Object)],nz.prototype,"JSC$15816_ytdDislikeToggleButtonRenderer",void 0);_.e([_.qX("#reply-dialog"),_.w("design:type",HTMLElement)],nz.prototype,"replyDialogElement",void 0);_.e([_.qX("#reply-button"),_.w("design:type",HTMLElement)],nz.prototype,"replyButtonElement",void 0);
_.e([_.qX("#reply-button-end"),_.w("design:type",HTMLElement)],nz.prototype,"replyButtonEndElement",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nz.prototype,"dataChange",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],nz.prototype,"onYtCommentboxDismiss",null);
_.e([_.tP("yt-service-request-sent-button-renderer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],nz.prototype,"onRequestSent",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],nz.prototype,"onYtNavigate",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],nz.prototype,"onYtServiceRequestSent",null);_.e([_.By("buttonTooltipPosition"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nz.prototype,"onButtonTooltipPositionChanged",null);
_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],nz.prototype,"onYtToggleButton",null);_.e([_.S({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],nz);
_.r(nz,"ytd-comment-action-buttons-renderer",function(){if(j4_!==void 0)return j4_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return j4_=z},{mode:1});var z2I;var Lz=function(){return _.q.apply(this,arguments)||this};
_.m(Lz,_.q);Lz.prototype.focus=function(){_.Hy(this.hostElement).querySelector("#commentbox").focus()};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Lz.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Lz.prototype,"zeroStepChannelCreationRenderer",void 0);_.e([_.S({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Lz);
_.r(Lz,"ytd-comment-dialog-renderer",function(){if(z2I!==void 0)return z2I;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return z2I=z},{mode:1});var lBw;var U$=function(){var z=_.q.apply(this,arguments)||this;z.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.C("enable_web_delhi_icons")};z.replyButtonOverrides={size:"S",type:"text"};return z};
_.m(U$,_.q);_.p=U$.prototype;_.p.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.p.detached=function(){this.replyBox&&this.replyBox.remove()};
_.p.showReplyDialog=function(z){if(z){var l=this.replyBox;l||(l=document.createElement("ytd-comment-reply-dialog-renderer"),l.id="replybox",_.Hy(this.replyDialogDiv).appendChild(l));l.data=z;this.replyDialogDiv.hidden=!1;l.openDialog()}};
_.p.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.p.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var z,l=_.k((z=this.toolbarSurface)==null?void 0:z.subscribersOnlyDisclaimerSnackbarCommand,_.Ax);l&&_.gC(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:l})}};
_.p.onYtServiceRequestSent=function(z,l){z.stopPropagation();if(l.actions)for(var I=0;I<l.actions.length;I++){var b=_.k(l.actions[I],Ug0);b?this.handleUpdateCommentVoteAction(b):z.target===this.heartButton&&this.toggleHeartState()}};
_.p.handleUpdateCommentVoteAction=function(z){var l;(l=this.toolbarState)!=null&&l.key&&this.ytdReduxBehavior.dispatch(_.sc("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:z.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":z.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.p.toggleHeartState=function(){var z;(z=this.toolbarState)!=null&&z.key&&this.ytdReduxBehavior.dispatch(_.sc("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.vP.Object.defineProperties(U$.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return(((z=this.toolbarState)==null?void 0:z.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(l=this.toolbarData)==null?void 0:l.likeCountLiked:(I=this.toolbarData)==null?void 0:I.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.toolbarSurface)==null?void 0:z.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.toolbarSurface)==null?void 0:z.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.toolbarSurface)==null?void 0:z.prepareAccountCommand)!==void 0&&!_.C("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l=_.k((z=this.toolbarSurface)==null?void 0:z.prepareAccountCommand,_.Ax),I,b,v,M,x,g,G,u,Z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:l!=null?l:_.k((v=this.toolbarSurface)==null?void 0:v.likeCommand,_.Ax),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.k((M=this.toolbarSurface)==null?void 0:M.unlikeCommand,_.Ax),defaultCommand:this.isVisiblyDisabled?_.k((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,_.Ax):void 0,defaultTooltip:(g=this.toolbarData)==null?void 0:g.likeInactiveTooltip,toggledTooltip:(G=this.toolbarData)==null?void 0:G.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(u=this.toolbarData)==null?void 0:u.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l=_.k((z=this.toolbarSurface)==null?void 0:z.prepareAccountCommand,_.Ax),I,b,v,M,x,g,G,u,Z,H;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.k((v=this.toolbarSurface)==null?void 0:v.dislikeCommand,_.Ax),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.k((M=this.toolbarSurface)==null?void 0:M.undislikeCommand,_.Ax),defaultCommand:this.isVisiblyDisabled?_.k((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,_.Ax):void 0,defaultTooltip:(g=this.toolbarData)==null?void 0:g.dislikeInactiveTooltip,toggledTooltip:(G=this.toolbarData)==null?void 0:
G.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(u=this.toolbarSharedData)==null?void 0:u.dislikeReplyButtonA11y:(Z=this.toolbarSharedData)==null?void 0:Z.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(H=this.toolbarSharedData)==null?void 0:H.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l,I;if(((z=this.toolbarState)==null?void 0:z.heartState)!==void 0&&((l=this.toolbarState)==null?void 0:l.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var b,v,M,x,g,G,u,Z,H,y,f,R,F,Y;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(b=this.toolbarData)==null?void 0:b.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((v=this.toolbarState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.k((G=this.toolbarSurface)==null?void 0:G.heartCommand,
_.Ax),unheartEndpoint:this.isVisiblyDisabled?void 0:_.k((u=this.toolbarSurface)==null?void 0:u.unheartCommand,_.Ax),disabledEndpoint:this.isVisiblyDisabled?_.k((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.Ax):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(H=this.toolbarData)==null?void 0:H.heartActiveTooltip,unheartedTooltip:(y=this.toolbarData)==null?void 0:y.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((f=
this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(R=this.toolbarSharedData)==null?void 0:R.unheartButtonA11y:(F=this.toolbarSharedData)==null?void 0:F.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(Y=this.toolbarSharedData)==null?void 0:Y.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.toolbarSurface)==null||!z.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(z=this.commentStrings)==null?void 0:z.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.k((l=this.toolbarSurface)==null?void 0:l.replyCommand,_.Ax),command:this.isVisiblyDisabled?_.k((I=this.toolbarSurface)==null?
void 0:I.commentDisabledActionCommand,_.Ax):this.isSubsOnlyCommentsIneligibleUser?_.k((b=this.toolbarSurface)==null?void 0:b.subscribersOnlySnackbarCommand,_.Ax):void 0}}}});
U$.prototype.onYtServiceRequestSent=U$.prototype.onYtServiceRequestSent;U$.prototype.hideReplyDialogDiv=U$.prototype.hideReplyDialogDiv;_.e([_.X(),_.w("design:type",Object)],U$.prototype,"commentStrings",void 0);_.e([_.X(),_.w("design:type",Boolean)],U$.prototype,"isReply",void 0);_.e([_.X(),_.w("design:type",Object)],U$.prototype,"toolbarData",void 0);_.e([_.X(),_.w("design:type",Object)],U$.prototype,"toolbarSharedData",void 0);
_.e([_.X(),_.w("design:type",String)],U$.prototype,"toolbarStateKey",void 0);_.e([_.X(),_.w("design:type",String)],U$.prototype,"toolbarSurfaceKey",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],U$.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.XD),_.w("design:type",Object)],U$.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.qX("#reply-dialog"),_.w("design:type",HTMLElement)],U$.prototype,"replyDialogDiv",void 0);_.e([_.qX("#replybox"),_.w("design:type",Object)],U$.prototype,"replyBox",void 0);_.e([_.qX("ytd-creator-heart-renderer"),_.w("design:type",Object)],U$.prototype,"heartButton",void 0);_.e([_.X({selector:function(z,l){return _.Cc(z.entities,"engagementToolbarStateEntityPayload",l)},
selectorArgs:["toolbarStateKey"]}),_.w("design:type",Object)],U$.prototype,"toolbarState",void 0);_.e([_.X({selector:D3S,selectorArgs:["toolbarSurfaceKey"]}),_.w("design:type",Object)],U$.prototype,"toolbarSurface",void 0);_.e([_.X(),_.w("design:type",Object)],U$.prototype,"buttonOverrides",void 0);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],U$.prototype,"hideReplyDialogDiv",null);
_.e([_.B("toolbarData","toolbarState"),_.w("design:type",String),_.w("design:paramtypes",[])],U$.prototype,"likeCount",null);_.e([_.B("likeCount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],U$.prototype,"showLikeCount",null);_.e([_.B("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],U$.prototype,"isVisiblyDisabled",null);_.e([_.B("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],U$.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.e([_.B("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],U$.prototype,"isSubsOnlyCommentsEligibleUser",null);_.e([_.B("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],U$.prototype,"hasPrepareAccountCommand",null);_.e([_.B("toolbarData","toolbarState","toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],U$.prototype,"likeToggleButtonRenderer",null);
_.e([_.B("isReply","toolbarData","toolbarState","toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],U$.prototype,"dislikeToggleButtonRenderer",null);_.e([_.B("toolbarData","toolbarState","toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],U$.prototype,"creatorHeartSupportedRenderer",null);_.e([_.B("toolbarSurface"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],U$.prototype,"hasReplyCommand",null);
_.e([_.B("toolbarSurface","commentStrings","isVisiblyDisabled"),_.w("design:type",Object),_.w("design:paramtypes",[])],U$.prototype,"replyButtonRenderer",null);_.e([_.X(),_.w("design:type",Object)],U$.prototype,"replyButtonOverrides",void 0);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],U$.prototype,"onYtServiceRequestSent",null);_.e([_.S({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],U$);
_.r(U$,"ytd-comment-engagement-bar",function(){if(lBw!==void 0)return lBw;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return lBw=z},{mode:1});var IBz;var aa=function(){return _.q.apply(this,arguments)||this};
_.m(aa,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],aa.prototype,"data",void 0);_.e([_.S({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],aa);
_.r(aa,"ytd-comment-inline-thumbnail-renderer",function(){if(IBz!==void 0)return IBz;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return IBz=z},{mode:1});var bb_;var Vz=function(){return _.q.apply(this,arguments)||this};
_.m(Vz,_.q);Vz.prototype.onMessageTap=function(){if(this.onTapCommand){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);z&&this.ytdOpenPopupBehavior.openPopup(z)}};
_.vP.Object.defineProperties(Vz.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return(z=this.data)==null?void 0:(l=z.button)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.command}}});
_.e([_.t(_.XD),_.w("design:type",Object)],Vz.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vz.prototype,"data",void 0);_.e([_.B("data.button.buttonRenderer.command"),_.w("design:type",Object),_.w("design:paramtypes",[])],Vz.prototype,"onTapCommand",null);_.e([_.S({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Vz);
_.r(Vz,"ytd-comment-pause-composer-renderer",function(){if(bb_!==void 0)return bb_;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return bb_=z},{mode:1});var vez;var MkI;var js=function(){var z=_.q.apply(this,arguments)||this;z.isOpen=!1;return z};
_.m(js,_.q);_.p=js.prototype;_.p.dataChanged=function(){this.isOpen=!1};
_.p.onTap=function(){this.data&&(this.data.navigationEndpoint?_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.p.focus=function(){this.JSC$15846_commentbox.focus()};
_.p.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.p.openDialog=function(){this.isOpen=!0;this.JSC$15846_commentbox.focus();this.JSC$15846_commentbox.maybeHeightChanged()};
js.prototype.onYtCommentboxDismiss=js.prototype.onYtCommentboxDismiss;js.prototype.dataChanged=js.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],js.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],js.prototype,"isOpen",void 0);_.e([_.qX("#commentbox"),_.w("design:type",Object)],js.prototype,"JSC$15846_commentbox",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],js.prototype,"dataChanged",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],js.prototype,"onYtCommentboxDismiss",null);_.e([_.S({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],js);
_.r(js,"ytd-comment-reply-dialog-renderer",function(){if(MkI!==void 0)return MkI;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return MkI=z},{mode:1});var pBu;var Jq=function(){return _.q.apply(this,arguments)||this};
_.m(Jq,_.q);_.vP.Object.defineProperties(Jq.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.data)==null?void 0:(l=z.icon)==null?void 0:l.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jq.prototype,"data",void 0);_.e([_.X(),_.B("data.icon"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jq.prototype,"icon",null);_.e([_.S({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Jq);
_.r(Jq,"ytd-pinned-comment-badge-renderer",function(){if(pBu!==void 0)return pBu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return pBu=z},{mode:1});var DD_;var xD_={},Ob4={input:!0,meta:!0,br:!0,link:!0,img:!0},z5=null;xD_.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(){z5==null&&(z5=document.createElement("tp-yt-paper-tooltip"),z5.offset=8,z5.fitToVisibleBounds=!0)},
onMouseOver_:function(z){if(z=_.A7(z.target,function(v){return v==this||v.getAttribute&&v.getAttribute("shared-tooltip-text")}.bind(this),!0)){var l=z.getAttribute("shared-tooltip-text");
if(l){var I=this,b=null;z!=this&&(z.tagName.toLowerCase()in Ob4?I=z.parentElement:I=z,z.id&&(b=z.id));this.polymerController.createTooltipIfRequired_();if(z5.parentElement!=I||z5.for!=b)(0,_.kE)(z5).textContent=l,_.Hy(I).appendChild(z5),z5.for=b,z5.animationDelay=this.polymerController.sharedTooltipAnimationDelay,z5.position=this.polymerController.sharedTooltipPosition}}}};var ld=function(){return _.q.apply(this,arguments)||this};
_.m(ld,_.q);ld.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]]"}}}}}};
ld.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var z;((z=this.data)==null?0:z.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
ld.prototype.colorChanged=function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.color)==null?void 0:(I=l.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;b&&(this.rgbBadgeColor=_.Ur(b));_.Hy(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
ld.prototype.tooltipChanged=function(){var z;((z=this.data)==null?0:z.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
ld.prototype.tooltipChanged=ld.prototype.tooltipChanged;ld.prototype.colorChanged=ld.prototype.colorChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(xD_.YtSharedTooltipBehavior),_.w("design:type",Object)],ld.prototype,"ytSharedTooltipBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ld.prototype,"data",void 0);
_.e([_.X({value:"#4285F4"}),_.w("design:type",String)],ld.prototype,"rgbBadgeColor",void 0);_.e([_.By("data.color"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ld.prototype,"colorChanged",null);_.e([_.By("data.tooltip"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ld.prototype,"tooltipChanged",null);_.e([_.S({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],ld);
_.r(ld,"ytd-sponsor-comment-badge-renderer",function(){if(DD_!==void 0)return DD_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return DD_=z},{mode:1});var geA;var GI_;var I7=function(){return _.q.apply(this,arguments)||this};
_.m(I7,_.q);I7.prototype.computeState=function(z){switch(z==null?void 0:z.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"}};
I7.prototype.updateStateIdentifier=function(z){if(this.viewModel.triStateKey){var l=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.sc("triStateButtonStateEntityPayload",l,{key:l,stateIdentifier:z}))}};
I7.prototype.onClick=function(){var z=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(){z.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){z.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.vP.Object.defineProperties(I7.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 z;return((z=this.data)==null?void 0:z.buttonText)||""}}});
_.e([_.X(),_.w("design:type",Object)],I7.prototype,"viewModel",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],I7.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],I7.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.e([_.X({selector:x3k,selectorArgs:["viewModel.triStateKey"]}),_.w("design:type",Object)],I7.prototype,"triStateButtonStateEntity",void 0);
_.e([_.X({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.w("design:type",String)],I7.prototype,"state",void 0);_.e([_.B("viewModel","state"),_.w("design:type",Object),_.w("design:paramtypes",[])],I7.prototype,"data",null);_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],I7.prototype,"buttonText",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],I7);
_.r(I7,"ytd-tri-state-button-view-model",function(){if(GI_!==void 0)return GI_;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return GI_=z},{mode:1});var NXA;var Eep;var bd=function(){var z=_.q.apply(this,arguments)||this;z.defaultIconToFilled=!_.C("kevlar_fill_comment_chip_icon_killswitch");return z};
_.m(bd,_.q);bd.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
bd.prototype.dataChanged=function(){if(this.data){var z,l;((z=this.data.chipColorPalette)==null?0:z.backgroundColor)&&((l=this.data.chipColorPalette)==null?0:l.foregroundTitleColor)&&_.R8(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.aD(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.aD(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.R8(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.R8(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}};
bd.prototype.onTap=function(){var z;if(this.data&&(z=this.data)!=null&&z.command){var l;this.ytComponentBehavior.resolveCommand((l=this.data)==null?void 0:l.command)}};
bd.prototype.getIconSize=function(){return _.C("kevlar_fill_comment_chip_icon_killswitch")?24:12};
bd.prototype.onTap=bd.prototype.onTap;bd.prototype.dataChanged=bd.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],bd.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.rB),_.w("design:type",Object)],bd.prototype,"ironA11yKeysBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bd.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],bd.prototype,"basePriceText",void 0);_.e([_.X(),_.w("design:type",Object)],bd.prototype,"chipIcon",void 0);_.e([_.X(),_.w("design:type",Object)],bd.prototype,"defaultIconToFilled",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bd.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bd.prototype,"onTap",null);
_.e([_.Wy({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],bd);
_.r(bd,"yt-pdg-comment-chip-renderer",function(){if(Eep===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;NXA===void 0&&(NXA=document.createElement("template"));var b=NXA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Eep=z}z=Eep;return z},{mode:2});var v9=function(){var z=_.q.apply(this,arguments)||this;z.useSmallAvatars=_.C("small_avatars_for_comments");z.webWatchCompactComments=_.C("web_watch_compact_comments");z.editDialog=null;return z};
_.m(v9,_.q);_.p=v9.prototype;_.p.onShow=function(){_.rC("cmv",void 0,"wn_comments")};
_.p.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"}}}};
_.p.detached=function(){this.editDialog=null;this.expander.reset()};
_.p.updateBackgroundColor=function(){if(this.backgroundColor){var z={"--ytd-comment-paid-background-color":_.aD(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.R8(this.hostElement,z)}else _.R8(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.p.resetExpander=function(){var z;(z=this.expander)==null||z.reset()};
_.p.openEditDialog=function(z){z.dialog&&(this.editDialog=z.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.p.onYtNavigate=function(z){var l=z.detail.endpoint;if(l=_.k(l,_.kJz)||_.k(l,_.Rmu))z.stopPropagation(),this.openEditDialog(l)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null;_.R8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.p.onAuthorThumbnailClicked=function(){_.C("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.p.onYtCommentboxResize=function(z){var l;(z==null?0:(l=z.detail)==null?0:l.height)&&_.R8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":z.detail.height+"px"})};
_.vP.Object.defineProperties(v9.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 z,l=(z=this.commentEntity)==null?void 0:z.author;return l&&(l.isCreator||l.isVerified||l.isArtist)?{renderer:{authorEndpoint:l.channelPageEndpoint?_.k(l.channelPageEndpoint,_.Ax):_.k(l.channelCommand,_.Ax),authorText:{runs:[{text:l.displayName}]},color:l.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:l.isArtist?{iconType:"AUDIO_BADGE"}:
l.isVerified?{iconType:l.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:l.isArtist||l.isVerified?l.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var z,l=(z=this.commentEntity)==null?void 0:z.author;return l!=null&&l.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:l.sponsorBadgeUrl}]},tooltip:l.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var z;return _.k((z=this.commentSurfaceEntity)==null?void 0:z.pdgCommentChip,_.atn)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var z;return this.voiceReplyContainerViewModel&&((z=this.voiceReplyContainerViewModel)==null?void 0:z.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var z;return _.k((z=this.commentSurfaceEntity)==null?void 0:z.voiceReplyContainerViewModel,vZI)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var z;return this.voiceReplyContainerViewModel&&(z=this.voiceReplyContainerViewModel)!=null&&z.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.commentSurfaceEntity)==null?void 0:z.commentBackgroundColor)!=null?l:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.C("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var z,l;return(((z=this.commentEntity)==null?void 0:(l=z.properties)==null?void 0:l.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var z,l;if(_.C("enable_profile_cards_on_comments")&&((z=this.commentEntity)==null?0:(l=z.author)==null?0:l.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,b;return _.k((I=this.commentEntity)==null?void 0:(b=I.author)==null?void 0:b.profileCardEndpoint,_.Ax)}var v,M;return _.k((v=this.commentEntity)==null?void 0:(M=v.avatar)==null?void 0:M.endpoint,_.Ax)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var z,l;if(_.C("enable_profile_cards_on_comments")&&((z=this.commentEntity)==null?0:(l=z.author)==null?0:l.channelPageEndpoint)){var I,b;return _.k((I=this.commentEntity)==null?void 0:(b=I.author)==null?void 0:b.channelPageEndpoint,_.Ax)}var v,M;return _.k((v=this.commentEntity)==null?void 0:(M=v.avatar)==null?void 0:M.endpoint,_.Ax)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v=(z=this.commentEntity)==null?void 0:(l=z.avatar)==null?void 0:(I=l.image)==null?void 0:(b=I.sources)==null?void 0:b[0];return v?{thumbnails:[{url:v.url,width:v.width,height:v.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.commentEntity)==null?0:(l=z.author)==null?0:l.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.commentEntity)==null?void 0:(l=z.author)==null?void 0:l.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.commentEntity)==null?void 0:(l=z.properties)==null?void 0:l.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var z;return _.k((z=this.commentSurfaceEntity)==null?void 0:z.publishedTimeCommand,_.Ax)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var z,l;if(((z=this.commentEntity)==null?0:z.translatedContent)&&((l=this.translateButtonState)==null?void 0:l.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var I;if((I=this.voiceReplyContainerViewModel)==null?0:I.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var b,v;return((b=this.commentEntity)==null?void 0:(v=b.properties)==null?void 0:v.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.commentSharedEntity)==null?void 0:(l=z.strings)==null?void 0:l.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.commentSharedEntity)==null?void 0:(l=z.strings)==null?void 0:l.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.commentEntity)==null||!z.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var z,l,I=(l=_.k((z=this.viewModel)==null?void 0:z.translateButton,bmA))!=null?l:{},b,v,M,x,g,G,u,Z,H,y,f;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(b=this.commentEntity)==null?void 0:(v=b.translateData)==null?void 0:v.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(M=this.commentSharedEntity)==null?
void 0:(x=M.strings)==null?void 0:x.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(g=this.commentSharedEntity)==null?void 0:(G=g.strings)==null?void 0:G.seeOriginalText}),transitionCommand:((u=this.commentEntity)==null?0:u.translatedContent)?void 0:_.k((Z=this.commentEntity)==null?void 0:(H=Z.translateData)==null?void 0:H.translateComment,_.Ax),triStateKey:(y=this.commentEntity)==null?void 0:(f=y.properties)==null?void 0:f.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((l=_.k(_.k((z=this.toolbarSurface)==null?void 0:z.menuCommand,_.Ax),mkA))==null?void 0:(I=l.menu)==null?void 0:I.menuRenderer)||null}}});
v9.prototype.onYtCommentboxResize=v9.prototype.onYtCommentboxResize;v9.prototype.onYtCommentboxDismiss=v9.prototype.onYtCommentboxDismiss;v9.prototype.onYtNavigate=v9.prototype.onYtNavigate;v9.prototype.resetExpander=v9.prototype.resetExpander;v9.prototype.updateBackgroundColor=v9.prototype.updateBackgroundColor;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],v9.prototype,"ytdReduxBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],v9.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#author-thumbnail > button"),_.w("design:type",HTMLElement)],v9.prototype,"authorThumbnailAnchor",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("viewModel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v9.prototype,"linked",null);
_.e([_.B("viewModel","linked"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"linkedCommentBadge",null);_.e([_.X({reflectToAttribute:!0}),_.B("viewModel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v9.prototype,"pinned",null);_.e([_.B("viewModel","pinned"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"pinnedCommentBadge",null);
_.e([_.B("commentEntity","commentSharedEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"authorCommentBadge",null);_.e([_.X({reflectToAttribute:!0}),_.B("authorCommentBadge"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"hasAuthorBadge",null);_.e([_.B("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"sponsorCommentBadge",null);
_.e([_.X({reflectToAttribute:!0}),_.B("sponsorCommentBadge"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"hasSponsorBadge",null);_.e([_.B("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"pdgCommentChipRenderer",null);_.e([_.X({reflectToAttribute:!0}),_.B("voiceReplyContainerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"hasVoiceReply",null);
_.e([_.B("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"voiceReplyContainerViewModel",null);_.e([_.B("voiceReplyContainerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"voiceReplyUnavailableText",null);_.e([_.X(),_.w("design:type",Object)],v9.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"viewModel",null);
_.e([_.X({selector:function(z,l){return _.Cc(z.entities,"commentSharedEntityPayload",l)},
selectorArgs:["viewModel.sharedKey"]}),_.w("design:type",Object)],v9.prototype,"commentSharedEntity",void 0);_.e([_.X({selector:function(z,l){return _.Cc(z.entities,"commentEntityPayload",l)},
selectorArgs:["viewModel.commentKey"]}),_.w("design:type",Object)],v9.prototype,"commentEntity",void 0);_.e([_.X({selector:function(z,l){return _.Cc(z.entities,"commentSurfaceEntityPayload",l)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.w("design:type",Object)],v9.prototype,"commentSurfaceEntity",void 0);_.e([_.X({selector:D3S,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.w("design:type",Object)],v9.prototype,"toolbarSurface",void 0);_.e([_.X({selector:x3k,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.w("design:type",Object)],v9.prototype,"translateButtonState",void 0);
_.e([_.B("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"backgroundColor",null);_.e([_.X({reflectToAttribute:!0}),_.B("viewModel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v9.prototype,"optimalReadingWidthComments",null);_.e([_.qX("ytd-expander"),_.w("design:type",Object)],v9.prototype,"expander",void 0);
_.e([_.By("backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],v9.prototype,"updateBackgroundColor",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],v9.prototype,"useSmallAvatars",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],v9.prototype,"webWatchCompactComments",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"isReply",null);
_.e([_.B("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"authorThumbnailEndpoint",null);_.e([_.B("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"authorNameEndpoint",null);_.e([_.B("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"authorThumbnail",null);_.e([_.B("commentEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],v9.prototype,"authorTextClass",null);
_.e([_.B("commentEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],v9.prototype,"authorChannelName",null);_.e([_.B("commentEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"publishedTime",null);_.e([_.B("commentSurfaceEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"publishedTimeCommand",null);
_.e([_.B("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"contentText",null);_.e([_.By("contentText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],v9.prototype,"resetExpander",null);_.e([_.B("commentEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v9.prototype,"shouldShowReadMoreInitially",null);
_.e([_.B("commentSharedEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],v9.prototype,"expandText",null);_.e([_.B("commentSharedEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],v9.prototype,"collapseText",null);_.e([_.B("commentEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],v9.prototype,"shouldShowTranslateButton",null);
_.e([_.B("commentEntity","commentSharedEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"translateButton",null);_.e([_.B("toolbarSurface"),_.w("design:type",Object),_.w("design:paramtypes",[])],v9.prototype,"overflowMenuRenderer",null);_.e([_.X(),_.w("design:type",Object)],v9.prototype,"editDialog",void 0);_.e([_.qX("ytd-comment-dialog-renderer"),_.w("design:type",Object)],v9.prototype,"editCommentDialogContainer",void 0);
_.e([_.qX("ytd-comment-reply-dialog-renderer"),_.w("design:type",Object)],v9.prototype,"editReplyDialogContainer",void 0);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],v9.prototype,"onYtNavigate",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],v9.prototype,"onYtCommentboxDismiss",null);
_.e([_.tP("yt-commentbox-resize"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],v9.prototype,"onYtCommentboxResize",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-comment-view-model"})],v9);
_.r(v9,"ytd-comment-view-model",function(){if(geA!==void 0)return geA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return geA=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});_.uO(_.P(function(z){var l={};return _.N("yt-sub-thread",{class:_.m9("ytSubThreadHost",(l.ytSubThreadHasButton=z.isButton,l))},_.N("div",{class:"ytSubThreadThreadline"},_.N("div",{class:"ytSubThreadConnection"}),_.N("div",{class:"ytSubThreadContinuation"}),_.N("div",{class:"ytSubThreadShadow"})),_.N("div",{class:"ytSubThreadSubThreadContent"},z.children))},"Rb"),"yt-sub-thread",{props:{isButton:_.mB}});var M_=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_modern_buttons");z.commentThreadingEnabled=_.C("web_delhi_comment_threads");z.isWatchGrid=_.C("kevlar_watch_grid");z.buttonOverrides=z.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};z.JSC$15892_spinnerEl=null;return z};
_.m(M_,_.q);_.p=M_.prototype;_.p.configureContinuationPathMap=function(){return _.C("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.p.shouldShowExpandedThreads=function(z,l){return this.commentThreadingEnabled&&l&&(z==null?void 0:z.length)>0};
_.p.shouldShowCollapsedThreads=function(z,l){return this.commentThreadingEnabled&&!l&&z};
_.p.computeThreadRenderer=function(z){return _.k(z,aI_)};
_.p.computeIsContinuationItem=function(z){return!!this.computeContinuationItemRenderer(z)};
_.p.computeButtonRenderer=function(z){return _.k(z,_.xm)};
_.p.computeContinuationItemRenderer=function(z){return _.k(z,_.MN)};
_.p.computeShowButton=function(z){var l;return!((l=this.computeContinuationItemRenderer(z))==null||!l.button)};
_.p.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]]"}}}}}};
_.p.attached=function(){this.isShowRepliesVisible=!0};
_.p.dataChanged=function(){var z=this.expanderContents;z&&(z.hidden=!0);this.isLoading=!1};
_.p.endsInContinuation=function(z){return!!z&&z.length>0&&!!this.computeContinuationItemRenderer(z[z.length-1])};
_.p.computeShouldShowHideRepliesButton=function(z,l){return!z&&l};
_.p.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.p.isLoadingChanged=function(){this.isLoading&&!this.JSC$15892_spinnerEl&&(this.JSC$15892_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Hy(this.expanderContents).appendChild(this.JSC$15892_spinnerEl));this.JSC$15892_spinnerEl&&(this.JSC$15892_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var z;(z=this.contents)==null||z.classList.remove("reloading")}};
_.p.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var z=_.k(this.data.viewReplies,_.xm);z&&this.ytRendererBehavior.logExplicitClick(z);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.p.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var z=_.k(this.data.hideReplies,_.xm);z&&this.ytRendererBehavior.logExplicitClick(z);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.p.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var z=_.Hy(this.hostElement).querySelector("#expander-contents");z&&(z.hidden=this.isShowRepliesVisible)}};
_.p.computeAlign=function(){if(this.modern){var z;return!((z=this.data)==null?0:z.viewRepliesCreatorThumbnail)}};
_.vP.Object.defineProperties(M_.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var z,l;return this.endsInContinuation((z=this.data)==null?void 0:z.contents)||this.commentThreadingEnabled&&this.endsInContinuation((l=this.data)==null?void 0:l.subThreads)}}});
M_.prototype.isShowMoreChanged=M_.prototype.isShowMoreChanged;M_.prototype.isLoadingChanged=M_.prototype.isLoadingChanged;M_.prototype.triggerFirstContinuation=M_.prototype.triggerFirstContinuation;M_.prototype.dataChanged=M_.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],M_.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.C6),_.w("design:type",Object)],M_.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],M_.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],M_.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],M_.prototype,"commentThreadingEnabled",void 0);_.e([_.X(),_.w("design:type",Boolean)],M_.prototype,"expanded",void 0);
_.e([_.X(),_.w("design:type",Function)],M_.prototype,"toggleExpanded",void 0);_.e([_.X(),_.w("design:type",Array)],M_.prototype,"teasers",void 0);_.e([_.X(),_.w("design:type",Boolean)],M_.prototype,"isLoading",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],M_.prototype,"isShowRepliesVisible",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],M_.prototype,"useNewFormatting",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],M_.prototype,"isWatchGrid",void 0);
_.e([_.X(),_.w("design:type",Object)],M_.prototype,"buttonOverrides",void 0);_.e([_.qX("#expander-contents"),_.w("design:type",HTMLElement)],M_.prototype,"expanderContents",void 0);_.e([_.qX("ytd-continuation-item-renderer"),_.w("design:type",Object)],M_.prototype,"continuationItemRenderer",void 0);_.e([_.qX("#contents"),_.w("design:type",HTMLElement)],M_.prototype,"contents",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M_.prototype,"dataChanged",null);_.e([_.B("data.contents","data.subThreads.*"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],M_.prototype,"hasContinuation",null);_.e([_.tP("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M_.prototype,"triggerFirstContinuation",null);
_.e([_.By("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M_.prototype,"isLoadingChanged",null);_.e([_.By("isShowRepliesVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],M_.prototype,"isShowMoreChanged",null);_.e([_.S({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],M_);
_.r(M_,"ytd-comment-replies-renderer",function(){if(vez!==void 0)return vez;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content 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      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div 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 is-button="[[computeIsContinuationItem(item)]]" 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 is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return vez=z},{mode:1});var u2_;var pg=function(){var z=_.q.apply(this,arguments)||this;z.isOpen=!1;z.commentDialog=null;z.useSmallAvatars=_.C("small_avatars_for_comments");z.useSmallAvatarsEngagementPanelOnly=_.C("small_avatars_for_comments_ep");z.placeholderFocusListener=null;z.hasOpenedDialog=!1;z.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return z};
_.m(pg,_.q);_.p=pg.prototype;_.p.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]]"}}}}}};
_.p.ready=function(){var z=this,l=_.Hy(this.hostElement).querySelector("#placeholder-area"),I=_.Hy(this.hostElement).querySelector("#simplebox-placeholder"),b=function(v){v.stopPropagation();v instanceof KeyboardEvent&&v.type==="keypress"&&v.keyCode!==13&&v.keyCode!==32||z.openDialog()};
this.placeholderFocusListener=b;I.addEventListener("focus",this.placeholderFocusListener);l.addEventListener("tap",b);l.addEventListener("keypress",b)};
_.p.maybeRemoveFocusEventListener=function(){var z;(z=this.data)!=null&&z.prepareAccountEndpoint&&!_.C("web_comments_simplebox_modal_focus_on_tap_ks")&&(z=_.Hy(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(z.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.p.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.p.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.C("web_comment_simplebox_resolve_polymer_command_ks")?_.KE.instance.resolveCommand(this.data.prepareAccountEndpoint):_.tx(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);z&&this.ytdOpenPopupBehavior.openPopup(z);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Hy(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.p.onYtCommentboxDismiss=function(z){z.stopPropagation();this.isOpen=!1};
_.p.onCreateCommentAction=function(z){this.get("createCommentAction.contents",z)&&(this.isOpen=!1)};
_.p.computeCommentDialog=function(z){return{placeholderText:z.placeholderText,authorThumbnail:z.authorThumbnail,submitButton:z.submitButton,imageButton:z.imageButton,cancelButton:z.cancelButton,emojiButton:z.emojiButton,emojis:z.emojis,emojiPicker:z.emojiPicker,aadcGuidelinesStateEntityKey:z.aadcGuidelinesStateEntityKey,openAadcDialog:z.openAadcDialog,unicodeEmojisUrl:z.unicodeEmojisUrl}};
_.p.onHideIdentityChip=function(z){_.k(z,wn0)&&this.set("data.placeholderText",_.k(z,wn0).placeholderText)};
pg.prototype.onYtCommentboxDismiss=pg.prototype.onYtCommentboxDismiss;pg.prototype.dataChanged=pg.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],pg.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],pg.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pg.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],pg.prototype,"isOpen",void 0);_.e([_.X(),_.w("design:type",Object)],pg.prototype,"commentDialog",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],pg.prototype,"engagementPanel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pg.prototype,"useSmallAvatars",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pg.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],pg.prototype,"enableCreationBox",void 0);_.e([_.X(),_.w("design:type",Boolean)],pg.prototype,"showCreateDialog",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pg.prototype,"dataChanged",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],pg.prototype,"onYtCommentboxDismiss",null);_.e([_.S({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],pg);
_.r(pg,"ytd-comment-simplebox-renderer",function(){if(u2_!==void 0)return u2_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return u2_=z},{mode:1});var ZbA;_.sW("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var D7=function(){var z=_.q.apply(this,arguments)||this;z.addHoverEffect=_.C("swatcheroo_comments_hover_effect");z.useSmallAvatars=_.C("small_avatars_for_comments");z.threadHovered=!1;z.expanded=!1;z.removed=!1;z.teasers=[];z.actionMap=z.configureActionMap();z.toggleExpanded=function(){z.expanded=!z.expanded;!z.expanded&&_.C("web_comment_threading_scroll_on_collapse")&&_.Gb(z.hostElement,"yt-scroll-to-watch-element",[z.commentElement])};
return z};
_.m(D7,_.q);_.p=D7.prototype;_.p.configureActionMap=function(){return _.C("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"}:{}};
_.p.createCommentReplyAction=function(z){z=_.k(z,$g_);if(z!=null&&z.contents){var l=z.replyToCommentId,I=z.parentCommentId,b,v=(b=this.commentViewModel)==null?void 0:b.commentId;(v===l||v===I&&!l)&&this.attachReply(z.contents)}};
_.p.attachReply=function(z){var l;((l=this.data)==null?0:l.replies)?(l=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+l+".continuationItemRenderer")?l===0?this.push("teasers",z):this.splice("data.replies.commentRepliesRenderer.subThreads",l,0,z):this.push("data.replies.commentRepliesRenderer.subThreads",z)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[z]}}),this.toggleExpanded())};
_.p.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.ht(this.teasers))),this.set("teasers",[]))};
_.p.removeCommentAction=function(z){z=_.k(z,n9j);var l=z==null?void 0:z.commentId,I;l&&((I=this.commentViewModel)==null?void 0:I.commentId)===l&&this.maybeRemoveComment(z.actionResult)};
_.p.banAuthorAction=function(z){z=_.k(z,sW_);var l=z==null?void 0:z.commentId,I;l&&((I=this.commentViewModel)==null?void 0:I.commentId)===l&&this.maybeRemoveComment(z.actionResult)};
_.p.hideReportedCommentAction=function(z){z=_.k(z,xRA);var l=z==null?void 0:z.commentId,I;l&&((I=this.commentViewModel)==null?void 0:I.commentId)===l&&this.maybeRemoveComment(z.actionResult)};
_.p.maybeRemoveComment=function(z){z&&z.status==="STATUS_SUCCEEDED"&&(this.feedbackText=z.feedbackText||_.xw("Reply removed"),this.removed=!0)};
_.p.onTap=function(z){if(this.addHoverEffect&&!this.engagementPanel&&!_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||_.tx({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.p.attached=function(){var z=this;this.isSubThread&&(this.expanded=!0);var l;(l=this.commentThreadHitbox)==null||l.addEventListener("mouseover",function(){z.threadHovered=!0});
var I;(I=this.commentThreadHitbox)==null||I.addEventListener("mouseout",function(){z.threadHovered=!1});
var b;(b=this.commentThreadHitbox)==null||b.addEventListener("click",function(){z.toggleExpanded()})};
_.vP.Object.defineProperties(D7.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)!=null&&z.commentViewModel)return _.k(this.data.commentViewModel,I90)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return _.C("web_delhi_comment_threads")&&!!((z=this.data)==null?0:(l=z.replies)==null?0:(I=l.commentRepliesRenderer)==null?0:I.subThreads)}}});
D7.prototype.onTap=D7.prototype.onTap;D7.prototype.onAppendContinuationItemsActionFinished=D7.prototype.onAppendContinuationItemsActionFinished;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],D7.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],D7.prototype,"addHoverEffect",void 0);_.e([_.X(),_.w("design:type",Object)],D7.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],D7.prototype,"useSmallAvatars",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],D7.prototype,"isSubThread",void 0);_.e([_.qX(".thread-hitbox"),_.w("design:type",HTMLElement)],D7.prototype,"commentThreadHitbox",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],D7.prototype,"threadHovered",void 0);_.e([_.qX("#comment"),_.w("design:type",HTMLElement)],D7.prototype,"commentElement",void 0);_.e([_.X(),_.w("design:type",Object)],D7.prototype,"expanded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],D7.prototype,"removed",void 0);_.e([_.X(),_.w("design:type",Object)],D7.prototype,"feedbackText",void 0);_.e([_.X(),_.w("design:type",Array)],D7.prototype,"teasers",void 0);
_.e([_.tP("yt-append-continuation-items-action-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],D7.prototype,"onAppendContinuationItemsActionFinished",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],D7.prototype,"commentViewModel",null);_.e([_.B("data.replies"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],D7.prototype,"hasSubThreading",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],D7.prototype,"engagementPanel",void 0);_.e([_.tP("tap"),_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],D7.prototype,"onTap",null);_.e([_.S({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],D7);
_.r(D7,"ytd-comment-thread-renderer",function(){if(ZbA!==void 0)return ZbA;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" 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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ZbA=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var HbA;var xV=function(){var z=_.q.apply(this,arguments)||this;z.modernTypography=_.C("web_modern_typography");z.compactHeader=_.C("web_watch_compact_comments_header");z.hidePanelButton=!1;z.isPostSchedulingEnabled=_.C("enable_post_scheduling");z.hasFinishedStamping=!1;z.JSC$15915_handleOpenPostCommentDialogActionAfterStamp=!1;z.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return z};
_.m(xV,_.q);_.p=xV.prototype;
_.p.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"}}}};
_.p.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.p.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15915_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.onYtServiceRequestSent=function(z,l){if(!_.C("kevlar_command_handler")&&l.actions)for(z=0;z<l.actions.length;z++){var I=l.actions[z];_.k(I,E9_)&&_.Hy(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.k(I,E9_))}};
_.p.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var z;if(this.getPrefilledBackstagePostDialog((z=this.data)==null?void 0:z.actions)){_.Hy(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var l=_.Hy(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;l&&_.IR(this,function(){l.focus();l.openDialog&&l.openDialog()})}}else this.hasActionsChange=!0};
_.p.computeIsBackstage=function(z){return z};
_.p.onYtCommentboxDismiss=function(){_.Hy(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.p.removePrefilledDialog=function(z){if(z==null?0:z.actions){for(var l=z.actions.length-1;l>=0;l--){var I=void 0;((I=_.k(z.actions[l],ft_))==null?0:I.dialog)&&delete z.actions[l]}this.set("data",void 0);this.set("data",z)}};
_.p.getPrefilledBackstagePostDialog=function(z){if(z)for(var l=0;l<z.length;l++){var I=z[l],b=void 0;if((b=_.k(I,ft_))==null?0:b.dialog)return _.k(I,ft_).dialog}return null};
_.p.computeBackstagePostDialog=function(z){return z&&(this.getPrefilledBackstagePostDialog(z.actions)||z.createRenderer)};
_.p.dataChanged=function(){if(this.data){var z=this.data.customEmojis,l=this.data.unicodeEmojisUrl;_.HL.clear();l&&_.Gd_(_.HL,l);z&&_.HL.load(z)}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var z=_.Hy(this.hostElement).querySelector("ytd-comment-simplebox-renderer");z?z.openDialog():this.JSC$15915_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onPostHeaderTap=function(){var z;((z=this.data)==null?0:z.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.vP.Object.defineProperties(xV.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.C("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v,M,x;return!this.hidePanelButton&&_.C("kevlar_watch_comments_panel_button")&&((x=_.k((z=this.data)==null?void 0:(l=z.sortMenu)==null?void 0:(I=l.sortFilterSubMenuRenderer)==null?void 0:(b=I.subMenuItems)==null?void 0:(v=b[0])==null?void 0:(M=v.serviceEndpoint)==null?void 0:M.commandMetadata,_.kB))==null?void 0:x.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.mY("MINIPLAYER_EXPAND_LABEL"),text:_.lc(_.mY("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
xV.prototype.dataChanged=xV.prototype.dataChanged;xV.prototype.onYtCommentboxDismiss=xV.prototype.onYtCommentboxDismiss;xV.prototype.observePrefilledBackstagePostDialog=xV.prototype.observePrefilledBackstagePostDialog;xV.prototype.onYtServiceRequestSent=xV.prototype.onYtServiceRequestSent;xV.prototype.onStampFinished=xV.prototype.onStampFinished;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],xV.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],xV.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xV.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xV.prototype,"modernTypography",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xV.prototype,"compactHeader",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],xV.prototype,"engagementPanel",void 0);_.e([_.X(),_.w("design:type",Object)],xV.prototype,"hidePanelButton",void 0);_.e([_.X({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.w("design:type",Boolean)],xV.prototype,"isBackstage",void 0);
_.e([_.X({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.w("design:type",Object)],xV.prototype,"backstagePostDialog",void 0);_.e([_.X(),_.w("design:type",Object)],xV.prototype,"isPostSchedulingEnabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data","showCommentsPanelButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],xV.prototype,"useSpaceBetween",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data","hidePanelButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],xV.prototype,"showCommentsPanelButton",null);_.e([_.B("data","showCommentsPanelButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],xV.prototype,"commentsPanelButtonData",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xV.prototype,"onStampFinished",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],xV.prototype,"onYtServiceRequestSent",null);_.e([_.By("data.actions"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xV.prototype,"observePrefilledBackstagePostDialog",null);
_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],xV.prototype,"onYtCommentboxDismiss",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xV.prototype,"dataChanged",null);_.e([_.S({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],xV);
_.r(xV,"ytd-comments-header-renderer",function(){if(HbA!==void 0)return HbA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return HbA=z},{mode:1});var yBu;var OH=function(){return _.q.apply(this,arguments)||this};
_.m(OH,_.q);_.e([_.X(),_.w("design:type",Object)],OH.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.e([_.S({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],OH);
_.r(OH,"ytd-destination-button-renderer",function(){if(yBu!==void 0)return yBu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yBu=z},{mode:1});var fBM;var gN=function(){var z=_.q.apply(this,arguments)||this;z.isRichGrid=!1;z.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};z.modernTypography=_.C("web_modern_typography");return z};
_.m(gN,_.q);_.p=gN.prototype;_.p.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.p.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.p.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.p.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var z;if((z=this.data)==null||!z.isExpanded){z=this.hostElement.clientWidth;var l;if(z&&(l=this.data)!=null&&l.destinationButtons){l=Math.floor((z+4)/214);z=this.data.destinationButtons.length;var I=Math.ceil(z/l);this.fullyVisibleRows=z%l===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.p.updateRichGridDestinationButtonsVisibility=function(){var z,l;if(this.isRichGrid&&((z=this.data)==null||!z.isExpanded)&&(l=this.data)!=null&&l.destinationButtons){z=this.richGridItemsPerRow+1;l=this.data.destinationButtons.length;var I=Math.ceil(l/z);this.fullyVisibleRows=l%z===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.p.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
gN.prototype.updateRichGridDestinationButtonsVisibility=gN.prototype.updateRichGridDestinationButtonsVisibility;_.e([_.X(),_.w("design:type",Object)],gN.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Number)],gN.prototype,"fullyVisibleRows",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],gN.prototype,"isShowMoreVisible",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gN.prototype,"isRichGrid",void 0);
_.e([_.X({selector:_.sp,value:0}),_.w("design:type",Number)],gN.prototype,"richGridItemsPerRow",void 0);_.e([_.X(),_.w("design:type",Object)],gN.prototype,"gridStateActionMap",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],gN.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],gN.prototype,"ytdReduxBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gN.prototype,"modernTypography",void 0);_.e([_.By("data","richGridItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gN.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.e([_.S({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],gN);
_.r(gN,"ytd-destination-shelf-renderer",function(){if(fBM!==void 0)return fBM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return fBM=z},{mode:1});var C6M;var G5=function(){return _.q.apply(this,arguments)||this};
_.m(G5,_.q);G5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],G5.prototype,"data",void 0);_.e([_.S({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],G5);
_.r(G5,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(C6M!==void 0)return C6M;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return C6M=z},{mode:1});var kIn;var N_=function(){var z=_.q.apply(this,arguments)||this;z.disableAnimation=!1;z.isSlimlineSurvey=!1;z.isSlimlineSurveyFollowUp=!1;z.isShortsStyle=!1;return z};
_.m(N_,_.q);N_.prototype.onTap=function(z){z.preventDefault();this.data&&_.gC(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.vP.Object.defineProperties(N_.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 z,l,I,b,v;return((z=this.data)==null?0:z.checked)?(l=this.data)==null?void 0:(I=l.onStateIcon)==null?void 0:I.iconType:(b=this.data)==null?void 0:(v=b.defaultStateIcon)==null?void 0:v.iconType}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],N_.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],N_.prototype,"disableAnimation",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],N_.prototype,"isSlimlineSurvey",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],N_.prototype,"isSlimlineSurveyFollowUp",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],N_.prototype,"isShortsStyle",void 0);_.e([_.B("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N_.prototype,"isAnimatedIcon",null);
_.e([_.B("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.w("design:type",Number),_.w("design:paramtypes",[])],N_.prototype,"iconSize",null);_.e([_.B("isShortsStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N_.prototype,"isDarkTheme",null);_.e([_.B("data.checked"),_.w("design:type",Object),_.w("design:paramtypes",[])],N_.prototype,"icon",null);_.e([_.S({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],N_);
_.r(N_,"ytd-rating-survey-option-renderer",function(){if(kIn!==void 0)return kIn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return kIn=z},{mode:2});var R2j;var EH=function(){var z=_.q.apply(this,arguments)||this;z.firstResponseText=null;z.lastResponseText=null;z.selectedNonStarOption=null;z.hideOptions=!1;z.hideUndoButton=!0;z.disableAnimation=!1;z.showResponseRangeText=!1;z.selectedRatingIndex=-1;z.isSlimlineSurvey=!1;z.isSlimlineSurveyFollowUp=!1;z.isShortsStyle=!1;z.slimlineSurveyRatingSelectedIndex=-1;return z};
_.m(EH,_.q);_.p=EH.prototype;_.p.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.p.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.p.onOptionChange=function(z,l){var I=this;z=l.onStateIcon&&l.defaultStateIcon&&l.onStateIcon.iconType===l.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(x,g){x.responseText===l.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=g,I.ytdReduxBehavior.dispatch(NKu(g))):(I.setSurveyOptionValue(g,!0,"checked"),I.setSurveyOptionValue(g,!0,"selected")):(I.setSurveyOptionValue(g,!1,"checked"),I.setSurveyOptionValue(g,
!1,"selected"))});
else if(z)this.selectedNonStarOption=l,this.hideOptions=!0;else{var b=this.ytRendererBehavior.getSimpleString(l.responseText),v=!0;this.getOptionRenderers().forEach(function(x,g){I.setSurveyOptionValue(g,v,"checked");I.setSurveyOptionValue(g,!1,"selected");I.ytRendererBehavior.getSimpleString(x.responseText)===b&&(v=!1,I.setSurveyOptionValue(g,!0,"selected"))})}z=l.responseEndpoint;
var M;l.followUpCommand&&(M=_.k(l.followUpCommand,f0I));this.isSlimlineSurvey?(this.resetComponent(),_.Gb(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Gb(this.hostElement,"ytd-inline-survey-rating-select-action",[z,M])};
_.p.showSelectedOption=function(){var z=this;_.ow.addJob(function(){var l=z.getOptionRenderers()[z.slimlineSurveyRatingSelectedIndex];z.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),l)},8,100)};
_.p.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(z){var l;return(l=_.k(z,kFj))!=null?l:{}}):[]};
_.p.onUndoClick=function(){this.resetComponent();_.Gb(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.p.setSurveyOptionValue=function(z,l,I){this.notifyPath("data.ratings."+z+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+z+".ratingSurveyOptionRenderer."+I,l)};
_.p.resetComponent=function(){var z=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var l=this.getOptionRenderers(),I,b;this.firstResponseText=(b=(I=l[0])==null?void 0:I.responseText)!=null?b:null;var v,M;this.lastResponseText=(M=(v=l[l.length-1])==null?void 0:v.responseText)!=null?M:null;l.forEach(function(x,g){z.setSurveyOptionValue(g,!1,"checked");z.setSurveyOptionValue(g,!1,"selected")})};
_.vP.Object.defineProperties(EH.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
EH.prototype.onOptionChange=EH.prototype.onOptionChange;EH.prototype.dataChanged=EH.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],EH.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],EH.prototype,"firstResponseText",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"lastResponseText",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"selectedNonStarOption",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"hideOptions",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"hideUndoButton",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"disableAnimation",void 0);
_.e([_.X(),_.w("design:type",Object)],EH.prototype,"showResponseRangeText",void 0);_.e([_.X(),_.w("design:type",Object)],EH.prototype,"selectedRatingIndex",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"isSlimlineSurvey",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"isSlimlineSurveyFollowUp",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],EH.prototype,"isShortsStyle",void 0);_.e([_.X({selector:function(z){return z.ui.slimlineSurveyRatingSelectedIndex}}),
_.w("design:type",Object)],EH.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.e([_.B("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],EH.prototype,"isSingleSelect",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EH.prototype,"dataChanged",null);
_.e([_.tP("ytd-rating-survey-option-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],EH.prototype,"onOptionChange",null);_.e([_.S({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],EH);
_.r(EH,"ytd-rating-survey-renderer",function(){if(R2j!==void 0)return R2j;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return R2j=z},{mode:1});var mDA;var KoM;var tk4;var ngt=(tQ.FIRSTDAYOFWEEK+1)%7,BXn=function(z,l,I,b){var v="";if(b.selection&&e9u(b.selection))RF(z,b.selection)&&(v+=" selected");else if(b.selection&&wSx(b.selection)){var M=b.selection.selectionState||"START_DATE";RF(z,b.selection.start)&&(v+=" period-start ",M==="START_DATE"&&(v+="selected"));RF(z,b.selection.end)&&(v+=" period-end ",M==="END_DATE"&&(v+="selected"));mn(z,b.selection.start)||mn(b.selection.end,z)||(v+=" highlighted")}if(mn(l,b.start)||mn(b.end,l))v+=" disabled";b.circleToday&&
RF(l,I)&&(v+=" today");return v};var ud=function(){return _.q.apply(this,arguments)||this};
_.m(ud,_.q);_.p=ud.prototype;_.p.attached=function(){var z=this;_.IR(this,function(){z.JSC$15949_calendarMain.scrollHeight>0&&(z.calendarConfig.selection?z.scrollToDate(A_f(z.calendarConfig.selection)):z.scrollToDate(z.calendarConfig.end))})};
_.p.updateSelection=function(z){z=L_p(Object.assign({},this.calendarConfig,{selection:z}),BXn);this.splice.apply(this,["renderData.months",0,z.length].concat(_.ht(z)))};
_.p.scrollToDate=function(z){this.renderData&&(z=UEY(z,this.renderData),z!==void 0&&this.JSC$15949_calendarMain.scrollToIndex(z))};
_.p.scrollToNextMonth=function(){this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$15949_calendarMain.firstVisibleIndex===0&&this.JSC$15949_calendarMain.scrollTo(0,0);this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex-1)};
_.p.handleDayClick=function(z){_.Gb(this.hostElement,"ytd-calendar-date-clicked",[z.model.day.date])};
_.p.handleDayMouseDown=function(z){z.preventDefault();_.Gb(this.hostElement,"ytd-calendar-date-mousedown",[z.model.day.date])};
_.p.handleDayMouseUp=function(z){_.Gb(this.hostElement,"ytd-calendar-date-mouseup",[z.model.day.date])};
_.p.handleDayMouseEnter=function(z){z.preventDefault();_.Gb(this.hostElement,"ytd-calendar-date-mouseenter",[z.model.day.date])};
_.p.handleDayMouseLeave=function(z){_.Gb(this.hostElement,"ytd-calendar-date-mouseleave",[z.model.day.date])};
_.vP.Object.defineProperties(ud.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var z=this.calendarConfig,l=BXn;l=l===void 0?BXn:l;for(var I=[],b=0;b<7;b++)I.push(tQ.NARROWWEEKDAYS[(b+ngt)%7]);return{months:L_p(z,l),daysOfWeekLabel:I}}}});
_.e([_.X(),_.w("design:type",Object)],ud.prototype,"calendarConfig",void 0);_.e([_.qX("#calendar-main"),_.w("design:type",Object)],ud.prototype,"JSC$15949_calendarMain",void 0);_.e([_.B("calendarConfig"),_.w("design:type",Object),_.w("design:paramtypes",[])],ud.prototype,"renderData",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ud);
_.r(ud,"ytd-scrollable-calendar",function(){if(tk4!==void 0)return tk4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tk4=z},{mode:2});var XBj;var qnp;var Z7=function(){var z=_.q.apply(this,arguments)||this;z.hideCharCounter=!1;z.hideLabel=!1;z.noLabelFloat=!1;z.autoValidate=!0;z.invalid=!1;z.disabled=!1;z.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return z};
_.m(Z7,_.q);_.p=Z7.prototype;_.p.reset=function(z){this.value=z&&this.data?this.data.value=z:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.p.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.p.focusTextInput=function(){this.input.focus()};
_.p.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()};
_.p.valueChanged=function(){var z,l;if(((z=this.data)==null?0:z.value)||((l=this.data)==null?void 0:l.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.p.computeLabel=function(z,l){return l?"":_.ID(z)};
_.p.computeAriaLabel=function(z,l){return l?_.ID(z):""};
_.p.computeErrorMessage=function(z,l,I,b){!z&&l?z=I||this.strings.REQUIRED_LABEL:(z=_.ID(b),z=_.Np(z,"&")?"document"in _.v7?Vx_(z):j1p(z):z);return z};
_.p.computeType=function(z){return z==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.p.onTextValueChanged=function(z){this.value=z.detail.value;var l;(l=this.onValueChanged)==null||l.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.p.handleUpdateTextInputFormFieldRendererCommand=function(z){(z=_.k(z,sl0))&&this.data&&this.data.id===z.id&&(z.invalid!==void 0&&(this.invalid=z.invalid),z.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",z.invalidValueErrorMessage))};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("value-changed",this.value))};
_.p.updateInvalidFromBinding=function(z){this.invalid=z.detail.value};
_.vP.Object.defineProperties(Z7.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var z;return!((z=this.data)==null||!z.isMultiline)}}});
Z7.prototype.valueChangedForBinding=Z7.prototype.valueChangedForBinding;Z7.prototype.valueChanged=Z7.prototype.valueChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Z7.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Z7.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Z7.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],Z7.prototype,"value",void 0);_.e([_.X(),_.w("design:type",String)],Z7.prototype,"pattern",void 0);_.e([_.X(),_.w("design:type",String)],Z7.prototype,"errorMessage",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],Z7.prototype,"componentStyle",void 0);_.e([_.X(),_.w("design:type",Object)],Z7.prototype,"hideCharCounter",void 0);
_.e([_.X(),_.w("design:type",Object)],Z7.prototype,"hideLabel",void 0);_.e([_.X(),_.w("design:type",Object)],Z7.prototype,"noLabelFloat",void 0);_.e([_.X(),_.w("design:type",Function)],Z7.prototype,"onValueChanged",void 0);_.e([_.X(),_.w("design:type",Boolean)],Z7.prototype,"isMultilineOverride",void 0);_.e([_.X(),_.w("design:type",Object)],Z7.prototype,"autoValidate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Z7.prototype,"invalid",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Z7.prototype,"disabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Z7.prototype,"enableOverlayTheme",void 0);_.e([_.X({value:{REQUIRED_LABEL:_.mY("REQUIRED_LABEL",void 0,"Required")}}),_.w("design:type",Object)],Z7.prototype,"strings",void 0);_.e([_.qX("#input"),_.w("design:type",Object)],Z7.prototype,"input",void 0);
_.e([_.B("data","isMultilineOverride"),_.w("design:type",Object),_.w("design:paramtypes",[])],Z7.prototype,"isMultiline",null);_.e([_.YE("data.value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z7.prototype,"valueChanged",null);_.e([_.By("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z7.prototype,"valueChangedForBinding",null);_.e([_.Wy({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Z7);
_.r(Z7,"yt-text-input-form-field-renderer",function(){if(qnp===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;XBj===void 0&&(XBj=document.createElement("template"));var b=XBj;I.call(l,b.content.cloneNode(!0),z.content.firstChild);qnp=z}z=qnp;return z},{mode:2});var H9=function(){var z=_.q.apply(this,arguments)||this;z.data=void 0;z.selectionState="START_DATE";z.isStartDateInvalid=!1;z.isEndDateInvalid=!1;z.autoapply=!1;z.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 z};
_.m(H9,_.q);_.p=H9.prototype;_.p.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"}}}}};
_.p.focus=function(){this.startDateInput.focus()};
_.p.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Kj(this.data.selection.start),end:Kj(this.data.selection.end)})};
_.p.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.p.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Ap(this.selectionState)}};
_.p.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.p.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.p.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.p.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var z=this.calendar.calendarConfig,l=z.end;z=VE5({start:z.start,end:this.endDate||l},this.startDateInput.value||"");this.isStartDateInvalid=!z.isValid;z.isValid&&(z=z.value,this.selection=this.endDate?{start:z,end:this.endDate}:z,this.calendar.scrollToDate(z));this.updateInvalidState()}};
_.p.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var z=this.calendar.calendarConfig,l=z.start;z=VE5({start:this.startDate||l,end:z.end},this.endDateInput.value||"");this.isEndDateInvalid=!z.isValid;z.isValid&&(z=z.value,this.selection={start:this.startDate,end:z},this.calendar.scrollToDate(z));this.updateInvalidState()}};
_.p.handleCalendarDateClicked=function(z){var l=this.selection&&A_f(this.selection),I=this.selection&&W_1(this.selection);l&&!mn(z,l)&&this.selectionState==="END_DATE"?(this.selection={start:l,end:z},this.selectionState="START_DATE"):(I&&!mn(I,z)?this.selection={start:z,end:I}:this.selection=z,this.selectionState="END_DATE")};
_.p.handleCalendarDateMouseDown=function(z){this.selection&&!e9u(this.selection)&&(this.dragPivot=RF(z,this.selection.start)?this.selection.end:RF(z,this.selection.end)?this.selection.start:z)};
_.p.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.p.handleCalendarDateMouseEnter=function(z){this.dragPivot&&(this.selection={start:function(l,I){return mn(l,I)?l:I}(this.dragPivot,z),
end:function(l,I){return mn(l,I)?I:l}(this.dragPivot,z)},this.dragPivot||(this.selectionState="START_DATE"))};
_.p.handleCalendarDateMouseLeave=function(){};
_.p.handleCalendarSubmitDateRange=function(){this.selection&&!e9u(this.selection)&&_.Gb(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.p.updateInvalidState=function(){var z=function(l,I){I?l.setAttribute("invalid",""):l.removeAttribute("invalid")};
z(this.startDateInput,this.isStartDateInvalid);z(this.endDateInput,this.isEndDateInvalid)};
_.p.updateDateStrings=function(){this.selection&&(e9u(this.selection)?$Eu(this.selection):($Eu(this.selection.start),$Eu(this.selection.end)))};
_.p.updateCalendarSelection=function(z){this.calendar.updateSelection(Object.assign({},z,{selectionState:this.selectionState}))};
_.p.updateIsStartDateInvalidFromBinding=function(z){this.isStartDateInvalid=z.detail.value};
_.p.updateIsEndDateInvalidFromBinding=function(z){this.isEndDateInvalid=z.detail.value};
_.p.updateStartDateStringFromBinding=function(){};
_.p.updateEndDateStringFromBinding=function(){};
_.vP.Object.defineProperties(H9.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Kj(this.data.dateRangeStart),end:Kj(this.data.dateRangeEnd),selection:{start:Kj(this.data.selection.start),end:Kj(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&A_f(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&W_1(this.selection)}}});
H9.prototype.resetTextboxes=H9.prototype.resetTextboxes;H9.prototype.observeSelection=H9.prototype.observeSelection;H9.prototype.dataChanged=H9.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],H9.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#calendar"),_.w("design:type",Object)],H9.prototype,"calendar",void 0);
_.e([_.qX("#start-date"),_.w("design:type",Object)],H9.prototype,"startDateInput",void 0);_.e([_.qX("#end-date"),_.w("design:type",Object)],H9.prototype,"endDateInput",void 0);_.e([_.X(),_.w("design:type",Object)],H9.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],H9.prototype,"selection",void 0);_.e([_.X(),_.w("design:type",String)],H9.prototype,"selectionState",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],H9.prototype,"calendarConfig",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],H9.prototype,"errorMessage",null);_.e([_.B("selection"),_.w("design:type",Object),_.w("design:paramtypes",[])],H9.prototype,"startDate",null);_.e([_.B("selection"),_.w("design:type",Object),_.w("design:paramtypes",[])],H9.prototype,"endDate",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H9.prototype,"dataChanged",null);
_.e([_.By("selection","selectionState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H9.prototype,"observeSelection",null);_.e([_.By("selectionState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H9.prototype,"resetTextboxes",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],H9);
_.r(H9,"ytd-date-period-picker-renderer",function(){if(KoM!==void 0)return KoM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return KoM=z},{mode:1});var yJ=function(){var z=_.q.apply(this,arguments)||this;var l={};z.actionMap=(l["ytd-date-period-picker-apply"]="handleDateRangeUpdated",l);return z};
_.m(yJ,_.q);yJ.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
yJ.prototype.handleDateRangeUpdated=function(){};
_.e([_.X(),_.w("design:type",Object)],yJ.prototype,"data",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],yJ.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yJ.prototype,"rendererstamperBehavior",void 0);_.e([_.S({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],yJ);
_.r(yJ,"ytd-report-history-section-header-renderer",function(){if(mDA!==void 0)return mDA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return mDA=z},{mode:1});var ibM;var Fou;var QOu;var fg=function(){return _.q.apply(this,arguments)||this};
_.m(fg,_.q);_.vP.Object.defineProperties(fg.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?0:(l=z.icon)==null?0:l.iconType)?_.Re(this.data.icon.iconType):""}}});
_.e([_.X(),_.w("design:type",Object)],fg.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],fg.prototype,"icon",null);_.e([_.S({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],fg);
_.r(fg,"ytd-report-history-table-text-cell-renderer",function(){if(QOu!==void 0)return QOu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return QOu=z},{mode:1});var Cg=function(){return _.q.apply(this,arguments)||this};
_.m(Cg,_.q);Cg.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Cg.prototype,"data",void 0);_.e([_.S({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Cg);
_.r(Cg,"ytd-report-history-table-reason-cell-renderer",function(){if(Fou!==void 0)return Fou;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Fou=z},{mode:1});var kV=function(){return _.q.apply(this,arguments)||this};
_.m(kV,_.q);kV.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],kV.prototype,"rendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kV.prototype,"data",void 0);_.e([_.S({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],kV);
_.r(kV,"ytd-report-history-table-cell-renderer",function(){if(ibM!==void 0)return ibM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return ibM=z},{mode:1});var YnI;var R7=function(){var z=_.q.apply(this,arguments)||this;z.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 z};
_.m(R7,_.q);R7.prototype.onDataChanged=function(){var z;if((z=this.data)==null?0:z.style)this.componentStyle=this.getStyleName(this.data.style)};
R7.prototype.getCellForColumn=function(z){return this.cells.find(function(l){var I;return((I=_.k(l==null?void 0:l.cell,KfI)||_.k(l==null?void 0:l.cell,mxu))==null?void 0:I.columnId)===z.type})};
R7.prototype.getClassForColumn=function(z){switch(z){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
R7.prototype.getStyleName=function(z){switch(z){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.vP.Object.defineProperties(R7.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var z;return(((z=this.data)==null?void 0:z.cells)||[]).map(function(l){return _.k(l,RJ_)})}}});
R7.prototype.onDataChanged=R7.prototype.onDataChanged;_.e([_.X(),_.w("design:type",Object)],R7.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Array)],R7.prototype,"columnRenderData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],R7.prototype,"componentStyle",void 0);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],R7.prototype,"cells",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R7.prototype,"onDataChanged",null);_.e([_.S({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],R7);
_.r(R7,"ytd-report-history-table-row-renderer",function(){if(YnI!==void 0)return YnI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YnI=z},{mode:1});var TXI;var cBz;var jTQ={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},J_5={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var md=function(){return _.q.apply(this,arguments)||this};
_.m(md,_.q);md.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"}}}}}};
md.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.vP.Object.defineProperties(md.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.columns)?vkY(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return IGY(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var z=this.tableSpec,l=jTQ;l=l===void 0?J_5:l;l=bVp(z.columnDimensions,z.columnsToShow||[],l);z=0;l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,z+=I.minWidth+I.paddingLeft+I.paddingRight;return z}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.e([_.t(_.C6),_.w("design:type",Object)],md.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],md.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],md.prototype,"tableSpec",null);_.e([_.B("tableSpec"),_.w("design:type",Array),_.w("design:paramtypes",[])],md.prototype,"columnRenderData",null);
_.e([_.B("tableSpec"),_.w("design:type",Number),_.w("design:paramtypes",[])],md.prototype,"totalMinWidth",null);_.e([_.B("totalMinWidth"),_.w("design:type",String),_.w("design:paramtypes",[])],md.prototype,"tableWidthStyle",null);_.e([_.S({is:"ytd-table-renderer",disableElementRegistration:!0})],md);
_.r(md,"ytd-table-renderer",function(){if(cBz!==void 0)return cBz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return cBz=z},{mode:1});var Kg=function(){return _.q.apply(this,arguments)||this};
_.m(Kg,_.q);Kg.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Kg.prototype,"data",void 0);_.e([_.S({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Kg);
_.r(Kg,"ytd-report-reason-history-modal-renderer",function(){if(TXI!==void 0)return TXI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return TXI=z},{mode:1});var Snu;var dD_;var oen;var tw=function(){return _.q.apply(this,arguments)||this};
_.m(tw,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],tw.prototype,"data",void 0);_.e([_.S({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],tw);
_.r(tw,"ytd-profile-column-stats-entry-renderer",function(){if(oen!==void 0)return oen;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return oen=z},{mode:1});var P6A;var B9=function(){return _.q.apply(this,arguments)||this};
_.m(B9,_.q);B9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],B9.prototype,"data",void 0);_.e([_.S({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],B9);
_.r(B9,"ytd-profile-column-stats-renderer",function(){if(P6A!==void 0)return P6A;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return P6A=z},{mode:1});var h2A;var Xv=function(){return _.q.apply(this,arguments)||this};
_.m(Xv,_.q);_.vP.Object.defineProperties(Xv.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.useThumbnailSize)return 80;var l,I;z=(l=this.data)==null?void 0:(I=l.thumbnail)==null?void 0:I.thumbnails;var b;return z&&((b=z[0])==null?void 0:b.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.useThumbnailSize)return 80;var l,I;z=(l=this.data)==null?void 0:(I=l.thumbnail)==null?void 0:I.thumbnails;var b;return z&&((b=z[0])==null?void 0:b.height)||80}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xv.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],Xv.prototype,"componentStyle",void 0);_.e([_.B("data.useThumbnailSize"),_.w("design:type",Object),_.w("design:paramtypes",[])],Xv.prototype,"thumbnailWidth",null);
_.e([_.B("data.useThumbnailSize"),_.w("design:type",Object),_.w("design:paramtypes",[])],Xv.prototype,"thumbnailHeight",null);_.e([_.S({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Xv);
_.r(Xv,"ytd-profile-column-user-info-renderer",function(){if(h2A!==void 0)return h2A;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return h2A=z},{mode:1});var q_=function(){return _.q.apply(this,arguments)||this};
_.m(q_,_.q);q_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],q_.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],q_.prototype,"componentStyle",void 0);_.e([_.S({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],q_);
_.r(q_,"ytd-profile-column-renderer",function(){if(dD_!==void 0)return dD_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return dD_=z},{mode:1});var id=function(){var z=_.q.apply(this,arguments)||this;z.componentStyle="NON_CENTERED_PROFILE";return z};
_.m(id,_.q);id.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
id.prototype.getIcon=function(z){return z?"settings:"+z.toLowerCase():null};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],id.prototype,"data",void 0);_.e([_.S({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],id);
_.r(id,"ytd-page-introduction-renderer",function(){if(Snu!==void 0)return Snu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Snu=z},{mode:1});var sOI;var Fv=function(){return _.q.apply(this,arguments)||this};
_.m(Fv,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Fv.prototype,"data",void 0);_.e([_.S({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Fv);
_.r(Fv,"ytd-report-description-renderer",function(){if(sOI!==void 0)return sOI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sOI=z},{mode:1});var rBw;var $D4;var QJ=function(){return _.q.apply(this,arguments)||this};
_.m(QJ,_.q);QJ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],QJ.prototype,"data",void 0);_.e([_.S({is:"ytd-video-report-renderer",disableElementRegistration:!0})],QJ);
_.r(QJ,"ytd-video-report-renderer",function(){if($D4!==void 0)return $D4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $D4=z},{mode:1});var e2u;_.sW("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.sW("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var YV=function(){return _.q.apply(this,arguments)||this};
_.m(YV,_.q);YV.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]]"}}}}}};
YV.prototype.computeMessageStyle=function(z){return z};
YV.prototype.computeButtonOverride=function(z){var l;if((z==null?0:(l=z.style)==null?0:l.value)&&z.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],YV.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],YV.prototype,"shelf",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],YV.prototype,"panel",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.w("design:type",Boolean)],YV.prototype,"componentStyle",void 0);_.e([_.X({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],YV.prototype,"buttonOverride",void 0);_.e([_.S({is:"ytd-message-renderer",disableElementRegistration:!0})],YV);
_.r(YV,"ytd-message-renderer",function(){if(e2u!==void 0)return e2u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return e2u=z},{mode:1});var T5=function(){return _.q.apply(this,arguments)||this};
_.m(T5,_.q);T5.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"}}}};
T5.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
T5.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.vP.Object.defineProperties(T5.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!(((z=this.data)==null?0:z.header)&&((l=this.data)==null?0:l.table))}}});
T5.prototype.onRequestError=T5.prototype.onRequestError;_.e([_.t(_.C6),_.w("design:type",Object)],T5.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],T5.prototype,"data",void 0);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],T5.prototype,"isUnifiedReportHistory",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],T5.prototype,"onRequestError",null);_.e([_.S({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],T5);
_.r(T5,"ytd-report-history-section-renderer",function(){if(rBw!==void 0)return rBw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return rBw=z},{mode:1});var wBu;var c9=function(){var z=_.q.apply(this,arguments)||this;z.answerExpanded=!1;return z};
_.m(c9,_.q);c9.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],c9.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],c9.prototype,"answerExpanded",void 0);_.e([_.S({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],c9);
_.r(c9,"ytd-handles-claiming-faq-renderer",function(){if(wBu!==void 0)return wBu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return wBu=z},{mode:1});var AB_;var WoA=function(){return _.q.apply(this,arguments)||this};
_.m(WoA,_.q);_.e([_.X(),_.w("design:type",Object)],WoA.prototype,"data",void 0);_.e([_.S({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],WoA);
_.r(WoA,"ytd-handles-claiming-faq-section-renderer",function(){if(AB_!==void 0)return AB_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return AB_=z},{mode:1});var neA;var Sz=function(){var z=_.q.apply(this,arguments)||this;z.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";z.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";z.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";z.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";z.leftSquiggly=z.leftSquigglyLight;z.rightSquiggly=z.rightSquigglyLight;
z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};z.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return z};
_.m(Sz,_.q);_.p=Sz.prototype;_.p.updateLeftSquigglyStyle=function(){_.R8(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.p.updateRightSquigglyStyle=function(){_.R8(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.p.ready=function(){var z=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(z)};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&(this.set("isDarkTheme",z),z?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Sz.prototype.updateRightSquigglyStyle=Sz.prototype.updateRightSquigglyStyle;Sz.prototype.updateLeftSquigglyStyle=Sz.prototype.updateLeftSquigglyStyle;_.e([_.X(),_.w("design:type",Object)],Sz.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Sz.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",String)],Sz.prototype,"leftSquiggly",void 0);_.e([_.X(),_.w("design:type",String)],Sz.prototype,"rightSquiggly",void 0);
_.e([_.By("leftSquiggly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Sz.prototype,"updateLeftSquigglyStyle",null);_.e([_.By("rightSquiggly"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Sz.prototype,"updateRightSquigglyStyle",null);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Sz.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Sz.prototype,"actionButtonOverride",void 0);_.e([_.S({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Sz);
_.r(Sz,"ytd-handles-claiming-header-renderer",function(){if(neA!==void 0)return neA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return neA=z},{mode:1});var LoA;var dN=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};z.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";z.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";z.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";z.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
z.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";z.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";z.image0SquigglyBackground=z.image0LightSquigglyBackground;z.image1SquigglyBackground=z.image1LightSquigglyBackground;z.image3SquigglyBackground=z.image3LightSquigglyBackground;return z};
_.m(dN,_.q);_.p=dN.prototype;_.p.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.p.onDataChanged=function(){this.updateTitleAndImages()};
_.p.onThemeChanged=function(){this.updateTitleAndImages()};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&(this.isDarkTheme=z)};
_.p.updateImage0SquigglyBackground=function(){_.R8(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.p.updateImage1SquigglyBackground=function(){_.R8(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.p.updateImage3SquigglyBackground=function(){_.R8(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.p.updateTitleAndImages=function(){var z,l;((z=this.data)==null?void 0:(l=z.titleImages)==null?void 0:l.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
dN.prototype.updateImage3SquigglyBackground=dN.prototype.updateImage3SquigglyBackground;dN.prototype.updateImage1SquigglyBackground=dN.prototype.updateImage1SquigglyBackground;dN.prototype.updateImage0SquigglyBackground=dN.prototype.updateImage0SquigglyBackground;dN.prototype.onThemeChanged=dN.prototype.onThemeChanged;dN.prototype.onDataChanged=dN.prototype.onDataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],dN.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],dN.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"title0",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"title1",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"title2",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"title3",void 0);
_.e([_.X(),_.w("design:type",Object)],dN.prototype,"title4",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"image0",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"image1",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"image2",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"image3",void 0);_.e([_.X(),_.w("design:type",Object)],dN.prototype,"image4",void 0);_.e([_.X(),_.w("design:type",String)],dN.prototype,"image0SquigglyBackground",void 0);
_.e([_.X(),_.w("design:type",String)],dN.prototype,"image1SquigglyBackground",void 0);_.e([_.X(),_.w("design:type",String)],dN.prototype,"image3SquigglyBackground",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dN.prototype,"onDataChanged",null);_.e([_.By("isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dN.prototype,"onThemeChanged",null);
_.e([_.By("image0SquigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dN.prototype,"updateImage0SquigglyBackground",null);_.e([_.By("image1SquigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dN.prototype,"updateImage1SquigglyBackground",null);
_.e([_.By("image3SquigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dN.prototype,"updateImage3SquigglyBackground",null);_.e([_.S({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],dN);
_.r(dN,"ytd-handles-claiming-title-images-section-renderer",function(){if(LoA!==void 0)return LoA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return LoA=z},{mode:1});var UD0;var o7=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(o7,_.q);o7.prototype.ready=function(){var z=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(z)};
o7.prototype.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&this.set("isDarkTheme",z)};
o7.prototype.onCopyButtonClick=function(){var z=this,l,I,b;return _.O(function(v){return(l=z.data)!=null&&l.primaryChannelUrl?v.yield(navigator.clipboard.writeText(((I=z.data)==null?0:I.encodedChannelUrl)?z.data.encodedChannelUrl:"https://"+_.ID((b=z.data)==null?void 0:b.primaryChannelUrl)),0):v.jumpTo(0)})};
_.e([_.X(),_.w("design:type",Object)],o7.prototype,"data",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],o7.prototype,"isDarkTheme",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],o7.prototype,"ytActionHandlerBehavior",void 0);_.e([_.S({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],o7);
_.r(o7,"ytd-handles-claiming-update-social-renderer",function(){if(UD0!==void 0)return UD0;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return UD0=z},{mode:1});var aBA;var P9=function(){var z=_.q.apply(this,arguments)||this;z.JSC$16043_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";z.JSC$16043_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};z.squigglyBackground=z.JSC$16043_squigglyBackgroundLight;return z};
_.m(P9,_.q);P9.prototype.updateSquigglyBackgroundStyle=function(){_.R8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
P9.prototype.ready=function(){var z=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",z);this.squigglyBackground=z?this.JSC$16043_squigglyBackgroundDark:this.JSC$16043_squigglyBackgroundLight};
P9.prototype.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&(this.set("isDarkTheme",z),this.squigglyBackground=z?this.JSC$16043_squigglyBackgroundDark:this.JSC$16043_squigglyBackgroundLight)};
P9.prototype.updateSquigglyBackgroundStyle=P9.prototype.updateSquigglyBackgroundStyle;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],P9.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],P9.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],P9.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",String)],P9.prototype,"squigglyBackground",void 0);_.e([_.By("squigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],P9.prototype,"updateSquigglyBackgroundStyle",null);_.e([_.S({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],P9);
_.r(P9,"ytd-handles-claiming-vanity-info-renderer",function(){if(aBA!==void 0)return aBA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return aBA=z},{mode:1});var Vkj;var hw=function(){var z=_.q.apply(this,arguments)||this;z.JSC$16046_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";z.JSC$16046_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";z.squigglyBackground=z.JSC$16046_squigglyBackgroundLight;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(hw,_.q);_.p=hw.prototype;_.p.ready=function(){var z=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(z)};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&(this.set("isDarkTheme",z),this.squigglyBackground=z?this.JSC$16046_squigglyBackgroundDark:this.JSC$16046_squigglyBackgroundLight)};
_.p.updateSquigglyBackgroundStyle=function(){_.R8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.p.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.p.detached=function(){this.stop()};
_.p.stop=function(){this.playerElement.stop()};
_.p.setupVideoPlayer=function(){var z=this,l,I;return _.O(function(b){l=z.data.videoId;I="http://i1.ytimg.com/vi/"+l+"/maxresdefault.jpg";z.playerElement.loadVideoWithPlayerVars({video_id:l,iurlhq:I});_.qe(b)})};
hw.prototype.onDataChanged=hw.prototype.onDataChanged;hw.prototype.updateSquigglyBackgroundStyle=hw.prototype.updateSquigglyBackgroundStyle;_.e([_.X({value:!1}),_.w("design:type",Boolean)],hw.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",String)],hw.prototype,"squigglyBackground",void 0);_.e([_.qX("#player"),_.w("design:type",Object)],hw.prototype,"playerElement",void 0);_.e([_.X(),_.w("design:type",Object)],hw.prototype,"data",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],hw.prototype,"ytActionHandlerBehavior",void 0);_.e([_.By("squigglyBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hw.prototype,"updateSquigglyBackgroundStyle",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hw.prototype,"onDataChanged",null);
_.e([_.S({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],hw);
_.r(hw,"ytd-handles-claiming-video-item-renderer",function(){if(Vkj!==void 0)return Vkj;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Vkj=z},{mode:1});var jOp;var rN=function(){var z=_.F6.apply(this,arguments)||this;z.dragging=!1;z.dragMouseStart=0;z.dragOffsetStart=0;z.containerWidthDiff=0;z.boundPrevClick=function(){z.set("offset",sH(z,z.offset-(z.scrollDistance||320)))};
z.boundNextClick=function(){z.set("offset",sH(z,z.offset+(z.scrollDistance||320)))};
z.boundScrollContainerMouseDown=function(l){z.dragMouseStart=l.clientX;z.dragOffsetStart=z.offset;z.dragging=!0};
z.boundScrollContainerDrag=function(l){z.dragging&&z.set("offset",sH(z,z.dragOffsetStart-(l.clientX-z.dragMouseStart)))};
z.boundMouseUp=function(){z.onMouseUp()};
z.boundWheelScroll=function(l){var I=0;Math.abs(l.deltaX)>=Math.abs(l.deltaY)?I=l.deltaX:l.shiftKey&&(I=l.deltaY);I!==0&&(z.offset+=I,l.stopPropagation(),l.preventDefault())};
z.boundChipCloudChipScrollIntoView=function(l){(l=l.detail)&&z.scrollChipIntoView(l)};
return z};
_.m(rN,_.F6);rN.prototype.attached=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container");z.addEventListener("wheel",this.boundWheelScroll);z.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);z.style.touchAction="pan-y";z.addEventListener("pointerdown",this.boundScrollContainerMouseDown);z.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
rN.prototype.detached=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container");z.removeEventListener("wheel",this.boundWheelScroll);z.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);z.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);z.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
rN.prototype.reset=function(){this.set("offset",0);_.IR(this,this.setContainerWidthDiff);$V(this)};
var sH=function(z,l){return Math.min(Math.max(l,0),z.containerWidthDiff)};
rN.prototype.onMouseUp=function(){this.dragging=!1};
rN.prototype.transformContainer=function(){this.offset=sH(this,this.offset);var z=_.sZ("HTML_DIR")==="rtl"?"":"-";_.Hy(this.hostElement).querySelector("#chips").style.transform="translateX("+z+this.offset+"px)";$V(this)};
var $V=function(z){_.IR(z,z.setButtonsState)};
rN.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=sH(this,this.offset));this.atStart=this.offset<=0};
rN.prototype.setContainerWidthDiff=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container"),l=_.Hy(this.hostElement).querySelector("#chips");z&&l&&(this.containerWidthDiff=l.clientWidth-z.clientWidth)};
rN.prototype.scrollChipIntoView=function(z){var l=_.Hy(this.hostElement).querySelector("#scroll-container");if(l){var I=this.atStart?0:106,b=this.atEnd?0:106;z.offsetLeft<this.offset+I?this.offset=sH(this,z.offsetLeft-I):z.offsetLeft+z.clientWidth>this.offset+l.clientWidth-b&&(this.offset=sH(this,z.offsetLeft+z.clientWidth+b-l.clientWidth))}};
rN.prototype.transformContainer=rN.prototype.transformContainer;_.e([_.X({value:0}),_.w("design:type",Number)],rN.prototype,"offset",void 0);_.e([_.X({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],rN.prototype,"atStart",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rN.prototype,"atEnd",void 0);_.e([_.X(),_.w("design:type",Number)],rN.prototype,"scrollDistance",void 0);
_.e([_.By("offset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rN.prototype,"transformContainer",null);_.e([_.Q5()],rN);var JBn;var z0z;var bCz=_.P(function(z){var l=z.data;z=_.D(_.Z_(!1,void 0,"icHmSe"));var I=z.next().value,b=z.next().value;z={};z=_.m9("ytChipShapeChip",function(){a:switch(l==null?void 0:l().state){case 0:var M="ytChipShapeActive";break a;case 1:M="ytChipShapeDisabled";break a;default:M="ytChipShapeInactive"}return M},function(){var M=l().type===1||l().type===2,x=l();
return M||x!=null&&x.startIcon?x==null||!x.startIcon||x!=null&&x.text?M?"ytChipShapeEndIconPadding":(x==null?0:x.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(z.ytChipShapeFocused=function(){var M;
return I()&&((M=l())==null?void 0:M.state)!==1},z));
var v=function(M){if((l==null?void 0:l().state)!==1){var x,g;(g=(x=l()).onTap)==null||g.call(x,M)}};
return _.N("chip-shape",{class:"ytChipShapeHost","on:focusin":_.KK(function(){var M=_.pG().resolve(_.MB(_.T$));if(M){b(M.isKeyBoardInUse());var x,g;(g=(x=l()).onFocusIn)==null||g.call(x)}return!1}),
"on:focusout":_.KK(function(){b(!1);return!1})},_.N(leA,{shouldWrapInButton:function(){return l().type!==2},
selected:function(){return l().state===0},
onClick:v,isDropdown:function(){return l().type===1},
accessibilityLabel:function(){return l().type===1?void 0:l().accessibilityLabel}},_.N("div",{class:z},_.N(_.E,{cond:function(){return l().startIcon},
then:function(){return _.N(_.qt,{icon:function(){var M;return(M=l())==null?void 0:M.startIcon},
className:function(){return l().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return l().text},_.N(Iej,{shape:l,
onClick:v}),_.N(_.SD,{model:{borderRadius:"8px"}}))))},"Sb");
bCz.idomCompat=!0;var leA=_.P(function(z){var l=_.KK(function(I){z.onClick(I);return!1});
return _.N(_.E,{cond:z.shouldWrapInButton,then:function(){return _.N("button",{class:"ytChipShapeButtonReset","on:click":l,role:function(){return z.isDropdown()?"combobox":"tab"},
"aria-label":z.accessibilityLabel,"aria-selected":z.selected},z.children)},
else:function(){return z.children}})},"Tb"),Iej=_.P(function(z){var l=z.shape;
var I=z.onClick;var b=_.KK(function(v){I(v);return!1});
return _.N(_.Q7,null,_.N(_.is,{when:function(){return l().type===1}},function(){return _.N(_.qt,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.N(_.is,{when:function(){return l().type===2}},function(){return _.N("button",{class:"ytChipShapeButtonReset",
"on:click":b},_.N(_.qt,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.N(_.is,{when:function(){return l().type===0}},function(){return _.N(_.xP,null)}))},"Ub");_.uO(bCz,"chip-shape",{props:{data:_.mB}});var ez=function(){var z=_.q.apply(this,arguments)||this;z.disableDeselectEvent=!1;z.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return z};
_.m(ez,_.q);_.p=ez.prototype;_.p.onSelectChipCommand=function(z){if(!this.selected&&this.data&&(z=_.k(z,Qlj),z.targetId&&z.targetId===this.data.targetId))this.onTap()};
_.p.onFilterChipTransformCommand=function(z){if(!this.selected&&this.data){var l;(z=(l=_.k(z,KJu))==null?void 0:l.chipUniqueId)&&z===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.p.dataChanged=function(){var z=this;_.IR(this,function(){z.data&&z.data.isSelected&&!z.selected&&(z.scrollChipIntoView(),z.onTap())})};
_.p.computeChipStyle=function(z){return z!=null?z:"STYLE_DEFAULT"};
_.p.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Gb(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Gb(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.p.onFocus=function(){var z=_.pG().resolve(_.MB(_.T$));z&&z.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.p.scrollChipIntoView=function(){_.gC(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.vP.Object.defineProperties(ez.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return gkQ({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ez.prototype.onFocus=ez.prototype.onFocus;ez.prototype.onTap=ez.prototype.onTap;ez.prototype.dataChanged=ez.prototype.dataChanged;_.e([_.t(_.wB),_.w("design:type",Object)],ez.prototype,"ironButtonState",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ez.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ez.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.rB),_.w("design:type",Object)],ez.prototype,"ironA11yKeysBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ez.prototype,"disableDeselectEvent",void 0);_.e([_.X(),_.w("design:type",Object)],ez.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.icon"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ez.prototype,"hasIcon",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.uniqueId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ez.prototype,"isGnomeChip",null);_.e([_.X({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.w("design:type",String)],ez.prototype,"chipStyle",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],ez.prototype,"selected",void 0);
_.e([_.B("data","selected"),_.w("design:type",Object),_.w("design:paramtypes",[])],ez.prototype,"chipShapeData",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ez.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ez.prototype,"onTap",null);
_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ez.prototype,"onFocus",null);_.e([_.Wy({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ez);
_.r(ez,"yt-chip-cloud-chip-renderer",function(){if(z0z===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;JBn===void 0&&(JBn=document.createElement("template"));var b=JBn;I.call(l,b.content.cloneNode(!0),z.content.firstChild);z0z=z}z=z0z;return z},{mode:2});var wN=function(){var z=_.q.apply(this,arguments)||this;z.isDarkTheme=!1;z.notSticky=!1;z.transparentBackground=!1;z.shouldHide=!1;z.disableSticky=!1;z.fluidWidth=!1;z.isClipList=!1;z.defaultChipIndex=0;z.isPlaylist=!1;z.playlistVotingAnimationEnabled=_.C("web_enable_voting_animation");z.toolbarHeight=0;z.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return z};
_.m(wN,_.q);_.p=wN.prototype;
_.p.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.p.attached=function(){var z=this;document.addEventListener("scroll",_.KJ(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var l;this.toolbarHeight=((l=document.querySelector("ytd-masthead"))==null?void 0:l.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){z.handleIntersect(I)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){z.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){var z;(z=this.intersectionObserver)==null||z.disconnect();var l;(l=this.resizeObserver)==null||l.disconnect();document.removeEventListener("scroll",_.KJ(this,this.updateChipBarWidthAndTop))};
_.p.dataChanged=function(){var z=this,l,I,b;((b=_.k((l=this.data)==null?void 0:(I=l.contents)==null?void 0:I[0],XfA))==null?void 0:b.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var v=this.findSelectedChipIndex();this.selectedIndex!==v&&(this.selectedIndex=-1);_.IR(this,function(){z.selectedIndex=v;z.updating=!1;z.ytScrollableChipCloudBehavior.reset()})};
_.p.findSelectedChipIndex=function(){var z;if((z=this.data)==null||!z.contents)return 0;z=this.data.contents;for(var l=0;l<z.length;l++){var I=void 0;if((I=_.k(z[l],XfA))==null?0:I.isSelected)return l}return 0};
_.p.computeStyle=function(z){return z};
_.p.handleChipCloudChipSelectAction=function(z){z=this.JSC$16067_chipsSelector.indexOf(z);z>-1&&this.JSC$16067_chipsSelector.selectIndex(z)};
_.p.handleChipCloudChipDeselectAction=function(){if(_.C("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],XfA))==null?void 0:I.navigationEndpoint;b&&_.Gb(this.hostElement,"yt-browse-section-list-reload-endpoint",[b]);this.JSC$16067_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.p.onGuideIsExpandedChanged=function(){var z=this.ytScrollableChipCloudBehavior;_.IR(z,z.setContainerWidthDiff);$V(this.ytScrollableChipCloudBehavior)};
_.p.onResize=function(){var z=this.ytScrollableChipCloudBehavior;_.IR(z,z.setContainerWidthDiff);$V(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.p.handleIntersect=function(z){this.notSticky=this.isChannelPageGrid||this.disableSticky||z[0].intersectionRatio===1};
_.p.updateDimensions=function(){var z=this.ytRendererBehavior.parentComponent;if(z){var l,I=(l=z.headerElement)!=null?l:z;_.R8(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.p.updateSelectedIndexFromBinding=function(z){this.selectedIndex=z.detail.value};
_.p.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var z;(z=this.sortFilterHeaderRendererElement)==null||z.setAttribute("is-playlist-page-with-filters","")}};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Z6u(!this.notSticky))};
_.vP.Object.defineProperties(wN.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 z,l,I=(z=this.data)==null?void 0:(l=z.contents)==null?void 0:l.find(function(b){return _.k(b,YEu)});
return{sortFilterHeaderRenderer:_.k(I,YEu)}}}});
wN.prototype.dispatchChipBarIsSticky=wN.prototype.dispatchChipBarIsSticky;wN.prototype.isPlaylistPageChanged=wN.prototype.isPlaylistPageChanged;wN.prototype.updateChipBarWidthAndTop=wN.prototype.updateChipBarWidthAndTop;wN.prototype.onResize=wN.prototype.onResize;wN.prototype.onGuideIsExpandedChanged=wN.prototype.onGuideIsExpandedChanged;wN.prototype.dataChanged=wN.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],wN.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],wN.prototype,"ironResizableBehavior",void 0);_.e([_.t(),_.w("design:type",rN)],wN.prototype,"ytScrollableChipCloudBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],wN.prototype,"ytdReduxBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],wN.prototype,"data",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],wN.prototype,"selectedIndex",void 0);_.e([_.X({value:320}),_.w("design:type",Number)],wN.prototype,"scrollDistance",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"notSticky",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"transparentBackground",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.w("design:type",String)],wN.prototype,"componentStyle",void 0);_.e([_.X({selector:_.MCk}),_.w("design:type",Boolean)],wN.prototype,"guideIsExpanded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"shouldHide",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"disableSticky",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"fluidWidth",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"isClipList",void 0);_.e([_.X(),_.w("design:type",Object)],wN.prototype,"defaultChipIndex",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wN.prototype,"isPlaylist",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],wN.prototype,"playlistVotingAnimationEnabled",void 0);_.e([_.qX("#chips"),_.w("design:type",Object)],wN.prototype,"JSC$16067_chipsSelector",void 0);_.e([_.qX("ytd-sort-filter-header-renderer"),_.w("design:type",HTMLElement)],wN.prototype,"sortFilterHeaderRendererElement",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],wN.prototype,"updating",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wN.prototype,"dataChanged",null);_.e([_.By("guideIsExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wN.prototype,"onGuideIsExpandedChanged",null);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wN.prototype,"onResize",null);
_.e([_.YE("isChannelPageGrid","disableSticky","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wN.prototype,"updateChipBarWidthAndTop",null);_.e([_.B("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wN.prototype,"isChannelPageGrid",null);_.e([_.B("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wN.prototype,"isHashtagLandingPage",null);
_.e([_.By("isPlaylistPage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wN.prototype,"isPlaylistPageChanged",null);_.e([_.B("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wN.prototype,"isPlaylistPage",null);_.e([_.B("componentStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wN.prototype,"isDisableDeselectEvent",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],wN.prototype,"sortFilterHeaderRendererData",null);_.e([_.X({reflectToAttribute:!0,selector:_.N31}),_.w("design:type",String)],wN.prototype,"frostedGlassMode",void 0);_.e([_.By("notSticky"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wN.prototype,"dispatchChipBarIsSticky",null);_.e([_.S({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],wN);
_.r(wN,"ytd-feed-filter-chip-bar-renderer",function(){if(jOp!==void 0)return jOp;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return jOp=z},{mode:1});var vou;var Mfz=_.P(function(z){var l=z.data;var I=z.buttonIndex;var b=z.selectedIndex;var v=z.onSelect;var M=function(){return I()===b()},x=function(){var g,G;
return(G=(g=l().text)==null?void 0:g.content)!=null?G:""};
z=_.xI7();return _.N("yt-toggleable-image-button-view-model",{class:function(){var g={};g=(g.toggleableImageButtonViewModelHost=!0,g[""]=!0,g.toggleableImageButtonViewModelSemiTransparent=b()!==-1&&!M(),g);return _.sB(g)},
tabindex:0,"aria-label":x,"aria-pressed":M,role:"button","on:keydown":z,"on:click":_.KK(function(){v(l().onSubmitCommand);return!1})},_.N(_.E,{cond:function(){return l().logo},
then:function(g){return _.N(_.pK,{data:g,className:function(){var G={};G=(G.toggleableImageButtonViewModelImage=!0,G.toggleableImageButtonViewModelCircularRadius=!(!l().backgroundColor||!l().backgroundColorDarkMode),G.toggleableImageButtonViewModelGradientRing=!!(M()&&l().backgroundColor&&l().backgroundColorDarkMode),G);return _.sB(G)},
alt:x,useWidth:!1,style:function(){if(M()&&l().backgroundColor&&l().backgroundColorDarkMode){var G=VX(Number(l().backgroundColorDarkMode),"1");var u=VX(Number(l().backgroundColor),"1");G="background: linear-gradient(180deg,"+G+","+u+") border-box;"}else G="";return G}})}}),_.N(_.SD,{model:{borderRadius:"16px"}}),_.N("p",{class:function(){var g={};
g=(g.toggleableImageButtonViewModelLabel=!0,g.toggleableImageButtonViewModelBoldText=M(),g);return _.sB(g)}},_.N(_.Rf,{text:function(){return l().text}})))},"Vb");
Mfz.idomCompat=!0;var DCA=_.P(function(z){var l=z.data;z=_.D(_.Z_({index:-1,command:{}},void 0,"GM3umb"));var I=z.next().value,b=z.next().value;return _.N("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.N("div",{class:"nudgeFormViewModelFormOptions"},_.N(_.TS,{data:function(){return l().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(v,M){return _.N(Mfz,{data:v.data,buttonIndex:M,selectedIndex:function(){return I().index},
onSelect:function(x){b({index:M(),command:x})}})}})),_.N(_.Rf,{text:function(){return l().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.N("div",{class:"nudgeFormViewModelSubmit"},_.N(_.TS,{data:function(){return l().submitButton}},{buttonViewModel:function(v){return _.N(p3I,{data:v.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.ae(I().command)}})}})))},"Wb");
DCA.idomCompat=!0;var p3I=_.P(function(z){var l=_.kz(function(){return Object.assign({},z.data(),{state:z.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.N(_.h4,{data:l,onClick:z.onClick})},"Xb");_.uO(DCA,"yt-nudge-form-view-model",{props:{data:_.mB}});var Aw=function(){var z=_.q.apply(this,arguments)||this;z.roundedContainer=!0;z.buttonUpdate=_.C("web_modern_buttons");z.isDarkMode=!1;z.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return z};
_.m(Aw,_.q);_.p=Aw.prototype;_.p.computeNudgeStyle=function(z){return z?"modernized-nudge":""};
_.p.handleDarkModeToggledAction=function(z){this.isDarkMode=z};
_.p.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.p.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"}}}};
_.p.computeIsHorizontalButtons=function(z){return z?!!z.applyModernizedStyle&&!!z.enableHorizontalButtons&&!!z.secondaryButton:!1};
_.vP.Object.defineProperties(Aw.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.data)==null?void 0:z.backgroundStyle)!=null?l:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.data)==null?void 0:z.contentsLocation)!=null?l:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null?0:z.lightIconImage)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],Aw.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Aw.prototype,"actionHandlerBehavior",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("isHideEnclosingAction"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Aw.prototype,"isHidden",null);_.e([_.X(),_.w("design:type",Object)],Aw.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Aw.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Aw.prototype,"buttonUpdate",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.w("design:type",String)],Aw.prototype,"nudgeStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.trimStyle"),_.w("design:type",String),_.w("design:paramtypes",[])],Aw.prototype,"trimStyle",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.backgroundStyle"),_.w("design:type",String),_.w("design:paramtypes",[])],Aw.prototype,"backgroundStyle",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.contentsLocation"),_.w("design:type",String),_.w("design:paramtypes",[])],Aw.prototype,"contentsLocation",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.disableDropShadow"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Aw.prototype,"noShadow",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.lightIconImage"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Aw.prototype,"noIcon",null);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.w("design:type",Boolean)],Aw.prototype,"isHorizontalButtons",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Object)],Aw.prototype,"isDarkMode",void 0);_.e([_.S({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Aw);
_.r(Aw,"ytd-feed-nudge-renderer",function(){if(vou!==void 0)return vou;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return vou=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var xCu;var OCI;var W9=function(){var z=_.q.apply(this,arguments)||this;z.collapsed=!1;z.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return z};
_.m(W9,_.q);W9.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"}}}};
W9.prototype.handleRatingSelect=function(){var z;((z=this.data)==null?0:z.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
W9.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],W9.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],W9.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Nd),_.w("design:type",Object)],W9.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],W9.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],W9.prototype,"collapsed",void 0);_.e([_.S({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],W9);
_.r(W9,"ytd-slimline-survey-renderer",function(){if(OCI!==void 0)return OCI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return OCI=z},{mode:1});var goA;var ng=function(){return _.q.apply(this,arguments)||this};
_.m(ng,_.q);ng.prototype.maybeGetBackgroundColor=function(z){return this.isDarkMode?z.section2Color:z.section3Color};
ng.prototype.colorPaletteChanged=function(){var z=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;z&&(z==null?0:z.secondaryTitleColor)&&this.maybeGetBackgroundColor(z)?(this.hostElement.style.backgroundColor=_.Ur(this.maybeGetBackgroundColor(z)),this.hostElement.style.color=_.Ur(z.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
ng.prototype.colorPaletteChanged=ng.prototype.colorPaletteChanged;_.e([_.t(_.gU),_.w("design:type",Object)],ng.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ng.prototype,"data",void 0);_.e([_.X({selector:function(z){return z.ui.darkModeIsEnabled}}),
_.w("design:type",Boolean)],ng.prototype,"isDarkMode",void 0);_.e([_.X(),_.w("design:type",Object)],ng.prototype,"lightColorPalette",void 0);_.e([_.X(),_.w("design:type",Object)],ng.prototype,"darkColorPalette",void 0);_.e([_.By("darkColorPalette","lightColorPalette","data","isDarkMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ng.prototype,"colorPaletteChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],ng);
_.r(ng,"ytd-endorsement-header-renderer",function(){if(goA!==void 0)return goA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return goA=z},{mode:1});_.uO(_.xQ,"yt-decorated-avatar-view-model",{props:{data:_.mB,className:_.mB}});_.Lg=new _.yH("VIEW_TRANSITION_MANAGER_TOKEN");var UH=function(){var z=_.q.apply(this,arguments)||this;z.fullHeight=_.C("web_rich_grid_media_full_height");z.showChannelAvatar=!0;z.hasPlaylistThumbnail=!1;z.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};z.registerThumbnailForPageTransition=function(){_.C("web_thumbnail_to_watch_transition")&&_.GPI(_.pG().resolve(_.Lg),z.thumbnail)};
return z};
_.m(UH,_.q);_.p=UH.prototype;
_.p.configureRendererStamper=function(){return{lazyLoadMenu:WD,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"}}}};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.shouldLazyLoadMenu=function(){var z=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.C("kevlar_modern_downloads_page")||!z};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16092_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.JSC$16092_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.p.getVideoPreviewOpts=function(){var z={},l;if((l=this.data)==null?0:l.multipleInlinePlaybackEndpoint)z=zfp;this.isRadio&&(z=J_0);return z};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$16092_inlinePreviewHoverListener)==null||vJ(z)};
_.p.getOwner=function(){var z,l,I;return((z=this.data)==null?void 0:(l=z.channelThumbnailSupportedRenderers)==null?void 0:l.channelThumbnailWithLinkRenderer)||_.k((I=this.data)==null?void 0:I.showProviderChannelThumbnail,Sb4)};
_.p.updateLockupSize=function(){var z;((z=this.getOwner())==null?0:z.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.p.getFeedbackEndpoint=function(z){if(_.k(z,_.hf))return z;var l,I;z=(I=(l=_.k(z,_.yi))==null?void 0:l.commands)!=null?I:[];l=_.D(z);for(I=l.next();!I.done;I=l.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.p.computeNavigationEndpoint=function(z){return GJp(z==null?void 0:z.navigationEndpoint)};
_.p.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var z=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(z)!==JSON.stringify(this.data)&&this.set("data",z)}};
_.p.onDataChanged=function(){var z=this,l=this.getOwner();if(l){this.set("data.owner",l);var I,b,v,M,x,g=((I=this.data)==null?void 0:(b=I.shortBylineText)==null?void 0:(v=b.runs)==null?void 0:(M=v[0])==null?void 0:M.text)||((x=l.name)==null?void 0:x.simpleText);this.set("data.owner.title",g)}var G,u,Z,H,y,f;l=((G=this.data)==null?void 0:(u=G.thumbnailRenderer)==null?void 0:u.playlistVideoThumbnailRenderer)||((Z=this.data)==null?void 0:(H=Z.thumbnailRenderer)==null?void 0:H.playlistCustomThumbnailRenderer)||
((y=this.data)==null?void 0:(f=y.thumbnailRenderer)==null?void 0:f.showCustomThumbnailRenderer);var R;((R=this.data)==null?0:R.thumbnail)||!l||this.set("data.thumbnail",l.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){z.updateLockupSize()});
var F;if(G=((F=this.data)==null?void 0:F.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(G);var Y;((Y=this.dismissActionToReplayEntity)==null?0:Y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.p.onHiddenChanged=function(){this.updateLockupSize()};
_.p.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Gb(this.hostElement,"yt-terminate-video-preview-action");else{var z;(z=this.videoTitleLink)==null||z.focus()}};
_.p.metadataColorChanged=function(){var z;if(this.metadataColor&&((z=this.videoTitle)==null?0:z.style))this.videoTitle.style.color=_.Ur(this.metadataColor);else{var l,I;!this.metadataColor&&((l=this.videoTitle)==null?0:(I=l.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.p.onDetailsClick=function(z){var l=this.computedNavigationEndpoint;l&&(_.DX(_.MX(z),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.gC(this.hostElement,"yt-navigate",{endpoint:l}))};
_.p.onRendererTap=function(){this.registerThumbnailForPageTransition();var z,l,I=((z=this.data)==null?void 0:z.serviceEndpoint)||this.getFeedbackEndpoint((l=this.data)==null?void 0:l.navigationEndpoint);I&&_.k(I,_.hf)&&this.ytComponentBehavior.resolveCommand(I)};
_.p.onMouseDown=function(z){var l=z.target,I=this.computedNavigationEndpoint,b;z=l.href||((b=_.k(I==null?void 0:I.commandMetadata,_.kB))==null?void 0:b.url);b=l.data||I;z&&b&&JSf(z,b)};
_.p.computeVideoTitleText=function(){var z;if((z=this.data)==null?0:z.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.p.computeHasPlaylistThumbnail=function(z){var l,I,b,v,M;if((((l=z.thumbnailRenderer)==null?0:l.playlistVideoThumbnailRenderer)||((I=z.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((b=z.thumbnailRenderer)==null?0:b.showCustomThumbnailRenderer)||((v=z.thumbnailRenderer)==null?0:v.playlistVideoThumbnailRenderer)||((M=z.thumbnailRenderer)==null?0:M.playlistCustomThumbnailRenderer))&&z.thumbnailOverlays)for(l=0;l<z.thumbnailOverlays.length;l++)if(I=void 0,(I=z.thumbnailOverlays[l])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vP.Object.defineProperties(UH.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.C("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var z;return(z=this.data)==null?void 0:z.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var z;return(z=this.data)==null?void 0:z.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$16092_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ma(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.videoId)||((l=this.data)==null?void 0:l.playlistId)||""}}});
UH.prototype.onMouseDown=UH.prototype.onMouseDown;UH.prototype.metadataColorChanged=UH.prototype.metadataColorChanged;UH.prototype.onIsDismissedChanged=UH.prototype.onIsDismissedChanged;UH.prototype.onHiddenChanged=UH.prototype.onHiddenChanged;UH.prototype.onDataChanged=UH.prototype.onDataChanged;UH.prototype.handleReloadDownloadsInfo=UH.prototype.handleReloadDownloadsInfo;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],UH.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],UH.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],UH.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],UH.prototype,"ytdReduxBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],UH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],UH.prototype,"entitySelectorType",void 0);_.e([_.X(),_.w("design:type",Boolean)],UH.prototype,"noEndpoints",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],UH.prototype,"isRadio",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],UH.prototype,"miniMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],UH.prototype,"fullHeight",void 0);
_.e([_.X(),_.w("design:type",Boolean)],UH.prototype,"showDarkVideoMetadata",void 0);_.e([_.X(),_.w("design:type",Boolean)],UH.prototype,"showLightVideoMetadata",void 0);_.e([_.X(),_.w("design:type",Number)],UH.prototype,"metadataColor",void 0);_.e([_.X(),_.w("design:type",Object)],UH.prototype,"showChannelAvatar",void 0);_.e([_.X(),_.w("design:type",Boolean)],UH.prototype,"hidden",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],UH.prototype,"showYtInteraction",void 0);
_.e([_.X(),_.w("design:type",String)],UH.prototype,"dismissedContentId",void 0);_.e([_.X({selectorArgs:["dismissedContentId"],selector:GUS}),_.w("design:type",Object)],UH.prototype,"dismissActionToReplayEntity",void 0);
_.e([_.X({selectorArgs:["entitySelectorType","mediaId"],selector:function(z,l,I){if(_.C("kevlar_modern_downloads_page")&&I&&l&&l!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(l){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var b=Hqt(z,I);if(b){l=_.wg(z,I);var v=Wg(z,I),M=iqu(z,I);z=nc(z,I);var x=O1G(b,l,v,M);v=x.shortViewCountText;var g=x.publishedTimeText;x=x.badges;var G=z>0;M=Dwx(b,l,M,z);b=_.ii(l)||l==="TRANSFER_STATE_FAILED"||l==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!qF(b.policyEntity)?
void 0:Owf(I,z,b.videoEntity.lengthSeconds);l==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.C("dl_resume_click_killswitch")&&(b={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:v,publishedTimeText:g,badges:x,isWatched:G,navigationEndpoint:b,thumbnailOverlays:M}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(l=yCt(z,I))if(b=_.Am(z,I),M=_.fLQ(z,I),b!=="TRANSFER_STATE_UNKNOWN"){I=xw5(l,b,M,I,_.eS(z));break a}I=void 0}return I;default:_.PW(new _.qB("Error: entitySelectorType defined but not matched in selector.",
z,l))}}}),
_.w("design:type",Object)],UH.prototype,"entityDrivenState",void 0);_.e([_.X({computed:"computeVideoTitleText(data)"}),_.w("design:type",Object)],UH.prototype,"videoTitleText",void 0);_.e([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.w("design:type",Object)],UH.prototype,"hasPlaylistThumbnail",void 0);_.e([_.X({computed:"computeNavigationEndpoint(data)"}),_.w("design:type",Object)],UH.prototype,"computedNavigationEndpoint",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],UH.prototype,"typographyBump",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("typographyBump"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UH.prototype,"typographyBumpV2",null);_.e([_.qX("#video-title"),_.w("design:type",HTMLElement)],UH.prototype,"videoTitle",void 0);_.e([_.qX("#video-title-link"),_.w("design:type",HTMLElement)],UH.prototype,"videoTitleLink",void 0);
_.e([_.qX("#thumbnail"),_.w("design:type",HTMLElement)],UH.prototype,"thumbnail",void 0);_.e([_.qX("#dismissible"),_.w("design:type",HTMLElement)],UH.prototype,"JSC$16092_dismissibleMedia",void 0);_.e([_.B("data.menu"),_.w("design:type",Object),_.w("design:paramtypes",[])],UH.prototype,"lazyLoadMenu",null);_.e([_.B("data.menu"),_.w("design:type",Object),_.w("design:paramtypes",[])],UH.prototype,"immediateLoadMenu",null);
_.e([_.YE("entityDrivenState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UH.prototype,"handleReloadDownloadsInfo",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UH.prototype,"onDataChanged",null);_.e([_.YE("hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UH.prototype,"onHiddenChanged",null);
_.e([_.By("isDismissed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UH.prototype,"onIsDismissedChanged",null);_.e([_.By("metadataColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UH.prototype,"metadataColorChanged",null);_.e([_.tP("mousedown"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],UH.prototype,"onMouseDown",null);
_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UH.prototype,"isHovered",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UH.prototype,"useAvatar",null);_.e([_.B("data","entitySelectorType"),_.w("design:type",String),_.w("design:paramtypes",[])],UH.prototype,"mediaId",null);_.e([_.S({is:"ytd-rich-grid-media",disableElementRegistration:!0})],UH);
var NdA=_.Hh()(UH,"ytd-rich-grid-media",function(){if(xCu!==void 0)return xCu;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return xCu=z},{mode:_.yP("kevlar_poly_si_batch_j072")?1:2});var Eoz;var a7=function(){var z=_.q.apply(this,arguments)||this;z.removeMaxWidth=!0;z.insetMetadata=!1;return z};
_.m(a7,_.q);_.p=a7.prototype;_.p.configureRendererStamper=function(){return{innerMenu:WD,outerMenu:Object.assign({},WD,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onDataChanged=function(){var z,l=((z=this.data)==null?void 0:z.trackingParams)||"";l&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(l));var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16097_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.JSC$16097_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lGj})};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$16097_inlinePreviewHoverListener)==null||vJ(z)};
_.p.onRendererTap=function(){var z,l,I=(z=this.data)==null?void 0:(l=z.serviceEndpoints)==null?void 0:l[0];_.k(I,_.hf)&&this.componentBehavior.resolveCommand(I)};
_.p.onDetailsClick=function(z){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;I&&(_.DX(_.MX(z),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.p.onShow=function(){var z=this.data;z.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(z.onFirstVisibleCommand),delete z.onFirstVisibleCommand)};
_.vP.Object.defineProperties(a7.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var z;return this.insetMetadata?void 0:(z=this.data)==null?void 0:z.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var z;return this.insetMetadata?(z=this.data)==null?void 0:z.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var z=this.data;if(z!=null&&z.badge&&(z=_.k(z.badge,CSu))){var l,I,b;return[{metadataBadgeRenderer:{label:((l=z.label)==null?void 0:(I=l.runs)==null?void 0:I[0].text)||((b=z.label)==null?void 0:b.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var z=this.data;return Object.assign({},z.headline,{accessibility:z.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return this.isSlimShort?(z=this.computedTitle)==null?void 0:(l=z.accessibility)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.C("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$16097_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
a7.prototype.onDataChanged=a7.prototype.onDataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],a7.prototype,"componentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],a7.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.Nd),_.w("design:type",Object)],a7.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],a7.prototype,"ytdReduxBehavior",void 0);_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],a7.prototype,"thumbnail",void 0);_.e([_.qX("#dismissible"),_.w("design:type",HTMLElement)],a7.prototype,"JSC$16097_dismissibleMedia",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],a7.prototype,"removeMaxWidth",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],a7.prototype,"insetMetadata",void 0);_.e([_.X(),_.w("design:type",String)],a7.prototype,"dismissedContentId",void 0);_.e([_.X({selectorArgs:["dismissedContentId"],selector:GUS}),_.w("design:type",Object)],a7.prototype,"dismissActionToReplayEntity",void 0);_.e([_.B("insetMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],a7.prototype,"thumbnailObjectFit",null);
_.e([_.B("data","insetMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],a7.prototype,"innerMenu",null);_.e([_.B("data","insetMetadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],a7.prototype,"outerMenu",null);_.e([_.X(),_.w("design:type",Object)],a7.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],a7.prototype,"miniMode",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a7.prototype,"onDataChanged",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],a7.prototype,"shortsBadges",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],a7.prototype,"isShort",null);
_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],a7.prototype,"isSlimShort",null);_.e([_.B("data","isShort"),_.w("design:type",Object),_.w("design:paramtypes",[])],a7.prototype,"computedTitle",null);_.e([_.B("isSlimShort","computedTitle"),_.w("design:type",Object),_.w("design:paramtypes",[])],a7.prototype,"computedAccessibilityLabel",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],a7.prototype,"shouldForce2By3",null);_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],a7.prototype,"isHovered",null);_.e([_.S({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],a7);
_.r(a7,"ytd-rich-grid-slim-media",function(){if(Eoz!==void 0)return Eoz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Eoz=z},{mode:_.yP("kevlar_poly_si_batch_j063")?1:2});var ukA;var ZCj;var VJ=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(VJ,_.q);VJ.prototype.computeIcon=function(z){return z&&z.iconType?"yt-sys-icons:"+z.iconType.toLowerCase():""};
VJ.prototype.onMouseEnter=function(){this.isHovered=!0};
VJ.prototype.onMouseLeave=function(){this.isHovered=!1};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],VJ.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],VJ.prototype,"isHovered",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VJ.prototype,"darkerDarkTheme",void 0);_.e([_.S({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],VJ);
_.r(VJ,"ytd-expand-on-hover-card-renderer",function(){if(ZCj!==void 0)return ZCj;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ZCj=z},{mode:1});var HC0,ybj=function(){if(HC0!==void 0)return HC0;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return HC0=z};_.sW("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var jz=function(){var z=_.q.apply(this,arguments)||this;z.compactStyle=!1;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(jz,_.q);_.p=jz.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.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"}}}};
_.p.computeHideDot=function(z){return!(z&&z.subscriberCountText&&z.videoCountText)||this.compactStyle};
_.p.hasDualButtons=function(z){return z&&z.purchaseButton&&z.subscribeButton};
_.p.backgroundColorChanged=function(){if(this.data!==void 0){var z=this.data.backgroundColor;this.isDarkTheme&&(z=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=z!=null?_.Ur(z):"transparent"}};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.onTap=function(z){var l,I,b=((l=this.data)==null?void 0:l.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.k(b,_.Ma)&&(b&&_.pG().resolve(_.DQ).resolveCommand(b,{form:{element:this.hostElement}}),z.preventDefault())};
_.p.computeChannelEndpoint=function(z){return _.k(z,_.Ma)?null:z};
_.p.computeHrefEndpoint=function(z){return _.k(z,_.Ma)?null:this.componentBehavior.computeHref_(z)};
_.p.computeChannelRendererStyle=function(z){return z};
_.p.computeIconSize=function(z){return z?108:136};
_.vP.Object.defineProperties(jz,{template:{configurable:!0,enumerable:!0,get:function(){return ybj()}}});
jz.prototype.backgroundColorChanged=jz.prototype.backgroundColorChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],jz.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],jz.prototype,"componentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],jz.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],jz.prototype,"isDarkTheme",void 0);_.e([_.X({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.w("design:type",String)],jz.prototype,"channelRendererStyle",void 0);_.e([_.X({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],jz.prototype,"dualButtons",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],jz.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],jz.prototype,"biggerThumbStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jz.prototype,"compactStyle",void 0);_.e([_.By("data","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jz.prototype,"backgroundColorChanged",null);_.e([_.S({is:"ytd-channel-renderer",disableElementRegistration:!0})],jz);_.r(jz,"ytd-channel-renderer",function(){return ybj()},{mode:1});var fe_;var CZA;_.sW("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Jw=function(){var z=_.q.apply(this,arguments)||this;z.displayItemCount=2;z.collections=_.C("web_modern_collections_v2");z.hasPlaylistThumbnail=!1;z.stackThumbnailSize="large";return z};
_.m(Jw,_.q);_.p=Jw.prototype;_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.computeFirstVideos=function(z,l){return z&&l?z.slice(0,l):[]};
_.p.computeThumbnailWidth=function(z,l){return z?l==="BIG"?500:l==="MASSIVE"?600:l==="MEDIUM"?450:420:360};
_.p.computeThumbnailHeight=function(z,l){return z?l==="BIG"?280:l==="MASSIVE"?337:234:202};
_.p.clearInlinePreviewHoverListeners=function(){var z;(z=this.JSC$16110_inlinePreviewHoverListener)==null||vJ(z)};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16110_inlinePreviewHoverListener=nY({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:zfp,thumbnailElement:this.thumbnail})};
_.p.computeHasPlaylistThumbnail=function(z){var l,I;if((((l=z.thumbnailRenderer)==null?0:l.playlistVideoThumbnailRenderer)||((I=z.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&z.thumbnailOverlays)for(l=0;l<z.thumbnailOverlays.length;l++)if(I=void 0,(I=z.thumbnailOverlays[l])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vP.Object.defineProperties(Jw.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.JSC$16110_inlinePreviewHoverListener)==null?0:Nb(z))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Jw.prototype.dataChanged=Jw.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],Jw.prototype,"ytdLockupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jw.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Jw.prototype,"displayItemCount",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],Jw.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],Jw.prototype,"biggerThumbsStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Jw.prototype,"collections",void 0);_.e([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.w("design:type",Object)],Jw.prototype,"hasPlaylistThumbnail",void 0);_.e([_.X(),_.w("design:type",String)],Jw.prototype,"stackThumbnailSize",void 0);_.e([_.qX("ytd-thumbnail"),_.w("design:type",HTMLElement)],Jw.prototype,"thumbnail",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jw.prototype,"dataChanged",null);_.e([_.B("lockupIsHovered"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Jw.prototype,"isHovered",null);_.e([_.S({is:"ytd-radio-renderer",disableElementRegistration:!0})],Jw);
_.r(Jw,"ytd-radio-renderer",function(){if(CZA!==void 0)return CZA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return CZA=z},{mode:_.yP("kevlar_poly_si_batch_j058")?1:2});var kPw;_.sW("itemSectionRenderer","showRenderer","ytd-show-renderer");var zw=function(){return _.q.apply(this,arguments)||this};
_.m(zw,_.q);zw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zw.prototype.computeThumbnailWidth=function(z){return z?360:246};
zw.prototype.computeUseProminentThumbs=function(z){return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zw.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],zw.prototype,"isSearch",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.w("design:type",Boolean)],zw.prototype,"useProminentThumbs",void 0);_.e([_.S({is:"ytd-show-renderer",disableElementRegistration:!0})],zw);
_.r(zw,"ytd-show-renderer",function(){if(kPw!==void 0)return kPw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return kPw=z},{mode:1});_.sW("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var l4=function(){var z=_.q.apply(this,arguments)||this;z.isRichGrid=!1;return z};
_.m(l4,_.q);l4.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],l4.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],l4.prototype,"isRichGrid",void 0);_.e([_.S({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],l4);
_.r(l4,"ytd-feed-entry-renderer",function(){if(fe_!==void 0)return fe_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return fe_=z},{mode:1});var R0z;var IB=function(){return _.q.apply(this,arguments)||this};
_.m(IB,_.q);IB.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.e([_.t(_.gU),_.w("design:type",Object)],IB.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],IB.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],IB.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.sp,value:3}),_.w("design:type",Number)],IB.prototype,"itemsPerRow",void 0);
_.e([_.S({is:"ytd-link-card-renderer",disableElementRegistration:!0})],IB);
_.r(IB,"ytd-link-card-renderer",function(){if(R0z!==void 0)return R0z;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return R0z=z},{mode:1});var mCz;var b4=function(){return _.q.apply(this,arguments)||this};
_.m(b4,_.q);_.p=b4.prototype;_.p.configureRendererStamper=function(){return{"data.menu":WD,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onRendererTap=function(z){if(!this.ytdDismissibleItemBehavior.isDismissed){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;I&&!_.DX(_.MX(z),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.DX(_.MX(z),this.hostElement,["A"])||_.gC(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.p.maybeComputeHref=function(z){return this.ytComponentBehavior.computeHref_(z,!0)};
_.p.getNavigationCommand=function(z){return this.isNavigationCommand(z)?z:null};
_.p.isNavigationCommand=function(z){return z?_.k(z,_.BF)||_.k(z,_.zb)||_.k(z,_.AK)?!0:!1:!1};
b4.prototype.onRendererTap=b4.prototype.onRendererTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],b4.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],b4.prototype,"data",void 0);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],b4.prototype,"onRendererTap",null);_.e([_.S({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],b4);
_.r(b4,"ytd-lumiere-promo-item-image-renderer",function(){if(mCz!==void 0)return mCz;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return mCz=z},{mode:1});var Kwj;var vA=function(){return _.q.apply(this,arguments)||this};
_.m(vA,_.q);vA.prototype.computeLandscapeThumbnail=function(){var z;return((z=this.data)==null?void 0:z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],vA.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],vA.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],vA.prototype,"miniMode",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.sp}),_.w("design:type",Number)],vA.prototype,"itemsPerRow",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.w("design:type",Boolean)],vA.prototype,"landscapeThumbnail",void 0);_.e([_.S({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],vA);
_.r(vA,"ytd-lumiere-shelf-details-renderer",function(){if(Kwj!==void 0)return Kwj;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Kwj=z},{mode:_.yP("kevlar_poly_si_batch_j076")?1:2});var tfz;var M9=function(){return _.q.apply(this,arguments)||this};
_.m(M9,_.q);M9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],M9.prototype,"data",void 0);_.e([_.S({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],M9);
_.r(M9,"ytd-primetime-promo-details-renderer",function(){if(tfz!==void 0)return tfz;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return tfz=z},{mode:1});var Bdn;var pU=function(){return _.q.apply(this,arguments)||this};
_.m(pU,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pU.prototype,"data",void 0);_.e([_.S({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],pU);
_.r(pU,"ytd-panel-show-style-metadata-renderer",function(){if(Bdn!==void 0)return Bdn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Bdn=z},{mode:1});var X3A;var D8=function(){return _.q.apply(this,arguments)||this};
_.m(D8,_.q);_.p=D8.prototype;_.p.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.p.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.p.computeThumbnail=function(z){if(z)return z.smallFormFactorBackgroundThumbnail||z.largeFormFactorBackgroundThumbnail};
_.p.maybeComputeHref=function(z){return this.ytComponentBehavior.computeHref_(z,!0)};
_.p.isNavigationCommand=function(z){return z?_.k(z,_.BF)||_.k(z,_.zb)||_.k(z,_.AK)?!0:!1:!1};
_.p.getNavigationCommand=function(z){return this.isNavigationCommand(z)?z:null};
D8.prototype.onPanelTap=D8.prototype.onPanelTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],D8.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],D8.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],D8.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0,value:_.C("web_modern_buttons")}),_.w("design:type",Boolean)],D8.prototype,"modernButtons",void 0);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],D8.prototype,"onPanelTap",null);_.e([_.S({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],D8);
_.r(D8,"ytd-primetime-promo-panel-renderer",function(){if(X3A!==void 0)return X3A;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return X3A=z},{mode:1});_.uO(_.P(function(z){z=_.xC(z,{data:{},useFullWidth:!1});var l=z.data,I=z.useFullWidth;z={};return _.N("teaser-card-view-model",{class:_.m9("ytTeaserCardViewModelHost",(z.ytTeaserCardViewModelUseFullWidth=function(){return I()},z))},_.N(_.E,{cond:function(){return l().onTap},
then:function(b){return _.N(_.cZ,{className:"ytTeaserCardViewModelLink",command:b},_.N("div",{class:"ytTeaserCardViewModelImageContainer"},_.N(_.E,{cond:function(){return l().image},
then:function(v){return _.N(_.pK,{data:v,className:"ytTeaserCardViewModelImage",alt:""})}})),_.N("p",{class:"ytTeaserCardViewModelCaption"},function(){return l().caption}))}}))},"Yb"),"teaser-card-view-model",{props:{data:_.mB,
useFullWidth:_.mB}});var qQu=new _.yH("RICH_GRID_VIDEO_RENDERER_TOKEN");_.uO(_.P(function(z){var l=z.data;var I=z.showYtInteractionInContent;var b=function(){return!!l().selectableFeedback};
z=_.D(_.Z_(!1,void 0,"qxtgaf"));var v=z.next().value,M=z.next().value;_.Sm(function(){var y=_.k(l().primaryButton,_.uS);(y==null?0:y.isToggled)&&M(y.isToggled)});
z=_.KK(function(y){if(!b())return!1;if(v()){var f;var R=(f=l().selectableFeedback)==null?void 0:f.onDeselect}else{var F;R=(F=l().selectableFeedback)==null?void 0:F.onSelect}R&&_.ae(R,{form:{element:y.target}});M(!v());if(y=_.k(l().primaryButton,_.uS))y.isToggled=v();return!1});
var x=function(){if(!b()){var y,f=(y=l().loggingDirectives)==null?void 0:y.trackingParams;f&&_.sE(_.pG().resolve(_.br),f)}},g=_.OSY(),G=function(){var y;
return b()?(y=l().selectableFeedback)==null?void 0:y.a11yLabel:void 0},u=function(){return b()?{toggled:v()}:{}},Z=_.pG().resolve(_.MB(qQu)),H={};
return _.N("yt-feedback-item-renderer",{class:_.m9("ytFeedbackItemRendererHost",(H.ytFeedbackItemRendererSelectableFeedback=b,H)),"on:click":z,"on:keydown":g,title:G,"aria-label":G,"aria-pressed":function(){return b()?v():void 0},
tabindex:function(){return b()?0:void 0},
role:function(){return b()?"button":void 0}},_.N("div",{class:"ytFeedbackItemRendererContentContainer"},_.N(_.TS,{data:function(){return l().content}},{videoRenderer:function(y){return _.N(Z,{data:y.data,
showYtInteraction:I})},
lockupViewModel:function(y){return _.N(_.sq,{data:y.data,containerType:2})}})),_.N("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.N(_.TS,{data:function(){return l().primaryButton}},{toggleButtonViewModel:function(y){return _.N(_.vL,{data:y.data,
buttonShapeOverrides:u,disableExplicitClickLogging:!0,onToggle:x})}})))},"Zb"),"yt-feedback-item-renderer",{props:{data:_.mB,
showYtInteractionInContent:_.mB}});var xr=function(){var z=_.q.apply(this,arguments)||this;z.isShortsGrid=!1;z.isCompactGrid=!1;z.isShortsPanelGrid=!1;z.renderedFromRichGrid=!1;z.isInFirstColumn=!1;z.noGutterMargins=!1;z.noBottomMargin=!1;z.halfBottomMargin=!1;z.isInlineGroupItem=!1;z.insetMetadata=!1;z.noBottomMarginInAds=!0;z.force16By9ThumbnailAspectRatio=!1;z.useCompactList=!1;z.containerType=2;z.thumbnailTargetWidth=9999;z.isResponsiveGrid=!1;z.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};z.hoverListener=
z.hover.bind(z);z.leaveListener=z.leave.bind(z);z.highlighted=!1;z.JSC$16144_unsubscribeFromInlinePreviewIsActive=function(){};
return z};
_.m(xr,_.q);_.p=xr.prototype;_.p.computeContainerType=function(){return this.useCompactList?3:2};
_.p.computeThumbnailTargetWidth=function(){var z;return(z=this.itemWidth)!=null?z:9999};
_.p.updateIsInFirstColumn=function(){var z;this.isInFirstColumn=((z=this.data)==null?void 0:z.colIndex)===0};
_.p.observerContainerType=function(){if(this.lockup){var z=this.lockup;z.containerType=this.containerType;z.sizing=this.sizing;z.typographyBump=this.typographyBump;z.itemWidth=this.itemWidth}this.richGridMedia&&_.C("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.C("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.p.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.p.leave=function(z){z=z.relatedTarget;var l=document.querySelector("ytd-video-preview");z&&l&&_.y5(l).contains(z)||this.removeAndCleanupHighlight()};
_.p.hover=function(){var z;!this.highlighted&&(z=this.data)!=null&&z.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(z=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:z,boxShadow:"0 0 0 10px "+z})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.p.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};
_.p.registerHoverHighlightListeners=function(){var z=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16144_unsubscribeFromInlinePreviewIsActive=_.Wf(_.vF(),_.OqH,function(l){z.highlighted&&!l&&z.removeAndCleanupHighlight()})};
_.p.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16144_unsubscribeFromInlinePreviewIsActive()};
_.p.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.p.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.p.getBackgroundColor=function(){var z,l,I=(z=this.data)==null?void 0:(l=z.onFocusEffect)==null?void 0:l.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return _.Ur(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return _.Ur(I==null?void 0:I.lightTheme)}};
_.p.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var z=_.sU(),l,I,b;z&&((l=this.data)==null?0:l.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((b=this.data)==null?void 0:b.rowIndex)!=null&&_.li(z,_.ch(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.p.isSlimMediaRenderer=function(z){return!!_.k(z==null?void 0:z.content,_.aiI)||!!_.k(z==null?void 0:z.content,UYA)||!!_.k(z==null?void 0:z.content,_.DZ)||!!_.k(z==null?void 0:z.content,HtM)};
_.p.isPostRenderer=function(){var z,l;return!!_.k((z=this.data)==null?void 0:z.content,fIn)||!!_.k((l=this.data)==null?void 0:l.content,CTj)};
_.p.computeIsGameCardShelf=function(){var z;return!!_.k((z=this.data)==null?void 0:z.content,Ff_)};
_.p.computeIsMiniGameCardShelf=function(){var z,l;return!!_.k((z=this.data)==null?void 0:z.content,wG4)||!!_.k((l=this.data)==null?void 0:l.content,Ag_)};
_.p.computeIsTeaserCard=function(){var z;return!!_.k((z=this.data)==null?void 0:z.content,Ag_)};
_.p.computeIsSelectableFeedbackItem=function(){var z,l;return!((l=_.k((z=this.data)==null?void 0:z.content,_.nIM))==null||!l.selectableFeedback)};
_.p.computeContainsLumierePosters=function(){var z,l;return((l=_.k((z=this.data)==null?void 0:z.content,FJj))==null?void 0:l.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.computeIsExpandOnHoverCardShelf=function(){var z;return!!_.k((z=this.data)==null?void 0:z.content,idn)};
_.p.computeIsLinkCardShelf=function(){var z;return!!_.k((z=this.data)==null?void 0:z.content,iez)};
_.p.computeIsReelItemStyleAvatarCircle=function(z){var l;return((l=_.k(z==null?void 0:z.content,_.DZ))==null?void 0:l.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.p.computeIsLinkCardFullWidth=function(z,l){var I;return((I=_.k(z==null?void 0:z.content,iez))==null?void 0:I.useFullWidth)||l<=2};
_.vP.Object.defineProperties(xr.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.C("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.onFocusEffect)||_.C("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 z;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:(z=this.data)==null?void 0:z.onFocusEffect}}}});
xr.prototype.richGridHoverHighlightChanged=xr.prototype.richGridHoverHighlightChanged;xr.prototype.observerContainerType=xr.prototype.observerContainerType;xr.prototype.updateIsInFirstColumn=xr.prototype.updateIsInFirstColumn;_.e([_.t(_.gU),_.w("design:type",Object)],xr.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],xr.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],xr.prototype,"ytdLockupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xr.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.w("design:type",Boolean)],xr.prototype,"isPost",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.w("design:type",Boolean)],xr.prototype,"containsLumierePosters",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.w("design:type",Boolean)],xr.prototype,"isSlimMedia",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.w("design:type",Boolean)],xr.prototype,"isGameCardShelf",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.w("design:type",Boolean)],xr.prototype,"isMiniGameCardShelf",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.w("design:type",Boolean)],xr.prototype,"isTeaserCard",void 0);_.e([_.X({computed:"computeIsSelectableFeedbackItem(data)"}),_.w("design:type",Boolean)],xr.prototype,"isSelectableFeedbackItem",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"isShortsGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],xr.prototype,"isSlimGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"isCompactGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"isShortsPanelGrid",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.w("design:type",Boolean)],xr.prototype,"isExpandOnHoverCardShelf",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.w("design:type",Boolean)],xr.prototype,"isLinkCardShelf",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.sp,value:3}),_.w("design:type",Number)],xr.prototype,"itemsPerRow",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"renderedFromRichGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"isInFirstColumn",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"noGutterMargins",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"noBottomMargin",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"halfBottomMargin",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"isInlineGroupItem",void 0);_.e([_.X(),_.w("design:type",Object)],xr.prototype,"insetMetadata",void 0);_.e([_.X(),_.w("design:type",Object)],xr.prototype,"noBottomMarginInAds",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],xr.prototype,"isShelfItem",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.w("design:type",Boolean)],xr.prototype,"isReelItemStyleAvatarCircle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.w("design:type",Boolean)],xr.prototype,"isLinkCardFullWidth",void 0);_.e([_.X(),_.w("design:type",Object)],xr.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"useCompactList",void 0);_.e([_.X(),_.w("design:type",String)],xr.prototype,"sizing",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],xr.prototype,"typographyBump",void 0);_.e([_.X(),_.w("design:type",Number)],xr.prototype,"itemWidth",void 0);_.e([_.X(),_.w("design:type",Boolean)],xr.prototype,"isHomeShelf",void 0);_.e([_.X(),_.w("design:type",Boolean)],xr.prototype,"isHomeGrid",void 0);
_.e([_.qX("yt-lockup-view-model"),_.w("design:type",HTMLElement)],xr.prototype,"lockup",void 0);_.e([_.qX("ytd-rich-grid-media"),_.w("design:type",HTMLElement)],xr.prototype,"richGridMedia",void 0);_.e([_.qX("ytd-ad-slot-renderer"),_.w("design:type",HTMLElement)],xr.prototype,"adSlotRenderer",void 0);_.e([_.X({computed:"computeContainerType(useCompactList)"}),_.w("design:type",Object)],xr.prototype,"containerType",void 0);
_.e([_.X({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.w("design:type",Object)],xr.prototype,"thumbnailTargetWidth",void 0);_.e([_.B("showYtInteractionOnRichItem"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xr.prototype,"showYtInteractionOnRichGridMedia",null);_.e([_.B("isSelectableFeedbackItem","richGridHoverHighlight"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xr.prototype,"showYtInteractionOnRichItem",null);
_.e([_.B("typographyBump","isHomeGrid"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xr.prototype,"richTypographyBump",null);_.e([_.X({reflectToAttribute:!0}),_.B("data","isShortsGrid","isCompactGrid"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],xr.prototype,"richGridHoverHighlight",null);_.e([_.B("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.w("design:type",Number),_.w("design:paramtypes",[])],xr.prototype,"shortsLockupViewModelAspectRatio",null);
_.e([_.B("isInlineGroupItem"),_.w("design:type",Number),_.w("design:paramtypes",[])],xr.prototype,"shortsLockupViewModelScrimStyle",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xr.prototype,"updateIsInFirstColumn",null);_.e([_.By("containerType","sizing","typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xr.prototype,"observerContainerType",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xr.prototype,"isResponsiveGrid",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],xr.prototype,"lockupExperiments",null);_.e([_.By("richGridHoverHighlight"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xr.prototype,"richGridHoverHighlightChanged",null);_.e([_.S({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],xr);
_.iCw=_.Hh()(xr,"ytd-rich-item-renderer",function(){if(ukA===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);ukA=z}z=ukA;return z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var fGQ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var YSk=_.lc(_.mY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var kEG={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},mq5={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},KV$={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var FwM;var OL=function(){var z=_.q.apply(this,arguments)||this;z.useResponsiveGrid=!1;z.hidden=!1;z.isShowMoreHidden=!1;z.isShowLessHidden=!0;z.hasExpansionButton=!1;z.isInnerShelf=!1;z.allVideosCount=0;z.allPlaylistCount=0;z.haveSmartDownloadsCompleted=!1;z.restrictContentsOverflow=!1;z.firstShownIndex=0;z.horizontalOffset=0;z.atEnd=!0;z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
z.nextClick=function(){var l;(l=z.data)!=null&&l.contents&&(z.firstShownIndex+=z.currentElementsPerRow,z.updateHorizontalOffset(),z.updateHorizontalItemVisibility())};
z.previousClick=function(){var l;(l=z.data)!=null&&l.contents&&(z.firstShownIndex-=z.currentElementsPerRow,z.updateHorizontalOffset(),z.updateHorizontalItemVisibility())};
return z};
_.m(OL,_.q);_.p=OL.prototype;
_.p.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:_.sZ("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.p.attached=function(){this.requestElementsPerRow()};
_.p.refreshGridLayoutNew=function(){var z;if((z=this.data)!=null&&z.contents&&this.containerWidth){var l;((l=this.data.responsiveContainerConfiguration)==null?0:l.responsiveSize)?(z=_.SSt(this.data.responsiveContainerConfiguration,this.containerWidth),z=_.Vo(Object.assign({},z,{standardUnitMinWidth:this.standardUnitMinWidth}))):z=_.Vo({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=z.typographyBump;if(this.elementsPerRow!==
z.numItems||this.gutter!==z.gutter)this.elementsPerRow=z.numItems,this.gutter=z.gutter,this.itemWidth=z.itemWidth,_.R8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":z.gutter+"px"})}};
_.p.computeSizing=function(){if(!this.isLumiere){var z=_.v_S(this.data);return z?z:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.p.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.p.computeButton=function(z){var l=_.k(z,_.xm);z=Object.assign({},_.k(z,_.xm));return l?(z.text||(z.text={simpleText:z.tooltip}),z.style="STYLE_MONO_OUTLINE",z.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",z):l};
_.p.onRowIndexChange=function(){var z=_.sU(),l,I;((l=this.data)==null?0:l.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&z&&_.li(z,_.ch(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.p.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var z,l=((z=this.getRichItemRenderers()[0])==null?void 0:z.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*l;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
_.p.onUpdateElementsPerRowAction=function(z,l,I,b,v,M){if(this.containerWidth!==M&&(this.containerWidth=M,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&z&&l&&I&&b&&v&&(this.elementsPerRow!==z||this.postsPerRow!==l||this.slimItemsPerRow!==I||this.gameCardsPerRow!==b||this.miniGameCardsPerRow!==v)&&(this.elementsPerRow=z,this.postsPerRow=l,this.slimItemsPerRow=I,this.gameCardsPerRow=b,this.miniGameCardsPerRow=v,this.updateItemVisibility())};
_.p.isExpandedChanged=function(){var z=this.getRichItemRenderers(),l=this.isExpanded;z.forEach(function(I){I.halfBottomMargin=l})};
_.p.isCollapsedChanged=function(){var z=this.getRichItemRenderers(),l=this.isCollapsed;z.forEach(function(I){I.noBottomMargin=l})};
_.p.getRichItemRenderers=function(){return _.Hy(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.p.updateItemVisibility=function(){var z=this;if(this.data&&this.data.contents){var l=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(b,v){var M;((M=z.data)==null?0:M.isExpanded)?(b.hidden=v>l-1,b.ytRendererBehavior.markDirty()):b.hidden=v>z.currentElementsPerRow-1||v>l-1});
var I=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||I||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||I||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.p.setHeightToSingleRow=function(){var z=this.getRichItemRenderers(),l=Number.parseInt(getComputedStyle(z[0]).marginBottom,10)||0;z=z.slice(0,this.currentElementsPerRow).reduce(function(I,b){return Math.max(I,b.getBoundingClientRect().height+l)},0);
this.contents.style.height=z+"px"};
_.p.focusNextExpandedItem=function(){var z;((z=this.data)==null?0:z.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.p.focusItem=function(z,l){var I=this.getRichItemRenderers();if(I[z]&&(z=I[z].querySelector(".focus-on-expand"))){if(l){var b;(b=I[this.currentElementsPerRow])==null||b.scrollIntoView({behavior:"smooth",block:"center"})}z.focus({preventScroll:!0})}};
_.p.onDataChange=function(){var z=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var l;if((l=this.data)==null?0:l.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.IR(this,function(){z.updateItemVisibility()});
var I;if((I=this.data)==null?0:I.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.R8(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),l=0;l<this.data.contents.length;l++)I=_.k(this.data.contents[l],_.Lw)||{},I.colIndex=l,I.rowIndex=this.data.rowIndex};
_.p.handleRerenderDownloadsData=function(){_.C("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())};
_.p.blockInlinePreview=function(z){var l=this,I;return _.O(function(b){(I=l.inlinePreviewIsEnabled)&&l.ytdReduxBehavior.dispatch(_.ufI(!1));return b.return(new Promise(function(v){z(function(){I&&l.ytdReduxBehavior.dispatch(_.ufI(!0));v()})}))})};
_.p.expandShelf=function(){var z=this;if(this.data){var l,I=(l=_.k(this.data.showMoreButton,_.xm))==null?void 0:l.trackingParams;I&&_.sE(_.iY(),I);this.set("data.isExpanded",!0);this.blockInlinePreview(function(b){z.setHeightToSingleRow();z.updateItemVisibility();z.contents.style.height=z.contents.scrollHeight+"px";_.ow.addJob(function(){z.contents.style.height="auto";z.focusNextExpandedItem();b()},2,200)})}};
_.p.collapseShelf=function(){var z=this;return _.O(function(l){if(l.nextAddress==1){if(!z.data)return l.return();z.set("data.isExpanded",!1);return l.yield(z.blockInlinePreview(function(I){z.contents.style.height=z.contents.scrollHeight+"px";z.setHeightToSingleRow();_.ow.addJob(function(){z.updateItemVisibility();z.contents.style.height="auto";I()},2,200)}),2)}_.gC(z.hostElement,"yt-rich-shelf-renderer-collapse",z.data.trackingParams);
z.focusItem(0,!1);_.qe(l)})};
_.p.updateArrowButtonStatus=function(){var z=this.getRichItemRenderers().length;if(!_.C("web_rich_shelf_renderer_use_data_contents_killswitch")){var l,I;z=((l=this.data)==null?void 0:(I=l.contents)==null?void 0:I.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=z};
_.p.onChildElementFocus=function(z){this.hasChevronButtons&&(z=z.target.closest("#contents > *"),this.contents.contains(z)&&(z.offsetLeft<this.horizontalOffset?this.previousClick():z.offsetLeft+z.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.p.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.sZ("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.p.updateHorizontalOffset=function(){var z=this.getRichItemRenderers(),l=z.length;if(!_.C("web_rich_shelf_renderer_use_data_contents_killswitch")){var I,b;l=((I=this.data)==null?void 0:(b=I.contents)==null?void 0:b.length)||0}var v;z=((v=z[0])==null?void 0:v.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>l?this.firstShownIndex=l-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*z};
_.p.isSlimMediaShelfRenderer=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!!(_.k(b,_.aiI)||_.k(b,UYA)||_.k(b,_.DZ)||_.k(b,HtM))};
_.p.isGameCardShelf=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!!_.k(b,Ff_)};
_.p.isGnomeShelf=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!!_.k(b,_.nIM)};
_.p.isMiniGameCardShelf=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!!_.k(b,wG4)||!!_.k(b,Ag_)};
_.p.hasGameBoxArtAvatarStyle=function(){var z;return((z=this.data)==null?void 0:z.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.p.hasRoundedGameBoxArtAvatarStyle=function(){var z;return((z=this.data)==null?void 0:z.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.p.isShortsShelf=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!!_.k(b,_.DZ)||!!_.k(b,HtM)};
_.p.isPostShelfRenderer=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!(!_.k(b,fIn)&&!_.k(b,CTj))};
_.p.isLumiereShelf=function(){var z,l,I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw);return!!_.k(I==null?void 0:I.content,FJj)};
_.p.isLumiereShelfWithPosters=function(){var z,l,I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw),b;return((b=_.k(I==null?void 0:I.content,FJj))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.isExpandOnHoverCardShelf=function(){var z,l,I,b=(I=_.k((z=this.data)==null?void 0:(l=z.contents)==null?void 0:l[0],_.Lw))==null?void 0:I.content;return!!_.k(b,idn)};
_.p.computeHasFeaturedBadge=function(){var z,l,I=_.k((z=this.data)==null?void 0:(l=z.badges)==null?void 0:l[0],_.L3u);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHasPaygatedFeaturedBadge=function(){var z,l,I=_.k((z=this.data)==null?void 0:(l=z.badges)==null?void 0:l[0],_.L3u);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHeaderHidden=function(){var z,l,I,b,v,M;return!((z=this.data)==null?0:z.icon)&&!((l=this.data)==null?0:l.title)&&!((I=this.data)==null?0:I.subtitle)&&!((b=this.data)==null?0:b.thumbnail)&&!((v=this.data)==null?0:v.badges)&&!((M=this.data)==null?0:M.menu)};
_.p.showCtaButton=function(){var z;return!((z=this.data)==null||!z.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.p.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.p.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.p.computeForce16By9ThumbnailAspectRatio=function(){var z,l;return((z=this.data)==null?void 0:(l=z.responsiveContainerConfiguration)==null?void 0:l.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.p.onSectionReactiveDismissal=function(z,l,I){var b,v;var M=(b=this.data)==null?void 0:(v=b.targetingContext)==null?void 0:v.targetGroupId;this&&M&&l.targetGroupId&&M.includes(l.targetGroupId)?(b=this.rowIndex,z=b===void 0?!1:!(l.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&b<=z)):z=!1;z&&(this.hidden=I)};
_.vP.Object.defineProperties(OL.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null?0:z.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var z=this.elementsPerRow;this.isPostShelfRenderer()?z=this.postsPerRow:this.isSlimMediaShelfRenderer()?z=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?z=this.slimItemsPerRow-1:this.isGameCardShelf()?z=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(z=this.miniGameCardsPerRow);return z}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.C("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null?0:z.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.previousButton)&&!((l=this.data)==null||!l.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var z;return((z=_.pG().resolve(_.OB).getCurrentPage())==null?void 0:z.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return!((z=this.data)==null?0:(l=z.thumbnail)==null?0:(I=l.accessibility)==null?0:(b=I.accessibilityData)==null?0:b.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
OL.prototype.onChildElementFocus=OL.prototype.onChildElementFocus;OL.prototype.handleRerenderDownloadsData=OL.prototype.handleRerenderDownloadsData;OL.prototype.onDataChange=OL.prototype.onDataChange;OL.prototype.isCollapsedChanged=OL.prototype.isCollapsedChanged;OL.prototype.isExpandedChanged=OL.prototype.isExpandedChanged;OL.prototype.onRowIndexChange=OL.prototype.onRowIndexChange;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],OL.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],OL.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],OL.prototype,"ytdReduxBehavior",void 0);
_.e([_.X({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.w("design:type",Object)],OL.prototype,"useResponsiveGrid",void 0);_.e([_.X(),_.w("design:type",Object)],OL.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],OL.prototype,"standardUnitMinWidth",void 0);_.e([_.X({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],OL.prototype,"elementsPerRow",void 0);_.e([_.X({value:3}),_.w("design:type",Number)],OL.prototype,"postsPerRow",void 0);
_.e([_.X({value:6}),_.w("design:type",Number)],OL.prototype,"slimItemsPerRow",void 0);_.e([_.X({value:6}),_.w("design:type",Number)],OL.prototype,"gameCardsPerRow",void 0);_.e([_.X({value:6}),_.w("design:type",Number)],OL.prototype,"miniGameCardsPerRow",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],OL.prototype,"hidden",void 0);_.e([_.X(),_.w("design:type",Object)],OL.prototype,"isShowMoreHidden",void 0);
_.e([_.X(),_.w("design:type",Object)],OL.prototype,"isShowLessHidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],OL.prototype,"hasExpansionButton",void 0);_.e([_.B("data.isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OL.prototype,"isExpanded",null);_.e([_.B("data.isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OL.prototype,"isCollapsed",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],OL.prototype,"isInnerShelf",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.w("design:type",Boolean)],OL.prototype,"isShorts",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.w("design:type",Boolean)],OL.prototype,"isLumiere",void 0);_.e([_.X({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.w("design:type",Boolean)],OL.prototype,"hasBoxArtThumbnailStyle",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.w("design:type",Boolean)],OL.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.w("design:type",Boolean)],OL.prototype,"hasFeaturedBadge",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.w("design:type",Boolean)],OL.prototype,"hasPaygatedFeaturedBadge",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.w("design:type",Boolean)],OL.prototype,"isHeaderHidden",void 0);_.e([_.X({selector:_.ZqQ}),_.w("design:type",Object)],OL.prototype,"allVideosCount",void 0);_.e([_.X({selector:c67}),_.w("design:type",Object)],OL.prototype,"allPlaylistCount",void 0);_.e([_.X({selector:B3H}),_.w("design:type",Object)],OL.prototype,"haveSmartDownloadsCompleted",void 0);
_.e([_.X({selectorArgs:["entitySelectorType"],selector:function(z,l){if(_.C("kevlar_modern_downloads_page")&&l&&l!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=z.entities;switch(l){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":l=_.dg(I);z=Xo(l);var b=_.Fs(l);I=_.Pg(I);I=_.xw(B9k(b,I,l.length));return{contents:z,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.dg(I),{contents:Xo(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.oh(I),{contents:Xo(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.Wtf(I),{contents:Xo(I)};default:_.PW(new _.qB("Error: entitySelectorType defined but not matched in selector.",z,l))}}}}),
_.w("design:type",Object)],OL.prototype,"entityDrivenRichShelfData",void 0);_.e([_.X({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.w("design:type",Boolean)],OL.prototype,"hasTopCtaButton",void 0);_.e([_.X({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.w("design:type",Boolean)],OL.prototype,"hasBottomCtaButton",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.w("design:type",Boolean)],OL.prototype,"force16By9ThumbnailAspectRatio",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],OL.prototype,"restrictContentsOverflow",void 0);_.e([_.X({selector:_.gT1}),_.w("design:type",Boolean)],OL.prototype,"inlinePreviewIsEnabled",void 0);_.e([_.X({computed:"computeSizing(data)"}),_.w("design:type",String)],OL.prototype,"sizing",void 0);
_.e([_.X(),_.w("design:type",Boolean)],OL.prototype,"typographyBump",void 0);_.e([_.X(),_.w("design:type",Number)],OL.prototype,"itemWidth",void 0);_.e([_.X(),_.w("design:type",Object)],OL.prototype,"firstShownIndex",void 0);_.e([_.X(),_.w("design:type",Object)],OL.prototype,"horizontalOffset",void 0);_.e([_.X(),_.w("design:type",Object)],OL.prototype,"atEnd",void 0);_.e([_.qX("#contents"),_.w("design:type",HTMLElement)],OL.prototype,"contents",void 0);
_.e([_.By("data.rowIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OL.prototype,"onRowIndexChange",null);_.e([_.By("isExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OL.prototype,"isExpandedChanged",null);_.e([_.By("isCollapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OL.prototype,"isCollapsedChanged",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OL.prototype,"onDataChange",null);_.e([_.By("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OL.prototype,"handleRerenderDownloadsData",null);_.e([_.tP("focusin"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],OL.prototype,"onChildElementFocus",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data","isHomePage"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OL.prototype,"isTruncated",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OL.prototype,"showBottomDivider",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],OL.prototype,"hasChevronButtons",null);
_.e([_.B("firstShownIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],OL.prototype,"previousButtonOverride",null);_.e([_.B("atEnd"),_.w("design:type",Object),_.w("design:paramtypes",[])],OL.prototype,"nextButtonOverride",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OL.prototype,"isHomePage",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],OL.prototype,"thumbnailAriaHidden",null);
_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],OL.prototype,"entitySelectorType",null);_.e([_.S({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],OL);
_.QN_=_.Hh()(OL,"ytd-rich-shelf-renderer",function(){if(FwM===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);FwM=z}z=FwM;return z},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var YQu;_.uO(_.T2,"yt-badge-view-model",{props:{data:_.mB,class:_.mB,workaroundShortsIsThumbnailBadge:_.mB,modern:_.mB,numBadgesInRow:_.mB}});_.uO(pSA,"yt-slimline-survey-view-model",{props:{data:_.mB}});var gj=function(){var z=_.q.apply(this,arguments)||this;z.tileLottieAnimationRef={};z.backgroundLottieAnimationRef={};z.isOnHoverBehaviorForLottieEnabled=!0;z.useBiggerShowcaseImage=_.C("enable_desktop_search_bigger_thumbs");z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return z};
_.m(gj,_.q);_.p=gj.prototype;_.p.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.p.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.p.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var z=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);z!==this.hasTile&&this.set("hasTile",z);z=this.hasLogo(this.data)||!!this.data.badgeText;z!==this.hasMetadata&&this.set("hasMetadata",z);z=this.data.overflowButton?!1:z;z!==this.showLogoImage&&this.set("showLogoImage",z);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.p.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.p.currentColorChanged=function(){this.updateButtonPalette()};
_.p.computeBackgroundStyle=function(z){if(z&&this.data){var l=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.Hr((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&l.push('background-image: url("'+I+'");')}var b;((b=z.basicColorData)==null?void 0:b.backgroundColor)!==void 0&&l.push("background-color: "+_.aD(z.basicColorData.backgroundColor)+";");return l.join("")}};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&this.set("isDarkTheme",z)};
_.p.getCurrentLogo=function(z,l){if(z)return l?z.darkLogoImage:z.lightLogoImage};
_.p.getCurrentStaticTileImage=function(z,l){if(this.hasStaticTile(z))return z.darkTileImage?l?z.darkTileImage:z.tileImage:z.tileImage};
_.p.computeTitleStyle=function(z){if(this.data&&this.data.title&&z&&z.basicColorData&&z.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Ur(z.basicColorData.foregroundTitleColor)+";"};
_.p.computeSubtitleStyle=function(z){if(this.data&&this.data.subtitle&&z&&z.basicColorData&&z.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Ur(z.basicColorData.foregroundBodyColor)+";"};
_.p.computeSupplementalStyle=function(z){if(this.data&&this.data.supplementalText&&z&&z.supplementalTextColor!==void 0)return z=_.Ur(z.supplementalTextColor),"color:"+z+";--yt-endpoint-color:"+z+";--yt-endpoint-hover-color:"+z+";--yt-endpoint-visited-color:"+z+";--yt-formatted-string-bold-font-weight:700;"};
_.p.computeDismissIconStyle=function(z){var l,I;if((z==null?0:(l=z.dismissButtonColorData)==null?0:l.foregroundTitleColor)&&(z==null?0:(I=z.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.aD(z.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aD(z.dismissButtonColorData.backgroundColor)+";"};
_.p.computeOverflowIconStyle=function(z){var l,I;if((z==null?0:(l=z.dismissButtonColorData)==null?0:l.foregroundTitleColor)&&(z==null?0:(I=z.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.aD(z.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aD(z.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.aD(z.dismissButtonColorData.foregroundTitleColor)+";"};
_.p.computeBannerStyle=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeLocation=function(z){switch(z==null?void 0:z.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.p.shouldShowTileSection=function(z,l,I){return!this.shouldExpandLogo(z,l,I)&&l};
_.p.shouldShowExpandedLogoSection=function(z,l,I){return this.shouldExpandLogo(z,l,I)&&z!==void 0&&this.hasLogo(z)};
_.p.shouldExpandLogo=function(z,l,I){return z&&l?!1:I>=2};
_.p.hasStaticTile=function(z){return!(z==null||!z.tileImage)};
_.p.hasTileLottie=function(z){var l;return!!(z==null?0:(l=z.tileLottie)==null?0:l.url)};
_.p.hasLogo=function(z){return this.getCurrentLogo(z,this.isDarkTheme)!==void 0};
_.p.getLogoHeight=function(z){return this.logoWithPadding(z)?"26":"20"};
_.p.getExpandedLogoHeight=function(z){return this.logoWithPadding(z)?"31":"24"};
_.p.getLogoImageId=function(z){return this.logoWithPadding(z)?"logo-image-with-padding":"logo-image"};
_.p.getMaxTitleFontSize=function(z){return z.overrideTitleMaxFontSize?String(z.overrideTitleMaxFontSize):"36"};
_.p.hasBackgroundLottie=function(z){var l;return!!(z==null?0:(l=z.backgroundLottie)==null?0:l.url)};
_.p.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var z,l;(z=this.tileLottieAnimationRef)==null||(l=z.lottieEl)==null||l.play();var I,b;(I=this.backgroundLottieAnimationRef)==null||(b=I.lottieEl)==null||b.play()}};
_.p.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var z,l;(z=this.tileLottieAnimationRef)==null||(l=z.lottieEl)==null||l.pause();var I,b;(I=this.backgroundLottieAnimationRef)==null||(b=I.lottieEl)==null||b.pause()}};
_.p.pauseLottie=function(){var z,l;(z=this.tileLottieAnimationRef)==null||(l=z.lottieEl)==null||l.pause();var I,b;(I=this.backgroundLottieAnimationRef)==null||(b=I.lottieEl)==null||b.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.p.performPrimaryButtonAction=function(){var z,l,I;((z=this.data)==null?0:(l=z.primaryButton)==null?0:(I=l.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
_.p.updateButtonPalette=function(){if(this.data&&this.currentColorData){var z;((z=this.data.dismissButton)==null?0:z.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var l;if((l=this.data.primaryButton)==null?0:l.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var I;if((I=this.data.secondaryButton)==
null?0:I.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 b;((b=this.data.primaryButton)==null?0:b.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var v;((v=this.data.secondaryButton)==null?0:v.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)})}};
_.p.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var z=this.getTileLottieDataBasedOnTheme(),l,I;if(z.url!==((l=this.tileLottiePlayerProps)==null?void 0:(I=l.animationConfig)==null?void 0:I.path)){var b,v;(b=this.tileLottieAnimationRef)==null||(v=b.lottieEl)==null||v.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=z.settings)==null?0:M.autoplay);var x,g;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(g=(x=z.settings)==null?void 0:x.autoplay)!=null?g:!1,loop:this.getLottieLoopValue(z.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof z.url==="string"?this.tileLottiePlayerProps.animationConfig.path=z.url:this.tileLottiePlayerProps.animationConfig.animationData=z.url}}};
_.p.getOverflowButton=function(z){return _.k(z.overflowButton,RXw)};
_.p.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var z=this.getBackgroundLottieDataBasedOnTheme(),l,I;if(z.url!==((l=this.backgroundLottiePlayerProps)==null?void 0:(I=l.animationConfig)==null?void 0:I.path)){var b,v;(b=this.backgroundLottieAnimationRef)==null||(v=b.lottieEl)==null||v.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=z.settings)==null?0:M.autoplay);var x,g;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(g=(x=z.settings)==null?void 0:x.autoplay)!=null?g:!1,loop:this.getLottieLoopValue(z.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof z.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=z.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
z.url}}};
_.p.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var z;((z=this.tileLottieAnimationRef)==null?void 0:z.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var l;((l=this.backgroundLottieAnimationRef)==null?void 0:l.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.p.getTileLottieDataBasedOnTheme=function(){var z;if(this.isDarkTheme&&((z=this.data)==null?0:z.darkThemeTileLottie))return this.data.darkThemeTileLottie;var l;return((l=this.data)==null?0:l.tileLottie)?this.data.tileLottie:{}};
_.p.getBackgroundLottieDataBasedOnTheme=function(){var z;if(this.isDarkTheme&&((z=this.data)==null?0:z.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var l;return((l=this.data)==null?0:l.backgroundLottie)?this.data.backgroundLottie:{}};
_.p.onUpdateElementsPerRowAction=function(z){z&&this.elementsPerRow!==z&&(this.elementsPerRow=z)};
_.p.getLottieLoopValue=function(z){return z?z.loop!==void 0?z.loop:z.loopCount?z.loopCount-1:!0:!0};
_.p.logoWithPadding=function(z){var l,I,b;return(z=(l=this.getCurrentLogo(z,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(b=I[0])==null?void 0:b.height)&&z%31===0?!0:!1};
gj.prototype.currentColorChanged=gj.prototype.currentColorChanged;gj.prototype.themeChanged=gj.prototype.themeChanged;gj.prototype.dataChanged=gj.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],gj.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],gj.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],gj.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"primaryButton",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"secondaryButton",void 0);
_.e([_.X({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],gj.prototype,"elementsPerRow",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],gj.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],gj.prototype,"hasTile",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],gj.prototype,"hasMetadata",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],gj.prototype,"showLogoImage",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"currentColorData",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.w("design:type",String)],gj.prototype,"bannerStyle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.w("design:type",String)],gj.prototype,"location",void 0);
_.e([_.X(),_.w("design:type",Object)],gj.prototype,"tileLottiePlayerProps",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"tileLottieAnimationRef",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"backgroundLottiePlayerProps",void 0);_.e([_.X(),_.w("design:type",Object)],gj.prototype,"backgroundLottieAnimationRef",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gj.prototype,"useBiggerShowcaseImage",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],gj.prototype,"isHideEnclosingAction",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gj.prototype,"dataChanged",null);_.e([_.YE("isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gj.prototype,"themeChanged",null);
_.e([_.YE("currentColorData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gj.prototype,"currentColorChanged",null);_.e([_.S({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],gj);
_.r(gj,"ytd-statement-banner-renderer",function(){if(YQu!==void 0)return YQu;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YQu=z},{mode:1});var Tdu;var Gw=function(){var z=_.q.apply(this,arguments)||this;z.isSearch=!1;z.hideShelfHeader=!1;z.engagementPanel=!1;z.disableMouseScroll=!0;z.useFloorScrolling=!0;z.modernTypography=_.C("web_modern_typography");return z};
_.m(Gw,_.q);Gw.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.mY("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.mY("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Gw.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Gw.prototype.onDataChanged=Gw.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Gw.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gw.prototype,"hideShelfHeader",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gw.prototype,"engagementPanel",void 0);_.e([_.X(),_.w("design:type",Object)],Gw.prototype,"disableMouseScroll",void 0);_.e([_.X(),_.w("design:type",Object)],Gw.prototype,"useFloorScrolling",void 0);_.e([_.X(),_.w("design:type",Object)],Gw.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gw.prototype,"modernTypography",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gw.prototype,"onDataChanged",null);_.e([_.S({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Gw);
_.r(Gw,"ytd-reel-shelf-renderer",function(){if(Tdu!==void 0)return Tdu;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Tdu=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var cb_;var SQI;SQI=_.zs(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.dC_=_.HR(SQI);var oou=_.P(function(z){var l=z.data;z=z.useSmallFont;var I={},b={};return _.N("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.N(_.E,{cond:function(){return l().favicon},
then:function(v){return _.N(_.pK,{data:v,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.N("div",{class:"ytChannelExternalLinkViewModelContainer"},_.N(_.Rf,{text:function(){return l().title},
className:_.m9("ytChannelExternalLinkViewModelTitle",(I.ytChannelExternalLinkViewModelTitleSmallFont=z,I)),ellipsisTruncate:!0,userInput:!0}),_.N(_.Rf,{text:function(){return l().link},
className:_.m9("ytChannelExternalLinkViewModelLink",(b.ytChannelExternalLinkViewModelLinkSmallFont=z,b)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"$b");
oou.idomCompat=!0;_.uO(oou,"yt-channel-external-link-view-model",{props:{data:_.mB,useSmallFont:_.mB}});_.sW("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var N9=function(){var z=_.q.apply(this,arguments)||this;z.revealButtonClass="button";z.businessEmailDisplayState="HIDE_SECTION";return z};
_.m(N9,_.q);_.p=N9.prototype;_.p.refit=function(){var z=this;_.JP(function(){_.EK(z.hostElement,"yt-refit-popups-action")});
_.IR(this,function(){_.EK(z.hostElement,"yt-refit-popups-action")})};
_.p.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.nQ(_.dC_),this.businessEmailDisplayState="CAPTCHA")};
_.p.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"};
_.p.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.p.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"}}}};
_.p.computeEmailHref=function(z){return"mailto:"+z};
_.p.computeSafeUrl=function(z){if(z)return _.eA(z)};
_.p.linkEndpoint=function(z){return _.k(z.onTap,_.Ax)};
_.p.linkEndpointToHref=function(z){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(z))};
_.p.onYtServiceRequestCompleted=function(z){var l;if((l=z.detail.data)==null?0:l.businessEmail)this.businessEmail=z.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=z.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=z.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var z=this.JSC$16258_captchaTextarea.value;if(z){z={recaptcha_response_token:z,channel_id:this.metadata.channelId};var l=_.k(this.metadata.onBusinessEmailRevealClickCommand,_.Ax);l&&this.ytComponentBehavior.resolveCommand(l,{form:z})}}};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vP.Object.defineProperties(N9.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var z;return _.k((z=this.data)==null?void 0:z.metadata,czu)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.businessEmailRevealButton,_.N1)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var z=new URL(this.metadata.canonicalChannelUrl);return z.host+z.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,_.Ax)}}});
N9.prototype.onYtServiceRequestCompleted=N9.prototype.onYtServiceRequestCompleted;N9.prototype.businessEmailMetadataChanged=N9.prototype.businessEmailMetadataChanged;N9.prototype.refit=N9.prototype.refit;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#g-recaptcha-response"),_.w("design:type",HTMLTextAreaElement)],N9.prototype,"JSC$16258_captchaTextarea",void 0);_.e([_.X(),_.w("design:type",Object)],N9.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],N9.prototype,"revealButtonClass",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],N9.prototype,"metadata",null);
_.e([_.B("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],N9.prototype,"revealButton",null);_.e([_.B("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],N9.prototype,"channelDisplayUrl",null);_.e([_.YE("metadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],N9.prototype,"refit",null);_.e([_.B("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],N9.prototype,"formattedDescription",null);
_.e([_.B("metadata","learnMoreCommand"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N9.prototype,"shouldRendereVerifiedPhoneStatus",null);_.e([_.B("metadata"),_.w("design:type",Object),_.w("design:paramtypes",[])],N9.prototype,"learnMoreCommand",null);_.e([_.X(),_.w("design:type",String)],N9.prototype,"businessEmailDisplayState",void 0);_.e([_.X(),_.w("design:type",String)],N9.prototype,"businessEmail",void 0);
_.e([_.X(),_.w("design:type",String)],N9.prototype,"businessEmailErrorMessage",void 0);_.e([_.YE("metadata"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],N9.prototype,"businessEmailMetadataChanged",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],N9.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],N9);
_.r(N9,"ytd-about-channel-renderer",function(){if(cb_!==void 0)return cb_;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return cb_=z},{mode:1});var PZA;var EL=function(){return _.q.apply(this,arguments)||this};
_.m(EL,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EL.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],EL);
_.r(EL,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(PZA!==void 0)return PZA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return PZA=z},{mode:1});var h0_;var u4=function(){return _.q.apply(this,arguments)||this};
_.m(u4,_.q);u4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],u4.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],u4.prototype,"aligment",void 0);_.e([_.S({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],u4);
_.r(u4,"ytd-channel-list-sub-menu-renderer",function(){if(h0_!==void 0)return h0_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return h0_=
z},{mode:1});var sN_;var Z8=function(){return _.q.apply(this,arguments)||this};
_.m(Z8,_.q);Z8.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Z8.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Z8);
_.r(Z8,"ytd-channel-sub-menu-renderer",function(){if(sN_!==void 0)return sN_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sN_=z},{mode:1});var rbz;var $Cp;var HA=function(){var z=_.q.apply(this,arguments)||this;z.isCompact=!1;return z};
_.m(HA,_.q);_.vP.Object.defineProperties(HA.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var z,l;return((l=_.k((z=this.data)==null?void 0:z.endpoint,_.AK))==null?void 0:l.target)==="TARGET_NEW_WINDOW"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],HA.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],HA.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],HA.prototype,"isCompact",void 0);_.e([_.B("isCompact"),_.w("design:type",Number),_.w("design:paramtypes",[])],HA.prototype,"thumbnailWidth",null);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],HA.prototype,"openNewWindow",null);_.e([_.S({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],HA);
_.r(HA,"ytd-media-lockup-renderer",function(){if($Cp!==void 0)return $Cp;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $Cp=z},{mode:1});var e0_;var yg=function(){return _.q.apply(this,arguments)||this};
_.m(yg,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],yg.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yg.prototype,"data",void 0);_.e([_.S({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],yg);
_.r(yg,"ytd-structured-description-channel-lockup-renderer",function(){if(e0_!==void 0)return e0_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return e0_=z},{mode:1});var w3z;var fU=function(){var z=_.q.apply(this,arguments)||this;z.isCompact=!1;z.collections=_.C("web_modern_collections_v2");z.collectionsStackColor=_.C("modernize_structured_description_playlist_lockups_v2");return z};
_.m(fU,_.q);fU.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:_.C("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.vP.Object.defineProperties(fU.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v,M;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(z=this.data)==null?void 0:(l=z.thumbnail)==null?void 0:l.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(b=I.thumbnail)==null?void 0:b.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(v=this.data)==null?void 0:(M=v.thumbnail)==
null?void 0:M.vibrantColorPalette:void 0}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],fU.prototype,"componentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fU.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],fU.prototype,"showSidePanelThumbnailOverlay",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fU.prototype,"isCompact",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],fU.prototype,"collections",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fU.prototype,"collectionsStackColor",void 0);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fU.prototype,"twoLineTitle",null);
_.e([_.B("data","collections","collectionsStackColor"),_.w("design:type",Object),_.w("design:paramtypes",[])],fU.prototype,"collectionStack",null);_.e([_.S({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],fU);
_.r(fU,"ytd-structured-description-playlist-lockup-renderer",function(){if(w3z!==void 0)return w3z;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return w3z=z},{mode:1});var AbA;var CU=function(){return _.q.apply(this,arguments)||this};
_.m(CU,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],CU.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],CU.prototype,"data",void 0);_.e([_.S({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],CU);
_.r(CU,"ytd-structured-description-video-lockup-renderer",function(){if(AbA!==void 0)return AbA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return AbA=z},{mode:2});var kr=function(){return _.q.apply(this,arguments)||this};
_.m(kr,_.q);
kr.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kr.prototype,"data",void 0);_.e([_.S({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],kr);
_.r(kr,"ytd-compact-infocard-renderer",function(){if(rbz!==void 0)return rbz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return rbz=z},{mode:1});var Ww4;var RB=function(){var z=_.q.apply(this,arguments)||this;z.useModernCollectionsV2=_.C("web_modern_collections_v2");return z};
_.m(RB,_.q);RB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vP.Object.defineProperties(RB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.C("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.C("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.C("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],RB.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],RB.prototype,"ytdReduxBehavior",void 0);_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],RB.prototype,"isGridViewEnabled",void 0);
_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],RB.prototype,"watchFeedBigThumbs",null);_.e([_.B("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"168"}),_.w("design:type",String),_.w("design:paramtypes",[])],RB.prototype,"thumbnailWidth",null);_.e([_.B("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"94"}),_.w("design:type",String),_.w("design:paramtypes",[])],RB.prototype,"customThumbnailSize",null);
_.e([_.X(),_.w("design:type",Object)],RB.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],RB.prototype,"useModernCollectionsV2",void 0);_.e([_.S({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],RB);
_.r(RB,"ytd-compact-playlist-renderer",function(){if(Ww4!==void 0)return Ww4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ww4=z},{mode:1});var now;var ml=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.roundedContainer=!0;z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return z};
_.m(ml,_.q);_.p=ml.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.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"}}}};
_.p.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.p.computeViewStyle=function(z){return z.style?z.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.p.onUpdateElementsPerRowAction=function(z){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&z===1};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
ml.prototype.dataChanged=ml.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],ml.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ml.prototype,"actionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],ml.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],ml.prototype,"hideThumbnail",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.w("design:type",String)],ml.prototype,"viewStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"darkerDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ml.prototype,"roundedContainer",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ml.prototype,"dataChanged",null);_.e([_.S({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ml);
_.r(ml,"ytd-compact-promoted-item-renderer",function(){if(now!==void 0)return now;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return now=z},{mode:1});var Lw_;var KU=function(){var z=_.q.apply(this,arguments)||this;z.collections=_.C("web_modern_collections_v2");return z};
_.m(KU,_.q);KU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
KU.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
KU.prototype.onYtNavigate=function(z,l){var I=this;if(l.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",l)){var b=this.get("watchEndpoint.videoId",l.endpoint),v=_.EK(this.hostElement,"yt-get-current-video-id-action")[0];_.C("kevlar_mix_handle_first_endpoint_different")&&b&&v&&b!==v||(z.stopPropagation(),_.Nv().getPlayerPromise().then(function(M){if(M.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var x=I.data.secondaryNavigationEndpoint;else{x=
Object.assign({},l.endpoint);var g=_.k(x.commandMetadata,_.kB);g&&(M=Math.floor(M.getCurrentTime()),g.url=_.Jr(g.url,{t:M}),!_.C("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(g=_.k(x,_.zb)))&&(g.startTimeSeconds=M)}_.gC(I.hostElement,"yt-navigate",{endpoint:x})}))}};
_.vP.Object.defineProperties(KU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.C("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.C("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(z=this.data)==null?void 0:(l=z.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(b=I.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(v=this.data)==null?void 0:(M=v.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
KU.prototype.onYtNavigate=KU.prototype.onYtNavigate;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],KU.prototype,"ytEndpointBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],KU.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.Cf),_.w("design:type",Object)],KU.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],KU.prototype,"ytdReduxBehavior",void 0);_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],KU.prototype,"isGridViewEnabled",void 0);_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],KU.prototype,"watchFeedBigThumbs",null);
_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],KU.prototype,"thumbnailWidth",null);_.e([_.X(),_.w("design:type",Object)],KU.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],KU.prototype,"collections",void 0);_.e([_.B("data","collections"),_.w("design:type",Object),_.w("design:paramtypes",[])],KU.prototype,"collectionStack",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],KU.prototype,"onYtNavigate",null);_.e([_.S({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],KU);
_.r(KU,"ytd-compact-radio-renderer",function(){if(Lw_!==void 0)return Lw_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Lw_=z},{mode:1});var UCn;var tl=function(){return _.q.apply(this,arguments)||this};
_.m(tl,_.q);tl.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
tl.prototype.computeRendererStyle=function(z){return z.style?z.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.e([_.X(),_.w("design:type",Object)],tl.prototype,"data",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tl.prototype,"rendererBehavior",void 0);_.e([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.w("design:type",String)],tl.prototype,"rendererStyle",void 0);_.e([_.S({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],tl);
_.r(tl,"ytd-compact-text-promo-renderer",function(){if(UCn!==void 0)return UCn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return UCn=z},{mode:1});var aeA;var BA=function(){var z=_.q.apply(this,arguments)||this;z.isShortsStyle=!1;return z};
_.m(BA,_.q);_.p=BA.prototype;_.p.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"}}}};
_.p.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.gC(this.hostElement,"yt-disable-lockup-interaction"):_.gC(this.hostElement,"yt-enable-lockup-interaction"))};
_.p.isMetaBlockEmpty=function(z){return!z||!z.longBylineText&&!z.shortBylineText&&!z.shortViewCountText&&!z.viewCountText};
_.p.computeHasOneLineTitle=function(z){return this.forceOneLineTitle||!(z==null||!z.buttons)};
_.p.computeDisableInteraction=function(){var z;return!((z=this.data)==null?0:z.navigationEndpoint)};
_.p.hasSingularTopStandaloneBadge=function(){var z;return!((z=this.data)==null||!z.topStandaloneBadge)};
_.vP.Object.defineProperties(BA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.C("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.C("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 z;return this.hasSingularTopStandaloneBadge()?[(z=this.data)==null?void 0:z.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var z;return this.shouldShowTopBadges?((z=this.data)==null?void 0:z.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
BA.prototype.disableInteractionChanged=BA.prototype.disableInteractionChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],BA.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],BA.prototype,"ytdLockupBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],BA.prototype,"ytdReduxBehavior",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.w("design:type",Boolean)],BA.prototype,"metaBlockEmpty",void 0);_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],BA.prototype,"isGridViewEnabled",void 0);_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],BA.prototype,"watchFeedBigThumbs",null);
_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],BA.prototype,"thumbnailWidth",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],BA.prototype,"isShortsStyle",void 0);_.e([_.X(),_.w("design:type",Object)],BA.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.w("design:type",Boolean)],BA.prototype,"hasOneLineTitle",void 0);
_.e([_.X(),_.w("design:type",Boolean)],BA.prototype,"hideThumbnail",void 0);_.e([_.X(),_.w("design:type",Boolean)],BA.prototype,"forceOneLineTitle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.w("design:type",Boolean)],BA.prototype,"disableInteraction",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],BA.prototype,"musicMetadataVideoLockup",void 0);
_.e([_.By("disableInteraction"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BA.prototype,"disableInteractionChanged",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],BA.prototype,"shouldShowTopBadges",null);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],BA.prototype,"topBadges",null);
_.e([_.B("shouldShowTopBadges","data"),_.w("design:type",Array),_.w("design:paramtypes",[])],BA.prototype,"inlineMetadataBadges",null);_.e([_.B("shouldShowTopBadges"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],BA.prototype,"shouldShowBadgesBelowMetadata",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],BA.prototype,"compactTitleClass",null);_.e([_.S({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],BA);
_.r(BA,"ytd-compact-video-renderer",function(){if(aeA!==void 0)return aeA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return aeA=z},{mode:_.yP("kevlar_poly_si_batch_j067")?1:2});var Vfp;_.sW("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var XF=function(){return _.q.apply(this,arguments)||this};
_.m(XF,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],XF.prototype,"data",void 0);_.e([_.S({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],XF);
_.r(XF,"ytd-counterfactual-renderer",function(){if(Vfp!==void 0)return Vfp;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Vfp=z},{mode:1});var jNu;var q9=function(){var z=_.q.apply(this,arguments)||this;z.hidden=!1;return z};
_.m(q9,_.q);q9.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.pG().resolve(_.DQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
q9.prototype.computeHidden=function(z){return!!z};
_.vP.Object.defineProperties(q9.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],q9.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.w("design:type",Object)],q9.prototype,"hidden",void 0);_.e([_.B("data.label"),_.w("design:type",String),_.w("design:paramtypes",[])],q9.prototype,"label",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],q9.prototype,"value",null);
_.e([_.S({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],q9);
_.r(q9,"ytd-dropdown-item-renderer",function(){if(jNu!==void 0)return jNu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return jNu=z},{mode:1});var Jbu;var z80;var i4=function(){return _.q.apply(this,arguments)||this};
_.m(i4,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],i4.prototype,"data",void 0);_.e([_.X({computed:"getSimpleString(data.label)"}),_.w("design:type",String)],i4.prototype,"label",void 0);_.e([_.S({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],i4);
_.r(i4,"ytd-navigation-dropdown-item-renderer",function(){if(z80!==void 0)return z80;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return z80=z},{mode:1});var FF=function(){var z=_.q.apply(this,arguments)||this;z.disabled=!1;z.value="";z.noLabelFloat=!1;z.noUnderline=!1;z.usePrimaryColor=!1;z.hasBackground=!1;z.verticalAlign="top";z.autosize=!1;z.minAutosizeWidth=100;z.autosizeFont="14px Roboto";return z};
_.m(FF,_.q);_.p=FF.prototype;_.p.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"}}}};
_.p.open=function(){this.inputEl.open()};
_.p.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.p.dataChanged=function(){this.reset()};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("value-changed",this.value))};
_.p.stopPropagation=function(z){z.stopPropagation()};
_.p.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var z=this.canvas.getContext("2d");z&&(z.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(z.measureText(this.inputEl.value).width)+24)+"px")}};
_.p.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var z=0,l=this.data.entries.length;z<l;z++){var I=this.data.entries[z],b;for(b in I)if(I.hasOwnProperty(b)){var v=I[b];if("isSelected"in v&&v.isSelected)return"stringValue"in v?v.stringValue||"":"int32Value"in v?v.int32Value||0:0}}return null};
_.p.updateValueFromBinding=function(z){this.value=z.detail.value};
_.vP.Object.defineProperties(FF.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 z=0,l=this.data.entries.length;z<l;z++){var I=this.data.entries[z],b;for(b in I)if(I.hasOwnProperty(b)){var v=I[b];if("isSelected"in v&&v.isSelected&&"label"in v)return this.ytRendererBehavior.getSimpleString(v.label)}}return null}}});
FF.prototype.autoSizeLabel=FF.prototype.autoSizeLabel;FF.prototype.stopPropagation=FF.prototype.stopPropagation;FF.prototype.valueChangedForBinding=FF.prototype.valueChangedForBinding;FF.prototype.dataChanged=FF.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],FF.prototype,"ytRendererStamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],FF.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],FF.prototype,"disabled",void 0);_.e([_.X(),_.w("design:type",Object)],FF.prototype,"value",void 0);_.e([_.X(),_.w("design:type",Object)],FF.prototype,"noLabelFloat",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],FF.prototype,"noUnderline",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],FF.prototype,"theme",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],FF.prototype,"usePrimaryColor",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],FF.prototype,"hasBackground",void 0);_.e([_.X(),_.w("design:type",Object)],FF.prototype,"verticalAlign",void 0);_.e([_.X(),_.w("design:type",Object)],FF.prototype,"autosize",void 0);_.e([_.X(),_.w("design:type",Object)],FF.prototype,"minAutosizeWidth",void 0);_.e([_.X(),_.w("design:type",Object)],FF.prototype,"autosizeFont",void 0);
_.e([_.qX("#entries"),_.w("design:type",Object)],FF.prototype,"entries",void 0);_.e([_.qX("#input"),_.w("design:type",Object)],FF.prototype,"inputEl",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FF.prototype,"dataChanged",null);_.e([_.YE("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FF.prototype,"valueChangedForBinding",null);
_.e([_.tP("iron-overlay-opened"),_.tP("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],FF.prototype,"stopPropagation",null);_.e([_.tP("iron-select"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],FF.prototype,"autoSizeLabel",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],FF.prototype,"label",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],FF);
_.r(FF,"ytd-dropdown-renderer",function(){if(Jbu!==void 0)return Jbu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Jbu=z},{mode:1});var lcw;var Qg=function(){var z=_.q.apply(this,arguments)||this;z.isConstrainedList=!1;return z};
_.m(Qg,_.q);Qg.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"}}}};
Qg.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Qg.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Qg.prototype.computeViewAllHidden=function(z,l){return z||!l.viewAllEndpoint};
Qg.prototype.fillRestIfNoShowMore=Qg.prototype.fillRestIfNoShowMore;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],Qg.prototype,"ytLazyListBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Qg.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Qg.prototype,"isConstrainedList",void 0);_.e([_.YE("data","canShowMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qg.prototype,"fillRestIfNoShowMore",null);_.e([_.S({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Qg);
_.r(Qg,"ytd-expanded-shelf-contents-renderer",function(){if(lcw!==void 0)return lcw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return lcw=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var Icp;var Yr=function(){return _.q.apply(this,arguments)||this};
_.m(Yr,_.q);Yr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yr.prototype,"data",void 0);_.e([_.S({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Yr);
_.r(Yr,"ytd-feed-channel-filter-header-renderer",function(){if(Icp!==void 0)return Icp;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Icp=z},{mode:1});var biM;var v2_;var Mrz;var Tw=function(){return _.q.apply(this,arguments)||this};
_.m(Tw,_.q);_.p=Tw.prototype;_.p.onClick=function(z){var l,I=(l=this.data)==null?void 0:l.sectionEndpoint;!_.DX(_.MX(z),this.hostElement,["A".toString()])&&I&&_.gC(this.hostElement,"yt-navigate",{endpoint:I})};
_.p.computeHasSectionEndpoint=function(z){return(z==null?void 0:z.sectionEndpoint)!==void 0};
_.p.computeShowHeaderAsLink=function(z){return(z==null?void 0:z.header)!==void 0&&(z==null?void 0:z.sectionEndpoint)!==void 0};
_.p.computeShowSubheaderAsLink=function(z){return(z==null?void 0:z.subheader)!==void 0&&(z==null?void 0:z.sectionEndpoint)!==void 0&&(z==null?void 0:z.header)===void 0};
_.p.getHeaderAsLinkClass=function(z){var l=[],I;(z==null?0:(I=z.headerIcon)==null?0:I.iconType)&&l.push("header-link-active");return l.join(" ")};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Tw.prototype,"data",void 0);
_.e([_.X({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Tw.prototype,"hasSectionEndpoint",void 0);_.e([_.X({computed:"computeShowHeaderAsLink(data)"}),_.w("design:type",Boolean)],Tw.prototype,"showHeaderAsLink",void 0);_.e([_.X({computed:"computeShowSubheaderAsLink(data)"}),_.w("design:type",Boolean)],Tw.prototype,"showSubheaderAsLink",void 0);_.e([_.S({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Tw);
_.r(Tw,"ytd-medical-panel-section-renderer",function(){if(Mrz!==void 0)return Mrz;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Mrz=z},{mode:1});var cA=function(){var z=_.q.apply(this,arguments)||this;z.isExpanded=!1;z.roundedContainer=!0;z.skipRoundingTop=!1;z.toggleExpandableSection=function(){z.isExpanded=!z.isExpanded};
return z};
_.m(cA,_.q);
cA.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]]"}}}}}};
cA.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
cA.prototype.dataChanged=cA.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cA.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],cA.prototype,"isExpanded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cA.prototype,"roundedContainer",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cA.prototype,"skipRoundingTop",void 0);_.e([_.X(),_.w("design:type",Object)],cA.prototype,"toggleExpandableSection",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cA.prototype,"dataChanged",null);_.e([_.S({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],cA);
_.r(cA,"ytd-medical-panel-content-renderer",function(){if(v2_!==void 0)return v2_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return v2_=z},{mode:1});_.sW("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Se=function(){var z=_.q.apply(this,arguments)||this;z.roundedContainer=!0;z.amsterdamEnabled=_.C("enable_desktop_amsterdam_info_panels");z.hasTitle=!1;z.linkIcon="OPEN_IN_NEW";z.isDismissed=!1;return z};
_.m(Se,_.q);
Se.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Se.prototype.computeHasTitle=function(z){return!(z==null||!z.title)};
Se.prototype.onClick=function(z){var l,I=(l=this.data)==null?void 0:l.headerEndpoint;!_.DX(_.MX(z),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.vP.Object.defineProperties(Se.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 z;return((z=this.data)==null?void 0:z.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.disableBottomDivider)||!((l=this.data)==null?0:l.title)}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Se.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Se.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Se.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Se.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Se.prototype,"amsterdamEnabled",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.w("design:type",Object)],Se.prototype,"hasTitle",void 0);
_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.B("data.background"),_.w("design:type",Object),_.w("design:paramtypes",[])],Se.prototype,"background",null);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.B("data.titleStyle"),_.w("design:type",Object),_.w("design:paramtypes",[])],Se.prototype,"titleStyle",null);
_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.B("data.titleStyle"),_.w("design:type",Object),_.w("design:paramtypes",[])],Se.prototype,"showLinkIcon",null);_.e([_.X(),_.w("design:type",String)],Se.prototype,"linkIcon",void 0);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Se.prototype,"hideDivider",null);
_.e([_.X({selectorArgs:["data.dismissStateEntityKey"],selector:function(z,l){z=_.Cc(z.entities,"dismissState",l);return(z==null?void 0:z.isDismissed)||(z==null?void 0:z.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(z==null?void 0:z.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.w("design:type",Object)],Se.prototype,"isDismissed",void 0);_.e([_.S({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Se);
_.r(Se,"ytd-info-panel-container-renderer",function(){if(biM!==void 0)return biM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return biM=z},{mode:1});var pY_;_.sW("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var dj=function(){var z=_.q.apply(this,arguments)||this;z.modernTypography=_.C("web_modern_typography");return z};
_.m(dj,_.q);dj.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dj.prototype.computeStyle=function(z){return z?z:""};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dj.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.w("design:type",String)],dj.prototype,"titleStyle",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],dj.prototype,"modernTypography",void 0);_.e([_.S({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],dj);
_.Hh()(dj,"ytd-item-section-header-renderer",function(){if(pY_===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);pY_=z}z=pY_;return z},{allowedProps:["data"],
mode:1});var Dsu;var xsA,Oiu=function(){return xsA!==void 0?xsA:xsA=document.createElement("template")};
document.head.appendChild(Oiu().content);var g2u;_.oB=new _.yH("VOTING_ANIMATION_CONTROLLER_TOKEN");var NV4=_.P(function(z){var l=z.data;var I=_.VK("div"),b=_.VK("div");z=_.D(_.Z_("VOTE_STATUS_NONE",void 0,"YPH5mf"));var v=z.next().value,M=z.next().value,x=_.F1(dqu,function(){var y;return(y=l())==null?void 0:y.entityKey}),g=_.C("web_enable_voting_animation")||_.C("enable_music_web_cairo_voting_animation");
_.Sm(function(){var y;((y=l().initialState)==null?0:y.status)&&M(l().initialState.status)});
var G=function(){var y,f,R=(f=(y=l().initialState)==null?void 0:y.votes)!=null?f:0,F;y=(F=l().initialState)==null?void 0:F.status;return y==="VOTE_STATUS_UPVOTED"?R-1:y==="VOTE_STATUS_DOWNVOTED"?R+1:R},u=function(){return v()==="VOTE_STATUS_UPVOTED"?G()+1:v()==="VOTE_STATUS_DOWNVOTED"?G()-1:G()},Z=function(y){var f=y?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
M(f);var R=u(),F=_.pG().resolve(_.MB(_.oB)),Y=x();Y&&(y&&(Y==null?0:Y.upvoteDefaultButtonOnTap)?_.ae(Y.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(Y==null?0:Y.upvoteToggledButtonOnTap)&&_.ae(Y.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var c;y=(c=Y==null?void 0:Y.enableOptimisticReordering)!=null?c:l().enableOptimisticReordering;g&&F&&l().itemId&&y&&G8A(F,l().itemId,R,f)},H=function(y){var f=y?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
M(f);var R=u(),F=_.pG().resolve(_.MB(_.oB)),Y=x();Y&&(y&&(Y==null?0:Y.downvoteDefaultButtonOnTap)?_.ae(Y.downvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(Y==null?0:Y.downvoteToggledButtonOnTap)&&_.ae(Y.downvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var c;y=(c=Y==null?void 0:Y.enableOptimisticReordering)!=null?c:l().enableOptimisticReordering;g&&F&&l().itemId&&y&&G8A(F,l().itemId,R,f)};
z={};z=_.m9("ytVotingViewModelVoteCount",(z.ytVotingViewModelVoteCountDisabled=function(){return l().isDisabled},z));
return _.N("voting-view-model",{class:"ytVotingViewModelHost"},_.N("div",{el:I},_.N(_.TS,{data:function(){var y=_.k(l().upvoteButton,_.uS);return{toggleButtonViewModel:Object.assign({},y,{isToggled:v()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(y){return _.N(_.vL,{data:y.data,
onToggle:Z})}})),_.N("div",{class:z},function(){var y,f,R;
return v()==="VOTE_STATUS_UPVOTED"?(y=l().initialState)==null?void 0:y.compactVotesUpvoted:v()==="VOTE_STATUS_DOWNVOTED"?(f=l().initialState)==null?void 0:f.compactVotesDownvoted:(R=l().initialState)==null?void 0:R.compactVotes}),_.N("div",{el:b},_.N(_.TS,{data:function(){var y=_.k(l().downvoteButton,_.uS);
return{toggleButtonViewModel:Object.assign({},y,{isToggled:v()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(y){return _.N(_.vL,{data:y.data,
onToggle:H})}})))},"ac");_.uO(_.P(function(z){var l=z.data;return _.N("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.N("div",{class:_.m9("ytEngagementBarViewModelEngagementBarWrapper",z.className)},_.N(_.TS,{data:function(){return l().actions}},{votingViewModel:NV4})))},"bc"),"engagement-bar-view-model",{props:{data:_.mB,
className:_.mB}});var PA=function(){var z=_.q.apply(this,arguments)||this;z.playlistVotingAnimationEnabled=_.C("web_enable_voting_animation");z.downloadProgress=0;z.transferState="TRANSFER_STATE_UNKNOWN";z.downloadState="DOWNLOAD_STATE_UNKNOWN";z.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";z.offlineVideoPolicyExpirationTimestamp=0;return z};
_.m(PA,_.q);_.p=PA.prototype;_.p.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"}}}};
_.p.canReorderChanged=function(){this.persistentDragHandle=_.C("kevlar_playlist_drag_handles")&&this.canReorder};
_.p.onDrag=function(){if(this.thumbnail){var z=_.Hy(this.thumbnail).querySelector("yt-image");z&&(z.shouldRenderLazy=!1)}};
_.p.onMenuOverlayChanged=function(z,l){this.menuOpened=l};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.p.onContentsTap=function(z){var l,I=(l=this.data)==null?void 0:l.serviceEndpoints;if(I&&I.length===1&&_.k(I[0],e$H)&&!_.DX(_.MX(z),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var b;(l=(b=this.data)==null?void 0:b.navigationEndpoint)&&_.C("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?E2M(_.pG().resolve(_.Af),l):(_.wb().playlistSuggestionsShelfActivation=
!0,_.uBp(_.pG().resolve(_.Af),l)):l&&!_.DX(_.MX(z),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.C("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.gC(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l))}};
_.p.computeStyle=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(z){return z==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.p.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=O1G(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))}};
_.p.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.p.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.p.dataChanged=function(){if(this.data){var z,l,I,b=((z=this.downloadRenderData)==null?void 0:z.badges)&&((l=this.downloadRenderData)==null?void 0:l.badges)!==((I=this.data)==null?void 0:I.badges),v,M,x;z=((v=this.downloadRenderData)==null?void 0:v.thumbnailOverlays)&&((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)!==((x=this.data)==null?void 0:x.thumbnailOverlays);(!this.downloadRenderData||b||z)&&this.downloadStateChanged()}};
_.p.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var z,l,I=(z=this.data.menu)==null?void 0:(l=z.menuRenderer)==null?void 0:l.items;if(I)for(z=_.D(I),l=z.next();!l.done;l=z.next())if(l=l.value,I=void 0,_.k((I=l.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.M1)){var b=I=void 0,v=void 0;l=(I=l)==null?void 0:(b=I.menuServiceItemRenderer)==null?void 0:(v=b.serviceEndpoint)==null?void 0:v.playlistEditEndpoint;v=b=void 0;if(I=(b=l)==null?void 0:(v=b.actions)==null?void 0:
v[0])b=void 0,I.setVideoId=(b=this.data)==null?void 0:b.setVideoId;v=b=I=void 0;if(l=(I=l)==null?void 0:(b=I.clientActions)==null?void 0:(v=b[0])==null?void 0:v.playlistRemoveVideosAction)I=void 0,l.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.vP.Object.defineProperties(PA.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
PA.prototype.setVideoIdChanged=PA.prototype.setVideoIdChanged;PA.prototype.dataChanged=PA.prototype.dataChanged;PA.prototype.downloadStateChanged=PA.prototype.downloadStateChanged;PA.prototype.onMenuOverlayChanged=PA.prototype.onMenuOverlayChanged;PA.prototype.canReorderChanged=PA.prototype.canReorderChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],PA.prototype,"ytdReduxBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],PA.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],PA.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],PA.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],PA.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],PA.prototype,"canReorder",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],PA.prototype,"menuOpened",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],PA.prototype,"handleIsHovered",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],PA.prototype,"persistentDragHandle",void 0);_.e([_.X(),_.w("design:type",Object)],PA.prototype,"downloadRenderData",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],PA.prototype,"styleType",void 0);_.e([_.X({computed:"computeThumbnailWidth(data.style)"}),_.w("design:type",Number)],PA.prototype,"thumbnailWidth",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],PA.prototype,"isDownloads",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],PA.prototype,"playlistVotingAnimationEnabled",void 0);
_.e([_.X({selector:Wg,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],PA.prototype,"downloadProgress",void 0);_.e([_.X(),_.w("design:type",Number)],PA.prototype,"relativeDateReference",void 0);_.e([_.X({selector:_.wg,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],PA.prototype,"transferState",void 0);_.e([_.X({selector:iqu,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],PA.prototype,"downloadState",void 0);
_.e([_.X({selector:ET$,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],PA.prototype,"offlinePolicyAction",void 0);_.e([_.X({selector:uXk,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],PA.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.e([_.X({selector:Hqt,selectorArgs:["data.videoId"]}),_.w("design:type",Object)],PA.prototype,"entityInfo",void 0);_.e([_.X({selector:_.rg}),_.w("design:type",Boolean)],PA.prototype,"miniplayerIsActive",void 0);
_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],PA.prototype,"playlistVideoId",null);_.e([_.qX("#thumbnail"),_.w("design:type",Object)],PA.prototype,"thumbnail",void 0);_.e([_.YE("canReorder"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PA.prototype,"canReorderChanged",null);
_.e([_.tP("yt-menu-overlay-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Boolean]),_.w("design:returntype")],PA.prototype,"onMenuOverlayChanged",null);_.e([_.YE("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PA.prototype,"downloadStateChanged",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PA.prototype,"dataChanged",null);_.e([_.YE("data.setVideoId"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PA.prototype,"setVideoIdChanged",null);_.e([_.S({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],PA);
_.r(PA,"ytd-playlist-video-renderer",function(){if(g2u!==void 0)return g2u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);z.content.insertBefore(Oiu().content.cloneNode(!0),z.content.firstChild);return g2u=z},{mode:1});var Ziu;var hl=function(){return _.q.apply(this,arguments)||this};
_.m(hl,_.q);_.e([_.X(),_.w("design:type",Object)],hl.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],hl.prototype,"rendererBehavior",void 0);_.e([_.S({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],hl);
_.r(hl,"ytd-premium-browse-footer-renderer",function(){if(Ziu!==void 0)return Ziu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ziu=z},{mode:1});var Hij;var sL=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return z};
_.m(sL,_.q);_.p=sL.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.handleDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.computeHeaderLogoThumbnail=function(z,l){if(z)return l?z.darkLogo:z.lightLogo};
_.p.computeHeaderLogoHeight=function(z,l){var I,b,v;return(z=(I=this.computeHeaderLogoThumbnail(z,l))==null?void 0:(b=I.thumbnails)==null?void 0:(v=b[0])==null?void 0:v.height)&&z%31===0?"31":"24"};
_.p.computeHeaderLogoMarginBottom=function(z,l){return this.computeHeaderLogoHeight(z,l)==="24"?"0":"-7"};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],sL.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sL.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],sL.prototype,"isDarkTheme",void 0);_.e([_.X({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.w("design:type",Object)],sL.prototype,"themeLogo",void 0);
_.e([_.X({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.w("design:type",String)],sL.prototype,"logoHeight",void 0);_.e([_.X({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.w("design:type",String)],sL.prototype,"logoMarginBottom",void 0);_.e([_.S({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],sL);
_.r(sL,"ytd-primetime-promo-header-renderer",function(){if(Hij!==void 0)return Hij;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Hij=z},{mode:1});var ykw;var CQ_=_.P(function(z){var l=_.KK(function(v){var M;(M=z.onClick)==null||M.call(z,v)}),I={},b={};
return _.N("yt-shelf-header-layout",{class:_.m9("yt-shelf-header-layout",(I["yt-shelf-header-layout--disable-horizontal-padding"]=z.disableHorizontalPadding,I["yt-shelf-header-layout--disable-vertical-padding"]=z.disableVerticalPadding,I["yt-shelf-header-layout--responsive"]=z.useResponsiveLayout,I["yt-shelf-header-layout--narrow"]=function(){var v,M;return((v=z.useResponsiveLayout)==null?void 0:v.call(z))&&((M=z.forceSmallLayout)==null?void 0:M.call(z))},I["yt-shelf-header-layout--is-overlay"]=z.isOverlay,
I["yt-shelf-header-layout--tappable"]=z.isInteractive,I)),
"on:click":l,tabindex:function(){var v;return((v=z.isInteractive)==null?0:v.call(z))?0:void 0}},_.N(_.E,{cond:z.leadingIcon,
then:function(v){return _.N("div",{class:"yt-shelf-header-layout__leading-icon"},_.N(_.qt,{icon:v}))},
else:function(){return _.N(_.E,{cond:z.hasLeadingImage,then:function(){var v,M={};return _.N("div",{class:_.m9("yt-shelf-header-layout__leading-image",(M["yt-shelf-header-layout__leading-image--circular-image"]=z.circularImage,M))},(v=z.leadingImage)==null?void 0:v.call(z))}})}}),_.N("div",{class:"yt-shelf-header-layout__label-container"},_.N(_.E,{cond:z.hasSuperlabel,
then:function(){var v;return _.N("div",{class:"yt-shelf-header-layout__superlabel"},(v=z.superlabel)==null?void 0:v.call(z))}}),_.N("div",{class:"yt-shelf-header-layout__title-row"},_.N(fcn,{text:z.title,
className:_.m9("yt-shelf-header-layout__title",(b["yt-shelf-header-layout__title--small-title"]=z.forceSmallLayout,b)),tagLevel:z.tagLevel}),_.N(_.E,{cond:z.hasDetail,then:function(){var v;return _.N("div",{class:"yt-shelf-header-layout__detail"},(v=z.detail)==null?void 0:v.call(z))}})),_.N(_.E,{cond:z.hasSublabel,
then:function(){var v;return _.N("div",{class:"yt-shelf-header-layout__sublabel"},(v=z.sublabel)==null?void 0:v.call(z))}})),_.N(_.E,{cond:z.hasTrailingActions,
then:function(){var v;return _.N("div",{class:"yt-shelf-header-layout__trailing-actions"},(v=z.trailingActions)==null?void 0:v.call(z))}}))},"cc");
CQ_.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var fcn=_.P(function(z){var l=z.text;var I=z.className;var b=z.tagLevel;return _.N(_.Q7,null,_.N(_.is,{when:function(){return(b==null?void 0:b())===0}},function(){return _.N("h2",{class:I},l())}),_.N(_.is,{when:function(){return(b==null?void 0:b())===1}},function(){return _.N("h3",{class:I},l())}),_.N(_.is,{when:function(){return(b==null?void 0:b())===2}},function(){return _.N("h4",{class:I},l())}),_.N(_.F0,null,function(){return _.N("h2",{class:I},l())}))},"dc");var ms_,k8z,R8_;_.rj=_.P(function(z){var l=z.className;var I=z.data;var b=z.disableHorizontalPadding;var v=z.disableVerticalPadding;var M=z.forceSmallLayout;var x=z.useResponsiveLayout;z=z.isOverlay;return _.N("yt-section-header-view-model",{class:_.m9("ytSectionHeaderViewModelHost",l),style:_.XV({"background-color":function(){return qa(I().backgroundColor)?_.aD(qa(I().backgroundColor)):void 0}})},_.N(CQ_,{hasDetail:!1,
title:function(){return _.N(_.Rf,{text:function(){return I().headline}})},
hasTitle:!0,sublabel:function(){return _.N(k8z,{data:I})},
hasSublabel:function(){return!!I().sublabel||!!I().bottomBadge},
superlabel:function(){return _.N(R8_,{data:I})},
hasSuperlabel:function(){return!!I().superlabel||!!I().topBadge},
leadingImage:function(){return _.N(ms_,{leadingAccessory:function(){return I().leadingAccessory}})},
hasLeadingImage:function(){return!!I().leadingAccessory},
trailingActions:function(){return _.N(_.TS,{data:function(){return I().trailingActions}},{flexibleActionsViewModel:_.xJ})},
hasTrailingActions:function(){return!!I().trailingActions},
disableHorizontalPadding:b,disableVerticalPadding:v,forceSmallLayout:M,useResponsiveLayout:x,isOverlay:z,isInteractive:function(){return!!_.e9(I().rendererContext)},
onClick:function(g){if(_.w5(I().rendererContext)){var G=_.e9(I().rendererContext);G&&_.nE(G,{form:{element:g.target,event:g}})}}}))},"ec");
ms_=_.P(function(z){var l=z.leadingAccessory;return _.N(_.xP,null,_.N(_.E,{cond:function(){var I;return(I=l().image)!=null?I:_.j9(l().themedImage)},
then:function(I){return _.N(_.pK,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.N(_.E,{cond:function(){return _.k(l().avatar,_.WU)},
then:function(I){return _.N(_.Dz,{data:I})}}))},"fc");
k8z=_.P(function(z){var l=z.data;return _.N(_.xP,null,_.N(_.E,{cond:function(){return _.k(l().bottomBadge,qFz)},
then:function(I){var b={};return _.N(_.T2,{data:I,class:_.m9((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!l().sublabel},b))})}}),_.N(_.E,{cond:function(){return l().sublabel},
then:function(I){return _.N(_.Rf,{text:I})}}))},"gc");
R8_=_.P(function(z){var l=z.data;return _.N(_.xP,null,_.N(_.E,{cond:function(){return _.k(l().topBadge,qFz)},
then:function(I){var b={};return _.N(_.T2,{data:I,class:_.m9((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!l().superlabel},b))})}}),_.N(_.E,{cond:function(){return l().superlabel},
then:function(I){return _.N(_.Rf,{text:I})}}))},"hc");_.uO(_.rj,"yt-section-header-view-model",{props:{data:_.mB,className:_.mB,disableHorizontalPadding:_.mB,disableVerticalPadding:_.mB,forceSmallLayout:_.mB,useResponsiveLayout:_.mB,isOverlay:_.mB}});_.sW("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var $r=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return z};
_.m($r,_.q);_.p=$r.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.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"}}}};
_.p.onDataChange=function(){var z=this;_.IR(this,function(){z.updateItemVisibility()})};
_.p.onUpdateElementsPerRowAction=function(z){z&&this.elementsPerRow!==z&&(this.elementsPerRow=z,this.updateItemVisibility())};
_.p.updateItemVisibility=function(){var z=this;this.data&&this.data.panels&&_.Hy(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(l,I){l.hidden=I>z.elementsPerRow-1})};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
$r.prototype.onDataChange=$r.prototype.onDataChange;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],$r.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],$r.prototype,"actionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],$r.prototype,"data",void 0);_.e([_.X({value:3}),_.w("design:type",Number)],$r.prototype,"elementsPerRow",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$r.prototype,"onDataChange",null);_.e([_.S({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],$r);
_.r($r,"ytd-primetime-promo-renderer",function(){if(ykw!==void 0)return ykw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ykw=z},{mode:1});var KKn;var ee=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return z};
_.m(ee,_.q);ee.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
ee.prototype.handleButtonRefreshAction=function(z){if(z=_.k(z,zoM))this.set("data.button",z.membershipButton),this.notifyPath("data.button")};
_.vP.Object.defineProperties(ee.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:(l=z.avatars)==null?void 0:l.slice(0,8))||[]}}});
_.e([_.X(),_.w("design:type",Object)],ee.prototype,"data",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ee.prototype,"rendererBehavior",void 0);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],ee.prototype,"avatars",null);
_.e([_.S({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],ee);
_.r(ee,"ytd-recognition-shelf-renderer",function(){if(KKn!==void 0)return KKn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return KKn=z},{mode:1});var tr_;var BVM;var wj=function(){var z=_.q.apply(this,arguments)||this;z.modernButtons=_.C("web_modern_buttons");return z};
_.m(wj,_.q);_.p=wj.prototype;
_.p.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]]"}}}}}};
_.p.dataChanged=function(){this.collapsed=!0};
_.p.computeVisibleItems=function(z,l){return z!==void 0&&z.items?l?z.items.slice(0,this.data.collapsedItemCount):z.items:[]};
_.p.computeHideShowMore=function(z,l,I){return z>=l||!I};
_.p.computeHideShowAll=function(z,l,I){return!(z&&l)||I};
_.p.onMoreClick=function(){this.collapsed=!1};
_.vP.Object.defineProperties(wj.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.C("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.gk("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.C("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
wj.prototype.dataChanged=wj.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wj.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],wj.prototype,"isSearch",void 0);
_.e([_.X({computed:"computeVisibleItems(data,collapsed)"}),_.w("design:type",Array)],wj.prototype,"visibleItems",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],wj.prototype,"collapsed",void 0);_.e([_.X({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.w("design:type",Boolean)],wj.prototype,"hideShowMore",void 0);
_.e([_.X({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.w("design:type",Boolean)],wj.prototype,"hideShowAll",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],wj.prototype,"modernButtons",void 0);_.e([_.B("isSearch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],wj.prototype,"typographyBump",null);
_.e([_.B("isSearch"),_.w("design:type",Object),_.w("design:paramtypes",[])],wj.prototype,"lockupExperiments",null);_.e([_.B("isSearch"),_.w("design:type",String),_.w("design:paramtypes",[])],wj.prototype,"thumbnailWidth",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wj.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],wj);
_.r(wj,"ytd-vertical-list-renderer",function(){if(BVM!==void 0)return BVM;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return BVM=z},{mode:1});var XYA=_.zs(["#"]);_.sW("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Al=function(){var z=_.q.apply(this,arguments)||this;z.isConstrainedList=!1;z.modernTypography=_.C("web_modern_typography");return z};
_.m(Al,_.q);_.p=Al.prototype;
_.p.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"}}}};
_.p.computeThumbnailStyle=function(z){return z||""};
_.p.computePlaceAnnotationUnderTitle=function(){var z;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((z=this.data)==null?void 0:z.thumbnailStyle)||"")};
_.p.computeHrefWithDefault=function(z){return this.ytComponentBehavior.computeHref_(z)||_.l15(XYA)};
_.p.computeIsPromoShelf=function(z){var l;return(z=z==null?void 0:(l=z[0])==null?void 0:l.metadataBadgeRenderer)?z.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.p.computePlaceBadgeBesideTitle=function(z){var l;return(z==null?0:(l=z[0])==null?0:l.metadataBadgeRenderer)?!this.computeIsPromoShelf(z):!1};
_.p.computeMenuIcon=function(z){return this.computeIsPromoShelf(z)?"yt-icons:more_vert":"yt-icons:more"};
_.p.onDataChange=function(){var z,l;((z=this.data)==null?0:(l=z.content)==null?0:l.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.p.onLockupRequested=function(z){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&z.detail&&z.detail.videoIds){for(var l=this.data.content.gridRenderer.items,I=new Set,b=_.D(z.detail.videoIds),v=b.next();!v.done;v=b.next())I.add(v.value);z.detail.returnValue=l.filter(function(M){return M.gridVideoRenderer&&M.gridVideoRenderer.videoId&&I.has(M.gridVideoRenderer.videoId)}).map(function(M){return M.gridVideoRenderer})}};
_.p.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Al.prototype.onLockupRequested=Al.prototype.onLockupRequested;Al.prototype.onDataChange=Al.prototype.onDataChange;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],Al.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Al.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],Al.prototype,"ironResizableBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Al.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Al.prototype,"isSearch",void 0);_.e([_.X(),_.w("design:type",Object)],Al.prototype,"isConstrainedList",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("kevlar_fluid_dismiss")}}),
_.w("design:type",Boolean)],Al.prototype,"enableFluidDismiss",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.w("design:type",String)],Al.prototype,"thumbnailStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Al.prototype,"modernTypography",void 0);_.e([_.X({computed:"computeMenuIcon(data.badges)"}),_.w("design:type",String)],Al.prototype,"menuIcon",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Al.prototype,"onDataChange",null);_.e([_.tP("yt-lockup-requested"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Al.prototype,"onLockupRequested",null);_.e([_.S({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Al);
_.r(Al,"ytd-shelf-renderer",function(){if(tr_!==void 0)return tr_;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tr_=z},{mode:1});var qwn;var WA=function(){return _.q.apply(this,arguments)||this};
_.m(WA,_.q);WA.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.vP.Object.defineProperties(WA.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],WA.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],WA.prototype,"isPlaylist",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],WA.prototype,"isClipList",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],WA.prototype,"isPlaylistPageWithFilters",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],WA.prototype,"hasTitle",null);_.e([_.X(),_.B("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.w("design:type",Object),_.w("design:paramtypes",[])],WA.prototype,"isRightAligned",null);
_.e([_.S({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],WA);
_.r(WA,"ytd-sort-filter-header-renderer",function(){if(qwn!==void 0)return qwn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return qwn=z},{mode:1});var iiu;var nU=function(){var z=_.q.apply(this,arguments)||this;z.enableRightArrowHidden=_.C("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return z};
_.m(nU,_.q);nU.prototype.attached=function(){var z=this;this.enableRightArrowHidden&&(this.JSC$16387_throttledOnResize=new _.zD(function(){var l;(l=z.ytdHorizontalListBehavior)==null||l.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var l;
(l=z.JSC$16387_throttledOnResize)==null||l.fire()}),this.resizeObserver.observe(this.hostElement))};
nU.prototype.detached=function(){if(this.enableRightArrowHidden){var z;(z=this.resizeObserver)==null||z.disconnect();var l;(l=this.JSC$16387_throttledOnResize)==null||l.dispose()}};
nU.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]]"}}}}}};
nU.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.vP.Object.defineProperties(nU.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.C("enable_creator_details_shelf_m2")){var z=[],l;((l=this.data)==null?0:l.creatorVideosButton)&&z.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&z.push(this.data.creatorAboutButton);l=_.D(this.data.creatorCustomUrlButtons||[]);for(I=l.next();!I.done;I=l.next())z.push(I.value);return z}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.C("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],nU.prototype,"ytdHorizontalListBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nU.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],nU.prototype,"engagementPanel",void 0);
_.e([_.X(),_.w("design:type",Object)],nU.prototype,"enableRightArrowHidden",void 0);_.e([_.B("enableRightArrowHidden","atEnd"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],nU.prototype,"hideRightArrow",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],nU.prototype,"creatorCustomUrlButtons",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data","creatorCustomUrlButtons"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],nU.prototype,"showCreatorCustomUrlButtons",null);_.e([_.B("showCreatorCustomUrlButtons"),_.w("design:type",Number),_.w("design:paramtypes",[])],nU.prototype,"channelAvatarSize",null);_.e([_.S({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],nU);
_.r(nU,"ytd-video-description-infocards-section-renderer",function(){if(iiu!==void 0)return iiu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return iiu=z},{mode:_.yP("kevlar_poly_si_batch_j067")?1:2});var FK_;var LU=function(){return _.q.apply(this,arguments)||this};
_.m(LU,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LU.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.infoIcon)"}),_.w("design:type",Object)],LU.prototype,"infoIcon",void 0);_.e([_.S({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],LU);
_.r(LU,"ytd-eom-settings-disclaimer-renderer",function(){if(FK_!==void 0)return FK_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return FK_=z},{mode:1});var QAM;var UL=function(){return _.q.apply(this,arguments)||this};
_.m(UL,_.q);_.vP.Object.defineProperties(UL.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.suppressPaddingDisclaimer)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],UL.prototype,"componentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],UL.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UL.prototype,"suppressPaddingDisclaimer",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],UL);
_.r(UL,"ytd-product-list-header-renderer",function(){if(QAM!==void 0)return QAM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return QAM=z},{mode:1});var Ywz;var aB=function(){return _.q.apply(this,arguments)||this};
_.m(aB,_.q);aB.prototype.computeThumbnailStyle=function(z){if(z&&(z=_.Ur(z)))return"background-color:"+z+";"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aB.prototype,"rendererBehaviors",void 0);_.e([_.X(),_.w("design:type",Object)],aB.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],aB);
_.r(aB,"ytd-hashtag-tile-renderer",function(){if(Ywz!==void 0)return Ywz;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ywz=z},{mode:1});var TVA;var Vg=function(){return _.q.apply(this,arguments)||this};
_.m(Vg,_.q);Vg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vg.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Vg);
_.r(Vg,"ytd-sponsorships-alert-renderer",function(){if(TVA!==void 0)return TVA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return TVA=z},{mode:1});var cku;var je=function(){return _.q.apply(this,arguments)||this};
_.m(je,_.q);je.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.vP.Object.defineProperties(je.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.C("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.C("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.e([_.t(_.Nd),_.w("design:type",Object)],je.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],je.prototype,"ytdLockupBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],je.prototype,"isGridViewEnabled",void 0);
_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],je.prototype,"watchFeedBigThumbs",null);_.e([_.B("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.w("design:type",String),_.w("design:paramtypes",[])],je.prototype,"thumbnailWidth",null);_.e([_.X(),_.w("design:type",Object)],je.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],je);
_.r(je,"ytd-compact-movie-renderer",function(){if(cku!==void 0)return cku;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return cku=z},{mode:1});var SwA;var dsu;var o2u=_.sZ("HTML_DIR")==="rtl",Jl=function(){var z=_.q.apply(this,arguments)||this;z.engagementPanel=!1;z.maxLines=2;z.expandButtonOffset=0;z.showExpandButton=!1;z.isTruncated=!1;z.isExpanded=!1;z.currentSnippetType=2;z.alwaysShowExpandButton=!1;z.JSC$16404_lastWidth=NaN;z.observer=null;z.left=0;z.right=0;z.mid=0;z.longestSnippetLength=0;z.isFinalSnippet=!1;z.isFirstMutation=!1;z.isResetMutation=!1;z.OVERFLOW_THRESHOLD=5;return z};
_.m(Jl,_.q);_.p=Jl.prototype;_.p.onClick=function(z){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;if((l=window.getSelection())==null||!l.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.p.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.p.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.p.updateTextOnSnippetTypeChange=function(){_.C("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.p.setUpBinarySearch=function(z){z=z*this.maxLines/8;this.left=0;var l,I;this.right=Math.min(z*2,(I=(l=this.simpleText)==null?void 0:l.length)!=null?I:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.p.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.p.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.PW(new _.qB("AttributedSnippet is empty when the description is not empty",this.text))};
_.p.mutationCallback=function(){if(this.observer!=null){var z=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var l=Math.floor(z*this.maxLines/8);this.setSnippetText(this.text,l);l!==0||this.attributedTextIsEmpty()||_.PW(new _.qB("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;z=z*this.maxLines/8;this.left=0;var I;this.right=Math.min(z*2,(I=(l=this.simpleText)==null?void 0:l.length)!=null?I: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)}}};
_.p.mutationObserve=function(z){var l=this;this.observer||(this.observer=new MutationObserver(function(){l.mutationCallback()}));
this.observer.observe(z,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.p.attached=function(){var z=this;_.IR(this,function(){z.resize()})};
_.p.isExpandedChanged=function(){_.gC(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.p.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)};
_.p.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var z="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((o2u?"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",z);this.snippetContainer.style.setProperty("mask-image",
z)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(o2u?"right":"left",this.expandButtonOffset+"px")};
_.p.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.p.setSnippetText=function(z,l){z||(z={});if(_.bO(z)){var I=lO(z,l);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(_.C("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=lO(z,l),this.attributedSnippetTextEl.headerRuns=Zx$(l,this.headerRuns)):this.attributedSnippetText={data:lO(z,l),headerRuns:Zx$(l,this.headerRuns)},this.currentSnippetType=0):_.PW(new _.qB("Tried to set snippet text when HTML element was null",
z)):(this.plainSnippetText.textContent=jZ(z.content||"",l),this.currentSnippetType=2)}else{a:{I=ok5(z,l);if(I.runs){I=_.D(I.runs);for(var b=I.next();!b.done;b=I.next())if(b=b.value,b.bold||b.deemphasize||b.italics||b.strikethrough||b.textColor||b.navigationEndpoint||_.k(b,eZ)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=ok5(z,l),this.currentSnippetType=1):_.PW(new _.qB("Tried to set snippet text when HTML element was null",z)):(this.plainSnippetText.textContent=
jZ(_.ID(z),l),this.currentSnippetType=2)}};
_.p.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.p.attributedTextIsEmpty=function(){var z=this.text;if(!_.bO(z))return!0;var l;return((l=z.content)==null?void 0:l.length)===0?!0:!1};
_.p.resize=function(z){if(this.snippetText){if(z===void 0?0:z)this.JSC$16404_lastWidth=NaN;var l=this.hostElement.offsetWidth;if(l!==this.JSC$16404_lastWidth&&!this.isExpanded)if(this.JSC$16404_lastWidth=l,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;z=0;var I,b;l=Math.min(l*this.maxLines/8*2,(b=(I=this.simpleText)==null?void 0:I.length)!=null?b:0)-1;for(I=0;z<=l;)b=Math.floor(z+(l-z)/2),this.setSnippetText(this.text,b),this.isOverflowing()?l=b-1:(z=b+1,I=b);this.setSnippetText(this.text,I);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.p.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.p.onExpandClick=function(){var z=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.C("inline_expander_reset_focus_killswitch")||_.IR(this,function(){var l;((l=_.pG().resolve(_.MB(_.T$)))==null?0:l.isKeyBoardInUse())&&_.j8(z.hostElement)});
_.gC(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.p.onCollapseClick=function(){this.collapse();_.gC(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.p.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.p.computeExpandButtonOffset=function(){var z=this.expandSizer;return z?o2u?z.offsetParent?z.offsetParent.offsetWidth-z.offsetWidth-z.offsetLeft:0:z.offsetLeft:0};
_.vP.Object.defineProperties(Jl.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.bO(this.text)?this.text.content||"":_.ID(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 _.bO(this.text)?!0:this.text&&_.C("web_replace_formatted_with_attributed_string")&&r9Q(this.text)?(this.text=_.$C(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}}});
Jl.prototype.onTextChanged=Jl.prototype.onTextChanged;Jl.prototype.updateMaskAndExpandButtonOffset=Jl.prototype.updateMaskAndExpandButtonOffset;Jl.prototype.updateSnippetContainerMaxHeight=Jl.prototype.updateSnippetContainerMaxHeight;Jl.prototype.isExpandedChanged=Jl.prototype.isExpandedChanged;Jl.prototype.updateTextOnSnippetTypeChange=Jl.prototype.updateTextOnSnippetTypeChange;Jl.prototype.updateIsFormattedExpanded=Jl.prototype.updateIsFormattedExpanded;Jl.prototype.updateIsAttributedExpanded=Jl.prototype.updateIsAttributedExpanded;
Jl.prototype.onClick=Jl.prototype.onClick;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Jl.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"text",void 0);_.e([_.X(),_.w("design:type",Array)],Jl.prototype,"headerRuns",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jl.prototype,"engagementPanel",void 0);_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"maxLines",void 0);
_.e([_.X(),_.w("design:type",String)],Jl.prototype,"expandLabel",void 0);_.e([_.X(),_.w("design:type",String)],Jl.prototype,"collapseLabel",void 0);_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"expandCommand",void 0);_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"expandButtonOffset",void 0);_.e([_.B("text"),_.w("design:type",String),_.w("design:paramtypes",[])],Jl.prototype,"simpleText",null);
_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Jl.prototype,"onClick",null);_.e([_.B("text","isExpanded"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jl.prototype,"expandedText",null);_.e([_.B("headerRuns","isExpanded"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jl.prototype,"expandedHeaderRuns",null);
_.e([_.B("text"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Jl.prototype,"hasAttributedStringText",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jl.prototype,"showExpandButton",void 0);_.e([_.B("collapseLabel","isExpanded"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jl.prototype,"showCollapseButton",null);_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"isTruncated",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jl.prototype,"isExpanded",void 0);_.e([_.X(),_.w("design:type",Boolean)],Jl.prototype,"isAttributedExpanded",void 0);_.e([_.By("isExpanded","hasAttributedStringText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"updateIsAttributedExpanded",null);_.e([_.X(),_.w("design:type",Boolean)],Jl.prototype,"isFormattedExpanded",void 0);
_.e([_.By("isExpanded","hasAttributedStringText"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"updateIsFormattedExpanded",null);_.e([_.X(),_.w("design:type",Number)],Jl.prototype,"currentSnippetType",void 0);_.e([_.B("currentSnippetType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jl.prototype,"useAttributedSnippet",null);
_.e([_.B("currentSnippetType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jl.prototype,"useFormattedSnippet",null);_.e([_.B("currentSnippetType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jl.prototype,"usePlainSnippet",null);_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"alwaysShowExpandButton",void 0);_.e([_.By("currentSnippetType"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"updateTextOnSnippetTypeChange",null);
_.e([_.X(),_.w("design:type",Object)],Jl.prototype,"attributedSnippetText",void 0);_.e([_.qX("#snippet"),_.w("design:type",HTMLElement)],Jl.prototype,"snippetContainer",void 0);_.e([_.qX("#snippet-text"),_.w("design:type",HTMLElement)],Jl.prototype,"snippetText",void 0);_.e([_.qX("#plain-snippet-text"),_.w("design:type",HTMLElement)],Jl.prototype,"plainSnippetText",void 0);_.e([_.qX("#formatted-snippet-text"),_.w("design:type",Object)],Jl.prototype,"formattedSnippetText",void 0);
_.e([_.qX("#attributed-snippet-text"),_.w("design:type",Object)],Jl.prototype,"attributedSnippetTextEl",void 0);_.e([_.qX("#expand"),_.w("design:type",HTMLElement)],Jl.prototype,"expandButton",void 0);_.e([_.qX("#expand-sizer"),_.w("design:type",HTMLElement)],Jl.prototype,"expandSizer",void 0);_.e([_.YE("isExpanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"isExpandedChanged",null);
_.e([_.By("isExpanded","maxLines"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"updateSnippetContainerMaxHeight",null);_.e([_.By("isTruncated","showExpandButton","expandButtonOffset"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"updateMaskAndExpandButtonOffset",null);
_.e([_.YE("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jl.prototype,"onTextChanged",null);_.e([_.S({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Jl);
_.r(Jl,"ytd-text-inline-expander",function(){if(dsu===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);dsu=z}z=dsu;return z},{mode:2});var zA=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return z};
_.m(zA,_.q);zA.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
zA.prototype.handleUpdateDescriptionAction=function(z){if(z=_.k(z,_.zs4))if(z.attributedDescription)this.set("data.attributedDescriptionBodyText",z.attributedDescription);else if(z.description){var l;((l=this.data)==null?0:l.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.$C(z.description)):this.set("data.descriptionBodyText",z.description)}};
_.vP.Object.defineProperties(zA.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.attributedDescriptionBodyText)||!((l=this.data)==null||!l.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null?0:z.collapsedLineCount){var l;return(l=this.data)==null?void 0:l.collapsedLineCount}z=_.OI("web_watch_description_collapsed_default_lines",12);if(_.C("ww_desc_line_page_size_ks"))return z;l=Math.round(_.ic().height*_.OI("web_watch_description_screen_height_percentage",.5)/20);return Math.max(l,z)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return(I=(z=this.data)==null?void 0:z.descriptionBodyText)!=null?I:(l=this.data)==null?void 0:l.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.sourceAttributions}}});
zA.prototype.panelContentVisibleChanged=zA.prototype.panelContentVisibleChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],zA.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],zA.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zA.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Boolean)],zA.prototype,"panelContentVisible",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],zA.prototype,"engagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],zA.prototype,"shortsPanel",void 0);_.e([_.qX("#inline-expander"),_.w("design:type",Object)],zA.prototype,"inlineExpander",void 0);
_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zA.prototype,"panelContentVisibleChanged",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],zA.prototype,"hasDescriptionText",null);_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],zA.prototype,"collapsedLines",null);
_.e([_.B("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.w("design:type",Object),_.w("design:paramtypes",[])],zA.prototype,"descriptionText",null);_.e([_.B("data","data.headerRuns"),_.w("design:type",Object),_.w("design:paramtypes",[])],zA.prototype,"headerRuns",null);_.e([_.B("data","data.sourceAttributions"),_.w("design:type",Object),_.w("design:paramtypes",[])],zA.prototype,"sourceAttributions",null);
_.e([_.S({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],zA);
_.r(zA,"ytd-expandable-video-description-body-renderer",function(){if(SwA!==void 0)return SwA;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return SwA=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var PQw;var h8I=_.P(function(z){var l=z.data;return _.N("factoid-renderer",{class:"ytwFactoidRendererHost"},_.N("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return l().accessibilityText}},_.N("span",{class:"ytwFactoidRendererValue"},_.N(_.Rf,{text:function(){return l().value}})),_.N("span",{class:"ytwFactoidRendererLabel"},_.N(_.Rf,{text:function(){return l().label}}))))},"ic");_.uO(h8I,"factoid-renderer",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;return _.N("upload-time-factoid-renderer",null,_.N(_.TS,{data:function(){return l().factoid}},{factoidRenderer:h8I}))},"jc"),"upload-time-factoid-renderer",{props:{data:_.GH}});_.uO(_.P(function(z){var l=z.data;return _.N("view-count-factoid-renderer",null,_.N(_.TS,{data:function(){return l().factoid}},{factoidRenderer:h8I}))},"kc"),"view-count-factoid-renderer",{props:{data:_.GH}});var lp=function(){var z=_.q.apply(this,arguments)||this;z.shortsPanel=!1;z.engagementPanel=!1;z.watchWhileSdp=_.C("shorts_desktop_watch_while_sdp");return z};
_.m(lp,_.q);lp.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"}}}}};
_.vP.Object.defineProperties(lp.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var z;return(z=this.data)==null?void 0:z.channel}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],lp.prototype,"componentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lp.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],lp.prototype,"shortsPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],lp.prototype,"engagementPanel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],lp.prototype,"watchWhileSdp",void 0);_.e([_.B("shortsPanel","engagementPanel","data.channel"),_.w("design:type",Object),_.w("design:paramtypes",[])],lp.prototype,"showChannelInfo",null);_.e([_.S({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],lp);
_.r(lp,"ytd-video-description-header-renderer",function(){if(PQw!==void 0)return PQw;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return PQw=z},{mode:1});var sA4;var Iv=function(){return _.q.apply(this,arguments)||this};
_.m(Iv,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Iv.prototype,"noPadding",void 0);_.e([_.X(),_.w("design:type",Object)],Iv.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Iv);
_.r(Iv,"ytd-list-item-view-model",function(){if(sA4!==void 0)return sA4;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return sA4=z},{mode:1});var rku;var $s_;var e8j;var wY_;var bp=function(){var z=_.q.apply(this,arguments)||this;z.adaptiveFullWidth=!1;z.modernButtons=_.C("web_modern_buttons");z.buttonOverrides={style:"call-to-action",type:"filled"};z.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return z};
_.m(bp,_.q);bp.prototype.handleSetTimestamp_=function(z){this.data&&this.data.shortUrl&&(_.Hy(this.hostElement).querySelector("#share-url").value=z.isSet?_.IW(this.data.shortUrl,"t",z.timestamp):this.data.shortUrl)};
bp.prototype.handleSignalActionCopyShareUrl_=function(z,l){(_.C("killswitch_copy_link_target_check")||_.Hy(this.hostElement).querySelector("#copy-button")===l)&&this.copyUrlToClipboard()};
bp.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Hy(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
bp.prototype.computeStyle_=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bp.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.w("design:type",String)],bp.prototype,"rendererStyle",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],bp.prototype,"adaptiveFullWidth",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],bp.prototype,"modernButtons",void 0);_.e([_.X(),_.w("design:type",Object)],bp.prototype,"buttonOverrides",void 0);_.e([_.Wy({is:"yt-copy-link-renderer",disableElementRegistration:!0})],bp);
_.r(bp,"yt-copy-link-renderer",function(){if(wY_===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;e8j===void 0&&(e8j=document.createElement("template"));var b=e8j;I.call(l,b.content.cloneNode(!0),z.content.firstChild);wY_=z}z=wY_;return z},{mode:2});_.sW("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var vi=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return z};
_.m(vi,_.q);_.p=vi.prototype;_.p.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.p.attached=function(){this.keyboardFocused=!1};
_.p.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var z=_.pG().resolve(_.MB(_.T$));z&&(this.keyboardFocused=z.isKeyBoardInUse())}};
_.p.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.p.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}};
_.p.onChange_=function(){if(this.data){var z=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;z&&this.ytComponentBehavior.resolveCommand(z);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.p.handleUpdateToggleAction_=function(z){(z=_.k(z,BTn))&&this.data&&z.targetId==this.data.targetId&&this.set("data.toggled",z.toggled)};
_.p.toBoolean_=function(z){return!!z};
_.p.reset=function(){};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("data-changed",this.data))};
_.p.updateDataToggledFromBinding=function(z){this.set("data.toggled",z.detail.value)};
vi.prototype.dataChangedForBinding=vi.prototype.dataChangedForBinding;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],vi.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],vi.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],vi.prototype,"data",void 0);_.e([_.X({computed:"computeDescription_(data.*)"}),_.w("design:type",Object)],vi.prototype,"description_",void 0);_.e([_.X({value:function(){return!!_.pG().resolve(_.MB(_.T$))&&_.C("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.w("design:type",Boolean)],vi.prototype,"useKeyboardFocused",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],vi.prototype,"keyboardFocused",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vi.prototype,"dataChangedForBinding",null);_.e([_.Wy({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],vi);
_.r(vi,"yt-toggle-form-field-renderer",function(){if($s_===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;rku===void 0&&(rku=document.createElement("template"));var b=rku;I.call(l,b.content.cloneNode(!0),z.content.firstChild);$s_=z}z=$s_;return z},{mode:2});var AkI;var WKj;var MS=function(){var z=_.q.apply(this,arguments)||this;z.isDarkTheme=!1;z.isSearch=!1;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.noTopMargin=_.C("kevlar_watch_no_top_margin");z.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 z};
_.m(MS,_.q);_.p=MS.prototype;_.p.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}}}}}};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.p.dataChanged=function(){var z=this.getSelectedIndex();if(z>0)this.selected=z;else{this.selected=0;var l,I;(l=this.ytScrollableChipCloudBehavior)==null||(I=l.reset)==null||I.call(l)}};
_.p.getSelectedIndex=function(){var z;if((z=this.data)==null||!z.chips)return-1;z=-1;for(var l,I=0;I<((l=this.data)==null?void 0:l.chips.length);I++){var b=void 0,v=void 0;if((b=this.data)==null?0:(v=b.chips[I].chipCloudChipRenderer)==null?0:v.isSelected){z=I;break}}return z};
_.p.onResize=function(){var z=this.ytScrollableChipCloudBehavior;_.IR(z,z.setContainerWidthDiff);$V(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.handleRelatedChipCommand=function(z,l){z=this.JSC$16431_chipsSelector.indexOf(l);z!==-1&&this.JSC$16431_chipsSelector.selectIndex(z)};
_.p.handleChipCloudChipSelectAction=function(z){z=this.JSC$16431_chipsSelector.indexOf(z);z>-1&&this.JSC$16431_chipsSelector.selectIndex(z)};
_.p.handleChipCloudChipDeselectAction=function(){var z=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16431_chipsSelector&&((z==null?0:z.continuationCommand)?_.uJ(this.hostElement,[z]):(z==null?0:z.searchEndpoint)?this.ytComponentBehavior.resolveCommand(z):z&&_.ZE(this.hostElement,[z],this.hostElement),this.JSC$16431_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.p.updateSelectedFromBinding=function(z){this.selected=z.detail.value};
MS.prototype.onResize=MS.prototype.onResize;MS.prototype.dataChanged=MS.prototype.dataChanged;MS.prototype.isSearchChanged=MS.prototype.isSearchChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],MS.prototype,"actionHandlerBehavior",void 0);
_.e([_.t(_.ap),_.w("design:type",Object)],MS.prototype,"ironResizableBehavior",void 0);_.e([_.t(),_.w("design:type",rN)],MS.prototype,"ytScrollableChipCloudBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],MS.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],MS.prototype,"data",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],MS.prototype,"selected",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],MS.prototype,"isDarkTheme",void 0);_.e([_.X({value:160}),_.w("design:type",Number)],MS.prototype,"scrollDistance",void 0);_.e([_.X(),_.w("design:type",Object)],MS.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],MS.prototype,"darkerDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],MS.prototype,"noTopMargin",void 0);
_.e([_.qX("#chips"),_.w("design:type",Object)],MS.prototype,"JSC$16431_chipsSelector",void 0);_.e([_.By("isSearch"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MS.prototype,"isSearchChanged",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MS.prototype,"dataChanged",null);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MS.prototype,"onResize",null);
_.e([_.Wy({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],MS);
_.r(MS,"yt-chip-cloud-renderer",function(){if(WKj===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;AkI===void 0&&(AkI=document.createElement("template"));var b=AkI;I.call(l,b.content.cloneNode(!0),z.content.firstChild);WKj=z}z=WKj;return z},{mode:2});var n2j,LKM=function(){return n2j!==void 0?n2j:n2j=document.createElement("template")};
document.head.appendChild(LKM().content);var UsA;var ac_=document.head,VrA=ac_.appendChild,jAA;if(UsA===void 0){var Jk_=document.createElement("template");_.K(Jk_,"");Jk_.content.insertBefore(LKM().content.cloneNode(!0),Jk_.content.firstChild);UsA=Jk_}jAA=UsA;VrA.call(ac_,jAA.content);var zuu=_.P(function(z){var l=z.data;return _.N("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.N("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.N("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.N(_.E,{cond:function(){return _.j9(l().image)},
then:function(I){return _.N("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.N(_.pK,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.N("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.N(_.Rf,{text:function(){return l().subtitle}})))),_.N(_.E,{cond:function(){var I;
return(I=l())==null?void 0:I.hasBottomDivider},
then:function(){return _.N("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"lc");var lou=_.P(function(z){var l=z.data;return _.N("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.N("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.N(_.TS,{data:function(){var I;return(I=l().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.N("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.N(zuu,{data:I.data}))}})),_.N("div",null,_.N(_.E,{cond:function(){return l().hasBottomDivider},
then:function(){return _.N("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.N("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.N("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.N("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.N("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"mc");var Io_=_.P(function(z){var l=z.data;z=_.D(_.Z_(!1,void 0,"OHF6Ec"));var I=z.next().value,b=z.next().value,v=_.KK(function(){b(!I());return!1}),M=function(){var x;
return(x=l().offerPlanDetailsContainer)!=null?x:[]};
return _.N("lp-complex-offer-card-details-view-model",null,_.N("div",null,_.N(_.E,{cond:function(){return I()},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.N("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":v,"aria-expanded":I},_.N(_.Rf,{text:function(){return l().expandedTitle}})),_.N("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.N(_.TS,{data:M},{offerPlanDetailsContainerViewModel:function(x){return _.N("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.N(lou,{data:x.data}))}})),_.N("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.N(_.Rf,{text:function(){return l().legalText}})))},
else:function(){return _.N("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":v,"aria-expanded":I},_.N(_.Rf,{text:function(){return l().collapsedTitle}}),_.N("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.N(_.qt,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"nc");var bZj=_.P(function(z){var l=z.data;return _.N("lp-complex-offer-card-option-view-model",null,_.N("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.N(_.E,{cond:function(){return l().topDividerText},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.N("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.N("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.N("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.N(_.Rf,{text:function(){return l().topDividerText}}))))}}),_.N(_.E,{cond:function(){return l().description},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.N(_.Rf,{text:function(){return l().description}}))}}),_.N(_.E,{cond:function(){return l().planPricingPrimary},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.N(_.Rf,{text:function(){return l().planPricingPrimary}}))}}),_.N(_.E,{cond:function(){return l().planPricingSecondary},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.N(_.Rf,{text:function(){return l().planPricingSecondary}}))}}),_.N(_.E,{cond:function(){return l().primaryButton},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.N(_.TS,{data:function(){return l().primaryButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"oc");var vh_=_.P(function(z){var l=z.data;var I=function(){var M;return((M=l())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
z={};var b={},v={};return _.N("ytm-lp-complex-offer-card-view-model",null,_.N("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.N("div",{class:_.m9((z.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,z),"ytmLpComplexOfferCardViewModelCardContainer")},_.N(_.E,{cond:function(){var M;return(M=l())==null?void 0:M.bannerText},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.N("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.N(_.Rf,{text:function(){return l().bannerText}})))}}),_.N(_.E,{cond:function(){return _.j9(l().logo)},
then:function(M){var x={};return _.N("div",{class:_.m9((x.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,x),"ytmLpComplexOfferCardViewModelLogo")},_.N(_.pK,{data:M,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.N("div",{class:_.m9((b.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,b),"ytmLpComplexOfferCardViewModelTitle")},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.E,{cond:function(){var M;
return(M=l())==null?void 0:M.subtitle},
then:function(){var M={};return _.N("div",{class:_.m9((M.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,M),"ytmLpComplexOfferCardViewModelSubtitle")},_.N(_.Rf,{text:function(){return l().subtitle}}))}}),_.N(_.E,{cond:function(){return l().planPricingPrimary},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.N(_.Rf,{text:function(){return l().planPricingPrimary}}))}}),_.N(_.E,{cond:function(){return l().planPricingSecondary},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.N(_.Rf,{text:function(){return l().planPricingSecondary}}))}}),_.N(_.E,{cond:function(){return l().purchaseButton},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.N(_.TS,{data:function(){return l().purchaseButton}},{buttonViewModel:function(M){return _.N(_.h4,{data:M.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.N(_.E,{cond:function(){var M;
return(M=l())==null?void 0:M.offerOptions},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.N(_.TS,{data:function(){return l().offerOptions}},{lpComplexOfferCardOptionViewModel:bZj}))}}),_.N("div",{class:_.m9((v.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,v),"ytmLpComplexOfferCardViewModelLegalText")},_.N(_.Rf,{text:function(){return l().legalText}})),_.N(_.E,{cond:function(){var M;
return(M=l())==null?void 0:M.offerCardDetails},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.N(_.TS,{data:function(){return l().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Io_}))}}))))},"pc");var MBj=_.P(function(z){var l=z.data;var I=function(){var x;return((x=l())==null?void 0:x.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
z={};var b={},v={},M={};return _.N("ytm-lp-complex-offer-card-section-view-model",null,_.N("div",{class:_.m9("ytmLpComplexOfferCardSectionViewModelHost")},_.N("div",{class:_.m9((z.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,z),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.N("div",{class:_.m9((b.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,b),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.N("h2",{class:_.m9((v.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,v),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.N(_.Rf,{text:function(){return l().title}}))),_.N(_.E,{cond:function(){var x;
return(x=l())==null?void 0:x.subtitle},
then:function(){var x={},g={};return _.N("div",{class:_.m9((x.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,x),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.N("div",{class:_.m9((g.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,g),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.N(_.Rf,{text:function(){return l().subtitle}})))}}),_.N("div",{class:_.m9((M.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,M),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.N(_.TS,{data:function(){var x;
return(x=l().offerPlans)!=null?x:[]}},{lpComplexOfferCardViewModel:function(x){return _.N("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.N(vh_,{data:x.data}))}})))))},"qc");var p$M=_.P(function(z){return _.N("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.N("div",{class:"ytLpCouponBannerViewModelIcon"},_.N(_.qt,{icon:function(){return"price_tag"}})),_.N("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.N("div",{class:"ytLpCouponBannerViewModelContent"},_.N("div",{class:"ytLpCouponBannerViewModelHeading"},_.N(_.Rf,{text:function(){var l;
return(l=z.data())==null?void 0:l.title}})),_.N("div",{class:"ytLpCouponBannerViewModelBody"},_.N(_.Rf,{text:function(){var l;
return(l=z.data())==null?void 0:l.subtitle}})))))},"rc");
p$M.idomCompat=!0;_.pA=CRp.getInstance();var Dc4;Dc4=_.P(function(z){return _.N("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":z.shouldAriaHideContent},_.N("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:z.questionId},_.N(_.Rf,{text:z.question})))},"sc");
_.xc_=_.P(function(z){var l=z.data;var I=z.themeOverride;z=_.D(_.Z_(!1,void 0,"pNli2b"));var b=z.next().value,v=z.next().value;z=_.KK(function(){v(!b());return!1});
var M=function(){return b()?"EXPAND_LESS":"EXPAND_MORE"},x=("faq-container"+_.Uh(_.pA)).toString(),g="faq-question-and-answers-section-question"+_.Uh(_.pA),G={},u={};
return _.N("faq-entry-view-model",null,_.N("div",{class:_.m9("ytLpFaqEntryViewModelHost",(G.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return I==null?void 0:I().useDarkTheme},G))},_.N("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":z,role:"button","aria-expanded":b,"aria-labelledby":g.toString(),"tab-index":"0"},_.N(Dc4,{question:function(){return l().question},
questionId:g,shouldAriaHideContent:!0}),_.N(_.E,{cond:function(){return b()!==void 0},
then:function(){return _.N("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.N(_.qt,{icon:M,ariaHidden:!0}),_.N("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.N("div",{class:_.m9("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(u.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!b()},u))},_.N("div",{id:x},_.N(_.qy,{each:function(){return l().answers||[]}},function(Z){return _.N("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.N(_.Rf,
{text:Z}))})))))},"tc");
_.xc_.idomCompat=!0;var OZu=_.P(function(z){var l=z.data;var I=z.themeOverride;z={};return _.N("lp-faq-section-view-model",null,_.N("div",{class:_.m9("yt-lp-faq-section-view-model",(z["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},z["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},z))},_.N("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.N(_.E,{cond:function(){return l().header},
then:function(b){return _.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.N(_.Rf,{text:b}))}}),_.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.N(_.TS,{data:function(){return l().faqs}},{faqEntryViewModel:function(b){return _.N(_.xc_,{data:b.data,
themeOverride:I})}})),_.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.N(_.qy,{each:function(){return l().footers||[]}},function(b){return _.N(_.Rf,{text:b})})),_.N(_.E,{cond:function(){return l().legal},
then:function(b){return _.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.N(_.Rf,{text:b}))}}))))},"uc");
OZu.idomCompat=!0;var gh_=_.P(function(z){var l=z.data;var I=z.themeOverride;_.Sm(function(){var x=l().gtmId;x&&_.If(x,_.sZ("GL",""))});
var b={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var x,g,G;return(G=(x=l().logo)==null?void 0:(g=x.accessibilityData)==null?void 0:g.label)!=null?G:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},v=_.pG().resolve(_.MB(_.I2)),M=function(){return v&&v()||(I==null?void 0:I().useDarkTheme)};
return _.N("lp-header-section-view-model",null,_.N("div",{class:function(){var x=l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",g=l().marginType==="LP_SECTION_MARGIN_TYPE_TOP",G=I==null?void 0:I().useDarkTheme,u=["lp-header-section-view-model"];x&&u.push("lp-header-section-view-model--ptc-layout-type");g&&u.push("lp-header-section-view-model__lp-header-section-margin");G&&u.push("lp-header-section-view-model--premium-force-dark-mode");return u.join(" ")}},_.N(_.E,{cond:function(){return l().logo},
then:function(){return _.N("div",null,_.N(_.E,{cond:M,then:function(){return _.N(_.E,{cond:function(){var x;return(x=l().logo)==null?void 0:x.imageDark},
then:function(x){return _.N(_.pK,Object.assign({},{data:x},b))}})},
else:function(){return _.N(_.E,{cond:function(){var x;return(x=l().logo)==null?void 0:x.imageLight},
then:function(x){return _.N(_.pK,Object.assign({},{data:x},b))}})}}))}}),_.N(_.E,{cond:function(){return l().title},
then:function(x){return _.N("div",{class:"lp-header-section-view-model__lp-header-title"},_.N(_.Rf,{text:x}))}}),_.N("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.N(_.E,{cond:function(){return l().subtitles},
then:function(x){return _.N(_.qy,{each:x},function(g){return _.N("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.N(_.Rf,{text:g}))})}})),_.N(_.E,{cond:function(){return l().additionalInfo},
then:function(x){return _.N("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.N(_.Rf,{text:x}))}}),_.N("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.N(_.E,{cond:function(){return l().primaryButton},
then:function(x){return _.N("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.N(_.TS,{data:x},{buttonViewModel:_.h4}))}}),_.N(_.E,{cond:function(){return l().secondaryButton},
then:function(x){return _.N("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.N(_.TS,{data:x},{buttonViewModel:_.h4}))}})),_.N(_.E,{cond:function(){return l().otherOffersInfo},
then:function(x){return _.N("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.N(_.Rf,{text:x}))}}),_.N("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.N(_.E,{cond:function(){return l().billingInfo},
then:function(x){return _.N(_.qy,{each:x},function(g){return _.N("div",null,_.N(_.Rf,{text:g}))})}}))))},"vc");
gh_.idomCompat=!0;var GO_=_.P(function(z){var l=z.data;var I=_.Df(z.themeOverride,{useDarkTheme:!1});z={};z=_.m9("ytmLpHeadlineSectionViewModelHost",(z.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return I().useDarkTheme},z));
return _.N("lp-headline-section-view-model",null,_.N("div",{class:z},_.N("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.E,{cond:function(){return l().subtitle},
then:function(b){return _.N("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.N(_.Rf,{text:b}))}})))},"wc");var Nzw=_.P(function(z){var l=z.data;var I=z.themeOverride;var b=_.pG().resolve(_.MB(_.I2)),v=function(){return b&&b()||(I==null?void 0:I().useDarkTheme)},M=function(){var u,Z;
var H=v()?(u=l().textBackgroundImage)==null?void 0:u.imageDark:(Z=l().textBackgroundImage)==null?void 0:Z.imageLight;return PaH((H==null?void 0:H.sources)||[])},x=function(){var u,Z;
return v()?(u=l().featureImage)==null?void 0:u.imageDark:(Z=l().featureImage)==null?void 0:Z.imageLight},g=function(){return l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},G=function(){var u,Z;
return v()?(u=l().logo)==null?void 0:u.imageDark:(Z=l().logo)==null?void 0:Z.imageLight};
return _.N("ytm-lp-large-feature-section-view-model",null,_.N("div",{class:function(){var u=l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",Z=l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",H=(l().index||0)%2===1,y=I==null?void 0:I().useDarkTheme,f=["yt-lp-large-feature-section-view-model"];u?f.push("yt-lp-large-feature-section-view-model--music-feature-type"):Z?f.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):H||f.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
y&&f.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return f.join(" ")}},_.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.N(_.E,{cond:x,
then:function(){return _.N(_.pK,{data:function(){return x()},
alt:function(){var u,Z,H;return(H=(u=l().featureImage)==null?void 0:(Z=u.accessibilityData)==null?void 0:Z.label)!=null?H:""},
contentMode:g})}})),_.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var u;return((u=M())==null?0:u.url)?"background-image: url("+_.eA(M().url)+");":""}},_.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.N(_.E,{cond:G,
then:function(){return _.N(_.pK,{data:function(){return G()},
alt:function(){var u,Z,H;return(H=(u=l().logo)==null?void 0:(Z=u.accessibilityData)==null?void 0:Z.label)!=null?H:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.N(_.E,{cond:function(){return l().eyebrowText},
then:function(){return _.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.N(_.Rf,{text:function(){return l().eyebrowText}}))}}),_.N(_.E,{cond:function(){return l().title},
then:function(){return _.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.N(_.Rf,{text:function(){return l().title}}))}}),_.N(_.E,{cond:function(){return l().subtitles},
then:function(){return _.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.N(_.qy,{each:function(){return l().subtitles||[]}},function(u){return _.N(_.Rf,{text:u})}))}})))))},"xc");
Nzw.idomCompat=!0;var EhI=_.P(function(z){return _.N("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.N("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.N(_.qt,{icon:function(){var l;return(l=z.data())==null?void 0:l.iconType},
className:function(){var l;switch((l=z.data())==null?void 0:l.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var l;return((l=z.data())==null?void 0:l.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.N("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.N(_.Rf,{text:function(){var l;
return(l=z.data())==null?void 0:l.text},
className:function(){var l;return((l=z.data())==null?void 0:l.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"yc");var u3u=_.P(function(z){z=_.xC(z,{config:void 0,themeOverride:void 0});var l=z.data,I=z.config,b=z.themeOverride;z={};z=_.m9("ytmLpOfferCardOptionViewModelHost",(z.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var g;return(g=b())==null?void 0:g.useDarkTheme},z));
var v=_.KK(function(){var g,G;(g=I())==null||(G=g.handleRadioButtonClick)==null||G.call(g,l());return!1}),M=function(){var g;
return(g=I())==null?void 0:g.shouldDisplayRadioButton},x=function(){var g;
return(g=l().featureListItems)!=null?g:[]};
return _.N("ytm-lp-offer-card-option-view-model",null,_.N("div",{class:z,"on:click":_.KK(function(){if(M()){var g,G;(g=I())==null||(G=g.handleRadioButtonClick)==null||G.call(g,l())}return!1})},_.N(_.E,{cond:M,
then:function(){return _.N("div",null,_.N("input",{type:"radio","on:click":v,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var g;return!((g=I())==null||!g.isOptionSelected)}}))}}),_.N("div",null,_.N("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.N(_.Rf,{text:function(){return l().eyebrowText}})),_.N("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.N(_.Rf,
{text:function(){return l().subtitle}})),_.N(_.E,{cond:function(){return x().length>0},
then:function(){return _.N("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.N(_.TS,{data:x},{lpFeatureListItemViewModel:EhI}))}}),_.N("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.N(_.Rf,{text:function(){return l().description}})))))},"zc");
u3u.idomCompat=!0;var ZZw=_.P(function(z){var l=z.data;var I=z.themeOverride;z=_.D(_.Br(function(){var M,x=(M=l().offerOptions)==null?void 0:M[0];return _.k(x,gm0)||{}}));
var b=z.next().value,v=z.next().value;z={};return _.N("ytm-lp-offer-card-view-model",null,_.N("div",{class:_.m9("ytmLpOfferCardViewModelHost",(z.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(I==null||!I().useDarkTheme)},z))},_.N("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.N(_.E,{cond:function(){return l().titleIconType},
then:function(){return _.N("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.N(_.qt,{icon:function(){var M;return((M=l().titleIconType)==null?void 0:M.toString())||""}}))}}),_.N("div",{class:"ytmLpOfferCardViewModelTitleText"},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.TS,{data:function(){return l().titleBadge}},{badgeViewModel:function(M){return _.N("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.N(_.T2,{data:M.data}))}})),_.N("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.N(_.TS,{data:function(){return l().offerOptions}},{lpOfferCardOptionViewModel:function(M){var x=M.data;
return _.N(_.xP,null,_.N("div",{class:"ytmLpOfferCardViewModelDivider"}),_.N(u3u,{data:x,config:function(){var g;return{shouldDisplayRadioButton:(l().offerOptions||[]).length>1,isOptionSelected:x().id===((g=b())==null?void 0:g.id),handleRadioButtonClick:function(G){return void v(G)}}},
themeOverride:I}))}})),_.N("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.N(_.TS,{data:function(){var M;
return(M=b())==null?void 0:M.purchaseButtonOverride}},{buttonViewModel:_.h4}))))},"Ac");
ZZw.idomCompat=!0;var HZA=_.P(function(z){var l=z.data;var I=z.themeOverride;z={};z=_.m9("ytmLpOfferCardSectionViewModelHost",(z.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var b;return I==null?void 0:(b=I())==null?void 0:b.useDarkTheme},z));
return _.N("ytm-lp-offer-card-section-view-model",null,_.N("div",{class:z},_.N(_.E,{cond:function(){return l().title!==void 0},
then:function(){return _.N("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.N("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.E,{cond:function(){return l().subtitle},
then:function(){return _.N("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.N(_.Rf,{text:function(){return l().subtitle}}))}}))}}),_.N("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.N(_.TS,{data:function(){return l().offerCards}},{lpOfferCardViewModel:function(b){return _.N("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.N(ZZw,{data:b.data,
themeOverride:I}))}})),_.N(_.E,{cond:function(){return l().footer},
then:function(){return _.N("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.N(_.Rf,{text:function(){return l().footer}}))}})))},"Bc");var ysu=_.P(function(z){var l=z.data;return _.N("lp-offer-table-cell-content-view-model",null,_.N("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.N(_.Q7,null,_.N(_.is,{when:function(){return l().title}},function(){return _.N(_.Rf,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return l().title}})}),_.N(_.is,{when:function(){return l().subTitle}},function(){return _.N(_.Rf,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return l().subTitle}})}),_.N(_.is,{when:function(){return l().featureDescription}},function(){return _.N(_.Rf,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return l().featureDescription}})}),_.N(_.is,{when:function(){return l().description}},function(){return _.N(_.Rf,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return l().description}})}),_.N(_.is,{when:function(){return l().iconType}},function(){return _.N("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.N(_.qt,{icon:function(){return l().iconType.toString()}}))}),_.N(_.is,{when:function(){return l().purchaseButton}},function(){return _.N(_.TS,{data:function(){return l().purchaseButton}},{buttonViewModel:function(I){return _.N("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.N(_.h4,
{data:I.data}))}})}),_.N(_.is,{when:function(){return l().note}},function(){return _.N(_.Rf,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return l().note}})}),_.N(_.is,{when:function(){return l().featureDetail}},function(){return _.N(_.Rf,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return l().featureDetail}})}),_.N(_.is,{when:function(){return l().badge}},function(){return _.N(_.TS,{data:function(){return l().badge}},{badgeViewModel:_.T2})}))))},"Cc");
ysu.idomCompat=!0;var fop=_.P(function(z){var l=z.data;return _.N("lp-offer-table-cell-view-model",null,_.N("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(l().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.N(_.TS,{data:function(){return l().contents}},{lpOfferTableCellContentViewModel:ysu})))},
"Dc");
fop.idomCompat=!0;var CU0=_.P(function(z){var l=z.data;var I=z.lpTableIsFirstRow;var b=z.lpTableIsLastRow;var v=function(){return(I==null?0:I())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},M=function(){return(I==null?0:I())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(b==null?0:b())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.N("ytm-lp-offer-table-row-view-model",null,_.N("div",{class:"ytLpOfferTableRowViewModelHost"},_.N(_.TS,{data:function(){return l().rowHeaderCell}},{lpOfferTableCellViewModel:function(x){return _.N("div",{class:v},_.N(fop,{data:x.data}))}}),_.N(_.TS,{data:function(){return l().contentCells}},{lpOfferTableCellViewModel:function(x){return _.N("div",{class:M},_.N(fop,{data:x.data}))}})))},"Ec");
CU0.idomCompat=!0;var kOz=_.P(function(z){var l=z.data;var I=z.themeOverride;var b=_.pG().resolve(_.MB(_.I2)),v=function(){return _.k(l().logo,QVA)||{}};
z={};return _.N("ytm-lp-offer-table-section-view-model",null,_.N("div",{class:"ytLpOfferTableViewModelHost"},_.N(_.E,{cond:function(){var M,x;return b&&b()||(I==null?0:I().useDarkTheme)?(M=v())==null?void 0:M.imageDark:(x=v())==null?void 0:x.imageLight},
then:function(M){return _.N(_.pK,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var x,g,G;return(G=(x=v())==null?void 0:(g=x.accessibilityData)==null?void 0:g.label)!=null?G:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.N(_.Rf,{text:function(){return l().subtitle}})),_.N(_.E,{cond:function(){return l().disclaimers},
then:function(M){return _.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.N(_.qy,{each:M},function(x){return _.N("div",null,_.N(_.Rf,{text:x}))}))}}),_.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.N(_.TS,{data:function(){return l().rows}},{lpOfferTableRowViewModel:function(M,x){return _.N(CU0,{data:M.data,
lpTableIsFirstRow:function(){return x()===0},
lpTableIsLastRow:function(){return x()===l().rows.length-1}})}})),_.N("div",{class:_.m9((z.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return l().hasFooterBackground},z))},_.N(_.E,{cond:function(){return l().footer},
then:function(){return _.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.N(_.Rf,{text:function(){return l().footer}}))}}),_.N(_.E,{cond:function(){return l().footerTitle},
then:function(){return _.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.N(_.Rf,{text:function(){return l().footerTitle}}))}}),_.N(_.E,{cond:function(){return l().footerDescription},
then:function(){return _.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.N(_.Rf,{text:function(){return l().footerDescription}}))}}),_.N(_.E,{cond:function(){return l().footerDescriptions},
then:function(M){return _.N("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.N(_.qy,{each:M},function(x){return _.N("div",null,_.N(_.Rf,{text:x}))}))}}))))},"Fc");
kOz.idomCompat=!0;var Run=_.P(function(z){var l=z.data;var I=z.themeOverride;var b=_.pG().resolve(_.MB(_.I2)),v=function(){var g;return I==null?void 0:(g=I())==null?void 0:g.useDarkTheme},M=function(){var g,G;
return b&&b()||v()?(g=l().image)==null?void 0:g.imageDark:(G=l().image)==null?void 0:G.imageLight};
z={};z=_.m9("ytmLpSmallFeatureSectionViewModelHost",(z.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=v,z));var x=function(){var g,G,u;return(u=(g=l().image)==null?void 0:(G=g.accessibilityData)==null?void 0:G.label)!=null?u:""};
return _.N("ytm-lp-small-feature-section-view-model",{class:z},_.N(_.E,{cond:function(){return M()&&!iBQ},
then:function(){return _.N("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.N(_.pK,{data:function(){return M()},
alt:x,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.N("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.N("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.N(_.E,{cond:function(){return l().title},
then:function(g){return _.N(_.Rf,{text:g})}})),_.N("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.N(_.Rf,{text:function(){return l().description}}))))},"Gc");
Run.idomCompat=!0;var mcw=_.P(function(z){var l=z.data;var I=z.themeOverride;z={};return _.N("ytm-lp-small-feature-section-group-view-model",null,_.N("div",{class:_.m9("ytmLpSmallFeatureSectionGroupViewModelHost",(z.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(I==null||!I().useDarkTheme)},z))},_.N("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.N(_.TS,{data:function(){return l().smallFeatures}},{lpSmallFeatureSectionViewModel:function(b){return _.N("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.N(Run,{data:b.data,
themeOverride:I}))}}))))},"Hc");
mcw.idomCompat=!0;_.uO(_.P(function(z){var l=z.data;var I=function(){return l().forcedTheme==="USER_INTERFACE_THEME_DARK"},b=function(){return l().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},v=function(){var x="",g,G;
var u=_.pG().resolve(_.MB(_.I2));u=I()||(u==null?0:u())?(g=l().themedImageViewModel)==null?void 0:g.imageDark:(G=l().themedImageViewModel)==null?void 0:G.imageLight;(g=PaH((u==null?void 0:u.sources)||[]))&&g.url&&(x=b()?"background-image: linear-gradient(to bottom, transparent, "+(l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.eA(g.url)+");":"background-image: url("+_.eA(g.url)+");");return x},M=function(){return{useDarkTheme:I()}};
z={};return _.N("yt-section-group-view-model",null,_.N("div",{class:_.m9("yt-lp-section-group-view-model",(z["yt-lp-section-group-view-model--premium-force-dark-mode"]=I,z["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},z))},_.N(_.E,{cond:function(){return v().length},
then:function(){var x={};return _.N("div",{class:_.m9("yt-lp-section-group-view-model__bg-image",(x["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=b,x)),style:v})}}),_.N("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.N(_.TS,{data:function(){return l().sections}},{lpFaqSectionViewModel:function(x){return _.N(OZu,{data:x.data,
themeOverride:M})},
lpHeaderSectionViewModel:function(x){return _.N(gh_,{data:x.data,themeOverride:M})},
lpHeadlineSectionViewModel:function(x){return _.N(GO_,{data:x.data,themeOverride:M})},
lpLargeFeatureSectionViewModel:function(x){return _.N(Nzw,{data:x.data,themeOverride:M})},
lpOfferCardSectionViewModel:function(x){return _.N(HZA,{data:x.data,themeOverride:M})},
lpComplexOfferCardSectionViewModel:function(x){return _.N(MBj,{data:x.data})},
lpOfferTableSectionViewModel:function(x){return _.N(kOz,{data:x.data,themeOverride:M})},
lpSmallFeatureSectionGroupViewModel:function(x){return _.N(mcw,{data:x.data,themeOverride:M})},
lpCouponBannerViewModel:function(x){return _.N(p$M,{data:x.data})}}))))},"Ic"),"yt-section-group-view-model",{props:{data:_.mB}});var sSY=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Kiu=_.P(function(z){function l(){if(sSY.has(z.data().displayType)){var u=!b(),Z;if((Z=z.disableDeselection)==null||!Z.call(z)||u){z.data().selected=u;Z=Object.assign({},x(),{selected:u});g(Z);var H;(H=z.callback)==null||H.call(z,Z,u)}}}
var I=_.VK("chip-view-model"),b=function(){var u,Z;return!!(((u=z.selected)==null?void 0:u.call(z))!==void 0?(Z=z.selected)==null?0:Z.call(z):x().selected)},v=_.D(_.Br(z.data)),M=v.next().value;
v=v.next().value;var x=M,g=v,G=_.F1(hf1,function(){return z.data().chipEntityKey||""});
return _.N("chip-view-model",{class:"ytChipViewModelHost",el:I},_.N(bCz,{data:function(){var u,Z=Object.assign({},x(),{selected:b()}),H=G(),y=(u=z.disableDeselection)==null?void 0:u.call(z);a:switch(Z.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":u=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":u=3;break a;default:u=0}return{text:(H==null?void 0:H.text)||Z.text,state:Z.disabled?1:Z.selected?0:2,type:u,onTap:r6Y(Z,I,l,y),
accessibilityLabel:Z.accessibilityLabel||Z.text}}}))},"Jc");
_.Kiu.idomCompat={callbacks:{callback:!0}};_.tBw=_.P(function(z){var l=_.F1(PGH,function(){var x;return(x=z.data())==null?void 0:x.chipBarStateEntityKey}),I=function(){return z.data().disableDeselection},b=_.D(_.Br(function(){var x;
if(((x=l())==null?void 0:x.selectedIndex)!=void 0)return l().selectedIndex;var g,G;x=_.D(((g=z.data())==null?void 0:(G=g.chips)==null?void 0:G.entries())||[]);for(g=x.next();!g.done;g=x.next()){g=_.D(g.value);G=g.next().value;g=g.next().value;var u=void 0;if((u=_.k(g,_.EE))==null?0:u.selected)return G}return-1})),v=b.next().value,M=b.next().value;
return _.N("chip-bar-view-model",{class:_.m9("ytChipBarViewModelHost",z.className),role:"tablist"},_.N(_.TS,{data:function(){return z.data().chips}},{chipViewModel:function(x,g){return _.N("div",{class:"ytChipBarViewModelChipWrapper"},_.N(_.Kiu,{data:x.data,
selected:function(){return g()===v()},
callback:function(G,u){G=!!u;u=g();M(G?u:-1);var Z,H=(Z=z.data())==null?void 0:Z.chipBarStateEntityKey;H&&G&&_.pE(_.cU("chipBarStateEntity",H,{key:H,selectedIndex:u}))},
disableDeselection:z.disableDeselection||I}))}}))},"Kc");_.uO(_.tBw,"chip-bar-view-model",{props:{data:_.GH,className:_.GH,disableDeselection:_.GH}});_.Bzp=_.P(function(z){var l=z.data;z={};return _.N("divider-view-model",{class:_.m9("dividerViewModelHost",(z.dividerViewModelInsetThinPadding=function(){return l().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},z))},_.N("div",{class:_.m9("dividerViewModelBaseDivider",function(){return $qx(l().dividerStyle)}),
style:_.XV({"background-color":function(){return l().backgroundColor?_.Ur(l().backgroundColor):void 0}})}))},"Lc");
_.Bzp.idomCompat=!0;_.uO(_.Bzp,"divider-view-model",{props:{data:_.mB}});var Fo=new Map,i7=new Map,A6$=0,Qb;var jS7=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],lKf={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var X$0,qgj;X$0=function(z){return function(l){return function(){return(l==null?void 0:l())!==void 0?String(l())+z:void 0}}};
_.DN=X$0("px");qgj=X$0("s");var iZu=jz7(function(z){return z.targetGroupId}).useUpdatableData;var QIA=_.P(function(z){function l(lH){return function(){var Gk=F().numItemsPerGridRow,uH=lH()*Gk;Gk=uH+Gk;var Xt,R1;return(R1=(Xt=b().contents)==null?void 0:Xt.slice(uH,Gk))!=null?R1:[]}}
var I=_.xC(z,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),b=I.data,v=I.layoutContainerWidth,M=I.shouldUseOwnContainerSize,x=I.marginSettings,g=i37(),G=_.D(iZu(function(){var lH,Gk;return{targetGroupId:(lH=b().targetingContext)==null?void 0:(Gk=lH.targetGroupId)==null?void 0:Gk[0]}})).next().value;
I=_.D(_.Z_(!0,void 0,"AA2Ctc"));var u=I.next().value,Z=I.next().value,H=function(){var lH,Gk=(lH=_.k(b().showMoreButton,_.N1))==null?void 0:lH.trackingParams;Gk&&_.sE(_.iY(),Gk);Z(!1)},y=function(){var lH,Gk=(lH=_.k(b().showLessButton,_.N1))==null?void 0:lH.trackingParams;
Gk&&_.sE(_.iY(),Gk);Z(!0)};
I=_.VK("grid-shelf-view-model");var f=_.bLQ(I,{canHaveZeroSize:!1}),R=function(){var lH;return(lH=b().contentAspectRatio)!=null?lH:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},F=_.kz(function(){var lH=_.Vo({containerWidth:M()&&f.width()>0?f.width()||v():v(),
sizing:"EXTRA_COMPACT",marginSettings:x(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:lH.maxContainerWidth,numItemsPerGridRow:lH.numItems,contentPadding:M()?lH.margin:lH.contentMargin,itemWidth:lH.itemWidth,itemMargin:lH.gutter/2}},void 0,"IZAnPe"),Y=function(){if(b().enableVerticalExpansion){if(u())return c();
var lH,Gk,uH=(Gk=(lH=b().contents)==null?void 0:lH.length)!=null?Gk:0;return Math.ceil(uH/F().numItemsPerGridRow)}return F().numItemsPerGridRow<=2?2:1},c=function(){var lH;
return Math.ceil(((lH=b().minCollapsedItemCount)!=null?lH:1)/F().numItemsPerGridRow)},d=function(){return b().enableVerticalExpansion&&b().showLessButton&&!u()&&Y()>c()},V=function(){var lH,Gk;
return b().enableVerticalExpansion&&b().showMoreButton&&u()&&((Gk=(lH=b().contents)==null?void 0:lH.length)!=null?Gk:0)>F().numItemsPerGridRow*c()},A=function(){return!d()},W=function(){return!V()},L={};
return _.N("grid-shelf-view-model",{class:_.m9("ytGridShelfViewModelHost",z.className,(L.ytGridShelfViewModelHostHasBottomButton=function(){return d()||V()},L.ytGridShelfViewModelHostIsDismissed=function(){var lH,Gk=(lH=G())!=null?lH:{};
lH=Gk.behavior;var uH=Gk.isDismissed,Xt=Gk.stamperContextTargetId;Gk=Gk.stamperIndex;if(!(_.C("mweb_see_fewer_shorts_group_dismissal")&&uH&&lH&&Xt))return!1;var R1;uH=g;for(var H7,P7,o1=((H7=uH)==null?0:H7.targetId)?_.d2((P7=uH)==null?void 0:P7.targetId):void 0;((R1=uH)==null?0:R1.parent)&&o1!==Xt;)uH=uH.parent,P7=H7=void 0,o1=((H7=uH)==null?0:H7.targetId)?_.d2((P7=uH)==null?void 0:P7.targetId):void 0;R1=o1===Xt?uH:void 0;if(!R1)return!1;var z_;Xt=R1==null?void 0:(z_=R1.stamperIndex)==null?void 0:
z_.call(R1);return lH==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||lH==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Xt!=null&&Gk!=null&&Xt>Gk},L)),
el:I,style:_.XV({"margin-left":(0,_.DN)(function(){return F().contentPadding}),
"margin-right":(0,_.DN)(function(){return F().contentPadding})})},_.N(_.E,{cond:function(){return _.k(b().header,$wu)},
then:function(lH){return _.N(_.rj,{data:lH,disableHorizontalPadding:!0})}}),_.N("div",null,_.N(_.qy,{each:function(){return Array(Y())}},function(lH,Gk){return _.N(Fiu,{className:z.className,
items:l(Gk),responsiveGridShelfLayout:F,contentAspectRatio:R})})),_.N("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.N(_.TS,{data:function(){return b().showMoreButton}},{buttonViewModel:function(lH){return _.N("div",{hidden:W},_.N(_.h4,{data:lH.data,
onClick:H}))}}),_.N(_.TS,{data:function(){return b().showLessButton}},{buttonViewModel:function(lH){return _.N("div",{hidden:A},_.N(_.h4,{data:lH.data,
onClick:y}))}})))},"Mc");
QIA.idomCompat=!0;var Fiu=_.P(function(z){var l=z.items;var I=z.responsiveGridShelfLayout;var b=z.contentAspectRatio;z=z.className;var v=_.VK("div");wMQ(v,function(){a:{var x=v.value;for(var g=l(),G=[],u=0;u<g.length;u++){var Z=_.k(g[u],HtM);if(!Z||Z==null||!Z.inlinePlayerData){x=null;break a}var H=x.children.item(u);if(!H){x=null;break a}G.push({thumbnailElement:H,videoData:Z})}x={gridVideoPreviewData:{gridItems:G}}}return x});
var M=(0,_.DN)(function(){return-I().itemMargin});
return _.N("div",{el:v,class:_.m9("ytGridShelfViewModelGridShelfRow",z),style:_.XV({"margin-left":M,"margin-right":M})},_.N(_.TS,{data:l,replacementWrapper:function(x){return _.N(Ygu,{responsiveGridShelfLayout:I},x)}},{shortsLockupViewModel:function(x){return _.N(Ygu,{responsiveGridShelfLayout:I},_.N(xqp,{data:x.data,
aspectRatio:function(){return b()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.C("mweb_enable_one_line_title_on_shorts")?1:_.C("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))}}))},"Nc"),Ygu=_.P(function(z){return _.N("div",{style:_.XV({width:(0,_.DN)(function(){return z.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+z.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},z.children)},"Oc");
QIA.idomCompat=!0;_.uO(QIA,"grid-shelf-view-model",{props:{data:_.mB,layoutContainerWidth:_.mB,shouldUseOwnContainerSize:_.mB,marginSettings:_.mB,className:_.mB}});_.Tzw=_.P(function(z){var l=_.D(_.Z_(!1,void 0,"FVl30c")),I=l.next().value,b=l.next().value;l={};return _.N("yt-alert-banner-view-model",{class:_.m9("ytAlertBannerViewModelHost",z.className,function(){var v;a:switch((v=z.data())==null?void 0:v.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":v="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":v="ytAlertBannerViewModelWarning";break a;default:v="ytAlertBannerViewModelInformational"}return v},(l.ytAlertBannerViewModelDismissed=
I,l.ytAlertBannerViewModelFullbleed=z.fullbleed,l.ytAlertBannerViewModelNarrow=z.narrow,l.ytAlertBannerViewModelIsInRichGrid=z.isInRichGrid,l))},_.N(_.E,{cond:function(){var v;
return!((v=z.data())==null?0:v.hideIcon)},
then:function(){return _.N("div",{class:"ytAlertBannerViewModelIcon"},_.N(_.qt,{icon:function(){return"info_circle"}}))}}),_.N("div",{class:"ytAlertBannerViewModelOuterContainer"},_.N("div",{class:"ytAlertBannerViewModelContainer"},_.N("div",{class:"ytAlertBannerViewModelContent"},_.N("div",{class:"ytAlertBannerViewModelHeading"},_.N(_.Rf,{text:function(){var v;
return(v=z.data())==null?void 0:v.heading}})),_.N("div",{class:"ytAlertBannerViewModelBody"},_.N(_.Rf,{text:function(){var v;
return(v=z.data())==null?void 0:v.body}})))),_.N(_.TS,{data:function(){var v;
return(v=z.data())==null?void 0:v.actionButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.N(_.TS,{data:function(){var v;
return(v=z.data())==null?void 0:v.dismissButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var M;((M=z.data())==null?0:M.disableLocalDismissBehavior)||b(!0)}})}}))},"Pc");_.uO(_.Tzw,"yt-alert-banner-view-model",{props:{data:_.mB,fullbleed:_.mB,narrow:_.mB,isInRichGrid:_.mB,className:_.mB}});_.x6=_.P(function(z){var l=z.data;var I=z.callback;var b=z.selectionBehavior;var v=z.disableChipsScrollAnimation;var M=_.z1("div");z=_.D(_.Z_(!0,void 0,"aUEsOc"));var x=z.next().value,g=z.next().value;z=_.D(_.Z_(!1,void 0,"V0aKld"));var G=z.next().value,u=z.next().value,Z=!1,H=0;_.c8(function(){g(R());u(F())});
z=_.D(_.Br(function(){var lH={};return l().autoselectedChipIndex!=null?(lH[l().autoselectedChipIndex]=!0,lH):{}}));
var y=z.next().value,f=z.next().value,R=function(){var lH=M.value;return lH==null||lH.scrollLeft-1<=0},F=function(){var lH=M.value;
return lH==null?!1:lH.scrollLeft+1>=(lH==null?NaN:lH.scrollWidth)-(lH==null?NaN:lH.clientWidth)},Y=function(){return l().isHorizontallyScrollable},c=function(lH){M.value!=null&&(_.sZ("HTML_DIR")==="rtl"&&(lH=-lH),M.value.scrollBy({left:lH,
behavior:(v==null?0:v())?"instant":"smooth"}))},d=function(){c(-320)},V=function(){c(320)},A=_.KK(function(lH){Z=!0;
H=lH.clientX}),W=_.KK(function(lH){if(Z){lH=lH.clientX;
var Gk=lH-H;H=lH;var uH;(uH=M.value)==null||uH.scrollBy({left:-Gk})}}),L=_.KK(function(){var lH=R(),Gk=F();
lH!==x()&&g(lH);Gk!==G()&&u(Gk)});
vC("pointerup",function(){Z&&(Z=!1)});
return _.N("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.N(_.dA,{contentId:function(){return l().contentId},
useModernStyle:!0},function(){var lH={},Gk={};return _.N("div",null,_.N(_.E,{cond:function(){return l().title},
then:function(){return _.N("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.N("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return l().title}),_.N(_.TS,{data:function(){return l().overflowButton}},{buttonViewModel:_.h4}))}}),_.N("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.N(_.E,{cond:function(){return l().previousButton},
then:function(){var uH={};return _.N("div",{class:_.m9("ytChipsShelfViewModelLeftArrowContainer",(uH.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return x()},uH))},_.N(_.TS,{data:function(){return l().previousButton}},{buttonViewModel:function(Xt){return _.N(_.h4,{data:Xt.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:d})}}))}}),_.N("div",{el:M,
"on:pointerdown":A,"on:pointermove":W,"on:scroll":L,class:_.m9("ytChipsShelfViewModelChipsScrollContainer",(lH.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=Y,lH))},_.N("div",{class:_.m9("ytChipsShelfViewModelChipsContainer",(Gk.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=Y,Gk.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Gk)),role:"tablist"},_.N(_.TS,{data:function(){return l().contents}},{chipViewModel:function(uH,Xt){return _.N("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.N(_.Kiu,{data:uH.data,
callback:function(R1,H7){var P7=Xt(),o1,z_=(o1=b==null?void 0:b())!=null?o1:0;z_===1||z_===2?(o1={},f((o1[P7]=H7,o1))):(o1={},f(Object.assign({},y(),(o1[P7]=H7,o1))));I==null||I(R1,H7,P7)},
disableDeselection:function(){return(b==null?void 0:b())===1},
selected:function(){return!!y()[Xt()]}}))}}))),_.N(_.E,{cond:function(){return l().nextButton},
then:function(){var uH={};return _.N("div",{class:_.m9("ytChipsShelfViewModelRightArrowContainer",(uH.ytChipsShelfViewModelRightArrowContainerIsHidden=G,uH))},_.N(_.TS,{data:function(){return l().nextButton}},{buttonViewModel:function(Xt){return _.N(_.h4,{data:Xt.data,
className:"ytChipsShelfViewModelRightArrow",onClick:V})}}))}})))}))},"Qc");
_.x6.idomCompat={callbacks:{callback:!0}};_.uO(_.x6,"chips-shelf-view-model",{props:{data:_.mB,callback:_.GH,selectionBehavior:_.mB,disableChipsScrollAnimation:_.mB}});_.uO(_.P(function(z){return _.N("yt-comment-filter-context-view-model",{class:_.m9("ytCommentFilterContextHost",z.className)},_.N(_.Rf,{text:function(){return z.data().text}}))},"Rc"),"yt-comment-filter-context-view-model",{props:{data:_.mB,
className:_.GH}});var csw=_.P(function(z){z=_.xC(z,{disabled:!1});var l=z.active,I=z.disabled;z={};z=_.m9("ytSwitchShapeTrack",(z.ytSwitchShapeTrackActive=function(){return l()},z.ytSwitchShapeTrackDisabled=function(){return I()},z));
var b={};b=_.m9("ytSwitchShapeKnob",(b.ytSwitchShapeKnobActive=function(){return l()},b));
return _.N("switch-shape",{class:"ytSwitchShapeHost"},_.N("div",{class:z}),_.N("div",{class:b}))},"Sc");var Sg0=_.P(function(z){var l=_.xC(z,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=l.data;z=l.className;var b=l.handleOnTapEventInParent,v=l.parentActive,M=l.onTap;l=_.D(_.Br(function(){var y;return(y=v())!=null?y:I().switchedOnByDefault||!1}));
var x=l.next().value,g=l.next().value,G=function(){return I().isDisabled},u=_.VK("button");
l=_.KK(function(y){return y.key==="Enter"?(y.preventDefault(),u.value.click(),!1):!0});
var Z=_.KK(function(y){if(I().handleOnTapEventInParent||b())return!0;if(G())return!1;if(M)return M(y),!0;MRu(I(),x(),y);g(!x());return!1}),H={};
H=_.m9("ytSwitchButtonViewModelButton",(H.ytSwitchButtonViewModelTappable=function(){return!G()},H));
return _.N("switch-button-view-model",{class:_.m9("ytSwitchButtonViewModelHost",z)},_.N("button",{el:u,class:H,"on:click":Z,"on:keydown":l,"aria-label":function(){return x()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-checked":x,"aria-disabled":G,role:"switch"},_.N(csw,{active:x,disabled:G})))},"Tc");var dcn=_.P(function(z){var l=z.data;var I=z.isLeading;var b=z.hideSelectionTextChevron;var v=z.isToggled;var M=function(){return I()?l().leadingImage:l().trailingImage},x=function(){a:switch(l().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var Z="expand_more";
break a;default:Z="chevron_right"}return Z};
z={};var g=_.m9("yt-list-item-view-model__image-container",(z["yt-list-item-view-model__leading"]=I,z["yt-list-item-view-model__trailing"]=function(){return!I()},z)),G=_.m9("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
z={};var u=_.m9("yt-list-item-view-model__accessory",(z["yt-list-item-view-model__leading"]=I,z["yt-list-item-view-model__trailing"]=function(){return!I()},z));
return _.N(_.E,{cond:function(){var Z=l(),H=I();return!!(H&&(Z.leadingImage||Z.leadingAccessory)||!H&&(Z.trailingImage||Z.trailingButton||Z.trailingButtons||Z.selectionText))},
then:function(){return _.N(_.xP,null,_.N(_.E,{cond:M,then:function(Z){return _.N("div",{class:g,"aria-hidden":"true"},_.N(_.pK,{data:Z,alt:"",preserveWidth:!0,preserveHeight:!0,className:G,isToggled:v}))}}),_.N(_.E,{cond:function(){return I()&&l().leadingAccessory},
then:function(){return _.N("div",{class:g},_.N(_.TS,{data:function(){return l().leadingAccessory}},{avatarViewModel:function(Z){return _.N(_.Dz,{data:Z.data,
avatarButtonCustomClassName:G})},
collectionThumbnailViewModel:function(Z){return _.N(IUj,{data:Z.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.N(_.E,{cond:function(){return!I()&&l().trailingButton},
then:function(){return _.N("div",{class:"yt-list-item-view-model__button-container"},_.N(_.TS,{data:function(){return l().trailingButton}},{buttonViewModel:function(Z){return _.N(_.h4,{data:Z.data,
className:u})}}))}}),_.N(_.E,{cond:function(){var Z;
return!I()&&((Z=l().trailingButtons)==null?void 0:Z.buttons)},
then:function(){return _.N("div",{class:"yt-list-item-view-model__button-container"},_.N(_.TS,{data:function(){var Z;return(Z=l().trailingButtons)==null?void 0:Z.buttons}},{buttonViewModel:function(Z){return _.N(_.h4,{data:Z.data,
className:u})},
accountLinkButtonViewModel:function(Z){return _.N(WP_,{data:Z.data,className:u})},
switchButtonViewModel:function(Z){return _.N(Sg0,{data:Z.data,className:u})},
subscribeButtonViewModel:function(Z){return _.N(_.py,{data:Z.data,isOverlay:!1,animateWidth:!1,className:u})},
toggleButtonViewModel:function(Z){return _.N(_.vL,{data:Z.data,className:u})}}))}}),_.N(_.E,{cond:function(){return!I()&&!!l().selectionText},
then:function(){return _.N(_.xP,null,_.N(_.Rf,{text:function(){return l().selectionText},
className:_.m9("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.N(_.E,{cond:function(){return!(b==null?0:b())},
then:function(){return _.N(_.qt,{icon:x,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Uc");var oh_=_.P(function(z){function l(){var f,R;G((R=(f=v)==null?void 0:f.isKeyBoardInUse())!=null?R:!1)}
function I(){G(!1)}
function b(){var f;return g()?(f=z.focusedClassName)==null?void 0:f.call(z):""}
var v=_.pG().resolve(_.MB(_.T$)),M=_.D(_.Z_(!1,void 0,"zbdw0d")),x=M.next().value;M=M.next().value;var g=x,G=M,u=function(){var f,R;return((f=z.toggleable)==null?0:f.call(z))?(R=z.toggled)==null?void 0:R.call(z):void 0},Z=_.KK(function(f){var R,F=(R=z.command)==null?void 0:R.call(z);
F&&_.pG().resolve(_.DQ).resolveCommand(F);var Y;(Y=z.onClick)==null||Y.call(z,f)}),H=_.KK(l),y=_.KK(I);
return _.N(_.E,{cond:function(){var f;if(f=z.command){f=z.command();f=USt(f);var R=f.href;f=!(!f.navigatingCommand||!R)}return f},
then:function(){return _.N(_.cZ,Object.assign({},{command:z.command,style:z.style,ariaDescribedby:z.ariaDescribedby,ariaHidden:z.ariaHidden,ariaLabel:z.ariaLabel,ariaLabelledby:z.ariaLabelledby,ariaSelected:z.ariaSelected,disabled:z.disabled,dir:z.dir,tabIndex:z.tabIndex,target:z.target,title:z.title,onClick:z.onClick},{className:_.m9("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",z.className,function(){return b()}),
onFocusin:l,onFocusout:I,ariaCurrent:function(){var f,R;return(R=(f=z.ariaCurrent)==null?void 0:f.call(z))!=null?R:u()}}),z.children)},
else:function(){return _.N("button",{"on:click":Z,"on:focusin":H,"on:focusout":y,class:_.m9("ytButtonOrAnchorHost","ytButtonOrAnchorButton",z.className,function(){return b()}),
style:z.style,"aria-describedby":z.ariaDescribedby,"aria-hidden":z.ariaHidden,"aria-label":z.ariaLabel,"aria-labelledby":z.ariaLabelledby,"aria-pressed":u,dir:z.dir,disabled:z.disabled,tabindex:z.tabIndex,title:z.title},z.children)}})},"Vc");var PUp=_.P(function(z){var l=z.data;var I=z.useButtonOrAnchor;var b=z.onTap;var v=z.isTappableWithoutSelect;var M=z.isToggled;return _.N(_.E,{cond:function(){return l().title||l().subtitle},
then:function(){return _.N("div",{class:"yt-list-item-view-model__text-wrapper"},_.N(_.E,{cond:function(){return l().title},
then:function(x){return _.N("div",{class:"yt-list-item-view-model__title-wrapper"},_.N(_.E,{cond:function(){return(I==null?void 0:I())&&(v==null?void 0:v())},
then:function(){return _.N(oh_,{command:function(){return _.e9(l().rendererContext)},
onClick:b,className:"yt-list-item-view-model__button-or-anchor",toggleable:M!==void 0,toggled:M},_.N(_.Rf,{text:x,className:"yt-list-item-view-model__title"}))},
else:function(){return _.N(_.Rf,{text:x,className:"yt-list-item-view-model__title"})}}))}}),_.N(_.E,{cond:function(){return l().subtitle},
then:function(x){return _.N(_.Rf,{text:x,className:"yt-list-item-view-model__subtitle"})}}))}})},"Wc");var huj=_.P(function(z){var l=z.data;var I=z.hideSelectionTextChevron;var b=z.TrailingAccessory;var v=z.isToggled;var M=z.disabled;var x=z.isSelectItem;var g=z.isCompact;var G=z.inPopup;var u=z.disableHorizontalPadding;var Z=z.isTappableWithoutSelect;var H=z.useButtonOrAnchor;z=z.onTap;var y={};return _.N("div",{class:_.m9("yt-list-item-view-model__label",(y["yt-list-item-view-model__container"]=function(){return!(x==null?0:x())},y["yt-list-item-view-model__container--disabled"]=function(){return!!l().isDisabled||
!(M==null||!M())},y["yt-list-item-view-model__container--has-subtitle"]=function(){return!!l().subtitle},y["yt-list-item-view-model__container--compact"]=g,y["yt-list-item-view-model__container--tappable"]=Z,y["yt-list-item-view-model__container--in-popup"]=G,y["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(u==null?void 0:u())&&!(x==null?0:x())},y))},_.N(dcn,{data:l,
isLeading:!0,hideSelectionTextChevron:I,isToggled:v}),_.N(PUp,{data:l,onTap:z,useButtonOrAnchor:H,isTappableWithoutSelect:Z,isToggled:v}),_.N(_.E,{cond:function(){return!!b},
then:function(){return _.N("div",{class:"yt-list-item-view-model__trailing"},b&&_.N(b,null))},
else:function(){return _.N(dcn,{data:l,isLeading:!1,hideSelectionTextChevron:I,isToggled:v})}}))},"Xc");var rsj=_.P(function(z){var l=_.xC(z,{checked:!1});z=l.name;var I=l.onChange,b=l.onClick,v=l.checked,M=l.labelRenderable,x=l.hasLeadingLabel,g=l.labelClass,G=l.isCompact,u=l.selectElementClass;l=l.disableHorizontalPadding;var Z="checkbox"+_.Uh(_.pA),H=_.KK(function(R){b==null||b(R);return!1}),y=_.KK(function(R){I==null||I(R);
return!1}),f={};
return _.N("checkbox-shape",null,_.N("label",{class:_.m9("ytCheckboxShapeHost",g,(f.ytCheckboxShapeHostCompact=G,f.ytCheckboxShapeDisableHorizontalPadding=l,f))},_.N("input",{class:"ytCheckboxShapeInput",id:Z,checked:v,name:z,type:"checkbox","prop:checked":v,"on:change":y,"on:click":H}),_.N(_.E,{cond:function(){return!(x==null?0:x())},
then:function(){return _.N(sII,{isLeading:!0,selectElementClass:u})}}),_.N(_.E,{cond:function(){return!!M},
then:function(){return _.N("div",{class:"ytCheckboxShapeLabel"},M==null?void 0:M())}}),_.N(_.E,{cond:x,
then:function(){return _.N(sII,{isLeading:!1,selectElementClass:u})}})))},"Yc");
rsj.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var sII=_.P(function(z){var l=z.selectElementClass;z={};return _.N("div",{class:_.m9("ytCheckboxShapeCheckbox",l,(z.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(l==null?0:l())},z)),
"aria-hidden":"true"},_.N(_.qt,{icon:_.C("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.N(_.qt,{icon:_.C("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Zc");_.O_=_.P(function(z){var l=z.name;var I=z.onChange;var b=z.onClick;var v=z.checked;var M=z.labelRenderable;var x=z.useCheckIcon;var g=z.hasLeadingLabel;var G=z.labelClass;var u=z.isCompact;var Z=z.selectElementClass;var H=z.ariaLabel;z=z.className;var y="radio"+_.Uh(_.pA),f=_.VK("input"),R=_.KK(function(L){f.value.checked=!(v==null||!v());I==null||I(L);return!1}),F=_.KK(function(L){b==null||b(L);
return!1}),Y=_.KK(function(L){_.C("enable_ios_webview_radio_button_responsiveness")&&(L.preventDefault(),f.value.click())}),c=_.D(_.Z_(!1,void 0,"TcCZlf")),d=c.next().value,V=c.next().value;
c=_.KK(function(){var L;((L=_.pG().resolve(_.MB(_.T$)))==null?0:L.isKeyBoardInUse())&&V(!0)});
var A=_.KK(function(){V(!1)}),W={};
return _.N("radio-shape",{class:_.m9("yt-radio-shape",z)},_.N("input",{el:f,class:"yt-radio-shape__input",id:y,"prop:checked":v,name:l,type:"radio","on:change":R,"on:click":F,"aria-label":H,"on:focusin":c,"on:focusout":A}),_.N("label",{class:_.m9("yt-radio-shape__label-container",G,(W["yt-radio-shape--compact"]=u,W["yt-radio-shape__label-container--keyboard-focused"]=d,W)),for:y,"on:click":Y},_.N(_.E,{cond:function(){return!(g==null?0:g())},
then:function(){return _.N($cu,{checked:v,useCheckIcon:x,isLeading:!0,selectElementClass:Z})}}),_.N(_.E,{cond:function(){return!!M},
then:function(){return _.N("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(H==null?0:H())?"true":"false"}},M==null?void 0:M())}}),_.N(_.E,{cond:g,
then:function(){return _.N($cu,{checked:v,useCheckIcon:x,isLeading:!1,selectElementClass:Z})}})))},"$c");
_.O_.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var $cu=_.P(function(z){var l=z.useCheckIcon;var I=z.selectElementClass;z=function(){return(l==null?0:l())?"CHECK":_.C("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var b={};return _.N("div",{class:_.m9("yt-radio-shape__radio",I,(b["yt-radio-shape__radio--check-icon"]=l,b["yt-radio-shape__radio--radio-default-style"]=function(){return!(I==null?0:I())},b)),
"aria-hidden":"true"},_.N(_.qt,{icon:z}),_.N(_.qt,{icon:z,active:function(){return!(l==null?0:l())}}))},"ad");_.GA=_.P(function(z){var l=z.data;var I=z.isMenuItem;var b=z.isCompact;var v=z.onTap;var M=z.trailingAccessory;var x=z.hideSelectionTextChevron;var g=z.disabled;var G=z.inPopup;var u=z.disableHorizontalPadding;var Z=z.isOverlay;var H=z.isToggled;var y=z.ariaLabel;z=z.ariaPressed;var f=_.nK(function(H7){return xHQ(H7,l())}),R=function(){return _.C("enable_web_shorts_captions_language_command")?Object.assign({},l(),f()):l()},F=gvY(function(){return R().rendererContext}),Y=function(){return!(R().isSelected===
void 0||!R().selectionStyle||R().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},c=function(){return(_.w5(R().rendererContext)||v)&&!Y()},d={},V=_.m9("yt-list-item-view-model__container",(d["yt-list-item-view-model__container--tappable"]=function(){return _.w5(R().rendererContext)||Y()},d["yt-list-item-view-model__container--compact"]=b,d["yt-list-item-view-model__container--in-popup"]=G,d["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(u==null?void 0:
u())&&Y()},d)),A=function(){return R().leadingImage||R().leadingAccessory},W=_.m9("yt-list-item-view-model__image-container",function(){return A()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
d=_.KK(function(H7){R1||v==null||v(H7)});
var L=_.xI7(),lH=_.D(_.Z_(!1,void 0,"T3mHdc")),Gk=lH.next().value,uH=lH.next().value,Xt=function(){return _.N(huj,{data:R,hideSelectionTextChevron:x,TrailingAccessory:M,isToggled:H,disabled:g,isSelectItem:Y,isCompact:b,inPopup:G,disableHorizontalPadding:u,isTappableWithoutSelect:c,useButtonOrAnchor:R1,onTap:v})},R1=_.C("web_button_or_anchor_list_item");
lH={};return _.N("yt-list-item-view-model",{el:_.xl(_.AR(function(){return R().rendererContext},void 0,void 0,R1?["A".toString(),
"BUTTON".toString()]:[]),R1&&v?OLu(v):void 0,mIk(function(){return c==null?void 0:c()},{focusin:function(){var H7;
((H7=_.pG().resolve(_.MB(_.T$)))==null?0:H7.isKeyBoardInUse())&&uH(!0)},
focusout:function(){uH(!1)}})),
class:_.m9("yt-list-item-view-model",(lH["yt-list-item-view-model--is-overlay"]=Z,lH["yt-list-item-view-model--keyboard-focused"]=Gk,lH)),role:function(){return(I==null?0:I())?"menuitem":"listitem"},
tabindex:function(){var H7=c();H7=R1?void 0:v||H7?0:void 0;return H7},
"on:keydown":L,"on:click":d,"aria-label":function(){var H7;return(y==null?void 0:y())||((H7=F())==null?void 0:H7.label)},
"aria-pressed":z},_.N(_.E,{cond:Y,then:function(){return _.N(_.Q7,null,_.N(_.is,{when:function(){return R().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.N(rsj,{labelRenderable:Xt,
isCompact:b,checked:function(){return R().isSelected},
hasLeadingLabel:function(){return!!A()},
labelClass:V,selectElementClass:W,disableHorizontalPadding:u})}),_.N(_.is,{when:function(){return R().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.N(_.O_,{labelRenderable:Xt,
isCompact:b,checked:function(){return R().isSelected},
hasLeadingLabel:function(){return!!A()},
labelClass:V,selectElementClass:W})}),_.N(_.is,{when:function(){return R().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.N(_.O_,{labelRenderable:Xt,
isCompact:b,checked:function(){return R().isSelected},
hasLeadingLabel:function(){return!!A()},
labelClass:V,selectElementClass:W,useCheckIcon:!0})}),_.N(_.F0,null,Xt))},
else:Xt}))},"bd");
_.GA.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.eu0=_.P(function(z){var l=z.data;var I=z.onTap;var b=z.onSwitch;var v=z.overrideDisabled;z=z.disableHorizontalPadding;var M=_.D(_.Br(function(){var f;return((f=DHu(H()))==null?void 0:f.switchedOnByDefault)||!1})),x=M.next().value,g=M.next().value;
M=_.D(_.Z_(!1,void 0,"ZHBkbb"));var G=M.next().value,u=M.next().value,Z=_.C("web_button_or_anchor_list_item"),H=function(){var f;if(!(f=l().switchButton)){var R=l();f=v==null?void 0:v();R={switchOnCommand:R.switchOnCommand,switchOffCommand:R.switchOffCommand,switchedOnByDefault:R.switchedOnByDefault,isDisabled:R.isDisabled,handleOnTapEventInParent:!Z,a11yLabelSwitchedOn:R.a11yLabelSwitchedOn,a11yLabelSwitchedOff:R.a11yLabelSwitchedOff};f!==void 0&&(R.isDisabled=f);f={switchButtonViewModel:R}}return f},
y=function(f){var R=DHu(H());
!R||R.isDisabled||l().ignoreTapUntilCommandCompletes&&G()||(I==null||I(f),MRu(R,x(),f,l().ignoreTapUntilCommandCompletes,u),g(!x()),b==null||b(x()))};
return _.N("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.N(_.GA,{data:function(){return{title:l().title,subtitle:l().attributedSubtitle,leadingImage:l().leadingImage,leadingAccessory:l().leadingAccessory,isDisabled:l().isDisabled}},
onTap:y,isToggled:Z?x:void 0,trailingAccessory:function(){return _.N(_.TS,{data:H},{switchButtonViewModel:function(f){return _.N(Sg0,{data:f.data,parentActive:x,handleOnTapEventInParent:!!I&&!Z,onTap:Z?y:void 0})}})},
disableHorizontalPadding:z}))},"cd");var w$_=_.P(function(z){var l=_.D(_.Br(function(){var v,M;return!!((v=z.data())==null?0:(M=v.initialState)==null?0:M.isToggled)})),I=l.next().value,b=l.next().value;
l=_.KK(function(){b(!I())});
return _.N("toggleable-list-item-view-model",{el:_.xl(_.AR(function(){return z.data().rendererContext})),
class:_.m9("toggleableListItemViewModelHost",z.className),"on:click":l},_.N(_.E,{cond:function(){if(I()){var v=z.data().toggledListItem;v=_.k(v,_.d5)}else v=z.data().defaultListItem,v=_.k(v,_.d5);return v},
then:function(v){return _.N(_.GA,{data:v,isToggled:I,ariaLabel:function(){var M=I()?z.data().toggledListItem:z.data().defaultListItem,x;M=(x=_.k(M,_.d5))==null?void 0:x.rendererContext;var g;return(g=_.k(M,_.YM))==null?void 0:g.label},
ariaPressed:function(){return I()}})}}))},"dd");var AsM=_.mY("DOWNLOAD",{},"Download"),Wi_=_.mY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),nhM=_.mY("RETRY",{},"Retry"),LiM=_.mY("PAUSE_DOWNLOADING",{},"Pause downloading"),Ucp=_.mY("RESUME_DOWNLOAD",{},"Resume download"),Gxu={text:AsM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},TD={text:Wi_,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},u4k={text:nhM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
NtQ={text:LiM,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Ev1={text:Ucp,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var aoM=_.P(function(z){var l=function(){var g=z.data();g=_.e9(g.rendererContext);var G;return(G=_.k(g,_.qv))==null?void 0:G.videoId},I=_.nK(function(g){var G=l(),u=y0t(z.data());
return G?_.wg(g,G):u?_.Am(g,u):"TRANSFER_STATE_UNKNOWN"}),b=_.F1(_.qDQ,l),v=_.nK(function(g){return _.kvQ(g,l(),y0t(z.data()))}),M=function(){return HLY(I(),b(),_.e9(z.data().rendererContext),!!y0t(z.data()))},x=function(){return v()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.N("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:x},_.N(_.E,{cond:function(){return!x()},
then:function(){return _.N(_.E,{cond:M,then:function(g){return _.N(_.qy,{each:g},function(G){return _.N(_.GA,{data:G,isCompact:z.isCompact,isMenuItem:z.isMenuItem,inPopup:z.inPopup,disableHorizontalPadding:z.disableHorizontalPadding})})}})}}))},"ed");
aoM.idomCompat=!0;_.VBu=_.P(function(z){var l=z.data;var I=z.isCompact;var b=z.hideSelectionTextChevron;var v=z.inPopup;var M=z.isOverlay;var x=z.disableHorizontalPadding;var g=function(){return fKp(l())&&(v==null?void 0:v())};
z={};return _.N("yt-list-view-model",{class:_.m9("ytListViewModelHost",(z.ytListViewModelHostKaiosSpatNav=iBQ&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",z.ytListViewModelCollectionThumbnailClass=function(){return Rdk(l())},z)),
role:function(){return g()?"menu":"list"},
style:_.XV({"max-height":function(){var G,u=(G=l())==null?void 0:G.visibleElementCount;if(u)return Rdk(l())?(u+.5)*48+"px":(u+.5)*40+"px"}})},_.N(_.TS,{data:function(){return l().listItems}},{listItemViewModel:function(G){return _.N(_.GA,{data:G.data,
isMenuItem:g,isCompact:I,hideSelectionTextChevron:b,inPopup:v,isOverlay:M,disableHorizontalPadding:x})},
toggleableListItemViewModel:function(G){return _.N(w$_,{data:G.data})},
downloadListItemViewModel:function(G){return _.N(aoM,{data:G.data,isMenuItem:g,isCompact:I,inPopup:v,disableHorizontalPadding:x})},
switchListItemViewModel:function(G){return _.N(_.eu0,{data:G.data,disableHorizontalPadding:x})}}))},"fd");
_.VBu.idomCompat=!0;var jIu=_.P(function(z){var l=z.data;var I=z.isOverlay;z={};return _.N("yt-course-perks-view-model",{class:_.m9("ytwCoursePerksViewModelHost",(z.ytwCoursePerksViewModelHostOverlay=I,z))},_.N("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",null,_.N(_.E,{cond:function(){return l().perks},
then:function(b){return _.N(_.VBu,{data:function(){return{listItems:b()}},
isCompact:!0,isOverlay:I})}})))},"gd");_.uO(jIu,"yt-course-perks-view-model",{props:{data:_.GH,isOverlay:_.GH}});_.uO(_.P(function(z){var l=z.data;return _.N("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.N("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.N(_.Rf,{text:function(){return l().progressSummary}})),_.N("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.N("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.XV({width:function(){return l().progressPercentage*100+"%"}})})))},"hd"),"yt-course-progress-view-model",{props:{data:_.mB}});var Jsu=_.P(function(z){var l={};return _.N("yt-progress-view-model",{class:_.m9("ytwProgressViewModelHost",(l.ytwProgressViewModelHostOverlay=_.Df(z.isOverlay,!1),l))},_.N(_.E,{cond:function(){return z.data().progressSummary},
then:function(I){return _.N("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.N(_.Rf,{text:I}))}}),_.N("div",{class:"ytwProgressViewModelHostProgressContainer"},_.N(_.E,{cond:function(){return z.data().leadingLabel},
then:function(I){return _.N("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.N(_.Rf,{text:I}))}}),_.N("div",{class:"ytwProgressViewModelHostProgressBar"},_.N("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(z.data().progressPercentage||0)*100+"%"}}))))},"id");var NS=_.P(function(z){var l=z.starNumber;var I=z.data;var b=function(){var v;return((v=I())==null?void 0:v.rating)||0};
return _.N(_.E,{cond:function(){return l()},
then:function(v){return _.N(_.Q7,null,_.N(_.is,{when:function(){return b()>=v()-.25}},function(){return _.N("div",{class:"ytStarRatingViewModelHostStar"},_.N(_.qt,{icon:"STAR_FILLED"}))}),_.N(_.is,{when:function(){return b()>=v()-.75}},function(){return _.N("div",{class:"ytStarRatingViewModelHostStar"},_.N(_.qt,{icon:"STAR_HALF"}))}),_.N(_.F0,null,function(){return _.N("div",{class:"ytStarRatingViewModelHostStar"},_.N(_.qt,{icon:"STAR_BORDER"}))}))}})},"jd"),zwI=_.P(function(z){z=z.data;
return _.N("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.N(NS,{starNumber:1,data:z}),_.N(NS,{starNumber:2,data:z}),_.N(NS,{starNumber:3,data:z}),_.N(NS,{starNumber:4,data:z}),_.N(NS,{starNumber:5,data:z}))},"kd");_.uO(_.P(function(z){var l=_.xC(z,{}).data;return _.N("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.N("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.N(_.Rf,{text:function(){var I;return(I=l())==null?void 0:I.title}})),_.N("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.N(_.E,{cond:function(){return l().starProgressViewModels},
then:function(I){return _.N("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.N(_.TS,{data:I},{progressViewModel:Jsu}))}}),_.N("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.N("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.N(_.Rf,{text:function(){var I;
return(I=l())==null?void 0:I.averageRatingLabel}})),_.N(_.E,{cond:function(){return l().zeroStateText},
then:function(I){return _.N("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.N(_.Rf,{text:I}))}}),_.N(_.E,{cond:function(){return l().starRatingViewModel},
then:function(I){return _.N("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.N(_.TS,{data:I},{starRatingViewModel:zwI}))}}),_.N("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.N(_.Rf,{text:function(){var I;
return(I=l())==null?void 0:I.totalRatingsCountLabel}})))))},"ld"),"yt-course-ratings-view-model",{props:{data:_.GH}});var lnn;lnn={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"}};_.In_=_.P(function(z){var l=_.VK("yt-learning-journey-loader-view-model"),I=_.KY();_.c8(function(){requestAnimationFrame(function(){var v;(v=I.lottieEl)==null||v.addEventListener("DOMLoaded",function(){var M;(M=z.onLottieLoaded)==null||M.call(z)})});
var b=z.data().browseEndpoint;b&&_.ae(b)});
return _.N("yt-learning-journey-loader-view-model",{class:_.m9("learningJourneyLoaderViewModelHost",z.className),"data-target-id":function(){var b;return((b=z.data)==null?void 0:b.call(z).targetId)||""},
el:l},_.N(_.A4,{className:_.m9("learningJourneyLoaderViewModelLoader",z.className),animationName:function(){return lnn.animationConfig.name},
data:lnn,animationRef:I}))},"md");_.uO(_.In_,"yt-learning-journey-loader-view-model",{props:{data:_.mB,className:_.GH,onLottieLoaded:_.GH}});var KpG=new Set,mHS=null;var viw=_.P(function(z){var l=void 0,I=function(){return z.data()},b=function(){var f=I();
var R=_.pG().resolve(_.MB(_.I2));f=R!=null&&R()?f.darkThemeColorPalette:f.lightThemeColorPalette;return{primaryTextColor:S2(f,0),secondaryTextColor:S2(f,1),optionColor:S2(f,2),backgroundColor:S2(f,3),videoBackgroundColor:S2(f,4)}},v=function(){return!!b().optionColor},M=_.D(_.Z_(-1,void 0,"FNv5Ne")),x=M.next().value,g=M.next().value,G=function(f){return I().correctAnswerIndex===f},u=function(){return x()!==-1};
M=_.D(_.Z_("",void 0,"LFzaYe"));var Z=M.next().value,H=M.next().value,y=function(f){return x()===I().correctAnswerIndex&&G(f)};
return _.N("learning-journey-quiz-view-model",{class:_.m9("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",z.className),style:_.XV({background:function(){return b().backgroundColor}})},_.N("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},Z),_.N(_.E,{cond:function(){return!!I().video},
then:function(){return _.N("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.XV({background:function(){return b().videoBackgroundColor}})},_.N(_.TS,{data:function(){return I().video}},{lockupViewModel:function(f){return _.N(_.sq,{data:f.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.N("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.N("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.N("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.N(_.E,{cond:function(){return!!I().aiGeneratedQuizLabel},
then:function(){return _.N("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.N(_.Rf,{text:function(){return I().aiGeneratedQuizLabel}}))}}),_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.XV({"align-items":function(){return I().overflowMenu?"start":"center"}})},_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.XV({"min-height":function(){return I().overflowMenu?"48px":"26px"}})},_.N("div",{class:"learningJourneyQuizYoututorText",
style:_.XV({color:function(){return b().primaryTextColor}})},_.N(_.Rf,{text:function(){return I().questionHeaderText}})))),_.N("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.XV({color:function(){return b().secondaryTextColor}})},_.N(_.Rf,{text:function(){var f=I();
return u()?f.explanationText:f.questionSubheaderText}}))),_.N("div",{role:"group",
class:_.m9("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.N(_.qy,{each:function(){return I().optionsData||[]}},function(f,R){var F={};
return _.N("button",{class:_.m9("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(F.learningJourneyQuizViewModelHostQuizHover=function(){return!u()},F.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=v,F.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return u()&&G(R())},F.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var Y;
if(Y=x()!==I().correctAnswerIndex)Y=R(),Y=x()===Y;return Y},F)),
"on:click":_.KK(function(){if(u())return!1;g(R());var Y,c;H(G(R())?((Y=I().successTitle)==null?void 0:Y.content)||"":((c=I().failureTitle)==null?void 0:c.content)||"");return!1}),
style:_.XV({background:"transparent"}),"aria-description":function(){var Y,c;return u()?G(R())?(Y=I().successTitle)==null?void 0:Y.content:(c=I().failureTitle)==null?void 0:c.content:""},
"aria-disabled":u,el:_.xl(function(Y){_.ct(271905,Y,l,function(c){l=c})}),
"client-ve-type":271905},_.N("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.N(_.Rf,{text:f.optionText}),_.N(_.E,{cond:function(){var Y=R(),c;if(c=u())c=x()===Y||G(Y);return c},
then:function(){return _.N(bFu,{isOptionCorrect:G,optionIndex:R,isOptionSelectedAndCorrect:y,colors:b})}})))}),_.N(_.E,{cond:u,
then:function(){return _.N("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.N("div",{class:"learningJourneyQuizYoututorExplanationText"},_.N(_.Rf,{text:function(){return I().explanationHeaderText}})),_.N(_.Rf,{text:function(){return I().optionsData[x()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"nd"),bFu=_.P(function(z){var l={};
return _.N("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.m9("learningJourneyQuizYoututorOptionIconTrailing",(l.learningJourneyQuizViewModelHostQuizPulse=function(){return z.isOptionSelectedAndCorrect(z.optionIndex())},l.learningJourneyQuizYoututorIconIncorrectFill=function(){return!z.isOptionSelectedAndCorrect(z.optionIndex())&&!z.isOptionCorrect(z.optionIndex())},l.learningJourneyQuizYoututorIconCorrectFill=function(){return z.isOptionCorrect(z.optionIndex())},
l))},_.N("path",{d:function(){var I=z.optionIndex();
return z.isOptionCorrect(I)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"od");
viw.idomCompat=!0;var MvA;_.p1z=_.P(function(z){var l=null,I=null,b=null,v=function(){return z.data()},M=function(){var A=v();
var W=_.pG().resolve(_.MB(_.I2));A=W!=null&&W()?A.darkThemeColorPalette:A.lightThemeColorPalette;return{primaryTextColor:dn(A,0),secondaryTextColor:dn(A,1),optionColor:dn(A,2),backgroundColor:dn(A,3),videoBackgroundColor:dn(A,4)}},x=function(){return!!M().optionColor},g=_.D(_.Z_(-1,void 0,"QDu8Oe")),G=g.next().value,u=g.next().value,Z=function(A){return G()===A},H=function(A){return v().correctAnswerIndex===A},y=function(){return G()!==-1},f=function(){return G()===v().correctAnswerIndex},R=function(){var A=
v(),W=y(),L=f();
return W?L?A.successTitle:A.failureTitle:A.questionHeaderText},F=function(){var A=y(),W=f();
return A?W?264685:264684:264683},Y=function(){var A=v();
return y()?A.explanationText:A.questionSubheaderText},c=function(){return!!v().video},d=function(A){return f()&&H(A)},V=_.KK(function(){u(-1);
return!1});
return _.N(_.E,{cond:function(){return v().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.N(viw,{data:function(){return v()}})},
else:function(){return _.N("learning-journey-quiz-view-model",{class:_.m9("learningJourneyQuizViewModelHost",z.className),style:_.XV({background:function(){return M().backgroundColor}})},_.N(_.E,{cond:c,
then:function(){return _.N("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.XV({background:function(){return M().videoBackgroundColor}})},_.N(_.TS,{data:function(){return v().video}},{lockupViewModel:function(A){return _.N(_.sq,{data:A.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.N("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.N("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.N("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.N(_.E,{cond:function(){return!!v().aiGeneratedQuizLabel},
then:function(){return _.N("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.N(_.Rf,{text:function(){return v().aiGeneratedQuizLabel}}))}}),_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.XV({"align-items":function(){return v().overflowMenu?"start":"center"}})},_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.XV({"min-height":function(){return v().overflowMenu?"48px":"26px"}})},_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.xl(function(A){_.ct(F(),A,l,function(W){l=W})}),
style:_.XV({color:function(){return M().primaryTextColor}}),
"client-ve-type":F},_.N(_.Rf,{text:R}))),_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.N(_.E,{cond:y,then:function(){return _.N("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.xl(function(A){_.ct(264687,A,I,function(W){I=W})}),
"on:click":V,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.N("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.XV({fill:function(){return M().primaryTextColor}})},_.N("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"})))}}),
_.N(_.TS,{data:function(){return v().overflowMenu}},{buttonViewModel:function(A){return _.N(_.h4,{data:A.data})}}))),_.N("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.xl(function(A){_.ct(264688,A,b,function(W){b=W})}),
style:_.XV({color:function(){return M().secondaryTextColor}}),
"client-ve-type":264688},_.N(_.Rf,{text:Y}))),_.N("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.N(_.qy,{each:function(){return v().optionsData||[]}},function(A,W){var L={};
return _.N("button",{class:_.m9("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(L.learningJourneyQuizViewModelHostQuizHover=function(){return!y()},L.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=x,L.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return d(W())},L.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!f()&&Z(W())},L.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return y()&&
!Z(W())},L)),
"on:click":_.KK(function(){if(y())return!1;u(W());return!1}),
style:_.XV({background:function(){var lH=W();return y()&&Z(lH)?"":x()?M().optionColor:"transparent"}}),
"aria-disabled":y,"client-ve-type":264686},_.N("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.N(_.E,{cond:y,then:function(){return _.N(MvA,{isOptionCorrect:H,optionIndex:W,isOptionSelectedAndCorrect:d,colors:M})}}),_.N(_.Rf,{text:A.optionText})))})))))}})},"pd");
MvA=_.P(function(z){var l={};return _.N("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var I=z.optionIndex();return z.isOptionCorrect(I)?"0 0 24 24":"0 -960 960 960"},
class:_.m9("learningJourneyQuizViewModelHostQuizOptionIconLeading",(l.learningJourneyQuizViewModelHostQuizPulse=function(){return z.isOptionSelectedAndCorrect(z.optionIndex())},l)),
style:_.XV({fill:function(){return z.colors().primaryTextColor}})},_.N("path",{d:function(){var I=z.optionIndex();
return z.isOptionCorrect(I)?"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"}}))},"qd");
_.p1z.idomCompat=!0;_.uO(_.p1z,"learning-journey-quiz-view-model",{props:{data:_.mB,className:_.mB}});var DP4=_.P(function(z){var l=_.D((0,_.B9_)(function(){var x;return{targetId:(x=z.data().config)==null?void 0:x.suspenseKey,contents:[z.data()]}})).next().value,I=_.pG().resolve(_.DQ),b=function(){var x=l().contents.length>0?l().contents[0]:void 0;
return x==null?void 0:x.config},v=function(){var x;
return(x=b())==null?void 0:x.entityTriggerConfig},M=_.F1(df5,function(){var x,g;
return(g=(x=v())==null?void 0:x.entityKey)!=null?g:""});
_.Te(function(){var x,g,G,u=(G=Number((x=v())==null?void 0:(g=x.invalidationTimestamp)==null?void 0:g.seconds))!=null?G:0,Z,H,y;if(((y=Number((Z=M())==null?void 0:(H=Z.lastUpdated)==null?void 0:H.seconds))!=null?y:0)>u){var f;(x=(f=b())==null?void 0:f.continuationCommand)&&I.resolveCommand(x)}},"FaC8z");
return _.N("yt-suspense-view-model",{class:_.m9("ytSuspenseViewModelHost")},_.N(_.TS,{data:function(){var x;return(x=b())==null?void 0:x.contents}},{lockupViewModel:_.sq}))},"rd");var xP0=_.P(function(z){var l=_.xC(z,{palette:void 0,isLastItem:!1}),I=l.palette,b=l.isLastItem,v=function(){return z.data().isHighlighted},M=function(){var G;
return Btp((G=I())==null?void 0:G.iconDisabledColor)},x=function(){var G;
return Btp((G=I())==null?void 0:G.primaryTitleColor)},g=function(){var G;
return Btp((G=I())==null?void 0:G.secondaryTitleColor)};
l={};return _.N("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.xl(_.AR(function(){return z.data().rendererContext}))},_.N(_.TS,{data:function(){return z.data().thumbnail}},{thumbnailViewModel:_.iP}),_.N("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.N("div",{class:_.m9("ytMacroMarkerListItemViewModelTimeDescription",(l.ytMacroMarkerListItemViewModelHighlighted=v,l)),
style:_.XV({"background-color":function(){return v()?x():M()},
color:function(){return v()?"":g()}})},_.N(_.Rf,{text:function(){return z.data().timestamp}})),_.N("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.XV({"background-color":function(){return b()?"transparent":M()}})}),_.N("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(v()?x():g())}},_.N(_.Rf,{text:function(){return z.data().title}}))))},"sd");_.E_=_.P(function(z){function l(pu){d("transform:translateX("+(_.sZ("HTML_DIR")==="rtl"?"":"-")+pu+"px)")}
function I(pu){return Math.min(Math.max(pu,0),c()-lH())}
function b(){var pu=W()+R1();return v()?(Math.round(lH()/pu)||1)*pu:0}
var v=function(){return z.data().items||[]},M=function(){return z.data().previousButton},x=function(){return z.data().nextButton},g=function(){var pu,lu;
return(lu=(pu=z.disableArrows)==null?void 0:pu.call(z))!=null?lu:!1},G=function(){var pu;
return!((pu=z.forceNarrowLayout)==null||!pu.call(z))},u=_.kz(function(){var pu;
return!((pu=z.centerAlignItems)==null||!pu.call(z))&&c()<=lH()},void 0,"Uto0kc"),Z=_.VK("horizontal-shelf-view-model"),H=_.VK("div"),y=_.D(_.Z_(0,void 0,"G0xZB")),f=y.next().value,R=y.next().value;
y=_.D(_.Z_(0,void 0,"kqCYFf"));var F=y.next().value,Y=y.next().value,c=F;F=_.D(_.Z_("",void 0,"Hh6Uye"));y=F.next().value;var d=F.next().value;F=_.D(_.Z_(0,void 0,"yMGBKb"));var V=F.next().value,A=F.next().value,W=V;F=_.D(_.Z_(0,void 0,"VChthd"));V=F.next().value;var L=F.next().value,lH=V;F=_.D(_.Z_(!1,void 0,"qJlhhe"));var Gk=F.next().value,uH=F.next().value;F=_.D(_.Z_(0,void 0,"x7H94"));V=F.next().value;var Xt=F.next().value,R1=V;F=_.D(_.Z_(0,void 0,"ksuUee"));var H7=F.next().value,P7=F.next().value;
F=_.D(_.Z_("50%",void 0,"uxCxde"));var o1=F.next().value,z_=F.next().value,dw=function(){var pu,lu=(pu=z.data())==null?void 0:pu.responsiveContainerConfiguration,k0,E8;return lu?bBH(lu==null?void 0:lu.responsiveSize):(E8=(k0=z.sizing)==null?void 0:k0.call(z))!=null?E8:"STANDARD"};
F=_.kz(function(){return!g()&&f()>0},void 0,"XK60w");
V=_.kz(function(){return!g()&&f()<c()-lH()},void 0,"D22LVd");
var Ej=function(){R(I(f()-b()));l(f())},JG=function(){R(I(f()+b()));
l(f())},yu=function(){Z.value!==null&&Y0()},uu;
_.Sm(function(){Y0();window.ResizeObserver?(uu=new ResizeObserver(_.S1(yu,0)),uu.observe(Z.value)):window.addEventListener("resize",yu)});
_.cb(function(){if(window.ResizeObserver){var pu;(pu=uu)==null||pu.disconnect()}else window.removeEventListener("resize",yu)});
var Y0=function(){var pu=Z.value.clientWidth,lu=z.includeMargin!==void 0?z.includeMargin():!1,k0;var E8=z.hasPeek!==void 0?z.hasPeek():!((k0=z.data())==null||!k0.hasPeek);pu=_.Vo({containerWidth:pu,hasPeek:E8,sizing:dw(),marginSettings:lu?G()?4:1:0});Xt(pu.gutter);P7(pu.margin);A(pu.itemWidth);uH(pu.maxContainerWidth<528||G());L(pu.maxContainerWidth);v()&&Y((pu.itemWidth+pu.gutter)*v().length-pu.gutter);if(v()){var R_;if(((R_=z.thumbnailAspectRatio)==null?void 0:R_.call(z))!==void 0){var bK;z_(W()/
gf7((bK=z.thumbnailAspectRatio)==null?void 0:bK.call(z))/2+"px")}else z_("50%")}},iK={},a_={};
return _.N("horizontal-shelf-view-model",{class:_.m9("ytwHorizontalShelfViewModelHost",z.className),el:Z},_.N(_.E,{cond:function(){var pu;return z.data().header&&!((pu=z.horizontalShelfExperiments)==null?0:pu.call(z).hideHeader)},
then:function(){return _.N("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.XV({width:function(){return lH()+"px"},
padding:function(){return"0 "+H7()+"px"}})},_.N(_.TS,{data:function(){return z.data().header}},{sectionHeaderViewModel:function(pu){return _.N(_.rj,{data:pu.data,
disableHorizontalPadding:!0,forceSmallLayout:Gk,useResponsiveLayout:!0})}}))}}),_.N("div",{class:_.m9("ytwHorizontalShelfViewModelOuterContainer",(iK.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return u()},iK)),
style:_.XV({"margin-top":function(){var pu,lu=z.data().header&&!((pu=z.horizontalShelfExperiments)==null?0:pu.call(z).hideHeader),k0;return(((k0=z.ensureMarginTop)==null?0:k0.call(z))&&!lu?12:0)+"px"}})},_.N("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.XV({width:function(){return lH()+"px"},
padding:function(){return"0 "+H7()+"px"},
overflow:function(){return g()?"auto":"hidden"}})},_.N("div",{class:_.m9("ytwHorizontalShelfViewModelItems",(a_.ytwHorizontalShelfViewModelCenterAlignItems=function(){return u()},a_)),
el:H,style:y},_.N(_.TS,{data:v},{macroMarkerListItemViewModel:function(pu,lu){return _.N("div",{style:_.XV({width:function(){return W()+"px"},
"margin-right":function(){return(lu()===v().length-1?0:R1())+"px"}})},_.N(xP0,{data:pu.data,
palette:_.Df(z.palette),isLastItem:function(){return lu()===v().length-1}}))},
lockupViewModel:function(pu,lu){var k0=pu.data;return _.N("div",{style:_.XV({width:function(){return W()+"px"},
"margin-right":function(){return(lu()===v().length-1?0:R1())+"px"}})},_.N(_.sq,{data:k0,
containerType:4,sizing:dw,protectBackground:z.protectBackground,thumbnailFixedWidth:function(){return XNG(k0())+"px"},
thumbnailTargetWidth:function(){return XNG(k0())}}))},
suspenseViewModel:function(pu,lu){return _.N("div",{style:_.XV({width:function(){return W()+"px"},
"margin-right":function(){return(lu()===v().length-1?0:R1())+"px"}})},_.N(DP4,{data:pu.data}))}}))),_.N(_.E,{cond:F,
then:function(){return _.N("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.XV({top:function(){return o1()}})},_.N(_.TS,{data:M},{buttonViewModel:function(pu){return _.N(_.h4,{data:pu.data,
onClick:Ej})}}))}}),_.N(_.E,{cond:V,
then:function(){return _.N("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.XV({top:function(){return o1()}})},_.N(_.TS,{data:x},{buttonViewModel:function(pu){return _.N(_.h4,{data:pu.data,
onClick:JG})}}))}})))},"td");
_.E_.idomCompat=!0;var OF_=_.P(function(z){var l=function(){return z.data().targetId||""},I=function(){var F;
return((F=z.data())==null?void 0:F.expansionEntityKey)||""},b=_.F1(_.UW,I),v=!0,M=function(){var F;
return((F=b())==null?void 0:F.value)===l()},x=function(F){_.pE(_.cU("stringEntity",I(),{key:I(),
value:F?l():""}))};
_.c8(function(){v=!1;z.data().isExpanded&&x(!0)});
var g=function(){if(M()){var F=!0;z.onCollapse!==void 0&&(F=z.onCollapse());F&&x(!1)}else x(!0)},G=_.KK(g),u=function(){var F;
return(((F=z.accordionStyle)==null?void 0:F.call(z))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Z=_.VK("div"),H=function(){var F,Y;
return(Y=(F=_.k(z.data().rendererContext,_.YM))==null?void 0:F.label)!=null?Y:""},y=function(){var F,Y;
return{disabled:(F=z.hideIfNotExpanded)==null?void 0:F.call(z),ariaHidden:(Y=z.hideIfNotExpanded)==null?void 0:Y.call(z)}},f={},R={};
return _.N("yt-accordion-item-view-model",{class:_.m9("ytAccordionItemViewModelHost",z.className,(f.ytAccordionItemViewModelExpanded=function(){return M()},f.ytAccordionItemViewModelHidden=function(){var F;
return(F=z.hideIfNotExpanded)==null?void 0:F.call(z)},f.ytAccordionItemViewModelMini=u,f)),
"data-target-id":l},_.N("div",{class:"ytAccordionItemViewModelContainer"},_.N("div",{class:"ytAccordionItemViewModelLeftSection","on:click":G,title:H,"aria-hidden":function(){var F;return(F=z.hideIfNotExpanded)==null?void 0:F.call(z)}},_.N(_.Rf,{text:function(){return z.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:H})),_.N("div",{class:"ytAccordionItemViewModelRightSection"},_.N(_.TS,{data:function(){return M()?z.data().expandButton:z.data().collapseButton}},{buttonViewModel:function(F){return _.N(_.h4,{data:F.data,
className:"ytAccordionItemViewModelToggleButton",onClick:g,buttonOverrides:y})}}))),_.N("div",{class:"ytAccordionItemViewModelContainer"},_.N("div",{class:_.m9("ytAccordionItemViewModelContent",(R.ytAccordionItemViewModelExpandedSubtitle=function(){return M()},R)),
el:Z,style:_.XV({"max-height":function(){return v?"auto":M()?Z.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!M()}},_.N(_.E,{cond:function(){return!u()},
then:function(){return _.N(_.Rf,{text:function(){return z.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.N(_.TS,{data:function(){return z.data().content}},{horizontalShelfViewModel:function(F){return _.N(_.E_,{data:F.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ud");_.gin=_.P(function(z){var l=_.D((0,_.B9_)(z.data)).next().value,I=function(){return z.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},b=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},v=_.D(_.Z_(!0,void 0,"AbejLb")),M=v.next().value,x=v.next().value,g=function(){return b()&&M()},G=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){x(!M())}}},u=_.KK(function(){l().onTitleTap&&_.ae(l().onTitleTap||{})});
v={};return _.N("yt-accordion-view-model",{class:_.m9("ytAccordionViewModelHost",(v.ytAccordionViewModelMinimized=function(){return g()},v)),
"data-target-id":function(){return z.data().targetId||""}},_.N(_.E,{cond:function(){return b()||!!l().title},
then:function(){return _.N("div",{class:"ytAccordionViewModelHeader"},_.N("div",{class:"ytAccordionViewModelTitleSection"},_.N("div",{class:"ytAccordionViewModelTitleWrapper"},_.N(_.E,{cond:function(){return!!z.data().headerIcon},
then:function(){return _.N(_.qt,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var Z;return(Z=z.data().headerIcon)==null?void 0:Z.iconType}})}}),_.N("div",{class:"ytAccordionViewModelTitle",
"on:click":u},_.N(_.Rf,{className:"ytAccordionViewModelTitleText",text:function(){return l().title}})))),_.N("div",{class:"ytAccordionViewModelButtonSection"},_.N(_.E,{cond:b,
then:function(){return _.N(_.PZ,{data:G,iconName:function(){return g()?"chevron_down":"chevron_collapse"}})}})))}}),_.N("div",{class:"ytAccordionViewModelContent"},_.N(_.TS,{data:function(){return l().contents}},{accordionItemViewModel:function(Z){return _.N(OF_,{data:Z.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:g,onCollapse:function(){return b()?(x(!0),!1):!0}})}})),_.N("div",null,_.N(_.E,{cond:function(){return!b()&&(!!l().disclaimerFooter||!!l().footer)},
then:function(){return _.N("div",{class:"ytAccordionViewModelFooter"},_.N(_.Rf,{text:function(){return l().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.N(_.TS,{data:function(){return z.data().footer}},{flexibleActionsViewModel:function(Z){return _.N(_.xJ,{data:Z.data,
layout:0})}}))}})))},"vd");_.uO(_.gin,"yt-accordion-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=null,I=null,b,v=(b=_.pG().resolve(_.MB(_.I2)))==null?void 0:b(),M=_.D(_.Z_(!1,void 0,"h3atzd"));b=M.next().value;var x=M.next().value;M=_.D(_.Z_(!0,void 0,"UTh8db"));var g=M.next().value,G=M.next().value,u=_.VK("textarea",function(Y){_.ct(264503,Y,l,function(c){l=c})}),Z=function(Y){x(!0);
Y={learningJourneyFormData:{query:Y}};_.ae(z.data().searchEndpoint||{},{form:{formData:Y}});return!1},H=_.KK(function(Y){Y.target.closest("button-view-model")&&x(!0)});
M=_.KK(function(){G(u.value.value.length===0)});
var y=_.KK(function(Y){if(Y.key==="Enter"&&!Y.shiftKey&&!g()){var c=Y.target;Y.preventDefault();Z(c.value)}}),f={},R={},F={};
return _.N("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.N("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.N(_.pK,{data:function(){return z.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.N("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.N("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.N("div",{class:_.m9("ytLearningJourneyZeroStateSearchBar",(f.ytLearningJourneyZeroStateSearchBarDark=v,f))},_.N("textarea",{class:_.m9("ytLearningJourneyZeroStateTextInput",(R.ytLearningJourneyZeroStateTextInputDark=v,R)),el:u,"on:keyup":M,"on:keydown":y,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.N("div",{class:_.m9("ytLearningJourneyZeroStateSearchButtonContainer",(F.ytLearningJourneyZeroStateSearchButtonContainerDark=v,F))},_.N(_.h4,{data:function(){return _.k(z.data().searchButton,_.N1)},
className:"search-button",onClick:function(){return Z(u.value.value)},
buttonOverrides:function(){return{disabled:g(),style:v?"mono-inverse":"mono",size:"XL"}}}))),_.N(_.E,{cond:function(){return!!z.data().errorBanner},
then:function(){return _.N("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.xl(function(Y){_.ct(264617,Y,I,function(c){I=c})})},_.N(_.TS,{data:function(){return z.data().errorBanner}},{alertBannerViewModel:function(Y){return _.N(_.Tzw,{data:Y.data,
"client-ve-type":264617})}}))}})),_.N(_.E,{cond:b,
then:function(){return _.N("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.N(_.TS,{data:function(){return z.data().loader}},{learningJourneyLoaderViewModel:function(Y){return _.N(_.In_,{data:Y.data})}}))},
else:function(){return _.N("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.N(_.E,{cond:function(){return!!z.data().learningJourneyShelf},
then:function(){return _.N("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.N("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return z.data().learningJourneySectionTitle}),_.N(_.TS,{data:function(){return z.data().learningJourneyShelf}},{horizontalShelfViewModel:function(Y){return _.N(_.E_,{data:Y.data,
centerAlignItems:!0})}}))}}),_.N("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.N("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return z.data().suggestedJourneySectionTitle}),_.N("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":H},_.N(_.TS,{data:function(){return z.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(Y){return _.N(_.xJ,{data:Y.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"wd"),"yt-learning-journey-zero-state",{props:{data:_.mB}});var Gj4=_.P(function(z){var l=z.data;return _.N("ytvl-live-leaderboard-item-action-content-view-model",{class:_.m9("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.N(_.Rf,{text:function(){var I;return(I=l())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.N(_.TS,{data:function(){return l().actionButton}},{buttonViewModel:function(I){return _.N(_.h4,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"xd");var Ne0=_.P(function(z){var l=z.data;return _.N("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.m9("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.N(_.Rf,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=l())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.N(_.TS,{data:function(){return l().badge}},{buttonViewModel:function(I){return _.N(_.h4,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"yd");_.uO(_.P(function(z){var l=z.data;return _.N("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.N("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.N(_.Rf,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=l())==null?void 0:I.rank}})),_.N("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz})),_.N("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.N(_.TS,{data:function(){return l().content}},{liveLeaderboardItemChannelContentViewModel:Ne0,
liveLeaderboardItemActionContentViewModel:Gj4})),_.N(_.Rf,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=l())==null?void 0:I.points}}))},"zd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;return _.N("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.N(_.Rf,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,b;return(I=l())==null?void 0:(b=I.ranking)==null?void 0:b.rank}}),_.N("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz})),_.N(_.Rf,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,b;return(I=l())==null?void 0:(b=I.channelContent)==null?void 0:b.channelName}}),_.N(_.Rf,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=l())==null?void 0:I.points}}))},"Ad"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.mB}});var Ei_=_.P(function(z){z=_.xC(z,{wrapper:!1}).wrapper;return _.N(_.E,{cond:z,then:function(){return _.N("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.N("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.N("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Bd");
Ei_.idomCompat=!0;var up0=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ZFn=_.P(function(z){var l=z.data;var I=_.xl(),b=_.kz(function(){return l().command},void 0,"fyYsT");
_.Te(function(){b()&&_.nE(b(),{form:{element:I.value}})},"B0nxdb");
return _.N("div",{el:I,class:"YtQrCodeRendererHostContainer"},_.N(_.E,{cond:function(){return l().qrCodeImage},
then:function(v){return _.N(_.pK,{data:v,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.N(_.E,{cond:function(){return l().spinner},
then:function(){return _.N(Ei_,null)}})}}),_.N(_.E,{cond:function(){return l().label},
then:function(v){return _.N(_.Rf,{text:v,className:"YtQrCodeRendererHostLabel"})}}),_.N(_.E,{cond:function(){return l().labels},
then:function(v){return _.N("div",{class:"YtQrCodeRendererHostLabels"},_.N(_.qy,{each:v},function(M){return _.N(_.Rf,{text:M})}))}}))},"Dd");_.uO(_.P(function(z){var l=z.data;var I=_.kz(function(){return l().qrEntityKey},void 0,"M0PrY"),b=_.kz(function(){return l().deleteEntityOnDismiss},void 0,"QZa4g"),v=_.kz(function(){return l().command},void 0,"wEOxUe"),M=_.F1(psf,I);
z=_.kz(function(){return l().qrCodeImage},void 0,"UO5oub");
var x=_.kz(function(){return l().style&&up0.includes(l().style)},void 0,"Op9kZd"),g=_.ps({visibilityCallback:function(G){G&&v()&&_.nE(v())},
showOption:{calledOnce:!0,state:"visible"}});_.Sm(function(){_.cb(function(){b()&&I()&&_.M8().dispatch(_.cU("qrCodeEntity",I()))})});
return _.N("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.xl(g)},_.N(_.E,{cond:x,then:function(){return _.N(_.E,{cond:M,then:function(G){return _.N(ZFn,{data:G})}})}}),_.N(_.E,{cond:z,
then:function(G){return _.N(_.pK,{data:G,alt:""})}}))},"Cd"),"yt-qr-code-renderer",{props:{data:_.mB}});var yF_=_.P(function(z){var l=function(){return _.aD(1728053247&(z.barColor!==void 0?qa(z.barColor()):4278190080))};
return _.N("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.N(HF_,{animationDelay:0,percentWidth:100,barColor:function(){return l()}}),_.N("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.N("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+l()}})),_.N(HF_,{animationDelay:0,
percentWidth:100,barColor:function(){return l()}}),_.N(HF_,{animationDelay:600,
percentWidth:60,barColor:function(){return l()}}))},"Ed"),HF_=_.P(function(z){return _.N("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+z.percentWidth()+"%"}},_.N("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var l=z.animationDelay(),I=z.barColor();return"animation-delay:"+l+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+I+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Fd");var fnu;_.Cbn=_.P(function(z){function l(Y){x(Y)}
var I=z.data;var b=_.VK("yt-video-overview-view-model"),v=_.z1("div");z=_.D(_.Z_(-1,void 0,"qaDSu"));var M=z.next().value,x=z.next().value;z=_.D(_.Z_(0,void 0,"Vz681c"));var g=z.next().value,G=z.next().value,u={},Z=_.F1(qax,function(){return I().asyncDataEntityKey}),H=function(){var Y;
if((Y=Z())==null?0:Y.videoOverviewViewModel){var c;return _.k((c=Z())==null?void 0:c.videoOverviewViewModel,omI)}return I()};
_.Sm(function(){G(Math.min((b.value.clientWidth-24)/4-8,72))});
var y=function(Y){x(Y);(v==null?0:v.value)&&v.value.children[Y]&&v.value.children[Y].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
wMQ(b,function(){var Y;if((Y=H())==null||!Y.inlinePlaybackEndpoint)return null;var c;Y=u==null?void 0:(c=u.thumbnailElRef)==null?void 0:c.value;if(!Y)return null;var d;c=(d=H())==null?void 0:d.inlinePlaybackEndpoint;d=_.k(c,pG4);return{multipleVideoPreviewData:{data:(d==null?0:d.playerDescriptors)&&(d==null?0:d.playerDescriptors.length)?d.playerDescriptors:[],thumbnailElement:Y,trackingParams:"test",callbacks:{onPlaybackStarted:y},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var f=function(){var Y;return((Y=H())==null?void 0:Y.headerSubtext)!==void 0?!0:!1},R=function(){var Y,c=qa((Y=H())==null?void 0:Y.titleColor);
return c?"color: "+_.aD(c)+";":void 0},F=function(){var Y,c=qa((Y=H())==null?void 0:Y.subtextColor);
return c?"color: "+_.aD(c)+";":void 0};
return _.N("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:b,style:function(){var Y,c=qa((Y=H())==null?void 0:Y.backgroundColor);return c?"background-color: "+_.aD(c)+";":void 0}},_.N(_.E,{cond:function(){var Y;
return(Y=H())==null?void 0:Y.isLoading},
then:function(){return _.N(yF_,{barColor:function(){var Y;return(Y=H())==null?void 0:Y.titleColor}})},
else:function(){return _.N(_.xP,null,_.N("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.N("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return R()}},_.N(_.Rf,{text:function(){var Y;
return(Y=H())==null?void 0:Y.headerText}})),_.N(_.E,{cond:f,
then:function(){return _.N("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.N("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return F()}},_.N(_.qt,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.N("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return F()}},_.N(_.Rf,{text:function(){var Y;
return(Y=H())==null?void 0:Y.headerSubtext}})))}})),_.N("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.N(_.TS,{data:function(){var Y;
return(Y=H())==null?void 0:Y.thumbnail}},{thumbnailViewModel:function(Y){return _.N(_.iP,{data:Y.data,
aspectRatio:0,playbackRef:$IQ(u)})}})),_.N(_.E,{cond:function(){var Y,c,d,V;
return((Y=H())==null?void 0:(c=Y.listItems)==null?void 0:c.length)!==void 0&&((d=H())==null?void 0:(V=d.listItems)==null?void 0:V.length)>0?!0:!1},
then:function(){return _.N("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:v},_.N(_.qy,{each:function(){var Y;return(Y=H())==null?void 0:Y.listItems}},function(Y,c){return _.N(fnu,{image:Y.image,
index:c,isSelected:function(){return c()===M()},
onClick:l,itemWidth:g})}))}}),_.N("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.N("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return R()}},_.N(_.Rf,{text:function(){var Y,c,d,V,A,W,L;
return(L=(Y=H())==null?void 0:(c=Y.listItems)==null?void 0:(d=c[M()])==null?void 0:d.headline)!=null?L:(V=H())==null?void 0:(A=V.listItems)==null?void 0:(W=A[0])==null?void 0:W.headline}})),_.N("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return F()}},_.N(_.Rf,{text:function(){var Y,c,d,V,A,W,L;
return(L=(Y=H())==null?void 0:(c=Y.listItems)==null?void 0:(d=c[M()])==null?void 0:d.subtext)!=null?L:(V=H())==null?void 0:(A=V.listItems)==null?void 0:(W=A[0])==null?void 0:W.subtext}}))))}}))},"Gd");
fnu=_.P(function(z){var l=z.image;var I=z.itemWidth;var b=z.index;var v=z.isSelected;var M=z.onClick;z=_.KK(function(){b!==void 0&&M!==void 0&&M(b());return!1});
var x={};return _.N("div",{class:_.m9("ytGenAiVideoOverviewViewModelCarouselItem",(x.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return v==null?void 0:v()},x)),
style:function(){return"width: "+I()+"px;"},
"on:click":z},_.N(_.pK,{data:l,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.N(_.E,{cond:function(){return v==null?void 0:v()},
then:function(){return _.N("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.N("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Hd");
_.Cbn.idomCompat=!0;_.uO(_.Cbn,"yt-video-overview-view-model",{props:{data:_.mB}});_.kjI=_.P(function(z){var l=z.data;var I=z.topbarOffset;var b,v=((b=_.pG().resolve(_.MB(_.I2)))==null?void 0:b())||!1;return _.N("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var M=l();var x,g,G=v?(x=M.config)==null?void 0:x.darkThemeBackgroundColor:(g=M.config)==null?void 0:g.lightThemeBackgroundColor;M=G?_.Ur(G):void 0;M="background-color: "+M+";";I!==void 0&&(M+="top: -"+I()+"px;");return M},
"aria-hidden":!0},_.N(_.E,{cond:function(){var M,x,g;return!!((M=l().backgroundImageConfig)==null?0:(x=M.image)==null?0:(g=x.sources)==null?0:g.length)},
then:function(){return _.N(_.pK,{data:function(){var M;return(M=l().backgroundImageConfig)==null?void 0:M.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.N("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+iLH(v,l().gradientColorConfig)+";"}}))},"Id");
_.kjI.idomCompat=!0;var up=_.P(function(z){var l=z.className;var I=z.data;var b=z.isOverlay;var v=z.maxLinesOverride;var M=z.useMediumText;var x=function(){return I().alwaysShowTruncationText},g=function(){return I().truncationText},G=function(){return M!==void 0&&M()?"medium":"small"},u=function(){return b!==void 0&&b()?"overlay":"default"},Z=function(){var R,F;
return(F=(R=_.k(I().rendererContext,_.YM))==null?void 0:R.label)!=null?F:""};
z=_.D(_.Z_(!1,void 0,"OKr1o"));var H=z.next().value,y=z.next().value;z=_.KK(function(){I().expandOnTap&&y(!H());return!1});
var f={};return _.N("yt-description-preview-view-model",{el:_.xl(_.AR(function(){return I().rendererContext})),
class:_.m9("ytDescriptionPreviewViewModelHost",l,(f.ytDescriptionPreviewViewModelClickable=function(){var R;return!((R=_.k(I().rendererContext,Cwx))==null||!R.onTap)},f.ytDescriptionPreviewViewModelIsOverlay=b,f)),
"on:click":z},_.N(_.E,{cond:function(){return I().description},
then:function(R){return _.N(_.E,{cond:H,then:function(){var F={};return _.N("div",{class:_.m9("ytDescriptionPreviewViewModelDescription",(F.ytDescriptionPreviewViewModelDescriptionMediumText=M,F))},_.N(_.Rf,{text:R}))},
else:function(){return _.N(B__,{text:R,alwaysShowTruncationText:x,truncationText:g,maxLines:function(){var F;return(F=v==null?void 0:v())!=null?F:I().maxLines},
textStyle:u,accessibilityLabel:Z,textSize:G})}})}}))},"Jd");
up.idomCompat=!0;var Rwz=_.P(function(z){var l=z.data;var I=z.isOverlay;return _.N("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.N("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.N(_.TS,{data:function(){return l().header}},{sectionHeaderViewModel:function(b){return _.N(_.rj,{data:b.data,
isOverlay:I})}})),_.N("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.N(_.TS,{data:function(){return l().channelInfoButtons}},{flexibleActionsViewModel:_.xJ})),_.N("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.N(_.TS,{data:function(){return l().description}},{descriptionPreviewViewModel:function(b){return _.N(up,{data:b.data,
isOverlay:I})}})))},"Kd");
Rwz.idomCompat=!0;var mP0=_.P(function(z){var l=z.data;var I={};return _.N("factoid-view-model",{class:_.m9("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=z.isOverlay,I))},_.N(_.Rf,{text:function(){return l().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.N(_.Rf,{text:function(){return l().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ld");
mP0.idomCompat=!0;var Ke_=_.P(function(z){var l=z.data;var I=z.isOverlay;return _.N("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.N(_.TS,{data:function(){return l().factoids}},{factoidViewModel:function(b){return _.N(mP0,{data:b.data,
isOverlay:I})}}))},"Md");
Ke_.idomCompat=!0;_.tvp=_.P(function(z){var l=z.data;var I=z.isOverlay;return _.N("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.N(_.TS,{data:function(){return l().items}},{channelInfoViewModel:function(b){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(Rwz,{data:b.data,
isOverlay:I}))},
coursePerksViewModel:function(b){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(jIu,{data:b.data,isOverlay:I}))},
descriptionPreviewViewModel:function(b){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(up,{data:b.data,isOverlay:I}))},
factoidsRowViewModel:function(b){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(Ke_,{data:b.data,isOverlay:I}))},
progressViewModel:function(b){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(Jsu,{data:b.data,isOverlay:I}))}}))},"Nd");var BeA=_.P(function(z){return _.N("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.N(_.TS,{data:function(){return z.data().content}},{courseMetadataViewModel:function(l){return _.N(_.tvp,{data:l.data,
isOverlay:z.isOverlay})},
progressViewModel:function(l){return _.N(Jsu,{data:l.data})}}))},"Od");var X1z=_.P(function(z){var l=z.data;z=z.className;var I=function(){var v;return _.w5((v=l())==null?void 0:v.rendererContext)},b={};
b=(b.dynamicTextViewModelHost=!0,b.dynamicTextViewModelHostTappable=function(){return I()},b);
return _.N("yt-dynamic-text-view-model",{el:_.xl(_.AR(function(){var v;return(v=l())==null?void 0:v.rendererContext})),
role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.m9(z,b)},_.N("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var v,M,x;return(x=(M=_.k((v=l())==null?void 0:v.rendererContext,_.YM))==null?void 0:M.label)!=null?x:""}},_.N(_.Rf,{text:function(){return l().text},
userInput:!0})))},"Pd");
X1z.idomCompat=!0;_.ZN=_.P(function(z){var l=z.data;var I=z.isPositionRelative;var b=_.Q9k("(max-width: 527.9px)"),v=function(){var M,x;return(x=(M=l())==null?void 0:M.style)!=null?x:"IMAGE_BANNER_STYLE_FULL_BLEED"};
z={};return _.N("yt-image-banner-view-model",{el:_.xl(_.AR(function(){var M;return(M=l())==null?void 0:M.rendererContext})),
class:_.m9((z.ytImageBannerViewModelHost=!0,z.ytImageBannerViewModelInset=function(){return Yax(v())},z.ytImageBannerViewModelPositionAbsolute=function(){return _.d2(!0)&&!(I==null?0:I())},z.ytImageBannerViewModelSmallInset=function(){return Yax(v())&&b()},z.ytImageBannerViewModelTappable=function(){var M;
return _.w5((M=l())==null?void 0:M.rendererContext)},z))},_.N(_.E,{cond:function(){var M;
return(M=l())==null?void 0:M.image},
then:function(){return _.N(_.pK,{data:function(){return l().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.N(_.TS,{data:function(){var M;
return(M=l())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:p5}))},"Qd");
_.ZN.idomCompat=!0;var qkw;qkw=_.P(function(z){var l=z.condition;var I=z.content;return _.N(_.E,{cond:l,then:function(){return _.N("div",{class:"yt-page-header-view-model__scroll-container"},I())},
else:function(){return I()}})},"Rd");
_.iFM=_.P(function(z){var l=z.data;var I=z.noPadding;var b=z.enableBanner;var v=z.cinematicContainerTopbarOffset;var M=z.allowCinematicContainerOverflow;var x=z.displayAsSidebar;var g=z.displayAsPanel;var G=z.alwaysUseMediumTextDescription;var u=TtG(),Z=function(){return!!l().image||!!l().animatedImage},H=function(){return!!l().background},y=function(){return(x==null?0:x())||(g==null?0:g())?1:u()},f=function(){return y()===1},R=function(){return f()||y()===2},F=function(){return y()===4},Y=function(){var H7=
l();
var P7=!!l().heroImage;var o1=y(),z_=c0k(l()),dw=x==null?void 0:x(),Ej=!H7.metadata,JG;if(JG=P7?_.k(H7.heroImage,i1p):_.k(H7.animatedImage||H7.image,i1p)){H7=JG.style;var yu=JG.layoutMode;if(yu!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(JG=y2k(HBY(JG)),P7)P7=Fpt(o1,H7,yu,JG,dw);else b:if(Ej)P7=o1===1?{size:48}:{size:72};else switch(o1){case 1:P7={size:72};break b;case 2:P7={size:120};break b;default:P7=z_<4?{size:120}:{size:160}}else P7=void 0}else P7={size:0};return P7};
z={};z=_.m9((z["yt-page-header-view-model"]=!0,z["yt-page-header-view-model--no-padding"]=function(){return!(I==null||!I())},z["yt-page-header-view-model--small-top-padding"]=function(){return f()&&!l().actions&&!(g==null?0:g())||y()===2&&!(Z()||l().heroImage)},z["yt-page-header-view-model--small-bottom-padding"]=function(){return R()&&!l().actions&&!(g==null?0:g())},z["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(M==null?0:M())},z["yt-page-header-view-model--display-as-sidebar"]=
x,z));
var c={},d=_.m9((c["yt-page-header-view-model__page-header-headline"]=!0,c["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var H7;return(H7=Y())==null?void 0:H7.allowFullWidth},c)),V=function(){var H7;
return R()&&!((H7=Y())==null?0:H7.allowFullWidth)},A=function(){return f()&&(!!l().heroImage||Z())&&c0k(l())>0},W=function(){return A()&&(g==null?void 0:g())};
c={};var L=_.m9((c["yt-page-header-view-model__page-header-title"]=!0,c["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!A()},c["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return A()&&!W()},c["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=W,c["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=H,c));
c={};var lH=_.m9((c["yt-page-header-view-model__page-header-headline-image"]=!0,c["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!l().heroImage&&R()},c));
c={};var Gk=_.m9((c["yt-page-header-view-model__page-header-banner-container"]=b,c["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var H7;return(b==null?void 0:b())&&((H7=_.k(l().banner,_.Qf4))==null?void 0:H7.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},c));
c={};var uH=_.m9((c["yt-page-header-view-model__page-header-content-metadata"]=!0,c["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=H,c));c={};var Xt=_.m9((c["yt-page-header-view-model__page-header-flexible-actions"]=!0,c["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!l().metadata||R()},c["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!R()},c));
c={};var R1=_.m9((c["yt-page-header-view-model__page-header-attribution"]=!0,c["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=H,c));return _.N("yt-page-header-view-model",{class:z},_.N(_.E,{cond:H,then:function(){return _.N("div",{class:"yt-page-header-view-model__page-header-background"},_.N(_.TS,{data:function(){return l().background}},{cinematicContainerViewModel:function(H7){return _.N(_.kjI,{data:H7.data,
topbarOffset:v})}}))}}),_.N(qkw,{condition:function(){return!(x==null||!x())},
content:function(){return _.N("div",{class:"yt-page-header-view-model__page-header-content"},_.N(_.E,{cond:function(){return(b==null?void 0:b())&&l().banner},
then:function(){return _.N("div",{class:Gk},_.N(_.TS,{data:function(){return l().banner}},{imageBannerViewModel:_.ZN}))}}),_.N("div",{class:d},_.N(_.E,{cond:Z,
then:function(){return _.N(_.TS,{data:function(){var H7;if(!(H7=l().animatedImage)){H7=l();if(Z()){var P7=H7=Object.assign({},H7),o1=y(),z_=c0k(l()),dw=P7.image,Ej=_.k(dw,FBM),JG=Ej==null?void 0:Ej.avatar,yu=_.k(JG,_.WU);if(dw&&JG&&yu){switch(o1){case 1:yu.avatarImageSize="AVATAR_SIZE_XL";break;case 2:yu.avatarImageSize="AVATAR_SIZE_XXL";break;default:z_<4?yu.avatarImageSize="AVATAR_SIZE_XXL":yu.avatarImageSize="AVATAR_SIZE_XXXL"}_.rZ(JG,_.WU,Object.assign({},yu));Ej.avatar=Object.assign({},JG);_.rZ(dw,
FBM,Object.assign({},Ej));P7.image=Object.assign({},dw)}}H7=H7.image}return H7}},{contentPreviewImageViewModel:function(H7){return _.N(_.cm,{data:H7.data,
className:lH,imageSizeConfig:Y})},
decoratedAvatarViewModel:function(H7){return _.N(_.xQ,{data:H7.data,className:lH})}})}}),_.N(_.E,{cond:function(){return!!l().heroImage&&!V()},
then:function(){return _.N(_.TS,{data:function(){return l().heroImage}},{contentPreviewImageViewModel:function(H7){return _.N(_.cm,{data:H7.data,
className:lH,imageSizeConfig:Y})}})}}),_.N("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.N(_.E,{cond:function(){return!!l().heroImage&&V()},
then:function(){return _.N("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.N(_.TS,{data:function(){return l().heroImage}},{contentPreviewImageViewModel:function(H7){return _.N(_.cm,{data:H7.data,
className:lH,imageSizeConfig:Y})}}))}}),_.N(_.TS,{data:function(){return l().title}},{dynamicTextViewModel:function(H7){return _.N(X1z,{data:H7.data,
className:L})}}),_.N(_.TS,{data:function(){return l().metadata}},{contentMetadataViewModel:function(H7){return _.N(_.Sq,{data:H7.data,
layout:function(){return f()?1:0},
className:uH,isOverlay:H,useMediumText:F})}}),_.N(_.E,{cond:function(){return l().description&&!f()},
then:function(){return _.N(_.TS,{data:function(){return l().description}},{descriptionPreviewViewModel:function(H7){return _.N(up,{data:H7.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:H,maxLinesOverride:function(){return f()?void 0:1},
useMediumText:function(){return(G==null?void 0:G())||F()}})}})}}),_.N(_.E,{cond:function(){return l().attribution&&!R()},
then:function(){return _.N(_.TS,{data:function(){return l().attribution}},{attributionViewModel:function(H7){return _.N(gg4,{data:H7.data,
className:R1,useMediumText:F})}})}}),_.N(_.E,{cond:function(){return l().actions&&!R()},
then:function(){return _.N(_.TS,{data:function(){return l().actions}},{flexibleActionsViewModel:function(H7){return _.N(_.xJ,{data:H7.data,
layout:function(){return SaQ(y())},
className:Xt})}})}}))),_.N("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.N(_.E,{cond:function(){return l().description&&f()},
then:function(){return _.N(_.TS,{data:function(){return l().description}},{descriptionPreviewViewModel:function(H7){return _.N(up,{data:H7.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:H,maxLinesOverride:function(){return f()?void 0:1},
useMediumText:function(){return(G==null?void 0:G())||F()}})}})}}),_.N(_.E,{cond:function(){return l().attribution&&R()},
then:function(){return _.N(_.TS,{data:function(){return l().attribution}},{attributionViewModel:function(H7){return _.N(gg4,{data:H7.data,
className:R1,useMediumText:F})}})}}),_.N(_.E,{cond:function(){return l().actions&&R()},
then:function(){return _.N(_.TS,{data:function(){return l().actions}},{flexibleActionsViewModel:function(H7){return _.N(_.xJ,{data:H7.data,
layout:function(){return SaQ(y())},
className:Xt})}})}})),_.N("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.N(_.TS,{data:function(){return l().bottomMetadataFlexibleContainer}},{flexibleContainer:function(H7){return _.N(BeA,{data:H7.data,
isOverlay:H})}})))}}))},"Sd");
_.iFM.idomCompat=!0;_.uO(_.P(function(z){var l=_.D(_.Z_(!1,void 0,"vvzTj")),I=l.next().value,b=l.next().value;return _.N("yt-official-card-view-model",{class:_.m9("ytOfficialCardViewModelHost",z.className),style:_.XV({"background-color":function(){var v,M=qa((v=z.data())==null?void 0:v.backgroundColor);return M?_.aD(M):void 0}})},_.N(_.TS,{data:function(){return z.data().header}},{pageHeaderViewModel:function(v){return _.N(_.iFM,{data:v.data,
noPadding:!0})}}),_.N(_.TS,{data:function(){return z.data().contents}},{horizontalShelfViewModel:function(v){return _.N(_.E_,{data:v.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.N(_.E,{cond:I,
then:function(){return _.N("div",{class:"ytOfficialCardViewModelExpandedContent"},_.N(_.TS,{data:function(){return z.data().expandedContents}},{horizontalShelfViewModel:function(v){return _.N(_.E_,{data:v.data,
sizing:"MINI"})}}),_.N("div",{class:"ytOfficialCardViewModelCollapseButton"},_.N(_.TS,{data:function(){return z.data().collapseButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
onClick:function(){b(!I())}})}})))},
else:function(){return _.N("div",{class:"ytOfficialCardViewModelExpandButton"},_.N(_.TS,{data:function(){return z.data().expandButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
onClick:function(){b(!I())}})}}))}}))},"Td"),"yt-official-card-view-model",{props:{data:_.mB,
className:_.mB}});var Feu=_.P(function(z){var l,I=(l=_.pG().resolve(_.MB(_.I2)))==null?void 0:l();return _.N("ytw-search-friction-view-model",{class:_.m9("ytwSearchFrictionViewModelHost",z.className)},_.N("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.N("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.N(_.E,{cond:function(){return I&&z.data().darkThemeImage?z.data().darkThemeImage:z.data().image},
then:function(b){return _.N(_.pK,{data:b,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.N(_.TS,{data:function(){return z.data().overflowMenuButton}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.N(_.Rf,{text:function(){return z.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.N(_.qy,{each:function(){return z.data().bodyText||[]}},function(b){return _.N(_.Rf,{text:b,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.N(_.TS,{data:function(){return z.data().actions}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.N(_.Rf,{text:function(){return z.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.N(_.Rf,{text:function(){return z.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ud");
Feu.idomCompat=!0;_.uO(Feu,"ytw-search-friction-view-model",{props:{data:_.mB,className:_.mB}});_.Hi=_.P(function(z){var l=_.VK("markdown-div"),I,b=(I=_.pG().resolve(_.MB(_.I2)))==null?void 0:I();_.Te(function(){var v=l.value;var M=new LA_,x=new Map(M.JSC$9302_sanitizerTable.globalAttributePolicies);x.set("style",{policyAction:4});M.JSC$9302_sanitizerTable=new dy(M.JSC$9302_sanitizerTable.allowedElements,M.JSC$9302_sanitizerTable.elementPolicies,M.JSC$9302_sanitizerTable.allowedGlobalAttributes,x,M.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);var g=["data-time"];if(g===void 0)x=
new Set(M.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes),x.add("data-"),M.JSC$9302_sanitizerTable=new dy(M.JSC$9302_sanitizerTable.allowedElements,M.JSC$9302_sanitizerTable.elementPolicies,M.JSC$9302_sanitizerTable.allowedGlobalAttributes,M.JSC$9302_sanitizerTable.globalAttributePolicies,x);else{x=new Set(M.JSC$9302_sanitizerTable.allowedGlobalAttributes);g=_.D(g);for(var G=g.next();!G.done;G=g.next()){G=G.value;if(G.indexOf("data-")!==0)throw Error("ma`"+G);x.add(G)}M.JSC$9302_sanitizerTable=
new dy(M.JSC$9302_sanitizerTable.allowedElements,M.JSC$9302_sanitizerTable.elementPolicies,x,M.JSC$9302_sanitizerTable.globalAttributePolicies,M.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes)}x=new Set(M.JSC$9302_sanitizerTable.allowedGlobalAttributes);x.add("class");M.JSC$9302_sanitizerTable=new dy(M.JSC$9302_sanitizerTable.allowedElements,M.JSC$9302_sanitizerTable.elementPolicies,x,M.JSC$9302_sanitizerTable.globalAttributePolicies,M.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);
_.p4(v,_.eIn(M.build(),ovu(z.text())));Pmx(l.value)},"OZ439c");
I={};return _.N("div",null,_.N("markdown-div",{class:_.m9("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=b,I.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var v;return((v=z.isSmallText)==null?void 0:v.call(z))||!1},I.ytwMarkdownDivHostWrapCodeBlocks=function(){var v;
return((v=z.wrapCodeBlocks)==null?void 0:v.call(z))||!1},I.ytwMarkdownDivHostEnableDefaultStyling=function(){var v;
return!((v=z.disableDefaultStyling)==null?0:v.call(z))},I)),
el:l}))},"Vd");
_.Hi.idomCompat=!0;var Qi0=_.P(function(z){var l=z.imageData;var I=_.Df(z.isInList,!1),b=function(){return I()?{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 _.N("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.N(_.E,{cond:function(){return l().image},
then:function(v){return _.N(_.pK,{data:v,alt:function(){return b().alt},
contentMode:function(){return b().contentMode},
targetWidth:function(){return b().targetWidth},
targetHeight:function(){return b().targetHeight},
className:function(){return b().className}})}}),_.N("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.N("div",{class:_.m9("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.qy,{each:function(){var v;
return(v=l().description)!=null?v:[]}},function(v){return _.N("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.N(yc,{content:v}))})))},"Wd"),YkA=_.P(function(z){var l=z.list;
var I=function(){var b;return(b=l().items)!=null?b:[]};
return _.N("div",{class:"ytwGenAiRichTextViewModelListContent"},_.N(_.E,{cond:function(){return l().title},
then:function(b){return _.N("div",{class:_.m9("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.N(_.Rf,{text:b}))}}),_.N(_.E,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.N("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.N(_.qy,{each:I},function(b){return _.N("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.N(yc,{content:b,isInList:!0}))}))}}),_.N(_.E,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.N("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.N(_.qy,{each:I},function(b){return _.N("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.N(yc,{content:b,isInList:!0}))}))}}),_.N(_.E,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.N("div",{class:"ytwGenAiRichTextViewModelImageList"},_.N(_.qy,{each:I},function(b){return _.N("div",{class:"ytwGenAiRichTextViewModelListItem"},_.N(yc,{content:b,isInList:!0}))}))}}))},"Xd"),Te_=_.P(function(z){var l=z.table;
return _.N("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.N("thead",null,_.N("tr",null,_.N(_.qy,{each:function(){var I,b;return(b=(I=l().header)==null?void 0:I.cells)!=null?b:[]}},function(I){return _.N("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.N(_.qy,{each:function(){return I.contents}},function(b){return _.N(yc,{content:b})}))}))),_.N("tbody",null,_.N(_.qy,{each:function(){var I;
return(I=l().rows)!=null?I:[]}},function(I){return _.N("tr",null,_.N(_.qy,{each:function(){return I.cells}},function(b){return _.N("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.N(_.qy,{each:function(){return b.contents}},function(v){return _.N(yc,{content:v})}))}))})))},"Yd"),yc=_.P(function(z){var l=z.content;
var I=_.Df(z.isInList,!1),b=function(){var v,M;return(M=(v=l().contentBlock)==null?void 0:v.contents)!=null?M:[]};
return _.N("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.N(_.E,{cond:function(){return l().text},
then:function(v){return _.N(_.Rf,{className:"ytwGenAiRichTextViewModelText",text:v})}}),_.N(_.E,{cond:function(){return l().image},
then:function(v){return _.N(Qi0,{imageData:v,isInList:I})}}),_.N(_.E,{cond:function(){return l().list},
then:function(v){return _.N(YkA,{list:v})}}),_.N(_.E,{cond:function(){return l().contentBlock},
then:function(){return _.N("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.N(_.qy,{each:b},function(v){return _.N(yc,{content:v,isInList:!1})}))}}),_.N(_.E,{cond:function(){return l().table},
then:function(v){return _.N(Te_,{table:v})}}))},"Zd"),cF_=_.P(function(z){var l={};
l=_.sB("ytwGenAiRichTextViewModelHost",(l.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.gk("search_overview_link_style")),l));return _.N("gen-ai-rich-text-view-model",{class:l},_.N(yc,{content:function(){return z.data().content}}))},"$d");_.Skn=_.P(function(z){var l=z.data;var I=function(){var F;return((F=l().loadingUi)!=null?F:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},b=function(){return l().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},v=function(){return!l().isLoading},M=function(){return!!l().content&&!l().contents},x=function(){return!!l().contents},g=function(){return!!l().nextQueryButtons},G=function(){return l().isLoading&&I()==="INVISIBLE"},u=function(){var F,Y;
return(Y=(F=l().headerIcon)==null?void 0:F.iconType)!=null?Y:""},Z=function(){var F;
return(F=l().content)!=null?F:""},H=function(){return!!l().sourcesSection},y,f=!((y=_.pG().resolve(_.MB(_.I2)))==null||!y()),R=_.kz(function(){var F=[],Y=l().contents;
if(Y)for(var c=0;c<Y.length;c++){var d=_.k(Y&&Y[c],d10);d&&F.push(d)}return F},void 0,"gcCsZb");
_.Sm(function(){l().isLoading||_.sK("so_re",void 0,"search_overview_answer")});
return _.N("ytd-overview-answer-view-model",{class:function(){var F={};F=(F.ytdOverviewAnswerViewModelHost=!0,F.ytdOverviewAnswerViewModelDarkBackground=f&&!G(),F.ytdOverviewAnswerViewModelLightBackground=!f&&!G(),F);return _.sB(F)}},_.N(_.E,{cond:function(){return!G()},
then:function(){return _.N(_.xP,null,_.N("h2",null,_.N("div",{class:"ytdOverviewAnswerViewModelHeader"},_.N(_.E,{cond:u,then:function(F){return _.N("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.N(_.qt,{icon:F}))}}),_.N("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.N("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return l().headerText}),_.N("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.N(_.Rf,{text:function(){return l().headerSubtext}}))))),_.N(_.E,{cond:b,
then:function(){return _.N(hdS,null)}}),_.N(_.E,{cond:v,
then:function(){return _.N(_.xP,null,_.N(_.E,{cond:M,then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelText"},_.N(_.Hi,{text:Z,isSmallText:!0}))}}),_.N(_.E,{cond:x,
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelRichText"},_.N(_.qy,{each:R},function(F){return _.N(cF_,{data:F})}))}}),_.N(_.E,{cond:g,
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.N(_.TS,{data:function(){return l().nextQueryButtons}},{buttonViewModel:function(F){return _.N(_.h4,{data:F.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.E_}))}}),_.N("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.N("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.N(_.E,{cond:function(){return!!_.k(l().likeButtonViewModel,_.bS)&&!!_.k(l().dislikeButtonViewModel,_.Ic)},
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.N(_.gP,{data:function(){return _.k(l().likeButtonViewModel,_.bS)},
disableIconAnimation:!0}),_.N(_.Os,{data:function(){return _.k(l().dislikeButtonViewModel,_.Ic)}}))}})),_.N(_.E,{cond:function(){var F;
return(F=l().sourcesSection)==null?void 0:F.headerText},
then:function(F){return _.N("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.N(_.Rf,{text:F}))}})),_.N(_.E,{cond:H,
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelSources"},_.N(_.TS,{data:function(){var F;return(F=l().sourcesSection)==null?void 0:F.sourcesShelf}},{buttonViewModel:_.h4,
horizontalShelfViewModel:function(F){return _.N(_.E_,{data:F.data,includeMargin:!0,hasPeek:!0})}}))}}),_.N(_.E,{cond:function(){return l().disclaimerText},
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.N(_.Rf,{text:function(){return l().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"ae");var dPu=_.P(function(z){var l=z.data;var I=z.active;var b=_.VK("transcript-segment-view-model");_.Te(function(){var v,M,x,g=((v=_.pG().resolve(_.MB(_.I2)))==null?0:v())?(M=l())==null?void 0:M.darkThemeColorPalette:(x=l())==null?void 0:x.lightThemeColorPalette;g&&(g.additiveBackground&&b.value.style.setProperty("--timestamp-active-background-color",_.aD(g.additiveBackground)),g.textSecondary&&b.value.style.setProperty("--timestamp-active-color",_.Ur(g.textSecondary)))},"TnVCnb");
z={};return _.N("transcript-segment-view-model",{class:_.m9("ytwTranscriptSegmentViewModelHost",(z.ytwTranscriptSegmentViewModelHostActive=I,z.ytwTranscriptSegmentViewModelHostModern=_.C("enable_timeline_view_modern_transcript")||_.C("enable_timeline_view_modern_transcript_fe"),z)),el:b},_.N(_.E,{cond:function(){var v;return(v=l())==null?void 0:v.timestamp},
then:function(v){var M={};return _.N("div",{class:_.m9("ytwTranscriptSegmentViewModelTimestamp",(M.ytwTranscriptSegmentViewModelTimestampActive=I,M)),"aria-label":function(){var x=v().split(":").map(Number),g=_.D(x.reverse());x=g.next().value;var G=g.next().value;g=g.next().value;return _.SDQ({hours:g,minutes:G,seconds:x})}},v)}}),_.N(_.Rf,{text:function(){var v,M,x;
return(x=(v=l())==null?void 0:v.attributedText)!=null?x:{content:(M=l())==null?void 0:M.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"be");var oiu=_.P(function(z){var l=z.data;return _.N("div",{class:"videoAttributesSectionViewModelHeader"},_.N("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.N("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return l().headerTitle}),_.N(_.E,{cond:function(){return l().headerInfoButton},
then:function(){return _.N(_.TS,{data:function(){return l().headerInfoButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.N(_.E,{cond:function(){return l().headerSubtitle},
then:function(){return _.N("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return l().headerSubtitle})}}))},"ce"),PbM=_.P(function(z){function l(F){return Math.max(Math.min(F,0),u()-g())}
var I=z.data;var b;z=_.VK("div",function(F){var Y=function(){Z(F.clientWidth)};
Y();window.ResizeObserver&&(b=new ResizeObserver(Y),b.observe(F))});
var v=_.VK("div",function(F){G(F.scrollWidth)}),M=_.D(_.Z_(0,void 0,"C3XQAe")),x=M.next().value;
M=M.next().value;var g=x,G=M;M=_.D(_.Z_(0,void 0,"db7y3"));x=M.next().value;M=M.next().value;var u=x,Z=M;x=_.D(_.Z_(0,void 0,"RchC7"));var H=x.next().value,y=x.next().value;_.cb(function(){var F;(F=b)==null||F.disconnect()});
var f=function(){y(l(H()+u()))},R=function(){y(l(H()-u()))};
return _.N("yt-video-attributes-section-view-model",null,_.N("div",{class:"videoAttributesSectionViewModelHost"},_.N(_.E,{cond:function(){return I().headerTitle},
then:function(){return _.N(oiu,{data:I})}}),_.N("div",{class:_.m9("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:z},_.N("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.XV({transform:function(){var F=H();_.sZ("HTML_DIR")==="rtl"&&(F*=-1);return"translateX("+F+"px)"}}),
el:v},_.N(_.TS,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:iaw}))),_.N(_.TS,{data:function(){return I().footerButton}},{buttonViewModel:function(F){return _.N(_.h4,{data:F.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.N(_.E,{cond:function(){return H()<0&&I().previousButton},
then:function(){return _.N("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.N(_.TS,{data:function(){return I().previousButton}},{buttonViewModel:function(F){return _.N(_.h4,{data:F.data,
onClick:f})}}))}}),_.N(_.E,{cond:function(){return H()>u()-g()&&I().nextButton},
then:function(){return _.N("div",{class:"videoAttributesSectionViewModelRightArrow"},_.N(_.TS,{data:function(){return I().nextButton}},{buttonViewModel:function(F){return _.N(_.h4,{data:F.data,
onClick:R})}}))}})))},"de");
PbM.idomCompat=!0;var hwj=_.P(function(z){var l=z.data;var I=z.active;var b={},v={};return _.N("timeline-item-view-model",{class:_.m9("ytwTimelineItemViewModelHost",(b.ytwTimelineItemViewModelHostChapterChild=z.chapterChild,b.ytwTimelineItemViewModelModern=_.C("enable_timeline_view_modern_transcript")||_.C("enable_timeline_view_modern_transcript_fe"),b))},_.N("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.N("div",{class:_.m9("ytwTimelineItemViewModelTimestamp",(v.ytwTimelineItemViewModelTimestampActive=
I,v))},function(){return l().timestamp})),_.N("div",{class:"ytwTimelineItemViewModelContentItems"},_.N(_.TS,{data:function(){return l().contentItems}},{transcriptSegmentViewModel:function(M){return _.N(dPu,{data:M.data,
active:I})},
videoAttributesSectionViewModel:PbM})))},"ee");var siw=_.P(function(z){var l=z.data;z={};return _.N("timeline-chapter-view-model",{class:_.m9("ytwTimelineChapterViewModelHost")},_.N("div",{class:_.m9("ytwTimelineChapterViewModelTitle",(z.ytwTimelineChapterViewModelModern=_.C("enable_timeline_view_modern_transcript")||_.C("enable_timeline_view_modern_transcript_fe"),z))},function(){return l().title}),_.N(_.TS,{data:function(){return l().contents}},{timelineItemViewModel:function(I){return _.N(hwj,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.N(PbM,{data:I.data})}}))},"fe");var rFn=_.P(function(z){var l=z.data;var I=_.VK("macro-markers-panel-item-view-model"),b=_.F1(_.l35,function(){var M;return(M=l().markersEngagementPanelSyncEntityKey)!=null?M:""}),v=function(){var M;
return((M=b())==null?void 0:M.activeItemIndex)===l().index};
z=_.KK(function(M){var x,g,G,u,Z;return _.O(function(H){if(H.nextAddress==1)return M.stopPropagation(),_.$U(_.r5(M),I.value,["A".toString(),"BUTTON".toString()])?H.return():(x=_.Wh(l().onTap))?H.yield(_.R0(),2):H.return();g=H.yieldResult;u=(G=_.k(x,_.zb))==null?void 0:G.startTimeSeconds;u===void 0||(Z=g)!=null&&Z.seekTo(u,!0);_.qe(H)})});
return _.N("macro-markers-panel-item-view-model",{class:_.m9("ytwMacroMarkersPanelItemViewModelHost",{"is-active":v}),el:I,"on:click":z,tabindex:0},_.N(_.TS,{data:function(){var M;return(M=l())==null?void 0:M.item}},{timelineChapterViewModel:function(M){return _.N(siw,{data:M.data,
active:v})},
timelineItemViewModel:function(M){return _.N(hwj,{data:M.data,active:v})},
videoAttributeViewModel:iaw}))},"ge");
rFn.idomCompat=!0;_.uO(rFn,"macro-markers-panel-item-view-model",{props:{data:_.mB}});_.uO(PbM,"yt-video-attributes-section-view-model",{props:{data:_.mB}});var $Pw=_.P(function(z){var l=function(){var I,b,v;return(v=(I=z.data().leadingLogoAccessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label)!=null?v:""};
return _.N("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.N(_.E,{cond:function(){return z.data().leadingLogo},
then:function(I){return _.N(_.pK,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:l})}}),_.N("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.N(_.Rf,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return z.data().title}}),_.N(_.Rf,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return z.data().subtitle}})),_.N(_.TS,{data:function(){return z.data().trailingButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"he");var ewn=_.P(function(z){var l={};l=_.m9("ytwFantasyTeamViewModelHost",(l.ytwFantasyTeamViewModelCompact=function(){var v;return!((v=z.compact)==null||!v.call(z))},l.ytwFantasyTeamViewModelUser=function(){return z.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},l.ytwFantasyTeamViewModelOpponent=function(){return z.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},l));
var I=function(){var v,M,x;return(x=(v=z.data().teamLogoAccessibility)==null?void 0:(M=v.accessibilityData)==null?void 0:M.label)!=null?x:""},b=_.F1(bhS,function(){return z.data().teamEntityKey});
return _.N("ytw-fantasy-team-view-model",{class:l},_.N(_.E,{cond:function(){return z.data().teamLogo},
then:function(v){return _.N(_.pK,{className:"ytwFantasyTeamViewModelLogo",data:v,alt:I})}}),_.N("div",{class:"ytwFantasyTeamViewModelMetadata"},_.N("div",{class:"ytwFantasyTeamViewModelHeader"},_.N(_.Rf,{className:"ytwFantasyTeamViewModelScore",
text:function(){var v;return(v=b())==null?void 0:v.score}}),_.N(_.qt,{icon:function(){var v;
return(v=b())==null?void 0:v.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.N(_.Rf,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var v;return(v=b())==null?void 0:v.projectedScore}})),_.N(_.Rf,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return z.data().primaryText}}),_.N(_.Rf,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return z.data().secondaryText}}),_.N(_.Rf,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return z.data().tertiaryText}})),_.N(_.Rf,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var v;return(v=b())==null?void 0:v.score}}))},"ie");_.uO(_.P(function(z){return _.N("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.N("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.N(_.TS,{data:function(){return z.data().summaryHeader}},{fantasySectionHeaderViewModel:$Pw})),_.N(_.TS,{data:function(){return z.data().userTeam}},{fantasyTeamViewModel:ewn}),_.N(_.TS,{data:function(){return z.data().opponentTeam}},{fantasyTeamViewModel:ewn}))},"je"),"fantasy-league-summary-view-model",{props:{data:_.mB}});var w1A=_.P(function(z){var l=_.xC(z,{shape:{},useCustomTabRenderable:!1}),I=l.shape;l=l.useCustomTabRenderable;var b=z.customTabRenderable,v=function(){return I().disabled},M=function(){return I().selected},x=function(){return I().title},g=function(){return I().icon},G=_.VK("yt-tab-shape");
z=_.KK(function(H){var y;if(!v()&&((y=I().aTagConfig)==null?0:y.onclick))I().aTagConfig.onclick(H);return!1});
var u=_.KK(function(H){if(H.key==="Enter"||H.key==="ArrowUp"||H.key==="ArrowDown")H.preventDefault(),G.value.click();return!1}),Z={};
return _.N("yt-tab-shape",{class:_.m9("yt-tab-shape",function(){return I().className},(Z["yt-tab-shape__tab--last-tab"]=function(){return I().isLastTab},Z["yt-tab-shape--host-disabled"]=v,Z["yt-tab-shape--host-clickable"]=!b,Z)),
role:b?void 0:"tab","aria-selected":M!=null?M:!1,"aria-disabled":v,tabindex:b?void 0:0,"on:click":z,"on:keydown":u,el:G,"tab-identifier":function(){return I().identifier},
"tab-title":x},_.N(_.E,{cond:l,then:function(){return b()},
else:function(){var H={},y={};return _.N(_.xP,null,_.N("div",{class:_.m9("yt-tab-shape__tab",(H["yt-tab-shape__tab--tab-selected"]=M,H))},_.N(_.E,{cond:g,then:function(f){return _.N(_.qt,{className:"yt-tab-shape__tab-icon",icon:function(){return f().iconType}})}}),x),_.N("div",{class:_.m9("yt-tab-shape__tab-bar",(y["yt-tab-shape__tab-bar--tab-bar-selected"]=M,y))}))}}))},"ke");
w1A.idomCompat={callbacks:{customTabRenderable:!0}};_.We4=_.P(function(z){var l=z.shape;z=_.D(_.Z_(48,void 0,"rCewuf"));var I=z.next().value,b=z.next().value;z=_.D(_.Z_(0,void 0,"aUUTWe"));var v=z.next().value,M=z.next().value,x=function(){return l().tabs},g=_.VK("yt-tab-group-shape"),G=function(){var u,Z;
return(Z=(u=x())==null?void 0:u.findIndex(function(H){return H.selected}))!=null?Z:-1};
_.Sm(function(){var u=g.value.querySelectorAll("yt-tab-shape"),Z=G()>-1?u[G()]:void 0;_.ow.addJob(function(){b((Z==null?void 0:Z.getBoundingClientRect().width)||0)},8,0)});
_.Te(function(){var u=G(),Z=_.ow.addJob(function(){var H,y=((H=g.value)==null?void 0:H.querySelectorAll("yt-tab-shape"))||[],f;b(((f=u>-1?y[u]:void 0)==null?void 0:f.getBoundingClientRect().width)||0);for(f=H=0;f<u;f++)H+=y[f].offsetWidth+24;_.sZ("HTML_DIR")==="rtl"&&(H=-H);M(H)},8,0);
_.cb(function(){_.ow.cancelJob(Z)})},"DAb5Qb");
z={};return _.N("yt-tab-group-shape",{class:_.m9("tabGroupShapeHost",(z.tabGroupShapeOverflowHidden=function(){return l().isOverflowHidden},z)),
el:g},_.N(_.E,{cond:x,then:function(u){return _.N(_.xP,null,_.N("div",{class:"tabGroupShapeTabs",role:"tablist"},_.N(_.qy,{each:u},function(Z,H){return _.N(w1A,{shape:function(){return Object.assign({},Z,{isLastTab:H()===u().length-1})},
customTabRenderable:Z.customTabRenderable,useCustomTabRenderable:!!Z.customTabRenderable})})),_.N(AF_,{width:I,
sliderOffset:v}))}}))},"le");
_.We4.idomCompat=!0;var AF_=_.P(function(z){var l=_.Df(z.sliderOffset,0),I=z.width;return _.N("div",{class:"tabGroupShapeSlider",style:_.XV({width:function(){return I()+"px"},
transform:function(){return"translateX("+l()+"px)"}})})},"me");var nin=_.P(function(z){var l=function(){var M,x,g;return(g=(M=z.data().playerLogoAccessibility)==null?void 0:(x=M.accessibilityData)==null?void 0:x.label)!=null?g:""},I=_.F1(vGx,function(){return z.data().playerEntityKey}),b={};
b=_.m9("ytwFantasyPlayerViewModelHost",(b.ytwFantasyPlayerViewModelPlaying=function(){var M;return!((M=I())==null||!M.isPlayerPlaying)},b.ytwFantasyPlayerViewModelOnField=function(){var M;
return((M=I())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},b.ytwFantasyPlayerViewModelRedZone=function(){var M;
return((M=I())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},b));
var v=function(){var M,x,g,G=((M=_.pG().resolve(_.MB(_.I2)))==null?0:M())?(x=z.data().playerLogoBackgroundColor)==null?void 0:x.darkTheme:(g=z.data().playerLogoBackgroundColor)==null?void 0:g.lightTheme;return G===void 0?"":_.aD(G)};
return _.N("ytw-fantasy-player-view-model",{class:b},_.N(_.E,{cond:function(){return z.data().playerLogo},
then:function(M){return _.N("div",{class:"ytwFantasyPlayerViewModelLogo"},_.N("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.N(_.pK,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.XV({"background-color":v}),data:M,alt:l})),_.N("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.N(_.qt,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.N("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.N("div",{class:"ytwFantasyPlayerViewModelHeader"},_.N(_.Rf,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var M;return(M=z.data())==null?void 0:M.playerNameText}}),_.N(_.Rf,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var M;return(M=z.data())==null?void 0:M.playerDescriptionText}})),_.N("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.N(_.Rf,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=I())==null?void 0:M.gamePeriodText}}),_.N(_.Rf,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=z.data())==null?void 0:M.opponentTeamText}}),_.N(_.Rf,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=I())==null?void 0:M.gameStatusText}}),_.N(_.Rf,{className:_.m9("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var M;return(M=I())==null?void 0:M.playerStatusText}})),_.N("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.N(_.Rf,{text:function(){var M;
return(M=I())==null?void 0:M.playerStatsText}}))),_.N(_.Rf,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var M;return(M=I())==null?void 0:M.fantasyScore}}))},"ne");var LeM=_.P(function(z){return _.N("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.N(_.E,{cond:function(){return z.data().players},
then:function(l){return _.N(_.TS,{data:l},{fantasyPlayerViewModel:nin})}}))},"oe");var UP_=_.P(function(z){var l=_.D(_.Br(function(){var v;return(v=z.data().selectedTabIdentifierKey)!=null?v:""})),I=l.next().value,b=l.next().value;
_.c8(function(){var v;(v=z.setSelectedTabSignal)==null||v.call(z,I)});
return _.N("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.N("div",{class:"ytTabbedViewModelTabGroup"},_.N(_.We4,{shape:function(){var v=z.data(),M=[],x={tabs:M};if(!v.tabs)return x;v=_.D(v.tabs);for(var g=v.next(),G={};!g.done;G={tabViewModel:void 0},g=v.next())if(G.tabViewModel=_.k(g.value,VDI),G.tabViewModel){var u=g=void 0;M.push({aTagConfig:{onclick:function(Z){return function(){var H;b((H=Z.tabViewModel.tabIdentifier)!=null?H:"")}}(G)},
identifier:G.tabViewModel.tabIdentifier,selected:I()===G.tabViewModel.tabIdentifier,title:(u=(g=G.tabViewModel.title)==null?void 0:g.content)!=null?u:""})}return x}})),_.N(_.TS,{data:function(){var v,M=_.D((v=z.data().tabs)!=null?v:[]);
for(v=M.next();!v.done;v=M.next())if((v=_.k(v.value,VDI))&&v.tabIdentifier===I())return v.content}},{fantasyRosterViewModel:LeM}))},"pe");_.uO(_.P(function(z){var l=_.D(s91()),I=l.next().value,b=l.next().value;return _.N("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.N(_.Rf,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return z.data().title}}),_.N(_.E,{cond:function(){return z.data().tabbedViewModel},
then:function(v){return _.N(_.TS,{data:v},{tabbedViewModel:function(M){return _.N(UP_,{data:M.data,setSelectedTabSignal:b})}})}}),_.N(_.E,{cond:function(){var v,M=(v=_.k(z.data().tabbedViewModel,jfj))==null?void 0:v.tabs;
v=_.k(M==null?void 0:M[0],VDI);M=_.k(M==null?void 0:M[1],VDI);var x=v==null?void 0:v.tabIdentifier;if(I()===x){var g,G;if(!((g=_.k(v==null?void 0:v.content,ygj))==null?0:(G=g.players)==null?0:G.length))return z.data().noUserTeamPlayersText}else{var u,Z;if(!((u=_.k(M==null?void 0:M.content,ygj))==null?0:(Z=u.players)==null?0:Z.length))return z.data().noOpponentTeamPlayersText}},
then:function(v){return _.N(_.Rf,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:v})}}))},"qe"),"ytw-fantasy-matchup-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){return _.N("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.N(_.Rf,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return z.data().title}}),_.N(_.E,{cond:function(){return z.data().matchupTeamPairs},
then:function(l){return _.N(_.qy,{each:l,keyBy:"INDEX"},function(I){return _.N("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.N(_.TS,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(b){return _.N(ewn,{data:b.data,
compact:!0})}}))})}}))},"re"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=function(){var v,M,x;return(x=(v=z.data().userLogoAccessibility)==null?void 0:(M=v.accessibilityData)==null?void 0:M.label)!=null?x:""},I=function(){var v,M,x;
return(x=(v=z.data().opponentLogoAccessibility)==null?void 0:(M=v.accessibilityData)==null?void 0:M.label)!=null?x:""},b=_.F1(I3f,function(){return z.data().entityKey});
return _.N("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.N("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.N(_.E,{cond:function(){return z.data().userLogo},
then:function(v){return _.N(_.pK,{className:"ytwFantasyWinProbabilityViewModelLogo",data:v,alt:l})}}),_.N("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.N(_.Rf,{text:function(){return z.data().title}})),_.N(_.E,{cond:function(){return z.data().opponentLogo},
then:function(v){return _.N(_.pK,{className:"ytwFantasyWinProbabilityViewModelLogo",data:v,alt:I})}})),_.N("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.N("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.N(_.Rf,{text:function(){var v;
return(v=b())==null?void 0:v.userWinNumberLabel}})),_.N("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.N("div",{class:_.m9("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.XV({flex:function(){var v,M;return(M=(v=b())==null?void 0:v.userWinNumber)!=null?M:50}})}),_.N("div",{class:_.m9("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.XV({flex:function(){var v,M;return(M=(v=b())==null?void 0:v.opponentWinNumber)!=null?M:50}})})),_.N("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.N(_.Rf,{text:function(){var v;
return(v=b())==null?void 0:v.opponentWinNumberLabel}}))))},"se"),"fantasy-win-probability-view-model",{props:{data:_.mB}});var anz={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Vvn=_.P(function(z){return _.N(_.TS,{data:z.button},{buttonViewModel:function(l){return _.N(_.h4,{data:l.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"te"),jiM=_.P(function(z){return _.N("ytd-backstage-locked-post-view-model",{class:_.m9("ytdBackstageLockedPostViewModelHost",z.className)},_.N("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.N("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.N(_.TS,
{data:function(){return z.data().authorAvatar}},{decoratedAvatarViewModel:_.xQ})),_.N("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.N("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.N(_.Rf,{text:function(){return z.data().authorText}})),_.N("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.N(_.Rf,{text:function(){return z.data().publishedTimeText}}),_.N(_.TS,{data:function(){return z.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(l){return _.N(OSj,
{data:l.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.N("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.N(_.Rf,{text:function(){return z.data().contentText}})),_.N(_.Q7,null,_.N(_.is,{when:function(){return z.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.N("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.N(_.pK,{data:anz,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.N(_.Rf,{text:function(){return z.data().lockedText}}))}),_.N(_.is,{when:function(){return z.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.N("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.N("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.N(_.pK,{data:anz,
alt:""})),_.N(_.Rf,{text:function(){return z.data().lockedText}}))})),_.N("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.N(Vvn,{button:function(){return z.data().likeButton}}),_.N("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return z.data().voteCountA11y}},_.N(_.Rf,{text:function(){return z.data().voteCount}})),_.N(Vvn,{button:function(){return z.data().dislikeButton}}),_.N(Vvn,{button:function(){return z.data().commentButton}}),_.N("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return z.data().commentCountA11y}},_.N(_.Rf,{text:function(){return z.data().commentCount}}))))},"ue");
jiM.idomCompat=!0;_.uO(jiM,"ytd-backstage-locked-post-view-model",{props:{data:_.mB,className:_.mB}});_.sW("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var fA=function(){var z=_.q.apply(this,arguments)||this;z.darkerPanels=_.C("web_watch_darker_panels");z.commentsHidePanelButton=!1;z.isWatchGrid=!1;z.continuationShowButton=!1;z.isSearch=!1;z.isConstrainedList=!1;z.isWatch=!1;z.eligibleToSwitchToGrid=!1;z.useBigThumbs=!1;z.notSticky=!1;z.epRestyle=!1;z.isCarouselInFeed=!0;z.topSpacingZero=!1;z.continuationIsInitialLoad=!0;z.enableSqueezebackPanels=_.C("web_shorts_enable_squeezeback_panels");z.enableAnchoredPanel=_.C("desktop_shorts_v2_anchored_panel");
z.mastheadHeight=0;z.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};z.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return z};
_.m(fA,_.q);_.p=fA.prototype;_.p.updateLockupContainerTypes=function(z){if(this.eligibleToSwitchToGrid){var l;(l=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||l.forEach(function(I){I.containerType=z})}};
_.p.getItemsPath=function(){return"data.contents"};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.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",
gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",
hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",
macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",
offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",
playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.C("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.C("kevlar_low_priority_continuation")}}};
_.p.created=function(){};
_.p.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.p.handleIntersect=function(z){this.notSticky=z[0].intersectionRatio===1};
_.p.attached=function(){var z=this,l=_.C("web_item_section_sticky_header_use_scroll_as_fallback");l||document.addEventListener("scroll",_.KJ(this,this.updateHeaderState));var I;this.mastheadHeight=((I=document.querySelector("ytd-masthead"))==null?void 0:I.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(b){z.handleIntersect(b)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):l&&document.addEventListener("scroll",_.KJ(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){z.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){document.removeEventListener("scroll",_.KJ(this,this.updateHeaderState));var z;(z=this.intersectionObserver)==null||z.disconnect();var l;(l=this.resizeObserver)==null||l.disconnect()};
_.p.updated=function(z){z.has("data")&&this.updateHeaderState()};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Z6u(!this.notSticky))};
_.p.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var z=_.Hy(this.hostElement).querySelector("ytd-comments-header-renderer");z&&(z.hidePanelButton=this.commentsHidePanelButton)}};
_.p.onRetrieveLocation=function(z,l){this.containsComments()&&(this.firstCommentsLoaded=l.hasComments=!0)};
_.p.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.p.onLoadReloadContinuation=function(z,l){var I=this;z.stopPropagation();this.isReloading=!0;_.gC(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(b){var v=_.pG().resolve(_.wD);b=l(b);v.postData(b).then(function(M){I.onReloadContinuationData(M)})}})};
_.p.onReloadContinuationData=function(z){if(z=this.get("response.continuationContents.itemSectionContinuation",z)||this.get("response.contents.itemSectionRenderer",z)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",z)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",z))this.set("data.contents",z.contents||z.results),z.header&&this.set("data.header",z.header),this.set("data.continuations",
z.continuations||[]);this.isReloading=!1};
_.p.computeContentsClass=function(z){return z?"reloading":""};
_.p.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.p.computeSectionIdentifier=function(z){return z==null?void 0:z.sectionIdentifier};
_.p.computeFitContainer=function(z){return(z==null?void 0:z.sectionIdentifier)==="youchat-item-section"};
_.p.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.C("kevlar_disable_comments_auto_load")};
_.p.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.p.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeHasDestinationShelfRenderer=function(z){var l,I;return!!(z==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:I.destinationShelfRenderer)};
_.p.computeHasSectionGroupViewModel=function(z){var l,I;return!!(z==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:I.sectionGroupViewModel)};
_.p.computeHasQrCodeRenderer=function(z){var l,I;return!!(z==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:I.qrCodeRenderer)};
_.p.computeStaticCommentsHeader=function(z){return z&&this.containsComments()};
_.p.computeEpRestyle=function(z){return _.C("web_ep_restyling")&&z&&this.containsComments()};
_.p.computeIsContinuationCommentSection=function(z){return(z==null?void 0:z.targetId)==="shorts-engagement-panel-comments-section"||(z==null?void 0:z.targetId)==="comments-section"||(z==null?void 0:z.targetId)==="engagement-panel-comments-section"};
_.p.computeSuppressPaddingDisclaimer=function(){var z,l,I,b;return!!((z=this.data)==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:(b=I.productListHeaderRenderer)==null?0:b.suppressPaddingDisclaimer)};
_.p.computeHeaderStyle=function(z){switch(z==null?void 0:z.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.p.dataChanged=function(){this.firstCommentsLoaded=!1};
_.p.observeDataContentsLength=function(){var z,l;((z=this.data)==null?0:(l=z.contents)==null?0:l.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.p.onYtDismissibleItemDismissedChange=function(z){this._setItemDismissed(z.type==="yt-dismissible-item-dismissed")};
_.p.triggerContinuations=function(){for(var z=_.Hy(this.hostElement).querySelector("#continuations").children,l=0;l<z.length;l++)z[l].trigger()};
_.p.triggerInitialContinuations=function(){for(var z=_.Hy(this.hostElement).querySelector("#continuations").children,l=0;l<z.length;l++)z[l].triggerIfNotPreviouslyTriggered()};
_.p.handleYtItemSectionContinuation=function(z,l){var I;l&&((I=this.data)==null?void 0:I.sectionIdentifier)!==l||(this.set("data.continuations",[z]),this.triggerContinuations())};
_.p.handleYtItemSectionReplace=function(z,l){var I;l&&((I=this.data)==null?void 0:I.sectionIdentifier)!==l||(this.set("data.contents",z),this.set("data.continuations",[]))};
_.p.computeUseHeightHack=function(z){return z&&!_.C("kevlar_disable_height_hack")};
_.p.computeTopSpacingZero=function(z){return z};
_.p.continuationShowButtonChanged=function(){var z=_.Hy(this.hostElement).querySelector("ytd-continuation-item-renderer");z&&(z.showButton=this.continuationShowButton)};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("data-changed",this.data))};
_.vP.Object.defineProperties(fA.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.C("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.C("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b,v,M,x;return!!((z=this.data)==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:(b=I.shelfRenderer)==null?0:(v=b.content)==null?0:(M=v.gridRenderer)==null?0:(x=M.targetId)==null?0:x.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.contents)==null?0:(I=l[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.gk("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.C("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.C("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
fA.prototype.dataChangedForBinding=fA.prototype.dataChangedForBinding;fA.prototype.continuationShowButtonChanged=fA.prototype.continuationShowButtonChanged;fA.prototype.onYtDismissibleItemDismissedChange=fA.prototype.onYtDismissibleItemDismissedChange;fA.prototype.observeDataContentsLength=fA.prototype.observeDataContentsLength;fA.prototype.dataChanged=fA.prototype.dataChanged;fA.prototype.onServiceRequestCompleted=fA.prototype.onServiceRequestCompleted;fA.prototype.onLoadReloadContinuation=fA.prototype.onLoadReloadContinuation;
fA.prototype.onRetrieveLocation=fA.prototype.onRetrieveLocation;fA.prototype.commentsHidePanelButtonChanged=fA.prototype.commentsHidePanelButtonChanged;fA.prototype.dispatchChipBarIsSticky=fA.prototype.dispatchChipBarIsSticky;fA.prototype.updateLockupContainerTypes=fA.prototype.updateLockupContainerTypes;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],fA.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],fA.prototype,"ytLazyListBehavior",void 0);_.e([_.t(_.kH.YtNextContinuationBehavior),_.w("design:type",Object)],fA.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.t(_.C6),_.w("design:type",Object)],fA.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],fA.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],fA.prototype,"ytdReduxBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fA.prototype,"darkerPanels",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Boolean)],fA.prototype,"engagementPanel",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"commentsHidePanelButton",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"isWatchGrid",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"continuationShowButton",void 0);_.e([_.X({computed:"computeIsContinuationCommentSection(data)"}),_.w("design:type",Boolean)],fA.prototype,"continuationIsCommentsSection",void 0);
_.e([_.X({value:!0}),_.w("design:type",Boolean)],fA.prototype,"autoFill",void 0);_.e([_.X(),_.w("design:type",Boolean)],fA.prototype,"continuationDisablePrescanVisibility",void 0);_.e([_.X(),_.w("design:type",Boolean)],fA.prototype,"isReloading",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"isSearch",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"isConstrainedList",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"isWatch",void 0);
_.e([_.X(),_.w("design:type",Object)],fA.prototype,"eligibleToSwitchToGrid",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"useBigThumbs",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fA.prototype,"notSticky",void 0);_.e([_.X({selector:_.Wr}),_.w("design:type",Object)],fA.prototype,"isGridViewEnabled",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.w("design:type",Object)],fA.prototype,"epRestyle",void 0);_.e([_.B("isWatch"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"hideShortsShelfHeader",null);_.e([_.B("isSearch","isWatch"),_.w("design:type",String),_.w("design:paramtypes",[])],fA.prototype,"thumbnailWidth",null);
_.e([_.B("isSearch","containerWidth"),_.w("design:type",Object),_.w("design:paramtypes",[])],fA.prototype,"thumbnailTargetWidth",null);_.e([_.B("isSearch","isWatch"),_.w("design:type",String),_.w("design:paramtypes",[])],fA.prototype,"sizing",null);_.e([_.B("isWatch","isGridViewEnabled","useBigThumbs","data"),_.X({reflectToAttribute:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],fA.prototype,"lockupContainerType",null);
_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"hasHeader",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"expFixPlaylistHeader",null);_.e([_.By("lockupContainerType","data"),_.w("design:type",Function),_.w("design:paramtypes",[Number]),_.w("design:returntype")],fA.prototype,"updateLockupContainerTypes",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],fA.prototype,"pageSubtype",void 0);_.e([_.X({computed:"computeContainerWidth()"}),_.w("design:type",Number)],fA.prototype,"containerWidth",void 0);_.e([_.X(),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"isPlaylist",null);_.e([_.X(),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"isClipList",null);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"isCarouselInFeed",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"isPlaylistVideoContainer",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"isSearchFrictionPage",null);_.e([_.X({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.w("design:type",Boolean)],fA.prototype,"useHeightHack",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.w("design:type",Object)],fA.prototype,"topSpacingZero",void 0);_.e([_.X({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.w("design:type",Boolean)],fA.prototype,"showButton",void 0);_.e([_.X(),_.w("design:type",Boolean)],fA.prototype,"firstCommentsLoaded",void 0);_.e([_.X(),_.w("design:type",Object)],fA.prototype,"continuationIsInitialLoad",void 0);
_.e([_.X({reflectToAttribute:!0,readOnly:!0}),_.w("design:type",Boolean)],fA.prototype,"itemDismissed",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.w("design:type",String)],fA.prototype,"sectionIdentifier",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.w("design:type",String)],fA.prototype,"fitContainer",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.w("design:type",Boolean)],fA.prototype,"hasDestinationShelfRenderer",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.w("design:type",Boolean)],fA.prototype,"staticCommentsHeader",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fA.prototype,"enableSqueezebackPanels",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fA.prototype,"enableAnchoredPanel",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.w("design:type",Boolean)],fA.prototype,"hasSectionGroupViewModel",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.w("design:type",Boolean)],fA.prototype,"hasQrCodeRenderer",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.w("design:type",Boolean)],fA.prototype,"suppressDisclaimerSeparator",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.w("design:type",String)],fA.prototype,"headerStyle",void 0);_.e([_.B("isSearch"),_.w("design:type",Object),_.w("design:paramtypes",[])],fA.prototype,"lockupExperiments",null);
_.e([_.B("isSearch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fA.prototype,"typographyBump",null);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],fA.prototype,"header",void 0);_.e([_.By("notSticky"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"dispatchChipBarIsSticky",null);
_.e([_.By("commentsHidePanelButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"commentsHidePanelButtonChanged",null);_.e([_.tP("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],fA.prototype,"onRetrieveLocation",null);
_.e([_.tP("yt-load-reload-continuation"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Function]),_.w("design:returntype")],fA.prototype,"onLoadReloadContinuation",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"onServiceRequestCompleted",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"dataChanged",null);
_.e([_.YE("data.contents.length"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"observeDataContentsLength",null);_.e([_.tP("yt-dismissible-item-dismissed"),_.tP("yt-dismissible-item-undismissed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],fA.prototype,"onYtDismissibleItemDismissedChange",null);
_.e([_.By("continuationShowButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"continuationShowButtonChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fA.prototype,"dataChangedForBinding",null);_.e([_.S({is:"ytd-item-section-renderer",disableElementRegistration:!0})],fA);
_.r(fA,"ytd-item-section-renderer",function(){if(Dsu!==void 0)return Dsu;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Dsu=z},{mode:1});var JF_;var edQ=_.lc(_.mY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var zTu={},$Hu=(zTu[0]={title:_.xw(_.mY("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xw(_.mY("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.MF("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},zTu[1]={title:_.xw(_.mY("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.MF("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},zTu);_.sW("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var CA=function(){var z=_.q.apply(this,arguments)||this;z.allVideosCount=0;z.allPlaylistCount=0;z.isOnline=!1;z.shouldRenderDownloadsBanner=!1;z.shouldRenderDownloadsBannerUpsell=!1;z.hasOptedIntoSmartDownloads=!1;z.areAllSmartDownloadsDeleted=!1;z.smartDownloadsCompleted=!1;return z};
_.m(CA,_.q);CA.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
CA.prototype.attached=function(){this.downloadsToRenderChanged()};
CA.prototype.detached=function(){this.set("renderableData",{})};
CA.prototype.downloadsToRenderChanged=function(){var z=_.vF().getState().entities,l=_.dg(z),I=_.C("kevlar_playlist_dl_page_killswitch")?ILp(z):_.oh(z),b=_.U1p(z),v=_.JM5(z),M=_.Fs(l);z=_.Pg(z);this.set("renderableData",A0$(I,l,b,v,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,M,z))};
CA.prototype.downloadsToRenderChanged=CA.prototype.downloadsToRenderChanged;_.e([_.t(_.gU),_.w("design:type",Object)],CA.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],CA.prototype,"renderableData",void 0);_.e([_.X({selector:_.ZqQ}),_.w("design:type",Object)],CA.prototype,"allVideosCount",void 0);_.e([_.X({selector:c67}),_.w("design:type",Object)],CA.prototype,"allPlaylistCount",void 0);_.e([_.X({selector:_.eS}),_.w("design:type",Object)],CA.prototype,"isOnline",void 0);_.e([_.X({selector:_.mG7}),_.w("design:type",Object)],CA.prototype,"shouldRenderDownloadsBanner",void 0);
_.e([_.X({selector:_.X2f}),_.w("design:type",Object)],CA.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.e([_.X({selector:_.KvH}),_.w("design:type",Object)],CA.prototype,"hasOptedIntoSmartDownloads",void 0);_.e([_.X({selector:_.tCt}),_.w("design:type",Object)],CA.prototype,"areAllSmartDownloadsDeleted",void 0);_.e([_.X({selector:B3H}),_.w("design:type",Object)],CA.prototype,"smartDownloadsCompleted",void 0);
_.e([_.YE("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CA.prototype,"downloadsToRenderChanged",null);_.e([_.S({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],CA);
_.r(CA,"ytd-offline-item-section-renderer",function(){if(JF_!==void 0)return JF_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return JF_=z},
{mode:1});var l5M;var I50;var k6=function(){return _.q.apply(this,arguments)||this};
_.m(k6,_.q);
k6.prototype.onDataChanged=function(){if(this.JSC$16695_lastData){var z=this.getFilterClass(this.JSC$16695_lastData.status);z&&this.hostElement.classList.remove(z)}var l;(z=this.getFilterClass((l=this.data)==null?void 0:l.status))&&this.hostElement.classList.add(z);z==="selected"?_.Hy(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Hy(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");z==="disabled"?_.Hy(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Hy(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16695_lastData=this.data};
k6.prototype.getFilterClass=function(z){switch(z){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
k6.prototype.onDataChanged=k6.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],k6.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],k6.prototype,"onDataChanged",null);_.e([_.S({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],k6);
_.r(k6,"ytd-search-filter-renderer",function(){if(I50!==void 0)return I50;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return I50=z},{mode:_.yP("kevlar_poly_si_batch_j075")?1:2});var Rv=function(){return _.q.apply(this,arguments)||this};
_.m(Rv,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Rv.prototype,"data",void 0);_.e([_.S({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Rv);
_.r(Rv,"ytd-search-filter-group-renderer",function(){if(l5M!==void 0)return l5M;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return l5M=z},{mode:_.yP("kevlar_poly_si_batch_j075")?1:2});var b__;var mU=function(){return _.q.apply(this,arguments)||this};
_.m(mU,_.q);mU.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Y4());this.isCollapsed=!this.isCollapsed};
mU.prototype.navigateToAboutTheseResultsPage=function(){var z=_.r0("https://www.youtube.com/howyoutubeworks/product-features/search/");z?_.zg(window,z,"_blank"):_.$P(Error("Xh"))};
mU.prototype.dataChanged=function(){this.isCollapsed=!0};
mU.prototype.computeShowBottomBorder=function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.button)==null?0:l.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
mU.prototype.dataChanged=mU.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mU.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.w("design:type",Boolean)],mU.prototype,"showBottomBorder",void 0);_.e([_.X(),_.w("design:type",Boolean)],mU.prototype,"renderCollapsibleMenu",void 0);
_.e([_.X(),_.w("design:type",Boolean)],mU.prototype,"isCollapsed",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mU.prototype,"dataChanged",null);_.e([_.S({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],mU);
_.r(mU,"ytd-search-sub-menu-renderer",function(){if(b__!==void 0)return b__;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return b__=z},{mode:1});var vcA;var MPj=new _.yH("SECTION_LIST_RENDERER_TOKEN");var pqn;var KA=function(){return _.q.apply(this,arguments)||this};
_.m(KA,_.q);KA.prototype.computeStyle=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],KA.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],KA.prototype,"headerStyle",void 0);_.e([_.S({is:"ytd-text-header-renderer",disableElementRegistration:!0})],KA);
_.r(KA,"ytd-text-header-renderer",function(){if(pqn!==void 0)return pqn;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return pqn=z},{mode:1});var D7z;var t9=function(){return _.q.apply(this,arguments)||this};
_.m(t9,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],t9.prototype,"data",void 0);_.e([_.S({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],t9);
_.r(t9,"ytd-minor-moment-header-renderer",function(){if(D7z!==void 0)return D7z;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return D7z=z},{mode:1});var x7n;var Bi=function(){return _.q.apply(this,arguments)||this};
_.m(Bi,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Bi.prototype,"data",void 0);_.e([_.S({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Bi);
_.r(Bi,"ytd-minor-moment-setting-alert-renderer",function(){if(x7n!==void 0)return x7n;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return x7n=z},{mode:1});var O_w;var gcn;var XM=function(){var z=_.q.apply(this,arguments)||this;z.booleanSettingById=!1;z.smartDownloadsEnabledVE=_.kU(128287);z.smartDownloadsDisabledVE=_.kU(128286);z.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return z};
_.m(XM,_.q);_.p=XM.prototype;_.p.attachSmartDownloadsSettingVes=function(){var z;this.activeVeForLogging||((z=this.data)==null?void 0:z.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.oc(_.iY(),this.smartDownloadsEnabledVE),_.oc(_.iY(),this.smartDownloadsDisabledVE))};
_.p.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.gC(this.hostElement,"yt-settings-switch-ready")};
_.p.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.p.onSwitchChange=function(z){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(z=_.pJ(z).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.C("kevlar_settings_switch_resolve_command_killswitch")?_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(z)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.p.handleUpdateSettingsSwitch=function(z){(z=_.k(z,PC0))&&this.data&&this.data.id===z.id&&this.set("data.enabled",!!z.enabled)};
_.p.onToggleSettingsSwitch=function(z,l){this.data&&this.data.id===z&&this.set("data.enabled",l!=null?l:!this.data.enabled)};
_.p.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Bf.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.p.maybeLogSmartDownloadsSettingVisibility=function(){var z=_.sU(),l;z&&((l=this.data)==null?void 0:l.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Vi(z,[this.smartDownloadsEnabledVE]),_.j_(z,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Vi(z,[this.smartDownloadsDisabledVE]),_.j_(z,[this.smartDownloadsEnabledVE])))};
_.p.maybeLogSmartDownloadsSettingClick=function(){var z;((z=this.data)==null?void 0:z.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.hM(_.iY(),this.activeVeForLogging)};
_.p.updateDataEnabledFromBinding=function(z){this.set("data.enabled",z.detail.value)};
_.vP.Object.defineProperties(XM.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var z=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!z&&(z=this.ytRendererBehavior.getSimpleString(this.data.title));return z}}});
XM.prototype.dataChanged=XM.prototype.dataChanged;_.e([_.t(_.gU),_.w("design:type",Object)],XM.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],XM.prototype,"data",void 0);_.e([_.X({selector:function(z,l){if(Object.keys(z==null?void 0:z.entities).length)switch(l){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return bqx(z.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.w("design:type",Object)],XM.prototype,"booleanSettingById",void 0);_.e([_.X(),_.w("design:type",PP)],XM.prototype,"activeVeForLogging",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],XM.prototype,"toggleAriaLabel",null);_.e([_.YE("data"),_.YE("booleanSettingById"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],XM.prototype,"dataChanged",null);
_.e([_.S({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],XM);
_.r(XM,"ytd-settings-switch-renderer",function(){if(gcn!==void 0)return gcn;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return gcn=z},{mode:1});var qS=function(){return _.q.apply(this,arguments)||this};
_.m(qS,_.q);qS.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}}}}};
_.vP.Object.defineProperties(qS.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var z=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(z+=" remove-left-margin");this.data.extraBottomSpace&&(z+=" extra-bottom-space");return z}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qS.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],qS.prototype,"contentsClassName",null);_.e([_.S({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],qS);
_.r(qS,"ytd-minor-moment-setting-section-renderer",function(){if(O_w!==void 0)return O_w;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return O_w=z},{mode:1});var GGu;var ip=function(){return _.q.apply(this,arguments)||this};
_.m(ip,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ip.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ip.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],ip);
_.r(ip,"ytd-empty-product-details-renderer",function(){if(GGu!==void 0)return GGu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return GGu=z},{mode:1});var NY0;var EcI;var FM=function(){var z=_.q.apply(this,arguments)||this;z.expanded=!0;return z};
_.m(FM,_.q);FM.prototype.getBadgeRowClass=function(z,l,I){for(var b=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),v=b.next();!v.done;v=b.next())v.value.onShow();z=z.selected;return I?z!==-1?z===l?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(z!==void 0?z:0)===l?"badge-line":"badge-hidden"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],FM.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],FM.prototype,"expanded",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],FM);
_.r(FM,"ytd-sponsorships-loyalty-badges-renderer",function(){if(EcI!==void 0)return EcI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return EcI=z},{mode:1});var u_n;var Qc=function(){var z=_.q.apply(this,arguments)||this;z.expanded=!0;return z};
_.m(Qc,_.q);Qc.prototype.getContainerClasses=function(z,l){z=z?"expanded":"collapsed";l&&(z+=" item");return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Qc.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Qc.prototype,"expanded",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Qc);
_.r(Qc,"ytd-sponsorships-perk-renderer",function(){if(u_n!==void 0)return u_n;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return u_n=z},{mode:1});var Z__;var Y6=function(){var z=_.q.apply(this,arguments)||this;z.expanded=!0;return z};
_.m(Y6,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Y6.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Y6.prototype,"expanded",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Y6);
_.r(Y6,"ytd-sponsorships-perks-renderer",function(){if(Z__!==void 0)return Z__;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Z__=z},{mode:1});var TA=function(){var z=_.q.apply(this,arguments)||this;z.isCollapsed=!1;return z};
_.m(TA,_.q);TA.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
TA.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
TA.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var z;this.expandCollapseButton=_.k((z=this.data)==null?void 0:z.expandButton,_.xm)}else{var l;this.expandCollapseButton=_.k((l=this.data)==null?void 0:l.collapseButton,_.xm)}};
TA.prototype.updateExpandCollapseButton=TA.prototype.updateExpandCollapseButton;TA.prototype.onDataChanged=TA.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TA.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TA.prototype,"isCollapsed",void 0);_.e([_.X(),_.w("design:type",Object)],TA.prototype,"expandCollapseButton",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TA.prototype,"onDataChanged",null);_.e([_.YE("data","isCollapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TA.prototype,"updateExpandCollapseButton",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],TA);
_.r(TA,"ytd-sponsorships-expandable-perks-renderer",function(){if(NY0!==void 0)return NY0;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return NY0=z},{mode:1});var H_M;var ci=function(){return _.q.apply(this,arguments)||this};
_.m(ci,_.q);ci.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ci.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],ci);
_.r(ci,"ytd-sponsorships-actionable-message-renderer",function(){if(H_M!==void 0)return H_M;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return H_M=z},{mode:1});var yDn;var Su=function(){return _.q.apply(this,arguments)||this};
_.m(Su,_.q);_.p=Su.prototype;_.p.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.p.getExpansionIcon=function(z){return z?"COLLAPSE":"EXPAND"};
_.p.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.computeMessageContainerStyle=function(z){var l=z.expandableItems?" style-clickable":"";return z.messageContainerStyle?z.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+l:"style-unspecified"+l};
_.p.isSinglePerk=function(z){return!!z.messageContainerStyle&&(z.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||z.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.p.onExpandedChanged=function(){var z=this;if(this.expanded)for(var l=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),I=l.next();!I.done;I=l.next())I.value.onShow();_.IR(this,function(){_.gC(z.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Su.prototype.onDataChanged=Su.prototype.onDataChanged;Su.prototype.onExpandedChanged=Su.prototype.onExpandedChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Su.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Su.prototype,"expanded",void 0);
_.e([_.By("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Su.prototype,"onExpandedChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Su.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Su);
_.r(Su,"ytd-sponsorships-expandable-message-renderer",function(){if(yDn!==void 0)return yDn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yDn=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var f5u;var da=function(){return _.q.apply(this,arguments)||this};
_.m(da,_.q);da.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"}}}}};
da.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.k(this.data.endButton,_.xm).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
da.prototype.onDataChanged=da.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],da.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],da.prototype,"onDataChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],da);
_.r(da,"ytd-sponsorships-heading-renderer",function(){if(f5u!==void 0)return f5u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return f5u=z},{mode:1});var CNu;var ov=function(){return _.q.apply(this,arguments)||this};
_.m(ov,_.q);_.e([_.X(),_.w("design:type",Object)],ov.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],ov);
_.r(ov,"ytd-sponsorships-links-renderer",function(){if(CNu!==void 0)return CNu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return CNu=z},{mode:1});var kGA;var Pi=function(){return _.q.apply(this,arguments)||this};
_.m(Pi,_.q);_.p=Pi.prototype;_.p.onDataChanged=function(){if(this.data&&this.data.expandableItems){var z;(z=_.Hy(this.hostElement).querySelector("tp-yt-paper-button"))==null||z.setAttribute("role","button")}else{var l;(l=_.Hy(this.hostElement).querySelector("tp-yt-paper-button"))==null||l.removeAttribute("role")}};
_.p.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.getExpansionIcon=function(z){return z?"COLLAPSE":"EXPAND"};
_.p.getTileClasses=function(z){return z?"tile expandable-tile":"tile"};
_.p.getButtonDisabled=function(z){return z?void 0:""};
Pi.prototype.onDataChanged=Pi.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Pi.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Pi.prototype,"expanded",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pi.prototype,"onDataChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Pi);
_.r(Pi,"ytd-sponsorships-list-tile-renderer",function(){if(kGA!==void 0)return kGA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return kGA=z},{mode:1});var RTA;var m7_;var h9=function(){return _.q.apply(this,arguments)||this};
_.m(h9,_.q);h9.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],h9.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],h9);
_.r(h9,"ytd-sponsorships-promotion-renderer",function(){if(m7_!==void 0)return m7_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return m7_=z},{mode:1});var K4p;var s_=function(){return _.q.apply(this,arguments)||this};
_.m(s_,_.q);s_.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],s_.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],s_);
_.r(s_,"ytd-sponsorships-purchase-option-renderer",function(){if(K4p!==void 0)return K4p;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return K4p=z},{mode:1});var tPM;var BYz;var Xq0=function(){return _.q.apply(this,arguments)||this};
_.m(Xq0,_.q);_.e([_.X(),_.w("design:type",Object)],Xq0.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Xq0);
_.r(Xq0,"ytd-ypc-offer-promo-renderer",function(){if(BYz!==void 0)return BYz;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return BYz=z},{mode:1});var ra=function(){return _.q.apply(this,arguments)||this};
_.m(ra,_.q);_.p=ra.prototype;
_.p.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"}}}}};
_.p.expansionCTA=function(z,l){return z&&(l?z.collapseCallToAction:z.expansionCallToAction)};
_.p.getExpansionIcon=function(z){return z?"COLLAPSE":"EXPAND"};
_.p.expansionCallToActionTap=function(){var z=this;this.expanded=!this.expanded;_.IR(this,function(){_.gC(z.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var z,l=(z=this.data)==null?void 0:z.onVisible;l&&this.ytComponentBehavior.resolveCommand(l)};
_.p.computeDisplayTitle=function(z){return!(!z||this.titledisplaystatus!=="show")};
_.p.computeDisplaySeparator=function(){return!1};
_.p.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
ra.prototype.onDataChanged=ra.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ra.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ra.prototype,"data",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],ra.prototype,"expanded",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],ra.prototype,"purchaseButtonClicked",void 0);_.e([_.X({reflectToAttribute:!0,value:"show"}),_.w("design:type",String)],ra.prototype,"titledisplaystatus",void 0);_.e([_.X({computed:"computeDisplayTitle(data.title)"}),_.w("design:type",Boolean)],ra.prototype,"displayTitle",void 0);
_.e([_.X({computed:"computeDisplaySeparator(data)"}),_.w("design:type",Boolean)],ra.prototype,"displaySeparator",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ra.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],ra);
_.r(ra,"ytd-sponsorships-tier-renderer",function(){if(tPM!==void 0)return tPM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tPM=z},{mode:2});var $6=function(){return _.q.apply(this,arguments)||this};
_.m($6,_.q);
$6.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$6.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],$6);
_.r($6,"ytd-sponsorships-management-renderer",function(){if(RTA!==void 0)return RTA;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return RTA=z},{mode:1});var qGM;var eu=function(){return _.q.apply(this,arguments)||this};
_.m(eu,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],eu.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],eu);
_.r(eu,"ytd-open-in-native-app-view-model",function(){if(qGM!==void 0)return qGM;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return qGM=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var i__;var F4_;var Qbj=_.zs(["top-"]),YG0=_.zs(["bottom-"]),TYp=_.zs(["left-"]),cDj=_.zs(["right-"]),SG4={},d7u=function(z,l,I){z.removeAttribute("top-"+I);z.removeAttribute("bottom-"+I);z.removeAttribute("left-"+I);z.removeAttribute("right-"+I);l&&(l.top&&_.D1([_.Nj(Qbj)],z,"top-"+I,l.top),l.bottom&&_.D1([_.Nj(YG0)],z,"bottom-"+I,l.bottom),l.left&&_.D1([_.Nj(TYp)],z,"left-"+I,l.left),l.right&&_.D1([_.Nj(cDj)],z,"right-"+I,l.right))};
SG4.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(z){var l,I=_.Hy((l=this.hostElement)!=null?l:this),b;l=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(b=this.hostElement)!=null?b:this;d7u(l,z,"margin")},
cardItemContainerPaddingChanged_:function(z){var l,I=_.Hy((l=this.hostElement)!=null?l:this),b;l=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(b=this.hostElement)!=null?b:this;d7u(l,z,"padding")}}];var wa={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var ocM;var PNM;var A9=function(){return _.q.apply(this,arguments)||this};
_.m(A9,_.q);A9.prototype.textColorChanged_=function(){this.hostElement.style.color=wa[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
A9.prototype.textColorChanged_=A9.prototype.textColorChanged_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.e([_.t(SG4.YtCardItemBoxBehavior),_.w("design:type",Object)],A9.prototype,"ytCardItemBoxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],A9.prototype,"data",void 0);_.e([_.By("data.textColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],A9.prototype,"textColorChanged_",null);
_.e([_.Wy({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],A9);
_.r(A9,"yt-card-item-text-renderer",function(){if(PNM===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ocM===void 0&&(ocM=document.createElement("template"));var b=ocM;I.call(l,b.content.cloneNode(!0),z.content.firstChild);PNM=z}z=PNM;return z},{mode:2});var hTA;var sbw;var Wi=function(){return _.q.apply(this,arguments)||this};
_.m(Wi,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Wi.prototype,"data",void 0);_.e([_.Wy({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Wi);
_.r(Wi,"yt-card-item-badge-renderer",function(){if(sbw===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;hTA===void 0&&(hTA=document.createElement("template"));var b=hTA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);sbw=z}z=sbw;return z},{mode:2});var rD_;var $7z;var nA=function(){return _.q.apply(this,arguments)||this};
_.m(nA,_.q);nA.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nA.prototype,"data",void 0);_.e([_.Wy({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],nA);
_.r(nA,"yt-card-item-text-collection-renderer",function(){if($7z===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;rD_===void 0&&(rD_=document.createElement("template"));var b=rD_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);$7z=z}z=$7z;return z},{mode:2});var eTA;var wqu;var LA=function(){return _.q.apply(this,arguments)||this};
_.m(LA,_.q);LA.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LA.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Number)],LA.prototype,"iconSize",void 0);_.e([_.Wy({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],LA);
_.r(LA,"yt-card-item-text-with-button-renderer",function(){if(wqu===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;eTA===void 0&&(eTA=document.createElement("template"));var b=eTA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);wqu=z}z=wqu;return z},{mode:2});var U_=function(){return _.q.apply(this,arguments)||this};
_.m(U_,_.q);U_.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],U_.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],U_.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],U_);
_.r(U_,"ytd-commerce-cart-summary-line-item-renderer",function(){if(F4_!==void 0)return F4_;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return F4_=z},{mode:1});_.sW("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var av=function(){var z=_.q.apply(this,arguments)||this;z.hidden=!1;return z};
_.m(av,_.q);_.p=av.prototype;_.p.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"}}}}};
_.p.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.p.updateSummary=function(){var z=this.commerceCartCheckoutButtonEntity,l;if(((l=this.data)==null?0:l.cartButton)&&z.checkoutSummaryText){var I,b=Pt((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",hQ(z.checkoutSummaryText));if(z.checkoutDetailText){var v;I=Pt((v=this.data)==null?void 0:v.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",hQ(z.checkoutDetailText))}if(z.checkoutAdditionalMetadataText){var M;
v=Pt((M=this.data)==null?void 0:M.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+v+".cardItemTextRenderer.text",hQ(z.checkoutAdditionalMetadataText))}}else z.estimatedTotalPrice&&(M=Pt((b=this.data)==null?void 0:b.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",hQ(z.estimatedTotalPrice)))};
_.p.updateIsHidden=function(){var z,l=(z=this.commerceCartCheckoutButtonEntity)==null?void 0:z.isHidden;l!==void 0&&(this.hidden=l)};
_.p.updateCheckoutButton=function(){var z,l=(z=this.commerceCartCheckoutButtonEntity)==null?void 0:z.isDisabled;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",l);var I;z=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;z!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",z);var b;I=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
av.prototype.entityChanged=av.prototype.entityChanged;_.e([_.t(_.gU),_.w("design:type",Object)],av.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],av.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],av.prototype,"fullWidth",void 0);_.e([_.X(),_.w("design:type",Object)],av.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],av.prototype,"compact",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],av.prototype,"hidden",void 0);
_.e([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:OX5}),_.w("design:type",Object)],av.prototype,"commerceCartCheckoutButtonEntity",void 0);_.e([_.By("commerceCartCheckoutButtonEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],av.prototype,"entityChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],av);
_.r(av,"ytd-commerce-cart-checkout-button-renderer",function(){if(i__!==void 0)return i__;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return i__=z},{mode:2});var AD_;_.W4M={};
_.W4M.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",_.KJ(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.KJ(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(z){!this.tappableItemBehaviorTapEnabled||z.keyCode!==13&&z.keyCode!==32||z.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var z=this.data.onTap;z.ypcGetCartEndpoint?(_.uJ(this.hostElement,[z]),this.tappableItemBehaviorTapEnabled=!1):z.ypcOffersEndpoint?_.uJ(this.hostElement,[z]):_.ZE(this.hostElement,[z],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(z){this.tappableItemBehaviorTapEnabled=!!z},
tappableItemBehaviorOnTapEnabledChanged_:function(){var z=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(z.setAttribute("tabIndex",0),z.setAttribute("role","button")):(z.removeAttribute("tabIndex"),z.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(z){z.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var ncu;var L4_;var Vc=function(){return _.q.apply(this,arguments)||this};
_.m(Vc,_.q);Vc.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ro("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ro("sharingToggleButtonAndDefaultButton")}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vc.prototype,"data",void 0);_.e([_.Wy({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Vc);
_.r(Vc,"yt-card-item-actions-renderer",function(){if(L4_===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ncu===void 0&&(ncu=document.createElement("template"));var b=ncu;I.call(l,b.content.cloneNode(!0),z.content.firstChild);L4_=z}z=L4_;return z},{mode:2});var U7A;var a5w;var VPM;var jb0;var JDM;var zg0;var ju=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return z};
_.m(ju,_.q);ju.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ju.prototype.handleDarkModeToggledAction_=function(z){this.isDarkTheme_=z};
ju.prototype.computeThemeImage_=function(z,l){if(!z||!z.imageLight)return!1;this.isCircular_=z.isCircular;z.imageWidth&&(this.hostElement.style.width=z.imageWidth+"px");z.imageHeight&&(this.hostElement.style.height=z.imageHeight+"px");z.borderWidth&&(this.image.style.borderWidth=z.borderWidth+"px",this.image.style.borderStyle="solid");z.borderColor&&(this.image.style.borderColor=_.aD(z.borderColor));return l&&z.imageDark?z.imageDark:z.imageLight};
ju.prototype.computeThemeIcon_=function(z){var l,I;if(!(z==null?0:(l=z.themedIcon)==null?0:(I=l.icon)==null?0:I.iconType))return!1;this.icon.style.color=wa[z.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(z.imageWidth||18)+"px";this.icon.style.height=(z.imageHeight||18)+"px";return _.Re(z.themedIcon.icon.iconType)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(SG4.YtCardItemBoxBehavior),_.w("design:type",Object)],ju.prototype,"ytCardItemBoxBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ju.prototype,"data",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],ju.prototype,"fit",void 0);_.e([_.X(),_.w("design:type",Boolean)],ju.prototype,"isDarkTheme_",void 0);_.e([_.X({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.w("design:type",Object)],ju.prototype,"themeImage_",void 0);_.e([_.X({computed:"computeThemeIcon_(data)"}),_.w("design:type",Object)],ju.prototype,"themeIcon_",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Object)],ju.prototype,"isCircular_",void 0);
_.e([_.qX("#image"),_.w("design:type",Object)],ju.prototype,"image",void 0);_.e([_.qX("#icon"),_.w("design:type",Object)],ju.prototype,"icon",void 0);_.e([_.Wy({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ju);
_.r(ju,"yt-themed-image-renderer",function(){if(zg0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;JDM===void 0&&(JDM=document.createElement("template"));var b=JDM;I.call(l,b.content.cloneNode(!0),z.content.firstChild);zg0=z}z=zg0;return z},{mode:2});var J9=function(){return _.q.apply(this,arguments)||this};
_.m(J9,_.q);J9.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"}}}}};
J9.prototype.computeImagePlacement_=function(z){return z||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],J9.prototype,"data",void 0);_.e([_.X({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.w("design:type",String)],J9.prototype,"imagePlacement",void 0);
_.e([_.Wy({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],J9);
_.r(J9,"yt-card-item-text-with-image-renderer",function(){if(jb0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;VPM===void 0&&(VPM=document.createElement("template"));var b=VPM;I.call(l,b.content.cloneNode(!0),z.content.firstChild);jb0=z}z=jb0;return z},{mode:2});var zy=function(){return _.q.apply(this,arguments)||this};
_.m(zy,_.q);zy.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zy.prototype,"data",void 0);_.e([_.Wy({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],zy);
_.r(zy,"yt-card-item-error-renderer",function(){if(a5w===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;U7A===void 0&&(U7A=document.createElement("template"));var b=U7A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);a5w=z}z=a5w;return z},{mode:2});var l2u;var I2_;_.sW("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var la=function(){return _.q.apply(this,arguments)||this};
_.m(la,_.q);_.p=la.prototype;
_.p.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"}}}}};
_.p.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.p.backgroundColorChanged_=function(){var z,l=(z=this.data)==null?void 0:z.backgroundColor;z=wa[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Hy(this.hostElement).querySelector("#main-content").style.backgroundColor=z};
_.p.headerPromoBackgroundColorChanged_=function(){var z,l=(z=this.data)==null?void 0:z.headerPromoBackgroundColor;z=wa[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Hy(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=z};
_.p.errorRendererVisibilityChanged_=function(){var z=this.isExpanded_,l;this.isErrorRendererVisible_=!((l=this.data)==null||!l.errorRenderer)&&!z};
_.p.onYtToggleButton_=function(z,l){this.isExpanded_=l.toggled};
la.prototype.onYtToggleButton_=la.prototype.onYtToggleButton_;la.prototype.errorRendererVisibilityChanged_=la.prototype.errorRendererVisibilityChanged_;la.prototype.headerPromoBackgroundColorChanged_=la.prototype.headerPromoBackgroundColorChanged_;la.prototype.backgroundColorChanged_=la.prototype.backgroundColorChanged_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(SG4.YtCardItemBoxBehavior),_.w("design:type",Object)],la.prototype,"ytCardItemBoxBehavior",void 0);_.e([_.t(_.W4M.YtTappableItemBehavior),_.w("design:type",Object)],la.prototype,"ytTappableItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],la.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],la.prototype,"isExpanded_",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],la.prototype,"isErrorRendererVisible_",void 0);_.e([_.By("data.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],la.prototype,"backgroundColorChanged_",null);_.e([_.By("data.headerPromoBackgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],la.prototype,"headerPromoBackgroundColorChanged_",null);
_.e([_.By("data.errorRenderer","isExpanded_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],la.prototype,"errorRendererVisibilityChanged_",null);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Object]),_.w("design:returntype")],la.prototype,"onYtToggleButton_",null);_.e([_.Wy({is:"yt-card-item-renderer",disableElementRegistration:!0})],la);
_.r(la,"yt-card-item-renderer",function(){if(I2_===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;l2u===void 0&&(l2u=document.createElement("template"));var b=l2u;I.call(l,b.content.cloneNode(!0),z.content.firstChild);I2_=z}z=I2_;return z},{mode:2});_.sW("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Ig=function(){var z=_.q.apply(this,arguments)||this;z.hidden=!1;return z};
_.m(Ig,_.q);_.p=Ig.prototype;_.p.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.p.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var z,l=(z=this.commerceCartHeaderEntity)==null?void 0:z.isHidden;l!==void 0&&(this.hidden=l)}};
_.p.updateTitle=function(){var z=this.commerceCartHeaderEntity.isDisabled,l,I,b=(I=_.k((l=this.data)==null?void 0:l.item,BIu))==null?void 0:I.headingRenderer;b&&(l=Pt(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+l+".0.cardItemTextRenderer.textColor",z?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.p.updateSummaryText=function(){var z=this.commerceCartHeaderEntity;if(this.compact){var l,I,b=(I=_.k((l=this.data)==null?void 0:l.item,BIu))==null?void 0:I.headingRenderer;b&&(l=Pt(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+l+".1.cardItemTextRenderer.text",z.shortHeaderSummaryText?hQ(z.shortHeaderSummaryText):z.headerSummaryText?hQ(z.headerSummaryText):""))}else{var v;if(l=(v=_.k((b=this.data)==null?void 0:b.item,BIu))==null?void 0:v.additionalInfoRenderer)l=Pt(l,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".text",z.headerSummaryText?hQ(z.headerSummaryText):"")}};
_.p.updateCheckoutButton=function(){var z=this.commerceCartHeaderEntity,l,I,b=(I=_.k((l=this.data)==null?void 0:l.item,BIu))==null?void 0:I.additionalInfoRenderer;l=Pt(b,"buttonRenderer");var v;I=(v=this.commerceCartHeaderEntity)==null?void 0:v.isButtonDisabled;var M;v=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".buttonRenderer.isDisabled",I);v!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
v);var x;z=(x=z.checkoutButtonCommand)==null?void 0:x.innertubeCommand;z!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".buttonRenderer.command",z)};
Ig.prototype.entityChanged=Ig.prototype.entityChanged;_.e([_.t(_.gU),_.w("design:type",Object)],Ig.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ig.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ig.prototype,"compact",void 0);_.e([_.X({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(z,l){return _.Cc(z.entities,"commerceCartHeaderEntity",l)}}),
_.w("design:type",Object)],Ig.prototype,"commerceCartHeaderEntity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ig.prototype,"hidden",void 0);_.e([_.By("commerceCartHeaderEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ig.prototype,"entityChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Ig);
_.r(Ig,"ytd-commerce-cart-header-renderer",function(){if(AD_!==void 0)return AD_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return AD_=z},{mode:1});var bW_;var vt_=_.S1(function(z,l){var I;return(I=z.onChangeCallback)==null?void 0:I.call(z,l)},1E3),MQj=_.P(function(z){var l=z.data;
var I=z.iconMinus;z=z.iconPlus;var b=function(){return!!l().disabled},v=_.D(_.Z_(0,void 0,"mKh0af")),M=v.next().value,x=v.next().value;
v=_.KK(function(){if(M()===1){var H,y;(y=(H=l()).onRemoveCommand)==null||y.call(H)}H=M()>l().maxValue?l().maxValue:M()-1;x(H);vt_(l(),H);return!1});
var g=_.KK(function(){if(M()===l().maxValue)return!1;var H=M()+1;x(H);vt_(l(),H);return!1});
_.c8(function(){x(l().value)});
var G={},u={},Z={};return _.N("quantity-incrementer-shape",null,_.N("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.N("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return M()===(l().onRemoveCommand?0:1)||b()},
"aria-label":function(){return M()!==1?l().minusLabel:l().minimumReachedLabel},
"on:click":v},_.N(_.SD,{model:{circular:!0}}),_.N("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.N("div",{class:_.m9("ytSpecQuantityIncrementerShapeIcon",(G.ytSpecQuantityIncrementerShapeIconDisabled=function(){return b()||M()===(l().onRemoveCommand?0:1)},G))},I()))),_.N("div",{class:_.m9("ytSpecQuantityIncrementerShapeText",(u.ytSpecQuantityIncrementerShapeTextInvalid=function(){return M()>l().maxValue},u.ytSpecQuantityIncrementerShapeTextDisabled=b,u))},M),_.N("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return M()>=l().maxValue||b()},
"aria-label":function(){return M()!==l().maxValue?l().plusLabel:l().maximumReachedLabel},
"on:click":g},_.N(_.SD,{model:{circular:!0}}),_.N("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.N("div",{class:_.m9("ytSpecQuantityIncrementerShapeIcon",(Z.ytSpecQuantityIncrementerShapeIconDisabled=function(){return M()>=l().maxValue||b()},Z))},z())))))},"ve");_.uO(_.P(function(z){function l(){I().onRemoveCommand&&_.ae(I().onRemoveCommand)}
var I=z.data;var b=_.F1(A1S,function(){return I().quantityIncrementerEntityKey});
return _.N("yt-quantity-incrementer-view-model",null,_.N(MQj,{data:function(){var v=I(),M;var x=b()?!((M=b())==null||!M.disabled):!1;var g;M=b()?(g=b())==null?void 0:g.quantity:I().quantity;return Lp$(v,x,l,M)},
iconMinus:function(){return _.N(_.qt,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.N(_.qt,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"we"),"yt-quantity-incrementer-view-model",{props:{data:_.mB}});var ba=function(){var z=_.q.apply(this,arguments)||this;z.compact=!1;z.hasQuantityIncrementer=!1;return z};
_.m(ba,_.q);ba.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"}}}};
ba.prototype.computeHasQuantityIncrementer=function(){var z;return!!_.k((z=this.data)==null?void 0:z.picker,F6A)};
ba.prototype.onLabelClick=function(){var z;(z=this.dropdownEl)==null||z.open()};
_.e([_.qX("ytd-dropdown-renderer"),_.w("design:type",Object)],ba.prototype,"dropdownEl",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ba.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],ba.prototype,"quantityColor",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ba.prototype,"compact",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.w("design:type",Object)],ba.prototype,"hasQuantityIncrementer",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],ba);
_.r(ba,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(bW_!==void 0)return bW_;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return bW_=z},{mode:1});var paI;var D6u;var vp=function(){return _.q.apply(this,arguments)||this};
_.m(vp,_.q);vp.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
vp.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
vp.prototype.updateTitle=function(){var z=this.disabledCartItemEntity;z.disableActionName&&this.set("data.title",hQ(z.disableActionName))};
vp.prototype.updateButton=function(){var z,l=(z=this.disabledCartItemEntity.undoCommand)==null?void 0:z.innertubeCommand;l!==void 0&&(this.set("data.actionButton.buttonRenderer.command",l),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
vp.prototype.entityChanged=vp.prototype.entityChanged;_.e([_.t(_.gU),_.w("design:type",Object)],vp.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(z,l){return _.Cc(z.entities,"disabledCartItemEntity",l)}}),
_.w("design:type",Object)],vp.prototype,"disabledCartItemEntity",void 0);_.e([_.X(),_.w("design:type",Object)],vp.prototype,"data",void 0);_.e([_.By("disabledCartItemEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vp.prototype,"entityChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],vp);
_.r(vp,"ytd-disabled-cart-item-renderer",function(){if(D6u!==void 0)return D6u;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return D6u=z},{mode:1});_.sW("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var MT=function(){var z=_.q.apply(this,arguments)||this;z.compact=!1;z.hidden=!1;z.errorHidden=!1;z.noOnTap=!1;return z};
_.m(MT,_.q);_.p=MT.prototype;
_.p.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"}}}};
_.p.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.p.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var z=this.firstButtonElement;z.alignByText=!0;z.iconAlignByText=!0}};
_.p.computeNoOnTap=function(z){return!z};
_.p.updateQuantityColor=function(){if(this.pickerElement){var z,l=(z=this.commerceCartItemEntity)==null?void 0:z.quantityColor;this.pickerElement.quantityColor=l}};
_.p.updateTotalPriceColor=function(){var z,l=(z=this.commerceCartItemEntity)==null?void 0:z.totalPriceColor;if(l){var I;z=_.k((I=this.data)==null?void 0:I.quantityPicker,qMI);if(I=_.k(z==null?void 0:z.price,XLA))I.textColor=l}};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var z,l=(z=this.commerceCartItemEntity)==null?void 0:z.isHidden;l!==void 0&&(this.hidden=l)}};
_.p.updateHideErrorMessage=function(){var z,l=(z=this.commerceCartItemEntity)==null?void 0:z.hideErrorMessage;l!==void 0&&(this.errorHidden=l)};
_.p.updateQuantity=function(){var z=this,l,I=(l=this.commerceCartItemEntity)==null?void 0:l.quantity,b;l=(b=this.commerceCartItemEntity)==null?void 0:b.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var v;b=_.k((v=this.data)==null?void 0:v.quantityPicker,qMI);if(v=_.k(b==null?void 0:b.price,XLA))v.text=l?{simpleText:l.content}:void 0;if(l=_.k(b==null?void 0:b.picker,F6A))l.quantity=I;var M;if(v=(M=_.k(b==null?void 0:b.picker,qEu))==null?void 0:M.entries){M=!1;l=void 0;v=
_.D(v);for(b=v.next();!b.done;b=v.next())b=b.value,b.dropdownItemRenderer&&(l||(l=b.dropdownItemRenderer),b.dropdownItemRenderer.isSelected=!1,I===b.dropdownItemRenderer.int32Value&&(M=!0,b.dropdownItemRenderer.isSelected=!0));!M&&l&&(l.isSelected=!0)}_.IR(this,function(){var x;z.set("data.quantityPicker",_.h7.unsafeClone((x=z.data)==null?void 0:x.quantityPicker))})}};
MT.prototype.onYtRendererstamperFinished=MT.prototype.onYtRendererstamperFinished;MT.prototype.entityChanged=MT.prototype.entityChanged;_.e([_.X(),_.w("design:type",Object)],MT.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],MT.prototype,"compact",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],MT.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],MT.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(z,l){return _.Cc(z.entities,"commerceCartItemEntity",l)}}),
_.w("design:type",Object)],MT.prototype,"commerceCartItemEntity",void 0);_.e([_.X(),_.w("design:type",Object)],MT.prototype,"quantityPicker",void 0);_.e([_.X(),_.w("design:type",Object)],MT.prototype,"compactQuantityPicker",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],MT.prototype,"hidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],MT.prototype,"errorHidden",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.w("design:type",Object)],MT.prototype,"noOnTap",void 0);_.e([_.qX("ytd-commerce-cart-item-quantity-picker-renderer"),_.w("design:type",Object)],MT.prototype,"pickerElement",void 0);_.e([_.qX("yt-button-renderer"),_.w("design:type",Element)],MT.prototype,"firstButtonElement",void 0);
_.e([_.By("commerceCartItemEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MT.prototype,"entityChanged",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],MT.prototype,"onYtRendererstamperFinished",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],MT);
_.r(MT,"ytd-commerce-cart-item-renderer",function(){if(paI!==void 0)return paI;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return paI=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var x6j;var OWn;var px=function(){return _.q.apply(this,arguments)||this};
_.m(px,_.q);px.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}}}}}};
px.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
px.prototype.updateCheckoutLineItems=function(){var z,l=(z=this.commerceCartCheckoutButtonEntity)==null?void 0:z.checkoutLineItems;l&&(z=l.map(function(I){a:{var b=I.price,v=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:hQ(v),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:hQ(b),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:I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:hQ(v),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:hQ(b),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 I}),this.set("data.summaryLineItems",z))};
px.prototype.updateIsHidden=function(){var z,l=(z=this.commerceCartCheckoutButtonEntity)==null?void 0:z.isHidden;l!==void 0&&(this.hostElement.hidden=l)};
px.prototype.entityChanged=px.prototype.entityChanged;_.e([_.t(_.gU),_.w("design:type",Object)],px.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],px.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],px.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:OX5}),_.w("design:type",Object)],px.prototype,"commerceCartCheckoutButtonEntity",void 0);_.e([_.By("commerceCartCheckoutButtonEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],px.prototype,"entityChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],px);
_.r(px,"ytd-commerce-cart-summary-renderer",function(){if(OWn!==void 0)return OWn;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return OWn=z},{mode:1});var gtu={};gtu.InjectBehavior=[Y0x.InjectBehavior];var GQ_;var NR4;var Dy=function(){return _.q.apply(this,arguments)||this};
_.m(Dy,_.q);
Dy.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:_.ro("menuRenderer")}}};
Dy.prototype.onMenuTap=function(z){z.stopPropagation()};
_.vP.Object.defineProperties(Dy.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 z,l;return!(((z=this.data)==null||!z.sectionHeading)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var z,l;return!(((z=this.data)==null||!z.image)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var z,l;return!(((z=this.data)==null||!z.menu)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.W4M.YtTappableItemBehavior),_.w("design:type",Object)],Dy.prototype,"ytTappableItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Dy.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.accessibilityData"),_.w("design:type",String),_.w("design:paramtypes",[])],Dy.prototype,"ariaLabel",null);_.e([_.B("data.sectionHeading","data.layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Dy.prototype,"sectionHeadingVisible",null);_.e([_.B("data.image","data.layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Dy.prototype,"imageVisible",null);
_.e([_.B("data.menu","data.layout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Dy.prototype,"menuVisible",null);_.e([_.Wy({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Dy);
_.r(Dy,"yt-activity-item-renderer",function(){if(NR4===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;GQ_===void 0&&(GQ_=document.createElement("template"));var b=GQ_;I.call(l,b.content.cloneNode(!0),z.content.firstChild);NR4=z}z=NR4;return z},{mode:2});var Etu;var ud_;var ZWA;var HWn;var xp=function(){return _.q.apply(this,arguments)||this};
_.m(xp,_.q);
xp.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"}}}}};
xp.prototype.backgroundColorChanged_=function(){var z,l=(z=this.data)==null?void 0:z.backgroundColor;this.hostElement.style.backgroundColor=wa[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
xp.prototype.backgroundColorChanged_=xp.prototype.backgroundColorChanged_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xp.prototype,"data",void 0);
_.e([_.By("data.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xp.prototype,"backgroundColorChanged_",null);_.e([_.Wy({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],xp);
_.r(xp,"yt-offer-item-upsell-renderer",function(){if(HWn===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ZWA===void 0&&(ZWA=document.createElement("template"));var b=ZWA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);HWn=z}z=HWn;return z},{mode:2});_.sW("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var OC=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};z.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return z};
_.m(OC,_.q);_.p=OC.prototype;
_.p.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:_.ro("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.p.computeContainerStyle_=function(z){return z};
_.p.computeContainerIsHidden_=function(z){return z&&!!z.isHidden};
_.p.computeShowSpinner_=function(z,l){return z&&l==="in-progress"};
_.p.computeShowMoreContentsButton_=function(z,l,I,b,v){return!(!(b&&b.length||v&&v.length&&I)||!z||l)};
_.p.onToggleButton_=function(z){var l=this;z.stopPropagation();this.isExpanded_=z.detail&&z.detail.toggled;var I,b;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(b=I.continuation)==null?0:b.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.gC(this.hostElement,"yt-load-next-continuation",function(v){return l.getContinuationUrl_(l.data.continuation.onClickContinuationData,v)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.uJ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.p.onShowMoreContentsButtonClicked_=function(z){var l=this;z.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.gC(this.hostElement,"yt-load-next-continuation",function(I){return l.getContinuationUrl_(l.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.uJ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.p.getContinuationUrl_=function(z,l){var I=z.continuation;z=z.clickTrackingParams;var b=_.sU();z&&b&&_.JH(b,_.ch(z));return _.Jr(l,{continuation:I})};
_.p.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var z=_.Hy(this.hostElement).querySelector("#continuation-section");z&&(z=z.querySelectorAll("ytmusic-item-section-renderer"))&&z.forEach(function(l){return l.classList.add("memberships-and-purchases")})};
_.p.dataChanged_=function(){var z;this.isExpanded_=!((z=this.data)==null||!z.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.p.updateCardOnClickCommand_=function(z){z=_.k(z,yon);var l,I;this.data&&((l=this.data)==null?0:l.targetId)&&z&&z.targetId===((I=this.data)==null?void 0:I.targetId)&&z.onClickCommand&&(this.data.onClickCommand=z.onClickCommand,this.isOnClickCommand_=!0)};
_.p.backgroundColorChanged_=function(){var z,l=(z=this.data)==null?void 0:z.backgroundColor;this.hostElement.style.backgroundColor=wa[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
OC.prototype.backgroundColorChanged_=OC.prototype.backgroundColorChanged_;OC.prototype.dataChanged_=OC.prototype.dataChanged_;OC.prototype.nextContinuationDataUpdated_=OC.prototype.nextContinuationDataUpdated_;OC.prototype.onToggleButton_=OC.prototype.onToggleButton_;_.e([_.t(_.C6),_.w("design:type",Object)],OC.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],OC.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.kH.YtNextContinuationBehavior),_.w("design:type",Object)],OC.prototype,"ytNextContinuationBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.e([_.t(gtu.InjectBehavior),_.w("design:type",Object)],OC.prototype,"injectBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],OC.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],OC.prototype,"compact",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],OC.prototype,"isExpanded_",void 0);_.e([_.X({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.w("design:type",String)],OC.prototype,"containerStyle_",void 0);_.e([_.X({value:"not-started"}),_.w("design:type",String)],OC.prototype,"continuationStatus_",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.w("design:type",Boolean)],OC.prototype,"showSpinner_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],OC.prototype,"isOnClickCommand_",void 0);_.e([_.X({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.w("design:type",Boolean)],OC.prototype,"showMoreContentsButton_",void 0);
_.e([_.X({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(z,l){return!l||z.entities?null:_.Cc(z.entities,"cardItemContainerEntity",l)}}),
_.w("design:type",Object)],OC.prototype,"cardItemContainerEntity_",void 0);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],OC.prototype,"onToggleButton_",null);_.e([_.tP("yt-next-continuation-data-updated"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OC.prototype,"nextContinuationDataUpdated_",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OC.prototype,"dataChanged_",null);_.e([_.By("data.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OC.prototype,"backgroundColorChanged_",null);_.e([_.Wy({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],OC);
_.r(OC,"yt-card-item-container-renderer",function(){if(ud_===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Etu===void 0&&(Etu=document.createElement("template"));var b=Etu;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ud_=z}z=ud_;return z},{mode:2});var gW=function(){return _.q.apply(this,arguments)||this};
_.m(gW,_.q);gW.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"}}}};
gW.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
gW.prototype.computeLoadingHidden=function(){var z;return!((z=this.commerceCartPageStateEntity)==null?0:z.cartActionInProgress)};
gW.prototype.updateNotification=function(){var z,l=(z=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:z.summaryText;l&&this.set("data.cartNotification",hQ(l))};
gW.prototype.notificationEntityChanged=gW.prototype.notificationEntityChanged;_.e([_.t(_.gU),_.w("design:type",Object)],gW.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],gW.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],gW.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(z,l){return _.Cc(z.entities,"commerceCartExpandableNotificationEntity",l)}}),
_.w("design:type",Object)],gW.prototype,"commerceCartExpandableNotificationEntity",void 0);_.e([_.X({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(z,l){return _.Cc(z.entities,"commerceCartPageStateEntity",l)}}),
_.w("design:type",Object)],gW.prototype,"commerceCartPageStateEntity",void 0);_.e([_.qX("#spinner"),_.w("design:type",HTMLElement)],gW.prototype,"spinner",void 0);_.e([_.By("commerceCartExpandableNotificationEntity","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gW.prototype,"notificationEntityChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],gW);
_.r(gW,"ytd-commerce-cart-renderer",function(){if(x6j!==void 0)return x6j;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return x6j=z},{mode:1});var yIw;var Gy=function(){var z=_.q.apply(this,arguments)||this;z.bigImage=!1;return z};
_.m(Gy,_.q);_.vP.Object.defineProperties(Gy.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.placeholderImageUrl}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Gy.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gy.prototype,"bigImage",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Gy.prototype,"placeholderImageUrl",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Gy);
_.r(Gy,"ytd-empty-product-shelf-renderer",function(){if(yIw!==void 0)return yIw;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yIw=z},{mode:1});var f2u;var NT=function(){var z=_.q.apply(this,arguments)||this;z.itemStyle="link-item";z.watchMetadataRefresh=!1;z.skinnyMode=!1;z.metaPanel=!1;z.inStructuredDescription=!1;z.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};z.updateOnResizeDebouncer=null;return z};
_.m(NT,_.q);_.p=NT.prototype;_.p.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.p.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"}}}}};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.p.attachVEs=function(z){z.trackingParams&&_.iY().graftServerVe(z.trackingParams)};
_.p.handleUpdateMerchShelfAction=function(z){var l=this,I=_.k(z.updateMerchandiseShelfAction.merchandiseShelf,_.LjM);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){l.attachVEs(I);l.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.p.updateOnResize=function(){if(this.JSC$16863_scrollContainer!==void 0&&this.JSC$16863_scrollContainer.clientWidth!==0&&this.items!==void 0){var z=this.JSC$16863_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-z));this.ytdHorizontalListBehavior.reposition_();var l;switch((l=this.data)==null?void 0:l.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
b;((I=this.data)==null?void 0:(b=I.items)==null?void 0:b.length)===1?this.itemStyle="cta-item":this.itemStyle=z>=740?"large-item":"small-item"}}};
_.p.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Xb(this.updateOnResizeDebouncer,_.ug.after(100),this.updateOnResize)};
NT.prototype.debouncedUpdateOnResize=NT.prototype.debouncedUpdateOnResize;NT.prototype.dataChanged=NT.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],NT.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],NT.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],NT.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],NT.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],NT.prototype,"itemStyle",void 0);_.e([_.X({value:6}),_.w("design:type",Number)],NT.prototype,"initialCount",void 0);
_.e([_.X({value:"data.items"}),_.w("design:type",String)],NT.prototype,"itemsPath",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],NT.prototype,"watchMetadataRefresh",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],NT.prototype,"skinnyMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],NT.prototype,"metaPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],NT.prototype,"inStructuredDescription",void 0);
_.e([_.qX("#items"),_.w("design:type",HTMLDivElement)],NT.prototype,"items",void 0);_.e([_.qX("#scroll-container"),_.w("design:type",HTMLDivElement)],NT.prototype,"JSC$16863_scrollContainer",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NT.prototype,"dataChanged",null);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NT.prototype,"debouncedUpdateOnResize",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],NT);
_.r(NT,"ytd-merch-shelf-renderer",function(){if(f2u!==void 0)return f2u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return f2u=z},{mode:2});var Cnz;var EC=function(){var z=_.q.apply(this,arguments)||this;z.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 z};
_.m(EC,_.q);_.p=EC.prototype;
_.p.addBackstagePostAction=function(z){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(z=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",z))&&(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:z}):this.set("data.contents",[{backstagePostThreadRenderer:z}]))};
_.p.addBackstageCommentAction=function(z){var l=this.get("addBackstageCommentAction.parentId",z);z=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",z);if(l&&z){l=this.postIdToIndices(l);for(var I=0;I<l.length;I++){var b=l[I];if(b<0)break;b="data.contents."+b+".backstagePostThreadRenderer.comments";this.get(b)&&(this.get(b+".backstageCommentsRenderer.contents")&&this.push(b+".backstageCommentsRenderer.contents",{commentThreadRenderer:z}),this.get(b+".backstageCommentsRenderer.teaserContents")?
this.push(b+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:z}):this.set(b+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:z}]))}}};
_.p.addBackstageReplyAction=function(z){var l=this.get("addBackstageReplyAction.parentId",z);z=this.get("addBackstageReplyAction.renderer.commentRenderer",z);l&&z&&this.setCreatorReply(l,z)};
_.p.banAuthorAction=function(z){var l=this.get("banAuthorAction.commentId",z);l&&(z=this.get("banAuthorAction.parentCommentId",z)||this.getParentPostId(l),this.removeFromStream(l,z))};
_.p.hideReportedCommentAction=function(z){var l=this.get("hideReportedCommentAction.commentId",z);l&&((z=this.get("hideReportedCommentAction.parentCommentId",z))||(z=this.getParentPostId(l)),this.removeFromStream(l,z))};
_.p.replaceBackstageCommentAction=function(z){var l=this.get("replaceBackstageCommentAction.commentId",z),I=this.get("replaceBackstageCommentAction.parentId",z);z=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",z);if(l&&I&&z){I=this.postIdToIndices(I);for(var b=0;b<I.length;b++){var v=I[b];if(v<0)break;var M=this.commentIdToIndex(l,v,!1);if(M>=0){var x=this.get("data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M+".commentThreadRenderer.replies.commentRepliesRenderer");
x&&(z.replies={commentRepliesRenderer:x});this.splice("data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1,{commentThreadRenderer:z})}M=this.commentIdToIndex(l,v,!0);if(M>=0){if(x=this.get("data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(M+".commentThreadRenderer.replies.commentRepliesRenderer")))z.replies={commentRepliesRenderer:x};this.splice("data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
M,1,{commentThreadRenderer:z})}}}};
_.p.replaceBackstagePostAction=function(z){var l=this.get("replaceBackstagePostAction.itemId",z);if(l){l=this.postIdToIndices(l);for(var I=0;I<l.length;I++){var b=l[I];if(b<0)break;var v=this.getPostRendererType(b),M=this.get("replaceBackstagePostAction.renderer."+v,z);if(!M&&v!=="sharedPostRenderer")break;var x=!1;M||(x=!0,M=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",z));if(!M)break;var g={};x?(_.rZ(g,Hdu,M),this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
g)):(_.rZ(g,new _.Z0(v),M),this.set("data.contents."+b+".backstagePostThreadRenderer.post",g))}}};
_.p.replaceBackstageReplyAction=function(z){var l=this.get("replaceBackstageReplyAction.replyId",z),I=this.get("replaceBackstageReplyAction.parentId",z);z=this.get("replaceBackstageReplyAction.renderer.commentRenderer",z);l&&z&&I&&this.setCreatorReply(I,z)};
_.p.removeCommentAction=function(z){var l=this.get("removeCommentAction.commentId",z);if(l){var I=this.get("removeCommentAction.parentCommentId",z);I&&this.get("removeCommentAction.isCreatorReply",z)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(l)),this.removeFromStream(l,I))}};
_.p.setCreatorReply=function(z,l){var I=this.getParentPostId(z);if(I){I=this.postIdToIndices(I);for(var b=0;b<I.length;b++){var v=I[b];if(v<0)break;var M=this.commentIdToIndex(z,v,!1);if(M>=0){var x="data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M;M=x+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";x+=".commentThreadRenderer.replies";l==void 0?(this.set(x,{}),this.set(M,!1)):(this.set(x,{commentRepliesRenderer:{teaserContents:[{commentRenderer:l}]}}),
this.set(x+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(M,!0))}M=this.commentIdToIndex(z,v,!0);M>=0&&(M="data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+M,v=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",M+=".commentThreadRenderer.replies",l==void 0?(this.set(M,{}),this.set(v,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:l}]}}),this.set(v,!0)))}}};
_.p.removeFromStream=function(z,l){if(l){l=this.postIdToIndices(l);for(var I=0;I<l.length;I++){var b=l[I];if(b<0)break;var v=this.commentIdToIndex(z,b,!1);v>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",v,1);v=this.commentIdToIndex(z,b,!0);v>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",v,1);b="data.contents."+b+".backstagePostThreadRenderer.post.backstagePostRenderer";
v=b+".backstageAttachment.pollRenderer.votedCommentId";this.get(v)===z&&(this.set(v,null),this.set(b+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(l=this.postIdToIndices(z).reverse(),I=0;I<l.length;I++){b=l[I];if(b<0)break;v=this.getPostRendererType(b);var M=this.get("backstagePostThreadRenderer.post."+v,this.data.contents[b]);M.postId===z?this.splice("data.contents",b,1):v==="sharedPostRenderer"&&this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);M.scheduledPublishTimeSec&&_.Gb(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.p.postIdToIndices=function(z){for(var l=[],I=0;I<this.data.contents.length;I++){var b=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+b+".postId",this.data.contents[I])===z&&l.push(I);if(b==="sharedPostRenderer"){var v=this.get("backstagePostThreadRenderer.post."+b+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);b=this.get("backstagePostThreadRenderer.post."+b+".originalPost.postRenderer.postId",this.data.contents[I]);v!==z&&b!==z||l.push(I)}}return l};
_.p.commentIdToIndex=function(z,l,I){if(l<0)return-1;var b,v,M,x,g=_.k((b=this.data)==null?void 0:(v=b.contents)==null?void 0:(M=v[l])==null?void 0:(x=M.backstagePostThreadRenderer)==null?void 0:x.comments,uSn);return(l=I?g==null?void 0:g.teaserContents:g==null?void 0:g.contents)&&l.length?l.findIndex(function(G){return _.k(G,aI_).comment.commentRenderer.commentId===z}):-1};
_.p.getParentPostId=function(z){z=z.split(".");if(z[1])return z[0]};
_.p.getPostRendererType=function(z){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[z])?"sharedPostRenderer":"backstagePostRenderer"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],EC.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EC.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-backstage-items"})],EC);
_.r(EC,"ytd-backstage-items",function(){if(Cnz!==void 0)return Cnz;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Cnz=
z},{mode:1});var kQj;var RgM={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},ua=function(){var z=_.q.apply(this,arguments)||this;z.disablePrescanVisibility=!0;z.canScheduleJobs=!0;z.engagementPanel=!1;z.hidePanelButton=!1;z.isWatchGrid=
!1;z.hasShownSubscribersOnlyDisclaimer=!1;z.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return z};
_.m(ua,_.q);_.p=ua.prototype;_.p.created=function(){this.initCommentsCsi_();_.C("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.p.contentsChanged_=function(){var z;(z=this.data)!=null&&z.contents&&this.tickForCommentsTimer_("cml")};
_.p.headerChanged_=function(){var z;(z=this.data)!=null&&z.header&&this.tickForCommentsTimer_("cmhl")};
_.p.initCommentsCsi_=function(){_.hH("wn_comments");var z=_.sU();z&&_.om({clientScreenNonce:z},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.p.createCommentAction_=function(z){z=_.h7.unsafeClone(z);var l,I;if(z=(l=_.k(z,rzj))==null?void 0:(I=l.contents)==null?void 0:I.commentThreadRenderer){var b,v,M,x,g,G;!this.isBackstage&&((b=this.data)==null?0:(v=b.header)==null?0:(M=v.commentsHeaderRenderer)==null?0:(x=M.createRenderer)==null?0:(g=x.commentSimpleboxRenderer)==null?0:(G=g.zeroStep)==null?0:G.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var u,
Z,H;this.isBackstage&&_.k((u=this.data)==null?void 0:(Z=u.header)==null?void 0:(H=Z.commentsHeaderRenderer)==null?void 0:H.zeroStateMessage,yz_)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(z)}};
_.p.doReplyInsert_=function(z,l,I,b){b?this.splice(z,b,0,l):this.push(z,l)};
_.p.getRepliesPath_=function(z){return"data.contents."+z+".commentThreadRenderer.replies"};
_.p.getRepliesContentsPath_=function(z,l){z=this.getRepliesPath_(z);return l?z+".commentRepliesRenderer.teaserContents":z+".commentRepliesRenderer.contents"};
_.p.showSubscribersOnlyDisclaimer_=function(z){(z=z.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(z))&&(_.Gb(this.hostElement,"yt-open-popup-action",[z,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.p.createCommentReplyAction_=function(z){z=_.h7.unsafeClone(z);var l=_.k(z,$g_);if(z=l==null?void 0:l.contents){var I=this.commentIdToIndex_(l==null?void 0:l.parentCommentId);if(!(I<0)){var b=this.getRepliesPath_(I);if(this.get(b)){l=l.replyToCommentId;b=this.getRepliesContentsPath_(I,!1);if(this.get(b)){var v=this.get(b).length,M=b+"."+(v-1)+".continuationItemRenderer";this.get(M+".button")?(M=this.replyIdToIndex_(l,I,!1),this.doReplyInsert_(b,z,M,v-1)):this.get(M)||(v=this.replyIdToIndex_(l,I,
!1),this.doReplyInsert_(b,z,v,null))}b=this.getRepliesContentsPath_(I,!0);this.get(b)?(I=this.replyIdToIndex_(l,I,!0),(!l||I>=0)&&this.doReplyInsert_(b,z,I,null)):this.set(b,[z])}else this.set(b,{commentRepliesRenderer:{teaserContents:[z]}})}}};
_.p.hideReportedCommentAction_=function(z){var l=_.k(z,xRA);if(z=l==null?void 0:l.commentId)(l=this.get("parentCommentId",l))||(l=this.getParentCommentId_(z)),this.remove_(z,l)};
_.p.getParentCommentId_=function(z){z=z.split(".");if(z[1])return z[0]};
_.p.removeCommentAction_=function(z){var l=_.k(z,n9j);if(z=l==null?void 0:l.commentId)l=(l==null?void 0:l.parentCommentId)||this.getParentCommentId_(z),this.remove_(z,l)};
_.p.pinCommentAction_=function(z){z=_.h7.unsafeClone(z);var l=_.k(z,WJA);l!=null&&l.commentId&&(z=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",z))&&(this.remove_(l.commentId),this.insert_(z,!0))};
_.p.unpinCommentAction_=function(z){z=_.h7.unsafeClone(z);z=_.k(z,LJI);if(z!=null&&z.commentId){var l,I,b=(l=z.actionResult)==null?void 0:(I=l.update)==null?void 0:I.commentThreadRenderer;b&&(this.remove_(z.commentId),this.insert_(b))}};
_.p.banAuthorAction_=function(z){var l=_.k(z,sW_);l!=null&&l.commentId&&(z=l.commentId,l=l.parentCommentId||this.getParentCommentId_(z),this.remove_(z,l))};
_.p.commentIdToIndex_=function(z){var l;return z&&(l=this.data)!=null&&l.contents?this.data.contents.findIndex(function(I){I=I.commentThreadRenderer;var b;return z===((I==null?void 0:I.commentViewModel)&&((b=_.k(I.commentViewModel,I90))==null?void 0:b.commentId))}):-1};
_.p.insert_=function(z,l){l=l===void 0?!1:l;var I,b;if((I=this.data)==null?0:(b=I.contents)==null?0:b.some(function(M){return!!M.commentThreadRenderer}))for(I=0,b=this.data.contents.length;I<b;I++){var v=this.data.contents[I].commentThreadRenderer;
if(RgM[z.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=RgM[v.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){l&&RgM[z.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===RgM[v.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",I,1,{commentThreadRenderer:z}):this.splice("data.contents",I,0,{commentThreadRenderer:z});break}}else this.set("data.contents",[{commentThreadRenderer:z}])};
_.p.doReplyRemove_=function(z,l,I){z=this.replyIdToIndex_(z,l,I);z<0||(l=this.getRepliesContentsPath_(l,I),this.splice(l,z,1))};
_.p.remove_=function(z,l){l=this.commentIdToIndex_(l);l<0?(l=this.commentIdToIndex_(z),l<0||this.splice("data.contents",l,1)):_.C("web_delhi_comment_threads")||(this.doReplyRemove_(z,l,!1),this.doReplyRemove_(z,l,!0))};
_.p.replyIdToIndex_=function(z,l,I){if(l<0)return-1;l=this.getRepliesContentsPath_(l,I);l=this.get(l);if(!l||!l.length)return-1;I=0;for(var b=l.length;I<b;I++){var v=void 0,M=void 0;if(((v=l[I])==null?void 0:(M=v.commentViewModel)==null?void 0:M.commentId)===z)return I}return-1};
_.p.tickForCommentsTimer_=function(z){_.rC(z,void 0,"wn_comments")};
_.p.reloadComments_=function(z){z=_.k(z,zN_);_.k(z==null?void 0:z.command,_.a2)&&_.uJ(this.hostElement,[z==null?void 0:z.command])};
_.vP.Object.defineProperties(ua.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.data)==null?0:(l=z.header)==null?0:(I=l.commentsHeaderRenderer)==null?0:I.isBackstageContent)}}});
_.vP.Object.defineProperties(ua,{template:{configurable:!0,enumerable:!0,get:function(){if(kQj===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);kQj=z}z=kQj;return z}}});
ua.prototype.showSubscribersOnlyDisclaimer_=ua.prototype.showSubscribersOnlyDisclaimer_;ua.prototype.headerChanged_=ua.prototype.headerChanged_;ua.prototype.contentsChanged_=ua.prototype.contentsChanged_;_.e([_.t(_.XD),_.w("design:type",Object)],ua.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.S0Y.YtHostElementBehavior),_.w("design:type",Object)],ua.prototype,"ytHostElementBehavior",void 0);
_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",Function)],ua.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ua.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ua.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.header.commentsHeaderRenderer.isBackstageContent"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ua.prototype,"isBackstage",null);_.e([_.X(),_.w("design:type",Object)],ua.prototype,"disablePrescanVisibility",void 0);_.e([_.X(),_.w("design:type",Object)],ua.prototype,"canScheduleJobs",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ua.prototype,"engagementPanel",void 0);
_.e([_.X(),_.w("design:type",Object)],ua.prototype,"hidePanelButton",void 0);_.e([_.X(),_.w("design:type",Object)],ua.prototype,"isWatchGrid",void 0);_.e([_.X(),_.w("design:type",Object)],ua.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.e([_.By("data.contents"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ua.prototype,"contentsChanged_",null);
_.e([_.By("data.header"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ua.prototype,"headerChanged_",null);_.e([_.tP("yt-show-subscribers-only-disclaimer"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ua.prototype,"showSubscribersOnlyDisclaimer_",null);_.e([_.S({is:"ytd-comments"})],ua);var Zy=function(){return _.F6.apply(this,arguments)||this};
_.m(Zy,_.F6);_.p=Zy.prototype;_.p.bindIf=function(z,l,I){return z?l:I};
_.p.bindIfDefined=function(z,l){return z!==void 0?z:l};
_.p.booleanString=function(z){return(!!z).toString()};
_.p.equals=function(){for(var z=_.AT.apply(0,arguments),l=z[0],I=1;I<z.length;I++)if(l!=z[I])return!1;return!0};
_.p.isGreaterThan=function(z,l){return z>l};
_.p.isLessThan=function(z,l){return z<l};
_.p.logicalAND=function(){for(var z=_.AT.apply(0,arguments),l=!!z[0],I=1;I<z.length;I++)l=l&&!!z[I];return l};
_.p.logicalOR=function(){for(var z=_.AT.apply(0,arguments),l=!!z[0],I=1;I<z.length;I++)l=l||!!z[I];return l};
_.p.toBool=function(z){return!!z};
Zy.prototype.toBool=Zy.prototype.toBool;Zy.prototype.logicalOR=Zy.prototype.logicalOR;Zy.prototype.logicalAND=Zy.prototype.logicalAND;Zy.prototype.isLessThan=Zy.prototype.isLessThan;Zy.prototype.isGreaterThan=Zy.prototype.isGreaterThan;Zy.prototype.equals=Zy.prototype.equals;Zy.prototype.booleanString=Zy.prototype.booleanString;Zy.prototype.bindIfDefined=Zy.prototype.bindIfDefined;Zy.prototype.bindIf=Zy.prototype.bindIf;_.e([_.Q5()],Zy);_.m6j=[Zy.prototype];var KcA;var tQp;var Hp=function(){return _.q.apply(this,arguments)||this};
_.m(Hp,_.q);Hp.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Hp.prototype.onBackIconTap_=function(){window.history.back()};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Hp.prototype,"data",void 0);_.e([_.Wy({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Hp);
_.r(Hp,"yt-header-with-back-renderer",function(){if(tQp===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;KcA===void 0&&(KcA=document.createElement("template"));var b=KcA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);tQp=z}z=tQp;return z},{mode:2});var BRz;var XaA;var yG=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(yG,_.q);_.p=yG.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&(this.isDarkTheme=z,this.setUrl())};
_.p.dataChanged=function(){var z=this;if(this.data){var l=this.setUrl();l&&_.Ez({destination:window,iframe:this.iframe,origin:_.Jyz(l.toString()),channelName:"yt-iframe",onMessage:function(I){(I=z.getCommunicationCommand(I.data))&&z.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.p.setUrl=function(){if(this.data&&this.data.iframeUrl){var z=_.Pd(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(z)return _.JT(this.iframe,z),z}};
_.p.getCommunicationCommand=function(z){var l;if((l=this.data)!=null&&l.onCommunicationCommandsMap){l=this.data.onCommunicationCommandsMap.find(function(v){return v.key===z});
if(l==null?0:l.value)return l==null?void 0:l.value;try{var I=xQj(_.jx(z)),b=this.data.onCommunicationCommandsMap.find(function(v){return v.key===(I==null?void 0:I.getMethodName())});
if(b==null?0:b.value)return b==null?void 0:b.value}catch(v){}}};
yG.prototype.dataChanged=yG.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],yG.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],yG.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yG.prototype,"data",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],yG.prototype,"isDarkTheme",void 0);_.e([_.qX("#iframe"),_.w("design:type",HTMLIFrameElement)],yG.prototype,"iframe",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yG.prototype,"dataChanged",null);_.e([_.Wy({is:"yt-iframe-renderer",disableElementRegistration:!0})],yG);
_.r(yG,"yt-iframe-renderer",function(){if(XaA===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;BRz===void 0&&(BRz=document.createElement("template"));var b=BRz;I.call(l,b.content.cloneNode(!0),z.content.firstChild);XaA=z}z=XaA;return z},{mode:2});_.fx=function(z){_.Q9.call(this);this.callback=z;this.bezier=new U8_(0,0,.4,0,.2,1,1,1);this.delay=new _.DV(this.next,window,this);this.JSC$16902_animating=!1;_.kN(this,this.delay)};
_.m(_.fx,_.Q9);_.fx.prototype.isAnimating=function(){return this.JSC$16902_animating};
_.fx.prototype.start=function(z,l,I){this.config={from:z,to:l,duration:I,startTime:(0,_.Dr)()};this.JSC$16902_animating=!0;this.next()};
_.fx.prototype.stop=function(){this.delay.stop();this.JSC$16902_animating=!1;this.config=void 0};
_.fx.prototype.next=function(){if(this.config){var z=this.config,l=z.from,I=z.to,b=z.duration;z=z.startTime;var v=(0,_.Dr)()-z;z=this.bezier;b=VZp(z,v/b);if(b==0)z=z.y0;else if(b==1)z=z.y3;else{v=oq(z.y0,z.y1,b);var M=oq(z.y1,z.y2,b);z=oq(z.y2,z.y3,b);v=oq(v,M,b);M=oq(M,z,b);z=oq(v,M,b)}z=_.rx(z,0,1);this.callback(l+(I-l)*z);z<1?this.delay.start():this.JSC$16902_animating=!1}};_.Cx=new _.yH("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var qOz={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Fc_=function(z,l,I,b){_.Q9.call(this);this.JSC$16913_miniAppId=z;this.localReleaseId=l;this.derivedDeviceInterface=I;this.isForeground=b;this.JSC$16913_playNonceResolver=new _.yX;this.playPingTimerId=NaN;this.playPingIntervalMs=_.OI("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.OI("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.C("enable_displaying_ppn");this.JSC$16913_miniAppClientDataProvider=_.pG().resolve(_.Cx);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;iWA(this);var v=setTimeout(function(){_.PW(new _.qB("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16913_playNonceResolver.promise.then(function(){clearTimeout(v)})};
_.m(Fc_,_.Q9);var YOu=function(z,l){z.JSC$16913_playNonceResolver.resolve(l!=null?l:oR(8));z.enableDisplayingPpn&&QMM(z).then(function(I){z.JSC$16913_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},QMM=function(z){return _.O(function(l){return l.nextAddress==1?l.yield(z.JSC$16913_playNonceResolver.promise,2):l.return(l.yieldResult)})},iWA=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$16913_playNonceResolver.promise,2);l=b.yieldResult;I={miniAppInfo:{externalPostId:z.JSC$16913_miniAppId,localReleaseId:z.localReleaseId,postPlayNonce:l,derivedDeviceInterface:z.derivedDeviceInterface}};_.om(I);_.qe(b)})},cIu=function(z){z.state!==0?_.PW(new _.qB("[MiniAppPlayLogger] recordPlayStart failed with state "+qOz[z.state])):(z.state=1,kp(z,"ma_cl"),Rg(z,"PLAY_EVENT_TYPE_PLAY_START"),TRn(z))},SO0=function(z){z.isForeground=!1;
Rg(z,"PLAY_EVENT_TYPE_PLAY_PAUSE")},d6w=function(z){z.state!==1&&z.state!==2?_.PW(new _.qB("[MiniAppPlayLogger] recordPlayEnd failed with state "+qOz[z.state])):(z.state=3,window.clearInterval(z.playPingTimerId),z.playPingTimerId=NaN,qep(),Rg(z,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},otn=function(z,l){z.state===2&&z.gameReady&&(z.firstClickRecorded?Date.now()-z.clickRecordedMs<z.playClickIntervalMs||(z.clickRecordedMs=Date.now(),Rg(z,"PLAY_EVENT_TYPE_PLAY_CLICK")):l&&(kp(z,"ma_fua"),Rg(z,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),z.firstClickRecorded=!0,z.clickRecordedMs=Date.now()))};
Fc_.prototype.logError=function(z){var l=this,I;_.O(function(b){if(b.nextAddress==1)return z.metadata.externalPostId=l.JSC$16913_miniAppId,I=z.metadata,b.yield(Promise.race([l.JSC$16913_playNonceResolver.promise,new Promise(function(v){setTimeout(function(){v("")},3E4)})]),2);
I.postPlayNonce=b.yieldResult;z.metadata.localReleaseId=l.localReleaseId;z.loggingError.level="WARNING";_.dE(z.loggingError,z.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:z.metadata});_.qe(b)})};
var Pn4=function(z,l,I,b){var v,M,x,g,G,u;_.O(function(Z){if(Z.nextAddress==1)return Z.yield(z.JSC$16913_playNonceResolver.promise,2);v=Z.yieldResult;M={externalPostId:z.JSC$16913_miniAppId,localReleaseId:z.localReleaseId,postPlayNonce:v,sdkVersion:I,api:l};b!==void 0&&(M.networkRequestsMeasurement={networkRequests:_.Gz(b,1),cachedRequests:_.Gz(b,2),transferredBytes:_.Gz(b,3)},(x=b)==null?0:_.Bx(x,yq,6))&&(M.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((g=_.gi(b,
yq,6))==null?void 0:hO(g,1))||"0",cacheHits:((G=_.gi(b,yq,6))==null?void 0:hO(G,2))||"0",cachedBytes:((u=_.gi(b,yq,6))==null?void 0:hO(u,3))||"0"});_.cW("miniAppSdkUsage",M);_.qe(Z)})},sM0=function(z,l,I){var b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d;
_.O(function(V){if(V.nextAddress==1)return V.yield(z.JSC$16913_playNonceResolver.promise,2);b=V.yieldResult;v={externalPostId:z.JSC$16913_miniAppId,localReleaseId:z.localReleaseId,postPlayNonce:b,sdkVersion:I,measurementWindow:{startTimestampMs:String(Sy(l,1)),endTimestampMs:String(Sy(l,2))},frameRate:{averageFrameTimeDeltaMs:dG(l,3),averageFrameIdleTimeMs:dG(l,4)}};_.Bx(l,fw,5)&&(v.networkRequests={networkRequests:(M=BT(l))==null?void 0:_.Gz(M,1),cachedRequests:(x=BT(l))==null?void 0:_.Gz(x,2),transferredBytes:(g=
BT(l))==null?void 0:_.Gz(g,3),sameOriginStatusCodeToCounts:hgA((G=BT(l))==null?void 0:F0Q(G,4)),crossOriginStatusCodeToCounts:hgA((u=BT(l))==null?void 0:F0Q(u,5))},(Z=BT(l))==null?0:_.Bx(Z,yq,6))&&(v.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((H=BT(l))==null?void 0:(y=_.gi(H,yq,6))==null?void 0:hO(y,1))||"0",cacheHits:((f=BT(l))==null?void 0:(R=_.gi(f,yq,6))==null?void 0:hO(R,2))||"0",cachedBytes:((F=BT(l))==null?void 0:(Y=_.gi(F,yq,6))==null?void 0:hO(Y,3))||"0"});_.Bx(l,
gAz,7)&&(v.gameCapture={averageFrameTimeDeltaMs:(c=_.gi(l,gAz,7))==null?void 0:dG(c,1),averageFrameIdleTimeMs:(d=_.gi(l,gAz,7))==null?void 0:dG(d,2)});_.cW("miniAppPerformanceMetrics",v);_.qe(V)})},rI4=function(z,l){var I,b;
return _.O(function(v){if(v.nextAddress==1)return v.yield(z.JSC$16913_playNonceResolver.promise,2);I=v.yieldResult;b={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:z.JSC$16913_miniAppId,postPlayNonce:I,miniAppReleaseId:z.localReleaseId},derivedDeviceInterface:z.derivedDeviceInterface,adTriggerType:l,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.cW("miniAppAdEvent",b);_.qe(v)})};
Fc_.prototype.disposeInternal=function(){_.Q9.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Rg=function(z,l,I,b){I=I===void 0?{}:I;b=b===void 0?!1:b;var v,M,x,g;_.O(function(G){if(G.nextAddress==1)return v=z.isForeground,M=z.beforeReady,G.yield(z.JSC$16913_playNonceResolver.promise,2);x=G.yieldResult;g={externalPostId:z.JSC$16913_miniAppId,localReleaseId:z.localReleaseId,derivedDeviceInterface:z.derivedDeviceInterface,postPlayNonce:x,type:l};I.sequenceGroup=x;g.playState=M?"PLAY_STATE_NOT_READY":v?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.cW("miniAppPlayEvent",g,
I);b&&_.SX();_.qe(G)})},kp=function(z,l){var I;
_.O(function(b){if(b.nextAddress==1)return I=(0,_.Dr)(),b.yield(z.JSC$16913_playNonceResolver.promise,2);_.sK(l,I);_.qe(b)})},TRn=function(z){isNaN(z.playPingTimerId)&&(z.playPingTimerId=_.ZQ(function(){z.state!==1&&z.state!==2?_.PW(new _.qB("[MiniAppPlayLogger] reportPlayPing failed with state "+qOz[z.state])):Rg(z,"PLAY_EVENT_TYPE_PLAY_PING")},z.playPingIntervalMs))},hgA=function(z){return Array.from(z.entries()).map(function(l){var I=_.D(l);
l=I.next().value;I=I.next().value;return{key:l,value:I}})};var $6A=function(){},eg4=function(z,l){z.showMiniAppAdCommand=l.showMiniAppAdCommand;
z.isEmbeddedInWebview=l.isEmbeddedInWebview;z.playLogger=l.playLogger},AII=function(z,l){var I;
return _.O(function(b){if(b.nextAddress==1){if(!z.showMiniAppAdCommand||!z.isEmbeddedInWebview)return b.return(waA(z,l));z.adResolver=new _.yX;var v=new aP;I=_.G6(v,3,l);e2(z.showMiniAppAdCommand,$xA(I));return b.yield(z.adResolver.promise,2)}return b.return(b.yieldResult)})};
$6A.prototype.onAdFinished=function(z){z=$5w(z);var l;(l=this.adResolver)==null||l.resolve(z)};
var waA=function(z,l){var I;return _.O(function(b){if(b.nextAddress==1)b=b.yield((I=z.playLogger)==null?void 0:rI4(I,lT$(l)),2);else{var v=b.return;var M=new rOA;M=_.G6(M,1,2);b=v.call(b,M)}return b})};var Wcw=new _.yH("INNERTUBE_MANAGER_TOKEN");var nt0=function(){this.callbacks={}};
nt0.prototype.initialize=function(z){var l=this;this.callbacks=z;window.youtubewebview?window.youtubewebview.onmessage=function(I){Lcn(l,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){Lcn(l,I)})};
var Lcn=function(z,l){if(l.data)try{var I=xQj(l.data);if(_.m0(_.tO(I,1))!=null){var b=dxz(_.oX(I,2));switch(I.getMethodName()){case "yt-mini-app-load-audio-state":var v,M;(M=(v=z.callbacks).onAudioStateLoaded)==null||M.call(v,_.cx(b,K2(b,U4,1)));break;case "yt-mute-mini-app":var x,g;(g=(x=z.callbacks).onMuteMiniApp)==null||g.call(x);break;case "yt-unmute-mini-app":var G,u;(u=(G=z.callbacks).onUnmuteMiniApp)==null||u.call(G);break;case "yt-playable-exit":var Z,H;(H=(Z=z.callbacks).onExit)==null||H.call(Z);
break;case "yt-post-play-nonce":var y,f;(f=(y=z.callbacks).onPostPlayNonceReceived)==null||f.call(y,s9(b,2,U4));break;case "yt-confirm-exit-mini-app":var R,F;(F=(R=z.callbacks).confirmExitMiniApp)==null||F.call(R);break;case "yt-confirm-exit-mini-app-edu":var Y,c;(c=(Y=z.callbacks).confirmExitMiniAppEdu)==null||c.call(Y);break;case "yt-benchmarking-response":var d,V;(V=(d=z.callbacks).onNativeBenchmarkingMessageReceived)==null||V.call(d,s9(b,2,U4));break;case "yt-mini-app-load-3p-consent-state":var A,
W;(W=(A=z.callbacks).multiplayer3pAckStateLoaded)==null||W.call(A,_.cx(b,K2(b,U4,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var L,lH;(lH=(L=z.callbacks).exitMiniAppSeenStateLoaded)==null||lH.call(L,_.cx(b,K2(b,U4,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Gk,uH;(uH=(Gk=z.callbacks).onNavigateToNewMiniApp)==null||uH.call(Gk);break;case "yt-game-data-available":var Xt,R1;(R1=(Xt=z.callbacks).onGameDataAvailable)==null||R1.call(Xt,s9(b,2,U4));break;case "yt-pause-mini-app":var H7,
P7;(P7=(H7=z.callbacks).onPauseMiniApp)==null||P7.call(H7);break;case "yt-resume-mini-app":var o1,z_;(z_=(o1=z.callbacks).onResumeMiniApp)==null||z_.call(o1);break;case "yt-playable-ad-finished":var dw,Ej;(Ej=(dw=z.callbacks).onAdFinished)==null||Ej.call(dw,s9(b,2,U4))}}else _.PW(Error("Yh"))}catch(JG){_.dE(Error("Zh"))}else _.PW(Error("$h"))};var bHG=function(z){this.rpcErrorCode=z};var m$=function(z,l,I){this.intervalMs=z;this.apiFunc=l;this.type=I;this.schedulerReady=!0};
m$.prototype.call=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1){if(l.type!==1&&z===l.cachedValue)return b.return();l.pendingApiRequestResolver||(l.pendingApiRequestResolver=new _.yX);I=l.pendingApiRequestResolver.promise;l.cachedValue=z;return b.yield(U6_(l),2)}return b.return(I)})};
m$.prototype.flush=function(z){z=z===void 0?!1:z;var l=this;return _.O(function(I){return l.cachedValue===void 0?I.return():I.yield(l.apiFunc(l.cachedValue,z),0)})};
var U6_=function(z){var l,I,b;return _.O(function(v){switch(v.nextAddress){case 1:if(!z.schedulerReady||!z.pendingApiRequestResolver)return v.return();z.schedulerReady=!1;l=z.pendingApiRequestResolver;z.pendingApiRequestResolver=void 0;_.RL(v,2);if(z.cachedValue===void 0){v.jumpTo(4);break}return v.yield(z.apiFunc(z.cachedValue),5);case 5:I=v.yieldResult,l.resolve(I);case 4:_.a3(v,3);break;case 2:b=_.XP(v),l.reject(b);case 3:setTimeout(function(){return _.O(function(M){z.schedulerReady=!0;return M.yield(U6_(z),
0)})},z.intervalMs),_.qe(v)}})};var p4G=window.location.origin+"/miniapp_cloudsaves",vnQ=[400,401],a20=_.OI("cloud_save_game_data_rate_limit_ms",3E3),JI_=function(z){var l=this;this.JSC$16957_miniAppId=z;this.loadAttempts=0;this.cloudSaveIntervalMs=a20;this.initialDownloadDataSucceeded=!1;this.JSC$16957_playNonceResolver=new _.yX;this.scottyUploadRateLimiter=new m$(this.cloudSaveIntervalMs,function(I,b){return VQ_(l,I,b)},2);
this.downloadDataPromise=jMA(this);this.downloadDataPromise.then(function(){l.initialDownloadDataSucceeded=!0}).catch(function(){})},z_n=function(z,l){l.then(function(I){return z.JSC$16957_playNonceResolver.resolve(I)})},lMM=function(z){return _.O(function(l){return z.cachedData===void 0?l.return(z.downloadDataPromise):l.return(z.cachedData)})},IM0=function(z,l){return _.O(function(I){z.cachedData=l;
if(!z.initialDownloadDataSucceeded)throw Error("ai");return I.yield(z.scottyUploadRateLimiter.call(l),0)})},b$_=function(){return new Promise(function(z){setTimeout(z,1E3,"")})},vLA=function(z,l){var I,b;
return _.O(function(v){if(v.nextAddress==1)return I=z.JSC$16957_miniAppId,v.yield(Promise.race([z.JSC$16957_playNonceResolver.promise,b$_()]),2);b={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":v.yieldResult};"DELEGATED_SESSION_ID"in _.P8&&JHf(l,b);return v.return(b)})},VQ_=function(z,l,I){I=I===void 0?!1:I;
return _.O(function(b){return ITu()?_.C("enable_cloud_save_error_popup_after_retry")?b.return(new Promise(function(v,M){var x,g,G,u,Z;return _.O(function(H){switch(H.nextAddress){case 1:x=0,g=!0,u=G=null;case 2:if(!(g&&x++<2)){H.jumpTo(4);break}_.RL(H,5);return H.yield(Mt4(z,l,I),7);case 7:G=H.yieldResult;g=G.ok?!1:!vnQ.includes(G.status);_.a3(H,2);break;case 5:u=Z=_.XP(H);g=Mwt(u);H.jumpTo(2);break;case 4:G?G.ok?(Kx(z,a20),v()):(Kx(z,z.cloudSaveIntervalMs*2),M(Error("bi`"+String(G.status),{cause:{rpcErrorCode:G.status}}))):
(Kx(z,z.cloudSaveIntervalMs*2),M(u||Error("ci"))),_.qe(H)}})})):b.return(new Promise(function(v,M){var x,g;
return _.O(function(G){if(G.nextAddress==1){if(z.JSC$16957_miniAppId==="")return M(Error("di")),G.return();_.RL(G,2);return G.yield(Mt4(z,l,I),4)}if(G.nextAddress!=2)return x=G.yieldResult,x.ok?(Kx(z,a20),v()):(Kx(z,z.cloudSaveIntervalMs*2),M(Error("bi`"+String(x.status),{cause:{rpcErrorCode:x.status}}))),_.a3(G,0);g=_.XP(G);Kx(z,z.cloudSaveIntervalMs*2);M(g);_.qe(G)})})):b.return()})},Mt4=function(z,l,I){I=I===void 0?!1:I;
var b,v,M;return _.O(function(x){if(x.nextAddress==1)return b=_.Tc((new TextEncoder).encode(l)),v=DLk(),x.yield(vLA(z,v),2);M=x.yieldResult;return x.return(fetch(v,{method:"POST",body:new Blob([b]),headers:M,keepalive:I}))})},jMA=function(z){var l,I;
return _.O(function(b){if(b.nextAddress==1){if(!ITu())return b.return("");if(z.JSC$16957_miniAppId==="")throw Error("di");if(z.loadAttempts>2)return b.return(z.downloadDataPromise);_.RL(b,2);return b.yield(pI0(z),4)}if(b.nextAddress!=2)return l=b.yieldResult,b.return(l);I=_.XP(b);if(Mwt(I)&&++z.loadAttempts<2)return b.return(jMA(z));throw I;})},pI0=function(z){var l,I,b,v,M;
return _.O(function(x){switch(x.nextAddress){case 1:return _.RL(x,2),l=DLk(),x.yield(vLA(z,l),4);case 4:return I=x.yieldResult,x.yield(fetch(l,{method:"GET",headers:I}),5);case 5:return b=x.yieldResult,b.ok?x.yield(b.text(),6):x.return(Promise.reject(Error("ei`"+String(b.status),{cause:new bHG(b.status)})));case 6:return v=x.yieldResult,x.return((new TextDecoder).decode(_.jx(v)));case 2:return M=_.XP(x),x.return(Promise.reject(M))}})},Kx=function(z,l){z.cloudSaveIntervalMs=l;
z.scottyUploadRateLimiter.intervalMs=z.cloudSaveIntervalMs};
JI_.prototype.flush=function(){var z=this;return _.O(function(l){return z.initialDownloadDataSucceeded?l.yield(z.scottyUploadRateLimiter.flush(!0),0):l.return()})};var D2_=Kw(mq(1),kK(1)),x2j=Kw(mq(1),kK(3)),t3=function(z){this.callbacks=z};
_.p=t3.prototype;_.p.onAudioToggled=function(z,l){(l===void 0||l)&&_.sr("yt-mini-app-is-audio-enabled",z,2592E3)};
_.p.onPause=function(){this.onAudioToggled(!1,!1)};
_.p.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.p.returnNativeBenchmarkingMessage=function(){};
_.p.sendGameData=function(){};
_.p.sendStartGameFrameCapture=function(){};
var xLu=function(z,l,I){this.callbacks=z;var b=this;this.sdkVersion=new _.yX;this.channel=new buu(_.Ez({destination:window,iframe:l,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var v=Bp;var M=mq(5);var x=new VyM;x=_.$x(x,1,1E4);M=_.Xr(M,4,M1_,x);v(b,M);b.onAudioToggled(b.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){b.sdkVersion.resolve("")},1E4)};
_.m(xLu,t3);_.p=xLu.prototype;_.p.onAudioToggled=function(z,l){t3.prototype.onAudioToggled.call(this,z,l===void 0?!0:l);l=Bp;var I=mq(2),b=new U5_;z=_.Zv(b,1,z);z=_.Xr(I,3,M1_,z);l(this,z)};
_.p.onPause=function(){t3.prototype.onPause.call(this);Bp(this,mq(3))};
_.p.onResume=function(){t3.prototype.onResume.call(this);Bp(this,mq(4))};
_.p.returnNativeBenchmarkingMessage=function(z){var l=Bp,I=mq(6);var b=kK(_.Bx(z,pd,1)?1:2);z=_.Bx(z,pd,1)?z:null;b=_.Xr(b,5,RP,z);l(this,Kw(I,b))};
_.p.sendGameData=function(z){var l=Bp,I=mq(7);z=_.Xr(I,5,M1_,z);l(this,z)};
_.p.sendStartGameFrameCapture=function(){Bp(this,mq(9))};
var X9=function(z,l,I){var b,v,M;return _.O(function(x){if(x.nextAddress==1)return b=z.callbacks,v=b.onSdkCalled,M=l,x.yield(z.sdkVersion.promise,2);v.call(b,M,x.yieldResult,I);_.qe(x)})};
xLu.prototype.onMessage=function(){var z=this;return p70(Xu,function(l){var I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH,Gk,uH,Xt,R1,H7,P7,o1,z_,dw,Ej,JG,yu,uu,Y0,iK,a_,pu,lu,k0,E8,R_,bK,Ou,lK;return _.O(function(gw){switch(gw.nextAddress){case 1:if(!uzu(l.data))return _.PW(Error("fi")),gw.return();I=_.Px(l.data,1);_.C("enable_iframe_message_get_type_via_fields")&&(b=l.data,I=v=_.Px(b,1));switch(I){case 8:if(l.data.hasMetadata()){var Ln=z.sdkVersion,Cl=Ln.resolve;var FA=l.data.getMetadata();FA=_.oX(FA,
1);Cl.call(Ln,FA);clearTimeout(z.sdkVersionTimeoutId)}break;case 6:return gw.jumpTo(2);case 16:if(!_.Xl(l.data,xiI,14,qk))return gw.return();M=_.rG(l.data,xiI,14,qk);(g=(x=z.callbacks).onGameFrameReceived)==null||g.call(x,M);return gw.return();case 17:if(!_.Xl(l.data,Diu,15,qk))return gw.return();(u=(G=z.callbacks).onGameAudioReceived)==null||u.call(G,_.rG(l.data,Diu,15,qk));return gw.return();case 1:if(Ln=_.rG(l.data,z3n,2,qk))switch(_.Px(Ln,1)){case 1:z.callbacks.onFirstFrameReady();if(_.C("enable_network_request_logging_on_game_events")&&
_.Bx(Ln,fw,4)){X9(z,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.gi(Ln,fw,4));break}X9(z,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(FA=(Cl=z.callbacks).onGameReady)==null||FA.call(Cl);if(_.C("enable_network_request_logging_on_game_events")&&_.Bx(Ln,fw,4)){X9(z,"MINI_APP_SDK_API_GAME_READY",_.gi(Ln,fw,4));break}X9(z,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Xl(Ln,Cw,3,lbA))z.callbacks.onResourceLoaded(_.rG(Ln,Cw,3,lbA))}return gw.return();case 3:return gw.jumpTo(3);case 4:return gw.jumpTo(4);
case 2:return gw.jumpTo(5);case 9:return gw.jumpTo(6);case 10:return z.callbacks.onClick(),gw.return();case 5:return gw.jumpTo(7);case 11:if(!_.Xl(l.data,Zt,9,qk))return gw.return();Z=_.rG(l.data,Zt,9,qk);(y=(H=z.callbacks).onBenchmarkingMessageReceived)==null||y.call(H,Z);Ln=l.reply;Cl=mq(1);FA=kK(1);var tp=new Zt;var ys=new Uint8Array(Rgx(Z,K2(Z,wx_,6))|0);tp=f2(tp,5,wx_,_.iu(ys,!1));FA=_.Xr(FA,5,RP,tp);Ln.call(l,Kw(Cl,FA));return gw.return();case 12:return gw.jumpTo(8);case 13:return gw.jumpTo(9);
case 15:if(!_.C("enable_open_yt_content"))return l.reply(x2j),gw.return();if(!_.Xl(l.data,pcw,12,qk))return l.reply(Kw(mq(1),kK(2))),gw.return();Ln=_.rG(l.data,pcw,12,qk);f=_.oX(Ln,1);z.callbacks.onOpenYTContent(f);l.reply(D2_);return gw.return();case 14:return gw.jumpTo(10);default:return gw.return()}gw.jumpTo(0);break;case 2:if(!_.Xl(l.data,td,5,qk))return gw.return();Cl=l.data;Ln=K2(Cl,qk,5);Cl=Cl.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=cy7(Cl,Cl[_.D4]|0,td,Ln)||td[dzG]||(td[dzG]=
o0G(td));Ln=_.OA(R,HT,1,_.g1());F=_.D(Ln);Y=F.next();case 12:if(Y.done){gw.jumpTo(14);break}c=Y.value;d=new _.qB;d.level=_.Px(c,2)===1?"WARNING":"ERROR";V=gn7(c.getSource());return gw.yield(z.sdkVersion.promise,15);case 15:A={source:V,sdkVersion:gw.yieldResult};_.IC(_.tO(c,6))!=null?(d.message=c.getMessage(),d.stack=_.oX(c,5),A.sdkErrorType=Gfx(_.Px(c,6)),_.IC(_.tO(c,7))!=null&&(A.sdkApi=NQG(_.Px(c,7)))):d.stack=void 0;L=W=void 0;(L=(W=z.callbacks).onError)==null||L.call(W,{loggingError:d,metadata:A});
Y=F.next();gw.jumpTo(12);break;case 14:return gw.return();case 3:return _.RL(gw,16),Ln=gw.yield,Cl=z.callbacks,FA=Cl.onSave,tp=_.rG(l.data,as_,4,qk),tp=_.oX(tp,1),Ln.call(gw,FA.call(Cl,tp),18);case 18:l.reply(D2_);_.a3(gw,17);break;case 16:return lH=_.XP(gw),Gk=wn,uH=lH,Xt=z.callbacks,R1="MINI_APP_SDK_API_SAVE_DATA",gw.yield(z.sdkVersion.promise,19);case 19:Gk(uH,Xt,R1,gw.yieldResult),l.reply(x2j);case 17:return gw.yield(X9(z,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return gw.return();case 4:return _.RL(gw,
21),gw.yield(z.callbacks.onLoad(),23);case 23:H7=gw.yieldResult;Ln=l.reply;Cl=mq(1);FA=kK(1);tp=new as_;tp=_.Th(tp,1,H7);FA=_.Xr(FA,3,RP,tp);Ln.call(l,Kw(Cl,FA));_.a3(gw,22);break;case 21:return P7=_.XP(gw),o1=wn,z_=P7,dw=z.callbacks,Ej="MINI_APP_SDK_API_LOAD_DATA",gw.yield(z.sdkVersion.promise,24);case 24:o1(z_,dw,Ej,gw.yieldResult),l.reply(x2j);case 22:return gw.yield(X9(z,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return gw.return();case 5:_.RL(gw,26);z.callbacks.onSendHighScore(sA(_.rG(l.data,
Ny4,3,qk).getValue()));l.reply(Kw(mq(1),kK(1)));_.a3(gw,27);break;case 26:return JG=_.XP(gw),yu=wn,uu=JG,Y0=z.callbacks,iK="MINI_APP_SDK_API_SEND_SCORE",gw.yield(z.sdkVersion.promise,28);case 28:yu(uu,Y0,iK,gw.yieldResult),l.reply(x2j);case 27:return gw.yield(X9(z,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return gw.return();case 6:if(!_.Xl(l.data,EA_,8,qk)){gw.jumpTo(30);break}Ln=gw.yield;Cl=_.rG(l.data,EA_,8,qk);Cl=_.Px(Cl,1);return Ln.call(gw,X9(z,NQG(Cl)),30);case 30:return gw.return();case 7:return Ln=
l.reply,Cl=mq(1),FA=kK(1),tp=z.callbacks.getLanguage(),FA=f2(FA,4,RP,RC(tp)),Ln.call(l,Kw(Cl,FA)),gw.yield(X9(z,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return gw.return();case 8:if(!_.Xl(l.data,Gnj,10,qk))return gw.return();a_=_.rG(l.data,Gnj,10,qk);pu=z.callbacks;lu=pu.onSdkPerformanceUpdate;return gw.yield(z.sdkVersion.promise,33);case 33:return lu.call(pu,a_,gw.yieldResult),gw.return();case 9:Ln=l.data;Cl=K2(Ln,qk,11);if(_.m0(_.tO(Ln,Cl))==null)return l.reply(Kw(mq(1),kK(2))),gw.return();
k0=s9(l.data,11,qk);z.callbacks.onShareInviteCode(k0);l.reply(D2_);return gw.yield(X9(z,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return gw.return();case 10:if(_.Xl(l.data,Lxz,13,qk)){gw.jumpTo(35);break}return gw.yield(z.callbacks.onShowMiniAppAd(2),36);case 36:return E8=gw.yieldResult,l.reply(Kw(mq(1),bNM(E8))),gw.yield(X9(z,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return gw.return();case 35:Ln=_.rG(l.data,Lxz,13,qk);a:switch(_.Px(Ln,1)){case 1:Ln={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Ln={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Ln={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}R_=Ln;bK=R_.adType;Ou=R_.sdkApi;Ln=gw.yield;Cl=z.callbacks;FA=Cl.onShowMiniAppAd;tp=_.rG(l.data,Lxz,13,qk);tp=_.oX(tp,2);return Ln.call(gw,FA.call(Cl,bK,tp||void 0),38);case 38:return lK=gw.yieldResult,l.reply(Kw(mq(1),bNM(lK))),gw.yield(X9(z,Ou),39);case 39:return gw.return()}})})};
var Bp=function(z,l){_.O(function(I){z.channel.send(l);_.qe(I)})},AQ=function(z,l,I){this.callbacks=z;
var b=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;z=W7x(l,(new URL(I.toString())).origin);this.gameSnacks=new CHA(z);this.gameSnacks.page.onReady(function(){b.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){b.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var v,M;(M=(v=b.callbacks).onGameReady)==null||M.call(v)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(v,M){try{b.callbacks.onSendHighScore(M)}catch(x){wn(x,b.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(v,M){var x;return _.O(function(g){if(g.nextAddress==1)return _.RL(g,2),g.yield(b.callbacks.onSave(b.decoder.decode(M)),4);if(g.nextAddress!=2)return _.a3(g,0);x=_.XP(g);wn(x,b.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return g.return()})});
this.gameSnacks.storage.onLoad(function(){var v,M;return _.O(function(x){if(x.nextAddress==1)return _.RL(x,2),x.yield(b.callbacks.onLoad(),4);if(x.nextAddress!=2)return v=x.yieldResult,x.return(b.encoder.encode(v));M=_.XP(x);wn(M,b.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return x.return(b.encoder.encode(""))})});
this.gameSnacks.init()};
_.m(AQ,t3);AQ.prototype.onAudioToggled=function(z,l){t3.prototype.onAudioToggled.call(this,z,l===void 0?!0:l);var I;(I=this.gameSnacks)==null||I.audio.update(z)};
AQ.prototype.onPause=function(){t3.prototype.onPause.call(this);var z;(z=this.gameSnacks)==null||z.game.pause()};
AQ.prototype.onResume=function(){t3.prototype.onResume.call(this);var z;(z=this.gameSnacks)==null||z.game.resume()};var O$z=En5,gL_=_.P(function(z){var l=z.data;var I=z.loadingProgress;var b=z.forPaused;z=_.D(_.Z_("",void 0,"LYYTdd"));var v=z.next().value,M=z.next().value;z=_.D(_.Z_(!1,void 0,"K0waae"));var x=z.next().value,g=z.next().value,G=[],u=function(){return"transform: scaleX("+(_.d2(I)||0)+")"},Z=null,H=function(){return l()&&Z!==null&&Z!==void 0?Z:Z=l().showAnniversaryAnimation?6:O$z()};
_.Te(function(){var F;if(l().timeOutMessages&&((F=l().timeOutMessages)==null?0:F.length)){Z=null;F=_.D(G);for(var Y=F.next();!Y.done;Y=F.next())clearTimeout(Y.value);G.length=0;uUp(l().timeOutMessages,G,M,g)}},"BNu9j");
var y=function(){return!!l().persistentErrorMessageTitle},f=function(){return I!==void 0},R=function(){return l().title};
return _.N("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.N("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.N("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.N("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var F,Y=(F=l().backgroundImage)==null?void 0:F.sources,c;return(Y==null?0:Y.length)?"background-image: url("+((c=Y[0])==null?void 0:c.url)+")":""}}),_.N("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.N(_.E,{cond:function(){return!y()&&!(b==null?0:b())},
then:function(){var F={};return _.N("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.N("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.N(_.A4,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+H()},
data:function(){var Y="loading_animation_"+H();return{animationConfig:{name:Y,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+Y+".json",loop:!0,autoplay:!0}}}})),_.N("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.N(_.E,{cond:R,
then:function(){return _.N("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},R)}}),_.N("p",{class:_.m9("miniAppSplashScreenViewModelTimeoutMessage",(F.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return x()},F)),
"aria-live":"polite"},v),_.N(_.E,{cond:f,then:function(){return _.N("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.N("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:u}))}})))}}),_.N(_.E,{cond:y,
then:function(){return _.N("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.N("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return l().persistentErrorMessageTitle}),_.N(_.E,{cond:function(){return!!l().persistentErrorMessageDescription},
then:function(){return _.N("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return l().persistentErrorMessageDescription})}}))}}),_.N(_.E,{cond:b,
then:function(){return _.N("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.N("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.N("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},R))}})))},"xe");var Gln=new _.yH("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var N$j=IY;IY=function(z){function l(I){if(I){var b,v;(b=I.__spec)==null||(v=b.didUnmount)==null||v.call(b);for(b=0;b<I.childNodes.length;b++)l(I.childNodes[b])}}
N$j==null||N$j(z);hx(function(){for(var I=0;I<z.length;I++)l(z[I])})};var ELA=_.P(function(z){var l=z.data;var I=z.score;var b=z.formattedScore;var v=z.onScoreChanged;var M=z.isEmbeddedInWebview;var x=_.z1("yt-mini-app-score-button-view-model"),g=function(){var f;return _.k(l==null?void 0:(f=l())==null?void 0:f.buttonViewModel,_.N1)},G=function(){var f;
return(I==null?void 0:I())||Number(l==null?void 0:(f=l())==null?void 0:f.lastScore)||0},u=function(){var f;
return(b==null?void 0:b())||((f=g())==null?void 0:f.title)||""},Z,H=1;
if(z=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))z=Number(z),H=isNaN(z)?1:z/100;_.Te(function(){v==null||v(G());var f;var R=_.Wh((f=g())==null?void 0:f.onTap);if(R){f=_.k(R,CV_);var F,Y,c;f=_.k(f==null?void 0:(F=f.panelLoadingStrategy)==null?void 0:(Y=F.inlineContent)==null?void 0:(c=Y.dialogViewModel)==null?void 0:c.customContent,eJA)}else f=void 0;if(F=f)F.score=u()},"Aekez");
z=_.KK(function(){var f,R,F=l==null?void 0:(f=l())==null?void 0:(R=f.loggingDirectives)==null?void 0:R.trackingParams;F&&_.sE(_.pG().resolve(_.br),F);return!1});
_.Sm(function(){if(x.value){var f=x.value.querySelector("button"),R=g();f&&R&&ZHk(f,R);vC("yt-share-playable-with-high-score",function(){var F=G().toString(),Y=l==null?void 0:l().onShareHighScoreCommand,c=l==null?void 0:l().highScoreShareClientParamIdentifier,d=M==null?void 0:M();Y&&(d?(c=new p2u,F=_.Th(c,2,F),e2(Y,F.JSC$12372_serializeBinary())):c&&(_.pG().resolve(Gln).clientParams.set(c,{miniAppClientParams:{highScore:F}}),VR$(Y,!1)))})}});
var y=function(){var f=g();f&&(I==null?0:I())&&f.accessibilityText&&(f.accessibilityText=f.accessibilityText.replace(Z,u()));Z=u();return{numberValue:G(),numberText:u(),heightPx:36,fontSizeMultiplier:H,shouldAnimate:!(I==null||!I())&&!0}};
return _.N("yt-mini-app-score-button-view-model",{class:function(){var f={};return _.sB("miniAppScoreButtonViewModelHost",(f.miniAppScoreButtonViewModelIsVisible=G()!==0,f))},
el:x,"on:click":z},RnG(!1,function(){return _.N("span",{style:"display:none;"},G)}),_.N(_.TS,{data:function(){var f;
return l==null?void 0:(f=l())==null?void 0:f.buttonViewModel}},{buttonViewModel:function(f){return _.N(_.h4,{data:f.data,
animatedTextProps:y})}}))},"ye");var fM4=_.P(function(z){var l,I=(l=_.rD("yt-mini-app-is-theater-mode-enabled"))!=null?l:!1,b=_.C("enable_playable_container_save_button"),v=_.C("enable_play_next_destination_page_in_toolbar");l={};return _.N("ytm-mini-app-top-bar-view-model",null,_.N("div",{class:_.m9("yt-mini-app-top-bar-view-model",(l["yt-mini-app-top-bar-view-model--mobile"]=!1,l["yt-mini-app-top-bar-view-model--desktop"]=!0,l))},_.N("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.N(_.E,{cond:function(){var M;return!!z.data().backButtonEdu&&
!((M=z.isExitMiniAppSeen)==null?0:M.call(z))},
then:function(){return _.N(_.TS,{data:function(){return z.data().backButtonEdu}},{buttonViewModel:_.h4})},
else:function(){return _.N(_.TS,{data:function(){return z.data().backButton}},{buttonViewModel:_.h4})}}),_.N(_.E,{cond:function(){return z.data().viewAllButton&&!0},
then:function(){return _.N(_.TS,{data:function(){return z.data().viewAllButton}},{buttonViewModel:_.h4})}}),_.N(_.E,{cond:function(){return z.data().title&&!0},
then:function(){return _.N("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return z.data().title})}})),_.N("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.N(_.E,{cond:function(){var M;
return(M=z.isDesktopPlayPage)==null?void 0:M.call(z)},
then:function(){return _.N(_.xP,null,_.N(unM,{highScoreButton:function(){return z.data().highScoreButton},
score:z.score,formattedScore:z.formattedScore,onScoreChanged:z.onScoreChanged,isEmbeddedInWebview:z.isEmbeddedInWebview}),_.N(Z$p,{enableSaveButton:function(){return _.d2(b)},
saveButton:function(){return z.data().saveButton},
isSaved:z.isSaved,onSaveToggled:function(){return z.onSaveToggled}}),_.N(H$A,{menuButton:function(){return z.data().menuButton}}))},
else:function(){return _.N(_.E,{cond:function(){return!1},
then:function(){return _.N(_.TS,{data:function(){return z.data().playPageButton}},{buttonViewModel:function(M){return _.N(_.h4,{data:M.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.N(unM,{highScoreButton:function(){return z.data().highScoreButton},
score:z.score,formattedScore:z.formattedScore,onScoreChanged:z.onScoreChanged,isEmbeddedInWebview:z.isEmbeddedInWebview})}})}})),_.N("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.N(_.TS,{data:function(){return z.data().muteButton}},{toggleButtonViewModel:function(M){var x=M.data;
return _.N(_.vL,{data:function(){var g,G;return Object.assign({},x(),{isToggled:(G=(g=z.isAudioEnabled)==null?void 0:g.call(z))!=null?G:!0})},
onToggle:z.onAudioToggled,useOutlinedIcon:!0})}}),_.N(_.TS,{data:function(){return z.data().theatreModeButton}},{toggleButtonViewModel:function(M){var x=M.data;
return _.N("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.N(_.vL,{data:function(){return Object.assign({},x(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.N(yhp,{fullscreenButton:function(){return z.data().fullscreenButton}}),_.N(_.E,{cond:function(){return _.d2(v)&&z.data().viewAllButton&&!1},
then:function(){return _.N(_.TS,{data:function(){return z.data().viewAllButton}},{buttonViewModel:_.h4})}}),_.N(_.E,{cond:function(){var M;
return!((M=z.isDesktopPlayPage)==null?0:M.call(z))},
then:function(){return _.N(_.xP,null,_.N(Z$p,{enableSaveButton:function(){return _.d2(b)},
saveButton:function(){return z.data().saveButton},
isSaved:z.isSaved,onSaveToggled:function(){return z.onSaveToggled}}),_.N(H$A,{menuButton:function(){return z.data().menuButton}}))}}))))},"ze");
fM4.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var H$A=_.P(function(z){return _.N(_.TS,{data:z.menuButton},{buttonViewModel:_.h4})},"Ae"),Z$p=_.P(function(z){var l=z.enableSaveButton;
var I=z.saveButton;var b=z.isSaved;var v=z.onSaveToggled;return _.N(_.E,{cond:function(){return l()&&!(I==null||!I())},
then:function(){return _.N(_.TS,{data:function(){var M=_.k(I==null?void 0:I(),_.uS),x;return{toggleButtonViewModel:Object.assign({},M,{isToggled:(x=b==null?void 0:b())!=null?x:!(M==null||!M.isToggled)})}}},{toggleButtonViewModel:function(M){return _.N(_.vL,{data:M.data,
onToggle:v})}})}})},"Be"),unM=_.P(function(z){var l=z.highScoreButton;
var I=z.score;var b=z.formattedScore;var v=z.onScoreChanged;var M=z.isEmbeddedInWebview;return _.N(_.TS,{data:l},{miniAppScoreButtonViewModel:function(x){return _.N(ELA,{data:x.data,score:I,formattedScore:b,onScoreChanged:v,isEmbeddedInWebview:M})}})},"Ce"),yhp=_.P(function(z){z=z.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.N(_.xP,null):_.N(_.TS,{data:z},{buttonViewModel:_.h4})},"De");_.Cy_=new _.yH("DESKTOP_CURRENT_PAGE");var B$u=_.P(function(z){var l=z.data;var I=_.C("force_active_time_logging_webview"),b=!1,v=new nt0,M=void 0,x=void 0,g=_.pG().resolve(Wcw),G=new $6A,u=void 0,Z=void 0,H=[],y=void 0,f=void 0,R=!1,F=!1,Y=!1,c=!1,d=new _.yX,V=_.pG().resolve(Gln),A=_.pG().resolve(_.Cx),W=_.pG().resolve(_.MB(nf)),L,lH=(L=_.pG().resolve(_.MB(_.Cy_)))==null?void 0:L.getCurrentPage(),Gk=!1,uH=0,Xt=function(nu){nu.preventDefault();return nu.returnValue=""},R1;
z=_.D(_.Z_(!((R1=_.rD("yt-mini-app-is-audio-enabled"))!=null&&!R1),void 0,"WhYQTd"));var H7=z.next().value,P7=z.next().value,o1;R1=_.D(_.Z_(!((o1=_.rD("exit-mini-app-seen-state"))==null||!o1),void 0,"jxhCJb"));var z_=R1.next().value,dw=R1.next().value;o1=_.D(_.Z_(!1,void 0,"MuvDfe"));var Ej=o1.next().value,JG=o1.next().value;o1=_.D(_.Z_(void 0,void 0,"u9DLoc"));var yu=o1.next().value,uu=o1.next().value;o1=_.D(_.Z_(void 0,void 0,"rykyJb"));var Y0=o1.next().value,iK=o1.next().value;o1=_.D(_.Z_(!0,void 0,
"d8FUvf"));var a_=o1.next().value,pu=o1.next().value;o1=_.D(_.Z_(!1,void 0,"x9XwUb"));var lu=o1.next().value,k0=o1.next().value;o1=_.D(_.Z_(!1,void 0,"bcquyc"));var E8=o1.next().value,R_=o1.next().value;o1=_.D(_.Z_(void 0,void 0,"FMAC5b"));var bK=o1.next().value,Ou=o1.next().value;o1=_.D(_.Z_(0,void 0,"HUGJEb"));var lK=o1.next().value,gw=o1.next().value,Ln=_.VK("mini-app-container-view-model"),Cl=function(){return l().isEmbeddedInWebview},FA=function(){return l().hasPlayNextShelf};
vC("yt-page-type-changed",function(nu){if(_.C("enable_is_mini_app_page_active_bugfix"))nu.detail.newPageSubtype==="mini_app"&&nu.detail.newPageType==="ytd-browse"||!a_()||jA();else if(nu=_.wO7()==="mini_app",nu!==a_())if(pu(nu),nu){var kS;nu=(kS=l().playableId)==null?void 0:kS.toString();nu!==void 0&&window.location.href.includes(nu)&&!F&&(c=!0,tp(),CD.value&&qj(CD.value))}else nu||jA()});
vC("yt-action",function(nu){nu.detail.actionName==="yt-engagement-panel-visible-changed"&&nu.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&nu.detail.args[2]==="PAmini_app_panel"&&jA();_.C("enable_is_mini_app_page_active_bugfix")?nu.detail.actionName==="yt-history-load"&&!a_()&&(lH==null?0:lH.active)?(pu(!0),tp(),CD.value&&qj(CD.value)):nu.detail.actionName==="yt-history-load"&&a_()&&!l().isEmbeddedInWebview&&$0():a_()&&nu.detail.actionName==="yt-history-load"&&(c?c=!1:l().isEmbeddedInWebview||
$0())});
_.cb(function(){ys()});
_.Te(function(){tp()},"bLMzme");
var tp=function(){var nu=l().playableId,kS=l().localReleaseId,oC=l().derivedDeviceInterface;if(F)_.PW(new _.qB("[MiniAppContainerViewModel] onEnter was called more than once"));else{F=!0;M=new Fc_(nu,kS,oC,document.visibilityState==="visible");cIu(M);x=new JI_(nu);kl_(g,nu);eg4(G,{showMiniAppAdCommand:l().showMiniAppAdCommand,isEmbeddedInWebview:l().isEmbeddedInWebview,playLogger:M});hvf()&&(f=document.body.style.backgroundColor,_.aq(document.body,"background-color","black"));L2();cX();d=new _.yX;
if(l().isEmbeddedInWebview){if(nu=(new URLSearchParams(window.location.search)).get("postPlayNonce"))YOu(M,nu),Gk=!0;v.initialize({onAudioStateLoaded:function(DF){FY(DF)},
onMuteMiniApp:function(){FY(!1)},
onUnmuteMiniApp:function(){FY(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(DF){Gk||(YOu(M,DF),Gk=!0)},
confirmExitMiniApp:function(){var DF,E7,U7;return _.O(function($N){if($N.nextAddress==1)return l().confirmExitMiniAppCommand?$N.yield(Promise.race([d.promise,Promise.resolve(!1)]),2):$N.return();(DF=$N.yieldResult)?!l().confirmExitMiniAppCommandEdu||(U7=(E7=z_)==null?void 0:E7())!=null&&U7?ll(l().confirmExitMiniAppCommand):(ll(l().confirmExitMiniAppCommandEdu),_.sr("exit-mini-app-seen-state","true",2592E6)):ll(l().closeMiniAppCommand);_.qe($N)})},
onNativeBenchmarkingMessageReceived:function(DF){DF=WxA(_.aT5(DF));if(_.Xl(DF,_.rn,3,ehz)){var E7=_.rG(DF,_.rn,3,ehz),U7=j91();var $N=sA(U7.getSeconds())-sA(E7.getSeconds());E7=_.Gz(U7,2)-_.Gz(E7,2);$N<0&&E7>0?($N+=1,E7-=1E9):$N>0&&E7<0&&(--$N,E7+=1E9);$N=(new pd).setSeconds($N);$N=_.zT($N,2,_.vX(E7),0);_.tT(DF,1,$N)}var Jx;(Jx=Z)==null||Jx.returnNativeBenchmarkingMessage(DF)},
multiplayer3pAckStateLoaded:function(DF){$0(DF)},
exitMiniAppSeenStateLoaded:function(DF){l().confirmExitMiniAppCommandEdu&&dw(DF)},
onNavigateToNewMiniApp:function(){ll(l().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(DF){DF=new URLSearchParams(DF);var E7=void 0;DF.has("invite_code")&&(E7=new JOj,DF=DF.get("invite_code"),E7=_.Th(E7,1,DF));if(DF=E7){var U7;(U7=Z)==null||U7.sendGameData(DF)}},
onPauseMiniApp:function(){b=!0;uK()},
onResumeMiniApp:function(){b=!0;Yq()},
onAdFinished:function(DF){G.onAdFinished(DF)}});
l().showMultiplayer3pConsentDialogCommand||d.resolve(!0);ll(l().onContainerReadyCommand)}else YOu(M),d.resolve(!0);z_n(x,QMM(M));QMM(M).then(function(DF){DF={miniAppPlayData:{postPlayNonce:DF}};var E7,U7=(E7=l().loggingDirectives)==null?void 0:E7.trackingParams;U7&&_.iY().stateChanged(U7,DF)});
nu=l().showSignInDialogCommand;!ITu()&&nu&&(_.sr("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),ll(nu));l().confirmExitMiniAppCommand&&W&&(nu=UHQ(l().confirmExitMiniAppCommand))&&(W.customConfirmationCommand=nu)}},ys=function(){f&&_.aq(document.body,"background-color",f);
R=!1;y&&y.release();x.flush().catch(function(nu){_.PW(nu)});
g.flush().catch(function(nu){_.PW(nu)});
d6w(M);lC();Z=void 0;R_I(V)},jA=function(){pu(!1);
ys();JG(!1);Ou(void 0);uu(void 0);iK(void 0);uH=0;gw(0);F=!1},uK=function(){var nu;
(nu=Z)==null||nu.onPause();y&&y.release();x.flush().catch(function(kS){_.PW(kS)});
g.flush().catch(function(kS){_.PW(kS)});
SO0(M);k0(!0)},Yq=function(){var nu;
(nu=Z)==null||nu.onResume();cX();nu=M;nu.isForeground=!0;Rg(nu,"PLAY_EVENT_TYPE_PLAY_RESUME");k0(!1)},FY=function(nu){var kS;
(kS=Z)==null||kS.onAudioToggled(nu);P7(nu)},$0=function(nu){l().showMultiplayer3pConsentDialogCommand&&(l().isEmbeddedInWebview&&nu!==void 0&&d.resolve(nu),!nu&&_.wO7()==="mini_app"&&ll(l().showMultiplayer3pConsentDialogCommand))},hy=function(){var nu,kS,oC,DF;
return _.O(function(E7){if(E7.nextAddress==1){!l().isLivestream||l().disableVideoCapture||(nu=Z)!=null&&nu.sendStartGameFrameCapture();kS=(new URL(window.location.href)).searchParams;if(kS.has("invite_code")){var U7=new JOj,$N=kS.get("invite_code");oC=_.Th(U7,1,$N);(DF=Z)==null||DF.sendGameData(oC)}Ej()||(JG(!0),U7=M,U7.state!==1?_.PW(new _.qB("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+qOz[U7.state])):(_.Go("mini_app_ids_without_game_ready").includes(U7.JSC$16913_miniAppId)&&(U7.gameReady=
!0),U7.state=2,U7.beforeReady=!1,kp(U7,"ma_ffr"),Rg(U7,"PLAY_EVENT_TYPE_PLAY_READY")));return E7.yield(d.promise,2)}ll(l().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();l().isEmbeddedInWebview||$0();_.qe(E7)})},WX=function(){var nu=M;
nu.gameReady=!0;kp(nu,"ma_gr")},BQ=function(nu){var kS;
return _.O(function(oC){if(oC.nextAddress==1)return _.RL(oC,2),oC.yield(IM0(x,nu),4);if(oC.nextAddress!=2)return _.a3(oC,0);kS=_.XP(oC);ll(l().showSavingErrorPopupCommand);throw kS;})},e3=function(){var nu,kS;
return _.O(function(oC){if(oC.nextAddress==1)return _.RL(oC,2),oC.yield(lMM(x),4);if(oC.nextAddress!=2)return nu=oC.yieldResult,oC.return(nu);kS=_.XP(oC);ll(l().showLoadingErrorDialogCommand);throw kS;})},f7=function(nu){M.logError(nu)},rk=function(nu,kS,oC){Pn4(M,nu,kS,oC)},ZJ=function(nu,kS){sM0(M,nu,kS)},dH=function(){!I&&l().isEmbeddedInWebview||_.MA();
otn(M,!0);R||(window.addEventListener("beforeunload",Xt,{capture:!0}),R=!0)},Dp=function(nu){var kS,oC,DF,E7,U7,$N,Jx;
return _.O(function(X1){if(X1.nextAddress==1)return g&&(!u||u<nu)&&nu>0?X1.yield(m2z(g,nu),3):X1.jumpTo(0);kS=X1.yieldResult;oC=_.D(kS);DF=oC.next().value;E7=oC.next().value;U7=DF;$N=E7;((Jx=U7)==null?0:Jx.displayString)&&$N&&(uu($N),iK(U7.displayString));_.qe(X1)})},Ft=function(nu){var kS=l().onBenchmarkingMessageReceivedCommand;
if(kS){var oC=j91();_.Xr(nu,3,ehz,oC);e2(kS,nxz(nu))}},hG=function(nu){var kS=l().onGameFrameReceivedCommand;
if(kS){var oC=new aP;var DF=new PoA;var E7=Sy(nu,1);DF=_.BW(DF,1,E7);nu=_.oX(nu,2);nu=_.Th(DF,2,nu);oC=_.tT(oC,2,nu);e2(kS,$xA(oC))}},W7=function(nu){var kS=l().onGameAudioDataReceivedCommand;
if(kS){var oC=new aP;var DF=new sr0;nu=_.oX(nu,1);DF=_.Th(DF,1,nu);oC=_.tT(oC,4,DF);e2(kS,$xA(oC))}},Cn=function(){var nu=new URLSearchParams(window.location.search);
if(l().isEmbeddedInWebview&&nu&&nu.get("override_hl")==="true"&&nu.get("hl"))return nu.get("hl");nu=document.documentElement.lang;return nu!==""?nu:Lc},ZF=function(nu){var kS=l().onShareInviteCodeCommand;
if(kS)if(l().isEmbeddedInWebview){var oC=new p2u;nu=_.Th(oC,1,nu);e2(kS,xGu(nu))}else oC=l().inviteCodeShareClientParamIdentifier,V.clientParams.set(oC,{miniAppClientParams:{inviteCode:nu}}),ll(kS)},TT=function(nu){var kS,oC,DF;
return _.O(function(E7){if(E7.nextAddress==1)return kS=l().onMiniAppOpenYtContentRequested,g&&_.C("enable_open_yt_content")&&kS?E7.yield(KC4(g,nu),3):E7.jumpTo(0);oC=E7.yieldResult;if(oC==="OK")if(l().isEmbeddedInWebview){var U7=new cgA;DF=f2(U7,2,U4,RC(nu));e2(kS,oIu(DF))}else A.clientData.set("video_id",nu),ll(kS);_.qe(E7)})},Kl=function(nu){uH+=_.Gz(nu,3);
nu=Math.min(Math.log(1+uH/15E6*9)/Math.log(10),.99);gw(nu);Kn(nu)},Kn=_.S1(function(nu){var kS=l().updateLoadingProgressCommand;
if(kS){var oC=new cgA;nu=f2(oC,3,U4,_.W_(nu));e2(kS,oIu(nu))}},100),mA=function(nu){return AII(G,nu)},cX=function(){var nu,kS;
((nu=_.qQ$())==null?void 0:(kS=nu.wakeLock)==null?void 0:kS.request)!=null&&_.qQ$().wakeLock.request("screen").then(function(oC){y=oC}).catch(function(){})},CD=_.z1("iframe");
_.Te(function(){l().isSupportedCountry&&(ITu()||_.C("enable_sign_in_promo")||!l().showSignInDialogCommand?CD.value&&qj(CD.value):ll(l().onMiniAppReadyCommand))},"ASuFde");
var H_=function(){return _.N("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ej()?0:-1},
el:CD})},qj=function(nu,kS){kS=kS===void 0?!1:kS;
var oC=FQ();oC&&(kS||oC.toString()!==nu.getAttribute("src"))&&(Z=OHY(l().source,{isAudioEnabled:H7,onFirstFrameReady:hy,onGameReady:WX,onSave:BQ,onLoad:e3,onError:f7,onSdkCalled:rk,onSdkPerformanceUpdate:ZJ,onClick:dH,onSendHighScore:Dp,onBenchmarkingMessageReceived:Ft,getLanguage:Cn,onShareInviteCode:ZF,onResourceLoaded:Kl,onOpenYTContent:TT,onShowMiniAppAd:mA,onGameFrameReceived:hG,onGameAudioReceived:W7},nu,oC),YC(nu,"load",function(){kp(M,"ma_il");YC(nu,"load",function(){qj(nu,!0)})}),_.JT(nu,
oC))},FQ=function(){var nu=l().url;
if(nu&&(nu=_.Pd(nu),nu!==null)){if(l().source&&l().source==="MINI_APP_SOURCE_GAMESNACKS")nu=_.y6(nu,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.C("enable_origin_query_parameter_bugfix")){var kS=_.QF(_.sHt(nu.toString()));kS=new URLSearchParams(kS||"");kS.set("origin",window.location.origin);kS=kS.toString();nu=_.YR(nu).toString();nu=_.QR(Uzu.exec(nu)[0]+(kS.trim()?"#"+kS:""))}return nu}},PQ=function(){var nu={};
nu=_.m9("yt-mini-app-container-view-model__loading-screen",(nu["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ej,nu));var kS=function(){return Ej()?1:lK()};
return _.N("div",{class:nu},_.N(_.TS,{data:function(){return l().splashScreen}},{miniAppSplashScreenViewModel:function(oC){return _.N(gL_,{data:oC.data,
loadingProgress:kS})}}))},w2=function(){var nu={};
return _.N("div",{class:_.m9("yt-mini-app-container-view-model__pause-interstitial",(nu["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!lu()},nu["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=lu,nu))},_.N(_.TS,{data:function(){return l().splashScreen}},{miniAppSplashScreenViewModel:function(kS){return _.N(gL_,{data:kS.data,
forPaused:!0})}}))},L2=function(){H=[];
H.push(_.dZ(window,"visibilitychange",function(){Y||b&&Cl()||(document.visibilityState==="visible"?Yq():uK())}));
H.push(_.dZ(window,"pagehide",function(){ys()}));
H.push(_.dZ(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Ln.value.dispatchEvent(new Event("tap"))},0)}));
H.push(_.dZ(Ln.value,"pointerdown",function(){otn(M,!1)},!0));
H.push(_.dZ(Ln.value,"pause",function(){Y=!0;uK()}));
H.push(_.dZ(Ln.value,"play",function(){Y=!1;Yq()}));
H.push(_.dZ(Ln.value,"exit",function(){ys()}));
var nu=navigator.keyboard,kS=nu&&nu.lock;H.push(_.dZ(window,xX_,function(){R_(gEj());gEj()?(l().hasPlayNextShelf&&R$("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),BU("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),kS&&nu.lock(["Escape"])):(l().hasPlayNextShelf&&BU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),R$("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),kS&&nu.unlock())}));
l().showMultiplayer3pConsentDialogCommand&&H.push(_.dZ(window,"yt-playables-ack-3p-data-usage",function(){ttj(g)}));
l().confirmExitMiniAppCommandEdu&&H.push(_.dZ(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.sr("exit-mini-app-seen-state","true",2592E6)}));
l().onGameAudioDataReceivedCommand&&H.push(_.dZ(window,"message",function(oC){oC=oC.event_;var DF,E7=(DF=CD.value)==null?void 0:DF.src;if(E7&&oC.origin===(new URL(E7)).origin&&oC.data&&oC.data.type==="GAME_AUDIO"&&oC.data.audio&&oC.data.audio.length>0)if(_.C("enable_sending_unwrapped_game_audio_as_serialized_metadata"))zA5(l().onGameAudioDataReceivedCommand,oC.data.audio);else{var U7=new FileReader;U7.onload=function(){var $N=new aP;var Jx=new sr0;Jx=_.Th(Jx,1,U7.result);$N=_.tT($N,4,Jx);e2(l().onGameAudioDataReceivedCommand,
$xA($N))};
U7.readAsDataURL(new Blob([oC.data.audio]))}}))},lC=function(){H.forEach(function(nu){T4(nu)});
window.removeEventListener("beforeunload",Xt,{capture:!0})},ll=function(nu){nu&&VR$(nu,l().isEmbeddedInWebview||!1)},BU=function(nu,kS){nu=_.D(Ln.value.getElementsByClassName(nu));
for(var oC=nu.next();!oC.done;oC=nu.next())oC.value.classList.add(kS)},R$=function(nu,kS){nu=_.D(Ln.value.getElementsByClassName(nu));
for(var oC=nu.next();!oC.done;oC=nu.next())oC.value.classList.remove(kS)};
return function(){var nu={};nu=_.m9("yt-mini-app-container-view-model",(nu["yt-mini-app-container-view-model--desktop"]=!0,nu["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return l().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nu["yt-mini-app-container-view-model--ios-web-view"]=hvf(),nu["yt-mini-app-container-view-model--no-top-bar"]=function(){return!l().topBar},nu["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return l().hasPlayNextShelf},nu["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return l().hasPlayNextShelf},nu["yt-mini-app-container-view-model--show-peek-below"]=function(){return!E8()&&l().hasPlayNextShelf},nu));
var kS={};kS=_.m9("yt-mini-app-container-view-model__content",(kS["yt-mini-app-container-view-model__content--desktop-content"]=!0,kS["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return l().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},kS["yt-mini-app-container-view-model--desktop-play-page"]=function(){return l().hasPlayNextShelf},kS));
return _.N("mini-app-container-view-model",{el:Ln},_.N("div",{class:nu},_.N(_.E,{cond:function(){return l().topBar&&!E8()},
then:function(){return _.N(_.TS,{data:function(){return l().topBar}},{miniAppTopBarViewModel:function(oC){return _.N(fM4,{data:oC.data,
isAudioEnabled:H7,onAudioToggled:function(DF){FY(DF)},
score:yu,formattedScore:Y0,onScoreChanged:function(DF){u=DF},
isEmbeddedInWebview:Cl,isSaved:bK,onSaveToggled:function(DF){Ou(DF)},
isExitMiniAppSeen:z_,isDesktopPlayPage:FA})}})}}),_.N("div",{class:kS},_.N(_.E,{cond:a_,
then:function(){return H_()}}),_.N(_.E,{cond:function(){return l().isLivestream},
then:function(){return w2()}}),_.N(_.E,{cond:function(){return!l().isEmbeddedInWebview},
then:function(){return PQ()}}))))}()},"Ee");
B$u.idomCompat=!0;_.uO(B$u,"mini-app-container-view-model",{props:{data:_.mB}});var XI_=_.P(function(z){var l=z.data;return _.N("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.N("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.KK(function(){var I=l().onTap;I&&_.ae(I)})},_.N(_.E,{cond:function(){return l().icon},
then:function(I){return _.N(_.qt,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.N("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return l().title})))},"Fe");
XI_.idomCompat=!0;var qJ0=_.P(function(z){var l=_.VK("div"),I=_.D(_.Z_(void 0,void 0,"dg3xff")),b=I.next().value,v=I.next().value;I=_.D(_.Z_(void 0,void 0,"AgHNfc"));var M=I.next().value,x=I.next().value;I=_.D(_.Z_(void 0,void 0,"fuTKCc"));var g=I.next().value,G=I.next().value,u=function(){var c=b();return c!==void 0?Math.abs(c):void 0},Z=function(){var c=u();
return c===void 0||c<=3},H=function(){var c=u();
var d=M(),V=g();c=c!==void 0&&d!==void 0&&V!==void 0?d-V-c:void 0;return c===void 0||c<=3},y=function(c){l.value&&l.value.scrollBy({top:0,
left:(_.sZ("HTML_DIR")==="rtl"?-1:1)*c*l.value.clientWidth,behavior:"smooth"})},f=function(){var c;
v((c=l.value)==null?void 0:c.scrollLeft);var d;x((d=l.value)==null?void 0:d.scrollWidth);var V;G((V=l.value)==null?void 0:V.clientWidth)},R=function(){y(-.5)},F=function(){y(.5)};
I=_.KK(function(){f()});
_.c8(function(){f();if(l.value&&window.ResizeObserver){var c=new ResizeObserver(f);c.observe(l.value);_.cb(function(){c.disconnect()})}});
var Y={};return _.N("yt-sponsorships-scrollable-shelf",{class:_.m9("ytdSponsorshipsScrollableShelfHost",z.className)},_.N("div",{class:_.m9("ytdSponsorshipsScrollableShelfContent",(Y.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return z.data().previousButton&&z.data().nextButton&&!Z()&&!H()},Y.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return z.data().previousButton&&!Z()&&H()},Y.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return z.data().nextButton&&
Z()&&!H()},Y)),
el:l,"on:scroll":I},z.children),_.N(_.E,{cond:function(){return!Z()},
then:function(){return _.N(_.TS,{data:function(){return z.data().previousButton}},{buttonViewModel:function(c){return _.N(_.h4,{data:c.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:R})}})}}),_.N(_.E,{cond:function(){return!H()},
then:function(){return _.N(_.TS,{data:function(){return z.data().nextButton}},{buttonViewModel:function(c){return _.N(_.h4,{data:c.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:F})}})}}))},"Ge");
qJ0.idomCompat=!0;var FCz=_.P(function(z){var l=z.data;z={};return _.N("yt-sponsorships-hub",{class:_.m9("ytdSponsorshipsHubHost",(z.ytdSponsorshipsHubHostIndented=function(){return l().indented},z))},_.N("div",{class:"ytdSponsorshipsHubHeader"},_.N("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.N("div",{class:"ytdSponsorshipsHubAvatar"},_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz})),_.N(_.E,{cond:function(){return l().badgeImage},
then:function(I){return _.N("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.N("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.N("div",{class:"ytdSponsorshipsHubBadge"},_.N(_.pK,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.N("div",{class:"ytdSponsorshipsHubDetails"},_.N("div",{class:"ytdSponsorshipsHubTierName"},function(){return l().tierName}),_.N("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return l().membershipType}),_.N("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return l().membershipDurationOrExpiry})),_.N("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.N(_.TS,{data:function(){return l().manageButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.N(_.TS,{data:function(){return l().actionMenuButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.N("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return l().perksTitle}),_.N(qJ0,{data:function(){return{previousButton:l().previousPerkButton,
nextButton:l().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.N("div",{class:"ytdSponsorshipsHubPerkCards"},_.N(_.TS,{data:function(){return l().perkCards}},{sponsorshipsHubPerkCardViewModel:XI_}),_.N(_.E,{cond:function(){return l().viewAllPerksButton},
then:function(I){return _.N(i$A,{data:I})}}))))},"He");
FCz.idomCompat=!0;var i$A=_.P(function(z){var l=z.data;return _.N("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.N(_.TS,{data:function(){return l().button}},{buttonViewModel:_.h4}),_.N("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.N("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return l().title}),_.N("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return l().subtitle})))},"Ie");
i$A.idomCompat=!0;_.uO(FCz,"yt-sponsorships-hub",{props:{data:_.mB}});_.Qk_=_.P(function(z){var l=z.data;return _.N("yt-dual-avatar-view-model",{class:_.m9("ytDualAvatarViewModelHost",z.className),style:_.XV({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=l().badgeCutoutRadius)!=null?I:14)+"px"}})},_.N("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.N(_.TS,{data:function(){return l().startAvatar}},{avatarViewModel:_.Dz}),_.N(_.TS,{data:function(){return l().endAvatar}},{avatarViewModel:_.Dz})),_.N(_.TS,{data:function(){return l().badge}},
{contentPreviewImageViewModel:function(I){return _.N("div",{class:"ytDualAvatarViewModelBadge"},_.N(_.cm,{data:I.data}))}}))},"Je");
_.Qk_.idomCompat=!0;var T$_=_.P(function(z){var l=z.data;var I,b=!((I=_.pG().resolve(_.MB(_.I2)))==null||!I());z=_.kz(function(){var Z,H,y=b?(Z=l().header)==null?void 0:Z.backgroundColorDarkMode:(H=l().header)==null?void 0:H.backgroundColorLightMode;if(y!==void 0)return _.aD(y)},void 0,"TDdh7d");
I=_.kz(function(){var Z,H;return b?(Z=l().header)==null?void 0:Z.backgroundImagePart1Dark:(H=l().header)==null?void 0:H.backgroundImagePart1Light},void 0,"X0peMe");
var v=_.kz(function(){var Z,H;return b?(Z=l().header)==null?void 0:Z.backgroundImagePart2Dark:(H=l().header)==null?void 0:H.backgroundImagePart2Light},void 0,"an0Hzd"),M=_.kz(function(){return _.sZ("HTML_DIR")==="rtl"},void 0,"BltEgb"),x=_.VK("yt-sponsorships-perks-list"),g=!1,G=function(){var Z=x.value;
if(Z&&!g){var H,y=(H=Z.parentElement)==null?void 0:H.parentElement;if(y)for(Z=Z.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),H=0;H<Z.length;++H){var f=Z[H];if(f instanceof HTMLElement){y.scrollTo({top:f.offsetTop+f.clientHeight/2-y.clientHeight/2,behavior:"smooth"});g=!0;break}}}};
_.Sm(function(){var Z=x.value;if(Z&&window.ResizeObserver){var H=new ResizeObserver(G);H.observe(Z);_.cb(function(){H.disconnect()})}});
var u={};return _.N("yt-sponsorships-perks-list",{el:x,class:_.m9("ytdSponsorshipsPerksListHost",(u.ytdSponsorshipsPerksListHorizontalPadding=function(){return l().horizontalPaddingEnabled},u))},_.N("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.N("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.XV({"background-color":z})},_.N("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.N(_.E,{cond:I,then:function(Z){var H={};return _.N("div",{class:_.m9((H.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,H.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,H.ytdSponsorshipsPerksListFlipped=M,H))},_.N(_.pK,{data:Z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.N("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.N(_.E,{cond:v,
then:function(Z){var H={};return _.N("div",{class:_.m9((H.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,H.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,H.ytdSponsorshipsPerksListFlipped=M,H))},_.N(_.pK,{data:Z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.N("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.N(_.TS,{data:function(){var Z;
return(Z=l().header)==null?void 0:Z.dualAvatar}},{dualAvatarViewModel:_.Qk_})))),_.N("div",{class:"ytdSponsorshipsPerksListBody"},_.N("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return l().title}),_.N(_.E,{cond:function(){return l().perks},
then:function(Z){return _.N(_.qy,{each:Z},function(H,y){var f={};return _.N("div",{class:_.m9("ytdSponsorshipsPerksListPerkContainer",(f.ytdSponsorshipsPerksListSelectedPerk=function(){var R=y(),F=l().selectedPerkIndex;return R===F},f))},_.N(_.E,{cond:function(){return y()>0},
then:function(){return _.N("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.N("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.N(_.E,{cond:function(){return H.icon},
then:function(R){return _.N(_.qt,{icon:function(){return R().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.N("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.N("div",{class:"ytdSponsorshipsPerksListPerkTitle"},H.title),_.N("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.N(_.Rf,{text:H.description})),_.N(_.E,{cond:function(){return H.instructions},
then:function(){var R,F;return _.N("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.N("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(R=H.instructions)==null?void 0:R.title),_.N("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.N(_.Rf,{text:(F=H.instructions)==null?void 0:F.text})))}}))),_.N(_.E,{cond:function(){return H.emoji},
then:function(R){return _.N("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.N(_.qy,{each:function(){return R()}},function(F){return _.N(_.pK,{data:F,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.N(YJ_,{data:H}))})}})))},"Ke");
T$_.idomCompat=!0;var YJ_=_.P(function(z){var l=z.data;var I=function(x,g){return x===g},b=function(){var x=l();
x=_.k(x==null?void 0:x.badgesShelf,N3_);return x!==void 0&&x!==null?x:{previousButton:{},nextButton:{}}},v=_.z1("div"),M=function(){var x=v.value;
if(x){var g=x.parentElement;if(g){x=x.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var G=0;G<x.length;++G){var u=x[G];if(u instanceof HTMLElement){g.scrollTo({left:u.offsetLeft+u.clientWidth/2-g.clientWidth/2,behavior:"instant"});break}}}}};
_.Sm(function(){var x=v.value;if(x){var g=new ResizeObserver(M);g.observe(x);_.cb(function(){g.disconnect()})}});
return _.N("div",null,_.N(_.E,{cond:function(){return l().badges},
then:function(x){return _.N(qJ0,{data:b},_.N("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:v},_.N(_.qy,{each:function(){return x()}},function(g,G){var u={},Z={},H={};
return _.N("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.N(_.E,{cond:function(){return G()>0},
then:function(){return _.N("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.N("div",{class:_.m9("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(u.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(G(),l().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(G(),l().currentBadgeIndex)},u))},_.N("div",{class:_.m9("ytdSponsorshipsPerksListLoyaltyBadge",(Z.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(G(),
l().currentBadgeIndex)},Z.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(G(),l().currentBadgeIndex)},Z))},_.N(_.E,{cond:function(){return g.image},
then:function(y){var f={};return _.N("div",{class:_.m9((f.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(G(),l().currentBadgeIndex)},f.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(G(),l().currentBadgeIndex)},f))},_.N(_.pK,{data:y,
alt:""}))}})),_.N("div",{class:_.m9("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(H.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(G(),l().currentBadgeIndex)},H))},g.title)))})))}}))},"Le");
YJ_.idomCompat=!0;_.uO(T$_,"yt-sponsorships-perks-list",{props:{data:_.mB}});_.uO(_.P(function(z){return _.N("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.N(_.E,{cond:function(){return z.data().image},
then:function(l){return _.N(_.pK,{className:"ytwFantasyEmptyStateViewModelImage",data:l,ariaHidden:!0,alt:""})}}),_.N(_.Rf,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return z.data().title}}),_.N(_.Rf,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return z.data().subtitle}}),_.N(_.TS,{data:function(){return z.data().primaryButton}},{buttonViewModel:function(l){return _.N(_.h4,{data:l.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Me"),"ytw-fantasy-empty-state-view-model",{props:{data:_.mB}});var chp;var SJ_=_.P(function(z){var l=z.data;var I=z.uniqueId;var b=z.overrides;z=_.kz(function(){var v,M=((v=l().timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:I(),timings:M,experimentEnabled:M.length>0,enabled:M.length>0}},void 0,"hiuXI");
return _.N("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.N(X5A,{settings:z},_.N(_.TS,{data:function(){return l().buttonRenderer}},{buttonRenderer:function(v){return _.N(_.K5,{data:v.data,
buttonOverrides:b})}})))},"Ne");
SJ_.idomCompat=!0;_.uO(SJ_,"timed-animation-button-renderer",{props:{data:_.mB,uniqueId:_.mB,overrides:_.mB}});var qT=function(){var z=_.q.apply(this,arguments)||this;z.hideJoinButtonBeforeSubscribed=_.C("hide_join_button_before_subscribed");z.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return z};
_.m(qT,_.q);_.p=qT.prototype;_.p.hasShowDialogCommand=function(z){return!!_.k(z,CV_)};
_.p.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"}}}};
_.p.updateJoinButtonOverrides=function(){var z,l;(z=_.Hy(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(l=z.polymerController)==null||l.set("overrides",this.joinButtonOverrides);if(z=_.Hy(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))z.overrides=this.joinButtonOverrides};
_.p.handleButtonRefreshAction=function(z){if(z=_.k(z,zoM))this.set("data.membershipButton",z.membershipButton),this.notifyPath("data.membershipButton")};
_.p.onYtServiceRequestError=function(z){_.IF(this.hostElement,z.detail.error.message)};
_.p.onKeydown=function(z){if(z.key==="Enter"){var l;(l=this.data)!=null&&l.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.p.handleUnsubscribeAction=function(){var z,l,I;((z=this.data)==null?void 0:(l=z.membershipButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.Hy(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.vP.Object.defineProperties(qT.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.subscriptionStateEntity)==null||!z.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var z,l=(z=this.data)==null?void 0:z.membershipButton,I;z=(l==null?void 0:l.buttonRenderer)||_.k(l==null?void 0:(I=l.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.xm);return(z==null?void 0:z.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(z==null?void 0:z.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(z==null?void 0:z.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var z;if(this.hasShowDialogCommand((z=this.data)==null?void 0:z.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var z;if(this.hasShowDialogCommand((z=this.data)==null?void 0:z.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.attributedTitle)}}});
qT.prototype.onYtServiceRequestError=qT.prototype.onYtServiceRequestError;qT.prototype.updateJoinButtonOverrides=qT.prototype.updateJoinButtonOverrides;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],qT.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],qT.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],qT.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.jF),_.w("design:type",Object)],qT.prototype,"ironButtonState",void 0);_.e([_.X(),_.w("design:type",Object)],qT.prototype,"data",void 0);_.e([_.B("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.w("design:type",Object),_.w("design:paramtypes",[])],qT.prototype,"hideJoin",null);
_.e([_.X(),_.w("design:type",String)],qT.prototype,"subscribeKey",void 0);_.e([_.X({selectorArgs:["subscribeKey"],selector:va5}),_.w("design:type",Object)],qT.prototype,"subscriptionStateEntity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],qT.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.e([_.B("subscriptionStateEntity"),_.X({reflectToAttribute:!0}),_.w("design:type",Object),_.w("design:paramtypes",[])],qT.prototype,"subscribed",null);
_.e([_.B("subscribed","data.membershipButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],qT.prototype,"joinButtonOverrides",null);_.e([_.B("data.navigationEndpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],qT.prototype,"channelNameTabIndex",null);_.e([_.B("data.navigationEndpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],qT.prototype,"channelNameRole",null);
_.e([_.B("data.attributedTitle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qT.prototype,"hasAttributedTitle",null);_.e([_.By("joinButtonOverrides"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qT.prototype,"updateJoinButtonOverrides",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qT.prototype,"onYtServiceRequestError",null);
_.e([_.S({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],qT);
var d2A=_.Hh()(qT,"ytd-video-owner-renderer",function(){if(chp===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden="[[!hasAttributedTitle]]" 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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);chp=z}z=chp;return z},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.uO(_.P(function(z){var l=z.data;var I;z=_.D(_.Z_(!((I=_.rD("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"i2pjVd"));var b=z.next().value,v=z.next().value;I=_.D(_.Z_(!1,void 0,"ga7V5c"));var M=I.next().value,x=I.next().value;_.Sm(function(){var u=_.dZ(window,xX_,function(){x(gEj())});
_.cb(function(){T4(u)})});
var g;I=(g=_.pG().resolve(_.MB(MPj)))!=null?g:function(){return _.N("div",null)};
_.ay("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){v(!0);_.sr("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.ay("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){v(!1);_.sr("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
g={};z={};var G={};return _.N("mini-app-play-page-renderer",{class:_.m9("miniAppPlayPageRendererHost",(g.miniAppPlayPageRendererHostDetailsView=function(){return!b()},g))},_.N("div",{class:_.m9("miniAppPlayPageRendererGameContainer",(z.miniAppPlayPageRendererGameContainerDetailsView=function(){return!b()},z))},_.N(_.TS,{data:function(){return l().containerViewModel}},{miniAppContainerViewModel:B$u}),_.N(_.E,{cond:function(){return l().channel&&l().subscribeButton},
then:function(){var u={};return _.N("div",{class:_.m9("miniAppPlayPageRendererChannelContainer",(u.miniAppPlayPageRendererHideVisibility=function(){return M()},u))},_.N(_.TS,{data:function(){return l().channel}},{videoOwnerRenderer:function(Z){return _.N(d2A,{data:Z.data})}}),_.N(_.TS,{data:function(){return l().subscribeButton}},{subscribeButtonViewModel:function(Z){return _.N(_.py,{data:Z.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.N(_.E,{cond:function(){return!b()&&l().description},
then:function(){var u={};return _.N("div",{class:_.m9("miniAppPlayPageRendererMiniAppDescriptionWrapper",(u.miniAppPlayPageRendererHideVisibility=function(){return M()},u))},_.N("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return l().description}))}})),_.N("div",{class:_.m9("miniAppPlayPageRendererPlayNextContainer",(G.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!b()},G.miniAppPlayPageRendererHideVisibility=function(){return M()},G))},_.N(_.TS,{data:function(){return l().sectionList}},
{sectionListRenderer:I})))},"Oe"),"mini-app-play-page-renderer",{props:{data:_.mB}});var ia=function(){var z=_.q.apply(this,arguments)||this;z.isSearch=!1;z.isConstrainedList=!1;z.hasChipsBar=!1;z.inReplyPanel=!1;z.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"}};z.monitorScroll=!0;z.SCROLL_ANIMATION_DURATION_MS=300;z.nextContinuation={continuationType:"sectionListContinuation"};return z};
_.m(ia,_.q);_.p=ia.prototype;
_.p.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(z){switch(z.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:_.C("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.C("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.p.created=function(){var z=this;this.JSC$17053_scrollAnimation=new _.fx(function(l){z.hostElement.scrollTop=l})};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.p.getItemsPath=function(){return"data.contents"};
_.p.replacePrimaryContent=function(z){this.set("data.contents",z)};
_.p.computeHasSortFilter=function(z){return!!z&&!!z.sortFilterSubMenuRenderer};
_.p.computeShouldScrollInPanel=function(z){var l;return!!(z==null?0:(l=z.scrollPaneStyle)==null?0:l.scrollable)};
_.p.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.fJ(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.p.scrollToTop=function(){this.hostElement.scrollTop=0};
_.p.scrollToItemSection=function(z){if(z=this.getItemByIdentifier(z))z=this.getScrollPositionForItem(z),this.hostElement.scrollTop!==z&&this.JSC$17053_scrollAnimation.start(this.hostElement.scrollTop,z,this.SCROLL_ANIMATION_DURATION_MS)};
_.p.getItemByIdentifier=function(z){var l=this.contents.querySelectorAll("ytd-item-section-renderer");if(l&&l.length!==0){var I=Array.from(l).findIndex(function(b){return b.sectionIdentifier===z});
return l[I===-1?0:I]}};
_.p.getScrollPositionForItem=function(z){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===z)return 0;z=_.ws(z).y+this.hostElement.scrollTop-_.ws(this.hostElement).y;return Math.min(z,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.vP.Object.defineProperties(ia.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.targetId)==="browse-feedFEclips"}}});
ia.prototype.onScroll=ia.prototype.onScroll;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],ia.prototype,"ytLazyListBehavior",void 0);_.e([_.t(_.kH.YtNextContinuationBehavior),_.w("design:type",Object)],ia.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.t(_.m6j),_.w("design:type",Object)],ia.prototype,"ytBooleanLogicBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],ia.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ia.prototype,"data",void 0);_.e([_.X({value:2}),_.w("design:type",Number)],ia.prototype,"initialCount",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],ia.prototype,"autoFill",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.w("design:type",Boolean)],ia.prototype,"hasSortFilter",void 0);_.e([_.X({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.w("design:type",Boolean)],ia.prototype,"hideBottomSeparator",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.w("design:type",Boolean)],ia.prototype,"shouldScrollInPanel",void 0);
_.e([_.X(),_.w("design:type",Object)],ia.prototype,"isSearch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ia.prototype,"isConstrainedList",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],ia.prototype,"responsiveSizing",void 0);_.e([_.X(),_.w("design:type",Object)],ia.prototype,"hasChipsBar",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],ia.prototype,"pageSubtype",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ia.prototype,"engagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ia.prototype,"liveChatEngagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ia.prototype,"inReplyPanel",void 0);_.e([_.qX("#action-button"),_.w("design:type",HTMLElement)],ia.prototype,"actionButton",void 0);_.e([_.X(),_.w("design:type",Object)],ia.prototype,"scrollUpButtonData",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ia.prototype,"engagementPanelDropdown",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ia.prototype,"engagementPanelDialog",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ia.prototype,"isClipList",null);_.e([_.qX("#contents"),_.w("design:type",HTMLElement)],ia.prototype,"monitorScrollElement",void 0);_.e([_.qX("#contents"),_.w("design:type",HTMLElement)],ia.prototype,"contents",void 0);
_.e([_.tP("scroll"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ia.prototype,"onScroll",null);_.e([_.S({is:"ytd-section-list-renderer",disableElementRegistration:!0})],ia);
var oL_=_.Hh()(ia,"ytd-section-list-renderer",function(){if(vcA===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);vcA=z}z=vcA;return z},{mode:1});var Py_;var h_u;var skj;var rhI;var F9=function(){return _.q.apply(this,arguments)||this};
_.m(F9,_.q);F9.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
F9.prototype.onLikeButtonClick=function(z){z.stopPropagation();z.preventDefault()};
_.vP.Object.defineProperties(F9.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)!=null&&z.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],F9.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],F9.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],F9.prototype,"ytRendererStamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],F9.prototype,"data",void 0);
_.e([_.X({selectorArgs:["data.likeStatusEntityKey"],selector:LK}),_.w("design:type",Object)],F9.prototype,"likeStatusEntity",void 0);_.e([_.B("data","likeStatusEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],F9.prototype,"likeButtonRenderer",null);_.e([_.S({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],F9);
_.r(F9,"ytd-slim-metadata-toggle-button-renderer",function(){if(rhI!==void 0)return rhI;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return rhI=z},{mode:1});var QG=function(){var z=_.q.apply(this,arguments)||this;z.minimizePipBreakages=_.C("web_pip_minimize_breakages");z.showEqualizer=_.C("web_enable_playlist_video_lockup_equalizer");z.watchColorUpdate=_.C("kevlar_watch_color_update");z.actionMap={};return z};
_.m(QG,_.q);_.p=QG.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.p.computeEditableClass=function(z){return z&&z.menu?"editable":""};
_.p.computeSelected=function(z){return!(z==null||!z.selected)};
_.p.computeUseColorPalette=function(z){return!!((z==null?0:z.lightColorPalette)&&(z==null?0:z.darkColorPalette))};
_.p.computeLargerPlaylistThumbs=function(z,l){return _.C("web_enable_playlist_bigger_thumbnails")&&!l};
_.p.computeShowPlayIcon=function(z){return!!z&&_.C("web_use_play_icon_for_playlist_panel_video_renderer")};
_.p.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.p.onYtServiceRequestSent=function(z,l){l.endpoint&&this.isHideEnclosingAction(l.endpoint)&&!this.selected&&WLw(_.ya(),this.data.videoId)};
_.p.isHideEnclosingAction=function(z){var l=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",z);z=this.get("likeEndpoint.status",z)==="INDIFFERENT";return l||z};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.vP.Object.defineProperties(QG.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var z;return!!(this.withinMiniplayer&&((z=this.data)==null?0:z.actionButtons))}}});
QG.prototype.onYtServiceRequestSent=QG.prototype.onYtServiceRequestSent;QG.prototype.canReorderChanged=QG.prototype.canReorderChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],QG.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Cf),_.w("design:type",Object)],QG.prototype,"ytdLockupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],QG.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"withinMiniplayer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QG.prototype,"minimizePipBreakages",void 0);_.e([_.X({computed:"computeSelected(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"selected",void 0);
_.e([_.X({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"useColorPalette",void 0);_.e([_.X({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"largerPlaylistThumbs",void 0);_.e([_.X(),_.w("design:type",Object)],QG.prototype,"showEqualizer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"canReorder",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"touchPersistentDragHandle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"handleIsHovered",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QG.prototype,"watchColorUpdate",void 0);_.e([_.X(),_.w("design:type",String),_.w("design:paramtypes",[])],QG.prototype,"reorderIcon",null);
_.e([_.X({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.w("design:type",Boolean)],QG.prototype,"showPlayIcon",void 0);_.e([_.X(),_.w("design:type",String),_.w("design:paramtypes",[])],QG.prototype,"playIcon",null);_.e([_.B("largerPlaylistThumbs"),_.w("design:type",Number),_.w("design:paramtypes",[])],QG.prototype,"thumbnailWidth",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],QG.prototype,"showActionButtons",null);
_.e([_.YE("canReorder"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QG.prototype,"canReorderChanged",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],QG.prototype,"onYtServiceRequestSent",null);_.e([_.S({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],QG);
_.r(QG,"ytd-playlist-panel-video-renderer",function(){if(skj!==void 0)return skj;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return skj=z},{mode:2});var Yp=function(){return _.q.apply(this,arguments)||this};
_.m(Yp,_.q);Yp.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yp.prototype,"data",void 0);_.e([_.S({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Yp);
_.r(Yp,"ytd-playlist-panel-supported-items",function(){if(h_u!==void 0)return h_u;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return h_u=
z},{mode:1});NZp=!0;QFj("\\P{N}");var yuG;var $2p=_.mY("END_OF_PLAYLIST",void 0,"End of playlist"),e_j=_.mY("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Ty=function(){var z=_.q.apply(this,arguments)||this;z.minimizePipBreakages=_.C("web_pip_minimize_breakages");z.hideHeaderText=!1;z.useColorPalette=!1;z.collapsed=!1;z.collapsedPreServerOverride="not_tracked";z.isHovered=!1;z.modernPanels=_.C("kevlar_watch_modern_panels");z.expandLabel=_.mY("MINIPLAYER_EXPAND_LABEL");z.collapseLabel=_.mY("MINIPLAYER_COLLAPSE_LABEL");
z.isFloating=!1;z.metaPanel=!1;z.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};z.currentIndex=void 0;return z};
_.m(Ty,_.q);_.p=Ty.prototype;
_.p.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"}}}};
_.p.created=function(){this.scrollThrottle=new _.zD(this.onThrottledScroll,1E3,this)};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.computeOverflowMenuData=function(z){return z&&z.menu?z.menu:null};
_.p.computeCollapsible=function(z){return!z};
_.p.computeHasPlaylistButtons=function(z){return!(!z||!z.playlistButtons)};
_.p.computeHasSeparateSaveButton=function(z){return!(!z||!z.saveButton)};
_.p.computeHasToolbarButton=function(z,l){return!(!z||!(l||z.saveButton||z.menu))};
_.p.computePlaylistType=function(z){if(z&&z.playlistId)return z.playlistId.substring(0,4)};
_.p.computeCanReorder=function(z){return z?z.playlistId&&z.playlistId.startsWith("TLPQ")?!0:!!z.isEditable&&!z.isInfinite:!1};
_.p.attached=function(){var z=this;try{_.pG().resolve(_.NG).setPlaylistComponent(this.hostElement)}catch(l){if(_.C("kevlar_park_on_playlist_token_killswitch"))throw l;_.uV().parkOrScheduleJob(function(){_.pG().resolve(_.NG).setPlaylistComponent(z.hostElement)},2,"ci")}_.xB(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.p.detached=function(){_.OK(this.hostElement)};
_.p.computeTrailingIcon=function(z,l,I){return I?l?"yt-icons:collapse":"yt-icons:close":l?"yt-icons:expand":_.C("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.p.computeIndexMessage=function(z,l){return kfY(z+1)+" / "+kfY(l)};
_.p.onRenderStamperFinished=function(){if(this.scrollForStampDom){var z=!0;this.isHovered&&(z=!1);if(this.collapsed||this.hidden)z=!1;z&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.p.collapseChanged=function(){var z=this;this.collapsed||(_.fI(this.ytTaskEmitterBehavior.getTaskManager(),function(){z.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.p.hiddenChanged=function(){var z=this;this.hidden||_.fI(this.ytTaskEmitterBehavior.getTaskManager(),function(){z.scrollToCurrentVideo()})};
_.p.setupReordering=function(){var z=_.Hy(this.hostElement).querySelector("#items");RRw?_.uCA(this.ytReorderableBehavior,z,z,"playlist-drag-handle"):_.uCA(this.ytReorderableBehavior,z,z)};
_.p.scrollToCurrentVideo=function(){var z=this;_.ow.addJob(function(){var l=_.Hy(z.hostElement).querySelector("#items");if(l){l.style.setProperty("padding-bottom","");var I=_.Hy(z.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){l=I.parentElement||_.sz(document);var b=l||_.sz(document);var v=_.ws(I),M=_.ws(b),x=_.sCA(b);if(b==_.sz(document)){var g=v.x-b.scrollLeft;v=v.y-b.scrollTop}else g=v.x-M.x-x.left,v=v.y-M.y-x.top;I=dK_(I);M=b.clientHeight-
I.height;x=b.scrollLeft;var G=b.scrollTop;x+=g-(b.clientWidth-I.width)/2;b=new _.rs(x,G+(v-M/2));l.scrollLeft=b.x;l.scrollTop=b.y}}},8)};
_.p.dataChanged=function(){var z=this;_.Ean(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.IR(this,function(){_.qA(z.ytTaskEmitterBehavior.getTaskManager(),function(){z.ytRendererBehavior.markDirty();z.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.p.onFullBleedPlayerChanged=function(){_.C("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.p.onFullscreenChanged=function(){_.C("web_watch_imax_theater_mode")||_.C("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.p.updateNowPlayingOverlay=function(){_.C("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.p.onPlaylistLockupNowPlaying=function(z,l){l&&(this.activeNowPlayingRenderer=l);this.updateNowPlayingOverlay()};
_.p.onScroll=function(){this.scrollThrottle.fire()};
_.p.onThrottledScroll=function(){var z=this;_.qA(this.ytTaskEmitterBehavior.getTaskManager(),function(){z.ytRendererBehavior.markDirty()})};
_.p.onToggleExpanded=function(z){!this.collapsible||z&&(_.pJ(z).tagName==="A"||_.DX(_.MX(z),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.p.setCollapsed=function(z){this.collapsible&&(this.collapsed=z,_.EK(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.p.handleCollapsedFromData=function(z){if(z){var l=z.playlistPanelCollapseState;l==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||l==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),l=l==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==l&&this.setCollapsed(l)):this.currentPlaylistId!==z.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(l=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==l&&this.setCollapsed(l),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=z.playlistId}};
_.p.handleDrop=function(z){var l=z.currDragItem;z=l.data.playlistSetVideoId;var I=_.sY(l.parentNode.childNodes,l),b=void 0;I>0&&(b=l.parentNode.childNodes[I-1].data.playlistSetVideoId);l=_.ya();if(l.responsePlaylistData&&l.responsePlaylistData.contents){var v=iep(z,l.responsePlaylistData);l.responsePlaylistData=(0,_.h7.unsafeClone)(l.responsePlaylistData);Q1Y(l.responsePlaylistData.contents,v,I);l.queueProxy?RpM(l.queueProxy,v,I,z,b):l.playlistProxy&&RpM(l.playlistProxy,v,I,z,b);_.fq(l,_.Cq(l,l.response?
l.response.autoplayRenderer:void 0))}};
_.p.handleDarkModeChange=function(z){z!==this.isDarkTheme&&(this.isDarkTheme=z)};
_.p.colorPaletteChanged=function(){var z,l=((z=this.data)==null?void 0:z.contents)||[],I;z=_.D(l);for(l=z.next();!l.done;l=z.next()){l=l.value;var b=void 0;if((b=l.playlistPanelVideoRenderer)==null?0:b.selected){z=l.playlistPanelVideoRenderer;b=l=void 0;(I=this.isDarkTheme?(l=z)==null?void 0:l.darkColorPalette:(b=z)==null?void 0:b.lightColorPalette)&&_.Pr(this.hostElement,I);break}}this.useColorPalette=!!I};
_.vP.Object.defineProperties(Ty.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.moveThreeDotsMenuToMainHeader)&&_.C("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var z=_.pG().resolve(_.MB(_.NG)),l;if(((l=this.data)==null?0:l.contents)&&(z==null?0:z.hasAutoplayData())){var I;if(((I=this.playlistLoopStateEntity)==null?void 0:I.state)==="PLAYLIST_LOOP_STATE_ONE"){if(z=this.data.currentIndex,z!==void 0){var b,v;var M=(b=this.data.contents[z])==null?void 0:(v=b.playlistPanelVideoRenderer)==null?void 0:v.title}}else{var x,g=(x=_.k(z.getAutoplayEndpoint(),_.zb))==null?void 0:x.videoId,G,u;M=(G=this.data.contents.find(function(Z){var H;
return((H=Z.playlistPanelVideoRenderer)==null?void 0:H.videoId)===g}))==null?void 0:(u=G.playlistPanelVideoRenderer)==null?void 0:u.title}return M}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)!=null&&z.nextVideoLabel?this.nextVideoTitle?_.ID(this.data.nextVideoLabel)+":":$2p:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var z;if(((z=this.data)==null?0:z.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.C("web_mix_long_byline_from_data"))return _.lc(e_j);var l;return(l=this.data)==null?void 0:l.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.playlistButtons)==null?void 0:(I=l.menuRenderer)==null?void 0:I.topLevelButtons;if(b)for(z=_.D(b),l=z.next();!l.done;l=z.next())if(l=l.value,l.playlistLoopButtonRenderer)return l.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var z;return!!(this.collapsed&&((z=this.data)==null?0:z.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.C("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Ty.prototype.colorPaletteChanged=Ty.prototype.colorPaletteChanged;Ty.prototype.onPlaylistLockupNowPlaying=Ty.prototype.onPlaylistLockupNowPlaying;Ty.prototype.updateNowPlayingOverlay=Ty.prototype.updateNowPlayingOverlay;Ty.prototype.onFullscreenChanged=Ty.prototype.onFullscreenChanged;Ty.prototype.onFullBleedPlayerChanged=Ty.prototype.onFullBleedPlayerChanged;Ty.prototype.dataChanged=Ty.prototype.dataChanged;Ty.prototype.hiddenChanged=Ty.prototype.hiddenChanged;Ty.prototype.collapseChanged=Ty.prototype.collapseChanged;
Ty.prototype.onRenderStamperFinished=Ty.prototype.onRenderStamperFinished;Ty.prototype.onMouseLeave=Ty.prototype.onMouseLeave;Ty.prototype.onMouseEnter=Ty.prototype.onMouseEnter;_.e([_.t(_.ap),_.w("design:type",Object)],Ty.prototype,"ironResizableBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(GU4.YtPlaylistPanelBehavior),_.w("design:type",Object)],Ty.prototype,"ytPlaylistPanelBehavior",void 0);_.e([_.t(_.qw.YtTaskEmitterBehavior),_.w("design:type",Object)],Ty.prototype,"ytTaskEmitterBehavior",void 0);_.e([_.t(_.ZXA),_.w("design:type",Object)],Ty.prototype,"ytReorderableBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Ty.prototype,"ytdReduxBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Ty.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ty.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Ty.prototype,"autoplayData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ty.prototype,"withinMiniplayer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"minimizePipBreakages",void 0);
_.e([_.X({computed:"setMenuData_(data)"}),_.w("design:type",Object)],Ty.prototype,"menuRendererData",void 0);_.e([_.X({computed:"computeOverflowMenuData(data)"}),_.w("design:type",Object)],Ty.prototype,"overflowMenuDataTopRow",void 0);_.e([_.X({computed:"computeOverflowMenuData(data)"}),_.w("design:type",Object)],Ty.prototype,"overflowMenuData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"hideHeaderText",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"useColorPalette",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.w("design:type",Boolean)],Ty.prototype,"collapsible",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"collapsed",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ty.prototype,"hidden",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.w("design:type",Boolean)],Ty.prototype,"hasPlaylistButtons",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.w("design:type",Boolean)],Ty.prototype,"hasSeparateSaveButton",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.w("design:type",Boolean)],Ty.prototype,"hasToolbar",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.w("design:type",String)],Ty.prototype,"playlistType",void 0);_.e([_.X(),_.w("design:type",Object)],Ty.prototype,"isHovered",void 0);_.e([_.X({selectorArgs:["playlistLoopStateEntityKey"],selector:_.ga5}),_.w("design:type",Object)],Ty.prototype,"playlistLoopStateEntity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"modernPanels",void 0);
_.e([_.X({value:56}),_.w("design:type",Number)],Ty.prototype,"scrollMargin",void 0);_.e([_.X({computed:"computeCanReorder(data)"}),_.w("design:type",Boolean)],Ty.prototype,"canReorder",void 0);_.e([_.X(),_.w("design:type",Object)],Ty.prototype,"expandLabel",void 0);_.e([_.X(),_.w("design:type",Object)],Ty.prototype,"collapseLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"isFloating",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ty.prototype,"metaPanel",void 0);_.e([_.X({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.w("design:type",String)],Ty.prototype,"trailingIcon",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],Ty.prototype,"isDarkTheme",void 0);_.e([_.X({selector:_.rg}),_.w("design:type",Boolean)],Ty.prototype,"miniplayerIsActive",void 0);_.e([_.X({selector:function(z){return z.watch.playerState}}),
_.w("design:type",Number)],Ty.prototype,"playerState",void 0);_.e([_.X({selector:_.AN}),_.w("design:type",Boolean)],Ty.prototype,"isFullscreen",void 0);_.e([_.X({selector:_.wo}),_.w("design:type",Boolean)],Ty.prototype,"isTheaterMode",void 0);_.e([_.X(),_.w("design:type",Object)],Ty.prototype,"activeNowPlayingRenderer",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ty.prototype,"moveThreeDotMenuToTopRow",null);
_.e([_.B("data","autoplayData","playlistLoopStateEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ty.prototype,"nextVideoTitle",null);_.e([_.B("data","nextVideoTitle"),_.w("design:type",String),_.w("design:paramtypes",[])],Ty.prototype,"nextVideoLabel",null);_.e([_.B("collapsed"),_.w("design:type",String),_.w("design:paramtypes",[])],Ty.prototype,"buttonAriaLabel",null);
_.e([_.B("data","playlistId","longBylineText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ty.prototype,"mixLongByLine",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ty.prototype,"playlistLoopStateEntityKey",null);_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"onMouseEnter",null);
_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"onMouseLeave",null);_.e([_.X({reflectToAttribute:!0}),_.B("data","collapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ty.prototype,"showNextVideoHeader",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"onRenderStamperFinished",null);
_.e([_.By("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"collapseChanged",null);_.e([_.By("hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"hiddenChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"dataChanged",null);
_.e([_.B("isTheaterMode","isFullscreen"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ty.prototype,"isFullBleedPlayer",null);_.e([_.By("isTheaterMode","isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"onFullBleedPlayerChanged",null);_.e([_.By("isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"onFullscreenChanged",null);
_.e([_.By("playerState","miniplayerIsActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"updateNowPlayingOverlay",null);_.e([_.tP("yt-playlist-lockup-now-playing-active"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],Ty.prototype,"onPlaylistLockupNowPlaying",null);
_.e([_.By("data","isDarkTheme"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ty.prototype,"colorPaletteChanged",null);_.e([_.S({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Ty);
_.wI4=_.Hh()(Ty,"ytd-playlist-panel-renderer",function(){if(Py_===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);Py_=z}z=Py_;return z},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var Ahu;var cp=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_button_rework");return z};
_.m(cp,_.q);cp.prototype.computeShouldButtonBeVertical=function(z,l){return z||l};
cp.prototype.onYtServiceRequestSent=function(z,l){(z=_.k(l.endpoint,_.Wt))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.cU("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:z.status})):this.handleLikeEndpoint(z))};
cp.prototype.computelikeStatusEntityKey=function(z){return z==null?void 0:z.likeStatusEntityKey};
cp.prototype.handleLikeEndpoint=function(z){z.status==="LIKE"?this.JSC$17079_ytdDislikeToggleButtonRenderer.toggle(!1):z.status==="DISLIKE"?this.JSC$17079_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17079_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17079_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.vP.Object.defineProperties(cp.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var z;return twQ(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(z=this.likeStatusEntity)==null?void 0:z.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var z;if(this.data&&((z=this.data)==null||!z.hideDislikeButton)){var l;return twQ(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(l=this.likeStatusEntity)==null?void 0:l.likeStatus)}}}});
cp.prototype.onYtServiceRequestSent=cp.prototype.onYtServiceRequestSent;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],cp.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cp.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],cp.prototype,"vertical",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],cp.prototype,"textTransform",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],cp.prototype,"useShortsIcon",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],cp.prototype,"underIconLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],cp.prototype,"modern",void 0);_.e([_.X({value:"left"}),_.w("design:type",String)],cp.prototype,"buttonTooltipPosition",void 0);
_.e([_.X(),_.w("design:type",Object)],cp.prototype,"overrides",void 0);_.e([_.qX("#like-button"),_.w("design:type",Object)],cp.prototype,"JSC$17079_ytdLikeToggleButtonRenderer",void 0);_.e([_.qX("#dislike-button"),_.w("design:type",Object)],cp.prototype,"JSC$17079_ytdDislikeToggleButtonRenderer",void 0);_.e([_.B("data","likeStatusEntity.likeStatus","useShortsIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],cp.prototype,"likeButton",null);
_.e([_.B("data","likeStatusEntity.likeStatus","useShortsIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],cp.prototype,"dislikeButton",null);_.e([_.X({computed:"computelikeStatusEntityKey(data)"}),_.w("design:type",String)],cp.prototype,"likeStatusEntityKey",void 0);_.e([_.X({selectorArgs:["likeStatusEntityKey"],selector:LK}),_.w("design:type",Object)],cp.prototype,"likeStatusEntity",void 0);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],cp.prototype,"onYtServiceRequestSent",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],cp);
var WC4=_.Hh()(cp,"ytd-like-button-renderer",function(){if(Ahu===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);Ahu=z}z=Ahu;return z},{mode:1});_.nLp={};
_.nLp.YtConditionalRendererBehavior=[_.U.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(z,l){var I=this,b,v;return _.O(function(M){switch(M.nextAddress){case 1:if(!l)return I.hidden=!0,I.showSpinner=!1,M.return();if((b=z)==null?0:(v=b.visibilityCondition)==null?0:v.mode)switch(z.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return M.jumpTo(5);default:return M.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return M.yield(I.shouldShow_(z),4);case 4:I.hidden=!M.yieldResult;M.jumpTo(0);break;case 5:return M.yield(I.shouldShow_(z),8);case 8:I.showSpinner=M.yieldResult;I.hidden=!1;M.jumpTo(0);break;case 6:return I.showSpinner=!1,M.yield(I.shouldShow_(z),9);case 9:I.hidden=!M.yieldResult,_.qe(M)}})},
shouldShow_:function(z){return z&&z.supportedDatas&&z.supportedDatas.rendererVisibilityConditionData&&z.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(z.supportedDatas.rendererVisibilityConditionData.showIf):z&&z.visibilityCondition&&z.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(z.visibilityCondition.showIf):z&&z.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(z.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(z){switch(z){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(z){switch(z){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var z=_.Gb(this.hostElement,"yt-get-mdx-status");return z.length==1&&z[0].connected},
isLocationPermissionGranted_:function(){var z;return _.O(function(l){return l.nextAddress==1?navigator.permissions?l.yield(navigator.permissions.query({name:"geolocation"}),3):l.jumpTo(2):l.nextAddress!=2?(z=l.yieldResult,l.return(Promise.resolve(z.state==="granted"))):l.return(Promise.resolve(!1))})}}];var LCj=function(z,l){l=l===void 0?{}:l;var I=function(b){var v=document.createElement(z),M;var x=(M=v.polymerController)!=null?M:v;KlG(v,x,b,l);return v};
I.debugName=z+" (CoW wrapped)";return I}("yt-icon",{callbackProps:["onKeydown"]}),U2z=_.C("kevlar_use_wil_icons")?_.P(function(z){var l=z.icon;
var I=z.active;var b=z.className;var v=z.style;var M=z.dataSelected;var x=z.dataDisabled;var g=z.role;var G=z.themeOverride;var u=z.animateIcon;var Z=z.ariaHidden;var H=z.ariaExpanded;var y=z.ariaLabel;var f=z.tabindex;var R=z.id;var F=z.iconFilter;var Y=z.onKeydown;var c=function(){var A=l==null?void 0:l(),W=null,L=void 0;A&&(A=wp4(A),A=VeY(A),A.length&&(W=A[1],L=A[0]));return{iconName:W,iconSetName:L}},d=function(){return A3u(c().iconName,I==null?void 0:I(),void 0,void 0,c().iconSetName,_.pG().resolve(_.mh))},
V=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:F==null?void 0:F()}};
return _.N(_.E,{cond:u,then:function(){return _.N(LCj,{icon:l,active:I,className:b,style:v,dataSelected:M,dataDisabled:x,role:g,themeOverride:G,ariaHidden:Z,ariaExpanded:H,ariaLabel:y,tabindex:f,id:R,iconFilter:F,onKeydown:Y})},
else:function(){return _.N(_.E,{cond:d,then:function(A){return _.N("span",{class:_.m9("ytIconWrapperHost",b),role:g,"aria-label":y,"aria-hidden":Z,tabindex:function(){return isNaN(Number(f==null?void 0:f()))?void 0:Number(f==null?void 0:f())},
id:R,style:v,"on:keydown":_.KK(function(W){return void(Y==null?void 0:Y(W))})},_.N(C$Y,{data:A,
options:V}))}})}})},"Pe"):LCj;var aMM=function(z){var l=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];prx();_.vd("ytglobal.ytUtilActivityCallback_",function(){_.EK(z,"yt-user-activity")});
new vW(function(){return l.JSC$17095_onMouseMove});
document.addEventListener("scroll",function(){return l.onScroll});
window.addEventListener("resize",function(){return l.onResize})},Vtz=function(z,l,I){l in z.eventJobIds||(I=_.Y1().addLowPriorityJob(function(){_.MA();
delete z.eventJobIds[l]},I),z.eventJobIds[l]=I)};
aMM.prototype.onScroll=function(z){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):z.target===document&&Vtz(this,"scroll",200)};
aMM.prototype.onResize=function(){Vtz(this,"resize",200)};
aMM.prototype.JSC$17095_onMouseMove=function(){Vtz(this,"mousemove",100)};
_.i0=function(z){z.scrollEventsToIgnore+=1;z.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){z.scrollEventsToIgnore--},500))};var jkA=function(z){this.element=z;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
jkA.prototype.showFeedbackDialog=function(z,l,I,b){var v=Jhw();if(!v)return!1;var M=dLG();M.productId=v;l&&(M.flow="submit",M.report={description:l});I&&(Jhw()==="59"?M.callback=_.em(function(){_.cW("userFeedbackEvent",{});I()}):M.callback=_.em(I));
M.bucket=b||_.sZ("GOOGLE_FEEDBACK_BUCKET","Other");zQ0(M);z=lSy(this,"GFEEDBACK",z);try{_.e3w(M,z)}catch(x){return _.$P(x),!1}return!0};
jkA.prototype.showHelpDialog=function(z,l,I){var b=this,v=Jhw();if(!v)return!1;var M={helpCenterPath:"/youtube",productData:lSy(this,"GUIDED_HELP",I)};zQ0(M);var x=dLG();x.context=z||M.productData.context||"default";x.defaultHelpArticleId=l;x.enableSendFeedback=!0;(_.W8("gapi.load")||function(g,G){return G()})("client",function(){try{var g=uQA(v,M);
if(_.C("web_always_load_chat_support")&&!b.chatSupportLoaded)try{g.JSC$9976_loadChatSupport(x),b.chatSupportLoaded=!0}catch(G){}g.startHelp(x)}catch(G){_.$P(G)}})};
var Jhw=function(){var z=_.sZ("GOOGLE_FEEDBACK_PRODUCT_ID");z||_.$P(Error("ji"));return z},zQ0=function(z){z&&(z.locale=_.C("kevlar_help_use_locale")?_.sZ("INNERTUBE_CONTEXT_HL","en"):_.sZ("HTML_LANG","en"))},lSy=function(z,l,I){var b=z.productData;
delete b.origin;b.device=_.Cu();var v;a:{if(v=document.createElement("canvas")){var M=v.getContext("experimental-webgl",{stencil:!0});if(M){var x=M.getExtension("WEBGL_debug_renderer_info");if(x){v=M.getParameter(x.UNMASKED_RENDERER_WEBGL);break a}}if(M=v.getContext("webgl")){v=M.getParameter(M.RENDERER);break a}}v=null}b.gpu=v;b.isSDC=!!_.sZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(v=_.sZ("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.h7.extend(b,v);_.cuH(l,b);_.SRu(b);(z=_.EK(z.element,"yt-get-autonav-pause-debug-state"))&&
z.length&&(b.autonav_pause_state=z[0]);z=_.il();b.browser_resolution=z.width+"\u00d7"+z.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.h7.extend(b,I);return b};
jkA.prototype.resetProductData=function(){this.productData={}};var ISS=function(z){this.feedbackManager=new jkA(z)};
ISS.prototype.showFeedbackDialog=function(z,l,I,b){return this.feedbackManager.showFeedbackDialog(z,l,I,b)};
ISS.prototype.showHelpDialog=function(z,l,I){return this.feedbackManager.showHelpDialog(z,l,I)};var bus=function(){this.baseUrl="";this.aTag=document.createElement("a")},fd_=function(z,l,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.wUQ(l,I);z.baseUrl&&I&&!_.zo(I)[1]&&!_.lf(I)&&(l=z.baseUrl,x5(l,"/")&&(l=l.slice(0,-1)),_.DS(I,"/")&&(I=I.slice(1)),I=l+"/"+I);nD(z.aTag,_.r0(I||""));return z.aTag.href};
bus.prototype.fetchData=function(z){return _.qRf(z)};
bus.prototype.postData=function(z,l){var I={method:"POST"};if(l){for(var b=_.D(Object.keys(l)),v=b.next();!v.done;v=b.next()){v=v.value;var M=l[v];_.Lu(M)&&(l[v]=JSON.stringify(M))}I.postParams=l}return _.qRf(z,I)};
_.CF_=function(z,l,I,b,v){z=fd_(z,l,I);if(!z)throw b=Error("ki"),Object.assign(b,{params:l}),b;return _.qRf(z,v,b)};
bus.prototype.requestDataForServiceEndpoint=function(z,l){if(_.k(z,_.js7))return this.fetchData("/getAccountSwitcherEndpoint");l=l||{};var I=_.k(z,rM4);I?l.se=I.base64EncodedServiceEndpoint:l.sej=JSON.stringify(z);(I=_.sU())&&_.C("enable_service_ajax_csn")&&(l.csn=I);l.theme=_.Sb();_.k(z,a3Y)&&_.sZ("DELEGATION_CONTEXT")&&(l.delegation_context=JSON.stringify(_.sZ("DELEGATION_CONTEXT")));I=null;for(var b in z)if(x5(b,"Endpoint")||x5(b,"Command")){I=b;break}if(!I){var v=Error("li");Object.assign(v,{params:z});
_.rRG(v,"WARNING");return new _.yK(function(x,g){g(v)})}b={name:I};
var M;(I=(M=_.k(z,_.CM))==null?void 0:M.signal)&&(b.signal=I);(M=_.V7(window.location.href))&&M.internalcountrycode&&(b.internalcountrycode=M.internalcountrycode);M="/service_ajax";_.C("debug_forward_web_query_parameters")&&(M=_.bcQ(M,window.location.search));M=_.Jr(M,b);z.clickTrackingParams&&_.vu(M,{itct:z.clickTrackingParams});return this.postData(M,l)};_.v5K=new _.yH("GFEEDBACK_TOKEN");var Mx0;var p7S;var Dpc;var xp8;var Sl=function(){var z=_.q.apply(this,arguments)||this;z.compact=!1;z.dismissButtonDisabled=!1;return z};
_.m(Sl,_.q);Sl.prototype.computeHasIcon_=function(z){return!!z};
Sl.prototype.isSignInIcon_=function(z){return z=="yt-icons:prompted_sign_in"};
Sl.prototype.onDismissButtonClick=function(){var z;this.data.disableOnClick&&!this.dismissButtonDisabled&&(z=this.data.dismissButton)!=null&&z.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.nLp.YtConditionalRendererBehavior),_.w("design:type",Object)],Sl.prototype,"ytConditionalRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Sl.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",Object)],Sl.prototype,"icon_",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.w("design:type",Boolean)],Sl.prototype,"hasIcon_",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.w("design:type",Boolean)],Sl.prototype,"signInIcon_",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Sl.prototype,"compact",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Sl.prototype,"dismissButtonDisabled",void 0);
_.e([_.Wy({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Sl);
_.r(Sl,"yt-player-error-message-renderer",function(){if(xp8===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Dpc===void 0&&(Dpc=document.createElement("template"));var b=Dpc;I.call(l,b.content.cloneNode(!0),z.content.firstChild);xp8=z}z=xp8;return z},{mode:2});var Ou4;var g5q;var dW=function(){return _.q.apply(this,arguments)||this};
_.m(dW,_.q);dW.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
dW.prototype.computeIcon_=function(z){return z?"yt-icons:"+z.iconType.toLowerCase():"error_outline"};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dW.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",Object)],dW.prototype,"icon_",void 0);_.e([_.Wy({is:"yt-player-kav-renderer",disableElementRegistration:!0})],dW);
_.r(dW,"yt-player-kav-renderer",function(){if(g5q===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Ou4===void 0&&(Ou4=document.createElement("template"));var b=Ou4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);g5q=z}z=g5q;return z},{mode:2});var hAp=_.zs(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.uO(_.P(function(z){var l=_.VK("div"),I=_.D(_.Z_(0,void 0,"jxh75d")),b=I.next().value,v=I.next().value;I=_.D(_.Z_(null,void 0,"F5Zm8"));var M=I.next().value,x=I.next().value;_.Sm(function(){s4u(l.value,v,x);l.value.scrollIntoView()});
I=rup.bind(null,z.data,b);vC("resize",function(){var g=M();if(b()===1&&g!==null){var G;(G=window.grecaptcha)==null||G.reset(g)}});
return _.N("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.N("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.N("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var g,G;return(g=z.data().accessibility)==null?void 0:(G=g.accessibilityData)==null?void 0:G.label}),_.N(_.Rf,{text:I,
className:_.m9("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.N("div",{el:l,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Qe"),"yt-player-captcha-view-model",{props:{data:_.GH}});var $L1=!1;_.GkK=_.P(function(z){var l=z.data;return _.N("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.N(_.E,{cond:function(){return l().icon},
then:function(I){return _.N("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.N(_.pK,{data:I,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.N(_.E,{cond:function(){return l().title},
then:function(I){return _.N("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.N(_.Rf,{text:I}))}}),_.N(_.E,{cond:function(){return l().description},
then:function(I){return _.N("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.N(_.Rf,{text:I}))}}),_.N(_.TS,{data:function(){return l().primaryButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"interstitialViewModelFlexItem"})}}),_.N(_.TS,{data:function(){return l().secondaryButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"interstitialViewModelFlexItem"})}}))},"Re");
_.GkK.idomCompat=!0;var Nfy=_.P(function(z){var l=z.data;_.aF();return _.N("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.N("div",{class:"playerInterstitialRendererScrim"},_.N(_.TS,{data:function(){return l().content}},{interstitialViewModel:_.GkK})))},"Se");
Nfy.idomCompat=!0;_.uO(Nfy,"yt-player-interstitial-renderer",{props:{data:_.mB}});var og=function(){var z=_.q.apply(this,arguments)||this;z.noBackground=!1;z.compact=!1;z.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return z};
_.m(og,_.q);og.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"}}}};
og.prototype.onUpdatePlayerErrorMessageCommand_=function(z){if(_.k(z,zXA)){var l;if(z=(l=_.k(z,zXA))==null?void 0:l.newPlayerErrorMessageRenderer)this.data=z}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],og.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],og.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],og.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],og.prototype,"status",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],og.prototype,"noBackground",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],og.prototype,"compact",void 0);_.e([_.Wy({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],og);
var E5W=_.Hh()(og,"yt-playability-error-supported-renderers",function(){if(p7S===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Mx0===void 0&&(Mx0=document.createElement("template"));var b=Mx0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);p7S=z}z=p7S;return z},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var eA7=void 0,AuQ=void 0;var LbY=new JAj;var utS=function(z){this.store=z;this.jKp=new _.I_j},BeQ=function(z,l,I){var b,v;
if(!(v=((b=l.playabilityStatus)==null?void 0:b.status)!=="OK")){z=z.store;var M;v=l.offlineState&&((M=l.videoDetails)==null?0:M.videoId)?_.C("enable_pl_r_c_cd")?CS$(z.getState().entities,l.videoDetails.videoId):!!nmt(z.getState().entities,l.videoDetails.videoId):!1}if(v)return!0;v=JuH(l);if(v===1){if(_.C("ab_v_vid_sig")){var x,g=(x=l.videoDetails)==null?void 0:x.videoId;if(!g||!I||g!==I){var G;l=new _.qB("282054944_vid",{kbI:I,cvY:(G=l.videoDetails)==null?void 0:G.videoId});_.dE(l)}}return!0}GqQ=
0;var u,Z;G=(g=l.auxiliaryUi)==null?void 0:(u=g.messageRenderers)==null?void 0:(Z=u.bkaEnforcementMessageViewModel)==null?void 0:Z.displayType;if(v!==3&&(G==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||G==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;G={reason:_.xw(_.mY("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.C("ks_something_wrong_learn_more")?uWf("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.xw(_.mY("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:_.xw("282054944")};Zul(l,{playerErrorMessageRenderer:G});return!1},X1p=function(z,l){if(if1(l)){_.RD(1,!0);
var I=(I=if1(l))&&_.w4f()?I:void 0;I?(Zul(l,{enforcementMessageViewModel:I}),z.jKp.increment("IN_PLAYER"),_.RD(5)):(z.jKp.increment("SKIP_DISPLAY"),_.RD(2))}},Zul=function(z,l){z.playabilityStatus=Object.assign({},z.playabilityStatus,{status:"ERROR",
errorScreen:l});z.videoDetails=void 0};
utS.prototype.handleResponse=function(z,l){if(z.playabilityStatus){var I,b,v,M=(l==null?void 0:(I=l.innerTubeRequest)==null?void 0:I.videoId)||(l==null?void 0:(b=l.innerTubeRequest)==null?void 0:(v=b.playerRequest)==null?void 0:v.videoId);BeQ(this,z,M)&&X1p(this,z)}};
utS[HG]=[gx];var Ke1=new _.yH("ADBLOCK_DETECTION_SERVICE_TOKEN");var zY=function(z){this.qdc=z};
zY.prototype.bindInnertubeChallengeFetcher=function(z){this.qdc.bicf(z)};
zY.prototype.registerChallengeFetchedCallback=function(z){this.qdc.bcr(z)};
zY.prototype.getLatestChallengeResponse=function(){return this.qdc.blc()};var Huc;Huc=_.zs(["https://static.doubleclick.net/instream/ad_status.js"]);_.yGC=_.HR(Huc);var RQW;_.Pp=function(z,l,I){var b=this;this.network=z;this.options=l;this.networkStatusManager=I;this.kR=null;if(l.useBotguardEverywhere){var v=new _.yX;this.kR=v.promise;_.v7.ytAtRC&&_.o0(_.ow,function(){var M,x;return _.O(function(g){if(g.nextAddress==1){if(!_.v7.ytAtRC)return g.return();M=fSF(null);return g.yield(b.yQ(M),2)}x=g.yieldResult;_.v7.ytAtRC&&_.v7.ytAtRC(JSON.stringify(x));_.qe(g)})});
vep().then(function(M){var x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1)return M.bindInnertubeChallengeFetcher(function(H){return b.yQ(fSF(H))}),Z.yield(TrY(),2);
x=Z.yieldResult;g=M.getLatestChallengeResponse();G=g.challenge;if(!G)throw Error("mi");u={challenge:G,pH:JQ(G),vm:x,bgChallenge:new Vb};v.resolve(u);M.registerChallengeFetchedCallback(function(H){H=H.challenge;if(!H)throw Error("ni");H={challenge:H,pH:JQ(H),vm:x,bgChallenge:new Vb};b.kR=Promise.resolve(H)});
_.qe(Z)})})}else l.preload&&CHq(this,new Promise(function(M){_.qA(_.ow,function(){M(kk8(b))},0)}))};
RQW=function(z){var l={preload:!0,useBotguardEverywhere:!0},I=!1;if(typeof l==="boolean")var b={preload:l};else typeof l==="undefined"?b={preload:!0}:(b=l,I=!!l.dTo);l=I?void 0:new _.U5;_.Pp.instance=new _.Pp(z,b,l);return _.Pp.instance};
_.Pp.prototype.wKc=function(){var z=this;return _.O(function(l){return l.nextAddress==1?l.yield(Promise.race([z.kR,null]),2):l.return(!!l.yieldResult)})};
_.Pp.prototype.tDf=function(z,l,I){var b=this,v,M,x;return _.O(function(g){b.kR===null&&CHq(b,kk8(b));v=!1;M={};x=function(){var G,u,Z;return _.O(function(H){switch(H.nextAddress){case 1:return H.yield(b.kR,2);case 2:G=H.yieldResult;M.challenge=G.challenge;if(!G.vm){"c1a"in G.pH&&(M.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");H.jumpTo(3);break}u=Object.assign({},{c:G.challenge,e:z},l);_.RL(H,4);v=!0;return H.yield(G.vm.snapshot({jy:u}),6);case 6:(Z=H.yieldResult)?M.webResponse=Z:M.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.a3(H,3);break;case 4:_.XP(H),M.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(z==="ENGAGEMENT_TYPE_PLAYBACK"){var y=G.pH,f={};if(y.c6a){var R=Number(_.sZ("DCLKSTAT",0));f.reportingStatus=String(Number(y.c)^(isNaN(R)?0:R))}y.c6b&&(f.broadSpectrumDetectionResult=String(Number(y.c)^Number(_.sZ("CATSTAT",0))));M.adblockReporting=f}return H.return(M)}})};
return g.return(Promise.race([x(),mps(I,function(){var G=Object.assign({},M);v&&(G.error="ATTESTATION_ERROR_VM_TIMEOUT");return G})]))})};
var fSF=function(z){var l={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};z&&(l.interpreterHash=z);return l},kk8=function(z,l){l=l===void 0?0:l;
var I,b,v,M,x,g,G,u,Z,H,y,f;return _.O(function(R){switch(R.nextAddress){case 1:I=fSF(b0u().yX0);if(_.C("att_fet_ks"))return _.RL(R,7),R.yield(z.yQ(I),9);_.RL(R,4);return R.yield(KQS(z,I),6);case 6:x=R.yieldResult;v=x.gZ5;M=x.xve;b=x;_.a3(R,3);break;case 4:return _.XP(R),_.PW(Error("oi`"+l)),txs(z,864E5),R.return({challenge:"",pH:{},vm:void 0,bgChallenge:void 0});case 9:b=R.yieldResult;if(!b)throw Error("pi");if(!b.challenge)throw Error("qi");v=b.challenge;M=JQ(v);if("c1a"in M&&(!b.bgChallenge||!b.bgChallenge.program))throw Error("ri");
_.a3(R,3);break;case 7:g=_.XP(R);_.PW(g);l++;if(l>=5)return _.PW(Error("oi`"+l)),txs(z,864E5),R.return({challenge:"",pH:{},vm:void 0,bgChallenge:void 0});G=1E3*Math.pow(2,l-1)+Math.random()*1E3;return R.return(new Promise(function(F){_.qA(_.ow,function(){F(kk8(z,l))},G)}));
case 3:u=bb7(M);txs(z,u*1E3);Z=void 0;if(!("c1a"in M&&b.bgChallenge)){R.jumpTo(10);break}H=IBp(b.bgChallenge);_.RL(R,11);return R.yield(MNz(b0u(),H),13);case 13:_.a3(R,12);break;case 11:return y=_.XP(R),_.PW(y),R.return({challenge:v,pH:M,vm:Z,bgChallenge:H});case 12:return _.RL(R,14),Z=new _.Ub({challenge:H,oWW:{gV:"aGIf"}}),R.yield(Z.cCN,16);case 16:_.a3(R,10);break;case 14:f=_.XP(R),_.PW(f),Z=void 0;case 10:return R.return({challenge:v,pH:M,vm:Z,bgChallenge:H})}})};
_.Pp.prototype.yQ=function(z){var l=this,I;return _.O(function(b){I=l.networkStatusManager;if(!I||I.isNetworkAvailable())return b.return(l.network.yQ(z));_.$B("att_pna",void 0,"attestation_challenge_fetch");return b.return(new Promise(function(v){I.listenOnce("publicytnetworkstatus-online",function(){l.network.yQ(z).then(v)})}))})};
var BfS=function(z){if(!z)throw Error("pi");if(!z.challenge)throw Error("qi");var l=z.challenge,I=JQ(l);if("c1a"in I&&(!z.bgChallenge||!z.bgChallenge.program))throw Error("ri");return Object.assign({},z,{gZ5:l,xve:I})},KQS=function(z,l){var I,b,v,M,x;
return _.O(function(g){switch(g.nextAddress){case 1:I=void 0,b=0,v={};case 2:if(!(b<5)){g.jumpTo(4);break}if(!(b>0)){g.jumpTo(5);break}v.epm=1E3*Math.pow(2,b-1)+Math.random()*1E3;return g.yield(new Promise(function(G){return function(u){_.qA(_.ow,function(){u(void 0)},G.epm)}}(v)),5);
case 5:return _.RL(g,7),g.yield(z.yQ(l),9);case 9:return M=g.yieldResult,g.return(BfS(M));case 7:I=x=_.XP(g),x instanceof Error&&_.PW(x);case 8:b++;v={epm:void 0};g.jumpTo(2);break;case 4:throw I;}})},CHq=function(z,l){z.kR=l},X70=function(z){var l,I,b;
return _.O(function(v){if(v.nextAddress==1)return v.yield(Promise.race([z.kR,null]),2);l=v.yieldResult;var M=kk8(z);z.kR=M;(I=l)==null||(b=I.vm)==null||b.dispose();_.qe(v)})},txs=function(z,l){var I=Date.now()+l,b=function(){var v;
return _.O(function(M){v=I-Date.now();return v<1E3?M.yield(X70(z),0):(_.qA(_.ow,b,Math.min(v,6E4)),M.jumpTo(0))})};
b()},mps=function(z,l){return new Promise(function(I){_.qA(_.ow,function(){I(l())},z)})};var qY0=function(){};
qY0.prototype.processContext=function(z){var l=_.Pp.instance;if(!l)return _.Ct();var I=get(z);return I?new ft(l.tDf(I,DD7(z),500).then(function(b){var v;(z==null?0:(v=z.innerTubeRequest)==null?0:v.context)||(z.innerTubeRequest.context={});v=z.innerTubeRequest.context;v.request||(v.request={});v.request.attestationResponseData=b})):_.Ct()};var iuc=function(z){this.innertubeTransportService=z};
iuc.prototype.yQ=function(z){_.$B("att_fsr",void 0,"attestation_challenge_fetch");return _.Gv(this.innertubeTransportService,z,_.Mo(_.vjj)).then(function(l){_.$B("att_frr",void 0,"attestation_challenge_fetch");return l})};_.FQc=function(z){this.innertubeTransportService=z};var Q18=new _.yH("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var YY4=function(){},cG1=function(z,l,I,b,v){var M=_.sZ("YPC_MB_URL");
_.UD5(M).then(function(){TfC(M,z,l,I,b,v)})},TfC=function(z,l,I,b,v,M){try{var x=payments.business.integration,g=payments.business.integration.Style.create().withMaterialDesignStyle(),G=x.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.C("enable_window_constrained_buy_flow_dialog")&&(G=G.usingPopupStyle("windowConstrained"));M&&(G=G.usingCloseCallback(M));var u=I?I:_.sZ("YPC_GB_LANGUAGE"),Z=_.sZ("SESSION_INDEX");x.bootstrap.fromPaymentsUrl(z);x.bootstrap.asMashupMode(G).usingGaiaIndex(Z).usingLocale(u).usingStyle(g).usingDefaultActivityStatusChangeHandler().inStandaloneContext(x.standaloneContextAuthId.forGaia()).purchaseManager(l,function(H){b&&b(H)}).load(void 0,v)}catch(H){throw v&&v(H),_.dE(H),H;
}};var SY8=new _.yH("PURCHASE_MANAGER_TOKEN");var dps=function(){var z=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return z.videos},
getContinuationsPresent:function(){return z.continuationsPresent},
setVideos:function(l){z.videos=l},
getRecommendedVideos:function(){return z.recommendedVideos},
setRecommendedVideos:function(l){z.recommendedVideos=l}}};
dps.prototype.addVideos=function(z){z&&(this.videos=z.filter(function(l){return!!_.NXt(l)}).map(function(l){var I=_.NXt(l);
a:{var b;if(l.playlistVideoRenderer&&((b=l.playlistVideoRenderer)==null?0:b.voteSortTiebreaker))var v=l.playlistVideoRenderer.voteSortTiebreaker;else{if(_.k(l,IU)){var M;if(b=(v=_.k(l,IU))==null?void 0:(M=v.playlistItemData)==null?void 0:M.voteSortTiebreaker){v=b;break a}}v=""}}return{itemId:I,videoId:_.Zbt(l),voteCount:_.HbQ(l),voteSortTiebreaker:v}}),this.continuationsPresent=!!_.k(z[z.length-1],_.MN))};
var o58=function(z,l){return z.videos.findIndex(function(I){return I.itemId===l})},PHs=function(z,l){return z.recommendedVideos.findIndex(function(I){return I.itemId===l})},hQK=function(z){z={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:z}}}}};_.pG().resolve(_.DQ).resolveCommand(z)};var s14=function(){dps.apply(this,arguments)};
_.m(s14,dps);
var G8A=function(z,l,I,b){if(!z.parentElem)throw Error("wi");var v=o58(z,l);v===-1&&(v=PHs(z,l),v=v!==-1?v+z.videos.length:-1);if(v===-1)throw Error("xi");var M=v>=z.videos.length?z.recommendedVideos[v-z.videos.length]:z.videos[v];M.voteCount=I;M.voteSortTiebreaker=Date.now().toString();v>=z.videos.length?z.recommendedVideos.splice(v-z.videos.length,1):z.videos.splice(v,1);var x=z.videos;for(var g=0,G=x.length-1;g<=G;){var u=Math.floor((g+G)/2);if(x[u].voteCount<M.voteCount)G=u-1;else if(x[u].voteCount>M.voteCount)g=
u+1;else{a:{var Z=M.voteSortTiebreaker;var H=x[u].voteSortTiebreaker;if(Z.length!==H.length)Z=Z.length>H.length;else{for(var y=0;y<Z.length;y++){var f=Z.charCodeAt(y),R=H.charCodeAt(y);if(f>R){Z=!0;break a}if(f<R)break}Z=!1}}Z?G=u-1:g=u+1}}x=g;if(x===-1)throw Error("yi");z.videos.splice(x,0,M);v!==x&&rGS(z,v,x,l,I,b)},rGS=function(z,l,I,b,v,M){var x,g=(x=z.parentElem)==null?void 0:x.children,G=Math.min(l,I),u=Math.max(l,I);
if(g)for(x=G;x<=u;x++)g[x].style.viewTransitionName="item-"+String(x);document.startViewTransition(function(){if(z.parentElem){var Z=z.parentElem.children;if(!(!Z||l<0||l>=Z.length||I<0||I>=Z.length)){var H=Z[l];if(H){H.remove();z.showRefreshPill=I>=z.videos.length-1&&z.continuationsPresent;if(!z.showRefreshPill){Z=Z[I]||null;var y;(y=z.parentElem)==null||y.insertBefore(H,Z)}_.gC(z.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:b,newVoteCount:v,voteStatus:M,hideItem:z.showRefreshPill})}}}}).finished.then(function(){if(g)for(var Z=
G;Z<=u;Z++)g[Z].style.viewTransitionName="";
if(z.showRefreshPill)hQK(_.mY("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var H;if(H=Z=(H=z.parentElem)==null?void 0:H.children[I])H=Z.getBoundingClientRect(),Z=H.bottom,H=!(H.top>=0&&Z<=z.clientHeight);H&&(H=_.KM(l>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(l-I)),hQK(H))}})};var w74=function(z,l){var I=this;z?this.innertubeTransportServicePromise=Promise.resolve(z):l&&(this.innertubeTransportServicePromise=l(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new m$(3E3,function(b){return $pK(I,b)},0);
this.validateMiniAppVideoIdRateLimiter=new m$(3E3,function(b){return eQs(I,b)},1)},kl_=function(z,l){z.JSC$17208_miniAppId=l;
z.reportMiniAppValueRateLimiter=new m$(3E3,function(I){return $pK(z,I)},0);
z.validateMiniAppVideoIdRateLimiter=new m$(3E3,function(I){return eQs(z,I)},1)},m2z=function(z,l){var I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(z.reportMiniAppValueRateLimiter.call(l),2);I=b.yieldResult;return b.return([I,l])})},$pK=function(z,l){var I,b,v,M,x,g,G;
return _.O(function(u){switch(u.nextAddress){case 1:return u.yield(z.innertubeTransportServicePromise,2);case 2:return I=u.yieldResult,b=_.Mo(gJ4),v=Date.now(),M={externalPostId:z.JSC$17208_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(v/1E3),nanos:Math.round(v%1E3*1E6)},intValue:""+l}},_.RL(u,3),u.yield(_.Gv(I,M,b),5);case 5:x=u.yieldResult;_.a3(u,4);break;case 3:throw g=_.XP(u),g;case 4:if(x){if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("zi`"+
x.errorMetadata.status);if(G=x.userStatResult)return u.return(G);throw Error("Ai");}throw Error("Bi");}})},ttj=function(z){var l,I,b,v,M;
_.O(function(x){switch(x.nextAddress){case 1:return x.yield(z.innertubeTransportServicePromise,2);case 2:return l=x.yieldResult,I=_.Mo(gJ4),b={externalPostId:z.JSC$17208_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.RL(x,3),x.yield(_.Gv(l,b,I),5);case 5:v=x.yieldResult;_.a3(x,4);break;case 3:throw M=_.XP(x),M;case 4:if(v==null)throw Error("Bi");if("error"in v&&v.error)throw v.error;if(v.errorMetadata)throw Error("zi`"+v.errorMetadata.status);_.qe(x)}})};
w74.prototype.flush=function(){var z=this;return _.O(function(l){return l.nextAddress==1?l.yield(z.reportMiniAppValueRateLimiter.flush(),2):l.yield(z.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var KC4=function(z,l){return _.O(function(I){return I.nextAddress==1?I.yield(z.validateMiniAppVideoIdRateLimiter.call(l),2):I.return(I.yieldResult)})},eQs=function(z,l){var I,b,v,M,x,g;
return _.O(function(G){switch(G.nextAddress){case 1:return G.yield(z.innertubeTransportServicePromise,2);case 2:return I=G.yieldResult,b=_.Mo(IR4),v={videoId:l},_.RL(G,3),G.yield(_.Gv(I,v,b),5);case 5:M=G.yieldResult;_.a3(G,4);break;case 3:throw x=_.XP(G),x;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("zi`"+M.errorMetadata.status);if(g=M.playabilityStatus)return G.return(g.status);throw Error("Ci");}throw Error("Bi");}})};
w74[HG]=[_.MB(_.AY),_.MB(oH_)];var AGq=function(){this.clientData=new Map};
AGq.prototype.getData=function(z){return this.clientData.get(z)};var WQF=function(z){this.store=z};
WQF.prototype.handleResponse=function(z){(z=_.k(z.frameworkUpdates,Mv))&&_.tm(z,this.store)};
WQF[HG]=[_.G$];var n5s=new _.yH("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var LQS={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var UpX=new _.yH("ICON_SET_TOKEN"),aS1=new _.yH("ICON_URL_PROVIDER_TOKEN"),Vxc=new _.yH("PREFETCH_ICONS_TOKEN"),j1y=new _.yH("ICON_MAP_FN_TOKEN");var h3={},JGK=(h3.ACCESS_TIME="clock",h3.ACCOUNT_BOX="person_account",h3.ACCOUNT_BOX_CAIRO="person_account_cairo",h3.ACCOUNT_CIRCLE="person_circle",h3.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",h3.ACCOUNT_LINKED="account_link_success",h3.ACCOUNT_UNLINKED="account_link",h3.ADD_FRIEND="people",h3.ADD_MODERATOR="shield_add",h3.ADD_TO_LIBRARY="bookmark",h3.ADD_TO_PLAYLIST="add",h3.ADD_TO_QUEUE_TAIL="list_queue",h3.ADD_TO_REMOTE_QUEUE="list_music",h3.ADD_TO_WATCH_LATER="clock",h3.ADD_VIDEO_LINK="film_strip_add",
h3.ALERT_WARN_RED="alert_triangle",h3.ARROW_BACK="arrow_left",h3.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",h3.ARROW_DROP_DOWN="chevron_down",h3.ARROW_DROP_UP="chevron_up",h3.ARROW_FORWARD="arrow_right",h3.AUDIOTRACK="audio",h3.AUTO_AWESOME="sparkle",h3.AVATAR_ANONYMOUS="person_circle",h3.AVATAR_LOGGED_OUT="person_circle",h3.BACK="arrow_left",h3.BAR_CHART="bar_graph",h3.BLOCK="slash_circle_left",h3.BLOCK_USER="slash_circle_left",h3.BOOKMARK_BORDER="bookmark",h3.BREAKING_NEWS_ALT_1="article_alert",
h3.BROADCAST_CAIRO="podcast_cairo",h3.BUG_REPORT="bug",h3.CAMERA_ALT="camera",h3.CAMPAIGN="megaphone",h3.CANCEL="x_circle",h3.CAPTIONS="closed_caption",h3.CAST_OUTLINE="chromecast",h3.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",h3.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",h3.CHAT="message_bubble_left",h3.CHAT_BUBBLE="message_bubble_empty",h3.CHAT_SPARK="spark_message_bubble_left",h3.CHECK_BOX_OUTLINE_BLANK="box_empty",h3.CHECK_CIRCLE_OUTLINE="check_circle",h3.CHECK_CIRCLE_THICK="check_circle",h3.CLARIFY=
"article_clarify",h3.CLOSED_CAPTION_SELECTED="closed_caption",h3.CLOSE="x_mark",h3.CLOUD_UPLOAD="cloud_arrow_up",h3.COLLAPSE="chevron_up",h3.COLLAPSE_CAIRO="chevron_up_cairo",h3.COLLECTION="layers",h3.COLOR_LENS="palette",h3.COMMENT="message_bubble_right",h3.CONSENT_SHIELD="person_shield",h3.CONTENT_CUT="scissors",h3.CONTENT_CUT_CAIRO="scissors_cairo",h3.COURSE=_.C("web_enable_course_icon_update")?"creator_academy":"lightbulb",h3.COURSE_CAIRO=_.C("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",h3.CREATION_LIVE="radar_live",h3.CREATION_POST="box_pencil",h3.CREATION_UPLOAD="my_videos",h3.CREATION_UPLOAD_RED="upload",h3.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",h3.CREATOR_STUDIO="youtube_studio",h3.DASHBOARD="grid_asymmetrical",h3.DELETE="trash_can",h3.DELETE_SWEEP="trash_can",h3.DESKTOP="laptop",h3.DISLIKE="thumb_down",h3.DISLIKE_SELECTED="thumb_down",h3.DISMISSAL="x_mark",h3.DISMISS_QUEUE="list_remove",h3.DONE_ALL="check_double",h3.DOWN_ARROW="arrow_down",h3.DO_NOT_DISTURB=
"slash_circle_left",h3.DRAFT="paper_corner_folded",h3.DRAG_HANDLE="bars_2",h3.EDIT="pencil",h3.EMOJI="face_very_happy",h3.EMOJI_FLAGS="flag",h3.EMOJI_OBJECTS="lightbulb",h3.EMOJI_PEOPLE="face_very_happy",h3.EMOJI_RECENT="clock",h3.EMPTY_HEART="heart",h3.EMPTY_LIKE="thumb_up",h3.ERROR_BLACK="alert_circle",h3.ERROR_OUTLINE="alert_circle",h3.EXIT_APP="arrow_in",h3.EXIT_TO_APP="arrow_in",h3.EXPAND="chevron_down",h3.EXPAND_ALL="chevron_expand",h3.EXPAND_CAIRO="chevron_down_cairo",h3.EXPAND_LESS="chevron_up",
h3.EXPAND_MORE="chevron_down",h3.EXPLORE="compass",h3.EXPLORE_DESTINATION="compass",h3.EXTERNAL_LINK="open_new",h3.FAB_UPLOAD="upload",h3.FACE_HAPPY_OUTLINE="face_happy",h3.FACT_CHECK="article_check",h3.FASHION_LOGO="fashion",h3.FASHION_LOGO_CAIRO="fashion_cairo",h3.FAVORITE="heart",h3.FEEDBACK="message_bubble_alert",h3.FEEDBACK_CAIRO="message_bubble_alert_cairo",h3.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",h3.FILL_ARROW_SOLID_UP_16="arrow_solid_up",h3.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
h3.FILTER="menu_filter",h3.FIRST_PAGE="chevron_first",h3.FLAG="flag",h3.FULL_HEART="heart",h3.GAME_CONSOLE_DPAD="game_console_dpad",h3.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",h3.GAMING_LOGO="gaming",h3.GAMING_LOGO_CAIRO="gaming_cairo",h3.GO_TO_PAGE="arrow_right",h3.GROUPS="people_group",h3.HAPPY="face_happy",h3.HEALTH_AND_SAFETY="shield_plus",h3.HELP="question_circle",h3.HELP_CAIRO="question_circle_cairo",h3.HELP_OUTLINE="question_circle",h3.HIDE="slash_circle_left",h3.IMAGE="image",
h3.INFINITY_ICON="infinity",h3.INFO="info_circle",h3.INFO_OUTLINE="info_circle",h3.INSERT_CHART="bar_graph_box_vertical",h3.INSERT_CHART_OUTLINED="bar_graph_box_vertical",h3.INSERT_PHOTO="image",h3.KEEP="pin",h3.KEEP_OFF="pin_off",h3.KEYBOARD="keyboard",h3.KEYBOARD_ARROW_DOWN="chevron_down",h3.KEYBOARD_ARROW_UP="chevron_up",h3.KIDS_BLOCK="slash_circle_left",h3.LANGUAGE="globe",h3.LAST_PAGE="chevron_last",h3.LAUNCH="open_new",h3.LEARNING="lightbulb",h3.LEARNING_CAIRO="lightbulb_cairo",h3.LIBRARY_ADD=
kIu("library_add"),h3.LIBRARY_OUTLINE="library",h3.LIBRARY_REMOVE=kIu(),h3.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",h3.LIKES_PLAYLIST="thumb_up",h3.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",h3.LIKE="thumb_up",h3.LIKE_SELECTED="thumb_up",h3.LIVE="radar_live",h3.LIVE_CAIRO="radar_live_cairo",h3.LIVE_UNLISTED="link",h3.LOCATION_ON="location_point",h3.LOCATION_PIN="location_point",h3.LOOP="arrow_repeat",h3.LOOP_ACTIVE="arrow_repeat",h3.LOOP_ONE="arrow_repeat_1",h3.LOOP_ONE_ACTIVE="arrow_repeat_1",h3.MEH=
"face_meh",h3.MEMBERS_ONLY_MODE_OFF="message_bubble_left",h3.MESSAGE="message_bubble_left",h3.MICROPHONE_ON="mic",h3.MIX="youtube_mix",h3.MONETIZATION_ON="dollar_sign_circle",h3.MONEY_FILL="dollar_sign_container",h3.MONEY_FILL_JPY="yen_sign_container",h3.MONEY_HEART="dollar_sign_heart",h3.MORE_HORIZ="overflow_horizontal",h3.MORE_VERT="overflow_vertical",h3.MUSIC="audio",h3.MUSIC_CAIRO="audio_cairo",h3.MUSIC_NOTE_SYMBOL="music",h3.MUSIC_SHUFFLE="arrow_shuffle",h3.MY_CHANNEL="person_circle",h3.MY_LOCATION=
"location_point",h3.NEWS_STORY="news",h3.NEXT="chevron_right",h3.NOTIFICATIONS="bell",h3.NOTIFICATIONS_ACTIVE="bell_on",h3.NOTIFICATIONS_CAIRO="bell_cairo",h3.NOTIFICATIONS_DONE_CHECKMARK="check",h3.NOTIFICATIONS_INBOX="bell",h3.NOTIFICATIONS_NONE="bell",h3.NOTIFICATIONS_OFF="bell_off",h3.NOT_INTERESTED="slash_circle_left",h3.OFFICIAL_ARTIST_BADGE="audio",h3.OFFLINE_CLOUD="cloud_off",h3.OFFLINE_DOWNLOAD="download",h3.OFFLINE_DOWNLOAD_CAIRO="download_cairo",h3.OFFLINE_PAUSE="pause",h3.OPEN_IN_NEW=
"open_new",h3.OUTLINE_ADJUST="adjust",h3.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",h3.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",h3.OUTLINE_BAG="bag",h3.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",h3.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",h3.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",h3.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",h3.PAID="dollar_sign",h3.PAUSE_OUTLINED="pause",h3.PAYMENT="credit_card",h3.PERSON_RADAR_FILLED="person_radar",h3.PHONE_DOWNLOAD="mobile_download",
h3.PLAYABLES_LOGO="tic_tac_toe",h3.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",h3.PLAYLISTS="list_play_arrow",h3.PLAYLISTS_CAIRO="list_play_arrow_cairo",h3.PLAYLIST_ADD=kIu("list_add"),h3.PLAYLIST_ADD_CHECK=kIu("list_check"),h3.PLAYLIST_PLAY="list_play_arrow",h3.PLAY_ALL="play_arrow",h3.PLAY_CIRCLE="play_arrow_circle",h3.PLAY_OUTLINED="play_arrow_circle",h3.PRIVACY_INFO="shield",h3.PRIVACY_PRIVATE="lock",h3.PRIVACY_PUBLIC="earth",h3.PRIVACY_UNLISTED="link",h3.PROMOTE="megaphone",h3.PURCHASES="price_tag",
h3.PURCHASE_SUPER_CHAT="super_chat",h3.PURCHASE_SUPER_STICKER="super_sticker",h3.QUESTION_ANSWER="message_bubble_question",h3.QUEUE_PLAY_LAST="list_queue_last",h3.QUEUE_PLAY_NEXT="list_play_arrow",h3.REMIX_FILLED="youtube_shorts_remix",h3.REMOVE="bar_circle",h3.REMOVE_CIRCLE="bar_circle",h3.REMOVE_CIRCLE_OUTLINE="bar_circle",h3.REMOVE_DONE="check_double_off",h3.REMOVE_FROM_HISTORY="bar_circle",h3.REMOVE_FROM_PLAYLIST="bar_circle",h3.REMOVE_MODERATOR="shield_off",h3.REPLAY="arrow_circle",h3.REPLAY_10=
"skip_back_10",h3.REPORT_PROBLEM="alert_triangle",h3.SAD="face_sad",h3.SAVE_PLAYLIST="bookmark",h3.SCHEDULE="clock",h3.SCHOOL="creator_academy",h3.SCREEN_FULLSCREEN="screen_full",h3.SEARCH_HISTORY="arrow_time",h3.SELL="price_tag",h3.SETTINGS="gear",h3.SETTINGS_CAIRO="gear_cairo",h3.SETTINGS_LIGHT="gear",h3.SETTINGS_MATERIAL="gear",h3.SHARE_ARROW="share",h3.SHIELD_WITH_AVATAR="person_shield",h3.SHOPPING_BAG="bag",h3.SHOPPING_BAG_CAIRO="bag_cairo",h3.SHOPPING_CART="cart",h3.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
h3.SHORTS_DISLIKE="youtube_shorts_thumb_down",h3.SHORTS_LIKE="youtube_shorts_thumb_up",h3.SHORTS_SHARE="youtube_shorts_share",h3.SHUFFLE="arrow_shuffle",h3.SLOW_MODE_OFF="message_bubble_left",h3.SOCIAL="people",h3.SORT="menu_sort",h3.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",h3.SPEED_1X="1x",h3.SPEED_1_POINT_2X="1_point_2x",h3.SPEED_1_POINT_5X="1_point_5x",h3.SPEED_1_POINT_8X="1_point_8x",h3.SPEED_2X="2x",h3.SPEED_POINT_2X="point_2x",h3.SPEED_POINT_8X="point_8x",h3.SPONSORSHIP_STAR="star_circle",
h3.STAFF_PICK="spotlight",h3.START_DVR="add",h3.STAR_BORDER="star",h3.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",h3.STICKER_EMOTICON="face_happy",h3.STOP_DVR="stop",h3.SUBSCRIBE="youtube_logo_icon",h3.SUBSCRIBE_PLUS="add_cairo",h3.SUBSCRIPTION_MANAGER="gear",h3.SUPERVISOR_ACCOUNT="people",h3.SUPER_CHAT_FOR_GOOD="hands_heart",h3.SWAP_HORIZ="arrow_swap_horizontal",h3.SWITCH_ACCOUNTS="person_account",h3.TAB_ACCOUNT="person",h3.TAB_ACTIVITY="bell",h3.TAB_BOOKMARK="bookmark",h3.TAB_EXPLORE="compass",
h3.TAB_HOME="home",h3.TAB_HOME_CAIRO="home_cairo",h3.TAB_INBOX="mail",h3.TAB_LIKED="thumb_up",h3.TAB_MUSIC_PREMIUM="youtube_music",h3.TAB_SHORTS="youtube_shorts",h3.TAB_SHORTS_CAIRO="youtube_shorts_cairo",h3.TAB_SUBSCRIPTIONS="subscriptions",h3.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",h3.TAB_TRENDING="fire",h3.TIMER="stopwatch",h3.TRAILER="youtube_originals",h3.TRENDING="fire",h3.TRENDING_CAIRO="fire_cairo",h3.TRENDING_UP="rating_up",h3.TROPHY="trophy",h3.TROPHY_CELEBRATIONS="fireworks",h3.TUNE=
"adjust",h3.UNBLOCK_USER="bar_circle",h3.UNLIMITED="youtube_logo_icon",h3.UNPLUGGED_LIVE_GUIDE="radar_live",h3.UNPLUGGED_SPORTS="eye_off",h3.UPLOADS="library",h3.UP_ARROW="arrow_up",h3.VERTICAL_ALIGN_BOTTOM="download",h3.VERY_HAPPY="face_very_happy",h3.VERY_SAD="face_very_sad",h3.VIDEOGAME_ASSET="gaming",h3.VIDEOS="play_arrow_circle",h3.VIDEO_CALL="video_camera_add",h3.VIDEO_LIBRARY_WHITE="library",h3.VIDEO_YOUTUBE="youtube_logo_icon",h3.VIEW_LIST="list_view",h3.VIEW_LIST_CAIRO="list_view_cairo",
h3.VISIBILITY="eye",h3.VISIBILITY_OFF="eye_off",h3.VOLUME_MUTE="volume_off",h3.VOLUME_UP="volume_on",h3.WALLPAPER="image",h3.WARNING="alert_triangle",h3.WATCH_HISTORY="arrow_time",h3.WATCH_HISTORY_CAIRO="arrow_time_cairo",h3.WATCH_LATER="clock",h3.WATCH_LATER_CAIRO="clock_cairo",h3.WATCH_RELATED_MIX="youtube_mix",h3.WHAT_TO_WATCH="home",h3.YOUTUBE_MUSIC_MONOCHROME="youtube_music",h3.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",h3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
h3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",h3.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",h3.YT_OUTLINE_MUSIC_24="music",h3);var sC={},zIK=(sC.ACCESS_TIME="clock",sC.ACCOUNT_BOX="person_square",sC.ACCOUNT_BOX_CAIRO="person_square",sC.ACCOUNT_CIRCLE="person_circle",sC.ACCOUNT_CIRCLE_CAIRO="person_circle",sC.ACCOUNT_LINKED="account_link",sC.ACCOUNT_UNLINKED="account_link",sC.ADD_CIRCLE="add_circle",sC.ADD_CIRCLE_OUTLINE="add_circle",sC.ADD_FRIEND="person_child",sC.ADD_MODERATOR="shield_add",sC.ADD_TO_LIBRARY="bookmark",sC.ADD_TO_PLAYLIST="add",sC.ADD_TO_QUEUE_TAIL="queue",sC.ADD_TO_REMOTE_QUEUE="playlist_audio",sC.ADD_TO_WATCH_LATER=
"clock",sC.ADD_VIDEO_LINK="film_strip_add",sC.ADMIN_PANEL_SETTINGS="person_gear",sC.ALERT_WARN_RED="alert_triangle",sC.ALIGN_LEFT="text_align_left",sC.ARROWS_ALERT="arrow_split_alert",sC.ARROW_BACK="arrow_left",sC.ARROW_CIRCLE="arrow_counterclockwise",sC.ARROW_CIRCLE_PLAY="replay",sC.ARROW_CIRCLE_RIGHT="arrow_clockwise",sC.ARROW_DIAGONAL="arrow_up_left",sC.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",sC.ARROW_DROP_DOWN="triangle_down",sC.ARROW_DROP_UP="triangle_up",sC.ARROW_FORWARD="arrow_right",sC.ARROW_PAUSE=
"pause_history",sC.ARROW_UNDO="undo",sC.ARTICLE="text_page",sC.ARTICLE_ALERT="text_page_alert",sC.ARTICLE_CHECK="text_page_check",sC.ARTICLE_CLARIFY="text_page_info",sC.AUDIOTRACK="audio",sC.AUDIO_BADGE="audio_badge",sC.AUDIO_SURROUND="surround_sound",sC.AUTO_AWESOME="sparkles",sC.AVATAR_ANONYMOUS="person_circle",sC.AVATAR_LOGGED_OUT="person_circle",sC.BACK="arrow_left",sC.BAR_CHART="chart_bar",sC.BAR_CIRCLE="minus_circle",sC.BAR_HORIZONTAL="minus",sC.BLOCK="circle_slash",sC.BLOCK_USER="circle_slash",
sC.BOOKMARK_BORDER="bookmark",sC.BOX_OPEN_CHECK="quiz",sC.BOX_PENCIL="square_pencil",sC.BOX_STACK_3="square3_stack",sC.BREAKING_NEWS_ALT_1="text_page_alert",sC.BROADCAST="podcast",sC.BROADCAST_CAIRO="podcast",sC.BUG_REPORT="bug",sC.CAMERA_ALT="camera",sC.CAMPAIGN="megaphone",sC.CANCEL="x_circle",sC.CAPTIONS="closed_captions",sC.CAST_ICON="chromecast",sC.CAST_OUTLINE="chromecast",sC.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",sC.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",sC.CHAT="text_bubble",
sC.CHAT_BUBBLE="bubble",sC.CHECK_BOX="check_square",sC.CHECK_BOX_OUTLINE_BLANK="square",sC.CHECK_CIRCLE_FILLED="check_circle",sC.CHECK_CIRCLE_OUTLINE="check_circle",sC.CHECK_CIRCLE_THICK="check_circle",sC.CHECK_DOUBLE="check_done",sC.CHECK_DOUBLE_OFF="check_done_slash",sC.CHEVRON_LEFT="chevron_left",sC.CHEVRON_RIGHT="chevron_right",sC.CHEVRON_RIGHT_CAIRO="chevron_right",sC.CIRCLES_OVERLAP="account_link",sC.CLAPPERBOARD_CAIRO="clapperboard",sC.CLARIFY="text_page_info",sC.CLOCK_ARROWS="clock_split",
sC.CLOCK_ARROWS_ALERT="clock_split_alert",sC.CLOSED_CAPTION="closed_captions",sC.CLOSED_CAPTION_SELECTED="closed_captions",sC.CLOSE="x",sC.CLOUD_UPLOAD="cloud_arrow_up",sC.COLLAPSE="chevron_up",sC.COLLAPSE_CAIRO="chevron_up",sC.COLLECTION="square3d_stack",sC.COLOR_LENS="paint_palette",sC.COMMENT="text_bubble",sC.CONSENT_SHIELD="person_shield",sC.CONTENT_CUT="scissors",sC.CONTENT_CUT_CAIRO="scissors",sC.COURSE="graduation_cap",sC.COURSE_CAIRO="graduation_cap",sC.CREATION_LIVE="live",sC.CREATION_POST=
"square_pencil",sC.CREATION_UPLOAD="video",sC.CREATION_UPLOAD_RED="upload",sC.CREATOR_ACADEMY="graduation_cap",sC.CREATOR_STUDIO="youtube_studio",sC.DARK_THEME="theme",sC.DELETE="trash_can",sC.DELETE_SWEEP="trash_can",sC.DESKTOP="laptop",sC.DISLIKE="thumb_down",sC.DISLIKE_SELECTED="thumb_down",sC.DISMISSAL="x",sC.DISMISS_QUEUE="playlist_x",sC.DOGFOOD="pawprint",sC.DOLLAR_SIGN="dollar_sign_circle",sC.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",sC.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",sC.DOWN_ARROW=
"arrow_down",sC.DO_NOT_DISTURB="circle_slash",sC.DRAFT="document",sC.DRAG_HANDLE="equal",sC.EARTH="globe",sC.EDIT="pencil",sC.EMOJI="face_very_happy",sC.EMOJI_FLAGS="flag",sC.EMOJI_OBJECTS="lightbulb",sC.EMOJI_PEOPLE="face_very_happy",sC.EMOJI_RECENT="clock",sC.EMPTY_HEART="heart",sC.EMPTY_LIKE="thumb_up",sC.ERROR_BLACK="alert_circle",sC.ERROR_OUTLINE="alert_circle",sC.ERROR_WHITE="alert_circle",sC.EXIT_APP="arrow_in",sC.EXIT_TO_APP="arrow_in",sC.EXPAND="chevron_down",sC.EXPAND_ALL="chevron_expand",
sC.EXPAND_CAIRO="chevron_down",sC.EXPAND_LESS="chevron_up",sC.EXPAND_MORE="chevron_down",sC.EXPLORE="compass",sC.EXPLORE_DESTINATION="compass",sC.EXTERNAL_LINK="arrow_up_right",sC.EYE_OFF="eye_slash",sC.FAB_UPLOAD="upload",sC.FACE_HAPPY_OUTLINE="face_happy",sC.FACE_MEH="face_neutral",sC.FACT_CHECK="text_page_check",sC.FASHION_LOGO="fashion",sC.FASHION_LOGO_CAIRO="fashion",sC.FAVORITE="thumb_up",sC.FEEDBACK="alert_bubble",sC.FEEDBACK_CAIRO="alert_bubble",sC.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
sC.FILL_ARROW_SOLID_UP_16="arrow_solid_up",sC.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",sC.FLAG_CAIRO="flag",sC.FLASH_OFF="flash_slash",sC.FLASH_ON="flash",sC.FULL_HEART="heart",sC.GAMING_LOGO="gaming",sC.GAMING_LOGO_CAIRO="gaming",sC.GO_TO_PAGE="arrow_right",sC.GROUPS="person3",sC.HAND_SWIPE_LEFT="gesture_swipe_left",sC.HAND_SWIPE_RIGHT="gesture_swipe_right",sC.HAPPY="face_happy",sC.HEALTH_AND_SAFETY="shield_health",sC.HEART_BOX="heart_cube",sC.HELP="help_circle",sC.HELP_CAIRO="help_circle",
sC.HELP_OUTLINE="help_circle",sC.HIDE="circle_slash",sC.INCOGNITO_CAIRO="incognito",sC.INFINITY_ICON="infinity",sC.INFO="info_circle",sC.INFO_OUTLINE="info_circle",sC.INSERT_CHART="chart_bar_square",sC.INSERT_CHART_OUTLINED="chart_bar_square",sC.INSERT_PHOTO="image",sC.KEEP="pin",sC.KEEP_OFF="pin_slash",sC.KEYBOARD="keyboard",sC.KEYBOARD_ARROW_DOWN="chevron_down",sC.KEYBOARD_ARROW_UP="chevron_up",sC.KIDS_BLOCK="circle_slash",sC.LANGUAGE="globe",sC.LAUNCH="arrow_up_right",sC.LEARNING="lightbulb",sC.LEARNING_CAIRO=
"lightbulb",sC.LIBRARY_ADD="bookmark",sC.LIBRARY_IMAGE="image_stack",sC.LIBRARY_MUSIC="audio_square_stack",sC.LIBRARY_OUTLINE="play_square_stack",sC.LIBRARY_REMOVE="bookmark",sC.LIBRARY_SAVED="check_square_stack",sC.LIKES_PLAYLIST="thumb_up",sC.LIKES_PLAYLIST_CAIRO="thumb_up",sC.LIKE="thumb_up",sC.LIKE_SELECTED="thumb_up",sC.LIST_QUEUE="queue",sC.LIVE_CAIRO="live",sC.LIVE_UNLISTED="link",sC.LOCATION_ON="location_pin",sC.LOCATION_PIN="location_pin",sC.LOCATION_POINT="location_pin",sC.LOOP="repeat",
sC.LOOP_ACTIVE="repeat",sC.LOOP_ONE="repeat1",sC.LOOP_ONE_ACTIVE="repeat1",sC.MEET="google_meet",sC.MEH="face_neutral",sC.MEMBERSHIPS="memberships",sC.MEMBERS_ONLY_MODE_OFF="text_bubble",sC.MENU_FILTER="filter",sC.MESSAGE="text_bubble",sC.MESSAGE_BUBBLE_GEAR="bubble_gear",sC.MESSAGE_BUBBLE_LEFT="text_bubble",sC.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",sC.MESSAGE_BUBBLE_OVERLAP="bubble_stack",sC.MESSAGE_BUBBLE_QUESTION="help_bubble",sC.MICROPHONE_ON="mic",sC.MONETIZATION_ON="dollar_sign_circle",
sC.MONEY_FILL="dollar_sign_rectangle",sC.MONEY_FILL_JPY="yen_sign_rectangle",sC.MONEY_HAND="dollar_sign_circle_hand",sC.MONEY_HEART="dollar_sign_heart",sC.MOON_Z="sleep_timer",sC.MORE_HORIZ="overflow_horizontal",sC.MORE_VERT="overflow_vertical",sC.MUSIC="audio",sC.MUSIC_CAIRO="audio",sC.MUSIC_EXPLICIT_BADGE="explicit",sC.MUSIC_NEW_RELEASE="audio_badge",sC.MUSIC_NOTE_SYMBOL="audio",sC.MUSIC_SCISSORS="audio_scissors",sC.MUSIC_SHUFFLE="shuffle",sC.MY_CHANNEL="person_circle",sC.MY_LOCATION="location_pin",
sC.MY_VIDEOS="video",sC.MY_VIDEOS_CAIRO="video",sC.NEWS_CAIRO="news",sC.NEWS_STORY="news",sC.NEXT="chevron_right",sC.NOTE_ADD="bubble_pencil",sC.NOTIFICATIONS="bell",sC.NOTIFICATIONS_ACTIVE="bell_waves",sC.NOTIFICATIONS_CAIRO="bell",sC.NOTIFICATIONS_DONE_CHECKMARK="check",sC.NOTIFICATIONS_INBOX="bell",sC.NOTIFICATIONS_NONE="bell",sC.NOTIFICATIONS_OFF="bell_slash",sC.NOT_INTERESTED="circle_slash",sC.OFFICIAL_ARTIST_BADGE="audio",sC.OFFLINE_CLOUD="cloud_slash",sC.OFFLINE_DOWNLOAD="download",sC.OFFLINE_DOWNLOAD_CAIRO=
"download",sC.OFFLINE_PAUSE="pause",sC.OPEN_IN_NEW="arrow_up_right",sC.OUTLINE_ADJUST="adjust",sC.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",sC.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",sC.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",sC.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",sC.OUTLINE_BAG="bag",sC.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",sC.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",sC.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",sC.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",sC.PAID=
"dollar_sign_circle",sC.PAUSE_OUTLINED="pause",sC.PAYMENT="credit_card",sC.PEOPLE="person_child",sC.PEOPLE_2="person2_rectangle",sC.PEOPLE_GROUP="person3",sC.PEOPLE_NOTE="bubble_asterisk",sC.PERSON_2="person2",sC.PERSON_ACCOUNT="person_square_stack",sC.PERSON_MINUS="person_x",sC.PERSON_MUSIC="person_audio",sC.PERSON_RADAR="person_waves",sC.PERSON_RADAR_FILLED="person_waves",sC.PERSON_SETTING="person_gear",sC.PHONE="phone",sC.PHONE_DOWNLOAD="mobile_arrow_down",sC.PICTURE_IN_PICTURE="picture_in_picture",
sC.PLAYABLES_LOGO="playables",sC.PLAYABLES_LOGO_CAIRO="playables",sC.PLAYLISTS="playlist",sC.PLAYLISTS_CAIRO="playlist",sC.PLAYLIST_ADD_CHECK="bookmark",sC.PLAY_ALL="play",sC.PLAY_ARROW="play",sC.PLAY_ARROW_CIRCLE="play_circle",sC.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",sC.PLAY_CIRCLE="play_circle",sC.PLAY_OUTLINED="play_circle",sC.PODCAST_ADD="podcast_add",sC.PODCAST_CHECK="podcast_check",sC.PRIVACY_INFO="shield_x",sC.PRIVACY_PRIVATE="lock",sC.PRIVACY_PUBLIC="globe",sC.PRIVACY_UNLISTED=
"link",sC.PROMOTE="megaphone",sC.PURCHASES="price_tag",sC.PURCHASE_SUPER_CHAT="super_chat",sC.PURCHASE_SUPER_STICKER="super_sticker",sC.QUESTION_ANSWER="help_bubble",sC.QUESTION_CIRCLE="help_circle",sC.QUEUE_PLAY_LAST="queue_last",sC.QUEUE_PLAY_NEXT="queue_next",sC.QUOTATION_MARK="quote",sC.RADAR_LIVE="live",sC.REMOVE="minus_circle",sC.REMOVE_CIRCLE="minus_circle",sC.REMOVE_CIRCLE_OUTLINE="minus_circle",sC.REMOVE_FROM_HISTORY="minus_circle",sC.REMOVE_FROM_PLAYLIST="minus_circle",sC.REMOVE_MODERATOR=
"shield_slash",sC.REPLAY="arrow_counterclockwise",sC.REPLAY_10="skip10_back",sC.REPLAY_ARROW="replay",sC.REPORT_PROBLEM="alert_triangle",sC.RSS_OFF="rss_slash",sC.SAD="face_sad",sC.SAVE_PLAYLIST="bookmark",sC.SCHEDULE="clock",sC.SCHOOL="graduation_cap",sC.SCREEN_DEFAULT="player_default",sC.SCREEN_FULLSCREEN="player_full_enter",sC.SCREEN_LIGHT="ambient_mode",sC.SCREEN_ROTATION="rotate_portrait",sC.SCREEN_SWITCH="player_switch",sC.SCREEN_THEATRE="player_theater",sC.SEARCH_CAIRO="search",sC.SEARCH_HISTORY=
"history",sC.SELL="price_tag",sC.SETTINGS="gear",sC.SETTINGS_CAIRO="gear",sC.SETTINGS_LIGHT="gear",sC.SETTINGS_MATERIAL="gear",sC.SETTINGS_REMOTE="remote_waves",sC.SHARE="share",sC.SHARE_ARROW="share",sC.SHARE_CAIRO="share",sC.SHIELD="shield_x",sC.SHIELD_OFF="shield_slash",sC.SHIELD_WITH_AVATAR="person_shield",sC.SHOPPING_BAG="bag",sC.SHOPPING_BAG_CAIRO="bag",sC.SHOPPING_CART="cart",sC.SHORTS_COMMENT="text_bubble",sC.SHORTS_DISLIKE="thumb_down",sC.SHORTS_LIKE="thumb_up",sC.SHORTS_SHARE="share",sC.SKIP_FORWARD_30=
"skip30_forward",sC.SLASH_CIRCLE_RIGHT="circle_slash",sC.SLOW_MODE="bubble_slow",sC.SLOW_MODE_OFF="text_bubble",sC.SOCIAL="person_child",sC.SPARKLE="sparkles",sC.SPARK_IMAGE="image_spark",sC.SPARK_RADAR="spark_waves",sC.SPARK_VIDEO="video_spark",sC.SPEAKER_GROUP="speaker_stack",sC.SPEAKER_OFF="speaker_slash",sC.SPEED_1X="n1x",sC.SPEED_1_POINT_2X="n1point2x",sC.SPEED_1_POINT_5X="n1point5x",sC.SPEED_1_POINT_8X="n1point8x",sC.SPEED_2X="n2x",sC.SPONSORSHIP_STAR="star_circle",sC.SPORTS="basketball",sC.SPOTLIGHT=
"spotlight",sC.STAFF_PICK="spotlight",sC.START_DVR="add",sC.STAR_BORDER="star",sC.STAR_CIRCLE_RIBBON="memberships_gift",sC.STAR_HALF="star_half_filled",sC.STAR_SHOOTING="hype",sC.STICKER="sticker",sC.STICKER_EMOTICON="face_happy",sC.STOP_DVR="stop",sC.SUBSCRIBE="youtube",sC.SUBSCRIBE_PLUS="add",sC.SUBSCRIPTION_MANAGER="gear",sC.SUPERSTAR="super_star",sC.SUPERVISOR_ACCOUNT="person_child",sC.SUPER_CHAT_FOR_GOOD="hands_heart",sC.SWAP_HORIZ="arrow_swap_horizontal",sC.SWITCH_ACCOUNTS="person_square_stack",
sC.TAB_ACCOUNT="person",sC.TAB_ACTIVITY="bell",sC.TAB_BOOKMARK="bookmark",sC.TAB_EXPLORE="compass",sC.TAB_HOME="home",sC.TAB_HOME_CAIRO="home",sC.TAB_INBOX="mail",sC.TAB_LIKED="thumb_up",sC.TAB_MUSIC_PREMIUM="youtube_music",sC.TAB_SHORTS="shorts",sC.TAB_SHORTS_CAIRO="shorts",sC.TAB_SUBSCRIPTIONS="subscriptions",sC.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",sC.TAB_TRENDING="trending",sC.TARGET="target",sC.TARGET_ADD="target_add",sC.TEMPLATE_ADD="template_add",sC.TEXT="font",sC.TIMER="stopwatch",sC.TRENDING_CAIRO=
"trending",sC.TRENDING_UP="arrow_trend_up",sC.TROPHY_CAIRO="trophy",sC.TROPHY_CELEBRATIONS="fireworks",sC.TROPHY_STAR="star_trophy",sC.TUNE="adjust",sC.TV_OFF="tv_slash",sC.UNBLOCK_USER="minus_circle",sC.UNFAVORITE="thumb_down",sC.UNLIMITED="youtube",sC.UNPLUGGED_LIVE_GUIDE="live",sC.UNPLUGGED_SPORTS="eye_slash",sC.UPLOADS="play_square_stack",sC.UP_ARROW="arrow_up",sC.VERTICAL_ALIGN_BOTTOM="chevron_down_end",sC.VERTICAL_ALIGN_TOP="chevron_up_end",sC.VERY_HAPPY="face_very_happy",sC.VERY_SAD="face_very_sad",
sC.VIDEOS="play_circle",sC.VIDEO_CALL="video_camera_add",sC.VIDEO_LIBRARY_WHITE="play_square_stack",sC.VIDEO_QUALITY_4K="n4k",sC.VIDEO_QUALITY_8K="n8k",sC.VIDEO_YOUTUBE="youtube",sC.VIEW_LIST_CAIRO="view_list",sC.VIEW_MODULE="view_column3_row2",sC.VISIBILITY="eye",sC.VISIBILITY_OFF="eye_slash",sC.VOLUME_DOWN="volume_min",sC.VOLUME_MUTE="volume_mute",sC.VOLUME_OFF="volume_mute",sC.VOLUME_STABLE="stable_volume",sC.VOLUME_UP="volume_max",sC.WALLPAPER="image",sC.WARNING="alert_triangle",sC.WATCH_HISTORY=
"history",sC.WATCH_HISTORY_CAIRO="history",sC.WATCH_LATER="clock",sC.WATCH_LATER_CAIRO="clock",sC.WATCH_RELATED_MIX="mix",sC.WHAT_TO_WATCH="home",sC.YOUTUBE_LINKED_TV="tv_mobile",sC.YOUTUBE_MUSIC_MONOCHROME="youtube_music",sC.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",sC.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",sC.YOUTUBE_SHORTS_ARROW_UP="arrow_up",sC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",sC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",sC.YOUTUBE_SHORTS_OUTLINE_24="shorts",
sC);var l4s={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,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,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var I40={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],
hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,
8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,
2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],
text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,
4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,
2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,
3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,
2,24],[1,2,24]]};var bnS={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"},rW=function(z){this.iconUrlProvider=z};
rW.prototype.resolveIcon=function(z,l){var I=bnS[z.iconName.toUpperCase()];I&&(z.iconName=I);var b=z.iconName;b=b.replace(/-/g,"_");z=Object.assign({},z,{iconName:this.mapIconTypeToStandardName(b,!!I)||b.toLowerCase()});if(_.C("enable_web_delhi_icons")||I){var v;return fBx(I40,z,((v=this.iconUrlProvider)==null?void 0:v.getYtStandardUrl)||mDt,l)}var M;return fBx(l4s,z,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||R2Y,l)};
rW.prototype.mapIconTypeToStandardName=function(z,l){return _.C("enable_web_delhi_icons")||l?zIK[z.toUpperCase()]:JGK[z.toUpperCase()]};
rW[HG]=[_.MB(aS1)];var v0F=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),MM4=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),p_4=function(z){this.urlProvider=this.iconUrlProvider=z};
_.m(p_4,rW);
p_4.prototype.resolveIcon=function(z,l){z.iconName==="youtube_logo"&&(z.iconName="yt-logo-updated");if(z.iconName==="youtube_premium_logo"||z.iconName==="youtube_red_logo")z.iconName="yt-logo-red-updated";var I=Object.assign({},z);z.iconName==="menu"&&(_.C("enable_web_delhi_icons")||(I.iconName="bars_3"),I.iconStyle="youtube_outline");z.iconSetName==="socialNetworksRound"&&(z.iconName==="mail"&&(I.iconName="email"),z.iconName==="embed"&&(I.iconSize=60));z.iconName==="more"&&(I.iconName="overflow_horizontal");
z.iconName==="fullscreen"&&(I.iconName="screen_full");z.iconName==="premium_standalone"&&(I.iconName="premium_standalone_cairo");_.C("enable_connect_icon_update_web")&&z.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.C("enable_connect_icon_update_web")&&z.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");v0F.has(z.iconName)&&(I.iconStyle="youtube_fill");_.C("enable_web_delhi_icons")&&(z.iconName==="playlist_add"&&
(I.iconName="bookmark"),z.iconName==="offline_pin"&&(I.iconName="arrow_down_circle",I.iconStyle="youtube_fill"),MM4.has(z.iconName)&&(I.iconName+="_updated"));z=Object.assign({},I,{iconName:(rW.prototype.mapIconTypeToStandardName.call(this,I.iconName)||I.iconName).toLowerCase()});var b;return(z=fBx(LQS,z,((b=this.urlProvider)==null?void 0:b.getUrl)||Kox,l))?z:rW.prototype.resolveIcon.call(this,I,l)};
p_4[HG]=[_.MB(aS1)];_.DzF=1;var $p=function(z,l){this.JSC$17239_commandHandler=z;this.innertubeTransportService=l};
_.m($p,Zu);$p.prototype.resolveCommand=function(z,l){var I=this,b,v,M;return _.O(function(x){return(b=_.k(z,nAu))?x.return(xz4(I,b,(v=l)==null?void 0:(M=v.form)==null?void 0:M.element)):x.return()})};
var xz4=function(z,l,I){l={profileCardContext:l.profileCardContext,profileOwnerExternalChannelId:l.profileOwnerExternalChannelId};var b=_.Mo(sJA);return _.Gv(z.innertubeTransportService,l,b).then(function(v){if(!v)throw new _.qB("GetProfileCard failed");if(v=v.popupCommand){z.JSC$17239_commandHandler.resolveCommand(v,{form:{element:I}});_.db(_.iY(),66557);v=v==null?void 0:v.clickTrackingParams;var M=_.h8();v&&M&&_.iY().graftServerVe(v,M)}})};
$p[HG]=[_.DQ,_.AY];var el=function(){};
_.m(el,Zu);el.prototype.resolveCommand=function(z){var l,I;return _.O(function(b){l=_.k(z,lI_);if(!l)return b.return();I=Number(l.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var v=$H();Gxn(v,l,0)}else Gxn($H(),l,I);_.qe(b)})};_.wW=function(){};
_.m(_.wW,Zu);
_.wW.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u;return _.O(function(Z){b=_.k(z,II_);M=(v=l.form)==null?void 0:v.element;g=(x=M)==null?void 0:x.closest("ytd-enforcement-message-view-model");if(!b||!g)return Z.return();I.allowAdsAction||(G=b.fundingChoiceInstructionPageUrl,I.allowAdsAction=new fJM(window,_.Pd(G)));var H=I.allowAdsAction;H.wallElement=g;H.allowAdsPopup.style.setProperty("display","flex","important");var y=H.scrollManager;y.originalBodyOverflow=y.JSC$10000_domHelper.JSC$9327_document_.body.style.overflow;y.JSC$10000_domHelper.JSC$9327_document_.body.style.overflow=
"hidden";H.wallElement.style.setProperty("display","none","important");FyA(H.accessibilityManager,H.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((u=I.allowAdsAction.allowAdsPopup)&&u instanceof HTMLElement)for(H=_.D(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),y=H.next();!y.done;y=H.next()){var f=_.D(y.value);y=f.next().value;f=f.next().value;u.style.setProperty(y,f)}_.qe(Z)})};
_.wW.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var A3=function(){};
_.m(A3,Zu);A3.prototype.resolveCommand=function(z){var l;return _.O(function(I){l=_.k(z,aZu);if(!l)return I.return();vp$(z);_.qe(I)})};var Wp=function(z){this.JSC$17254_commandHandler=z};
_.m(Wp,Zu);
Wp.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1){I=_.k(z,to_);if((b=I)==null||!b.text||!navigator.clipboard)return Z.return();_.RL(Z,2);return Z.yield(navigator.clipboard.writeText(I.text),4)}if(Z.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return Z.return();v=_.D(I.successActions);for(M=v.next();!M.done;M=v.next())x=M.value,l.JSC$17254_commandHandler.resolveCommand(x);return _.a3(Z,0)}_.XP(Z);if(!I.failureActions||I.failureActions.length===
0)return Z.return();g=_.D(I.failureActions);for(G=g.next();!G.done;G=g.next())u=G.value,l.JSC$17254_commandHandler.resolveCommand(u);_.qe(Z)})};
Wp[HG]=[_.DQ];var nx=function(z){this.JSC$17258_commandHandler=z};
_.m(nx,Zu);
nx.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y;return _.O(function(f){switch(f.nextAddress){case 1:b=_.k(z,bqM);if(!b)return f.return();_.RL(f,2);if(!b.imageBytes&&!b.imageUrl)throw Error("Di");if(!b.imageUrl){if(b.imageBytes){M=b.imageBytes;x=M.replace(/-/g,"+").replace(/_/g,"/");var R=XBY(x);v=_.w0(R)}f.jumpTo(4);break}return f.yield(fetch(b.imageUrl),5);case 5:return g=f.yieldResult,f.yield(g.blob(),6);case 6:G=f.yieldResult,v=_.w0(G);case 4:H=(u=l)==null?void 0:(Z=u.form)==
null?void 0:Z.element;y=document.createElement("a");nD(y,v);H.appendChild(y);y.download="";y.click();H.removeChild(y);URL.revokeObjectURL(_.hT(v));b.successCommand&&I.JSC$17258_commandHandler.resolveCommand(b.successCommand);_.a3(f,0);break;case 2:_.XP(f),b.errorCommand&&I.JSC$17258_commandHandler.resolveCommand(b.errorCommand),_.qe(f)}})};
nx[HG]=[_.DQ];var Lx=function(z){this.store=z};
_.m(Lx,Zu);Lx.prototype.resolveCommand=function(z){var l=this,I,b,v;return _.O(function(M){b=(I=_.k(z,_.gI0))==null?void 0:I.entityBatchUpdate;if(!b)return M.jumpTo(0);v=Object.assign({},b,{mutations:[].concat(_.ht(b.mutations||[]))});return M.yield(_.tm(v,l.store),0)})};var Onl=function(z){this.JSC$17265_commandHandler=z;this.feedbackDialogMap=new Map};
Onl.prototype.openDialog=function(z,l){(z=this.feedbackDialogMap.get(z))&&this.JSC$17265_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:z}},l)};
Onl[HG]=[_.DQ];var UC=new _.yH("FEEDBACK_CONTROLLER_TOKEN");var ag=new _.yH("APP_STORE_TOKEN");var VG=function(z,l){this.store=z;this.controller=l};
_.m(VG,Zu);VG.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A;return _.O(function(W){if(W.nextAddress==1){b=_.k(z,_.hf);if(M=(v=b)==null?void 0:v.contentId)for(g=_.D(((x=b)==null?void 0:x.actions)||[]),G=g.next();!G.done;G=g.next())u=G.value,g0q(I,u,M);y=(Z=l)==null?void 0:(H=Z.form)==null?void 0:H.element;return W.yield(_.uJ(y,[z,{impression:(f=l)==null?void 0:f.disableClickTracking}]).catch(function(){}),2)}R=W.yieldResult;
((F=R)==null?0:(Y=F.data)==null?0:(c=Y.feedbackResponses)==null?0:c.length)&&(V=(d=R.data.feedbackResponses[0])==null?void 0:d.followUpDialog)&&M&&(A=I.controller)!=null&&A.feedbackDialogMap.set(M,V);_.qe(W)})};
var g0q=function(z,l,I){var b=_.k(l,_.yi);if(b){b=_.D(b.commands||[]);for(var v=b.next();!v.done;v=b.next())g0q(z,v.value,I)}_.k(l,_.$K)&&z.store.dispatch(_.cU("commandEntity",R$1(I),{key:I,command:l}));_.k(l,J5_)&&z.store.dispatch(_.cU("commandEntity",R$1(I),{key:I,command:l}))};
VG[HG]=[ag,UC];var jl=function(z){this.controller=z};
_.m(jl,Zu);jl.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x;return _.O(function(g){b=_.k(z,_.eX);M=(v=b)==null?void 0:v.targetId;if(((x=b)==null?void 0:x.signal)!=="TELL_US_WHY"||!M)return g.return();I.controller.openDialog(M,l);_.qe(g)})};
jl[HG]=[UC];var J3=function(z){this.store=z};
_.m(J3,Zu);J3.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u;return _.O(function(Z){b=_.k(z,Nzf);M=(v=b)==null?void 0:v.contentId;G=(x=l)==null?void 0:(g=x.form)==null?void 0:g.element;u=_.uJ(G,[z]);M&&I.undo(M);return Z.yield(u,0)})};
J3.prototype.undo=function(z){this.store.dispatch(_.cU("commandEntity",R$1(z),{key:z,command:void 0}))};
J3[HG]=[ag];var z0=function(z){this.JSC$17280_commandHandler=z};
_.m(z0,Zu);z0.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u;return _.O(function(Z){I=_.k(z,XGM);b=I.flowStateKey;v=I.validationFailureCommand;M=I.submitValidFormCommand;x=SHp(_.b9,[b||""]);g=_.k(x,i9u);((G=g)==null?0:G.isValid)&&M&&l.JSC$17280_commandHandler.resolveCommand(M);((u=g)==null?0:u.isValid)||!v||l.JSC$17280_commandHandler.resolveCommand(v);_.qe(Z)})};
z0[HG]=[_.DQ];var le=function(z){this.innertubeTransportService=z};
_.m(le,Zu);le.prototype.resolveCommand=function(z,l){var I=this,b;return _.O(function(v){return v.yield(_.I0(I.innertubeTransportService,z,(b=l)==null?void 0:b.form).then(function(M){var x,g;l==null||(x=l.commandController)==null||(g=x.onSuccess)==null||g.call(x,z,M)},function(M){var x,g;
l==null||(x=l.commandController)==null||(g=x.onServerError)==null||g.call(x,z,M)}),0)})};
le[HG]=[_.AY];var I$=function(){};
_.m(I$,Zu);I$.prototype.resolveCommand=function(z){var l,I,b,v;return _.O(function(M){if(l=_.k(z,_.HeM)){if(I=l.gtmId)b=_.sZ("GL",""),_.If(I,b);(v=l.gtmData)&&_.bh(v)}_.qe(M)})};var be=function(z,l,I){this.innertubeTransportService=z;this.JSC$17291_actionRouter=l;this.JSC$17291_screenManager=I};
_.m(be,Zu);be.prototype.resolveCommand=function(z){var l=this,I,b;return _.O(function(v){I=_.k(z,tiA);if(!I)return v.return();b=I.command;if(!b)return v.return();l.JSC$17291_actionRouter.triggerAction("yt-insert-rich-section-action",I);return v.yield(_.I0(l.innertubeTransportService,b,{disableCache:!0}).then(function(M){z.clickTrackingParams&&(M==null?0:M.trackingParams)&&l.JSC$17291_screenManager.graftServerVe(M.trackingParams,_.ch(z.clickTrackingParams))}),0)})};
be[HG]=[_.AY,tM,_.br];ibx.bind(null,H6);var G_4=ibx.bind(null,qSj);QOH.bind(null,H6);var Nws=QOH.bind(null,qSj);TXQ.bind(null,H6);var E0q=TXQ.bind(null,qSj);var vz=function(){};
_.m(vz,Zu);
vz.prototype.resolveCommand=function(z){var l,I,b,v,M,x,g,G,u,Z;return _.O(function(H){l=_.k(z,Om0);if(!l)return H.return();b=((I=l.operations)==null?void 0:I.operations)||[];v=_.D(b);for(M=v.next();!M.done;M=v.next())if(x=M.value,x.insertItemSectionContent){var y=x.insertItemSectionContent,f=y.contents||[];y.insertByPositionInSection?G_4(y.insertByPositionInSection.sectionTargetId,f,y.insertByPositionInSection.position):y.insertByRelativePositionInSection&&y.insertByRelativePositionInSection.sectionTargetId&&y.insertByRelativePositionInSection.itemTargetId&&
Nws(y.insertByRelativePositionInSection.sectionTargetId,y.insertByRelativePositionInSection.itemTargetId,f,y.insertByRelativePositionInSection.relativePosition)}else x.replaceSection?(y=x.replaceSection,f={},y.replaceByTargetId?f=y.replaceByTargetId:y.replaceByGroupId&&(f={targetId:y.replaceByGroupId.groupId,newContent:y.replaceByGroupId.newContent,undoKey:""}),f.newContent&&QSu(f.targetId,{continuationItems:[f.newContent]})):x.removeItem?(y=x.removeItem,y.removeByTargetId&&y.sectionTargetId&&E0q(y.sectionTargetId,
y.removeByTargetId.targetIds||[])):x.removeSection&&(x.removeSection.removeByTargetId?(g=void 0,uAl(((g=x.removeSection)==null?void 0:g.removeByTargetId.targetIds)||[])):x.removeSection.removeByGroupId&&(G=void 0,uAl(((G=x.removeSection)==null?void 0:G.removeByGroupId.groupIds)||[])));Z=((u=l.operations)==null?void 0:u.scrollConfig)||{};ZnK(Z);_.qe(H)})};
var uAl=function(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next())QSu(l.value,{continuationItems:[]})},ZnK=function(z){if(z.scrollToItem){var l=z.scrollToItem.item||{},I=l.itemTargetId;
l=l.sectionTargetId;if(I&&l){var b=document.querySelector("[data-target-id="+l+"]"),v=b==null?void 0:b.querySelector("[data-target-id="+I+"]");b&&v&&setTimeout(function(){var M=v.offsetTop-b.offsetTop,x;if(((x=z.scrollToItem)==null?void 0:x.scrollPosition)==="SCROLL_POSITION_CENTER")M-=b.offsetHeight/2,M+=v.offsetHeight/2;else{var g;((g=z.scrollToItem)==null?void 0:g.scrollPosition)==="SCROLL_POSITION_END"&&(M-=b.offsetHeight,M+=v.offsetHeight)}b.scroll({top:M,behavior:"smooth"})},100)}}};var M$=new _.yH("CLIENT_NAME_TOKEN");var Hn4=new _.yH("DEFAULT_STORE_EXPIRATION_TOKEN");var tvG=new _.yH("CLIENT_LOCATION_SERVICE_TOKEN");var pT=function(z,l,I){this.clientName=z||_.sZ("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=l||_.PF.getInstance();this.JSC$17319_commandHandler=I||_.KE.instance};
_.m(pT,Zu);pT.prototype.resolveCommand=function(z){var l=this,I,b;return _.O(function(v){b=(I=_.k(z,s5M))==null?void 0:I.onComplete;l.clientLocationService.clearLocationPlayabilityToken(l.clientName);b&&l.JSC$17319_commandHandler.resolveCommand(b);_.qe(v)})};
pT[HG]=[M$,tvG,_.DQ];var Dg=function(z){this.innertubeTransportService=z};
_.m(Dg,Zu);Dg.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x;return _.O(function(g){M=(b=l)==null?void 0:(v=b.form)==null?void 0:v.element;return g.yield(_.I0(I.innertubeTransportService,z,(x=l)==null?void 0:x.form).then(function(G){wwQ(M,new CustomEvent("yt-service-request-completed"),{data:G},_.sZ("openPopupConfig"))}),0)})};
Dg[HG]=[_.AY];var xX=function(){};
_.m(xX,Zu);xX.prototype.resolveCommand=function(z){var l,I;return _.O(function(b){l=_.k(z,Tp_);I=document.querySelector("mini-app-container-view-model");if(!l||!I)return b.return();l.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.qe(b)})};var Oy=function(){};
_.m(Oy,Zu);Oy.prototype.resolveCommand=function(z){var l,I,b,v,M,x,g;return _.O(function(G){l=_.k(z,gY_);if((I=l)==null||!I.paramKeys)return G.return();b=l.paramKeys;v=_.UA(window.location.href);M=_.D(b);for(x=M.next();!x.done;x=M.next())g=x.value,v.JSC$10032_queryData_.remove(g);window.history.replaceState(window.history.state,document.title,v.toString());_.qe(G)})};var ypc=function(){this.dropdownMap=new Map};_.f4S=new _.yH("DROPDOWN_CONTROLLER_TOKEN");var gJ=function(z){this.controller=z};
_.m(gJ,Zu);gJ.prototype.resolveCommand=function(z){var l=this,I,b,v,M;return _.O(function(x){I=_.k(z,e6z);if(!I)return x.return();b=I;v=b.dropdownId;M=b.selectedOptionIndex;if(v===void 0||M===void 0)return x.return();var g=l.controller.dropdownMap.get(v);g&&g(M);_.qe(x)})};
gJ[HG]=[_.f4S];var G0=function(z){this.controller=z};
_.m(G0,Zu);G0.prototype.resolveCommand=function(z){var l=this,I;return _.O(function(b){return(I=_.k(z,zUA))?b.yield(l.controller.closeDialog(),0):b.return()})};
G0[HG]=[_.bL];var N$=function(z){this.controller=z};
_.m(N$,Zu);N$.prototype.resolveCommand=function(z){var l=this,I,b;return _.O(function(v){I=_.k(z,obu);if(!I)return v.return();var M,x=I.panelIdentifier||((M=I.identifier)==null?void 0:M.tag);if(!x)throw Error("Ei");return(b=x)?v.yield(l.controller.hidePanel(b),0):v.jumpTo(0)})};
N$[HG]=[_.lL];var Ey=function(z){this.controller=z};
_.m(Ey,Zu);Ey.prototype.resolveCommand=function(z){var l=this,I;return _.O(function(b){return(I=_.k(z,yCA))?b.yield(l.controller.closeSheet(),0):b.return()})};
Ey[HG]=[_.In];var ue=function(z,l){this.innertubeTransportService=z;this.controller=l};
_.m(ue,Zu);ue.prototype.resolveCommand=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return I=_.k(z,PXj),(b=I)!=null&&b.panelId?x.yield(l.controller.getReloadContinuation(I.panelId),2):x.return();if(x.nextAddress!=3)return(v=x.yieldResult)?x.yield(_.I0(l.innertubeTransportService,z,{continuation:v}),3):x.return();M=x.yieldResult;return x.yield(l.controller.updatePanel(I.panelId,M.content,!1),0)})};
ue[HG]=[_.AY,_.lL];var Zg=function(z,l,I){this.innertubeTransportService=z;this.JSC$17359_screenManager=l;this.JSC$17359_commandHandler=I};
_.m(Zg,Zu);
Zg.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1){I=_.k(z,_.q4w);if(!I)return G.return();if(I.commands)for(b=_.D(I.commands),v=b.next();!v.done;v=b.next())M=v.value,l.JSC$17359_commandHandler.resolveCommand(M,{disableClickTracking:!0});x=_.ch(z.clickTrackingParams);_.db(l.JSC$17359_screenManager,21760,x,{layer:7,parentLayer:0});return G.yield(_.I0(l.innertubeTransportService,z),2)}g=G.yieldResult;if(!g)return G.return();l.JSC$17359_screenManager.graftServerVe(g.trackingParams,x,
7);_.qe(G)})};
Zg[HG]=[_.AY,_.br,_.DQ];var Hz=new _.yH("PANEL_LOADING_STRATEGY_TOKEN");var yE=function(z,l){this.controller=z;this.panelLoadingStrategy=l};
_.m(yE,Zu);
yE.prototype.resolveCommand=function(z,l){var I=this,b,v,M;return _.O(function(x){b=_.k(z,CV_);if((v=b)==null||!v.panelLoadingStrategy)return x.return();M=function(g){var G,u,Z,H,y,f,R,F,Y,c;return _.O(function(d){u=_.k((G=g.dialogViewModel)==null?void 0:G.header,wZ_);Z={viewModel:g.dialogViewModel};H={};if(R=_.C("web_enable_dialog_header_label")?(y=u)==null?void 0:(f=y.headline)==null?void 0:f.content:void 0)H.ariaLabel=R;b.dismissOnBackgroundTap===!1&&(H.isModal=!0);return g.dialogViewModel?d.yield(I.controller.openDialog(Z,
(c=(F=l)==null?void 0:(Y=F.form)==null?void 0:Y.element)!=null?c:document.body,H),0):d.return()})};
return x.yield(I.panelLoadingStrategy.execute({command:z,data:b.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:4}}),0)})};
yE[HG]=[_.bL,Hz];var fT=function(z,l,I){this.innertubeTransportService=z;this.controller=l;this.JSC$17379_screenManager=I};
_.m(fT,Zu);
fT.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y,f,R;return _.O(function(F){switch(F.nextAddress){case 1:b=_.k(z,_.SK);if(!b)return F.return();var Y,c=b.panelIdentifier||((Y=b.identifier)==null?void 0:Y.tag);if(!c)throw Error("Ei");v=c;return F.yield(I.controller.isVisible(v,!0),2);case 2:if((M=F.yieldResult)&&b.blockIfPanelOpen)return F.return();G=(g=(x=I.controller).getPanelContent)==null?void 0:g.call(x,v);if(!(Y=G))if(b){var d;Y=((d=b.globalConfiguration)==null?void 0:
d.initialState)||b.engagementPanel;if(d=!Y)d=!!(b==null?0:(c=b.engagementPanelPresentationConfigs)==null?0:c.engagementPanelPopupPresentationConfig);d&&(Y=_.cBp(b.panelIdentifier,b.identifier))}else Y=void 0;u=Y;Z=b.engagementPanelPresentationConfigs;H=b.engagementPanelExtras;return F.yield(I.controller.showPanel(v,u,Z,H,(y=l)==null?void 0:(f=y.form)==null?void 0:f.element),3);case 3:if(!b.globalConfiguration){F.jumpTo(0);break}_.db(I.JSC$17379_screenManager,32633);return F.yield(_.I0(I.innertubeTransportService,
z),5);case 5:return R=F.yieldResult,I.JSC$17379_screenManager.graftServerVe(R.trackingParams),F.yield(I.controller.updatePanel(v,R.content,!0,H,void 0,R.updatePanelContinuationData),0)}})};
fT[HG]=[_.AY,_.lL,_.br];var CT=function(z,l){this.controller=z;this.panelLoadingStrategy=l};
_.m(CT,Zu);CT.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G;return _.O(function(u){b=_.k(z,_.S9);if((v=b)==null||!v.panelLoadingStrategy)return u.return();g=Cu8(I.controller,(M=l)==null?void 0:(x=M.form)==null?void 0:x.element);G=function(Z){return _.O(function(H){return Z.sheetViewModel?H.yield(I.controller.openSheet({viewModel:Z.sheetViewModel},g),0):H.return()})};
return u.yield(I.panelLoadingStrategy.execute({command:z,data:b.panelLoadingStrategy,renderFn:G,createScreenConfig:{layer:0}}),0)})};
CT[HG]=[_.In,Hz];var kX=function(z,l){this.controller=z;this.JSC$17386_commandHandler=l};
_.m(kX,Zu);kX.prototype.resolveCommand=function(z,l){var I=this,b,v,M;return _.O(function(x){if(x.nextAddress==1){b=_.k(z,$Yu);var g=_.k(b.showCommand,_.SK),G,u,Z=(u=g==null?void 0:g.panelIdentifier)!=null?u:g==null?void 0:(G=g.identifier)==null?void 0:G.tag;if(!Z)throw Error("Fi");v=Z;return x.yield(I.controller.isVisible(v),2)}return(M=x.yieldResult)?x.yield(I.controller.hidePanel(v),0):x.yield(I.JSC$17386_commandHandler.resolveCommand(b.showCommand,l),0)})};
kX[HG]=[_.lL,_.DQ];var mS=function(z,l,I){this.innertubeTransportService=z;this.controller=l;this.JSC$17389_screenManager=I};
_.m(mS,Zu);
mS.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH;return _.O(function(Gk){switch(Gk.nextAddress){case 1:return b=I=_.k(z,emA),v=b.targetPanelIdentifier,M=b.contentSourcePanelIdentifier,x=b.globalConfiguration,((g=v)==null?0:g.tag)&&((G=M)==null?0:G.tag)?x?Gk.yield(l.controller.showPanel(v.tag,_.cBp(v.tag,v),void 0,void 0,void 0),5):Gk.yield((y=(H=l.controller).getPanel)==null?void 0:y.call(H,M.tag),4):Gk.return();case 4:f=Gk.yieldResult;u=(R=f)==null?
void 0:(Y=(F=R).getPanelContent)==null?void 0:Y.call(F);Gk.jumpTo(3);break;case 5:return Gk.yield(_.I0(l.innertubeTransportService,z),6);case 6:c=Gk.yieldResult,((d=c)==null?0:d.trackingParams)&&l.JSC$17389_screenManager.graftServerVe(c.trackingParams),u=(V=c)==null?void 0:V.content,Z=(A=c)==null?void 0:A.updatePanelContinuationData;case 3:if(L=(W=u)==null?void 0:W.engagementPanelSectionListRenderer)return Gk.yield(l.controller.showPanel(v.tag,void 0,void 0,void 0,void 0,{content:L.content,secondaryHeaderContent:(lH=
L.header)!=null?lH:{},targetId:L.targetId},Z),0);Gk.jumpTo(0)}})};
mS[HG]=[_.AY,_.lL,_.br];var KT=function(){};
_.m(KT,Zu);KT.prototype.resolveCommand=function(z){var l,I,b;return _.O(function(v){if(v.nextAddress==1)return(l=_.k(z,ajI))?v.yield(_.R0(),2):v.return();I=v.yieldResult;if(!I)return v.return();var M=I,x=(b=l)==null?void 0:b.languageCode,g;(M==null?0:(g=M.isReady)==null?0:g.call(M))&&(x=Sn$(M,x))&&M.setAudioTrack(x);_.qe(v)})};var tV=function(){};
_.m(tV,Zu);var k_y=function(z){var l;return _.O(function(I){l=_.sZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;z.JSC$17398_mainAppPlayer=new Kf(l);document.addEventListener("yt-page-data-updated",z.JSC$17398_pauseOnNavigation.bind(z));_.qe(I)})};
tV.prototype.JSC$17398_pauseOnNavigation=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1)return l=z.JSC$17398_mainAppPlayer,b.yield(l.api,2);I=b.yieldResult;I.pauseVideo();_.qe(b)})};
var RI1=function(z,l,I){var b;return _.O(function(v){b=z.JSC$17398_mainAppPlayer;return v.yield(b.loadVideoWithPlayerVars({videoId:l,audio_only:"1",player_params:I}),0)})};
tV.prototype.pauseVideo=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1)return l=z.JSC$17398_mainAppPlayer,b.yield(l.api,2);I=b.yieldResult;I.pauseVideo();_.qe(b)})};
tV.prototype.playVideo=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1)return l=z.JSC$17398_mainAppPlayer,b.yield(l.api,2);I=b.yieldResult;I.playVideo();_.qe(b)})};
var mzc=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return l=z.JSC$17398_mainAppPlayer,b.yield(l.api,2);I=b.yieldResult;I.mute();_.qe(b)})},KAK=function(z){var l,I;
return _.O(function(b){if(b.nextAddress==1)return l=z.JSC$17398_mainAppPlayer,b.yield(l.api,2);I=b.yieldResult;I.unMute();_.qe(b)})},tMq=function(z,l){return _.O(function(I){switch(I.nextAddress){case 1:switch(l){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return I.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return I.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return I.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return I.jumpTo(5)}I.jumpTo(0);break;case 2:return I.yield(z.playVideo(),7);case 7:I.jumpTo(0);break;case 3:return I.yield(z.pauseVideo(),8);case 8:I.jumpTo(0);break;case 4:return I.yield(mzc(z),9);case 9:I.jumpTo(0);break;case 5:return I.yield(KAK(z),10);case 10:I.jumpTo(0)}})};
tV.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H,y;return _.O(function(f){return f.nextAddress==1?(I=_.k(z,qhA),((b=I)==null?0:b.newPlaybackParams)||((v=I)==null?0:v.controlAction)?l.JSC$17398_mainAppPlayer?f.jumpTo(2):f.yield(k_y(l),2):f.return()):((M=I)==null?0:M.newPlaybackParams)?(G=(x=I)==null?void 0:(g=x.newPlaybackParams)==null?void 0:g.externalVideoId,y=(H=(u=I)==null?void 0:(Z=u.newPlaybackParams)==null?void 0:Z.playerParams)!=null?H:"",G?f.yield(RI1(l,G,y),0):f.return()):
f.yield(tMq(l,I.controlAction),0)})};var Bz=function(z){this.JSC$17405_commandHandler=z};
_.m(Bz,Zu);
Bz.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return(I=_.k(z,VHu))?G.yield(_.R0(),2):G.return();b=G.yieldResult;if(!b)return G.return();var u=b,Z=(v=I)==null?void 0:v.languageCode,H=(M=I)==null?void 0:M.isAutoTranslated;u.getVideoData&&_.oeu(u).length&&((Z=h2Q(u,Z,H))?u.setOption("captions","track",Z):(u.setOption("captions","stickyLoading",{}),u.setOption("captions","track",{})));x=b.isSubtitlesOn()?_.mY("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.mY("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");g=_.Dk(x);l.JSC$17405_commandHandler.resolveCommand(g);_.qe(G)})};
Bz[HG]=[_.DQ];var q$=function(z,l){this.shortsPlayerPromise=z;this.JSC$17409_commandHandler=l};
_.m(q$,Zu);
q$.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1)return(I=_.k(z,Zw_))?Z.yield(l.shortsPlayerPromise,2):Z.return();b=Z.yieldResult;var H=sOQ(b);H!=null&&H.length||(b.loadModule("captions"),H=sOQ(b));v=H;if((M=v)==null||!M.length)return x=_.mY("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),g=_.Dk(x),l.JSC$17409_commandHandler.resolveCommand(g),Z.return();b.toggleSubtitles();G=b.isSubtitlesOn()?_.mY("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.mY("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");u=_.Dk(G);l.JSC$17409_commandHandler.resolveCommand(u);_.qe(Z)})};
q$[HG]=[_.DnI,_.DQ];var ie=function(z){this.JSC$17412_actionRouter=z;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(l,I){l.triggerAction("yt-dismiss-shopping-timely-shelf-action",I)}]])};
_.m(ie,Zu);ie.prototype.resolveCommand=function(z){var l=this,I,b,v;return _.O(function(M){I=_.k(z,li_);if((b=I)==null||!b.overlayId)return M.return();v=l.dismissPlayerOverlayActions.get(I.overlayId);if(!v)throw Error("Gi`"+I.overlayId);v(l.JSC$17412_actionRouter,I);_.qe(M)})};
ie[HG]=[tM];var FR=function(z){this.JSC$17416_playerPromise=z};
_.m(FR,Zu);FR.prototype.resolveCommand=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return(I=_.k(z,spM))?x.yield(l.JSC$17416_playerPromise,2):x.return();b=x.yieldResult;v=b.getVideoData().video_id;I.videoId===v&&(M=Number(I.offsetFromVideoStartMilliseconds),M>=0&&b.seekTo(M/1E3));_.qe(x)})};
FR[HG]=[_.HU];var BwC=_.Hg("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),QE=function(z){this.store=z};
_.m(QE,Zu);
var X_0=function(z){var l,I,b,v;return _.O(function(M){if(M.nextAddress==1)return l=_.sZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.sZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,b=l||I,z.JSC$17420_mainAppPlayer=new Kf(b),M.yield(z.JSC$17420_mainAppPlayer.api,2);v=M.yieldResult;v.addEventListener("onStateChange",z.JSC$17420_playerStateChangeListener.bind(z));document.addEventListener("yt-page-data-updated",z.JSC$17420_pauseOnNavigation.bind(z));window.addEventListener("state-navigatestart",
z.JSC$17420_pauseOnNavigation.bind(z));_.qe(M)})};
QE.prototype.JSC$17420_playerStateChangeListener=function(z){switch(z){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"}qjq(this)};
var qjq=function(z){z.store.dispatch(_.cU("sfvAudioItemCurrentlyPlayingEntity",BwC,{key:BwC,externalVideoId:z.externalVideoId,sfvAudioItemPlaybackState:z.playbackState,nowPlayingEntityValue:z.nowPlayingEntityValue}))};
QE.prototype.JSC$17420_pauseOnNavigation=function(){var z=this,l,I,b,v;return _.O(function(M){if(M.nextAddress==1){if(!z.JSC$17420_mainAppPlayer){var x=new _.qB("Error: mainAppPlayer is unavailable",z.JSC$17420_mainAppPlayer);_.dE(x);return M.return()}return M.yield(z.JSC$17420_mainAppPlayer.api,2)}l=M.yieldResult;b=(I=l)==null?void 0:I.getPlayerState();b!==1||(v=l)!=null&&v.pauseVideo();_.qe(M)})};
QE.prototype.playVideo=function(z,l,I){var b=this,v,M;return _.O(function(x){if(x.nextAddress==1)return x.yield((v=b.JSC$17420_mainAppPlayer)==null?void 0:v.api,2);M=x.yieldResult;if(!b.JSC$17420_mainAppPlayer||!M){var g=new _.qB("Error: mainAppPlayer is unavailable",b.JSC$17420_mainAppPlayer);_.dE(g);return x.return()}return x.yield(b.JSC$17420_mainAppPlayer.loadVideoWithPlayerVars({videoId:b.externalVideoId,audio_only:"1",start:z/1E3,end:z/1E3+l,player_params:I}),0)})};
QE.prototype.pauseVideo=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1){if(!z.JSC$17420_mainAppPlayer){var v=new _.qB("Error: mainAppPlayer is unavailable",z.JSC$17420_mainAppPlayer);_.dE(v);return b.return()}return b.yield(z.JSC$17420_mainAppPlayer.api,2)}l=b.yieldResult;(I=l)==null||I.pauseVideo();_.qe(b)})};
QE.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A;return _.O(function(W){if(W.nextAddress==1)return I=_.k(z,GW_),v=(b=I)==null?void 0:b.nowPlayingEntityValue,x=(M=I)==null?void 0:M.externalVideoId,H=Number((Z=(g=I)==null?void 0:(G=g.defaultStartPoints)==null?void 0:(u=G[0])==null?void 0:u.offsetMs)!=null?Z:"0"),c=Number((Y=(y=I)==null?void 0:(f=y.defaultStartPoints)==null?void 0:(R=f[0])==null?void 0:(F=R.duration)==null?void 0:F.seconds)!=null?Y:"15"),A=(V=
(d=I)==null?void 0:d.playerParams)!=null?V:"",v&&x?l.JSC$17420_mainAppPlayer?W.jumpTo(2):W.yield(X_0(l),2):W.return();if(W.nextAddress!=6){if(l.nowPlayingEntityValue&&v===l.nowPlayingEntityValue)return l.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?W.yield(l.pauseVideo(),0):W.yield(l.playVideo(H,c,A),0);l.externalVideoId=x;l.nowPlayingEntityValue=v;l.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return W.yield(l.playVideo(H,c,A),6)}qjq(l);return W.jumpTo(0)})};
QE[HG]=[gx];var YX=function(z){this.JSC$17438_commandHandler=z};
_.m(YX,Zu);YX.prototype.resolveCommand=function(z,l){var I=this,b,v,M;return _.O(function(x){if(x.nextAddress==1)return(b=_.k(z,j5z))?x.yield(_.R0(),2):x.return();v=x.yieldResult;if(!v)return x.return();(M=rBf(v))&&I.JSC$17438_commandHandler.resolveCommand(M,l);_.qe(x)})};
YX[HG]=[_.DQ];var T0=function(z){this.JSC$17444_commandHandler=z};
_.m(T0,Zu);T0.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return(b=_.k(z,Jv_))?G.yield(_.R0(),2):G.return();v=G.yieldResult;if(!v)return G.return();(M=Wot(v))?I.JSC$17444_commandHandler.resolveCommand(M,l):(x=_.mY("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),g=_.Dk(x),I.JSC$17444_commandHandler.resolveCommand(g));_.qe(G)})};
T0[HG]=[_.DQ];var cz=function(z){this.JSC$17447_playerPromise=z};
_.m(cz,Zu);cz.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x;return _.O(function(g){if(g.nextAddress==1){I=_.k(z,ri_);if(!I)return g.return();b=I.overlayRenderer;return b?(v=_.k(b,M$_))?g.yield(l.JSC$17447_playerPromise,3):g.jumpTo(0):g.return()}M=g.yieldResult;M.renderChapterSeekingAnimation(1,_.ID(v.text),(x=v.icon)==null?void 0:x.iconType);_.qe(g)})};
cz[HG]=[_.HU];var SI=function(z){this.store=z};
_.m(SI,Zu);
SI.prototype.resolveCommand=function(z){var l=this,I,b,v;return _.O(function(M){if(M.nextAddress==1){I=_.k(z,imw);if(!I)return M.return();b="";(v=l.store.getState().collabInviteLink)&&I.id===v.playlistId?b=v.inviteLinkURL:I.shortUrl&&(b=I.shortUrl);return b?M.yield(navigator.clipboard.writeText(b),3):M.jumpTo(0)}var x={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.mY("COPY_LINK_SUCCESS_TOAST")}}}}};_.pG().resolve(_.DQ).resolveCommand(x);_.qe(M)})};
SI[HG]=[ag];var dJ=function(z,l){this.innertubeTransportService=z;this.JSC$17457_commandHandler=l};
_.m(dJ,Zu);dJ.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y;return _.O(function(f){if(f.nextAddress==1)return(b=_.k(z,_.GW))?f.yield(_.I0(I.innertubeTransportService,z,(v=l)==null?void 0:v.form),2):f.return();(M=f.yieldResult)&&M.errorMetadata&&(x=M,g=_.Dk(x.error.message),I.JSC$17457_commandHandler.resolveCommand(g));G=M;if((u=G)==null?0:u.actions)for(Z=_.D(G.actions),H=Z.next();!H.done;H=Z.next())y=H.value,I.JSC$17457_commandHandler.resolveCommand(y);_.qe(f)})};
dJ[HG]=[_.AY,_.DQ];var o$=function(){};
_.m(o$,Zu);o$.prototype.resolveCommand=function(z){var l;return _.O(function(I){l=_.k(z,f9p);if(!l)return I.return();(new Mzp(l)).show();_.qe(I)})};_.Pz=new _.yH("PLAYLIST_EDIT_CONTROLLER_TOKEN");var hV=function(z,l,I,b){this.store=z;this.innertubeTransportService=l;this.controller=I;this.JSC$17465_commandHandler=b};
_.m(hV,Zu);
hV.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH,Gk,uH,Xt,R1,H7;return _.O(function(P7){if(P7.nextAddress==1){b=_.k(z,_.M1);if(!b)return P7.return();if(b.clientActions){v=_.D(b.clientActions);for(M=v.next();!M.done;M=v.next())x=M.value,I.JSC$17465_commandHandler.resolveCommand(x);var o1,z_=l==null?void 0:(o1=l.form)==null?void 0:o1.element;z_&&_.gC(z_,"yt-dismissible-item-action",b.clientActions)}return P7.yield(_.I0(I.innertubeTransportService,z,(g=
l)==null?void 0:g.form),2)}if(G=P7.yieldResult)G.errorMetadata?(u=G,Z=_.Dk(u.error.message),I.JSC$17465_commandHandler.resolveCommand(Z),"error"in G&&((H=l)==null?0:(y=H.commandController)==null?0:y.onServerError)&&((f=l)==null||(R=f.commandController)==null||R.onServerError(z,G))):(F=l)==null||(Y=F.commandController)==null||(d=(c=Y).onSuccess)==null||d.call(c,z,G);V=G;((A=V)==null?0:A.collaborationInviteLink)&&b.playlistId&&(_.C("web_enable_invite_collaborators_link")||_.C("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.GZ({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:b.playlistId,inviteLinkUrl:V.collaborationInviteLink}}));((W=V)==null?0:W.redirectEndpoint)&&I.JSC$17465_commandHandler.resolveCommand(V.redirectEndpoint);((L=V)==null?0:(lH=L.newHeader)==null?0:lH.playlistHeaderRenderer)?in8(I.controller,V.newHeader.playlistHeaderRenderer):((Gk=V)==null?0:(uH=Gk.newHeader)==null?0:uH.musicEditablePlaylistDetailHeaderRenderer)&&in8(I.controller,V.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((Xt=V)==null?0:(R1=Xt.playlistEditResults)==null?0:(H7=R1[0])==null?0:H7.playlistEditVideoAddedResultData)&&((z_=I.controller.playlistVideoListElement)==null||z_.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:V.playlistEditResults[0].playlistEditVideoAddedResultData})));_.qe(P7)})};
hV[HG]=[ag,_.AY,_.Pz,_.DQ];var sy=function(z,l){this.controller=z;this.JSC$17475_commandHandler=l};
_.m(sy,Zu);sy.prototype.resolveCommand=function(z,l){var I=this,b,v,M;return _.O(function(x){b=_.k(z,F3_);I.controller.showRefreshPill&&((v=b)==null?0:v.command)&&(I.JSC$17475_commandHandler.resolveCommand((M=b)==null?void 0:M.command,l),I.controller.showRefreshPill=!1);_.qe(x)})};
sy[HG]=[_.oB,_.DQ];var rJ=function(z,l){this.store=z;this.JSC$17479_commandHandler=l||_.KE.instance};
_.m(rJ,Zu);rJ.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y;return _.O(function(f){b=_.k(z,eNn);v=I.store.getState().radioButtonGroup;if((M=b)==null?0:M.command)I.JSC$17479_commandHandler.resolveCommand((x=b)==null?void 0:x.command,l);else if(v&&((g=b)==null?void 0:g.formId)===v.currentFormId)for(G=Object.values(v.commandsMap),u=_.D(G),Z=u.next();!Z.done;Z=u.next())H=Z.value,(y=_.Wh(H))&&I.JSC$17479_commandHandler.resolveCommand(y,l);_.qe(f)})};
rJ[HG]=[_.G$];var $X=new _.yH("USER_PREFS");var eI=function(z){this.JSC$17484_prefCookie=z};
_.m(eI,Zu);eI.prototype.resolveCommand=function(z){var l=this,I;return _.O(function(b){(I=_.k(z,gZw))&&typeof I.useListView==="boolean"&&(_.XG(0,155,I.useListView),l.JSC$17484_prefCookie.save());_.qe(b)})};
eI[HG]=[$X];var wJ=function(z){this.JSC$17488_prefCookie=z};
_.m(wJ,Zu);wJ.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x;return _.O(function(g){I=_.k(z,kpz);if((b=I)==null||!b.gl)return g.return();v=I.gl;M={persist_gl:"1",gl:v};l.JSC$17488_prefCookie.set("gl",v);l.JSC$17488_prefCookie.save();x=pQu(M);_.z9(x);_.qe(g)})};
wJ[HG]=[$X];var AV=function(z){this.JSC$17492_prefCookie=z};
_.m(AV,Zu);AV.prototype.resolveCommand=function(z){var l=this,I,b;return _.O(function(v){I=_.k(z,Yhz);if(!I)return v.return();b=!1;I.flagNum&&typeof I.value==="boolean"?(_.XG(0,I.flagNum,I.value),b=!0):I.key&&typeof I.stringValue==="string"&&(l.JSC$17492_prefCookie.set(I.key,I.stringValue),b=!0);b&&l.JSC$17492_prefCookie.save();_.qe(v)})};
AV[HG]=[$X];var Wz=new _.yH("PREF_STORAGE_PROMISE_TOKEN");var nT=function(z){this.JSC$17496_prefStoragePromise=z};
_.m(nT,Zu);nT.prototype.resolveCommand=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1)return(I=_.k(z,cJ_))?v.yield(l.JSC$17496_prefStoragePromise,2):v.return();b=v.yieldResult;return b===void 0||I.key===void 0||I.value===void 0?v.return():v.yield(b.set(I.key,I.value),0)})};
nT[HG]=[Wz];var FA8=function(z){this.innertubeTransportService=z};
_.m(FA8,Zu);FA8.prototype.resolveCommand=function(z,l){var I=this,b,v;return _.O(function(M){(b=_.k(z,_.SEj))&&b&&b.isFirstRequest&&(_.hH("search_overview_answer"),_.sK("so_rq",void 0,"search_overview_answer"));return M.yield(_.I0(I.innertubeTransportService,z,(v=l)==null?void 0:v.form),0)})};
FA8[HG]=[_.AY];var Q_F=function(){};
_.m(Q_F,Zu);
Q_F.prototype.resolveCommand=function(z){var l,I,b,v,M,x,g,G,u;return _.O(function(Z){l=_.k(z,hUz);if((I=l)==null?0:I.sectionIdentifier){if(l.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(v=(b=document.getElementsByTagName(l.sectionIdentifier))==null?void 0:b.item(0))v.scrollIntoView({behavior:"smooth"}),(M=jeH(v))&&M.focus({preventScroll:!0});return Z.return()}x=document.querySelector("[section-identifier="+l.sectionIdentifier+"]");g=document.querySelector("[section-identifier="+l.referenceSectionIdentifier+
"]");if(!x)return Z.return();G=l.verticalScrollOffsetDp?l.verticalScrollOffsetDp:0;g&&(G-=g.offsetTop);window.scrollTo({top:x.offsetTop+G,behavior:"smooth"});(u=jeH(x))&&u.focus({preventScroll:!0})}_.qe(Z)})};var LT=function(z){this.JSC$17508_commandHandler=z};
_.m(LT,Zu);
LT.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G;return _.O(function(u){if(u.nextAddress==1){I=_.k(z,vT_);if(!I||!I.imageBytes||!navigator.clipboard)return u.return();if(I.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.dE(Error("Ii")),u.return();_.RL(u,2);v=(b=I)==null?void 0:b.imageBytes;M=v.replace(/-/g,"+").replace(/_/g,"/");x=XBY(M);g={};G=[new ClipboardItem((g[x.type]=x,g))];return u.yield(navigator.clipboard.write(G),4)}if(u.nextAddress!=2)return I.successCommand&&
l.JSC$17508_commandHandler.resolveCommand(I.successCommand),_.a3(u,0);_.XP(u);I.errorCommand&&l.JSC$17508_commandHandler.resolveCommand(I.errorCommand);_.qe(u)})};
LT[HG]=[_.DQ];var Uy=function(z,l){this.innertubeTransportService=z;this.JSC$17512_commandHandler=l};
_.m(Uy,Zu);Uy.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return(b=_.k(z,MC_))?G.yield(_.I0(I.innertubeTransportService,z,(v=l)==null?void 0:v.form),2):G.return();(M=G.yieldResult)&&M.errorMetadata&&b.onFailureCommand&&I.JSC$17512_commandHandler.resolveCommand(b.onFailureCommand);x=M;((g=x)==null?0:g.shareCommand)&&I.JSC$17512_commandHandler.resolveCommand(x.shareCommand,l);_.qe(G)})};
Uy[HG]=[_.AY,_.DQ];var a$=function(){};
_.m(a$,Zu);a$.prototype.resolveCommand=function(z){var l,I;return _.O(function(b){l=_.k(z,XHj);if(!l||!navigator.share)return b.return();I={url:l.url};try{return b.return(navigator.share(I))}catch(v){}_.qe(b)})};var VE=function(){};
_.m(VE,Zu);VE.prototype.resolveCommand=function(){return _.O(function(z){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.qe(z)})};var jI=function(z){this.JSC$17522_navigationConfirmationService=z};
_.m(jI,Zu);jI.prototype.resolveCommand=function(){var z=this;return _.O(function(l){z.JSC$17522_navigationConfirmationService.cancelPendingNavigation();_.qe(l)})};
jI[HG]=[nf];var JV=function(z){this.JSC$17525_screenManager=z};
_.m(JV,Zu);JV.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u;return _.O(function(Z){v=(b=l.form)==null?void 0:b.event;x=(M=l.form)==null?void 0:M.element;if(!v)throw new _.qB("Event not passed in when resolving command");g=_.D(v.composedPath());for(G=g.next();!G.done;G=g.next())if(u=G.value,u.tagName==="YT-COPY-LINK-RENDERER")return u.copyUrlToClipboard(),x&&_.JN(I.JSC$17525_screenManager,x),Z.return();_.qe(Z)})};
JV[HG]=[_.br];var zd=function(){this.JSC$17529_miniAppClientDataProvider=_.pG().resolve(_.Cx)};
_.m(zd,Zu);zd.prototype.resolveCommand=function(){var z=this,l,I;return _.O(function(b){if(z.JSC$17529_miniAppClientDataProvider.clientData.has("video_id")){var v=z.JSC$17529_miniAppClientDataProvider,M=v.clientData.get("video_id");M&&v.clientData.delete("video_id");l="https://youtube.com/watch?v="+M;I=_.r0(l);if(I===void 0)throw Error("Ji`"+l);_.zg(window,I)}_.qe(b)})};var lF=function(){};
_.m(lF,Zu);lF.prototype.resolveCommand=function(){return _.O(function(z){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.qe(z)})};var Io=function(){};
_.m(Io,Zu);Io.prototype.resolveCommand=function(){var z;return _.O(function(l){if(l.nextAddress==1)return l.yield(_.T7k(window.document.documentElement),2);(z=document.querySelector("mini-app-container-view-model iframe"))&&z.focus();_.qe(l)})};var bF=function(z){this.JSC$17536_navigationConfirmationService=z};
_.m(bF,Zu);
bF.prototype.resolveCommand=function(){var z=this;return _.O(function(l){var I=z.JSC$17536_navigationConfirmationService,b=_.pG().resolve(_.Va),v;if(((v=I.navigateParams)==null?void 0:v.data)!==void 0){var M;_.xUu(b,I.navigateParams.endpoint,I.navigateParams.data,(M=I.navigateParams.navigationType)!=null?M:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(b.navigate(I.navigateParams.endpoint,I.navigateParams.reload,
I.navigateParams.params,I.navigateParams.tempData,I.navigateParams.requestType,I.navigateParams.createScreenConfig,!0),I.navigateParams=void 0,I.customConfirmationCommand=void 0);_.qe(l)})};
bF[HG]=[nf];var vw=function(){};
_.m(vw,Zu);vw.prototype.resolveCommand=function(){return _.O(function(z){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.qe(z)})};var MV=function(z){this.JSC$17541_prefStorage=z};
_.m(MV,Zu);MV.prototype.resolveCommand=function(){var z=this,l,I;return _.O(function(b){switch(b.nextAddress){case 1:return b.yield(z.JSC$17541_prefStorage,2);case 2:return(l=b.yieldResult)?b.yield(l.set("sfvle",!1),3):b.return();case 3:return b.yield(l.set("sfvles",!0),4);case 4:I=_.Bu(),_.XG(0,203,!1),_.XG(0,204,!0),I.save(),_.qe(b)}})};
MV[HG]=[Wz];var p3=function(z){this.JSC$17544_prefStorage=z};
_.m(p3,Zu);p3.prototype.resolveCommand=function(){var z=this,l,I;return _.O(function(b){switch(b.nextAddress){case 1:return b.yield(z.JSC$17544_prefStorage,2);case 2:return(l=b.yieldResult)?b.yield(l.set("sfvle",!0),3):b.return();case 3:return b.yield(l.set("sfvles",!0),4);case 4:I=_.Bu(),_.XG(0,203,!0),_.XG(0,204,!0),I.save(),_.qe(b)}})};
p3[HG]=[Wz];_.YjX=new _.yH("SNACKBAR_CONTROLLER_TOKEN");_.TwK=new _.yH("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Dd=function(z){this.controller=z};
_.m(Dd,Zu);Dd.prototype.resolveCommand=function(z){var l=this,I;return _.O(function(b){I=_.k(z,fLI);if(!I)return b.return();var v=l.controller;v.closeSnackbarFn&&v.closeSnackbarFn();_.qe(b)})};
Dd[HG]=[_.YjX];var xf=function(z,l){this.controller=z;this.sheetController=l};
_.m(xf,Zu);xf.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G;return _.O(function(u){b=_.k(z,tDI);if(!b)return u.return();x=Cu8(I.sheetController,(v=l)==null?void 0:(M=v.form)==null?void 0:M.element);g=_.k(b.content,h6u);if(!g)return u.return();var Z=I.controller,H=g,y=(G=b.animationStyle)!=null?G:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Z.showSnackbarFn)Z.showSnackbarFn({snackbarViewModel:H,animationStyle:y,durationMs:b.durationSeconds*1E3,target:x});else throw Error("sj");_.qe(u)})};
xf[HG]=[_.YjX,_.In];var OV=function(){};
_.m(OV,Zu);OV.prototype.resolveCommand=function(z){var l;return _.O(function(I){l=_.k(z,TTw);if(!l||typeof l.key!=="string"||typeof l.value!=="string")return I.return();window.localStorage.setItem(l.key,l.value);_.qe(I)})};var gh=function(z){this.store=z};
_.m(gh,Zu);gh.prototype.resolveCommand=function(z){var l=this,I;return _.O(function(b){I=_.k(z,GOk);if(!I||!I.stepId||!I.token)return b.return();l.store.dispatch(gHn({stepId:I.stepId,token:I.token,isSelected:!1}));_.qe(b)})};
gh[HG]=[ag];var Gd=function(z,l,I){this.innertubeTransportService=z;this.store=l;this.JSC$17563_screenManager=I};
_.m(Gd,Zu);
Gd.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W,L,lH,Gk;return _.O(function(uH){I=_.k(z,BOw);if(!I||(b=I.stepIds)==null||!b.length)return uH.return();v=l.store.getState().talkToRecs;M=[];x=[];g=_.D(I.stepIds);for(G=g.next();!G.done;G=g.next())for(u=G.value,Z=void 0,(H=(Z=v.stepStates[u])==null?void 0:Z.userQuery)&&x.push({userQuery:H.userQuery,userQueryToken:H.token}),y=void 0,f=(y=v.stepStates[u])==null?void 0:y.selectionStates,R=_.D(Object.entries(f)),F=
R.next();!F.done;F=R.next())Y=F.value,c=_.D(Y),d=c.next().value,V=c.next().value,A=d,W=V,W.isSelected&&M.push(A);L={selectedChipTokens:M,userQueries:x,submittedStepIds:I.stepIds};lH={browseTalk2recsFormData:L};I.browseEndpoint?(Gk=z,_.rZ(Gk,_.BF,I.browseEndpoint)):I.command&&(Gk=I.command);return Gk?uH.yield(_.I0(l.innertubeTransportService,Gk,{formData:lH,disableCache:!0}).then(function(Xt){(Xt==null?0:Xt.trackingParams)&&l.JSC$17563_screenManager.graftServerVe(Xt==null?void 0:Xt.trackingParams)}),
0):uH.return()})};
Gd[HG]=[_.AY,ag,_.br];var NV=function(z){this.store=z};
_.m(NV,Zu);NV.prototype.resolveCommand=function(z){var l=this,I;return _.O(function(b){I=_.k(z,gh7);if(!I||!I.stepId||!I.token)return b.return();l.store.dispatch(gHn({stepId:I.stepId,token:I.token,isSelected:!0}));_.qe(b)})};
NV[HG]=[ag];var EV=function(z){this.store=z};
_.m(EV,Zu);EV.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g;return _.O(function(G){b=_.k(z,Xn_);if(!b||!b.stepId||!b.userQueryToken)return G.return();g=(x=(v=l)==null?void 0:(M=v.form)==null?void 0:M.userQuery)!=null?x:"";I.store.dispatch(_.GZ({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:b.stepId,userQueryToken:b.userQueryToken,userQuery:g}}));_.qe(G)})};
EV[HG]=[ag];_.cpl=new _.yH("TIMELY_ACTIONS_CONTROLLER_TOKEN");var uF=function(z){this.controller=z};
_.m(uF,Zu);uF.prototype.resolveCommand=function(z){var l=this,I,b,v,M;return _.O(function(x){I=_.k(z,dYI);if(!I)return x.return();b=I;v=b.id;M=b.isVisible;if(v===void 0||M===void 0)return x.return();var g;(g=l.controller.timelyActionsMap.get(v))==null||g(v,M);_.qe(x)})};
uF[HG]=[_.cpl];var SjW=function(){this.timelyActionsMap=new Map};var Zd=function(z){this.JSC$17589_commandHandler=z};
_.m(Zd,Zu);Zd.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x;return _.O(function(g){I=_.k(z,_.rL);if(!I)return g.return();M=(b=I.item)==null?void 0:(v=b.notificationTextRenderer)==null?void 0:v.successResponseText;if(!M)return g.return();x=_.pr(M);l.JSC$17589_commandHandler.resolveCommand(x);_.qe(g)})};
Zd[HG]=[_.DQ];var Hw=function(z,l){this.innertubeTransportService=z;this.JSC$17594_playerApiPromise=l};
_.m(Hw,Zu);
Hw.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z;return _.O(function(H){if(H.nextAddress==1)return H.yield(l.JSC$17594_playerApiPromise,2);I=H.yieldResult;b=I.getOption("captions","track");v=Object.assign({},_.k(z,_.zJ_));(x=(M=I.getVideoData())==null?void 0:M.video_id)?v.externalVideoId=x:_.nP(Error("Ki"));if((g=b)==null?0:g.languageCode)v.languageCode=b.languageCode;if((G=b)==null?0:G.kind)v.kind=b.kind;if((u=b)==null?0:u.name)v.name=b.name;Z=Object.assign({},z,{getTranscriptEndpoint:v});return H.yield(_.I0(l.innertubeTransportService,
Z),0)})};
Hw[HG]=[_.AY,_.HU];var yY=function(){};
_.m(yY,Zu);yY.prototype.resolveCommand=function(z){var l,I,b,v,M,x,g,G;return _.O(function(u){l=_.k(z,$Rp);if((I=l)==null||!I.paramKeyValuePairs)return u.return();b=window.location.href;v=_.D(l.paramKeyValuePairs);for(M=v.next();!M.done;M=v.next())x=M.value,x.key&&x.value&&(g={},b=_.jm(b,(g[x.key]=x.value,g)));G=_.pG().resolve(_.wU);_.eT(G,b);_.qe(u)})};var f3=function(z,l){this.JSC$17601_commandHandler=z;this.innertubeTransportService=l};
_.m(f3,Zu);
f3.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V;return _.O(function(A){switch(A.nextAddress){case 1:return(M=(b=l)==null?void 0:(v=b.form)==null?void 0:v.element)&&_.Lj(M),x=_.Bu().get("hl"),g="",_.RL(A,2),A.yield(aBQ(x),4);case 4:g=A.yieldResult;_.a3(A,3);break;case 2:return _.XP(A),M&&_.Uc(M),_.dE(Error("Mi"),"ERROR"),A.return();case 3:G=_.k(z,EY4);if(!G)return M&&_.Uc(M),A.return();(H=(u=G.commerceActionConfig)==null?void 0:(Z=u.commandLifeCycleConfig)==null?
void 0:Z.onStartCommand)&&I.JSC$17601_commandHandler.resolveCommand(H);return A.yield(_.I0(I.innertubeTransportService,z,{client_data:{paymentsClientToken:{token:g}}}),5);case 5:(y=A.yieldResult)?(M&&_.Uc(M),((Y=y)==null?0:Y.command)&&I.JSC$17601_commandHandler.resolveCommand(y.command),(V=(c=G.commerceActionConfig)==null?void 0:(d=c.commandLifeCycleConfig)==null?void 0:d.onSuccessCommand)&&I.JSC$17601_commandHandler.resolveCommand(V)):(M&&_.Uc(M),_.dE(Error("Ni")),(F=(f=G.commerceActionConfig)==
null?void 0:(R=f.commandLifeCycleConfig)==null?void 0:R.onFailureCommand)&&I.JSC$17601_commandHandler.resolveCommand(F)),_.qe(A)}})};
f3[HG]=[_.DQ,_.AY];var C3=function(z,l,I){this.store=z;this.JSC$17617_commandHandler=l;this.innertubeTransportService=I};
_.m(C3,Zu);
C3.prototype.resolveCommand=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H;return _.O(function(y){b=_.k(z,uDu);v=b.googlePaymentPayload;b.onStartCommand&&I.JSC$17617_commandHandler.resolveCommand(b.onStartCommand);M=v.encryptedPurchaseParams;x=v.ypcLogWalletAnalyticDataEndpoint;g=b.serializedTransactionFlowLoggingParams;G=v.serializedPaymentsClientParams;u=b.ypcCujContext;H=JBu(I.innertubeTransportService,(Z=l)==null?void 0:Z.form,M,x,g,G,u);return y.return(H.then(function(f){VkY(l==null?void 0:l.form,
!1);var R=I.store,F=I.JSC$17617_commandHandler,Y=f.integratorData;Y==null||Y===""||f.error!=null?(String(f.error)==="-1"&&b.onDismissCommand?F.resolveCommand(b.onDismissCommand):String(f.error)!=="-1"&&b.onFailureCommand&&F.resolveCommand(b.onFailureCommand),String(f.error)!=="-1"&&String(f.error)!=="132"&&_.dE(Error("Oi"),"ERROR")):(b.googlePaymentEntityKey&&R.dispatch(_.cU("commerceAcquisitionClientPayloadEntity",b.googlePaymentEntityKey,{key:b.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:Y,
fundsGuaranteeCallbackClientData:f.integratorClientCallbackData}}})),b.onSuccessCommand&&F.resolveCommand(b.onSuccessCommand));_.Hu()},function(f){VkY(l==null?void 0:l.form,!1);
_.dE(f,"ERROR");b.onFailureCommand&&I.JSC$17617_commandHandler.resolveCommand(b.onFailureCommand)}))})};
C3[HG]=[gx,_.DQ,_.AY];var kf=function(z,l){this.JSC$17621_commandHandler=z;this.purchaseManager=l};
_.m(kf,Zu);
kf.prototype.resolveCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z;return _.O(function(H){I=_.k(z,Zej);((b=I)==null?0:(v=b.commandLifeCycleConfig)==null?0:v.onStartCommand)&&l.JSC$17621_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((M=I)==null?0:(x=M.googlePaymentPurchaseManagerPayload)==null?0:x.securePayloadBytes))return _.dE(Error("Pi"),"ERROR"),H.return();g=oW0(_.jx(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));G=_.Bu().get("hl");u=_.b1();cG1(g.serialize(),
G,function(y){u.resolve(y)},function(y){u.reject(y)},u.resolve);
Z=u.promise;return H.return(Z.then(function(y){if(y)if(y==null?0:y.errorCode){_.dE(Error("Qi`"+y.errorCode),"ERROR");var f,R;((f=I)==null?0:(R=f.commandLifeCycleConfig)==null?0:R.onFailureCommand)&&l.JSC$17621_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(y==null?0:y.isCancelled){var F,Y;((F=I)==null?0:(Y=F.commandLifeCycleConfig)==null?0:Y.onCancelCommand)&&l.JSC$17621_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var c,d;((c=I)==
null?0:(d=c.commandLifeCycleConfig)==null?0:d.onSuccessCommand)&&l.JSC$17621_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(y){_.dE(y,"ERROR");
var f,R;((f=I)==null?0:(R=f.commandLifeCycleConfig)==null?0:R.onFailureCommand)&&l.JSC$17621_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
kf[HG]=[_.DQ,SY8];var dzy=function(z,l){this.JSC$17629_commandHandler=z;this.commandAllowlistOverride=l;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:vU};
dzy.prototype.handleResponse=function(z,l,I){var b,v=l==null?void 0:(b=l.config)==null?void 0:b.command;if(!v||this.commandAllowlist.some(function(M){return!!_.k(v,M)})){l=void 0;
I!==void 0&&(l={form:{element:I}});z.onResponseReceivedCommand&&this.JSC$17629_commandHandler.resolveCommand(z.onResponseReceivedCommand,l);z.onResponseReceivedAction&&this.JSC$17629_commandHandler.resolveCommand(z.onResponseReceivedAction,l);z.onResponseReceivedEndpoint&&this.JSC$17629_commandHandler.resolveCommand(z.onResponseReceivedEndpoint,l);z.command&&this.JSC$17629_commandHandler.resolveCommand(z.command,l);if(z.onResponseReceivedCommands)for(I=_.D(z.onResponseReceivedCommands),b=I.next();!b.done;b=
I.next())this.JSC$17629_commandHandler.resolveCommand(b.value,l);if(z.onResponseReceivedActions)for(I=_.D(z.onResponseReceivedActions),b=I.next();!b.done;b=I.next())this.JSC$17629_commandHandler.resolveCommand(b.value,l);if(z.onResponseReceivedEndpoints)for(I=_.D(z.onResponseReceivedEndpoints),b=I.next();!b.done;b=I.next())this.JSC$17629_commandHandler.resolveCommand(b.value,l);if(z.actions)for(z=_.D(z.actions),I=z.next();!I.done;I=z.next())this.JSC$17629_commandHandler.resolveCommand(I.value,l)}};
dzy[HG]=[_.DQ,_.MB(IDt)];var o0y=new _.yH("INNERTUBE_TOKEN_SERVICE");var PuC=new _.yH("SCHEDULER_TOKEN");var hIK=function(z){this.scheduler=z;z={};this.tokenMap=(z.app={},z.user={},z)};
hIK.prototype.handleResponse=function(z,l){if(!l)throw Error("Ri");var I;if(z=(I=z.responseContext)==null?void 0:I.innertubeTokenJar){if(z.appTokens){var b,v,M;I=(b=l.innerTubeRequest.context)==null?void 0:(v=b.request)==null?void 0:(M=v.innertubeTokenJar)==null?void 0:M.appTokens;s_S(this,z.appTokens,this.tokenMap.app,I)}if(z.userTokens){var x,g,G;l=(x=l.innerTubeRequest.context)==null?void 0:(g=x.request)==null?void 0:(G=g.innertubeTokenJar)==null?void 0:G.userTokens;s_S(this,z.userTokens,this.tokenMap.user,
l)}}};
hIK.prototype.processContext=function(z){z.request||(z.request={});var l=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(l||I)z.request.innertubeTokenJar={},l&&(z.request.innertubeTokenJar.appTokens=[].concat(_.ht(Object.values(this.tokenMap.app).flat()))),I&&(z.request.innertubeTokenJar.userTokens=[].concat(_.ht(Object.values(this.tokenMap.user).flat())))};
var s_S=function(z,l,I,b){l=_.D(l);for(var v=l.next(),M={};!v.done;M={token$jscomp$139:void 0},v=l.next()){M.token$jscomp$139=v.value;if(M.token$jscomp$139.type===void 0)throw new _.qB("InnerTube token has no type",M.token$jscomp$139);if(M.token$jscomp$139.clearTokens)I[M.token$jscomp$139.type]=[];else if(M.token$jscomp$139.value!==void 0){I[M.token$jscomp$139.type]||(I[M.token$jscomp$139.type]=[]);if(b!==void 0&&b.length){v=_.D(b);for(var x=v.next(),g={};!x.done;g={requestToken:void 0},x=v.next())g.requestToken=
x.value,x=I[M.token$jscomp$139.type].findIndex(function(G){return function(u){return u===G.requestToken||(0,_.h7.equals)(u,G.requestToken)}}(g)),x>-1&&I[M.token$jscomp$139.type].splice(x,1)}I[M.token$jscomp$139.type].push(M.token$jscomp$139);
M.token$jscomp$139.maxAgeSeconds&&Number(M.token$jscomp$139.maxAgeSeconds)>0&&z.scheduler.addLowPriorityJob(function(G){return function(){var u=I[G.token$jscomp$139.type].indexOf(G.token$jscomp$139);u>-1&&I[G.token$jscomp$139.type].splice(u,1)}}(M),Number(M.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.qB("InnerTube token has no value",M.token$jscomp$139);
}};
hIK[HG]=[PuC];var rpl=new _.yH("LOCAL_INNERTUBE_ROUTER_TOKEN"),$zS=new _.yH("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ro=function(z){this.serviceMap=z};
Ro.prototype.shouldPreferLocalResponse=function(z,l){return(z=eIl(this,z))?z.shouldPreferLocalResponse(l):!1};
Ro.prototype.localInnertubeResponse=function(z,l){var I=this,b;return _.O(function(v){return(b=eIl(I,z))?v.return(b.localInnertubeResponse(l)):v.return(Promise.reject(Error("Si")))})};
Ro.prototype.canProvideFallbackResponse=function(z,l){return(z=eIl(this,z))?z.canProvideFallbackResponse(l):!1};
Ro.prototype.localFallbackInnertubeResponse=function(z,l){var I=this,b;return _.O(function(v){return(b=eIl(I,z))?v.return(b.localFallbackInnertubeResponse(l)):v.return(Promise.reject(Error("Si")))})};
var eIl=function(z,l){l=_.yI(l);return l?(z=z.serviceMap[l])?z:null:null};
Ro[HG]=[$zS];var XI=function(){};
XI.prototype.shouldPreferLocalResponse=function(){return!1};
XI.prototype.localInnertubeResponse=function(){return _.O(function(z){return z.return(Promise.reject(Error("Ti")))})};
XI.prototype.canProvideFallbackResponse=function(){return!0};
XI.prototype.localFallbackInnertubeResponse=function(){var z,l,I;return _.O(function(b){z=Bt("CLOSE_POPUP");l={openPopupAction:leQ()};I={actions:[z,l]};return b.return(I)})};var lo$=function(z,l){this.JSC$17679_upliftPromise=z;this.store=l};
_.p=lo$.prototype;_.p.shouldPreferLocalResponse=function(z){var l=z.videoId,I;if(I=l)I=CS$(this.store.getState().entities,z.videoId);return I&&kWS(this.store.getState().entities,l)?bCp(this.store.getState().entities,z.playlistId):!1};
_.p.localInnertubeResponse=function(z){var l=this,I;return _.O(function(b){return(I=l.getPlayerResponse(z))?b.return(Promise.resolve(I)):b.return(Promise.reject(Error("Ui")))})};
_.p.canProvideFallbackResponse=function(z){return!!z.videoId};
_.p.localFallbackInnertubeResponse=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.JSC$17679_upliftPromise,2);I=l.getPlayerResponse(z);var v;I?v=b.return(Promise.resolve(I)):v=Yw(l.store.getState().entities,z.videoId)?b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.xw(_.mY("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:ZVG()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.xw(_.mY("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:uWf()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return v})};
_.p.getPlayerResponse=function(z){return nmt(this.store.getState().entities,z.videoId)};var BJ=function(z,l){this.localPlayerService=z;this.localWatchNextService=l};
BJ.prototype.shouldPreferLocalResponse=function(z){var l=z.playerRequest;z=z.watchNextRequest;return!!(l&&this.localPlayerService.shouldPreferLocalResponse(l)&&z&&this.localWatchNextService.shouldPreferLocalResponse(z))};
BJ.prototype.localInnertubeResponse=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1){I=z.playerRequest;b=z.watchNextRequest;if(!I||!b)throw new _.qB("Missing streaming request",z);return x.yield(l.localPlayerService.localInnertubeResponse(I),2)}if(x.nextAddress!=3)return v=x.yieldResult,x.yield(l.localWatchNextService.localInnertubeResponse(b),3);M=x.yieldResult;return x.return({playerResponse:v,watchNextResponse:M})})};
BJ.prototype.canProvideFallbackResponse=function(z){var l=z.playerRequest;z=z.watchNextRequest;return!!(l&&this.localPlayerService.canProvideFallbackResponse(l)&&z&&this.localWatchNextService.canProvideFallbackResponse(z))};
BJ.prototype.localFallbackInnertubeResponse=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return I=z.playerRequest,b=z.watchNextRequest,I&&b?x.yield(l.localPlayerService.localFallbackInnertubeResponse(I),2):x.return(Promise.reject(new _.qB("Missing streaming request",z)));if(x.nextAddress!=3)return v=x.yieldResult,x.yield(l.localWatchNextService.localFallbackInnertubeResponse(b),3);M=x.yieldResult;return x.return({playerResponse:v,watchNextResponse:M})})};var mO=function(z){this.JSC$17689_persistentStorePromiseAccessor=z};
mO.prototype.shouldPreferLocalResponse=function(){return!1};
mO.prototype.localInnertubeResponse=function(){return _.O(function(z){return z.return(Promise.reject(Error("Vi")))})};
mO.prototype.canProvideFallbackResponse=function(){return!0};
mO.prototype.localFallbackInnertubeResponse=function(){var z=this,l,I;return _.O(function(b){return b.nextAddress==1?b.yield(z.JSC$17689_persistentStorePromiseAccessor(),2):b.nextAddress!=3?(l=b.yieldResult)?b.yield(l.get("service:guide:fallback"),3):b.return(Promise.reject(Error("Wi"))):(I=b.yieldResult)&&_.x1(I)?b.return(vo$(_.x1(I))):b.return(Promise.reject(Error("Xi")))})};var qN=function(){};
qN.prototype.shouldPreferLocalResponse=function(){return!1};
qN.prototype.localInnertubeResponse=function(){return _.O(function(z){return z.return(Promise.reject(Error("Yi")))})};
qN.prototype.canProvideFallbackResponse=function(){return!0};
qN.prototype.localFallbackInnertubeResponse=function(){var z,l,I;return _.O(function(b){z=Bt("CLOSE_POPUP");l={openPopupAction:leQ()};I={actions:[z,l]};return b.return(I)})};var RU=function(){this.urlMap=w_1;this.fallbackCommand=_.AM};
RU.prototype.shouldPreferLocalResponse=function(z){return(z=z.url)?!!Aps(this,z):!1};
RU.prototype.localInnertubeResponse=function(z){var l=this,I;return _.O(function(b){return(I=z.url)?b.return(WAc(z,Aps(l,I))):b.return(Promise.reject(Error("Zi")))})};
RU.prototype.canProvideFallbackResponse=function(){return!0};
RU.prototype.localFallbackInnertubeResponse=function(z){var l=this,I,b,v,M,x,g,G;return _.O(function(u){I=z.url;if(!I)return u.return(WAc(z,l.fallbackCommand));if(b=Aps(l,I))return u.return(WAc(z,b));v=void 0;M=_.yI(I);M==="/watch"&&(x=_.n0(I,"v"))&&(G=(g=_.n0(I,"list"))!=null?g:void 0,v=_.pc(x,G));v||(v=l.fallbackCommand);return u.return(WAc(z,v))})};
var Aps=function(z,l){if(l)return z.urlMap[_.UU(l)]},WAc=function(z,l){l&&z.parentTrackingParams&&(l.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:z.parentTrackingParams}},l.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:l})};var KI=function(z,l,I){this.JSC$17699_upliftPromise=z;this.store=l;this.JSC$17699_persistentStorePromiseAccessor=I};
KI.prototype.shouldPreferLocalResponse=function(){return!1};
KI.prototype.localInnertubeResponse=function(){return _.O(function(z){return z.return(Promise.reject(Error("$i")))})};
KI.prototype.canProvideFallbackResponse=function(){return!0};
KI.prototype.localFallbackInnertubeResponse=function(){var z=this;return _.O(function(l){return l.return(n0K(z))})};
var n0K=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(Dq(z.JSC$17699_upliftPromise,z.store),2);l=b.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[IeY(l)]}}}};return b.return(LAX(z,I))})},LAX=function(z,l){var I,b;
return _.O(function(v){if(v.nextAddress==1)return v.yield(z.JSC$17699_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3)return I=v.yieldResult,v.yield(O2(I),3);b=v.yieldResult;return v.return({responseContext:{},contents:l,topbar:b})})};var CI=function(z,l,I){this.JSC$17706_upliftPromise=z;this.store=l;this.JSC$17706_persistentStorePromiseAccessor=I};
CI.prototype.shouldPreferLocalResponse=function(z){var l=z.videoId;return l&&CS$(this.store.getState().entities,l)&&kWS(this.store.getState().entities,l)?bCp(this.store.getState().entities,z.playlistId):!1};
CI.prototype.localInnertubeResponse=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1)return(I=z.videoId)?v.yield(l.JSC$17706_upliftPromise,2):v.return(Promise.reject(Error("aj")));if(v.nextAddress!=3)return v.yield(UzK(l,z,I),3);b=v.yieldResult;return v.return(a4s(l,b,I))})};
CI.prototype.canProvideFallbackResponse=function(z){return z.videoId?!0:!1};
CI.prototype.localFallbackInnertubeResponse=function(z){var l=this,I,b,v,M;return _.O(function(x){switch(x.nextAddress){case 1:return(I=z.videoId)?x.yield(l.JSC$17706_upliftPromise,2):x.return(Promise.reject(Error("aj")));case 2:return x.yield(UzK(l,z,I),3);case 3:b=x.yieldResult;if(Yw(l.store.getState().entities,I)){x.jumpTo(4);break}return x.yield(Dq(l.JSC$17706_upliftPromise,l.store),5);case 5:return v=x.yieldResult,x.return(VMK(b,v));case 4:return CS$(l.store.getState().entities,I)&&kWS(l.store.getState().entities,
I)?x.return(a4s(l,b,I)):(M={title:_.xw(_.mY("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ZVG()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},x.return(VMK(b,M)))}})};
var UzK=function(z,l,I){var b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return b=l.playlistId,v=_.pc(I,b),G.yield(z.JSC$17706_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3)return M=G.yieldResult,G.yield(O2(M),3);x=G.yieldResult;g={responseContext:{},currentVideoEndpoint:v,topbar:x};return G.return(g)})},a4s=function(z,l,I){if(z=Yw(z.store.getState().entities,I)){var b;
I=z.videoEntity;var v,M={title:Op(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.gg((b=I.localizedStrings)==null?void 0:b.viewCount),viewCount:_.gg((v=I.localizedStrings)==null?void 0:v.viewCount)}}};I.publishedTimestampMillis&&(M.dateText=_.gg($GS(new Date(Number(I.publishedTimestampMillis)))));b={videoPrimaryInfoRenderer:M};v=z.videoEntity;z=z.channelEntity;z={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Op(_.mY("SHOW_MORE",void 0,"Show more")),
showLessText:Op(_.mY("SHOW_LESS",void 0,"Show less")),description:v.formattedDescription,owner:{videoOwnerRenderer:{title:Op(z.title),thumbnail:z.avatar}}}};l.contents={twoColumnWatchNextResults:{results:{results:{contents:[b,z]}}}}}return l},VMK=function(z,l){z.contents={singleColumnWatchNextResults:{results:{results:{contents:[IeY(l)]}}}};
return z};var tf=function(z,l,I){this.JSC$17711_upliftPromise=z;this.store=l;this.JSC$17711_persistentStorePromiseAccessor=I};
tf.prototype.shouldPreferLocalResponse=function(){return!1};
tf.prototype.localInnertubeResponse=function(){return _.O(function(z){return z.return(Promise.reject(Error("bj")))})};
tf.prototype.canProvideFallbackResponse=function(){return!0};
tf.prototype.localFallbackInnertubeResponse=function(){var z=this,l,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return M.yield(z.JSC$17711_persistentStorePromiseAccessor(),2);case 2:return l=M.yieldResult,M.yield(O2(l),3);case 3:return I=M.yieldResult,b={responseContext:{},topbar:I},M.yield(z.JSC$17711_upliftPromise,4);case 4:return M.yield(Dq(z.JSC$17711_upliftPromise,z.store),5);case 5:return v=M.yieldResult,b.watchStatus={backgroundPromoRenderer:v},M.return(b)}})};_.j_W=new _.yH("ENDPOINT_MAP");var JpW=function(){var z=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return z.sequenceMap}}},vfn=function(z,l,I){var b,v=(b=l.config)==null?void 0:b.sequenceStrategy;
if(!v)return I();z.sequenceMap.has(v.sequenceKey)||z.sequenceMap.set(v.sequenceKey,[]);z=z.sequenceMap.get(v.sequenceKey);switch(v.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return z1l(z,l,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return lFs(z,l,I);default:throw new _.qB("Request could not be sequenced",l);}},z1l=function(z,l,I){var b,v,M;
return _.O(function(x){z.length>0?(v=z[z.length-1],b=v.responsePromise.then(function(){return I()})):b=I();
M={request:l,responsePromise:b};z.push(M);IF8(z,M);return x.return(M.responsePromise)})},lFs=function(z,l,I){I=I();
if(z.length>0)for(var b=_.D(z),v=b.next();!v.done;v=b.next())v.value.responsePromise=I;var M={request:l,responsePromise:I};z.push(M);IF8(z,M);return Promise.resolve().then(function(){return z.indexOf(M)>0?M.responsePromise.then(function(x){return Object.assign({},x,{sequenceMetaData:{skipProcessing:!0}})}):M.responsePromise})},IF8=function(z,l){l.responsePromise.then(function(){var I=z.indexOf(l);
I>-1&&z.splice(I,1)})};var blX=new _.yH("REQUEST_SEQUENCING");var mm=function(){};
_.m(mm,r3);mm.prototype.getApiPaths=function(){return[]};
mm.prototype.getExtension=function(z){return _.k(z,A5u)};
mm.prototype.JSC$13114_buildRequest=function(z,l){z.recaptchaToken=l.recaptchaToken};
mm.prototype.getApiUrl=function(){return"/das_captcha"};var K3=function(){};
_.m(K3,r3);K3.prototype.getApiPaths=function(){return GqI};
K3.prototype.getExtension=function(z){return _.k(z,kL_)};
K3.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.createBackstagePostParams&&(z.createBackstagePostParams=l.createBackstagePostParams);I.comment_text&&(z.commentText=I.comment_text);if(I.attached_video_id)z.videoAttachment={videoId:I.attached_video_id};else if(I.image_poll_options)z.pollAttachmentData={options:I.image_poll_options};else if(I.poll_options)z.pollAttachment={choices:I.poll_options};else if(I.quiz_options)z.quizAttachmentData={options:I.quiz_options};else if(I.image_blob_id)z.imageAttachment=
{encryptedBlobId:I.image_blob_id},I.source_video_id&&(z.imageAttachment.sourceExternalVideoId=I.source_video_id),I.image_preview_coordinates&&(z.imageAttachment.previewCoordinates=JSON.parse(I.image_preview_coordinates));else if(I.images_data)z.imagesAttachment={imagesData:I.images_data};else if(I.clip_external_video_id!==void 0||I.clip_offset_ms!==void 0||I.clip_duration_ms!==void 0){var b,v,M,x,g;z.clipAttachment={externalVideoId:(M=I.clip_external_video_id)!=null?M:"",offsetMs:(x=(b=I.clip_offset_ms)==
null?void 0:b.toString())!=null?x:"",durationMs:(g=(v=I.clip_duration_ms)==null?void 0:v.toString())!=null?g:""}}else I.shared_post_id&&(z.sharedPostAttachment={postId:I.shared_post_id});I.tagged_video_id&&(z.postCreationData={taggedVideoId:I.tagged_video_id});I.access_restrictions&&(typeof I.access_restrictions==="number"&&(l=I.access_restrictions,z.accessRestrictions={restriction:l!==1&&l===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof I.access_restrictions==="string"&&
(z.accessRestrictionsParams=I.access_restrictions));I.scheduled_publish_time_sec&&(z.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString())};var tS=function(){};
_.m(tS,r3);tS.prototype.getApiPaths=function(){return fWI};
tS.prototype.getExtension=function(z){return _.k(z,Otz)};
tS.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.decorateMessageParams&&(z.params=l.decorateMessageParams);I.text&&(z.text=I.text)};var Bw=function(){};
_.m(Bw,r3);Bw.prototype.getApiPaths=function(){return hFu};
Bw.prototype.getExtension=function(z){return _.k(z,RoA)};
Bw.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;I.video_id&&(z.videoId=I.video_id)};var XO=function(){};
_.m(XO,r3);XO.prototype.getApiPaths=function(){return wEI};
XO.prototype.getExtension=function(z){return _.k(z,_.CM)};
XO.prototype.JSC$13114_buildRequest=function(z,l,I){I.suggestions_query&&(z.input=I.suggestions_query)};var qV=function(){};
_.m(qV,r3);qV.prototype.getApiPaths=function(){return Kr_};
qV.prototype.getExtension=function(z){return _.k(z,mgA)};
qV.prototype.JSC$13114_buildRequest=function(z,l,I){I.comment_text!==void 0&&(z.commentText=I.comment_text);I.scheduled_publish_time_sec&&(z.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString());z.updateBackstagePostParams=l.updateBackstagePostParams};var iF=function(){};
_.m(iF,r3);iF.prototype.getApiPaths=function(){return l9};
iF.prototype.getExtension=function(z){return _.k(z,_.a2)};
iF.prototype.JSC$13114_buildRequest=function(z,l,I){I.formData&&(z.formData=I.formData);l.token?z.continuation=l.token:l.continuationTokenKey&&(I=_.vF().getState(),l=_.Cc(I.entities,"continuationTokenEntity",l.continuationTokenKey))&&(z.continuation=String(l.continuationToken))};
var vSl=function(){};
_.m(vSl,r3);_.p=vSl.prototype;_.p.getApiPaths=function(){return l9};
_.p.getExtension=function(z){return _.k(z,_.BF)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(z){if((z=this.getExtension(z))&&z.browseId){var l={browseId:z.browseId};z.browseEndpointContextSupportedConfigs&&(l.browseEndpointContextSupportedConfigs=JSON.stringify(z.browseEndpointContextSupportedConfigs));z.params&&(l.params=z.params);z.query&&(l.query=z.query);return _.J8("browse",l)}};
_.p.JSC$13114_buildRequest=function(z,l,I){l.browseId&&(z.browseId=l.browseId);l.params&&(z.params=l.params);l.query&&(z.query=l.query);I.formData?z.formData=I.formData:l.formData&&(z.formData=l.formData);l.browseId==="FEsubscriptions"&&_.Bu().getFlag(155)&&(z.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");l.browseId==="SPaccount_playback"&&(I=_.Bu(),z.formData||(z.formData={}),z.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(l.browseId==="FEwhat_to_watch"){I=_.Bu();var b=I.getFlag(196);I.getFlag(197)&&(z.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:b}}})}l.browseId==="FEwhat_to_watch"&&(l=_.Bu().getFlag(186),z.inlineSettingStatus=l?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.p.getRequestConfig=function(z,l){l=l===void 0?{}:l;var I={};if(z=this.JSC$13121_getStoreKey(z,l))I.storeStrategy={storeKey:z,disableCache:l.disableCache};_.C("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var FO=function(){};
_.m(FO,r3);FO.prototype.getApiPaths=function(){return MTu};
FO.prototype.getExtension=function(z){return _.k(z,V7A)};
FO.prototype.JSC$13114_buildRequest=function(z,l,I){z.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";z.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var QY=function(){};
_.m(QY,r3);QY.prototype.getApiPaths=function(){return NP0};
QY.prototype.getExtension=function(z){return _.k(z,QWI)};
QY.prototype.JSC$13114_buildRequest=function(z,l,I){I.recaptcha_response_token&&(z.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(z.channelId=I.channel_id)};var Yf=function(){};
_.m(Yf,r3);Yf.prototype.getApiPaths=function(){return t5z};
Yf.prototype.getExtension=function(z){return _.k(z,o9u)};
Yf.prototype.JSC$13114_buildRequest=function(z,l,I){l.externalChannelId&&(z.externalChannelId=l.externalChannelId);I.handle&&(z.handleUpdate={handle:I.handle},l.handleEditSource&&(z.handleUpdate.handleEditSource=l.handleEditSource))};var Td=function(){};
_.m(Td,r3);Td.prototype.getApiPaths=function(){return iyz};
Td.prototype.getExtension=function(z){return _.k(z,M7n)};
Td.prototype.JSC$13114_buildRequest=function(z,l,I){l.request&&(z.channelId=l.request.channelId);var b;if(I==null?0:(b=I.uploadDefaults)==null?0:b.emojiReactionSet)z.uploadDefaultsRequest||(z.uploadDefaultsRequest={}),z.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var cw=function(){};
_.m(cw,r3);cw.prototype.getApiPaths=function(){return YsI};
cw.prototype.getExtension=function(z){return _.k(z,Yb0)};
cw.prototype.JSC$13114_buildRequest=function(z,l,I){l.externalChannelId&&(z.externalChannelId=l.externalChannelId);l.channelHandleEntityKey&&(z.channelHandleEntityKey=l.channelHandleEntityKey);l.handleEditSource&&(z.handleEditSource=l.handleEditSource);I.handle?z.handle=I.handle:I.name&&(z.name=I.name)};var SU=function(){};
_.m(SU,r3);SU.prototype.getApiPaths=function(){return xdA};
SU.prototype.getExtension=function(z){return _.k(z,wf0)};
SU.prototype.JSC$13114_buildRequest=function(z,l){l.actions?z.actions=l.actions:l.action&&(z.actions=[l.action])};var dh=function(){};
_.m(dh,r3);dh.prototype.getApiPaths=function(){return Ofn};
dh.prototype.getExtension=function(z){return _.k(z,_.a2)};
dh.prototype.JSC$13114_buildRequest=function(z,l){l.token&&(z.continuation=l.token)};var oo=function(){};
_.m(oo,r3);oo.prototype.getApiPaths=function(){return ojj};
oo.prototype.getExtension=function(z){return _.k(z,_.a2)};
oo.prototype.JSC$13114_buildRequest=function(z,l){z.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";l.token&&(z.fetchCommentsParams={continuation:l.token})};var Pw=function(){};
_.m(Pw,r3);Pw.prototype.getApiPaths=function(){return ue_};
Pw.prototype.getExtension=function(z){return _.k(z,eX_)};
Pw.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.createReplyParams&&(z.createReplyParams=l.createReplyParams);l.commentText&&(z.commentText=_.ID(l.commentText));I.comment_text&&(z.commentText=I.comment_text);I.image_blob_id&&(z.imageAttachment={encryptedBlobId:I.image_blob_id});I.botguard_response&&(z.botguardResponse=I.botguard_response)};
_.vP.Object.defineProperties(Pw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hS=function(){};
_.m(hS,r3);hS.prototype.getApiPaths=function(){return Zfj};
hS.prototype.getExtension=function(z){return _.k(z,_.$1_)};
hS.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.createCommentParams&&(z.createCommentParams=l.createCommentParams);l.commentText&&(z.commentText=_.ID(l.commentText));l.videoPositionMention&&(z.videoPositionMention=l.videoPositionMention);l.sources&&(z.sources=l.sources);I.comment_text&&(z.commentText=I.comment_text);I.attached_video_id?z.videoAttachment={videoId:I.attached_video_id}:I.poll_options?z.pollAttachment={choices:I.poll_options}:I.image_blob_id?z.imageAttachment=
{encryptedBlobId:I.image_blob_id}:I.shared_post_id&&(z.sharedPostAttachment={postId:I.shared_post_id});I.access_restrictions&&typeof I.access_restrictions==="number"&&(l=I.access_restrictions,z.accessRestrictions={restriction:l!==1&&l===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(z.botguardResponse=I.botguard_response)};
_.vP.Object.defineProperties(hS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sV=function(){};
_.m(sV,r3);sV.prototype.getApiPaths=function(){return BPA};
sV.prototype.getExtension=function(z){return _.k(z,Wtw)};
sV.prototype.JSC$13114_buildRequest=function(z,l,I){l.commentText&&(z.replyText=_.ID(l.commentText));I.comment_text&&(z.replyText=I.comment_text);z.updateReplyParams=l.updateReplyParams};
_.vP.Object.defineProperties(sV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rh=function(){};
_.m(rh,r3);rh.prototype.getApiPaths=function(){return XDz};
rh.prototype.getExtension=function(z){return _.k(z,AMu)};
rh.prototype.JSC$13114_buildRequest=function(z,l,I){l.commentText&&(z.commentText=_.ID(l.commentText));I.comment_text&&(z.commentText=I.comment_text);z.updateCommentParams=l.updateCommentParams};
_.vP.Object.defineProperties(rh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $f=function(){};
_.m($f,r3);$f.prototype.getApiPaths=function(){return qsM};
$f.prototype.getExtension=function(z){return _.k(z,l9z)};
$f.prototype.JSC$13114_buildRequest=function(z,l){l.settings&&(z.settings=l.settings)};var eU=function(){};
_.m(eU,r3);eU.prototype.getApiPaths=function(){return FW_};
eU.prototype.getExtension=function(z){return _.k(z,TOj)};
eU.prototype.JSC$13114_buildRequest=function(z,l){l.channelCreationToken&&(z.channelCreationToken=l.channelCreationToken);l.source&&(z.source=l.source)};var wh=function(){};
_.m(wh,r3);wh.prototype.getApiPaths=function(){return Ej_};
wh.prototype.getExtension=function(z){return _.k(z,dgj)};
wh.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))z=new _.qB("channel creation cannot set both GAIA and YouTube names",l),_.dE(z);else{if(l.zeroStepChannelCreationParams){if(!I.comment_text){z=new _.qB("zero_step_create_comment_params but no zero_step_texts",l);_.dE(z);return}z.zeroStepChannelCreationParams=l.zeroStepChannelCreationParams;z.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(z.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(z.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}z.channelCreationToken=l.channelCreationToken;I.given_name&&(z.givenName=I.given_name);I.family_name&&(z.familyName=I.family_name);l.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(z.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(I.name||I.handle||I.avatar_url||I.encryptedBlobId||I.isNameChanged!==void 0||I.isHandleChanged!==void 0||I.isDefaultProfilePhoto!==
void 0||I.obakeImageSource)z.overrideChannelCreationParams={},I.name&&(z.overrideChannelCreationParams.name=I.name),I.handle&&(z.overrideChannelCreationParams.handle=I.handle),I.avatar_url&&(z.overrideChannelCreationParams.avatarUrl=I.avatar_url),I.encryptedBlobId&&(z.overrideChannelCreationParams.blobEncryptionId=I.encryptedBlobId),I.enableIdentityForAllChannelCreationDialog&&(I.encryptedBlobId?z.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
I.isDefaultProfilePhoto!==void 0&&(z.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=I.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),I.isNameChanged!==void 0&&(z.overrideChannelCreationParams.identityForAllChannelCreationNameTag=I.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),I.isHandleChanged!==
void 0&&(z.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=I.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),I.obakeImageSource&&(z.overrideChannelCreationParams.obakeImageSourceType=I.obakeImageSource))}};var AS=function(){};
_.m(AS,r3);AS.prototype.getApiPaths=function(z){return(z=this.getExtension(z))&&z.status==="DISLIKE"?mdj:z&&z.status==="INDIFFERENT"?Dm_:Ud_};
AS.prototype.getExtension=function(z){return _.k(z,_.Wt)};
AS.prototype.JSC$13114_buildRequest=function(z,l){l.target&&(z.target=l.target);if(l=this.getParams(l))z.params=l};
AS.prototype.getParams=function(z){switch(z==null?void 0:z.status){case "DISLIKE":return z.dislikeParams;case "INDIFFERENT":return z.removeLikeParams;default:return z==null?void 0:z.likeParams}};var Ww=function(){};
_.m(Ww,r3);Ww.prototype.getApiPaths=function(){return ynw};
Ww.prototype.getExtension=function(z){return _.k(z,jcp)};
Ww.prototype.JSC$13114_buildRequest=function(z,l){l.settingItemId&&(z.settingItemId=l.settingItemId);l.stringValue!=null&&l.stringValue!==void 0?z.newValue={stringValue:l.stringValue}:l.intValue?z.newValue={intValue:l.intValue}:l.boolValue!==null&&l.boolValue!==void 0?z.newValue={boolValue:l.boolValue}:(z=new _.qB("Unknown value type for SetSettingEndpoint.",l),_.dE(z))};var n3=function(){};
_.m(n3,r3);n3.prototype.getApiPaths=function(){return kMI};
n3.prototype.getExtension=function(z){return _.k(z,ZqA)||void 0};
n3.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.channelIds&&(z.channelIds=l.channelIds);l.siloName&&(z.siloName=l.siloName);l.params&&(z.params=l.params);I.botguardResponse&&(z.botguardResponse=I.botguardResponse);I.feature&&(z.clientFeature=I.feature)};
_.vP.Object.defineProperties(n3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var L3=function(){};
_.m(L3,r3);L3.prototype.getApiPaths=function(){return mmM};
L3.prototype.getExtension=function(z){return _.k(z,JM0)||void 0};
L3.prototype.JSC$13114_buildRequest=function(z,l){l.channelIds&&(z.channelIds=l.channelIds);l.siloName&&(z.siloName=l.siloName);l.params&&(z.params=l.params)};
_.vP.Object.defineProperties(L3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UV=function(z){this.shareClientParamsProvider=z};
_.m(UV,r3);UV.prototype.getApiPaths=function(){return xD7};
UV.prototype.getExtension=function(z){return _.k(z,XT0)||_.k(z,_.q4w)||_.k(z,BL_)};
UV.prototype.JSC$13114_buildRequest=function(z,l){l.serializedShareEntity&&(z.serializedSharedEntity=l.serializedShareEntity);if(l.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(l.clientParamIdentifier)){I=this.shareClientParamsProvider;l=l.clientParamIdentifier;var b=I.clientParams.get(l);b&&I.clientParams.delete(l);z.clientParams=b}}};
UV[HG]=[Gln];var ao=function(){};
_.m(ao,r3);ao.prototype.getApiPaths=function(){return IW4};
ao.prototype.getExtension=function(z){return _.k(z,DxA)};
ao.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var VY=function(){};
_.m(VY,r3);VY.prototype.getApiPaths=function(){return KWM};
VY.prototype.getExtension=function(z){return _.k(z,vI_)};
VY.prototype.JSC$13114_buildRequest=function(z,l){l.dismissal&&(z.items=[l.dismissal])};
_.vP.Object.defineProperties(VY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jU=function(){};
_.m(jU,r3);jU.prototype.getApiPaths=function(){return nj4};
jU.prototype.getExtension=function(z){return _.k(z,_.hf)||void 0};
jU.prototype.JSC$13114_buildRequest=function(z,l,I){z.feedbackTokens=[];l.feedbackToken&&z.feedbackTokens.push(l.feedbackToken);if(l=l.cpn||I.cpn)z.feedbackContext={cpn:l};z.isFeedbackTokenUnencrypted=!!I.is_feedback_token_unencrypted;z.shouldMerge=!1;I.extra_feedback_tokens&&(z.shouldMerge=!0,z.feedbackTokens=z.feedbackTokens.concat(I.extra_feedback_tokens))};
_.vP.Object.defineProperties(jU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JS=function(){};
_.m(JS,r3);JS.prototype.getApiPaths=function(){return nj4};
JS.prototype.getExtension=function(z){return _.k(z,_.CM)};
JS.prototype.JSC$13114_buildRequest=function(z,l,I){I.feedback_tokens&&(z.feedbackTokens=I.feedback_tokens,z.shouldMerge=!0)};
_.vP.Object.defineProperties(JS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zm=function(){};
_.m(zm,r3);zm.prototype.getApiPaths=function(){return nj4};
zm.prototype.getExtension=function(z){return _.k(z,Nzf)};
zm.prototype.JSC$13114_buildRequest=function(z,l){l.undoToken&&(z.feedbackTokens=[l.undoToken]);l.isUndoTokenUnencrypted&&(z.isFeedbackTokenUnencrypted=l.isUndoTokenUnencrypted)};
_.vP.Object.defineProperties(zm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var l$=function(){};
_.m(l$,r3);l$.prototype.getApiPaths=function(){return TPM};
l$.prototype.getExtension=function(z){return _.k(z,l0A)};
l$.prototype.JSC$13114_buildRequest=function(z,l){l.nextEndpoint&&_.k(l.nextEndpoint,_.AK)?z.nextEndpoint={urlEndpoint:_.k(l.nextEndpoint,_.AK)}:l.nextEndpoint&&_.k(l.nextEndpoint,_.zb)&&(z.nextEndpoint={watchEndpoint:_.k(l.nextEndpoint,_.zb)});l.setRacy&&(z.setRacy=l.setRacy);l.setControvercy&&(z.setControvercy=l.setControvercy)};var Is=function(z){this.JSC$17892_storeWithEntities=z};
_.m(Is,r3);Is.prototype.getApiPaths=function(){return BUw};
Is.prototype.getExtension=function(z){return _.k(z,Bpn)};
Is.prototype.JSC$13114_buildRequest=function(z,l){l.flowId&&(z.flowId=l.flowId);l.targetId&&(z.targetId=l.targetId);l.continuation&&(z.continuation=l.continuation);var I=l.flowStateEntityKey;if(l.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$17892_storeWithEntities){var b;if(l=(b=this.JSC$17892_storeWithEntities.getState())==null?void 0:b.entities)if(b=_.Ep(I).entityType,b=_.Cc(l,b,I))z.flowState=b,z.flowStateEntityKey=I}};
_.vP.Object.defineProperties(Is.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Is[HG]=[gx];var MW8=function(){};
_.m(MW8,r3);_.p=MW8.prototype;_.p.getApiPaths=function(){return WWw};
_.p.JSC$13121_getStoreKey=function(){return _.J8("guide")};
_.p.getRequestConfig=function(){var z=this.JSC$13121_getStoreKey(),l;z&&(l={storeStrategy:{storeKey:z}});return l};
_.p.isNavigationCommand=function(){return!0};
_.p.getExtension=function(z){return _.k(z,_.CM)};
_.p.JSC$13114_buildRequest=function(z){z.fetchLiveState=!0};var b$=function(){};
_.m(b$,r3);b$.prototype.getApiPaths=function(){return pE_};
b$.prototype.getExtension=function(z){return _.k(z,hXj)};
b$.prototype.JSC$13114_buildRequest=function(){};var vs=function(){};
_.m(vs,r3);vs.prototype.getApiPaths=function(){return DdA};
vs.prototype.getExtension=function(z){return _.k(z,scu)};
vs.prototype.JSC$13114_buildRequest=function(){};var Mf=function(){};
_.m(Mf,r3);Mf.prototype.getApiPaths=function(){return lWn};
Mf.prototype.getExtension=function(z){return _.k(z,_.a2)};
Mf.prototype.JSC$13114_buildRequest=function(z,l){l.token&&(z.continuation=l.token);var I,b;z==null||(I=z.context)==null||(b=I.user)==null||delete b.onBehalfOfUser};
Mf.prototype.getRequestConfig=function(z){var l={},I;if(((I=this.getExtension(z))==null?void 0:I.sessionIndex)!==void 0){var b;l={authStrategy:{sessionIndex:(b=this.getExtension(z))==null?void 0:b.sessionIndex}}}return l};var ph=function(){};
_.m(ph,r3);ph.prototype.JSC$13114_getRequest=function(z){var l=this.getExtension(z),I=z="";if(l==null?0:l.popup)z="true";if(l==null?0:l.disableSignout)I="true";l={};return{input:"/getAccountSwitcherEndpoint",requestShell:jn("/getAccountSwitcherEndpoint","GET",(l["X-YouTube-Delegation-Context"]=_.sZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),l["X-YouTube-Account-Switcher-Popup"]=z,l["X-YouTube-Account-Switcher-Disable-Signout"]=I,l)),innerTubeRequest:{}}};
ph.prototype.getApiPaths=function(){return[]};
ph.prototype.getExtension=function(z){return _.k(z,_.js7)};
ph.prototype.JSC$13114_buildRequest=function(){};var D3=function(){};
_.m(D3,r3);D3.prototype.JSC$13114_getRequest=function(z){var l="/cross_account_channel_transfer";(z=this.getExtension(z))&&(l=TCf(l,{target_session:z.targetSessionIndex,source_rapt:z.sourceRapt,rapt:z.targetRapt}));return{input:l,requestShell:jn(l,"GET"),innerTubeRequest:{}}};
D3.prototype.getApiPaths=function(){return[]};
D3.prototype.getExtension=function(z){return _.k(z,V1M)};
D3.prototype.JSC$13114_buildRequest=function(){};var xG=function(){};
_.m(xG,r3);xG.prototype.getApiPaths=function(){return XE_};
xG.prototype.isNavigationCommand=function(){return!0};
xG.prototype.getExtension=function(z){return _.k(z,_.CM)};
xG.prototype.JSC$13114_buildRequest=function(z){var l=_.Bu().get("gsml","");l&&(z.safetyModeLockerObfuscatedGaiaId=l);z.userInterfaceTheme=_.Sb(!0);_.dD()?z.deviceTheme="DEVICE_THEME_SELECTED":_.LW5()?z.deviceTheme="DEVICE_THEME_SUPPORTED":z.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var O6=function(){};
_.m(O6,r3);O6.prototype.getApiPaths=function(){return lWn};
O6.prototype.getExtension=function(z){return _.k(z,jq_)};
O6.prototype.JSC$13114_buildRequest=function(z,l){if(l&&l.requestType&&(z.requestType=l.requestType,l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=l.nextUrl;I&&(_.SK1(I)||bf(I))&&(z.nextNavendpoint={urlEndpoint:{url:I}})}l&&l.channelSwitcherQuery&&(z.channelSwitcherQuery=l.channelSwitcherQuery);l&&l.triggerChannelCreation&&(z.triggerChannelCreation=l.triggerChannelCreation);var b;if(l==null?0:(b=l.contentOwnerConfig)==
null?0:b.externalContentOwnerId)z.contentOwnerConfig=l.contentOwnerConfig;z.callCircumstance=l&&l.requestType&&l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var v,M;l=z==null?void 0:(v=z.context)==null?void 0:(M=v.user)==null?void 0:M.onBehalfOfUser;if(l!==void 0){z.obfuscatedSelectedGaiaId=l;var x,g;z==null||(x=z.context)==null||(g=x.user)==null||delete g.onBehalfOfUser}var G,u;if(v=z==null?void 0:(G=z.context)==null?void 0:(u=G.user)==null?
void 0:u.serializedDelegationContext)z.selectedSerializedDelegationContext=v};var g8=function(){};
_.m(g8,r3);g8.prototype.getApiPaths=function(){return bfu};
g8.prototype.getExtension=function(z){return _.k(z,iwA)};
g8.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var Gm=function(){};
_.m(Gm,r3);Gm.prototype.getApiPaths=function(){return NUM};
Gm.prototype.getExtension=function(z){return _.k(z,_.eUM)};
Gm.prototype.JSC$13114_buildRequest=function(z,l){if(l=l.createBroadcastRequest)z.useMasks=l.useMasks,z.broadcastType=l.broadcastType,z.broadcastSource=l.broadcastSource,z.broadcastMetadata=l.broadcastMetadata,z.broadcastMetadataMask=l.broadcastMetadataMask,z.videoMetadata=l.videoMetadata,z.videoMetadataMask=l.videoMetadataMask,z.liveChatSettingsUpdate=l.liveChatSettingsUpdate,z.liveChatSettingsUpdateMask=l.liveChatSettingsUpdateMask,z.cloneVideoId=l.cloneVideoId,z.cloneWithOverrides=l.cloneWithOverrides,
z.targetEntity=l.targetEntity,z.scheduledRedirectMetadata=l.scheduledRedirectMetadata};var Nf=function(){};
_.m(Nf,r3);Nf.prototype.getApiPaths=function(){return Hfu};
Nf.prototype.getExtension=function(z){return _.k(z,SlI)};
Nf.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.params&&(z.params=l.params);I.questionText&&(z.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(z.optionText=I.optionText)};var E6=function(){};
_.m(E6,r3);E6.prototype.getApiPaths=function(){return C0u};
E6.prototype.getExtension=function(z){return _.k(z,T7_)};
E6.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var u$=function(){};
_.m(u$,r3);u$.prototype.getApiPaths=function(){return Y3_};
u$.prototype.getExtension=function(z){return _.k(z,ik_)};
u$.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var Z3=function(){};
_.m(Z3,r3);Z3.prototype.getApiPaths=function(){return c$n};
Z3.prototype.getExtension=function(z){return _.k(z,F1j)};
Z3.prototype.JSC$13114_buildRequest=function(z,l,I){l.params&&(z.params=l.params);l.continuation&&(z.continuation=l.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(z.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var Hs=function(){};
_.m(Hs,r3);Hs.prototype.getApiPaths=function(){return S34};
Hs.prototype.getExtension=function(z){return _.k(z,qlA)};
Hs.prototype.JSC$13114_buildRequest=function(z,l,I){l.params&&(z.params=l.params);I.continuation&&(z.continuation=I.continuation);"hidden"in I&&(z.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(z.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(l=XK0(_.jx(vV(I.invalidationPayload))),z.invalidationPayloadLastPublishAtUsec=hO(l,2));I.reloadActionPanel&&(z.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(z.fullReload=I.fullReload);
I.currentPlayerState&&(z.currentPlayerState=I.currentPlayerState)};var tL=function(){};
_.m(tL,r3);tL.prototype.getApiPaths=function(){return aWw};
tL.prototype.getExtension=function(z){return _.k(z,cvA)};
tL.prototype.JSC$13114_buildRequest=function(z,l){z.params=l.params};var Bs=function(){};
_.m(Bs,r3);Bs.prototype.getApiPaths=function(){return TUM};
Bs.prototype.getExtension=function(z){return _.k(z,AdM)};
Bs.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var Xj=function(){};
_.m(Xj,r3);Xj.prototype.getApiPaths=function(){return ddA};
Xj.prototype.getExtension=function(z){return _.k(z,Wqu)};
Xj.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var qf=function(){};
_.m(qf,r3);qf.prototype.getApiPaths=function(){return VT_};
qf.prototype.getExtension=function(z){return _.k(z,dl_)};
qf.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var i$=function(){};
_.m(i$,r3);i$.prototype.getApiPaths=function(){return J$M};
i$.prototype.getExtension=function(z){return _.k(z,o4A)};
i$.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var Fj=function(){};
_.m(Fj,r3);Fj.prototype.getApiPaths=function(){return xm0};
Fj.prototype.getExtension=function(z){return _.k(z,Y4_)};
Fj.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var Q2=function(){};
_.m(Q2,r3);Q2.prototype.getApiPaths=function(){return ZyA};
Q2.prototype.getExtension=function(z){return _.k(z,_.Pgu)};
Q2.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.params&&(z.params=l.params);I.client_message_id&&(z.clientMessageId=I.client_message_id);I.recaptcha_token&&(z.recaptchaToken=I.recaptcha_token);I.rich_message&&I.rich_message.text_segments?(l=I.rich_message.text_segments.map(function(b){var v={};b.text&&(v.text=b.text);b.emoji_id&&(v.emojiId=b.emoji_id);return v}),z.richMessage={textSegments:l}):I.message&&(z.message=I.message);
I.currentPlayerState&&(z.currentPlayerState=I.currentPlayerState)};var YG=function(){};
_.m(YG,r3);YG.prototype.getApiPaths=function(){return HyM};
YG.prototype.getExtension=function(z){return _.k(z,hCu)};
YG.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var Tm=function(){};
_.m(Tm,r3);Tm.prototype.getApiPaths=function(){return RGM};
Tm.prototype.getExtension=function(z){return _.k(z,rvA)};
Tm.prototype.JSC$13114_buildRequest=function(z,l,I){l.isUserInitiated&&(z.isUserInitiated=l.isUserInitiated);l.initiationSource&&(z.initiationSource=l.initiationSource);I.locationInfo&&(z.context.client.locationInfo=I.locationInfo)};var cs=function(){};
_.m(cs,r3);cs.prototype.getApiPaths=function(){return jJ_};
cs.prototype.getExtension=function(z){return _.k(z,wow)};
cs.prototype.JSC$13114_buildRequest=function(z,l,I){l.metadataUpdateRequest&&(l=l.metadataUpdateRequest,z.encryptedVideoId=l.encryptedVideoId,l.liveChat&&(l=l.liveChat,z.liveChat||(z.liveChat={}),l.performAsExternalChannelId&&(z.liveChat.performAsExternalChannelId=l.performAsExternalChannelId),l.source&&(z.liveChat.source=l.source)));var b;if(I==null?0:(b=I.liveChat)==null?0:b.liveChatSettings)z.liveChat||(z.liveChat={}),I=I.liveChat.liveChatSettings,z.liveChat.newLiveChatSettings=I,z.liveChat.newLiveChatSettingsMask||
(z.liveChat.newLiveChatSettingsMask={}),I.emojiReactionSet&&(z.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var S4=function(){};
_.m(S4,r3);S4.prototype.getApiPaths=function(){return QnA};
S4.prototype.getExtension=function(z){return _.k(z,_.z50)};
S4.prototype.JSC$13114_buildRequest=function(z,l,I){I.continuation?z.continuation=I.continuation:l.videoId&&(z.videoId=l.videoId);I.clientParams&&(z.clientParams=I.clientParams)};var d8=function(){};
_.m(d8,r3);d8.prototype.getApiPaths=function(){return ojj};
d8.prototype.getExtension=function(z){return _.k(z,_.vf)};
d8.prototype.JSC$13114_buildRequest=function(z,l){z.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";z.fetchCommentsParams={};l.videoId&&(z.fetchCommentsParams.encryptedVideoId=l.videoId);l.postId&&(z.fetchCommentsParams.postId=l.postId);l.externalChannelId&&(z.fetchCommentsParams.externalChannelId=l.externalChannelId);l.linkedCommentId&&(z.fetchCommentsParams.linkedCommentId=l.linkedCommentId);(0,_.h7.isEmpty)(z.fetchCommentsParams)&&delete z.fetchCommentsParams};var Ps=function(){};
_.m(Ps,r3);Ps.prototype.getApiPaths=function(){return l9};
Ps.prototype.JSC$13114_buildRequest=function(z){z.browseId="FEnotifications_inbox"};
Ps.prototype.getExtension=function(z){return _.k(z,_.CM)};var hL=function(){};
_.m(hL,r3);hL.prototype.getApiPaths=function(){return ojj};
hL.prototype.JSC$13114_buildRequest=function(z,l){l.signal==="GET_NOTIFICATIONS_MENU"&&(z.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");l.ctoken&&(z.ctoken=l.ctoken)};
var pX4=function(){};
_.m(pX4,hL);pX4.prototype.getExtension=function(z){return _.k(z,_.CM)};
var DKs=function(){};
_.m(DKs,hL);DKs.prototype.getExtension=function(z){return _.k(z,jln)};var s6=function(){};
_.m(s6,r3);s6.prototype.getApiPaths=function(){return eFM};
s6.prototype.getExtension=function(z){return _.k(z,_.CM)};
s6.prototype.JSC$13114_buildRequest=function(){};var r8=function(){};
_.m(r8,r3);r8.prototype.getApiPaths=function(){return zG_};
r8.prototype.getExtension=function(z){return _.k(z,U1z)||void 0};
r8.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params);l.secondaryParams&&(z.secondaryParams=l.secondaryParams)};var $G=function(){};
_.m($G,r3);$G.prototype.getApiPaths=function(){return lR_};
$G.prototype.getExtension=function(z){return _.k(z,FqI)};
$G.prototype.JSC$13114_buildRequest=function(z,l){l.undo&&(z.undo=l.undo);l.serializedOptOut&&(z.serializedOptOut=l.serializedOptOut);l.serializedRecordInteractionsRequest&&(z.serializedRecordInteractionsRequest=l.serializedRecordInteractionsRequest)};var e4=function(){};
_.m(e4,r3);e4.prototype.getApiPaths=function(){return vJ_};
e4.prototype.getExtension=function(z){return _.k(z,QPA)};
e4.prototype.JSC$13114_buildRequest=function(z,l){l.serializedInteractionsRequest&&(z.serializedRecordNotificationInteractionsRequest=l.serializedInteractionsRequest)};var w8=function(){};
_.m(w8,r3);w8.prototype.getApiPaths=function(){return ObS};
w8.prototype.getExtension=function(z){return _.k(z,pkt)};
w8.prototype.JSC$13114_buildRequest=function(z,l,I){l=l===void 0?{}:l;I=I===void 0?{}:I;l.videoId?z.videoId=l.videoId:l.playlistId&&(z.playlistId=l.playlistId);var b,v=(b=l.offlineWebClientEligibility)!=null?b:I.offlineWebClientEligibility;v&&(z.offlineWebClientEligibility=v);var M;if(b=(M=l.preferredFormatType)!=null?M:I.preferredFormatType)z.preferredFormatType=b;var x;if(M=(x=l.lastOfflineQualitySettingsSavedMs)!=null?x:I.lastOfflineQualitySettingsSavedMs)z.lastOfflineQualitySettingsSavedMs=M;
l.params&&(z.params=l.params)};var AL=function(){};
_.m(AL,r3);AL.prototype.getApiPaths=function(){return Kt};
AL.prototype.getExtension=function(z){return _.k(z,_.a2)};
AL.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.token&&(z.continuation=l.token);I.formData&&(z.formData=I.formData)};var Ws=function(){};
_.m(Ws,r3);Ws.prototype.getApiPaths=function(){return Kt};
Ws.prototype.getExtension=function(z){return _.k(z,PXj)};
Ws.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;z.continuation=I.continuation};var nh=function(){};
_.m(nh,r3);nh.prototype.getApiPaths=function(){return Kt};
nh.prototype.getExtension=function(z){return _.k(z,_.SK)};
nh.prototype.JSC$13114_buildRequest=function(z,l){var I,b=l.panelIdentifier||((I=l.identifier)==null?void 0:I.tag);b&&(z.panelId=b);var v;if((v=l.globalConfiguration)==null?0:v.params){var M;z.params=(M=l.globalConfiguration)==null?void 0:M.params}};
_.vP.Object.defineProperties(nh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Lh=function(){};
_.m(Lh,r3);Lh.prototype.getApiPaths=function(){return Kt};
Lh.prototype.getExtension=function(z){return _.k(z,CV_)};
Lh.prototype.JSC$13114_buildRequest=function(z,l){l.panelLoadingStrategy&&xCH(z,l.panelLoadingStrategy)};var U6=function(){};
_.m(U6,r3);U6.prototype.getApiPaths=function(){return Kt};
U6.prototype.getExtension=function(z){return _.k(z,$k_)};
U6.prototype.JSC$13114_buildRequest=function(z,l){l.loadingStrategy&&xCH(z,l.loadingStrategy)};var as=function(){};
_.m(as,r3);as.prototype.getApiPaths=function(){return Kt};
as.prototype.getExtension=function(z){return _.k(z,_.S9)};
as.prototype.JSC$13114_buildRequest=function(z,l){l.panelLoadingStrategy&&xCH(z,l.panelLoadingStrategy)};var V2=function(){};
_.m(V2,r3);V2.prototype.getApiPaths=function(){return Kt};
V2.prototype.getExtension=function(z){return _.k(z,emA)};
V2.prototype.JSC$13114_buildRequest=function(z,l){var I,b=(I=l.contentSourcePanelIdentifier)==null?void 0:I.tag;b&&(z.panelId=b);var v;if((v=l.globalConfiguration)==null?0:v.params){var M;z.params=(M=l.globalConfiguration)==null?void 0:M.params}};var j4=function(){};
_.m(j4,r3);j4.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
j4.prototype.getExtension=function(z){return _.k(z,wTu)};
j4.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var JL=function(){};
_.m(JL,r3);JL.prototype.getApiPaths=function(){return FrI};
JL.prototype.getExtension=function(z){return _.k(z,nKz)};
JL.prototype.JSC$13114_buildRequest=function(z,l){l.externalChannelId&&(z.externalChannelId=l.externalChannelId);l.superChatAction&&(z.superChatAction=l.superChatAction);l.superStickersAction&&(z.superStickersAction=l.superStickersAction)};var za=function(){};
_.m(za,r3);za.prototype.getApiPaths=function(){return q3_};
za.prototype.getExtension=function(z){return _.k(z,PS0)||_.k(z,x01)};
za.prototype.JSC$13114_buildRequest=function(z,l){l.videoIds?z.videoIds=l.videoIds:l.videoId&&(z.videoIds=[l.videoId]);l.playlistId&&(z.playlistId=l.playlistId);l.params&&(z.params=l.params);z.excludeWatchLater=!1};var lx=function(){};
_.m(lx,r3);lx.prototype.getApiPaths=function(){return y$u};
lx.prototype.getExtension=function(z){return _.k(z,_.GW)};
lx.prototype.JSC$13114_buildRequest=function(z,l,I){I.create_playlist_title?z.title=I.create_playlist_title:l.title&&(z.title=l.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var b=I.create_playlist_privacy_status;if(b!==0){if(b===1){b="PUBLIC";break a}if(b===2){b="UNLISTED";break a}}b="PRIVATE"}z.privacyStatus=b}else l.privacyStatus&&(z.privacyStatus=l.privacyStatus);I.create_playlist_description&&(z.description=I.create_playlist_description);l.videoIds&&
(z.videoIds=l.videoIds);l.params&&(z.params=l.params);l.sourcePlaylistId&&(z.sourcePlaylistId=l.sourcePlaylistId)};var IH=function(){};
_.m(IH,r3);IH.prototype.getApiPaths=function(){return kqI};
IH.prototype.getExtension=function(z){return _.k(z,nmA)};
IH.prototype.JSC$13114_buildRequest=function(z,l){z.playlistId=l.playlistId};var bx=function(){};
_.m(bx,r3);bx.prototype.getApiPaths=function(){return P0n};
bx.prototype.getExtension=function(z){return _.k(z,Kqw)};
bx.prototype.JSC$13114_buildRequest=function(z,l){l.playlistId&&(z.playlistId=l.playlistId);l.params&&(z.params=l.params)};var vk=function(){};
_.m(vk,r3);vk.prototype.getApiPaths=function(){return by_};
vk.prototype.getExtension=function(z){return _.k(z,_.M1)||void 0};
vk.prototype.JSC$13114_buildRequest=function(z,l){l.actions&&(z.actions=l.actions);l.params&&(z.params=l.params);l.playlistId&&(z.playlistId=l.playlistId)};var M0=function(){};
_.m(M0,r3);_.p=M0.prototype;_.p.getApiPaths=function(){return M5z};
_.p.getExtension=function(z){return _.k(z,_.FN)};
_.p.JSC$13114_buildRequest=function(z,l){l.videoId&&(z.playerRequest={videoId:l.videoId},l.playerParams&&(z.playerRequest.params=l.playerParams),l.racyCheckOk&&(z.playerRequest.racyCheckOk=!!l.racyCheckOk),l.contentCheckOk&&(z.playerRequest.contentCheckOk=!!l.contentCheckOk));l.params&&(z.params=l.params);l.inputType&&(z.inputType=l.inputType);z.disablePlayerResponse=!0};
_.p.getRequestConfig=function(z){var l;(z=this.JSC$13121_getStoreKey(z))&&(l={storeStrategy:{storeKey:z}});_.C("web_log_reels_ticks")&&(l=l||{},l.requestTick="r_wrs",l.responseTick="r_wrr");return l};
_.p.JSC$13121_getStoreKey=function(z){z=this.getExtension(z);if(z!=null&&z.videoId){var l={videoId:z.videoId};z.params&&(l.params=z.params);return _.J8("reel_item_watch",l)}};var pv=function(){};
_.m(pv,r3);_.p=pv.prototype;_.p.getApiPaths=function(){return pDu};
_.p.getExtension=function(z){return _.k(z,_.FN)};
_.p.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;z.sequenceParams=l.sequenceParams;var b;((b=I)==null?0:b.contentPlaybackContext)&&_.C("web_shorts_prefetch_service_enabled")&&(z.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.p.JSC$13121_getStoreKey=function(z){if(_.C("web_enable_delay_shorts_sequence_call")||_.C("shorts_controller_retrieve_seedless_sequence_v2"))if(z=this.getExtension(z),z==null?0:z.sequenceParams)return _.J8("reel_watch_sequence",{sequenceParams:z.sequenceParams})};
_.p.getRequestConfig=function(z){z=this.JSC$13121_getStoreKey(z);var l;z&&(l={storeStrategy:{storeKey:z}});_.C("reel_watch_sequence_request_log_ticks")&&(l=l||{},l.requestTick="r_wsrs",l.responseTick="r_wsrr",l.processorTick="r_wsrp");return l};
var DD=function(){};
_.m(DD,r3);DD.prototype.getApiPaths=function(){return pDu};
DD.prototype.getExtension=function(z){return _.k(z,_.a2)};
DD.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.token&&(z.continuation=l.token);var b;((b=I)==null?0:b.contentPlaybackContext)&&_.C("web_shorts_prefetch_service_enabled")&&(z.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
DD.prototype.getRequestConfig=function(z){z=this.JSC$13121_getStoreKey(z);var l;z&&(l={storeStrategy:{storeKey:z}});_.C("reel_watch_sequence_request_log_ticks")&&(l=l||{},l.requestTick="r_wsrs",l.responseTick="r_wsrr",l.processorTick="r_wsrp");return l};var xD=function(){};
_.m(xD,r3);xD.prototype.getApiPaths=function(){return tTj};
xD.prototype.getExtension=function(z){return _.k(z,_.tGn)};
xD.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.flagAction&&(z.action=l.flagAction);l.flagRequestType&&(z.flagRequestType=l.flagRequestType);l.additionalDetailCheckboxChecked&&(z.additionalDetailCheckboxChecked=l.additionalDetailCheckboxChecked);l.legalCheckboxChecked&&(z.legalCheckboxChecked=l.legalCheckboxChecked);l={};I.flag_issue_type!==void 0&&(l.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(l.affiliation=I.flag_affiliation);I.flag_full_name&&(l.fullName=I.flag_full_name);
Object.keys(l).length&&(z.legalReportDetails=l);if(I.flag_description||I.text)z.userComments=I.flag_description||I.text;l={};I.minutes!==void 0&&I.seconds!==void 0&&(l.minutes=I.minutes,l.seconds=I.seconds);I.vss_id&&(l.vssId=I.vss_id);Object.keys(l).length&&(z.videoReportDetails=l);l={};I.video_ids&&(l.videoIds=I.video_ids);I.impersonated_channel_url&&(l.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(l).length&&(z.channelAbuseReportDetails=l)};
_.vP.Object.defineProperties(xD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Om=function(){};
_.m(Om,r3);Om.prototype.getApiPaths=function(){return QJj};
Om.prototype.getExtension=function(z){return _.k(z,a0j)};
Om.prototype.JSC$13114_buildRequest=function(z,l){l.blockedForKidsContent&&(z.blockedForKidsContent=l.blockedForKidsContent)};var gv=function(){};
_.m(gv,r3);gv.prototype.getApiPaths=function(){return Oy_};
gv.prototype.getExtension=function(z){return _.k(z,D0f)};
gv.prototype.JSC$13114_buildRequest=function(z,l,I){z.params=l.params;I.impersonated_channel_url&&(z.impersonatedChannelUrl=I.impersonated_channel_url)};var Ga=function(){};
_.m(Ga,r3);Ga.prototype.getApiPaths=function(){return LW0};
Ga.prototype.getExtension=function(z){return _.k(z,_.VGA)};
Ga.prototype.JSC$13114_buildRequest=function(z,l){l.items&&(z.items=l.items);l.kidGaiaId&&(z.kidGaiaId=l.kidGaiaId)};var N0=function(){};
_.m(N0,r3);N0.prototype.getApiPaths=function(){return if_};
N0.prototype.getExtension=function(z){return _.k(z,_.SEj)};
N0.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params);l.targetId&&(z.targetId=l.targetId)};var Em=function(){};
_.m(Em,r3);Em.prototype.getApiPaths=function(){return EJI};
Em.prototype.getExtension=function(z){return _.k(z,JJ4)};
Em.prototype.JSC$13114_buildRequest=function(z,l){l.externalVideoId&&(z.externalVideoId=l.externalVideoId);l.query&&(z.query=l.query);l.sourceTimelines&&(z.sourceTimelines=l.sourceTimelines)};var ux=function(){};
_.m(ux,r3);ux.prototype.getApiPaths=function(){return uHI};
ux.prototype.getExtension=function(z){return _.k(z,_.a2)||void 0};
ux.prototype.JSC$13114_buildRequest=function(z,l){l.token&&(z.continuation=l.token)};
_.xKF=function(){};
_.m(_.xKF,r3);_.p=_.xKF.prototype;_.p.getApiPaths=function(){return uHI};
_.p.getExtension=function(z){return _.k(z,_.XN)||void 0};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13121_getStoreKey=function(z,l){l=l===void 0?{}:l;if(!l.disableCache&&(z=this.getExtension(z))&&z.query)return l={query:z.query},z.params&&(l.params=z.params),_.J8("search",l)};
_.p.JSC$13114_buildRequest=function(z,l,I){l.query&&(z.query=l.query);l.params&&(z.params=l.params);if(!_.C("web_forward_suggest_stats_killswitch")){var b=_.k(l,Hw_);b&&(z.suggestStats=b)}var v;!_.C("kevlar_searchbox_stats_killswitch")&&((v=I.tempData)==null?0:v.gs_l)&&!_.k(l,Hw_)&&(z.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l);var M;if((M=I.tempData)==null?0:M.entityMid)l=z.suggestionSearchParams||{},l.entityMid=I.tempData.entityMid,z.suggestionSearchParams=l;
if(_.C("enable_desktop_vdcbg_components")||_.C("enable_inline_muted_playback_on_web_search"))I=_.Bu().getFlag(186),z.inlineSettingStatus=I?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.p.getRequestConfig=function(z,l){l=l===void 0?{}:l;z=this.JSC$13121_getStoreKey(z,l);var I;z&&(I={storeStrategy:{storeKey:z}});_.C("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var ZD=function(){};
_.m(ZD,r3);ZD.prototype.getApiPaths=function(){return r$u};
ZD.prototype.getExtension=function(z){return _.k(z,MC_)};
ZD.prototype.JSC$13114_buildRequest=function(z,l){l.serializedGetSharingProviderDataParams&&(z.serializedGetSharingProviderDataParams=l.serializedGetSharingProviderDataParams)};var Hk=function(){};
_.m(Hk,r3);Hk.prototype.getApiPaths=function(){return $d0};
Hk.prototype.getExtension=function(z){return _.k(z,Cop)};
Hk.prototype.JSC$13114_buildRequest=function(z,l){l.endpoint&&(z.endpoint=l.endpoint);l.action&&(z.action=l.action)};var yU=function(){};
_.m(yU,r3);yU.prototype.getApiPaths=function(){return RFI};
yU.prototype.getExtension=function(z){return _.k(z,Ltj)};
yU.prototype.JSC$13114_buildRequest=function(z,l){z.videoId=l.videoId;l.scheduledRedirectMetadataSourceVideoId&&(z.scheduledRedirectMetadata={sourceVideoId:l.scheduledRedirectMetadataSourceVideoId})};var fv=function(){};
_.m(fv,r3);fv.prototype.getApiPaths=function(){return fR0};
fv.prototype.getExtension=function(z){return _.k(z,_.Uw_)};
fv.prototype.JSC$13114_buildRequest=function(z,l){z.params=l.params;z.correctionText=l.correctionText};var Cv=function(){};
_.m(Cv,r3);Cv.prototype.getApiPaths=function(){return pBH};
Cv.prototype.getExtension=function(z){return _.k(z,_.zJ_)};
Cv.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params);z.searchQuery=l.searchQuery;z.languageCode=l.languageCode;z.kind=l.kind;z.name=l.name;z.externalVideoId=l.externalVideoId};var kD=function(){};
_.m(kD,r3);kD.prototype.getApiPaths=function(){return Ss_};
kD.prototype.getExtension=function(z){return _.k(z,Oez)};
kD.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.params=l.params)};var RH=function(z){this.JSC$18163_storeWithEntities=z};
_.m(RH,r3);RH.prototype.getApiPaths=function(){return gj4};
RH.prototype.getExtension=function(z){return _.k(z,GKn)||_.k(z,EY4)};
RH.prototype.JSC$13114_buildRequest=function(z,l,I){I.client_data&&(z.clientData=I.client_data);if(l.commerceActionConfig){var b=l.commerceActionConfig;l=b.actionId;b=b.commerceActionParams;l&&(z.actionId=l);b&&(z.commerceActionParams=b)}else{var v=l.actionId,M=l.commerceActionParams;I=l.entityKeys;v&&(z.actionId=v);M&&(z.commerceActionParams=M);var x;l=(b=this.JSC$18163_storeWithEntities)==null?void 0:(x=b.getState())==null?void 0:x.entities;if(I&&l){b=[];x=_.D(I);for(I=x.next();!I.done;I=x.next())if(v=
I.value,I=_.Ep(v).entityType,v=_.Cc(l,I,v))M={},b.push((M[I]=v,M));z.entityMutationPayloads=b}}};
RH.prototype.getRequestConfig=function(z){var l,I=(l=_.k(z,GKn))==null?void 0:l.requestSequenceType;if(I&&z.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:z.clickTrackingParams,sequenceType:I}}};
RH[HG]=[gx];var mz=function(){};
_.m(mz,r3);mz.prototype.getApiPaths=function(){return dmA};
mz.prototype.getExtension=function(z){return _.k(z,_.YMu)};
mz.prototype.JSC$13114_buildRequest=function(z,l){l.feedbackData&&(z.feedbackData=l.feedbackData);l.params&&(z.itemParams=l.params)};
_.vP.Object.defineProperties(mz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Kv=function(){};
_.m(Kv,r3);Kv.prototype.getApiPaths=function(){return oJM};
Kv.prototype.getExtension=function(z){return _.k(z,TIA)};
Kv.prototype.JSC$13114_buildRequest=function(z,l,I){I.payments_payload&&(z.paymentsPayload=I.payments_payload);I.offer_params&&(z.offerParams=I.offer_params);l.transactionParams&&(z.transactionParams=l.transactionParams)};var tc=function(){};
_.m(tc,r3);tc.prototype.getApiPaths=function(){return PLw};
tc.prototype.getExtension=function(z){return _.k(z,_.co_)};
tc.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.buybucketParams&&(z.buybucketData={params:l.buybucketParams},l.stickerParams?z.buybucketData.stickerParams=l.stickerParams:(I.rich_chat_message?z.buybucketData.richChatMessage=I.rich_chat_message:I.chat_message_text&&(z.buybucketData.chatMessageText=I.chat_message_text),I.purchase_price_micros&&(z.buybucketData.purchasePriceMicros=I.purchase_price_micros.toString())));l.donationAmountMicros&&(z.tipAmountMicros=l.donationAmountMicros,
l.tipParams&&(z.tipParams=l.tipParams));l.offerParams&&(z.offerParams=l.offerParams);l.productData&&(z.productData=l.productData);l.transactionParams&&(z.transactionParams=l.transactionParams)};var Bk=function(){};
_.m(Bk,r3);Bk.prototype.getApiPaths=function(){return hGj};
Bk.prototype.getExtension=function(z){return _.k(z,oYI)};
Bk.prototype.JSC$13114_buildRequest=function(z,l){l.updateFopParams&&(z.updateFopParams=l.updateFopParams)};var X8=function(){};
_.m(X8,r3);X8.prototype.getApiPaths=function(){return sn_};
X8.prototype.getExtension=function(z){return _.k(z,_.Ma)};
X8.prototype.JSC$13114_buildRequest=function(z,l){l.couponCode&&(z.couponCode=l.couponCode);l.params&&(z.itemParams=l.params)};var q0=function(){};
_.m(q0,r3);q0.prototype.getApiPaths=function(){return rnj};
q0.prototype.getExtension=function(z){return _.k(z,_.NIu)};
q0.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;l.params&&(z.params=l.params);I.ctk&&(z.clientToken=I.ctk)};var ix=function(z){this.JSC$18198_storeWithEntities=z};
_.m(ix,r3);ix.prototype.getApiPaths=function(){return $m4};
ix.prototype.getExtension=function(z){return _.k(z,_.ZZ)};
ix.prototype.JSC$13114_buildRequest=function(z,l,I){I.purchase_price_micros&&(z.productData={pdgData:{purchasePriceMicros:I.purchase_price_micros.toString()}},I.rich_chat_message&&(z.productData.pdgData.richChatMessage=I.rich_chat_message),I.currency_code&&(z.productData.pdgData.currencyCode=I.currency_code));l.transactionParams&&(z.transactionParams=l.transactionParams);l.clientLocationContext&&(z.clientLocationContext=l.clientLocationContext);I.payments_payload&&(z.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(z.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var b,v;I=(b=this.JSC$18198_storeWithEntities)==null?void 0:(v=b.getState())==null?void 0:v.entities;if(l.entityKeys&&I){b=[];l=_.D(l.entityKeys);for(v=l.next();!v.done;v=l.next()){var M=v.value;v=_.Ep(M).entityType;if(M=_.Cc(I,v,M)){var x={};b.push((x[v]=M,x))}}z.entityMutationPayloads=b}};
ix[HG]=[gx];var F8=function(){};
_.m(F8,r3);F8.prototype.getApiPaths=function(){return eGu};
F8.prototype.getExtension=function(z){return _.k(z,SMA)};
F8.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;I.backend_analytics&&(z.serializedBackendAnalyticsEvent=I.backend_analytics);l.offerParams&&(z.offerParams=l.offerParams)};var QU=function(){};
_.m(QU,r3);QU.prototype.getApiPaths=function(){return sn_};
QU.prototype.getExtension=function(z){return _.k(z,e$H)};
QU.prototype.JSC$13114_buildRequest=function(z,l){l.params&&(z.itemParams=l.params)};var YD=function(){};
_.m(YD,r3);YD.prototype.getApiPaths=function(){return wDz};
YD.prototype.getExtension=function(z){return _.k(z,_.f$w)};
YD.prototype.JSC$13114_buildRequest=function(z,l,I){I.resume_time_ms&&(z.resumeTimeMs=I.resume_time_ms);l.pauseParams&&(z.pauseParams=l.pauseParams)};var Ta=function(){};
_.m(Ta,r3);Ta.prototype.getApiPaths=function(){return Anu};
Ta.prototype.getExtension=function(z){return _.k(z,_.dQ_)};
Ta.prototype.JSC$13114_buildRequest=function(z,l,I){I=I===void 0?{}:I;I.c&&(z.redeemCode=I.c);I.rd&&(z.riskData=I.rd);I.ctk&&(z.clientToken=I.ctk)};var ck=function(){};
_.m(ck,r3);ck.prototype.getApiPaths=function(){return WrA};
ck.prototype.getExtension=function(z){return _.k(z,_.Cr_)};
ck.prototype.JSC$13114_buildRequest=function(z,l){l.resumeParams&&(z.resumeParams=l.resumeParams)};var Sd=function(z,l){this.clientName=z;this.defaultExpirationDelayMs=l};
Sd.prototype.put=function(z,l){var I=this,b;return _.O(function(v){b=Object.assign({},l.data);b.key=z;b.clientName=I.clientName;b.expireTimestampMs===void 0&&(b.expireTimestampMs=(Math.round((0,_.Dr)())+I.defaultExpirationDelayMs).toString());return v.return(I.putInternal(z,b))})};
Sd[HG]=[M$,Hn4];var Ol1=function(){Sd.apply(this,arguments);this.JSC$18228_responseStore=new Map};
_.m(Ol1,Sd);_.p=Ol1.prototype;_.p.get=function(z){var l=this;return _.O(function(I){return I.return(s3(l,z))})};
_.p.putInternal=function(z,l){var I=this,b,v,M;return _.O(function(x){b=I.defaultExpirationDelayMs;l.expireTimestampMs&&(b=Number(l.expireTimestampMs)-Math.round((0,_.Dr)()),v=_.OI("mweb_override_response_store_expiration_ms"),v>0&&v<b&&(b=v));M=setTimeout(function(){I.remove(z)},b);
I.JSC$18228_responseStore.set(z,{entryData:l,timer:M});_.qe(x)})};
_.p.remove=function(z){var l=this;return _.O(function(I){gS8(l,z);_.qe(I)})};
_.p.removeAll=function(){var z=this;return _.O(function(l){z.JSC$18228_responseStore.forEach(function(I){clearTimeout(I.timer)});
z.JSC$18228_responseStore.clear();_.qe(l)})};
_.p.has=function(z){return!!this.JSC$18228_responseStore.get(z)};
_.p.getKeys=function(){return this.JSC$18228_responseStore.keys()};
var s3=function(z,l){if(z=z.JSC$18228_responseStore.get(l))return new _.h$(z.entryData)},gS8=function(z,l){var I=z.JSC$18228_responseStore.get(l);
I&&(clearTimeout(I.timer),z.JSC$18228_responseStore.delete(l))};var OCQ;var NdQ=function(z,l,I){Sd.call(this,z,l);this.token=I};
_.m(NdQ,Sd);_.p=NdQ.prototype;_.p.get=function(z){var l=this,I,b;return _.O(function(v){return v.nextAddress==1?v.yield(GPQ(l.token),2):v.nextAddress!=3?(I=v.yieldResult,v.yield(I.get("ResponseStore",[z,l.clientName]),3)):(b=v.yieldResult)?v.return(new _.h$(b)):v.return(void 0)})};
_.p.putInternal=function(z,l){var I=this,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(GPQ(I.token),2);b=v.yieldResult;return v.yield(b.put("ResponseStore",l),0)})};
_.p.remove=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(GPQ(l.token),2);I=b.yieldResult;return b.return(I.delete("ResponseStore",[z,l.clientName]))})};
_.p.removeAll=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return I.yield(GPQ(z.token),2);l=I.yieldResult;return I.yield(TSj(l,IDBKeyRange.only(z.clientName)),0)})};
_.p.has=function(){throw Error("cj");};_.dv=new _.yH("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var GcC=function(z){var l;this.stateTagsData=(l=z.responseContext)==null?void 0:l.stateTags},N4q=function(z){var l;
return((l=z.stateTagsData)==null?void 0:l.stateTagsModified)||[]};var ESs;ESs=function(z){this.JSC$18241_responseStore=z};
_.U2=function(z,l,I){if(!_.C("state_tags_killswitch")){var b=new GcC(l);if(N4q(b).length>0){var v=z.JSC$18241_responseStore.getKeys();v=_.D(v);for(var M=v.next();!M.done;M=v.next()){M=M.value;var x=s3(z.JSC$18241_responseStore,M);if(x){var g=_.x1(x);a:{var G=void 0;x=N4q(b);g=((G=(new GcC(g)).stateTagsData)==null?void 0:G.relevantStateTags)||[];G=_.D(g);for(g=G.next();!g.done;g=G.next())if(g=g.value,g.stateTag!=null&&x.includes(g.stateTag)&&g.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){x=
!0;break a}x=!1}x&&gS8(z.JSC$18241_responseStore,M)}}}}var u;b=(u=l.responseContext)==null?void 0:u.maxAgeSeconds;I&&b&&Number(b)>0&&(l=fY(l,b),z.JSC$18241_responseStore.put(I,new _.h$(l)))};
ESs.prototype.handleResponse=function(z,l){if(!l)throw Error("dj");var I,b;l=(I=l.config)==null?void 0:(b=I.storeStrategy)==null?void 0:b.storeKey;_.U2(this,z,l)};
ESs[HG]=[_.PE];_.kjQ=new _.yH("STORE_RESPONSE_PROCESSOR_TOKEN");var uql=function(z){this.JSC$18244_responseStore=z};
uql.prototype.handleResponse=function(z,l){if(l.input.match(_.Mo(pDu))){var I;if(z==null?0:(I=z.entries)==null?0:I.length)for(z=_.D(z.entries),l=z.next();!l.done;l=z.next()){I=l.value.command;var b=void 0;l=(b=_.k(I,_.FN))==null?void 0:b.unserializedPrefetchData;if(!I||!l)break;b=(new M0).JSC$13121_getStoreKey(I);var v=_.k(l,fZ_),M=void 0,x=void 0,g=void 0,G=_.OI("web_shorts_prefetch_service_ttl_seconds")>0?_.OI("web_shorts_prefetch_service_ttl_seconds"):Number((g=(M=v)==null?void 0:(x=M.responseContext)==
null?void 0:x.maxAgeSeconds)!=null?g:3600);b&&G>0&&(v=fY(v,G),this.JSC$18244_responseStore.put(b,new _.h$(v)));I=(new eC).JSC$13121_getStoreKey(I);l=_.k(l,IZ_);M=v=b=void 0;x=_.OI("web_shorts_prefetch_service_ttl_seconds")>0?_.OI("web_shorts_prefetch_service_ttl_seconds"):Number((M=(b=l)==null?void 0:(v=b.responseContext)==null?void 0:v.maxAgeSeconds)!=null?M:3600);I&&x>0&&(l=fY(l,x),this.JSC$18244_responseStore.put(I,new _.h$(l)))}}};
uql[HG]=[_.PE];var Zly=function(z){this.innertubeTransportService=z};
Zly.prototype.submitForm=function(z,l,I,b,v){var M=this,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1)return x={submitId:z,formData:l,submitBehavior:I,params:b},g=_.Mo(CLz),Z.yield(_.Gv(M.innertubeTransportService,x,g,v),2);G=Z.yieldResult;if(!G)return Z.return(Promise.reject(new _.qB("Submit API returned an undefined response. Submit ID: "+z)));u=G;return Z.return(u)})};
Zly[HG]=[_.AY,_.DQ];var oH=function(){this.scheduler=_.Y1()},HlC;
oH.prototype.pause=function(){throw Error("ej");};
oH.prototype.resume=function(){throw Error("ej");};
oH.prototype.queue=function(z){var l=this,I=_.b1(),b=_.qA(this.scheduler,function(){try{var v;if(_.KE.instance)var M=_.KE.instance;else{var x=new _.qB("Error: Unexpected uninitialized CommandHandler.");_.dE(x);M=void 0}(v=M)==null||v.resolveCommand(z.command);I.resolve()}catch(g){I.reject(g)}});
I.promise.thenCatch(function(v){v instanceof _.nj&&l.scheduler.cancelJob(b)});
return I.promise};
oH.prototype.queueAll=function(z){var l=new Map;z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,l.set(I.id,this.queue(I));return l};var fFK=function(z,l){var I=this;this.taskModel=z;this.onTaskCancelledCallback=l;this.resolver=_.b1();z=z.proto.prefetchConfig;if(!z)throw Error("fj");if(!z.prefetchAction)throw Error("gj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(b){b instanceof _.nj&&(yyK(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw b;});
this.timerName=this.taskModel.id;_.hH(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
fFK.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 yyK=function(z,l){_.om({prefetchInfo:{cancellationReason:l}},z.timerName)};
fFK.prototype.tick=function(z){_.sK(z,void 0,this.timerName)};var hc=function(){var z=this;this.scheduler=_.Y1();this.maxInflightTasks=_.OI("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.OI("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new GHn;this.onTaskCancelled=function(l,I){I&&z.scheduler.cancelJob(I);CKW(z,l);Pk(z,3)}},kcq=function(){hc.instance||(hc.instance=new hc);
return hc.instance};
hc.prototype.pause=function(){this.prefetchCoordinatorState=0};
hc.prototype.resume=function(){Pk(this,0)};
hc.prototype.queue=function(z){z=R1X(this,z);Pk(this,1);return z};
hc.prototype.queueAll=function(z){var l=new Map;z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,l.set(I.id,R1X(this,I));Pk(this,1);return l};
var R1X=function(z,l){var I=z.allPrefetchTasks.get(l.id);if(I)return I.cancellablePromise;try{var b=new fFK(l,z.onTaskCancelled)}catch(M){return _.Ph(M)}I=b;I.tick("pcq");var v={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(v.clientScreenNonce=I.taskModel.csn);_.om(v,I.timerName);z.allPrefetchTasks.set(l.id,b);z.drainingHeap.insert(-b.getPriority(),b);return b.cancellablePromise},
Pk=function(z,l){z.prefetchCoordinatorState===l&&(z.prefetchCoordinatorState=2,mK1(z))},mK1=function(z){for(var l={};z.prefetchCoordinatorState!==0;l={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(z.inflightPrefetchTasks.size>=z.maxInflightTasks){z.prefetchCoordinatorState=3;break}l.prefetchTask$jscomp$1=z.drainingHeap.remove();if(!l.prefetchTask$jscomp$1){z.prefetchCoordinatorState=1;break}l.taskId$jscomp$3=l.prefetchTask$jscomp$1.taskModel.id;if(z.allPrefetchTasks.has(l.taskId$jscomp$3)){var I=-1;z.coordinatorTimeoutMs>0&&(I=_.qA(z.scheduler,function(b){return function(){sm(z,b.taskId$jscomp$3,Error("hj"))}}(l),z.coordinatorTimeoutMs));
z.inflightPrefetchTasks.set(l.taskId$jscomp$3,I);if(!z.JSC$18264_commandHandler){if(!_.KE.instance){sm(z,l.taskId$jscomp$3,Error("ij"));continue}z.JSC$18264_commandHandler=_.KE.instance}a:switch(l.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}l.prefetchTask$jscomp$1.jobId=z.scheduler.addJob(function(b){return function(){b.prefetchTask$jscomp$1.tick("pcr");try{z.JSC$18264_commandHandler.resolveCommand(b.prefetchTask$jscomp$1.taskModel.command)||
sm(z,b.taskId$jscomp$3,Error("jj"))}catch(v){sm(z,b.taskId$jscomp$3,v)}}}(l),I,0)}}},K04=function(z,l){(l=CKW(z,l))!=null&&(l.resolver.resolve(),l.tick("pce"));
Pk(z,3)},sm=function(z,l,I){(l=CKW(z,l,I))!=null&&(l.resolver.reject(I),l.tick("pcc"),yyK(l,"CANCELLATION_REASON_ERROR"),Math.random()<=_.OI("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.qB("Prefetch Command failed.",l.taskModel.id,I.message),_.dE(I)));
Pk(z,3)},CKW=function(z,l,I){var b=z.allPrefetchTasks.get(l);
b?((I=z.inflightPrefetchTasks.get(l))&&I!==-1&&z.scheduler.cancelJob(I),z.inflightPrefetchTasks.delete(l),z.allPrefetchTasks.delete(l)):_.PW(new _.qB("Unexpected missing prefetch task when deleting task.",l,I==null?void 0:I.message));return b};var tW8=function(z,l,I,b,v){this.id=z;this.triggerOn=l;this.cancelOn=I;this.command=b;this.proto=v};
_.vP.Object.defineProperties(tW8.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var B4W=function(){this.JSC$18269_prefetchCoordinator=kcq();HlC||(HlC=new oH);this.defaultCoordinator=HlC},XXq;
B4W.getInstance=function(){XXq||(XXq=new B4W);return XXq};
B4W.prototype.get=function(z){switch(z){case 0:return this.JSC$18269_prefetchCoordinator;default:return this.defaultCoordinator}};var rv=function(){this.coordinatorSupplier=B4W.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},F01=function(z){var l=_.sU()||void 0,I=Object.keys(q8C)[0];
if(I){var b=z.taskIdByTriggerId.get(I);if(b!=null){z.taskIdByTriggerId.delete(I);I=[];b=_.D(b);for(var v=b.next();!v.done;v=b.next())if(v=z.tasks.get(v.value))l!=="UNDEFINED_CSN"&&(v.csn=l),I.push(v);I=ZCY(I);l=[];I=_.D(I);for(b=I.next();!b.done;b=I.next()){v=_.D(b.value);b=v.next().value;v=v.next().value;b=z.coordinatorSupplier.get(b).queueAll(v);b=_.D(b);var M=b.next();for(v={};!M.done;v={taskId$jscomp$9:void 0},M=b.next()){var x=_.D(M.value);M=x.next().value;x=x.next().value;v.taskId$jscomp$9=
M;M=x;l.push(v.taskId$jscomp$9);z.queuedPromisesByTask.set(v.taskId$jscomp$9,_.rO(M,function(g){return function(){ily(z,g.taskId$jscomp$9)}}(v)))}}}}else _.PW(new _.qB("Unexpected malformed TriggerEvent."))};
rv.prototype.trigger=function(z,l){var I=this,b=this.tasks.get(z);if(!b||this.queuedPromisesByTask.has(z))return!1;QCK(this,z,b.triggerOn);l!=="UNDEFINED_CSN"&&(b.csn=l);l=this.coordinatorSupplier.get(b.taskType).queue(b);this.queuedPromisesByTask.set(z,_.rO(l,function(){ily(I,z)}));
return!0};
rv.prototype.cancel=function(z){var l=this.queuedPromisesByTask.get(z);if(l)l.cancel();else return ily(this,z)};
var ily=function(z,l){z.queuedPromisesByTask.delete(l);var I=z.tasks.get(l);if(!I)return!1;z.tasks.delete(l);QCK(z,l,I.triggerOn);(I=ukt(I.cancelOn))&&(z=z.taskIdByCancelId.get(I))&&z.delete(l);return!0},QCK=function(z,l,I){(I=Object.keys(I)[0])&&(z=z.taskIdByTriggerId.get(I))&&z.delete(l)};var q8C={taskRegistered:{}},$D=function(){rv.instance||(rv.instance=new rv);this.JSC$18278_taskManager=rv.instance};
_.m($D,Zu);
$D.prototype.resolveCommand=function(z){var l=this,I,b;return _.O(function(v){I=_.k(z,HqA);if((b=I)==null||!b.tasks){var M=new _.qB("RegisterTasksCommand is missing tasks.");_.dE(M);return v.return()}M=l.JSC$18278_taskManager;for(var x=_.D(I.tasks),g=x.next();!g.done;g=x.next())if(g=g.value,g=g.id&&g.triggerOn&&g.cancelOn&&g.command?new tW8(g.id,g.triggerOn,g.cancelOn,g.command,g):void 0,g){var G=Object.keys(g.triggerOn)[0];if(G){var u=ukt(g.cancelOn);u?(M.tasks.set(g.id,g),M.taskIdByTriggerId.has(G)||M.taskIdByTriggerId.set(G,
new Set),M.taskIdByTriggerId.get(G).add(g.id),M.taskIdByCancelId.has(u)||M.taskIdByCancelId.set(u,new Set),M.taskIdByCancelId.get(u).add(g.id)):_.PW(new _.qB("Unexpected malformed cancelOn field."))}else _.PW(new _.qB("Unexpected malformed triggerOn field."))}else _.PW(new _.qB("Unexpected malformed Task proto."));F01(l.JSC$18278_taskManager);_.qe(v)})};var Y8S={},T4S=(Y8S.rendered={priority:_.C("web_adaptive_early_init")?8:0,callback:function(){var z={};z.numCpu=navigator.hardwareConcurrency;var l={};l.ramGb=_.v7.navigator.deviceMemory;var I={staticContext:{}};l.ramGb&&ezY(l.ramGb)&&(I.staticContext.memoryTotalKbytes=(l.ramGb*1048576).toString());z.numCpu&&ezY(z.numCpu)&&(I.staticContext.cpuCores=z.numCpu);if(_.C("web_enable_adaptive_appl_signal")){z={};l=Jv7();l=l.length>0?l[0]:void 0;var b,v=(b=_.e_("rses_dpj"))!=null?b:l==null?void 0:l.tick.rses_dpj,
M;b=(M=_.e_("rsef_dpj"))!=null?M:l==null?void 0:l.tick.rsef_dpj;v&&Number(v)>0&&b&&Number(b)>0&&(M=Math.ceil(Number(b)-Number(v)),M>0&&(z.loadLatency=M));z.loadLatency&&ezY(z.loadLatency)&&(I.appL=z.loadLatency.toString())}_.cW("applicationStarted",I);wku=I;_.C("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Ac7)}},Y8S);var cyX=new _.yH("WINDOW_ON_ERROR"),S8K=new _.yH("ERROR_WEIGHT_MAPS"),dKc=new _.yH("INIT_ERROR");var oSq={},PKS=(oSq.initialized={priority:10,callback:function(z){z.injector.resolve(dKc)()}},oSq);var h1K=function(){},sCq=function(){var z=_.W8("meta_logger_impl");
z||(z=new h1K,_.vd("meta_logger_impl",z));return z},ryC=function(){sCq().csiSubscriptionKey=iJ1("meta_logging_csi_event",function(z){var l=z.timerName;
if(z=z.timelineData){_.hH(l,{startTime:z.startTime},l);z.infos&&_.om(z.infos,l);for(var I=_.D(Object.keys(z.ticks)),b=I.next();!b.done;b=I.next())b=b.value,_.sK(b,z.ticks[b],l)}})};
h1K.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Yxf(this.csiSubscriptionKey)};var $KS={},e1C=($KS.initialized={priority:10,callback:function(){ryC()}},$KS);var wX1=function(z,l){this.innertubeClientName=z;this.JSC$18289_prefCookie=l};
wX1.prototype.record=function(){if(_.C("web_li_record_binary_eval_tick")){var z=_.e_("rsef_dpj");var l=_.e_("rses_dpj");z=z!==void 0&&l!==void 0?Math.round(z-l):void 0;if(z!==void 0&&z>0){l=_.rD(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(l.valuesSeen>=1E9)){if(l.valuesSample.length<I)l.valuesSample.push(z);else{var b=Math.floor(Math.random()*(l.valuesSeen+1));b<I&&(l.valuesSample[b]=z)}l.valuesSeen+=1}_.sr(this.storagePrefix+"-"+this.innertubeClientName,
l,2592E3);z=l.valuesSample;l=HC5(z);z=z.length<this.poolSize?void 0:l<400?1:l<1700?2:3;z!==void 0&&(this.JSC$18289_prefCookie.set(this.cookiePrefix+this.innertubeClientName,z),this.JSC$18289_prefCookie.save())}}else _.$W(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18289_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18289_prefCookie.save()};
wX1[HG]=[M$,$X];var AyX=function(){wX1.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.m(AyX,wX1);var W0F=new _.yH("PAGE_LOAD_TIME_TOKEN");var nS4=function(z){this.signal=z;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;z.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.qA(_.ow,this.disableLoggingAndSendPayload,1E4)};
nS4.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.ow.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),L0y(this))};
var L0y=function(z){var l=_.h8();if(l){var I={webClientComponentsData:{components:Array.from(z.ids,function(b){return{id:b}})}};
z.ids.clear();_.iY().visualElementStateChanged(l,I)}};var UKK=_.$l({a11y:_.JZw});_.aFc=_.eO(UKK)(UKK.a11y,{ephemeralActionSelector:function(z){return z.ephemeralAction||null}});var VWK=_.$l({continuation:_.Iu_});var jCq=_.eO(VWK)(VWK.continuation,{continuationCommandSelector:function(z){return z.continuationCommand}});var JyK=new _.yH("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var ed=function(z,l){this.JSC$18318_storeWithEntities=z;this.JSC$18318_commandHandler=l;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
ed.prototype.start=function(){this.JSC$18318_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
ed.prototype.observeDownloadingEntities=function(){var z=_.uTG(this.JSC$18318_storeWithEntities.getState().entities).map(function(b){return Zt7(b)});
if(z.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var l={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:HVH()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.xw(_.mY("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18318_commandHandler.resolveCommand(l)}this.downloadingEntities=z}else if(this.downloadingEntities.length){var I=EmH(this.JSC$18318_storeWithEntities.getState().entities).map(function(b){return Zt7(b)});
this.downloadingEntities.filter(function(b){return I.includes(b)}).length&&(z={openPopupAction:z0p()},this.JSC$18318_commandHandler.resolveCommand(z));
this.downloadingEntities=[]}};
ed[HG]=[gx,_.DQ];var zZs;_.wv=function(z,l,I,b,v,M,x,g){this.JSC$18321_playerApiPromise=z;this.JSC$18321_commandHandler=l;this.JSC$18321_screenManager=I;this.offlineWebClientEligibility=b;this.JSC$18321_prefStorage=v;this.JSC$18321_actionRouter=M;this.entityTypeMap=x;this.JSC$18321_persistentStorePromiseAccessor=g;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
zZs=function(){var z=_.pG().resolve(_.wv),l;_.O(function(I){if(I.nextAddress==1)return z.downloadFailureListenerBound?I.return():I.yield(z.JSC$18321_playerApiPromise,2);l=I.yieldResult;l.addEventListener("onOfflineOperationFailure",function(b){if(b.failureReason&&b.entityKey&&b.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(b.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var v=_.Ep(b.entityKey).entityId;v&&z.JSC$18321_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
v)}else if(_.C("kevlar_woffle")){v=z.JSC$18321_commandHandler;var M=v.resolveCommand;b=b.failureReason;var x=_.mY("TRANSFER_FAILED",void 0,"Download failed");b==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(x=_.mY("STORAGE_FULL",void 0,"Storage full"));M.call(v,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.xw(x),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
z.downloadFailureListenerBound=!0;_.qe(I)})};
_.wv.prototype.deleteVideo=function(z,l){var I=this,b,v,M;return _.O(function(x){if(x.nextAddress==1)return x.yield(I.JSC$18321_playerApiPromise,2);b=x.yieldResult;M={offlineLoggingData:{offlineDeleteReason:(v=l)!=null?v:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return x.yield(b.queueOfflineAction(z,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",M),0)})};
_.wv.prototype.pauseVideoDownload=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.JSC$18321_playerApiPromise,2);I=b.yieldResult;I.pauseVideoDownload(z);_.qe(b)})};
_.wv.prototype.resumeVideoDownload=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.JSC$18321_playerApiPromise,2);I=b.yieldResult;return b.yield(I.resumeVideoDownload(z),0)})};
_.wv[HG]=[_.HU,_.DQ,_.br,JyK,Wz,tM,az_,$T];var la0=new _.yH("DOWNLOAD_STATE_STORE_TOKEN");var IaS=function(z,l){this.JSC$18341_persistentStorePromiseAccessor=z;this.store=l;this.upliftCompletionResolver=new _.yX},MA1=function(){var z=_.pG().resolve(bDC),l;
_.O(function(I){switch(I.nextAddress){case 1:if(z.upliftImplPromise)return I.return(z.upliftImplPromise);_.RL(I,2);z.upliftImplPromise=vR8(z);return I.yield(z.upliftImplPromise,4);case 4:z.upliftCompletionResolver.resolve();_.a3(I,3);break;case 2:throw l=_.XP(I),z.upliftCompletionResolver.reject(l),l;case 3:return I.return(z.upliftImplPromise)}})},vR8=function(z){var l,I,b;
return _.O(function(v){switch(v.nextAddress){case 1:return _.rr("LOGGED_IN")?v.yield(z.JSC$18341_persistentStorePromiseAccessor(),2):v.return();case 2:l=v.yieldResult;if(!l)return _.sK("vdeur"),v.return();_.sK("vdeus");_.RL(v,3);return v.yield(pQs(l),5);case 5:I=v.yieldResult;z.store.dispatch(Jdk(I));l.observe(function(M){zXt(z.store,M)});
_.a3(v,4);break;case 3:throw b=_.XP(v),_.sK("vdeur"),b;case 4:_.sK("vdeuc"),_.qe(v)}})},pQs=function(z){var l;
return _.O(function(I){if(I.nextAddress==1)return I.yield(mCp(z),2);l=I.yieldResult;return I.return(l.reduce(function(b,v){if(!v.data||!v.key||!v.entityType)return b;b[v.entityType]||(b[v.entityType]={});b[v.entityType][v.key]=v.data;return b},{}))})};
IaS[HG]=[$T,_.G$];var bDC;bDC=new _.yH("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Ac=new _.yH("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Wk=function(z,l){this.JSC$18344_persistentStorePromiseAccessor=z;this.transportService=l};
Wk.prototype.refresh=function(){var z=this,l,I,b,v;return _.O(function(M){if(M.nextAddress==1)return _.rr("LOGGED_IN")?M.yield(z.JSC$18344_persistentStorePromiseAccessor(),2):M.return();if(M.nextAddress!=3)return(l=M.yieldResult)?M.yield(p3Q(l),3):M.return();if((I=M.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.Dr)()))return M.return();b={browseId:"SPaccount_downloads"};v=_.Mo(l9);_.Gv(z.transportService,b,v).then(function(x){var g;if(l&&(x==null?void 0:(g=x.responseContext)==null?void 0:
g.maxAgeSeconds)!==0){var G;g=(x==null?void 0:(G=x.responseContext)==null?void 0:G.maxAgeSeconds)||604800;G=String(Math.floor((0,_.Dr)())+g*1E3);l.put("service:downloads_settings:fallback",new _.h$({innertubeResponse:x,refreshTimestampMs:G}))}});
_.qe(M)})};
Wk[HG]=[_.dv,_.AY];var nv=function(z,l){this.JSC$18348_playerPromise=z;this.store=l;this.started=!1};
nv.prototype.start=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return z.started?I.return():I.yield(z.JSC$18348_playerPromise,2);l=I.yieldResult;l.addEventListener("onOrchestrationBecameLeader",z.updateIsLeader.bind(z,!0));l.addEventListener("onOrchestrationLostLeader",z.updateIsLeader.bind(z,!1));if(l.isOrchestrationLeader)z.updateIsLeader(l.isOrchestrationLeader());else{var b=new _.qB("Function isOrchestrationLeader is undefined",{"player.isReady":l.isReady(),"player.playVideo":l.playVideo?
"defined":"undefined"});_.dE(b);z.updateIsLeader(!1)}z.started=!0;_.qe(I)})};
nv.prototype.updateIsLeader=function(z){this.store.dispatch(_.GZ({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:z}}))};
nv[HG]=[_.HU,_.G$];var DZC=function(z,l){this.networkStatusManager=z;this.JSC$18351_prefStoragePromise=l;this.redirectsToPreload=["https://youtube.com"]},xZs=function(){var z=_.pG().resolve(DZC),l,I,b,v,M,x;
_.O(function(g){switch(g.nextAddress){case 1:return g.yield(z.JSC$18351_prefStoragePromise,2);case 2:l=g.yieldResult;if(!(I=l)){g.jumpTo(3);break}return g.yield(l.get("yt-redirect-prefetch-id"),4);case 4:I=g.yieldResult;case 3:if(I||!z.networkStatusManager.isNetworkAvailable())return g.return();b={cache:"reload",redirect:"manual"};v=_.D(z.redirectsToPreload);M=v.next();case 5:if(M.done){if(!l){g.jumpTo(0);break}return g.yield(l.set("yt-redirect-prefetch-id",!0,86400),0)}x=M.value;_.RL(g,8);return g.yield(_.v7.fetch(x,
b),10);case 10:_.a3(g,6);break;case 8:_.XP(g);case 6:M=v.next(),g.jumpTo(5)}})};var Lv=function(z){z?(this.container=z,this.containerWasInjected=!0):this.containerWasInjected=!1};
Lv.prototype.openDialog=function(z,l,I){var b=this,v;return _.O(function(M){(v=b.container)==null||v.openDialog(z,l,I);_.qe(M)})};
Lv.prototype.closeDialog=function(){var z=this,l;return _.O(function(I){(l=z.container)==null||l.closeDialog();_.qe(I)})};
Lv.prototype.isDialogOpen=function(){var z=this,l,I;return _.O(function(b){return b.return((I=(l=z.container)==null?void 0:l.isDialogOpen())!=null?I:!1)})};
Lv[HG]=[_.MB(YTM)];_.ODK=new _.yH("POPUP_CONTROLLER_TOKEN");var gRc=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
gRc.prototype.registerPanel=function(z,l){if(z){this.panelMap.set(z,l);var I=this.pendingPanelResolvers.get(z);I&&(I.resolve(l),this.pendingPanelResolvers.delete(z))}};
gRc.prototype.getPanel=function(z){var l=this,I;return _.O(function(b){return(I=l.panelMap.get(z))?b.return(I):b.return(GT0(l,z))})};
var GT0=function(z,l){var I,b;return _.O(function(v){if(I=z.pendingPanelResolvers.get(l))return v.return(I.promise);b=new _.yX;z.pendingPanelResolvers.set(l,b);return v.return(b.promise)})},N00=function(z,l){gRc.call(this);
var I=this;this.popupController=z;this.persistentPanelController=l;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return I.panelMap.size}}};
_.m(N00,gRc);_.p=N00.prototype;_.p.getReloadContinuation=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(l.getPanel(z),2);I=b.yieldResult;return b.return(I.getReloadContinuation())})};
_.p.showPanel=function(z,l,I,b,v,M,x){var g=this,G,u,Z,H;return _.O(function(y){if(y.nextAddress==1){x&&g.updatePanelContinuationDatas.set(z,x);if((G=I)==null?0:(u=G.engagementPanelPopupPresentationConfig)==null?0:u.popupType)if(Z=I.engagementPanelPopupPresentationConfig.popupType,v===void 0&&(v=document.body),Z==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!g.persistentPanelController)return _.PW(new _.qB("Persistent panel controller is not available.")),y.return();var f=g.persistentPanelController;
f.persistentPanelIdentifiers.has(z)||(f.persistentPanelWrapper.appendChild(f.engagementPanelElement({panelIdentifier:z},{isPersistentPanel:!0})),f.persistentPanelIdentifiers.add(z));a:switch(_.JR.currentPageSubTypeSelector(f.store.getState())){case "watch":var R="WATCH";break a;default:R="APP"}_.ER0(f,R);f.store.dispatch(zpp(!0))}else{if(Z==="PANEL_POPUP_TYPE_DIALOG"||Z==="PANEL_POPUP_TYPE_DROPDOWN"){f=y.return;R=g.popupController;var F=R.openPopup;a:switch(Z){case "PANEL_POPUP_TYPE_DIALOG":var Y=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Y="DROPDOWN";break a;default:throw Error("lj`"+Z);}return f.call(y,F.call(R,z,l,Y,v))}_.PW(new _.qB("Popup type "+Z+" not supported in PanelController."))}return y.yield(g.getPanel(z),2)}H=y.yieldResult;(l||M)&&H.updatePanel(l,!1,b,M);H.showPanel(b);_.qe(y)})};
_.p.hidePanel=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(l.getPanel(z),2);I=v.yieldResult;I.hidePanel();l.popupController.closePopup(z);(b=l.persistentPanelController)!=null&&b.persistentPanelIdentifiers.has(z)&&b.store.dispatch(zpp(!1));_.qe(v)})};
_.p.isVisible=function(z,l){var I=this,b;return _.O(function(v){if(v.nextAddress==1)return l&&!I.panelMap.has(z)?v.return(!1):v.yield(I.getPanel(z),2);b=v.yieldResult;return v.return(b.isVisible())})};
_.p.updatePanel=function(z,l,I,b,v,M){I=I===void 0?!1:I;var x=this,g;return _.O(function(G){if(G.nextAddress==1){if(!l&&!v)return G.return();M&&x.updatePanelContinuationDatas.set(z,M);return G.yield(x.getPanel(z),2)}g=G.yieldResult;g.updatePanel(l,I,b,v);_.qe(G)})};
_.p.registerPanelContent=function(z,l){z&&this.panelContentMap.set(z,l)};
_.p.unregisterPanelContent=function(z){this.panelContentMap.delete(z)};
_.p.getPanelContent=function(z){return this.panelContentMap.get(z)};
_.p.getUpdatePanelContinuationData=function(z){return this.updatePanelContinuationDatas.get(z)};
N00[HG]=[_.ODK,_.MB(_.vD)];var Um=function(z,l){this.innertubeTransportService=z;this.JSC$18368_screenManager=l},urs=function(z){var l;
return!((l=z.panelLoadingStrategy)==null||!l.requestTemplate)};
Um.prototype.makeRequest=function(z){var l=this,I,b;return _.O(function(v){switch(v.nextAddress){case 1:if(!urs(l)){v.jumpTo(2);break}_.RL(v,3);return v.yield(_.I0(l.innertubeTransportService,z),5);case 5:return I=v.yieldResult,I?v.return(I.content):(_.dE(Error("mj")),v.return(void 0));case 3:b=_.XP(v),_.dE(b);case 2:return v.return(void 0)}})};
Um.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Um.prototype.execute=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H;return _.O(function(y){if(y.nextAddress==1){I=z;b=I.data;v=I.fallbackVe;M=I.parentVe;x=I.createScreenConfig;g=I.renderFn;G=I.command;l.panelLoadingStrategy=b;var f,R,F=((f=l.panelLoadingStrategy)==null?0:f.screenVe)?(R=l.panelLoadingStrategy)==null?void 0:R.screenVe:v;F&&_.db(l.JSC$18368_screenManager,F,M,x);return(u=l.getContent())?y.yield(g(u),2):y.jumpTo(2)}return y.nextAddress!=4?urs(l)?y.yield(l.makeRequest(G),4):y.return():(H=Z=
y.yieldResult)?y.yield(g(H),0):y.return()})};
Um[HG]=[_.AY,_.br];var ZD1;ZD1=function(z,l){this.engagementPanelElement=z;this.store=l;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%"};
_.ER0=function(z,l){var I=z.persistentPanelContainerMap.get(l);I?(z=z.persistentPanelWrapper,_.Nt=!0,_.EW.set(z,!0),I.insertBefore(z,null),_.EW.delete(z),_.Nt=!1):_.PW(new _.qB("Persistent panel container not found for surface "+l+"."))};
ZD1[HG]=[T64,_.G$];var aH=function(){};
aH.prototype.getContainer=function(){return _.pM()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
aH.prototype.openSheet=function(z,l){var I=this,b,v,M,x,g,G;return _.O(function(u){switch(u.nextAddress){case 1:return b={stack:[],error:void 0,hasError:!1},_.RL(u,2,3),v=Ij,u.yield(I.isSheetOpen(),5);case 5:M=u.yieldResult;pqu(b,q5S(v));if(M){if(_.C("web_close_sheet_if_same_target_killswitch")&&l&&I.currentTarget===l)return(x=I.getContainer())==null||x.closeSheet(),u.return();I.pendingData={data:z,target:Cu8(I,l)};return u.return()}z.viewModel&&(z={viewModel:z.viewModel});(g=I.getContainer())==null||
g.openSheet(z,l);I.currentTarget=l;case 3:_.K4(u);D7p(b);_.B0(u,0);break;case 2:G=_.XP(u),b.error=G,b.hasError=!0,u.jumpTo(3)}})};
aH.prototype.closeSheet=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return I.yield((l=z.getContainer())==null?void 0:l.closeSheet(),2);if(I.nextAddress!=4)return z.currentTarget=void 0,z.pendingData?I.yield(z.openSheet(z.pendingData.data,z.pendingData.target),4):I.jumpTo(0);z.pendingData=void 0;_.qe(I)})};
aH.prototype.isSheetOpen=function(){var z=this,l,I;return _.O(function(b){return b.return((I=(l=z.getContainer())==null?void 0:l.isSheetOpen())!=null?I:!1)})};
var Cu8=function(z,l){if(!_.C("web_parent_target_for_sheets"))return l;var I,b;return(b=(I=z.getContainer())==null?void 0:I.getParentTarget(l))!=null?b:l};var GY=window.documentPictureInPicture;var SQQ=_.zs(["dark"]),dC1=_.zs(["system-icons"]),ooH=_.zs(["typography"]),PZt=_.zs(["lang"]),h07=_.zs(["style"]),QN1=_.zs(["dir"]),YQ$=_.zs(["rounded-container"]),Td$=_.zs(["style"]),rbp=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],VU=function(z){this.JSC$18385_clientRoot=z;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
VU.prototype.openWindow=function(z){var l=this,I,b;return _.O(function(v){switch(v.nextAddress){case 1:if(!window.documentPictureInPicture||!_.iH()||l.currentPipWindow)return v.return(!1);_.RL(v,2);return v.yield((b=GY?GY:null)==null?void 0:b.requestWindow(z),4);case 4:I=v.yieldResult;_.a3(v,3);break;case 2:return _.XP(v),v.return(!1);case 3:if(!I)return v.return(!1);I.addEventListener("pagehide",function(){HDq(l)});
I.addEventListener("resize",l.handlePipWindowResize);l.pipWindowResizeDelay=new _.DV(function(){l.currentPipWindow&&_.Gb(l.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.X5(l.currentPipWindow.innerWidth,l.currentPipWindow.innerHeight)])},I);
sN7(I);e01(I);return v.yield(Fwx(I),5);case 5:if(!X3Q())return v.return(!1);l.currentPipWindow=I;l.JSC$18385_eventForwarder=$CG(I,l.JSC$18385_clientRoot);l.pipWindowResizeDelay.start();return v.return(!0)}})};
VU.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var HDq=function(z){if(z.currentPipWindow){var l,I;(l=GY?GY:null)==null||(I=l.window)==null||I.close();z.currentPipWindow.removeEventListener("resize",z.handlePipWindowResize);var b;(b=z.pipWindowResizeDelay)==null||b.dispose();z.pipWindowResizeDelay=void 0;var v;(v=z.JSC$18385_eventForwarder)==null||v.stop();z.JSC$18385_eventForwarder=void 0;l=_.D(z.onCloseCallbacks);for(I=l.next();!I.done;I=l.next())I=I.value,I();z.onCloseCallbacks=[];z.currentPipWindow=null}};
VU.prototype.getWindow=function(){return this.currentPipWindow};
var yTS=function(z,l){var I;(I=z.onCloseCallbacks)==null||I.push(l)};
VU.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.iH()};
_.vP.Object.defineProperties(VU.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
VU[HG]=[U3n];var fay=new _.yH("PICTURE_IN_PICTURE_CONTROLLER");var w3p=function(z,l){this.lengthY=this.lengthX=0;this.lengthX=l.x-z.x;this.lengthY=l.y-z.y};var C8c=function(){},in8=function(z,l){var I;
(I=z.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:l}))};var kTc=function(){};
kTc.prototype.openPopup=function(z,l,I,b){var v=this,M;return _.O(function(x){if(!v.container)return x.return();M={openPopupAction:{popup:l,popupType:I,uniqueId:z}};return x.return(v.container.handleOpenPopupAction(M,b))})};
kTc.prototype.closePopup=function(z){this.container&&this.container.closePopup(z)};var RZq=function(){this.openTunnels=new Map},U07=function(z,l,I){if(aet(I)){var b=_.n0(I,"gclid");
I={handleEvent:function(g){l&&!l.closed&&typeof l.postMessage==="function"&&g&&g.origin&&g.source===l&&g.data&&g.data.action==="gcl_setup"&&l.postMessage(Object.assign({},{action:"gcl_transfer"},b&&{gclid:b},{gadSource:2}),g.origin)}};
for(var v=_.D(z.openTunnels),M=v.next();!M.done;M=v.next()){var x=_.D(M.value);M=x.next().value;x=x.next().value;if(M.closed)try{window.removeEventListener("message",x),z.openTunnels.delete(M)}catch(g){_.dE(g)}}l&&z.openTunnels.size<15&&(z.openTunnels.set(l,I),window.addEventListener("message",I))}};var mZc=function(){this.clientParams=new Map},R_I=function(z){for(var l=_.D(z.clientParams.keys()),I=l.next();!I.done;I=l.next())I=I.value,I.startsWith("yt-mini-app-share")&&z.clientParams.delete(I)};var tAC=function(z){_.Q9.call(this);this.JSC$18407_shortsController=z;K7K(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.m(tAC,_.Q9);var K7K=function(z){var l,I;(l=z.JSC$18407_shortsController)==null||(I=l.playerApi)==null||I.then(function(b){b&&(b.addEventListener("onPlaybackAudioChange",function(){B0s(z,b)}),B0s(z,b))})};
tAC.prototype.removeAudioTrackEventListener=function(){var z=this,l,I;(l=this.JSC$18407_shortsController)==null||(I=l.playerApi)==null||I.then(function(b){b&&b.removeEventListener("onPlaybackAudioChange",function(){B0s(z,b)})})};
var B0s=function(z,l){l=(l==null?void 0:l.getAvailableAudioTracks().length)>1&&(l==null?void 0:l.getAudioTrack())||void 0;var I;(I=z.JSC$18407_shortsController)==null||XQK(I,l)};var iD0=function(z){_.Q9.call(this);this.JSC$18410_shortsController=z;qvC(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.m(iD0,_.Q9);var qvC=function(z){z.JSC$18410_shortsController.playerApi.then(function(l){l&&(l.addEventListener("captionschanged",function(){F7K(z,l)}),F7K(z,l))})};
iD0.prototype.removeCaptionTrackEventListener=function(){var z=this;this.JSC$18410_shortsController.playerApi.then(function(l){l&&l.removeEventListener("captionschanged",function(){F7K(z,l)})})};
var F7K=function(z,l){l=l==null?void 0:l.getOption("captions","track");Qus(z.JSC$18410_shortsController,l)};var Yvl=function(z,l){_.Q9.call(this);var I=this;this.JSC$18413_shortsController=z;this.storeWithShorts=l;z=_.Wf(this.storeWithShorts,_.Zaf,function(b){if(b){var v,M=(v=I.JSC$18413_shortsController.getRoot())==null?void 0:v.getPlayer(),x;(v=(x=I.JSC$18413_shortsController.alternativePlayerContainerElement)==null?void 0:x.getPlayerContainer())&&(M==null||M.appendTo(v))}else{var g;x=(g=I.JSC$18413_shortsController.alternativePlayerContainerElement)==null?void 0:g.getPlayerContainer().querySelector("#player");
v=I.JSC$18413_shortsController.activeIndex;(g=(M=I.JSC$18413_shortsController.getRoot())==null?void 0:M.querySelector('ytd-reel-video-renderer[id="'+v+'"] #player-container'))&&(x==null||x.appendTo(g,void 0,!0))}});
this.addOnDisposeCallback(z)};
_.m(Yvl,_.Q9);var jd=function(z,l,I,b,v){var M=this;this.storeWithShorts=z;this.ephemeralResponseStore=l;this.store=I;this.innertubeTransportService=b;this.innertubeTransportLoader=v;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.nK(_.u7);this.isShortsPipActive=_.nK(_.Z6);this.nextReelVe=_.kU(56921);this.prevReelVe=_.kU(56922);this.backButtonVe=_.kU(22156);this.TEST_ONLY={getActiveModules:function(){return M.activeModules}}},T0W=function(z){z.unsubscribeFromStore=
_.Wf(z.storeWithShorts,_.ui$,function(l){z.initOrDisposeActiveModules(l);
!l&&z.storeWithShorts.getState().shorts.isFullscreen&&(_.DE(document.documentElement),z.storeWithShorts.dispatch(_.b6_(!1)))});
z.initOrDisposeActiveModules(_.ui$(z.storeWithShorts.getState()))},l7w,I70,cTS,Qus,XQK;
jd.prototype.initOrDisposeActiveModules=function(z){z?this.activeModules.push.apply(this.activeModules,[new Yvl(this,this.storeWithShorts)].concat(_.ht(_.C("web_shorts_audio_track_picker")?[new tAC(this)]:[]),_.ht(_.C("enable_web_shorts_captions_language_command")?[new iD0(this)]:[]))):(_.Dv(this.activeModules),this.activeModules.length=0)};
jd.prototype.registerRootElement=function(z){this.rootElement=z;T0W(this)};
jd.prototype.getRoot=function(){return this.rootElement};
jd.prototype.setActiveIndex=function(z){this.activeIndex=z};
_.UOp=function(z,l){var I,b,v,M,x,g,G;return _.O(function(u){switch(u.nextAddress){case 1:return I=new M0,(b=I.JSC$13121_getStoreKey(l))&&z.ephemeralResponseStore.has(b)?u.yield(z.ephemeralResponseStore.get(b),7):u.yield(cTS(z,l),4);case 4:v=u.yieldResult;if(!b){u.jumpTo(3);break}M=fY(v,3600);return u.yield(z.ephemeralResponseStore.put(b,new _.h$(M)),3);case 7:v=(x=u.yieldResult)==null?void 0:_.x1(x);case 3:return((g=v)==null?0:g.replacementEndpoint)&&(G=_.k(v.replacementEndpoint,_.FN))&&v.sequenceContinuation&&
(G.sequenceParams=v.sequenceContinuation),u.return(v)}})};
l7w=function(z,l){l=(new pv).JSC$13121_getStoreKey(l);return!!l&&z.ephemeralResponseStore.has(l)};
I70=function(z,l,I){var b,v,M,x,g;_.O(function(G){if(G.nextAddress==1){b=new pv;v=b.JSC$13121_getStoreKey(l);if(!v)return G.return();if(I.reelWatchSequenceResponse)return M=fY(I.reelWatchSequenceResponse,3600),z.ephemeralResponseStore.put(v,new _.h$(M)),G.jumpTo(0);if(!z.ephemeralResponseStore.has(v))return G.jumpTo(0);g=I;return G.yield(z.ephemeralResponseStore.get(v),4)}g.reelWatchSequenceResponse=(x=G.yieldResult)==null?void 0:_.x1(x);_.qe(G)})};
cTS=function(z,l){var I=I===void 0?{}:I;var b,v,M;return _.O(function(x){switch(x.nextAddress){case 1:if(z.innertubeTransportService){b=z.innertubeTransportService;x.jumpTo(2);break}if(!z.innertubeTransportLoader){_.$P(Error("oj"));x.jumpTo(2);break}return x.yield(z.innertubeTransportLoader(),4);case 4:b=x.yieldResult;case 2:return x.yield((v=b)==null?void 0:_.I0(v,l,I),5);case 5:return M=x.yieldResult,x.return(M)}})};
Qus=function(z,l){_.qA(_.Y1(),function(){var I=_.Hg("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(l){var b,v=(b=_.F1(_.UW,I)())==null?void 0:b.value,M;b=typeof(l==null?void 0:l.translationLanguage)==="object"&&((M=l.translationLanguage)==null?void 0:M.languageName)||l.displayName||"";v!==b&&z.store.dispatch(_.cU("stringEntity",I,{key:I,value:b.toString()}))}else z.store.dispatch(_.cU("stringEntity",I,{key:I,value:"CAPTIONS_UNAVAILABLE"}))})};
XQK=function(z,l){_.qA(_.Y1(),function(){var I=_.Hg("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(l){var b,v=(b=_.F1(_.UW,I)())==null?void 0:b.value;b=l.getLanguageInfo().getName();v!==b&&z.store.dispatch(_.cU("stringEntity",I,{key:I,value:b.toString()}))}else z.store.dispatch(_.cU("stringEntity",I,{key:I,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))})};
_.vP.Object.defineProperties(jd.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
jd[HG]=[sap,_.PE,gx,_.MB(_.AY),_.MB(oH_)];_.SvX=new _.yH("STORAGE_MANAGER_TOKEN");var xst=["touchmove","scroll"];var dZF=!1;var IcG=!1;var OiH={onSpanEnd:function(z){z.parentId==null&&(dZF||(z85(),setInterval(z85,6E5),dZF=!0),bix(z,"web_tracing_action"))}};var oRl=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},P88;
oRl.prototype.enqueue=function(z,l){l===1?this.currentPersistentToast=z:this.queue.push(z);this.openToast()};
oRl.prototype.openToast=function(){var z;(z=this.currentToast)!=null&&z.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Jc=new _.yH("TOAST_MANAGER_TOKEN");var hZ4=new _.yH("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var suC=new _.yH("VIEW_TRANSITION_COORDINATOR_TOKEN");var rTs=function(z){this.config=z;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;z=_.D(z.transitionConfigs);for(var l=z.next();!l.done;l=z.next())l=_.D(l.value).next().value,this.transitionTasksMap.set(l,[])};
rTs.prototype.registerElement=function(z,l,I){I=I===void 0?!1:I;for(var b=_.D(Object.keys(l)),v=b.next(),M={};!v.done;M={viewTransitionName:void 0},v=b.next()){v=v.value;M.viewTransitionName=l[v];var x=this.elementTasksMap.get(z),g=void 0;if((g=x)==null?0:g.has(v)){_.oy(new _.qB("Element already registered for transition",z.tagName,v));break}x=x||new Map;x.set(v,{beforeTransition:function(G){return function(){z.style.viewTransitionName=G.viewTransitionName}}(M),
afterTransition:function(){z.style.viewTransitionName&&(z.style.viewTransitionName="")},
runOnce:I});this.elementTasksMap.set(z,x)}};
_.LY=function(z,l){var I=z.elementTasksMap.get(l);I&&(I.clear(),I.size===0&&z.elementTasksMap.delete(l))};
rTs[HG]=[hZ4];var $Z1;_.eZl=_.P(function(z){return _.N("basic-content-view-model",{class:_.m9("ytBasicContentViewModelHost",_.Df(z.className))},_.N(_.E,{cond:function(){return z.data().headline},
then:function(l){return _.N("div",{class:"ytBasicContentViewModelHeadline"},_.N(_.Rf,{text:l}))}}),_.N(_.qy,{each:function(){return z.data().paragraphs||[]},
keyBy:"INDEX"},function(l){return _.N("div",{class:"ytBasicContentViewModelParagraph"},_.N(_.E,{cond:function(){var I=l();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.N($Z1,{paragraph:l})}}),_.N(_.E,{cond:function(){return l().asset||l().text},
then:function(){return _.N("div",{class:"ytBasicContentViewModelParagraphContent"},_.N(_.E,{cond:function(){return l().asset},
then:function(I){return _.N("div",{class:"ytBasicContentViewModelParagraphAsset"},_.N(_.TS,{data:I},{contentPreviewImageViewModel:_.cm}))}}),_.N(_.E,{cond:function(){return l().text},
then:function(I){return _.N("div",{class:"ytBasicContentViewModelParagraphText"},_.N(_.Rf,{text:I}))}}))}}))}))},"Te");
$Z1=_.P(function(z){var l=z.paragraph;return _.N(_.xP,null,_.N(_.E,{cond:function(){return l().headline},
then:function(I){return _.N(_.Rf,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.N(_.TS,{data:function(){return l().header||l().customHeader}},{sectionHeaderViewModel:function(I){return _.N(_.rj,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ue");var ATX=_.P(function(z){var l=_.VK("yt-expandable-metadata-header-view-model"),I=_.KK(function(b){if(!_.$U(_.r5(b),l.value,["A".toString(),"BUTTON".toString()])){var v;(v=z.expandedCallback)==null||v.call(z,!1)}});
return _.N("yt-expandable-metadata-header-view-model",{el:l,class:"ytExpandableMetadataHeaderViewModelHost"},_.N(_.E,{cond:function(){return z.expanded()},
then:function(){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":I},_.N("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.N(_.E,{cond:function(){return z.data().expandedTitleImage},
then:function(b){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.N(_.pK,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b}))}}),_.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.N(_.Rf,{text:function(){return z.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.N(_.Rf,{text:function(){return z.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.N(_.Rf,{text:function(){return z.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.N("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.N(_.TS,{data:function(){return z.data().infoButton}},{buttonViewModel:_.h4}),_.N(_.TS,{data:function(){return z.data().collapseButton}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
onClick:function(){var v;(v=z.expandedCallback)==null||v.call(z,!1)}})}})))},
else:function(){return _.N(wQ4,Object.assign({},z))}}))},"Ve"),W7W=_.P(function(z){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.N(_.E,{cond:function(){return z.data().collapsedLabelImage},
then:function(l){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.N(_.pK,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:l,alt:""}))}}),_.N(_.Rf,{text:function(){return z.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"We"),wQ4=_.P(function(z){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.KK(function(){var l;return void((l=z.expandedCallback)==null?void 0:l.call(z,!0))})},_.N("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.N(_.E,{cond:function(){return z.data().collapsedImage},
then:function(l){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.N(_.pK,{height:20,preserveHeight:!0,preserveWidth:!0,data:l,alt:""}))}}),_.N(_.E,{cond:function(){return z.data().showLeadingCollapsedLabel},
then:function(){return _.N(W7W,Object.assign({},z))}}),_.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.N(_.Rf,{text:function(){return z.data().collapsedTitle}}))),_.N("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.N(_.E,{cond:function(){return!z.data().showLeadingCollapsedLabel},
then:function(){return _.N(W7W,Object.assign({},z))}}),_.N(_.TS,{data:function(){return z.data().infoButton}},{buttonViewModel:_.h4}),_.N(_.TS,{data:function(){return z.data().expandButton}},{buttonViewModel:function(l){return _.N(_.h4,{data:l.data,
onClick:function(){var I;(I=z.expandedCallback)==null||I.call(z,!0)}})}})))},"Xe");_.nRl=_.P(function(z){var l=_.D(_.Br(function(){return z.data().initiallyExpanded})),I=l.next().value,b=l.next().value,v,M=(v=_.pG().resolve(_.MB(_.I2)))==null?void 0:v(),x=function(){var g=z.data().colorData;
if(g)return M?g==null?void 0:g.darkColorPalette:g==null?void 0:g.lightColorPalette};
return _.N("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.XV({"background-color":function(){var g=x();return(g==null?0:g.section2Color)?_.aD(g.section2Color):""}})},_.N(_.TS,{data:function(){return z.data().header}},{expandableMetadataHeaderViewModel:function(g){return _.N(ATX,{data:g.data,
expanded:function(){return!!I()},
expandedCallback:function(G){b(G)}})}}),_.N(_.E,{cond:function(){return I()},
then:function(){return _.N("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.N(_.TS,{data:function(){return z.data().expandedContent}},{horizontalShelfViewModel:function(g){return _.N(_.E_,{data:g.data,
includeMargin:!0,forceNarrowLayout:!0,palette:x})},
videoSummaryContentViewModel:function(g){return _.N(F_M,{data:g.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(g){return _.N(_.sq,{data:g.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(g){return _.N(_.eZl,{data:g.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.N(_.TS,{data:function(){return z.data().expandedBottomButtons}},{buttonViewModel:function(g){return _.N("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.N(_.h4,{data:g.data}))}}))}}))},"Ye");var L7y=_.P(function(z){var l=z.text;var I=z.marqueeSpacing;var b=z.scrollDelay;var v=z.scrollDuration;var M=z.enableMarqueeScroll;z=z.large;var x=_.D(_.Z_(!1,void 0,"WyNYFf")),g=x.next().value,G=x.next().value,u=_.D(_.Z_(0,void 0,"OoTdhe"));x=u.next().value;var Z=u.next().value,H=_.VK("marquee-scroll");u=_.VK("div");var y=_.VK("span"),f=_.pG().resolve(_.vr);_.Te(function(){if(M()){var Y=y.value.getBoundingClientRect().width,c=H.value.getBoundingClientRect().width;if(Y>c){var d=(f==="ltr"?-1:1)*(Y+
(I?I():16));Promise.resolve().then(function(){G(!0);Z(d)})}}},"dv0Anf");
var R={},F={};return _.N("marquee-scroll",{class:_.m9("ytMarqueeScrollHost",(R.ytMarqueeScrollHostLarge=z,R)),el:H},_.N("div",{id:"marquee-scroll-inner-container",class:_.m9("ytMarqueeScrollInnerContainer",(F.ytMarqueeScrollAnimationEnabled=function(){return g()},F)),
el:u,style:_.XV({gap:I?(0,_.DN)(I):"16px","animation-duration":v?qgj(v):"16s","animation-delay":b?qgj(b):"3s","--marquee-translate":(0,_.DN)(x)})},_.N("span",{el:y,dir:"auto"},_.N(_.Rf,{text:l,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.N(_.E,{cond:g,then:function(){return _.N("span",{"aria-hidden":"true",dir:"auto"},_.N(_.Rf,{text:l,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Ze");_.UZC=_.P(function(z){var l=z.data;var I=z.overlayDensity;z=_.KK(function(){l().onTapCommand&&_.ae(l().onTapCommand);return!1});
var b=_.xI7(),v=function(){return(I==null?void 0:I())===1?22:16},M={};
return _.N("reel-sound-metadata-view-model",{class:_.m9("ytReelSoundMetadataViewModelHost",(M.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},M)),
"on:click":z,tabindex:0,role:"button","on:keydown":b},_.N("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.N(_.E,{cond:function(){return l().musicIcon},
then:function(x){return _.N(_.pK,{data:x,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:v})}}),_.N("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.N(L7y,{text:function(){return l().soundMetadata},
enableMarqueeScroll:function(){return!!l().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"$e");var aaK,VA0,zU,l1S,b4l,zPW,p0c,MY1;aaK=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];VA0=_.OI("wil_icon_max_concurrent_fetches",Infinity);
zU=function(z,l,I){var b=this;this.iconSet=z;this.appDirection=l;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.v7.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.C("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.C("wil_icon_network_first");this.renderWhenIdle=_.C("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.C("wil_icon_load_immediately");this.isPurging=!1;z=function(){b.cacheStorageAvailable&&(b.cacheStorageAsync=_.v7.caches.open("yt-icons").then(function(M){return b.cacheStorageSync=M}).catch(function(){b.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.D(Object.entries(I));for(l=I.next();!l.done;l=I.next()){var v=_.D(l.value);l=v.next().value;v=v.next().value;v=mF(v);ju0(v);this.iconCache[l]=v.cloneNode(!0)}this.isPurging=JTK(this);this.isPurging instanceof Promise?this.isPurging.then(z):z()};
_.yLS=function(z,l){var I=z.resolveIcon(l);return I?z.renderingMode===1?zPW(z,I,z.renderingMode):(l=z.iconCache[I.url])?(l=l.cloneNode(!0),l1S(z,l),zPW(z,I,z.renderingMode,l)):_.I1y(z,I).then(function(b){var v=b?0:1;l1S(z,b);return zPW(z,I,v,b)}):(_.oy(new _.qB("Icon not found",{iconShape:l})),function(){})};
l1S=function(z,l){if(l){z.counter+=1;z="_yt"+z.counter;l=[l].concat(_.ht(l.getElementsByTagName("*")));l=_.D(l);for(var I=l.next();!I.done;I=l.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=b4l(I.textContent,z,!0);else for(var b=_.D(I.attributes),v=b.next();!v.done;v=b.next()){v=v.value;v.name==="id"&&(v.value+=z);["mask","fill","clip-path"].includes(v.name)&&(v.value=b4l(v.value,z));if(v.name==="style"){var M=I.style;try{M.cssText=b4l(M.cssText,z,!0)}catch(Z){var x=void 0,g=
void 0,G=void 0,u=void 0;lD({error:((x=Z)==null?void 0:(G=(g=x).toString)==null?void 0:G.call(g))||"",el:I.outerHTML,style:!!M,cssText:(u=M)==null?void 0:u.cssText})}}v.name==="xlink:href"&&(v.value=v.value.replace(/#(.*)/,"#$1"+z))}}};
b4l=function(z,l,I){var b=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(b=/url\(["']?#(.*?)["']?\)/g);return z.replace(b,"url(#$1"+l+")")};
zPW=function(z,l,I,b){return function(v,M){var x=Object.assign({},{iconColor:"currentcolor",iconWidth:l.size+"px",iconHeight:l.size+"px",iconDisplay:"block"},M);M=_.tA("DIV");var g=x.iconColor,G=x.iconFilter;x="width: "+x.iconWidth+"; height: "+x.iconHeight+"; display: "+x.iconDisplay+";";G&&(x+=" filter: "+G+";");I===0&&(x+=" fill: "+g+";");I===1&&(G=l.url,x+=" -webkit-mask: url("+G+") no-repeat center / cover; mask: url("+(G+") no-repeat center / cover; background-color: ")+g);l.allowMirroring&&
z.appDirection==="rtl"&&(x+=" transform: scale(-1, 1); transform-origin: center center;");M.setAttribute("style",x);I===0&&b&&M.appendChild(b);v.appendChild(M)}};
_.I1y=function(z,l){var I,b,v;return _.O(function(M){I=function(x){return au(x)};
b=l.url;if(!vdc(b))throw Error("qj");v=MY1(z,b);return M.return(v.then(function(x){return x.clone().text()}).then(function(x){var g=I(x);
x=l.size;var G=_.tA("DIV");_.p4(G,g);g=_.Bl(G.firstElementChild!==void 0?G.firstElementChild:_.Zlp(G.firstChild,!0));x=ju0(g,x);z.iconCache[b]=x.cloneNode(!0);delete z.responsePromises[b];return x}).catch(function(){}))})};
p0c=function(z){var l,I=(l=z.requestAninmationFrameResolver)==null?void 0:l.promise;I||(z.requestAninmationFrameResolver=new _.yX,I=z.requestAninmationFrameResolver.promise,_.v7.requestAnimationFrame(function(){var b;(b=z.requestAninmationFrameResolver)==null||b.resolve();z.requestAninmationFrameResolver=null}));
return I};
MY1=function(z,l){var I,b;return _.O(function(v){if(v.nextAddress==1)return z.waitForAnimationFrame?v.yield(p0c(z),2):v.jumpTo(2);I=z.responsePromises[l];I||(b=function(){var M,x,g;return _.O(function(G){switch(G.nextAddress){case 1:if(!z.cacheStorageAvailable){M=void 0;G.jumpTo(2);break}if(x=z.cacheStorageSync){G.jumpTo(3);break}return G.yield(z.cacheStorageAsync,4);case 4:x=G.yieldResult;case 3:M=x;case 2:return g=M,z.isNetworkFirstStrategy?G.return(z.fetchAndUpdateCache(l,g).catch(z.getCacheStorageResponse.bind(z,
l,g))):G.return(z.getCacheStorageResponse(l,g).catch(z.fetchAndUpdateCache.bind(z,l,g)))}})},I=z.renderWhenIdle?new Promise(function(M,x){_.qA(_.ow,function(){b().then(M).catch(x)},10)}):b(),z.responsePromises[l]=I);
return v.return(I.catch(function(M){delete z.responsePromises[l];lD({error:(M==null?0:M.toString)?M.toString():"",url:l});throw M;}))})};
zU.prototype.fetchAndUpdateCache=function(z,l){var I=this;return _.O(function(b){return b.return(Dec(I,z).then(function(v){xe4(I,z,v,l);return v}))})};
var Dec=function(z,l){var I;return _.O(function(b){if(z.numFetches<VA0)return z.numFetches+=1,b.return(O4C(z,l).finally(function(){--z.numFetches;if(Object.keys(z.queuedResponseResolvers).length){var v=Object.keys(z.queuedResponseResolvers)[0],M=z.queuedResponseResolvers[v];delete z.queuedResponseResolvers[v];M.resolve(Dec(z,v))}}));
I=new _.yX;z.queuedResponseResolvers[l]=I;return b.return(I.promise)})},O4C=function(z,l,I){I=I===void 0?2:I;
var b;return _.O(function(v){b={credentials:"same-origin",priority:"low"};return v.return(_.v7.fetch(l,b).then(function(M){return M.ok?M:Promise.reject(Error("rj`"+M.status+"`"+M.statusText))}).catch(function(M){if(I>0)return O4C(z,l,I-1);
throw M;}))})},xe4=function(z,l,I,b){_.O(function(v){return b?v.return(new Promise(function(M){_.qA(_.ow,function(){var x,g;
return _.O(function(G){switch(G.nextAddress){case 1:if(!z.isNetworkFirstStrategy){x=void 0;G.jumpTo(2);break}return G.yield(b.match(l).catch(function(){}),3);
case 3:x=G.yieldResult;case 2:if(g=x){G.jumpTo(4);break}return G.yield(b.put(l,I.clone()).catch(function(u){lD({error:(u==null?0:u.toString)?u.toString():"",url:l})}),4);
case 4:M(),_.qe(G)}})},50)})):v.return()})};
zU.prototype.getCacheStorageResponse=function(z,l){return _.O(function(I){return l?I.return(l.match(z).then(function(b){return b&&b.ok?b:Promise.reject()})):I.return(Promise.reject())})};
var ju0=function(z,l){l===void 0||z.getAttribute("viewBox")||z.setAttribute("viewBox","0 0 "+l+" "+l);z.setAttribute("focusable","false");z.setAttribute("aria-hidden","true");try{z.style.pointerEvents="none",z.style.display="inherit",z.style.width="100%",z.style.height="100%"}catch(v){var I;lD({error:((I=v)==null?0:I.toString)?v.toString():""});try{z.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(M){var b;lD({error:((b=M)==null?0:b.toString)?M.toString():
""})}}return z},vdc=function(z){for(var l=_.D(aaK),I=l.next();!I.done;I=l.next())if(z.startsWith(I.value)&&z.endsWith(".svg"))return!0;
return!1};
zU.prototype.resolveIcon=function(z){return this.iconSet.resolveIcon(z)};
var lD=function(z){_.PW(new _.qB("Error in IconManager",z))},JTK=function(z){if(_.C("wil_icons_cache_purge_killswitch"))return!1;
try{var l=_.v7.localStorage}catch(M){return!1}if(!l||!z.cacheStorageAvailable)return!1;var I=function(M){try{var x;(x=l)==null||x.setItem("yt-icons-last-purged",M.toString())}catch(G){var g;lD({error:((g=G)==null?0:g.toString)?G.toString():""})}},b=Number(l.getItem("yt-icons-last-purged"));
if(!b)return b=new Date,b=b.setDate(b.getDate()-Math.floor(Math.random()*90+1)),I(b),!1;if(function(M,x){M=new Date(M);x=new Date(x);return x.getMonth()-M.getMonth()+12*(x.getFullYear()-M.getFullYear())}(b,Date.now())<3)return!1;
try{return _.v7.caches.delete("yt-icons").then(function(M){M&&I(Date.now());return M}).catch(function(){return!1}).finally(function(){z.isPurging=!1})}catch(M){var v;
lD({error:((v=M)==null?0:v.toString)?M.toString():""});return!1}};
zU[HG]=[UpX,_.vr,_.MB(j1y)];_.Iz=function(z,l){this.iconManager=z;this.iconsToFetch=l};
_.Iz[HG]=[_.mh,_.MB(Vxc)];var gdl=function(){};var Gg1=function(z,l,I){this.requestKey=z;this.lVB=l;this.pp9=I;this.fg5=function(){return new XMLHttpRequest};
this.bNL=void 0;this.wLd=[]};
Gg1.prototype.getLatestChallengeResponse=function(){return this.pp9};
var fvp=function(z,l,I){var b,v,M,x;return _.O(function(g){if(g.nextAddress==1){_.hH("attestation_challenge_fetch");_.sK("att_fs",void 0,"attestation_challenge_fetch");if(!z.bNL)throw new _.ei(9,"Missing fetcher");return g.yield(z.bNL(l,I),2)}b=g.yieldResult;M=(v=b)==null?void 0:v.bgChallenge;if(!M)throw new _.ei(15,"Missing field");z.pp9=b;z.wLd.forEach(function(G){G(b)});
x=IBp(M);_.sK("att_fc",void 0,"attestation_challenge_fetch");Pu("attestation_challenge_fetch");return g.return(x)})},rA_=function(z,l){var I,b,v,M,x;
return _.O(function(g){switch(g.nextAddress){case 1:I=new Hl(100,3E5,.25,2),b=void 0;case 2:if(!(I.currBackoffCount_<10)){g.jumpTo(4);break}_.RL(g,5);if(!(I.currBackoffCount_>0)){g.jumpTo(7);break}return g.yield(G8t(I.getValue()),7);case 7:return g.yield(NHC(z,l),9);case 9:return v=g.yieldResult,g.return(v);case 5:M=_.XP(g);M instanceof _.ei?b=M:(x=M instanceof Error?M.message:"Unknown",b=new _.ei(9,x));i4M(I);g.jumpTo(2);break;case 4:if(b)throw b;throw new _.ei(9,"Unknown error");}})},NHC=function(z,
l){l=D4p(x4u(new plz,l),z.requestKey);
var I=new _.yX,b=z.fg5();b.open("POST",z.lVB);b.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");b.setRequestHeader("Content-Type","application/json+protobuf");b.onload=function(){if(_.Uut(b)){var v=HoA(b.responseText);I.resolve(v)}else I.reject(new _.ei(_.JrY(_.NB(b)),b.statusText))};
b.onerror=function(){I.reject(new _.ei(_.JrY(_.NB(b)),b.statusText))};
b.send(l.serialize());return I.promise};var uP4=function(z){this.networkStatusManager=z;this.isDownloaded=DCt===void 0?function(){return!1}:DCt;
this.isReady=!1;this.kKo=Edy(this)},Edy=function(z){var l;
return _.O(function(I){if(I.nextAddress==1)return I.yield(TrY(),2);if(I.nextAddress!=3)return l=I.yieldResult,I.yield(Yvn(l),3);z.e6=I.yieldResult;E2x(z.e6).then(function(){z.isReady=!0});
return I.return(z.e6)})},Z4K=function(z,l,I){z.e6?(z=z.e6.aH0({jy:I,
iQL:!0,hx8:!0}),l.serviceIntegrityDimensions={poToken:z}):_.dE(Error("tj"))};
uP4.prototype.processContext=function(z){var l=this;if(!z.input.match(_.Mo(IR4)))return _.Ct();var I=z.innerTubeRequest,b=I.videoId;return!b||this.isDownloaded(I)||this.networkStatusManager&&!this.e6&&!this.networkStatusManager.isNetworkAvailable()?_.Ct():this.e6?this.isReady?(Z4K(this,I,b),_.Ct()):new ft(E2x(this.e6).then(function(){Z4K(l,I,b)})):new ft(this.kKo.then(function(v){return _.O(function(M){if(M.nextAddress==1)return M.yield(E2x(v),2);
Z4K(l,I,b);_.qe(M)})}))};var H4l=new _.yH("WEB_PO_CONTEXT_PROCESSOR");var ytq=function(z,l){var I=this;this.n98=0;var b;this.yKc=(b=l==null?void 0:l.yKc)!=null?b:window;this.networkStatusManagerPromise=l==null?void 0:l.networkStatusManagerPromise;var v;this.requestKey=(v=l==null?void 0:l.requestKey)!=null?v:_.gk("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var M;this.qsd=(M=l==null?void 0:l.qsd)!=null?M:function(G){return new aW(G)};
var x;b=(x=l==null?void 0:l.xsY)!=null?x:function(G,u,Z){return new Gg1(G,u,Z)};
this.bgChallenge=IBp(z.bgChallenge);this.ttlSeconds=bb7(JQ(z.challenge||""));this.fi=b(this.requestKey,_.C("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.v7.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",z);this.p01=l==null?void 0:l.p01;NVS(this.fi);var g;this.qe8=(g=l==null?void 0:l.qe8)!=null?g:function(G){_.dZ(I.yKc.document,"visibilitychange",
function(){I.yKc.document.visibilityState==="visible"&&G()})}},Cts=function(z){if(!z.vm){var l={maxAttempts:5,
nZi:z.ttlSeconds*1E3};uBG(z.yKc);z.vm=z.qsd({fi:z.fi,oWW:{disable:_.C("html5_web_po_disable_remote_logging"),gV:"aGIf",jAU:wuH("html5_web_po_experiment_ids"),sXB:_.C("wpo_dis_lfdms")?0:1E3,zcf:function(b){var v=bzn.get(b);v||(v=new IHp(b),v=new RQ(v),bzn.set(b,v));return v}},
k8P:l,zYn:z.bgChallenge,efC:ZiH});z.n98=Date.now();ENu(z.vm,function(){z.n98=Date.now()});
oP$(z.vm,function(){return _.O(function(b){return b.return(f10(z))})});
var I=z.eGS.bind(z);z.networkStatusManagerPromise&&z.ttlSeconds>0&&z.networkStatusManagerPromise.then(function(b){b.listen("publicytnetworkstatus-online",I)});
z.qe8(I)}};
ytq.prototype.eGS=function(){if(Date.now()>this.n98+this.ttlSeconds*1E3){var z;(z=this.vm)==null||N1_(z)}};
var f10=function(z){if(z.t8J)return z.t8J;if(!z.vm)throw Error("uj");z.t8J=new zp({vm:z.vm,fi:z.fi,pIL:!0,onError:ZiH,k8P:z.p01});return z.t8J},ykf=function(z,l){z=new ytq(z,l);
Cts(z);f10(z)};var kgc=_.aFc.ephemeralActionSelector,bD=function(z,l){this.store=z;this.queue=[];l==null||l.addEventListener("yt-navigate-start",this.reset.bind(this))};
bD.prototype.enqueue=function(z){var l=z.command,I=z.durationMs,b=z.elementToFocus;var v=z.label;var M=z.elementToFocus;z.command?v=_.mY("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:v,shortcut:_.mY("SHIFT_PLUS_ENTER")}):M&&(z=v+". "+_.mY("SHIFT_PLUS_ENTER")+" for more information.",v=_.mY("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:v,shortcut:_.mY("SHIFT_PLUS_ENTER")},z));I={announcement:v,durationMs:I!=null?I:8E3};l?I.command=l:b&&(b.classList.add("ephemeral-action-focusable-element"),I.selector=b.tagName+
".ephemeral-action-focusable-element");this.queue.push(I);RPy(this)};
bD.prototype.activate=function(z){var l=kgc(this.store.getState());if(l){if(l==null?0:l.command)_.nE(l.command),this.store.dispatch(jtz(null));if(l==null?0:l.selector)l=document.querySelector(l.selector),_.SI7(l);z.preventDefault()}};
var RPy=function(z){if(!kgc(z.store.getState())&&z.queue.length){var l=z.queue.shift();l&&(z.previousAnnouncement===l.announcement&&(l.announcement+="\u00a0"),z.store.dispatch(jtz(l)),z.previousAnnouncement=l.announcement,z.timeoutId=setTimeout(function(){if(l.selector){var I;(I=document.querySelector(l.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}z.store.dispatch(jtz(null));RPy(z)},l.durationMs))}};
bD.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(jtz(null));this.queue.length=0;this.timeoutId=void 0};
bD[HG]=[_.G$,_.MB(_.Va)];_.vj=new _.yH("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var meW=window.AbortController||QFY;var KXX=new _.yH("AUTH_SERVICE_TOKEN");var k8p=_.zs(["about:blank"]),CQ1;var tYy=new _.yH("API_IFRAME_TOKEN"),BHq=new _.yH("FETCH_FN_TOKEN"),X0l=new _.yH("PARSE_FN_TOKEN"),qus=new _.yH("WINDOW_REQUEST_TOKEN"),i4W=new _.yH("TEXT_DECODER_TOKEN");var CEI;CEI=new _.yH("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.FXS=new _.yH("MISC_UI_SHARED_FLAGS_TOKEN");var QLy=function(){};
QLy.prototype.getFlag=function(z){if(z.configType!==2)throw Error("vj");return Yuq(z)};
var Yuq=function(z){switch(z.flagType){case "bool":return _.C(z.flagName);case "int":return _.SM(_.OI(z.flagName));case "double":return _.OI(z.flagName);case "string":return _.gk(z.flagName);case "int32_list":return wuH(z.flagName);case "int64_list":return wuH(z.flagName).map(function(l){return _.SM(l)});
case "string_list":return _.Go(z.flagName);default:throw Error("wj");}};var M3=function(z,l,I){l=l===void 0?{}:l;VH.call(this,I===void 0?"uninitialized":I);this.env=z;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];l.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=l.shouldWaitOnAsyncImmediate)};
_.m(M3,VH);M3.prototype.init=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?b.yield(z(l.env),2):(z(l.env),b.jumpTo(2));if(b.nextAddress!=4)return l.jobSet?b.yield(l.jobSet.completedResolver.promise,4):b.jumpTo(4);I=_.uV();I.parkOrScheduleJob(function(){l.transition("rendering")},10,"ci");
_.qe(b)})};
M3.prototype.initialRender=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?b.yield(z(l.env),2):(z(l.env),b.jumpTo(2));if(b.nextAddress!=4)return l.jobSet?b.yield(l.jobSet.completedResolver.promise,4):b.jumpTo(4);I=_.uV();I.parkOrScheduleJob(function(){l.transition("rendered")},10,"cr");
_.qe(b)})};
M3.prototype.afterRenderImmediate=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?b.yield(z(l.env),2):(z(l.env),b.jumpTo(2));if(b.nextAddress!=4)return l.jobSet?b.yield(l.jobSet.completedResolver.promise,4):b.jumpTo(4);I=_.uV();I.parkOrScheduleJob(function(){l.transition("after-render-deferred")},10,"carml");
_.qe(b)})};
M3.prototype.afterRenderDeferred=function(z){var l=this;return _.O(function(I){z(l.env);_.qe(I)})};var THF;_.hr("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});THF={};_.ctX=(THF.CSI=XYt(),THF.ECATCHER=BVx(),THF);var SuK={},deK=(SuK.rendered={priority:0,callback:function(z){Je4(z.injector.resolve(i_))}},SuK);var HF7=new _.yH("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),odX=new _.yH("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Pt0=function(z){this.callbackFnMap=z;this.configMap={}};
Pt0.prototype.handleResponse=function(z){var l;if(z=(l=z.responseContext)==null?void 0:l.serviceTrackingParams)for(l=_.D(z),z=l.next();!z.done;z=l.next()){z=z.value;var I=z.params,b=z.service;if(I&&b){this.configMap[b]||(this.configMap[b]=new Qau);z=this.configMap[b];var v=void 0,M=(v=this.callbackFnMap)==null?void 0:v[b];I=_.D(I);for(b=I.next();!b.done;b=I.next())v=b.value,b=v.key,v=v.value,b&&v&&(z.set(b,v),M&&M(b,v))}}};
Pt0[HG]=[_.MB(odX)];var hPs=!1,Ywp=0,qwu=null,QAx=null;var sLc=new _.yH("NETWORK_SLI_TOKEN");var rtW=function(z,l,I,b,v){this.networkSli=z;this.fetchFn=l;this.parseFn=I;this.requestFn=b;this.JSC$18522_textDecoder=v};
rtW.prototype.fetch=function(z,l,I){var b=this,v,M,x;return _.O(function(g){v=$eW(b,z,l);x=(M=b.fetchFn)!=null?M:fetch;return g.return(x(v).then(function(G){return b.handleResponse(G,I)}).catch(function(G){_.PW(G);
if((I==null?0:I.expectJsonStrict)&&G instanceof Lq&&G.errorType===1)return Promise.reject(G)}))})};
var b3I=function(z,l,I,b){var v,M,x,g,G,u,Z;return _.O(function(H){switch(H.nextAddress){case 1:return v=$eW(z,l,I),_.RL(H,2),H.yield(fetch(v),4);case 4:M=H.yieldResult;_.a3(H,3);break;case 2:throw _.XP(H),new Lq(2,"Failed to parse streaming response",v.url);case 3:if(!M.redirected&&!M.ok)throw(x=z.networkSli)==null||x.failure(),new _.qB("Streaming fetch request not ok",v.url);if(!M.body)throw new _.qB("No response body in streaming response",v.url);g={};if(_.C("web_streaming_fast"))return G=M.body.getReader(),
H.return(ePK(z,G,g,b));u=M.body.pipeThrough(new TextDecoderStream).getReader();Z=new _.Bo;return H.return(w0c(z,u,Z,rLY,g,b))}})},$eW=function(z,l,I){if(z.networkSli){var b=_.yI(_.Mu(l,"key"))||"/UNKNOWN_PATH";
z.networkSli.start(b)}b=I;_.C("wug_networking_gzip_request")&&(b=Ifx(I));var v;return new ((v=z.requestFn)!=null?v:window.Request)(l,b)},ePK=function(z,l,I,b){var v,M,x,g,G,u,Z,H,y,f,R;
return _.O(function(F){switch(F.nextAddress){case 1:v=z.JSC$18522_textDecoder?new z.JSC$18522_textDecoder("utf-8"):new TextDecoder("utf-8"),M="",x=function(Y){Y=Y.trim();Y.length!==0&&Y!=="]"&&Y!=="["?(Y.startsWith("[")&&(Y=Y.substring(1)),Y.endsWith("]")&&(Y=Y.slice(0,-1)),Y.endsWith(",")&&(Y=Y.slice(0,-1)),Y=Y.trim()):Y=void 0;if(Y)try{var c=JSON.parse(Y);rLY(I,c);b==null||b(I,c)}catch(d){throw new Lq(1,"Failed to parse streaming response",Y);}},_.RL(F,2,3);
case 5:return F.yield(l.read(),8);case 8:g=F.yieldResult;G=g.value;if(u=g.done)return M.length>0&&x(M),Z=void 0,(Z=z.networkSli)==null||Z.success(),F.return(I);M+=v.decode(G,{stream:!0});H=M.split("\n");M=H.pop()||"";y=_.D(H);for(f=y.next();!f.done;f=y.next())R=f.value,x(R);F.jumpTo(5);break;case 3:_.K4(F);l.releaseLock();_.B0(F,0);break;case 2:throw _.XP(F),new Lq(1,"Failed to parse streaming response");}})},w0c=function(z,l,I,b,v,M){var x,g,G,u,Z,H,y,f,R;
return _.O(function(F){if(F.nextAddress==1)return F.yield(l.read(),2);x=F.yieldResult;g=x.value;if(G=x.done)return(u=z.networkSli)==null||u.success(),F.return(v);try{Z=I.parse(g)}catch(Y){throw new Lq(1,"Failed to parse streaming response",g);}if(Z!=null)for(H=_.D(Z),y=H.next();!y.done;y=H.next())f=y.value,b(v,f),R=void 0,(R=M)==null||R(v,f);return F.return(w0c(z,l,I,b,v,M))})};
rtW.prototype.handleResponse=function(z,l){var I,b=(I=this.parseFn)!=null?I:JSON.parse;I=z.text().then(function(v){if((l==null?0:l.jspbResponseCtor)&&z.ok)return $ZQ(l.jspbResponseCtor,v);v=v.replace(")]}'","");if((l==null?0:l.expectJsonStrict)&&v)try{var M=b(v)}catch(g){throw new Lq(1,"JSON parsing failed after fetch");}var x;return(x=M)!=null?x:b(v)});
z.redirected||z.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(v){_.PW(new _.qB("Error: API fetch failed",z.status,z.url,v));return Object.assign({},v,{errorMetadata:{status:z.status}})}));
return I};
rtW[HG]=[_.MB(sLc),_.MB(BHq),_.MB(X0l),_.MB(qus),_.MB(i4W)];var At1=new _.yH("NETWORK_MANAGER_TOKEN");var WXq=[1,2,4,8,16,30],LX4=function(z){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=z.maxTimeMs;this.maxFrameCount=z.maxFrameCount===void 0?Math.ceil(60*z.maxTimeMs/1E3):z.maxFrameCount;z=_.D(WXq);for(var l=z.next();!l.done;l=z.next())this.brokenFrameSummarizers.push(new nd1(l.value/60*1E3))},Ues=function(z){var l=z.frameCountInternal>=z.maxFrameCount;
return z.elapsedTimeMs>=z.maxTimeMs||l};
LX4.prototype.summarize=function(){for(var z=[],l=_.D(this.brokenFrameSummarizers),I=l.next();!I.done;I=l.next())I=I.value,I=I.brokenFrameCount!==0?{severityMs:Math.round(I.targetFrameTimeMs),eventCount:I.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(I.averageDurationBetweenEventsMs)}:void 0,I&&z.push(I);return{summaries:z,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.vP.Object.defineProperties(LX4.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 nd1=function(z){this.targetFrameTimeMs=z;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.vP.Object.defineProperties(nd1.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var a1W=function(){};
a1W.prototype.start=function(z,l){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var b=new LX4({maxTimeMs:z});this.monitor=b;this.lastSummaryInternal=void 0;this.metadataToLog=l;return new Promise(function(v){var M=function(x){if(x===void 0)I.stop(),v(void 0);else if(I.monitor!==b)x=Object.assign({},b.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),v(x);else{var g=I.monitor;if(!Ues(g)){g.frameCountInternal++;if(g.prevTime===
void 0)g.startTime=x;else for(var G=x-g.prevTime,u=_.D(g.brokenFrameSummarizers),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var H=Z.currTimeMs;Z.currTimeMs+=G;G>Z.targetFrameTimeMs+2&&(Z.brokenFrameCount++,Z.timeOfFirstBrokenFrameMs===void 0&&(Z.timeOfFirstBrokenFrameMs=H),Z.timeOfLastBrokenFrameMs=H)}g.prevTime=x}Ues(I.monitor)?v(I.stop()):_.ow.addJob(M,5,0)}};
_.ow.addJob(M,5,0)})};
a1W.prototype.stop=function(z){if(!this.monitor)return this.lastSummaryInternal;var l=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(l.monitoringDurationMs){z=z!=null?z:this.metadataToLog;var I={droppedFramesSummary:l,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};z&&(I[z.type]=z.data);_.cW("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=l;this.metadataToLog=void 0;return l};_.VYK=new _.yH("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var jLs;jLs=function(z){this.JSC$18545_expiringStorage=new QI(z)};
_.Jts=function(z){if(_.TVt()&&(z=_.TgG(_.BV()+"::"+z)))return new jLs(z)};
jLs.prototype.set=function(z,l,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$18545_expiringStorage.set(z,l,I)};
jLs.prototype.get=function(z){return this.JSC$18545_expiringStorage.get(z)};
jLs.prototype.remove=function(z){this.JSC$18545_expiringStorage.remove(z)};var zx0=new _.yH("SESSION_STORAGE");_.pX=function(){};
_.pX.getInstance=function(){var z=_.W8("ytglobal.storage_");z||(z=new _.pX,_.vd("ytglobal.storage_",z));return z};
_.pX.prototype.estimate=function(){var z,l,I;return _.O(function(b){z=navigator;return((l=z.storage)==null?0:l.estimate)?b.return(z.storage.estimate()):((I=z.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?b.return(ck$()):b.return()})};
_.vd("ytglobal.storageClass_",_.pX);var rk$=0;var LKx=!1;var lCW=_.zs(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),ICq=_.zs(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var w_1={"/":_.AM,"/?feature=ytca":_.AM,"/feed/downloads":_.N91};var b7K=jCq.continuationCommandSelector,k1=function(z,l,I){this.JSC$18561_upliftPromise=z;this.store=l;this.JSC$18561_persistentStorePromiseAccessor=I};
k1.prototype.shouldPreferLocalResponse=function(z){return z.browseId==="FEdownloads"||z.browseId==="FEsmart_downloads"&&_.C("kevlar_modern_downloads_page")?!0:!1};
k1.prototype.localInnertubeResponse=function(z){var l=this;return _.O(function(I){return z.browseId==="FEdownloads"?_.C("kevlar_modern_downloads_page")?I.return(vql(l)):I.return(M6W(l)):z.browseId==="FEsmart_downloads"&&_.C("kevlar_modern_downloads_page")?I.return(pRl(l)):I.return(Promise.reject(Error("yj")))})};
k1.prototype.canProvideFallbackResponse=function(){return!0};
k1.prototype.localFallbackInnertubeResponse=function(z){var l=this,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return M.yield(l.JSC$18561_persistentStorePromiseAccessor(),2);case 2:I=M.yieldResult;if(z.browseId!=="SPaccount_downloads"||!I){M.jumpTo(3);break}return M.yield(p3Q(I),4);case 4:if(b=M.yieldResult)return M.return(_.x1(b));case 3:return z.browseId==="FEwhat_to_watch"?M.return(DjS(l)):(v=_.C("web_offline_continuation_automatic_retry")||_.C("web_offline_continuation_retry_button"))&&
z.continuation?M.return(xjs(l)):M.return(O7F(l))}})};
var DjS=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$18561_upliftPromise,2);l=_.Wtf(z.store.getState().entities);return l.length?I.return(gqX(z,l)):I.return(O7F(z))})},M6W=function(z){var l,I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$18561_upliftPromise,2);if(b.nextAddress!=3)return l=GhK([{offlineItemSectionRenderer:{}}]),b.yield(Nsc(z,l),3);I=b.yieldResult;I.onResponseReceivedActions=[Bt("REFRESH_DOWNLOADS")];return b.return(I)})},vql=function(z){var l,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y;
return _.O(function(c){if(c.nextAddress==1)return c.yield(z.JSC$18561_upliftPromise,2);if(c.nextAddress!=3)return l=z.store.getState(),I=l.entities,b=_.dg(I),v=_.oh(I),M=_.KvH(l),x=_.mG7(l),g=_.tCt(l),G=_.U1p(I),u=_.Fs(b),Z=_.Pg(I),H=_.JM5(I),y=_.X2f(l),f=_.eS(l),R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.qSY(b,v,G,H,M,x,u,Z,g,y,f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},F="",_.C("kevlar_modern_downloads_skip_downloads_title")||
(F=_.mY("DOWNLOADS",void 0,"Downloads")),c.yield(Eqq(z,R,F),3);Y=c.yieldResult;Y.onResponseReceivedActions=[Bt("REFRESH_DOWNLOADS")];return c.return(Y)})},pRl=function(z){var l,I,b,v,M,x,g,G,u;
return _.O(function(Z){if(Z.nextAddress==1)return Z.yield(z.JSC$18561_upliftPromise,2);if(Z.nextAddress!=3)return l=z.store.getState(),I=l.entities,b=_.dg(I),v=_.Fs(b),M=_.Pg(I),x={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.FVx(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},g=_.mY("SMART_DOWNLOADS",void 0,"Smart downloads"),G=B9k(v,M),Z.yield(Eqq(z,x,g,G),3);u=Z.yieldResult;u.onResponseReceivedActions=
[Bt("REFRESH_DOWNLOADS")];return Z.return(u)})},O7F=function(z){var l,I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(Dq(z.JSC$18561_upliftPromise,z.store),2);l=b.yieldResult;I=GhK([IeY(l)]);return b.return(Nsc(z,I))})},xjs=function(z){var l,I,b,v;
return _.O(function(M){if(M.nextAddress==1)return l={},I=b7K(z.store.getState()),_.rZ(l,_.a2,I),M.yield(Dq(z.JSC$18561_upliftPromise,z.store,l,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);b=M.yieldResult;v={};_.rZ(v,_.pHw,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:b}}}],targetId:"browse-feedFEwhat_to_watch"});return M.return({responseContext:{},onResponseReceivedActions:[v]})})},GhK=function(z){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:z}}}}]}}},gqX=function(z,l){var I,b;
return _.O(function(v){var M={contents:Xo(l)};I=M&&M.contents?M:{};_.C("kevlar_modern_downloads_page")&&(I=Object.assign({},_.QSH(l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));b={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return v.return(Nsc(z,b))})},Nsc=function(z,l){var I,b;
return _.O(function(v){if(v.nextAddress==1)return v.yield(z.JSC$18561_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3)return I=v.yieldResult,v.yield(O2(I),3);b=v.yieldResult;return v.return({responseContext:{},contents:l,topbar:b})})},Eqq=function(z,l,I,b){var v,M;
return _.O(function(x){if(x.nextAddress==1)return x.yield(z.JSC$18561_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return v=x.yieldResult,x.yield(O2(v),3);M=x.yieldResult;var g=x.return;var G=I;var u=b;G=G===void 0?"":G;u=u===void 0?"":u;G={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:G}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.mY("SETTINGS",void 0,"Settings"),accessibilityText:_.mY("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:_.MF("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:u}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:G};
return g.call(x,{responseContext:{},contents:l,topbar:M,header:{pageHeaderRenderer:G}})})};var u5l=function(){this.moduleRegistry={};this.fetchCount=0};
u5l.prototype.isFetching=function(){return this.fetchCount>0};
var WJ=function(z,l){z.moduleRegistry[l.toString()]={asyncId:l,isFetching:!1};return z};
u5l.prototype.JSC$18572_loadModules=function(){for(var z=this,l=new Map,I=[],b=_.D(_.AT.apply(0,arguments)),v=b.next();!v.done;v=b.next()){v=v.value;var M=this.moduleRegistry[v];M?M.resolver?l.set(v,M.resolver):(M.resolver=new _.yX,l.set(v,M.resolver),I.push(M.asyncId),M.isFetching=!0):(M=new _.yX,l.set(v,M),M.resolve(void 0))}I.length&&(this.fetchCount+=1,_.rO(_.P2.getMultipleAsync.apply(_.P2,_.ht(I)).then(function(x){for(var g=0;g<I.length;g++){var G=x[g],u=z.moduleRegistry[I[g].toString()];u.isFetching=
!1;u.resolver.resolve(G)}}).catch(function(x){for(var g=_.D(I),G=g.next();!G.done;G=g.next()){G=G.value;
var u=z.moduleRegistry[G.toString()];u.resolver=void 0;u.isFetching=!1;l.get(G.toString()).reject(x)}}),function(){--z.fetchCount}));
return Promise.all([].concat(_.ht(l.values())).map(function(x){return x.promise}))};_.nI=new _.yH("MODULE_REGISTRY_TOKEN");var Z7W={},H7s=(Z7W.rendered={priority:0,callback:function(z){a:{var l=void 0;try{var I;b:{if(_.Ss7()){var b=_.YpY(_.BV()+"::pom");if(b){var v=new z$(b);break b}}v=void 0}var M=(I=v)==null?void 0:I.get("role_text");if(!M)break a;l={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:M}]}}}}}}catch(G){}l&&z.injector.resolve(_.DQ).resolveCommand(l)}try{var x=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(x){var g=JSON.parse(x);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
g&&z.injector.resolve(_.DQ).resolveCommand(g)}}catch(G){}}},Z7W);var y7y,fC8={},ClF=(fC8.initialized={priority:10,callback:function(){y7y=FI()}},fC8.rendering={callback:function(z){var l;
return _.O(function(I){if(I.nextAddress==1)return I.yield(y7y,2);l=I.yieldResult;if(!l.endpoint)throw Error("Aj`"+_.v7.location.href);cJ(z,l);_.qe(I)})}},fC8);var kh0={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.ht(_.C("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(z){var l=z.stack;if(l.includes("chrome://")||l.includes("chrome-extension://")||z.message.includes("chrome-extension://")||l.includes("moz-extension://")||l.includes("local.adguard.org")||l.includes("auctioneer3.50million.club")||l.includes("youtubedownloader")||l.includes("youtube_home_page")||l.includes("is_youtube_video_no_longer_available")||
l.includes("switchScreenSizeHack")||l.includes("yt_main_big_banner.js")||l.includes("YouTubeCenter.js")||l.includes("/mytube.js")||l.includes("JSON.parseWrapper")||l.includes("/inj_js/common.js")||l.includes("firebug-lite")||l.includes(".repl.co/")||l.includes("linkfix")||l.includes("playAfterAd")||z.message.includes("Access is denied for this document")&&l.includes("<anonymous>")||z.fileName==="user-script"||z.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
l.includes("<anonymous>"))return!0;if(l.includes("https://www.youtube.com"))return!1;z=l.split("\n");if(!z.length)return!1;if(z.length<=3&&l.includes("s.onloadeddata"))return!0;l=0;for(var I=_.D(z),b=I.next();!b.done;b=I.next())b=b.value,(b.includes("https://")||b.includes("http://"))&&l++;return l/z.length>.95},
weight:0},{callback:function(z){return z.message==="Unknown Error"&&z.name.indexOf("NS_")===0},
weight:100},{callback:function(z){if(!_.Zs)return!1;var l=z.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||z.message.includes("available to complete this operation"),I=z.stack.includes("webcomponents")&&z.message==="Object doesn't support this action";z=z.message.includes("object that does not implement interface Element");return l||I||z},
weight:0},{callback:function(z){return z.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(z){return z.message==="Operation is not supported"&&(z.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(z){return z.stack.includes("eval code (eval (code:1:1)")||z.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(z){return z.message.includes("Permission denied")&&z.stack.includes("this.domHandler")?!0:z.name.includes("TypeError")&&z.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(z){if(!z.stack)return!1;var l=z.stack.trim().split("\n");l.length&&l[0].endsWith("Error: "+z.message)&&l.shift();l.length&&l[l.length-1].includes("at window.onerror (")&&l.pop();if(!l.length)return!0;if(z.message==="Script error.")return l[0].includes("www.youtube.com")||l.length>=2&&l[0].startsWith("at new")&&l[1].startsWith("at window.onerror");if(z.message==="Unexpected token")return!0;z=_.D(l);for(l=z.next();!l.done;l=z.next())if(l=l.value,!(l.includes("<anonymous>")||
l.startsWith("load@")||l.startsWith("global code@")||l.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(z){return z.message==="Cannot read property 'experiments'"&&z.stack.includes("/s/player/")},
weight:500},{callback:function(z){return z.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(z){return z.stack.includes("/embed.js")?(z.params&&z.params&&(z.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.C("use_error_suppression"))var z=_.sZ("SUPPRESS_CLIENT_ERRORS",!1);else{if(z=_.kx)z=/Chrome\/(\d+)/.exec(_.Cu()),z=(z?parseFloat(z[1]):NaN)>=66;z=!(z||_.CO&&_.fO(65)||_.ec&&_.fO(12.1)||Iw&&_.fO(79))}return z},
weight:500}]};var Rxs={},mjl=(Rxs.initialized={priority:10,callback:function(z){z.injector.addProvider({provide:U3n,useValue:z.root});z.injector.addProvider({provide:cyX,useValue:XUQ});z.injector.addProvider({provide:S8K,useValue:kh0});var l={};z.injector.addProvider((l.provide=dKc,l.useFactory=function(I,b){return function(){CZt(I,b)}},l[HG]=[cyX,
S8K],l));z.injector.addProvider({provide:A$,useClass:A$})}},Rxs);var KH0={},t6C=(KH0.initialized={priority:3,callback:function(){var z;if(z=tS5()){z=z.replace("/",".");var l=_.Bu();l.set("tz",z);l.save();z=!0}else z=!1;z||(z=_.Bu(),z.set("utco",-Math.floor((new Date).getTimezoneOffset())),z.save())}},KH0);var Bsl={},XR0=(Bsl.initialized={priority:10,callback:function(z){z.injector.resolve(A$).start();z=_.l5();var l=_.rr("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.rr("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.rr("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.rr("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Zq(_.MH7(),{mainAppWeb:Object.assign({},z,{pageType:l})});_.Zq(Dlx(),{mainAppWeb:Object.assign({},z,{pageType:l})});
_.Zq(xlQ(),{mainAppWeb:z});_.Zq(Okx(),{mainAppWeb:z});G1A(function(){_.HJ(xlQ(),"FAILURE");_.HJ(Okx(),"FAILURE")});
xck();OZ$();t5p()}},Bsl);var q7c={},i7C=(q7c.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.sK("dl"),_.uV().processSignal("pcl");else{var z=function(){_.sK("dl");_.uV().processSignal("pcl");window.removeEventListener("load",z)};
window.addEventListener("load",z)}}},q7c);var FH8={},Qx1=(FH8.rendering={priority:0,callback:function(){var z=_.uV();z.parkOrScheduleJob(function(){z.processSignal("eocs")},10,"eor",5E3)}},FH8);var Y7K=function(){};
_.m(Y7K,Zu);
Y7K.prototype.resolveCommand=function(z,l){var I,b,v,M,x,g,G,u;return _.O(function(Z){v=(I=_.k(z,_.CA_))==null?void 0:(b=I.dialog)==null?void 0:b.commentReplyDialogRenderer;if(!v)throw new _.qB("No dialog in createCommentReplyDialogEndpoint");x=(M=l.form)==null?void 0:M.event;if(!x)throw new _.qB("Event not passed in when resolving command");g=_.D(x.composedPath());for(G=g.next();!G.done;G=g.next())if(u=G.value,u.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||u.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return u.showReplyDialog(v),Z.return();
_.qe(Z)})};var Dw=function(z){this.pageRequestService=z;this.JSC$18587_prefetchCoordinator=kcq()};
_.m(Dw,Zu);Dw.prototype.resolveCommand=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1){I=_.k(z,Jd_);if((b=I)==null||!b.taskId)throw Error("Bj");v=I.taskId;_.RL(x,2);return x.yield(_.Jq_(l.pageRequestService,z,{},"").then(function(g){if(!g)throw Error("Cj");},function(g){throw Error("Dj`"+g);
}),4)}if(x.nextAddress!=2)return K04(l.JSC$18587_prefetchCoordinator,v),_.a3(x,0);
M=_.XP(x);sm(l.JSC$18587_prefetchCoordinator,v,M);_.qe(x)})};
Dw[HG]=[i9];var xa=function(z,l){this.innertubeTransportService=z;this.JSC$18591_commandHandler=l};
_.m(xa,Zu);xa.prototype.resolveCommand=function(z){var l=this,I,b,v;return _.O(function(M){if(M.nextAddress==1){I=_.k(z,jcp);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")b=I.boolValue?2:1,_.Bf.getInstance().setState(b,!0,!0);return M.yield(_.I0(l.innertubeTransportService,z),2)}v=M.yieldResult;Tsl(l,v);_.qe(M)})};
var Tsl=function(z,l){l.actions&&l.actions.forEach(function(I){z.JSC$18591_commandHandler.resolveCommand(I)})};
xa[HG]=[_.AY,_.DQ];var O1={},c74=(O1.addToPlaylistEndpoint=vg(Dg),O1.addToToastAction=vg(Zd),O1.adsControlFlowOpportunityReceivedCommand=vg(el),O1.audioTrackSelectActionCommand=vg(KT),O1.backgroundAudioPlaybackCommand=vg(tV),O1.captionLanguageSelectActionCommand=vg(Bz),O1.captionPickerEndpoint=vg(q$),O1.changeMiniAppPlayStateCommand=vg(xX),O1.changeTimelyActionVisibilityCommand=vg(uF),O1.channelCreationFormEndpoint=vg(le),O1.clearLocationCommand=vg(pT),O1.clearUrlParamCommand=vg(Oy),O1.copyLinkCommand=vg(SI),O1.copyTextEndpoint=
vg(Wp),O1.createCommentReplyDialogEndpoint=Dk7(Y7K),O1.createPlaylistServiceEndpoint=vg(dJ),O1.dismissDialogEndpoint=vg(G0),O1.dismissPlayerOverlayCommand=vg(ie),O1.entityUpdateCommand=vg(Lx),O1.feedbackEndpoint=vg(VG),O1.getAnswerCommand=vg(FA8),O1.getPaymentsClientTokenCommand=vg(f3),O1.getTranscriptEndpoint=vg(Hw),O1.googlePaymentBillingCommand=vg(C3),O1.googlePaymentPurchaseManagerCommand=vg(kf),O1.hideEngagementPanelEndpoint=vg(N$),O1.hideSheetCommand=vg(Ey),O1.hideSnackbarCommand=vg(Dd),O1.insertRichSectionCommand=
vg(be),O1.listMutationCommand=vg(vz),O1.logGtmCommand=vg(I$),O1.notifyDropdownOptionSelectedCommand=vg(gJ),O1.openAdAllowlistInstructionCommand=vg(_.wW),O1.openOnePickAddVideoModalCommand=vg(o$),O1.persistSubscriptionsDisplayPreferencesCommand=vg(eI),O1.pingingEndpoint=vg(A3),O1.playlistEditEndpoint=vg(hV),O1.playlistVotingRefreshPopupCommand=vg(sy),O1.profileCardCommand=vg($p),O1.refreshPanelEndpoint=vg(ue),O1.saveImageToDeviceEndpoint=vg(nx),O1.scrollToSectionEndpoint=Dk7(Q_F),O1.seekToVideoTimestampCommand=
vg(FR),O1.selectCountryCommand=vg(wJ),O1.setCookieCommand=vg(AV),O1.setLocalStorageCommand=vg(OV),O1.setPrefStorageEntryCommand=vg(nT),O1.setSettingEndpoint=vg(xa),O1.sfvAudioItemPlaybackCommand=vg(QE),O1.shareImageCommand=vg(LT),O1.sharingProviderDataCommand=vg(Uy),O1.showAudioTrackPickerActionCommand=vg(YX),O1.showCaptionLanguageSelectActionCommand=vg(T0),O1.showDialogCommand=vg(yE),O1.showEngagementPanelEndpoint=vg(fT),O1.showSheetCommand=vg(CT),O1.showSnackbarCommand=vg(xf),O1.showTransientPlayerScrimOverlayCommand=
vg(cz),O1.submitFormWithValidationFlowCommand=vg(z0),O1.talkToRecsDeselectCommand=vg(gh),O1.talkToRecsNextCommand=vg(Gd),O1.talkToRecsSelectCommand=vg(NV),O1.talkToRecsUpdateTextCommand=vg(EV),O1.toggleEngagementPanelCommand=vg(kX),O1.undoFeedbackEndpoint=vg(J3),O1.updateEngagementPanelContentCommand=vg(mS),O1.updateUrlParamCommand=vg(yY),O1.verifyCommand=vg(le),O1.webNativeShareCommand=vg(a$),O1.webSubmitFormCommand=vg(rJ),O1.ACK_PLAYABLES_3P_DATA_CONSENT=vg(VE),O1.CANCEL_NAVIGATION=vg(jI),O1.COPY_SHARE_URL=
vg(JV),O1.MINI_APP_EXIT_DIALOG_SEEN=vg(lF),O1.MINI_APP_OPEN_URL=vg(zd),O1.REQUEST_MINI_APP_FULLSCREEN=vg(Io),O1.RESUME_NAVIGATION=vg(bF),O1.SHARE_PLAYABLE_WITH_HIGH_SCORE=vg(vw),O1.TELL_US_WHY=vg(jl),O1);_.C("web_enable_prefetching_videos_on_home")&&(c74.prefetchWatchCommand=vg(Dw),c74.registerTasksCommand=vg($D));_.C("enable_share_panel_navigation_logging_fix_on_web")&&(c74.shareEntityServiceEndpoint=vg(Zg));var O5n=Object.assign({},c74);var S7s={},dj4=(S7s.initialized={priority:10,callback:u3H},S7s);var oqF={},Plc=(oqF.initialized={callback:function(z){var l={},I={};Ym1().install((l.document_disposed={callback:function(){_.C("finalize_all_timelines")?qep():dC();iiH("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Wzk();var b=z.injector.resolve(A$);b.intervalId!==void 0&&(b.intervalId&&_.ow.cancelJob(b.intervalId),b.intervalId=void 0,--b.currentPartitionIndex,b=hOn(b),b>0&&nY_({mainAppWeb:_.l5(),survivalSli:{partitionMinute:b,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));hsj(Hf);yV!=null&&
yV.flush();No&&No.snapshotAndFlush();b=_.D(bzn.values());for(var v=b.next();!v.done;v=b.next())v.value.snapshotAndFlush()}},l),(I.flush_logs={callback:function(){_.SX()}},I))}},oqF);var hx8={},sx4=(hx8.rendered={priority:0,callback:function(){var z=new VN_;z.increment("STARTED");if(_.sZ("LOGGED_IN")&&!_.sZ("IS_DBSC",!1)&&_.sZ("SERVER_VERSION")!=="test"&&_.sZ("SERVER_VERSION")!=="dev"&&!Yj_()&&!Q_4()){z.increment("EXECUTING");var l=document.createElement("iframe");l.style.display="none";_.Dek(l,2,_.eA("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(l);z.increment("DONE")}}},
hx8);var r7q={},$jX=(r7q.rendered={callback:function(){kcq().resume()}},r7q);var exK={acknowledgeChannelTouStrikeCommand:QX(ao),addToPlaylistServiceEndpoint:QX(za),addToPlaylistEndpoint:QX(za),addUpcomingEventReminderEndpoint:QX(g8),browseEndpoint:QX(vSl),channelCreationFormEndpoint:QX(eU),channelCreationServiceEndpoint:QX(wh),claimLegacyYoutubeChannelEndpoint:QX(FO),clearSearchHistoryEndpoint:QX(b$),clearWatchHistoryEndpoint:QX(vs),commerceActionCommand:YW(RH),createBackstagePostEndpoint:QX(K3),createBroadcastCommand:QX(Gm),createCommentEndpoint:QX(hS),createCommentReplyEndpoint:QX(Pw),
createLiveChatPollEndpoint:QX(Nf),createPlaylistServiceEndpoint:QX(lx),crossAccountChannelTransferEndpoint:QX(D3),deleteLiveChatMessageCommand:QX(E6),deletePlaylistEndpoint:QX(IH),deleteVideoEndpoint:QX(yU),dismissalEndpoint:QX(VY),feedbackEndpoint:QX(jU),flagEndpoint:QX(xD),getAccountSwitcherEndpoint:QX(ph),verifyCommand:QX(mm),getAccountsListInnertubeEndpoint:QX(O6),getCommentsFromInboxCommand:QX(d8),getDownloadActionCommand:QX(w8),getFlowCommand:YW(Is),getKidsBlocklistPickerCommand:QX(Om),getNotificationMenuEndpoint:QX(DKs),
getPaymentInstrumentsParamsCommand:QX(q0),getPaymentsClientTokenCommand:YW(RH),getPdgBuyFlowCommand:QX(j4),getReportFormEndpoint:QX(gv),getSearchInVideoCommand:QX(Em),getAnswerCommand:QX(N0),getSurveyCommand:QX(Hk),getTranscriptEndpoint:QX(Cv),getPostVideoPreviewEndpoint:QX(Bw),decorateMessageEndpoint:QX(tS),likeEndpoint:QX(AS),liveChatActionEndpoint:QX(tL),liveChatEndpoint:QX(Hs),liveChatItemContextMenuEndpoint:QX(u$),liveChatPurchaseMessageEndpoint:QX(Bs),liveChatReplayEndpoint:QX(Z3),manageLiveChatUserEndpoint:QX(qf),
metadataUpdateCommand:QX(cs),moderateLiveChatEndpoint:QX(i$),modifyChannelNotificationPreferenceEndpoint:QX(r8),notificationOptOutEndpoint:QX($G),openSuperStickerBuyFlowCommand:QX(Xj),performCommentActionEndpoint:QX(SU),playlistEditEndpoint:QX(vk),playlistEditorEndpoint:QX(bx),recordNotificationInteractionsEndpoint:QX(e4),reelWatchEndpoint:QX(M0),refreshPanelEndpoint:QX(Ws),removeUpcomingEventReminderEndpoint:QX(Fj),resolveLocationCommand:QX(Tm),revealBusinessEmailCommand:QX(QY),searchEndpoint:QX(_.xKF),
sendLiveChatMessageEndpoint:QX(Q2),sendLiveChatVoteEndpoint:QX(YG),setSettingEndpoint:QX(Ww),shareEntityServiceEndpoint:YW(UV),sharingProviderDataCommand:QX(ZD),showEngagementPanelEndpoint:QX(nh),showMoreDrawerCommand:QX(U6),showSheetCommand:QX(as),showDialogCommand:QX(Lh),subscribeEndpoint:QX(n3),transcriptSubmitCaptionCorrectionCommand:QX(fv),undoFeedbackEndpoint:QX(zm),unsubscribeEndpoint:QX(L3),updateBackstagePostEndpoint:QX(qV),updateCommentEndpoint:QX(rh),updateCommentReplyEndpoint:QX(sV),updateCommentsSettingsEndpoint:QX($f),
updateCreatorChannelInnertubeCommand:QX(Td),updateKidsBlacklistEndpoint:QX(Ga),updateEngagementPanelContentCommand:QX(V2),updatePdgFeatureEnablementCommand:QX(JL),updatedMetadataEndpoint:QX(S4),validateChannelHandleCommand:QX(cw),updateChannelPageSettingsEndpoint:QX(Yf),verifyAgeEndpoint:QX(l$),watchEndpoint:YW(eC),whitelistEditEndpoint:QX(kD),ypcCancelRecurrenceEndpoint:QX(mz),ypcCompleteTransactionEndpoint:QX(Kv),ypcFixInstrumentEndpoint:QX(Bk),ypcGetCartEndpoint:QX(tc),ypcGetOffersEndpoint:QX(X8),
ypcHandleTransactionEndpoint:YW(ix),ypcLogWalletAnalyticDataEndpoint:QX(F8),ypcOffersEndpoint:QX(QU),ypcPauseSubscriptionCommand:QX(YD),ypcRedeemCodeEndpoint:QX(Ta),ypcResumeSubscriptionCommand:QX(ck),ypcUpdateFopEndpoint:QX(Bk)},gu={},wR1=(gu.GET_ACCOUNT_MENU=QX(xG),gu.GET_NOTIFICATIONS_MENU=QX(pX4),gu.GET_NOTIFICATIONS_INBOX=QX(Ps),gu.GET_UNSEEN_NOTIFICATION_COUNT=QX(s6),gu.GET_USER_MENTION_SUGGESTIONS=QX(XO),gu.LOAD_GUIDE=QX(MW8),gu.SUBMIT_FEEDBACK=QX(JS),gu),GU={},A7K=(GU.CONTINUATION_REQUEST_TYPE_BROWSE=
QX(iF),GU.CONTINUATION_REQUEST_TYPE_SEARCH=QX(ux),GU.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=QX(AC),GU.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=QX(Mf),GU.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=QX(oo),GU.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=QX(dh),GU.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=QX(DD),GU.CONTINUATION_REQUEST_TYPE_GET_PANEL=QX(AL),GU),WH0={player:YW(eC),watchNext:QX(w3)},nq1={player:YW(eC),reelItemWatch:QX(M0),reelWatchSequence:QX(pv)},LH4={watchEndpoint:YW(W2)},Uj8=
{commandEndpointMap:exK,signalEndpointMap:wR1,continuationEndpointMap:A7K,watchEndpointMap:WH0,reelWatchEndpointMap:nq1,streamingEndpointMap:LH4};var aCs,V64,jx0;_.J7K=((V64=(aCs=window).matchMedia)==null?void 0:(jx0=V64.call(aCs,"(prefers-reduced-motion: reduce)"))==null?void 0:jx0.matches)||!document.startViewTransition;var z7W={},lv8={disableAllTransitions:_.J7K,ignoredErrors:(z7W.DOCUMENT_HIDDEN=!0,z7W.WINDOW_SIZE_CHANGED=!0,z7W.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,z7W),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 Ivq=_.zs("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),b0K=function(z){this.viewTransitionCoordinator=z;this.isBrowseTransitionEnabled=_.gk("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.C("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.C("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.C("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.gk("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){z=
_.OI("web_page_transition_exit_ms");var l=_.OI("web_page_transition_wait_ms"),I=_.OI("web_page_transition_enter_ms"),b=_.OI("web_page_transition_watch_exit_ms"),v=_.OI("web_page_transition_watch_wait_ms"),M=_.OI("web_page_transition_watch_enter_ms");if(!isNaN(z)||!isNaN(l)||!isNaN(I))if(z=S7$(Ivq,z,l,I,b,v,M))l=document.createElement("style"),l.textContent=NH1(z),document.head.appendChild(l)}};
b0K.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var z={};this.viewTransitionCoordinator.registerElement(document.documentElement,(z.slide="root-slide",z["lockup-to-watch"]="root-lockup-to-watch",z["learning-journey"]="root-learning-journey",z))}};
_.GPI=function(z,l){z.isLockupToWatchTransitionEnabled&&z.isLockupThumbnailRegistrationEnabled&&(z.registeredLockupThumbnail?z.lockupThumbnailRegisteredFromWatchEndpoint?_.PW(new _.qB("Lockup thumbnail registration order is incorrect.")):_.PW(new _.qB("Lockup thumbnail already registered.")):(z.registeredLockupThumbnail=l,_.vNl(z,l)))};
_.vNl=function(z,l){var I={};z.viewTransitionCoordinator.registerElement(l,(I["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",I),!0)};
b0K[HG]=[suC];var ZZf={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var ysH=["videoPrimaryInfoRenderer","title"],foG=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var MNK;MNK=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.plK=_.P(function(z){z=_.xC(z,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var l=z.data,I=z.playlistData,b=z.expanded,v=z.onExpandClick,M=z.isReadyToResume,x=function(){var Z;return!((Z=I())==null||!Z.contents)},g=function(){var Z=I();
return Z&&Z.totalVideos&&Z.currentIndex!==void 0?Z.currentIndex+1+" / "+Z.totalVideos:""};
z=_.KK(function(){_.N3(_.pG().resolve(_.Af));return!1});
var G=_.KK(function(){x()&&v&&v()}),u={};
return _.N("ytd-miniplayer-info-bar",{class:_.m9("ytdMiniplayerInfoBarHost",(u.ytdMiniplayerInfoBarHasPlaylistData=x,u)),"on:click":G},_.N("div",{class:"ytdMiniplayerInfoBarContent"},_.N("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":z},_.N(_.Rf,{text:function(){var Z=l();var H=I();if(H==null?0:H.contents){var y;Z=(y=_.YMH(H))==null?void 0:y.title}else Z=Z==null?void 0:Z.miniplayerTitle;return CU5(Z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.N("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.N(_.E,{cond:M,then:function(){return _.N(VhM,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:MNK})}}),_.N("h1",null,_.N(_.Rf,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var Z=l();var H=I();Z=M()?{simpleText:_.mY("CONTINUE_WATCHING",void 0,"Continue watching")}:(H==null?0:H.contents)?H.titleText:Z==null?void 0:Z.miniplayerSubtitle;return CU5(Z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.N(_.E,{cond:function(){return!!g()&&!M()},
then:function(){return _.N("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.N("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.N("span",null,g))}}))),_.N(_.E,{cond:x,
then:function(){return _.N("div",{class:"ytdMiniplayerInfoBarExpand"},_.N(_.PZ,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(Z){v&&(v(),Z.stopPropagation())}}},
iconName:function(){return b()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"af");var D4y;D4y=_.P(function(z){return _.N("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.N(_.PZ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:z.onTap}},
iconName:"yt-icons:close"}))},"bf");
_.x4s=_.P(function(z){z=_.xC(z,{playabilityStatus:void 0,isDisabled:!1});var l=z.size,I=z.playabilityStatus,b=z.isDisabled,v=_.VK("div");z=_.D(_.Z_(void 0,void 0,"y6THVb"));var M=z.next().value,x=z.next().value;z=_.nK(_.Z6);var g=!1,G=function(){return l().height<=0};
_.Te(function(){var y=l(),f=G(),R=M();R&&!f&&R.setInternalSize(y.width,y.height)},"qu2eI");
_.c8(function(){var y,f,R;return _.O(function(F){if(F.nextAddress==1){y=_.pG().resolve(_.Af);f=y.getPlayerElement();if(!y.isMiniplayerActive()||!f||!v.value)return F.return();f.appendTo(v.value);return F.yield(f.getPlayerPromise(),2)}R=F.yieldResult;R.setSizeStyle(!1,!0);x(R);_.qe(F)})});
_.cb(function(){u()});
_.Te(function(){var y=M();if(y)if(b()){var f=y.getPlayerState();(g=f===-1||f===1||f===3)&&y.pauseVideo()}else u()},"mCtQKc");
var u=function(){if(g){g=!1;var y;(y=M())==null||y.playVideo()}},Z=_.KK(function(){_.N3(_.pG().resolve(_.Af))}),H={};
return _.N("ytd-miniplayer-player-container",{class:_.m9("ytdMiniplayerPlayerContainerHost",(H.ytdMiniplayerPlayerContainerHidden=G,H.ytdMiniplayerPlayerContainerHostShortsPip=z,H)),style:_.XV({width:function(){return l().width+"px"},
height:function(){return l().height+"px"}})},_.N("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:v}),_.N(_.E,{cond:function(){return!!I()&&!_.nof(I())},
then:function(){return _.N(E5W,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var y;return((y=I())==null?void 0:y.errorScreen)||null},
status:function(){var y;return((y=I())==null?void 0:y.status)||null}})}}),_.N(_.E,{cond:b,
then:function(){return _.N("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":Z},_.N(D4y,{onTap:function(){_.pG().resolve(_.Af).close()}}))}}))},"cf");_.O0y=_.P(function(z){var l=z.toastData;var I=_.VK("ytd-miniplayer-toast");z=_.D(_.Br(function(){return!!l()}));
var b=z.next().value,v=z.next().value;z=_.D(_.Z_(!1,void 0,"BvfNQe"));var M=z.next().value,x=z.next().value,g=function(){var Z;return _.ID((Z=l())==null?void 0:Z.data.title)};
_.Sm(function(){_.pw.requestAvailability();l()&&v(!1)});
var G,u;_.Te(function(){b()&&(_.gC(I.value,"iron-announce",{text:l().label+" "+g()}),G&&_.ow.cancelJob(G),G=_.ow.addLowPriorityJob(function(){x(!0)},2500))},"no1dZb");
_.Te(function(){M()&&(u&&_.ow.cancelJob(u),u=_.ow.addLowPriorityJob(function(){v(!1);x(!1)},300))},"G3yPNe");
z={};return _.N("ytd-miniplayer-toast",{el:I,class:_.m9("ytdMiniplayerToastHost",(z.ytdMiniplayerToastOpening=function(){return b()},z.ytdMiniplayerToastClosing=function(){return M()},z))},_.N(_.E,{cond:function(){var Z;
return(Z=l())==null?void 0:Z.data},
then:function(Z){return _.N(pOz,{className:"ytdMiniplayerToastThumbnail",data:Z,width:78})}}),_.N("div",{class:"ytdMiniplayerToastInfo"},_.N("div",{class:"ytdMiniplayerToastLabel"},function(){var Z;
return(Z=l())==null?void 0:Z.label}),_.N("div",{class:"ytdMiniplayerToastTitle"},g)))},"df");var Fi$;var Tzf=null;var Gzq=_.P(function(z){var l=z.progressState;var I=z.multiMarkersPlayerBarRenderer;var b=z.progressBarWidth;var v=function(){return ohk(I())},M=function(){return sIQ(l())},x=function(){return b()*(l().playedTime/l().videoDuration)};
return _.N("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.N(_.qy,{each:v},function(g,G){return _.N(gN4,{modifiedProps:M,chapters:v,index:G,playedProgressWidth:x,backgroundGradientPosition:function(){var u=M(),Z=v(),H=G(),y=x();return(u.playedTime-eK(_.k(Z[H],$1)))/u.playedTime*y}})}))},"ef"),gN4=_.P(function(z){var l=z.modifiedProps;
var I=z.chapters;var b=z.index;var v=z.playedProgressWidth;var M=z.backgroundGradientPosition;z={};z=_.m9("ytChapteredProgressBarChapteredPlayerBarChapter",(z.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return x().isScrubbing},z.ytChapteredProgressBarHoveredMacroMarker=function(){return x().scrubberHovering},z.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return x().videoPosition==="seen"},z));
var x=function(){return rsY(l(),I(),b())},g=function(){var G=l();
var u=I(),Z=b();if(rsY(G,u,Z).videoPosition!=="active")G=0;else{var H=eK(_.k(u[Z],$1));G=(G.playedTime-H)/((eK(_.k(u[Z+1],$1))||G.videoDuration)-H)}return G};
return _.N("div",{class:z,style:_.XV({width:function(){var G=l(),u=I(),Z=b(),H=_.k(u[Z],$1);u=_.k(u[Z+1],$1);return(u?eK(u)-eK(H):G.videoDuration-eK(H))/G.videoDuration*100+"%"},
"background-color":function(){a:{var G=x();switch(G.videoPosition){case "pending":G=G.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":G=G.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:G=""}}return G},
"background-size":function(){return($cH(x())?v():"")+"px"},
"background-position-x":function(){return($cH(x())?M():"")+"px"}})},_.N("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var G=l(),u=I(),Z=b();if(rsY(G,u,Z).videoPosition==="seen")var H=0;else H=eK(_.k(u[Z],$1)),u=eK(_.k(u[Z+1],$1))||G.videoDuration,G=G.videoDuration*G.percentLoaded,H=u<=G?1:H>=G?0:(G-H)/(u-H);return"width: "+H*100+"%"}}),_.N("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.XV({width:function(){return g()*100+"%"},
"background-size":function(){return($cH(x(),g())?v():"")+"px"},
"background-position-x":function(){return($cH(x(),g())?M():"")+"px"}})}))},"ff");var N1c=function(z,l){l=l===void 0?FE_:l;var I,b=[],v,M=!1;return function(){var x=_.AT.apply(0,arguments);if(M&&I===this&&l(x,b))return v;v=z.apply(this,x);M=!0;I=this;b=x;return v}}(function(z){var l=z.heatMarkers,I=z.minHeightDp===void 0?0:z.minHeightDp,b=z.maxHeightDp===void 0?60:z.maxHeightDp;
var v=v===void 0?!1:v;var M=1E3/l.length;z=[];z.push({x:0,y:100});for(var x=0;x<l.length;x++){var g=void 0,G=((g=_.k(l[x],vYu))==null?void 0:g.heatMarkerIntensityScoreNormalized)||0;g=(x+.5)*M;G=100-_.rx(G*100,I/321*100,b/321*100);x!==0||v||z.push({x:0,y:G});z.push({x:g,y:G});x===l.length-1&&z.push({x:1E3,y:G})}z.push({x:1E3,y:100});l="";for(I=0;I<z.length;I++)v=z[I],I===0?v="M "+v.x.toFixed(1)+","+v.y.toFixed(1):(b=AbQ(z[I-1],z[I-2],v),M=AbQ(v,z[I-1],z[I+1],!0),v=" C "+(b.x.toFixed(1)+","+b.y.toFixed(1)+
" "+M.x.toFixed(1)+","+M.y.toFixed(1)+" "+v.x.toFixed(1)+","+v.y.toFixed(1))),l+=v;return l});var ENK=_.P(function(z){var l=z.progressBarProps;var I=z.config;var b={};z=_.m9("ytHeatSeekerHost",(b.ytHeatSeekerHighContrast=z.highContrast,b));var v=function(){return tBf(I().chapterData)};
return _.N("yt-progress-bar-heatseeker",{class:z,style:function(){var M;return"height: 320px; display: "+(l().isDragging&&((M=v())==null?0:M.heatMarkers)?"block":"none")}},_.N(_.E,{cond:v,
then:function(M){return _.N(_.E,{cond:function(){return M().heatMarkers},
then:function(){return _.N("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.N("path",{d:function(){return N1c(M())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"gf");var u7l=_.P(function(z){var l=z.progressBarProps;var I=z.config;z={};z=_.m9("ytProgressBarLineProgressBarLine",(z.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},z.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},z));
return _.N("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.N("div",{class:z},_.N("div",{class:"ytProgressBarLineProgressBarBackground"}),_.N("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+l().percentLoaded*100+"%"}}),_.N("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var b=l();return"width: "+(b.videoDuration?_.rx(b.hoveredTime/b.videoDuration,0,1):0)*100+"%"}}),_.N("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Ruu(l())*100+"%"}})))},"hf");
u7l.idomCompat=!0;var Z08=_.P(function(z){var l=z.progressBarProps;var I=z.playheadData;var b=z.interpolateDotPosition;var v=z.hidePlayhead;z={};var M=_.m9("ytProgressBarPlayheadProgressBarPlayheadDot",(z.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return l().isDragging},z.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!l().isDragging&&v()},z));
return _.N("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.XV({"margin-left":function(){return mcf(l())*100+"%"},
transform:function(){return"translateX(-"+(b()?mcf(l())*12:6)+"px)"}})},_.N(_.E,{cond:function(){var x;
return(x=_.Df(I)())==null?void 0:x.playheadImage},
then:function(x){var g={};return _.N("div",{class:_.m9("ytProgressBarPlayheadProgressBarPlayheadCustom",(g.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return l().isDragging},g.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!l().isDragging&&v()},g)),
style:_.XV({"transform-origin":function(){return(b()?mcf(l())*20:10)+"px center"}})},_.N(_.pK,{data:x,
alt:"","aria-hidden":"true"}))},
else:function(){return _.N("div",{class:M,style:_.XV({"transform-origin":function(){return(b()?mcf(l())*12:6)+"px center"}})})}}))},"jf");
Z08.idomCompat=!0;var E1=function(z,l,I,b,v,M){this.getProgressBarRect=z;this.updateProgressBarRect=l;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=b;this.updateFilmStripDraggedYDistance=v;this.resetFilmStripYOffset=M;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.zD(this.onThrottledSeek,100,this)},H0y=function(z,l,I){return function(b){z.handleClick(b,l(),I())}},CWy=function(z,l){return function(I){yAF(z,
I,fvy(I),l())}},kzy=function(z,l){return function(I){yAF(z,I,{x:I.clientX,
y:I.clientY},l())}},m4X=function(z,l,I){return function(b){var v=l(),M=I();
R7W(z,b,fvy(b),v,M,!0);if(M.onTouchMove)M.onTouchMove(v)}},tNs=function(z,l,I){return function(b){Ksc(z,b,l(),I())}},B1S=function(z,l){return function(){z.handleMouseLeave(l())}},Xl8=function(z,l,I){return function(){var b=l(),v=I();
uD(z,b,v);if(v.onTouchEnd)v.onTouchEnd(b)}},qAl=function(z,l,I){return function(){var b=l(),v=I();
uD(z,b,v);if(v.onTouchEnd)v.onTouchEnd(b)}},i0c=function(z,l,I){return function(){uD(z,l(),I())}},Fsq=function(z){return function(l){if(l.keyCode===39||l.keyCode===38){var I,b;
(I=z())==null||(b=I.playerApi)==null||b.seekBy(5,void 0,void 0,72)}else if(l.keyCode===37||l.keyCode===40){var v,M;(v=z())==null||(M=v.playerApi)==null||M.seekBy(-5,void 0,void 0,71)}}},QQy=function(z,l,I){return function(b){!I().disableScrubbing&&z.startPosition&&Ksc(z,b,l(),I())}},YAF=function(z,l,I){return function(){if(!I().disableScrubbing)if(z.startPosition){var b=l(),v=I();
uD(z,l(),I());if(v.onTouchEnd)v.onTouchEnd(b)}else l().setState({isDragging:!1})}},fvy=function(z){z=z.touches[0];
return{x:z.clientX,y:z.clientY}},Ksc=function(z,l,I,b){if(l.buttons!==1){if(l.movementX||l.movementY)l.preventDefault(),l.stopPropagation(),z=T1X(z,I,l.clientX),I.setState({isHovering:!0,
hoveredTime:z*I.videoDuration})}else cAW(I),R7W(z,l,{x:l.clientX,y:l.clientY},I,b,!1)};
E1.prototype.handleMouseLeave=function(z){cAW(z)};
var cAW=function(z){z.isHovering&&z.setState({isHovering:!1,hoveredTime:0})},yAF=function(z,l,I,b){z.startPosition||(z.startPosition=I,z.updateProgressBarRect(),z.controlsWereVisibleBeforeDragging=b.controlsVisible,l.stopPropagation(),_.C("medium_progress_bar_modification")||l.preventDefault())},R7W=function(z,l,I,b,v,M){if(z.startPosition)if(M&&v.isInlinePlayback&&z.startPosition&&!z.hasDraggedTheMinimumDistance&&Math.abs(I.y-z.startPosition.y)>Math.abs(I.x-z.startPosition.x))uD(z,b,v);
else if(l.preventDefault(),l.stopPropagation(),b.videoDuration&&(z.startPosition&&!z.hasDraggedTheMinimumDistance&&(z.hasDraggedTheMinimumDistance=Math.abs(I.x-z.startPosition.x)>=1),v.enableFineScrubbing&&(z.startPosition&&(z.isDraggedForFineScrubbing=-(I.y-z.startPosition.y)>=60),!z.startPosition||I.y>=z.startPosition.y||(b.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:eu5(b.draggedTime,b,v.chapterData)}),z.setFineScrubbingDraggedTime(b.draggedTime),z.updateFilmStripDraggedYDistance(z.startPosition.y,
I.y,b))),z.hasDraggedTheMinimumDistance)){l=T1X(z,b,I.x);if(z.isDraggedForFineScrubbing){var x;(x=b.playerApi)==null||x.pauseVideo();b.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:b.draggedTime,filmStripXDistance:eu5(l*b.videoDuration,b,v.chapterData)})}v.enableFineScrubbing&&(!v.enableFineScrubbing||z.getFilmstripYPosition(b)<68)||b.setState({draggedTime:l*b.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:z.controlsWereVisibleBeforeDragging});var g;(g=
v.cancelAutohideControlsFn)==null||g.call(v)}},uD=function(z,l,I){var b=I.enableFineScrubbing&&l.fineScrubbingActiveState!=="off";
if(l.isDragging||b){b={isDragging:!1,playedTime:l.draggedTime,controlsVisible:z.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&l.fineScrubbingActiveState!=="on"&&(z.resetFilmStripYOffset(),b.fineScrubbingActiveState="off");var v=v===void 0?Tzf:v;var M=_.sU(0);if(M&&v){var x=Math.round(l.playedTime*1E3),g=Math.round(l.draggedTime*1E3);x>2147483647||g>2147483647||_.zZ(M,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(x),endMediaTimeMs:String(g),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}l.setState(b);
z.seekThrottle.fire(l.draggedTime,l,7);_.C("mweb_new_progress_bar_play_on_seek")&&z.resumeVideo(l);I.unmuteOnSeek&&(I=l.playerApi,l.volumeMuted&&(I==null||I.unMute()))}else l.setState({controlsVisible:!l.controlsVisible}),(M=I.triggerAutohideControlsAfterDelayFn)==null||M.call(I);z.startPosition=null;z.hasDraggedTheMinimumDistance=!1;z.isDraggedForFineScrubbing=!1;z.controlsWereVisibleBeforeDragging=!1};
E1.prototype.handleClick=function(z,l,I){this.updateProgressBarRect();z.stopPropagation();z=T1X(this,l,z.clientX)*l.videoDuration;l.setState({playedTime:z});if(l.playerState!==2){var b;(b=I.triggerAutohideControlsAfterDelayFn)==null||b.call(I)}this.seekThrottle.fire(z,l,7)};
var T1X=function(z,l,I){z=z.getProgressBarRect(l);return _.rx(0,(I-z.left)/z.width,1)};
E1.prototype.resumeVideo=function(z){if(z.draggedTime<z.videoDuration){var l;(l=z.playerApi)==null||l.playVideo()}};
E1.prototype.onThrottledSeek=function(z,l,I){if(l=l.playerApi){var b;if((b=l.getVideoData())==null?0:b.isLive)b=this.getProgressState(l),z+=(b==null?void 0:b.seekableStart)||0;l.seekTo(z,void 0,void 0,void 0,I)}};
E1.prototype.getProgressState=function(z){var l=z==null?void 0:z.getPresentingPlayerType();return z==null?void 0:z.getProgressState(l)};var oNK,d4q,PWF,sQ1,SAF,rAc,$4K,e7c,wl1;oNK=_.P(function(z){var l=z.progressBarProps;var I=z.config;var b=z.progressBarWidthPx;var v=z.chapterData;var M=Lix(l,function(){return I().isShortsPage}),x=function(){return!l().isHovering&&!I().isShortsPage};
z={};var g=_.m9("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(z.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},z));
return _.N("yt-player-storyboard",null,_.N(_.E,{cond:function(){return l().isDragging||l().isHovering},
then:function(){return _.N(_.E,{cond:M,then:function(G){return _.N(_.E,{cond:x,then:function(){return _.N("div",{class:g,"aria-hidden":"true"},_.N(SAF,{props:l,config:I,isBigboard:!0,chapterData:v}))},
else:function(){return _.N(d4q,{props:l,frame:G,config:I,progressBarWidthPx:b,chapterData:v})}})}})}}))},"kf");
_.h7S=_.P(function(z){var l=z.progressBarProps;var I=Lix(l,z.isShortsPage);return _.N("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.N(_.E,{cond:function(){return l().isDragging||l().isHovering},
then:function(){return _.N(_.E,{cond:I,then:function(b){return _.N(PWF,{frame:b,props:l,isBigboard:!0})}})}}))},"lf");
d4q=_.P(function(z){var l=z.props;var I=z.frame;var b=z.config;var v=z.progressBarWidthPx;z=z.chapterData;var M={};M=_.m9("ytPlayerStoryboardHost",(M.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},M.ytPlayerStoryboardHostInlinePlayer=function(){return b().isInlinePlayer},M.ytPlayerStoryboardHostFadeIn=function(){return b().useFadeInAnimation},M));
return _.N("div",{class:M,"aria-hidden":"true",style:function(){var x=l(),g=w$k(I()),G=v();x=Asx(x)/x.videoDuration;var u=G*x,Z=g/2+6;g=G-(g/2+6);return"left: "+(u<=Z?Z/G*100:u>=g?g/G*100:x*100)+"%"}},_.N(_.E,{cond:function(){var x=l();
return!(b().isShortsPage&&x.videoDuration<15)},
then:function(){return _.N(PWF,{frame:I,props:l,isBigboard:!1})}}),_.N(SAF,{props:l,
config:b,isBigboard:!1,chapterData:z}))},"mf");
PWF=_.P(function(z){var l=z.frame;var I=z.props;var b=z.isBigboard;var v=function(){var g,G;return(G=(g=I().playerApi)==null?void 0:g.getVideoContentRect())!=null?G:{width:0,height:0}},M=function(){return w$k(l())},x=function(){var g=l();
return g?g.height/g.rows:0};
z={};z=_.m9((z.ytPlayerStoryboardBigboardImageWrapper=b,z.ytPlayerStoryboardStoryboardImageWrapper=function(){return!b()},z));
return _.N("div",{class:z,style:function(){return"width: "+(b()?v().width:M())+"px; height: "+(b()?v().height:x())+"px;"}},_.N(sQ1,{frame:l,
storyboardWidth:M,storyboardHeight:x,storyboardScale:function(){return(b()?v().width:M())/M()}}))},"nf");
sQ1=_.P(function(z){var l=z.frame;var I=z.storyboardWidth;var b=z.storyboardHeight;var v=z.storyboardScale;var M=function(){var x=l().row,g=l().column,G=I(),u=b(),Z=v();return{left:-g*G*Z,top:-x*u*Z}};
return _.N("img",{src:function(){return l().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+M().left+"px; top: "+M().top+"px; width: "+l().width*v()+"px; height: "+l().height*v()+"px;"}})},"of");
SAF=_.P(function(z){var l=z.props;var I=z.config;var b=z.isBigboard;var v=z.chapterData;z={};z=_.m9("ytPlayerStoryboardMetadata",(z.ytPlayerStoryboardMetadataBigboard=b,z));return _.N("div",{class:z},_.N(_.E,{cond:b,then:function(){return _.N(_.xP,null,_.N(rAc,{props:l,config:I}),_.N(_.E,{cond:function(){a:{var M=l();var x=I(),g=v(),G;if((x==null?0:x.activeChapter)&&((G=_.k(x==null?void 0:x.activeChapter,$1))==null?0:G.title))M=!0;else{x=_.D(BzG(g));for(x=x.next();!x.done;x=x.next()){M=(x=_.k(x.value,
pLu))&&Wi7(M,x);break a}M=!1}}return M},
then:function(){return _.N($4K,{props:l,config:I,isBigboard:!0,chapterData:v})}}))},
else:function(){return _.N(_.xP,null,_.N($4K,{props:l,config:I,isBigboard:!0,chapterData:v}),_.N(rAc,{props:l,config:I}))}}))},"pf");
rAc=_.P(function(z){var l=z.props;var I=z.config;z={};z=_.m9("ytPlayerStoryboardTimestamp",(z.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},z.ytPlayerStoryboardTimestampIsHovering=function(){return l().isHovering||I().isShortsPage&&!0},z));
return _.N("div",{class:z},_.N(_.xP,null,function(){return _.nhx(Asx(l()))}))},"qf");
$4K=_.P(function(z){var l=z.props;var I=z.config;var b=z.isBigboard;var v=z.chapterData;z={};b=_.m9("ytPlayerStoryboardTitle",(z.ytPlayerStoryboardTitleBigboard=b,z));return _.N("div",{class:b},_.N(_.E,{cond:function(){return!I().isShortsPage},
then:function(){return _.N(e7c,{props:l,activeChapter:function(){return I().activeChapter},
chapterData:v})}}))},"rf");
e7c=_.P(function(z){var l=z.props;var I=z.activeChapter;var b=z.chapterData;return _.N(_.xP,null,_.N(_.qy,{each:function(){return BzG(b())},
keyBy:"INDEX"},function(v){return _.N(_.xP,null,_.N(_.E,{cond:function(){return _.k(v(),pLu)&&Wi7(l(),_.k(v(),pLu))},
then:function(){return _.N(wl1,{timedMarker:function(){return _.k(v(),pLu)}})}}))}),_.N(_.E,{cond:function(){var v;
return I()&&((v=_.k(I(),$1))==null?void 0:v.title)},
then:function(v){return _.N(_.Rf,{text:v,noPreWrap:!0})}}))},"sf");
wl1=_.P(function(z){var l=z.timedMarker;return _.N(_.xP,null,_.N("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.N(_.qt,{icon:function(){return l().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.N(_.Rf,{text:function(){return l().label},
noPreWrap:!0}))},"tf");_.AA0=_.P(function(z){var l=z.progressBarProps;var I=z.playheadData;var b=z.config;z=_.VK("yt-progress-bar");var v=_.VK("div"),M=_.VK("div"),x=_.D(_.Z_({width:0,left:0},void 0,"WloVn")),g=x.next().value,G=x.next().value,u=function(){M.value&&G(M.value.getBoundingClientRect())},Z=function(){g().width<=0&&u();
return g()};
vC("resize",u);var H=new E1(Z,function(){},function(){return 0},function(){},function(){},function(){}),y=function(){return l()};
x=_.D(_.Z_(!1,void 0,"u8BZZb"));var f=x.next().value,R=x.next().value;x=_.KK(function(){R(!0);b().position===2?setTimeout(function(){u()},100):u()});
var F=_.KK(function(){R(!1);B1S(H,y)()}),Y=_.KK(function(o1){b().doSeekOnClick&&H0y(H,y,b)(o1);
return!1}),c=_.KK(function(o1){CWy(H,y)(o1);
return!1}),d=_.KK(function(o1){kzy(H,y)(o1);
return!1}),V=_.KK(function(o1){m4X(H,y,b)(o1);
return!1}),A=_.KK(function(o1){tNs(H,y,b)(o1);
return!1}),W=_.KK(function(){Xl8(H,y,b)();
return!1}),L=_.KK(function(){qAl(H,y,b)();
return!1}),lH=_.KK(function(){i0c(H,y,b)();
return!1}),Gk=_.KK(function(o1){Fsq(y)(o1);
return!1});
vC("mousemove",QQy(H,y,b));vC("mouseup",YAF(H,y,b));_.Sm(function(){csf(v.value);R(!1);u();YAF(H,y,b)()});
var uH={};uH=_.m9("ytPlayerProgressBarHost",function(){return b().className},(uH.ytPlayerProgressBarHostReadOnly=function(){return b().disableScrubbing},uH.ytPlayerProgressBarHostHidden=function(){return b().hideProgressBar&&!f()},uH.ytPlayerProgressBarHostLowerPlayer=function(){return b().position===0},uH.ytPlayerProgressBarHostBottomEdge=function(){return b().position===1},uH.ytPlayerProgressBarHostBottomInset=function(){return b().position===2},uH.ytPlayerProgressBarHostCustom=function(){return b().position===
3},uH));
var Xt={},R1=_.m9("ytPlayerProgressBarBackground",(Xt.ytPlayerProgressBarBackgroundHide=function(){return b().position===2&&!f()&&!l().isDragging},Xt));
Xt={};Xt=_.m9("ytPlayerProgressBarDragContainer",(Xt.ytPlayerProgressBarDragContainerBottomEdge=function(){return b().position===1},Xt));
var H7={};H7=_.m9("ytPlayerProgressBarProgressBar",(H7.ytPlayerProgressBarProgressBarInset=function(){return b().position===2},H7.ytPlayerProgressBarProgressBarInsetMinimized=function(){return b().position===2&&!f()&&!l().isDragging},H7));
var P7=function(){return Math.floor(Ruu(l())*100)};
return _.N("yt-progress-bar",{el:z,class:uH},_.N(_.E,{cond:function(){return b().position===2},
then:function(){return _.N("div",{class:R1})}}),_.N("div",{el:v,
"on:click":Y,"on:touchstart":c,"on:touchmove":V,"on:mouseenter":x,"on:mousedown":d,"on:mouseleave":F,"on:mousemove":A,"on:mouseup":L,"on:touchend":W,"on:touchcancel":lH,"on:keydown":Gk,class:Xt,role:"slider","aria-valuenow":P7,"aria-valuetext":function(){return P7()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return l().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.mY("SEEK_SLIDER")},_.N("div",{el:M,class:H7},_.N(ENK,{progressBarProps:l,config:b,highContrast:function(){return!!b().isInlinePlayback}}),_.N(_.E,{cond:function(){return b().chapterData&&X$5(b().chapterData)},
then:function(){return _.N(Gzq,{progressState:l,multiMarkersPlayerBarRenderer:function(){return b().chapterData},
progressBarWidth:function(){return g().width}})},
else:function(){return _.N(u7l,{progressBarProps:l,config:b})}}),_.N(Z08,{progressBarProps:l,
playheadData:I,interpolateDotPosition:function(){return b().position!==2},
hidePlayhead:function(){return b().playheadDotBehavior===1&&!f()}}))),_.N(oNK,{progressBarProps:l,
config:function(){return{activeChapter:huY(l(),b().chapterData),getProgressBarWidthPx:function(){return Z().width},
isShortsPage:!!b().isShortsPage,isInlinePlayer:!!b().isInlinePlayback,useFadeInAnimation:!!b().isInlinePlayback}},
progressBarWidthPx:function(){return g().width},
chapterData:function(){return b().chapterData}}))},"uf");
_.AA0.idomCompat=!0;Object.assign({},_.qgY(),{setState:function(){},
domMeasurements:{},appApi:_.kOp(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Ws0;
_.nNS=_.P(function(){var z,l=(z=_.wx(UcG().playerApi))!=null?z:void 0;z=_.D(_.Z_(!1,void 0,"Z9NQ1b"));var I=z.next().value,b=z.next().value;z=_.D(_.Z_(!1,void 0,"HoVJXe"));var v=z.next().value,M=z.next().value;z=_.D(_.Z_(!1,void 0,"DWCY3"));var x=z.next().value,g=z.next().value;z=_.D(_.Z_(!1,void 0,"g4C2Zd"));var G=z.next().value,u=z.next().value;z=_.D(_.Z_(0,void 0,"lmVfFb"));var Z=z.next().value,H=z.next().value;z=_.D(_.Z_(0,void 0,"mFLbzb"));var y=z.next().value,f=z.next().value;z=_.D(_.Z_(!1,void 0,
"hQN4Wb"));var R=z.next().value,F=z.next().value;z=_.D(_.Z_(0,void 0,"WWU0fb"));var Y=z.next().value,c=z.next().value;z=_.D(_.Z_(0,void 0,"MJ7LMd"));var d=z.next().value,V=z.next().value;z=_.D(_.Z_("",void 0,"hnomOe"));var A=z.next().value,W=z.next().value;z=_.D(_.Z_(-1,void 0,"ARe3pf"));var L=z.next().value,lH=z.next().value,Gk=_.kz(function(){var uH={controlsVisible:I(),isOverlayHidden:v(),shouldWaitToHideControls:x(),isDragging:G(),isHovering:R(),videoDuration:Y(),playedTime:d(),videoId:A(),draggedTime:y(),
hoveredTime:Z(),playerState:L()};return Object.assign({},_.qgY(),uH,{domMeasurements:{},setState:function(Xt){Xt.controlsVisible!==void 0&&b(Xt.controlsVisible);Xt.isOverlayHidden!==void 0&&M(Xt.isOverlayHidden);Xt.shouldWaitToHideControls!==void 0&&g(Xt.shouldWaitToHideControls);Xt.isDragging!==void 0&&u(Xt.isDragging);Xt.isHovering!==void 0&&F(Xt.isHovering);Xt.draggedTime!==void 0&&f(Xt.draggedTime);Xt.hoveredTime!==void 0&&H(Xt.hoveredTime);Xt.videoDuration!==void 0&&c(Xt.videoDuration);Xt.playedTime!==
void 0&&V(Xt.playedTime);Xt.videoId!==void 0&&W(Xt.videoId);Xt.playerState!==void 0&&lH(Xt.playerState)},
appApi:_.kOp(),playerApi:l})},void 0,"Au4PIf");
_.c8(function(){l==null||l.addEventListener("onVideoProgress",Yg$(Gk));l==null||l.addEventListener("onVideoDataChange",QIQ(Gk));l==null||l.addEventListener("onStateChange",iZH(Gk))});
_.cb(function(){if(l==null?0:l.isReady())l==null||l.removeEventListener("onVideoProgress",Yg$(Gk)),l==null||l.removeEventListener("onVideoDataChange",QIQ(Gk)),l==null||l.removeEventListener("onStateChange",iZH(Gk))});
return _.N("desktop-shorts-player-controls",null,_.N(Ws0,{playerControlsProps:Gk}))},"vf");
Ws0=_.P(function(z){var l=z.playerControlsProps;return _.N("div",{class:"desktopShortsPlayerControlsHost"},_.N(_.AA0,{progressBarProps:l,config:function(){return{isShortsPage:!0,hideProgressBar:l().videoDuration<30&&l().playerState!==2&&!l().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"wf");_.Lsq=_.P(function(z){function l(uH){uH!==0||H()?uH>50&&(H()||!f())?(y(!1),R(!0)):uH<=50&&(H()||f())&&(y(!1),R(!1)):y(!0)}
function I(uH,Xt){var R1;return _.O(function(H7){if(H7.nextAddress==1)return H7.yield(_.R0(),2);R1=H7.yieldResult;Xt&&R1?(R1.unMute(!0),uH&&(VB$(uH,R1.getVolume()),Y(R1.getVolume()))):R1&&(R1.mute(!0),uH&&VB$(uH,0));_.qe(H7)})}
function b(uH){var Xt,R1;return _.O(function(H7){if(H7.nextAddress==1)return H7.yield(_.R0(),2);Xt=H7.yieldResult;R1=50;Xt&&(R1=Xt.getVolume(),Xt.isMuted()?VB$(uH,0):VB$(uH,R1));Y(R1);_.qe(H7)})}
var v=z.orientation;z=_.VK("desktop-shorts-volume-controls");var M=_.VK("button"),x=_.z1("input"),g=_.D(_.Z_(!1,void 0,"MvN0Tc")),G=g.next().value,u=g.next().value,Z=_.D(_.Z_(!1,void 0,"aSjsEb"));g=Z.next().value;Z=Z.next().value;var H=g,y=Z;Z=_.D(_.Z_(!0,void 0,"FUh46d"));g=Z.next().value;Z=Z.next().value;var f=g,R=Z;g=_.D(_.Z_(50,void 0,"yPke4d"));var F=g.next().value,Y=g.next().value;g=_.kz(function(){var uH=H();return _.C("web_shorts_keyboard_enable_mute_shortcut")?uH?_.mY("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.mY("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):uH?_.mY("UNMUTE_VOLUME",void 0,"Unmute"):_.mY("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
Z=_.kz(function(){var uH=H(),Xt=f();return{sources:[{clientResource:{imageName:uH?_.C("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Xt?_.C("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.C("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var c=_.kz(function(){var uH=F();return H()?uH+"% volume muted":uH+"% volume"},void 0,"xZsRmc"),d=_.kz(function(){return v()==="vertical_down"},void 0,"FVqYmb");
_.Sm(function(){function uH(){u(!0)}
function Xt(){u(!1)}
x&&x.value&&(x.value.addEventListener("focus",uH),x.value.addEventListener("focusout",Xt),b(x.value).then(function(){l(Number(jI$(x.value)))}));
M&&M.value&&(M.value.addEventListener("focus",uH),M.value.addEventListener("focusout",Xt));_.cb(function(){var R1;x==null||(R1=x.value)==null||R1.removeEventListener("focus",uH);var H7;x==null||(H7=x.value)==null||H7.removeEventListener("focusout",Xt);var P7;M==null||(P7=M.value)==null||P7.removeEventListener("focus",uH);var o1;M==null||(o1=M.value)==null||o1.removeEventListener("focusout",Xt)})});
var V=_.KK(function(){if(x&&x.value){var uH=Number(jI$(x.value));aox(uH);Y(uH);x.value.style.setProperty("--gradient-percent",uH+"%");l(uH)}return!1}),A=_.KK(function(){u(!0)}),W=_.KK(function(){x&&x.value&&(I(x.value,H()),y(!H()));
return!1}),L={},lH={},Gk={};
return _.N("desktop-shorts-volume-controls",{"on:pointerleave":_.KK(function(){u(!1)}),
class:_.m9("ytdDesktopShortsVolumeControlsHost",(L.ytdDesktopShortsVolumeControlsHostVertical=d,L.ytdDesktopShortsVolumeControlsHostExpanded=G,L)),el:z},_.N(_.E,{cond:function(){return!d()},
then:function(){var uH={};return _.N("div",{class:_.m9("ytdDesktopShortsVolumeControlsBackgroundScrim",(uH.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=G,uH))})}}),_.N("div",{class:_.m9((lH.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=d,lH))},_.N("button",{"aria-label":g,
title:g,el:M,"on:click":W,"on:pointerenter":A,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Z?_.N(_.pK,{data:Z,alt:g,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.N("div",{class:_.m9("ytdDesktopShortsVolumeControlsSliderContainer",(Gk.ytdDesktopShortsVolumeControlsSliderContainerExpanded=G,Gk.ytdDesktopShortsVolumeControlsSliderContainerVertical=d,Gk.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=d,Gk.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return G()&&d()},Gk))},_.N("input",{"aria-label":_.mY("VOLUME"),
title:_.mY("VOLUME"),el:x,"on:input":V,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":F,"aria-valuetext":c,"aria-valuemin":0,"aria-valuemax":100})))},"xf");_.U4K=_.P(function(z){var l=z.data;return _.N("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.N(_.cZ,{command:function(){return l().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.N(_.E,{cond:function(){return l().iconName},
then:function(I){return _.N(_.qt,{icon:I})}}),_.N("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return l().text}),_.N(_.E,{cond:function(){return l().showEndChevron},
then:function(){return _.N(_.qt,{icon:"CHEVRON_RIGHT"})}})))},"yf");var avX=_.P(function(z){var l=z.data;var I=z.overlayDensity;z={};return _.N("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.N(_.TS,{data:function(){return l().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(b){var v=b.data;
return _.N(_.xQ,{data:function(){return(I==null?void 0:I())===1?Object.assign({},v(),{avatar:{avatarViewModel:Object.assign({},_.k(v().avatar,_.WU),{avatarImageSize:"AVATAR_SIZE_M"})}}):v()}})}}),_.N(_.TS,{data:function(){return l().avatarStackViewModel}},{avatarStackViewModel:function(b){return _.N(_.Oq,{data:b.data})}}),_.N(_.Rf,{className:_.m9("ytReelChannelBarViewModelChannelName",(z.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},z)),
text:function(){return l().channelName},
linkInheritColor:!0,userInput:!0}),_.N("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.N(_.TS,{data:function(){return l().subscribeButtonViewModel}},{subscribeButtonViewModel:function(b){var v=b.data;
return _.N(_.py,{data:function(){return(I==null?void 0:I())===1?Object.assign({},v(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},v().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):v()},
isOverlay:!1})},
buttonViewModel:_.h4})),_.N("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.N(_.TS,{data:function(){var b,v;return(v=_.k((b=l())==null?void 0:b.sponsorButtonViewModel,yMA))==null?void 0:v.sponsorButton}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"zf");var VNX=_.P(function(z){var l=function(){var b;return(z==null?void 0:(b=z.overlayDensity)==null?void 0:b.call(z))===1?22:16},I={};
return _.N("yt-reel-multi-format-link-view-model",{class:_.m9("ytReelMultiFormatLinkViewModelHost",(I.ytReelMultiFormatLinkViewModelHostTall=!0,I.ytReelMultiFormatLinkViewModelHostLarge=function(){var b;return((b=z.overlayDensity)==null?void 0:b.call(z))===1},I))},_.N(_.cZ,{ariaLabel:function(){return z.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return z.data().command}},_.N("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.N(_.E,{cond:function(){return z.data().icon},
then:function(b){return _.N(_.pK,{data:b,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:l})}}),_.N(_.Rf,{text:function(){return z.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Af");
VNX.idomCompat=!0;var jQc=_.P(function(z){var l=z.data;var I=z.overlayDensity;var b=_.VK("yt-shorts-suggested-action-view-model");z=_.D(_.Z_(!1,void 0,"XwMNzb"));var v=z.next().value,M=z.next().value;z=_.D(_.Z_(!1,void 0,"ZysOx"));var x=z.next().value,g=z.next().value,G=function(){return l().isMultiLineSa},u=_.F1(M4Q,function(){var A,W;
return(W=(A=l().toggleableContent)==null?void 0:A.entityKey)!=null?W:""}),Z=function(){var A,W,L;
return(L=l().toggleableContent)!=null&&L.entityKey?(W=(A=u())==null?void 0:A.value)!=null?W:!1:!1},H=function(){var A,W,L,lH,Gk,uH,Xt,R1,H7,P7,o1;
return l().toggleableContent?Z()?(A=l().toggleableContent)==null?void 0:A.toggledData:(W=l().toggleableContent)==null?void 0:W.untoggledData:{primaryText:(R1=(L=l().defaultContent)==null?void 0:L.primaryText)!=null?R1:l().text,secondaryText:(lH=l().defaultContent)==null?void 0:lH.secondaryText,onTapCommand:(H7=(Gk=l().defaultContent)==null?void 0:Gk.onTapCommand)!=null?H7:l().onTapCommand,icon:(P7=(uH=l().defaultContent)==null?void 0:uH.icon)!=null?P7:l().icon,image:(o1=(Xt=l().defaultContent)==null?
void 0:Xt.image)!=null?o1:l().image}},y=function(){return G()?l().trailingTapTarget:void 0},f=function(A,W){return function(){return v()?W:A}},R=function(){return{leadingSection:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(I==null?void 0:I())===1?f("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):f("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:f("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
z={};z=_.m9((z.ytShortsSuggestedActionViewModelStaticHost=function(){return!G()},z.ytShortsSuggestedActionViewModelDynamicHost=G,z.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return G()&&x()},z.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return G()&&!x()},z));
_.Sm(function(){if(G()){var A=0,W;if((W=l().animationParams)==null?0:W.shouldExpand){var L,lH;A=((lH=(L=l().animationParams)==null?void 0:L.expansionDelaySecs)!=null?lH:0)*1E3}var Gk,uH=((Gk=l().animationParams)==null?0:Gk.shouldExpand)?setTimeout(function(){M(!0)},A):void 0,Xt,R1;
A=((Xt=l().animationParams)==null?0:Xt.visibilityDelaySecs)?((R1=l().animationParams)==null?NaN:R1.visibilityDelaySecs)*1E3:0;var H7=setTimeout(function(){g(!0)},A);
_.cb(function(){uH&&clearTimeout(uH);clearTimeout(H7)})}});
var F=function(A){_.ae(A,Object.assign({},{form:{element:b.value}}))},Y=_.KK(function(){var A,W=(A=H())==null?void 0:A.onTapCommand;
W&&F(W)}),c=_.KK(function(){var A,W;
if(A=(W=y())==null?void 0:W.onTapCommand)return F(A),!1}),d=_.XV({"vertical-align":"bottom",
"border-radius":function(){var A;return G()?((A=l().defaultContent)==null?0:A.isCircleImage)?"50%":"4px":"0px"},
width:function(){var A,W,L;return G()&&((A=l().defaultContent)==null?0:A.imageSize)?((L=(W=l().defaultContent)==null?void 0:W.imageSize)!=null?L:24)+"px":null},
height:function(){var A,W,L;return G()&&((A=l().defaultContent)==null?0:A.imageSize)?((L=(W=l().defaultContent)==null?void 0:W.imageSize)!=null?L:24)+"px":null}}),V={};
return _.N("yt-shorts-suggested-action-view-model",{class:z,el:b},_.N("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.N("button",{class:_.m9(function(){return G()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var A;
return(A=l().useFullRoundedBorder)!=null&&A?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!y()&&G()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":G()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var A;
return(A=l().disableFixedHeight)!=null&&A?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(V.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(I==null?void 0:I())===1},V)),
"on:click":Y},_.N(_.SD,{model:{color:4}}),_.N("div",{class:_.m9(function(){return G()?R().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.N(_.E,{cond:function(){var A;
return(A=H())==null?void 0:A.image},
then:function(A){return _.N(_.pK,{data:A,alt:"",className:function(){return G()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:d})}}),_.N(_.E,{cond:function(){var A,W;
return(A=H())==null?void 0:(W=A.icon)==null?void 0:W.iconType},
then:function(A){return _.N(_.qt,{icon:A,active:Z,className:function(){return G()?v()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.N("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.N(_.E,{cond:function(){var A;
return(A=H())==null?void 0:A.primaryText},
then:function(A){return _.N("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.N(_.Rf,{text:A}))}}),_.N(_.E,{cond:function(){var A;
return(A=H())==null?void 0:A.secondaryText},
then:function(A){return _.N("div",{class:function(){return R().secondaryText()}},_.N(_.Rf,{text:A}))}}))),_.N(_.E,{cond:y,
then:function(A){return _.N("div",{class:function(){return R().trailingSection()},
"aria-label":function(){var W;return(W=A().a11yLabel)!=null?W:""},
"on:click":c,role:"button",tabindex:0},_.N(_.SD,{model:{color:4}}),_.N(_.qt,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Bf");var JA8=_.P(function(z){var l=z.data;var I=z.overlayDensity;var b=_.VK("yt-shorts-video-title-view-model");z=_.KK(function(x){if(_.$U(_.r5(x),b.value,["A".toString()]))return!1;(x=l().truncatedTextOnTapCommand)&&_.ae(x);return!1});
var v={},M={};return _.N("yt-shorts-video-title-view-model",{el:b,class:_.m9("ytShortsVideoTitleViewModelHost",(v.ytShortsVideoTitleViewModelHostClickable=function(){return!!l().truncatedTextOnTapCommand},v)),
"on:click":z},_.N("h2",{class:_.m9("ytShortsVideoTitleViewModelShortsVideoTitle",(M.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},M))},_.N(_.Rf,{text:function(){return l().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0})))},"Cf");_.zeK=_.P(function(z){var l=z.data;var I=z.overlayDensity;var b=function(){return(I==null?void 0:I())===1};
return _.N("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.N(_.TS,{data:function(){return l().metadataItems}},{badgeViewModel:function(v){v=v.data;
return _.N("div",{class:_.m9(function(){return b()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.N(_.T2,{data:v}))},
playerDisclosureViewModel:function(v){v=v.data;return _.N("div",{class:_.m9(function(){return b()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.N(_.U4K,{data:v}))},
shortsSuggestedActionViewModel:function(v){v=v.data;return _.N("div",{class:_.m9(function(){return b()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.N(jQc,{data:v,
overlayDensity:I}))},
reelChannelBarViewModel:function(v){v=v.data;var M={};return _.N("div",{class:_.m9("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return b()},M))},_.N(avX,{data:v,
overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(v){v=v.data;var M={};return _.N("div",{class:_.m9("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return b()},M))},_.N(VNX,{data:v,
overlayDensity:I}))},
shortsVideoTitleViewModel:function(v){v=v.data;var M={};return _.N("div",{class:_.m9("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return b()},M))},_.N(JA8,{data:v,
overlayDensity:I}))},
reelSoundMetadataViewModel:function(v){v=v.data;var M={};return _.N("div",{class:_.m9("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return b()},M))},_.N(_.UZC,{data:v,
overlayDensity:I}))},
toggleButtonViewModel:function(v){v=v.data;var M={};return _.N("div",{class:_.m9("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return b()},M))},_.N(_.vL,{data:v}))}}))},"Df");var l_X=_.P(function(z){var l=_.xC(z,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=l.size,b=l.onTap,v=l.disabled,M=l.tooltipText;return _.N("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.N(_.PZ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:v(),tooltipText:M(),onTap:b}},
iconName:z.iconType}))},"Ef"),I_8=_.P(function(z){function l(Z){Z.stopPropagation();
Z.code==="ArrowUp"?(Z.preventDefault(),lnu(g.value)):Z.code==="ArrowDown"?(Z.preventDefault(),In1(g.value)):Z.code==="KeyM"?Js$():(Z.code==="KeyK"||Z.code==="Space")&&zwQ(G())}
var I=_.xC(z,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});z=I.previousButtonDisabled;var b=I.nextButtonDisabled,v=I.data,M=I.playabilityStatus,x=I.previewThumbnail,g=_.VK("ytd-shorts-miniplayer-overlay"),G=_.nK(_.Gvx),u;_.c8(function(){(u=_.e6(g.value))&&u.addEventListener("keydown",l)});
_.cb(function(){var Z;(Z=u)==null||Z.removeEventListener("keydown",l)});
I=function(){var Z,H,y;return(Z=v())==null?void 0:(H=Z.reelPlayerOverlayRenderer)==null?void 0:(y=H.likeButton)==null?void 0:y.likeButtonRenderer};
return _.N("ytd-shorts-miniplayer-overlay",{el:g,class:"ytdShortsMiniplayerOverlayHost"},_.N("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.XV({"background-image":function(){var Z=x();return Z?'url("'+_.Hr(Z.thumbnails)+'")':""}})}),_.N("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.N("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.N(l_X,{iconType:function(){var Z=G();
return Z===2||Z===-1||Z===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){zwQ(G())},
tooltipText:function(){var Z=G();return Z===1||Z===3?_.mY("PLAYER_LABEL_PAUSE"):_.mY("PLAYER_LABEL_PLAY")}}),_.N(_.Lsq,{orientation:"horizontal_right"})),_.N("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.N(l_X,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:z,onTap:function(){lnu(g.value)},
tooltipText:_.mY("PREVIOUS_VIDEO_LABEL")}),_.N(l_X,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:b,onTap:function(){In1(g.value)},
tooltipText:_.mY("NEXT_VIDEO_LABEL")}),_.C("web_shorts_pip_like_button")?_.N("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.N(WC4,{buttonTooltipPosition:"left",data:I,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.N("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.N(_.E,{cond:function(){var Z,H;return _.k((Z=v())==null?void 0:(H=Z.reelPlayerOverlayRenderer)==null?void 0:H.metapanel,
_.Emu)},
then:function(Z){return _.N("div",{class:_.m9("ytdShortsMiniplayerOverlayInteractive")},_.N(_.zeK,{data:Z}))}})),_.N("div",{class:_.m9("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var Z;return!((Z=v())==null||!Z.adsOverlay)||M()&&!WwS(M())}},_.N("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.N(_.nNS,null)))),_.N(_.E,{cond:function(){var Z=v(),H,y;
Z=_.k(Z==null?void 0:(H=Z.adsOverlay)==null?void 0:(y=H.fulfillmentContent)==null?void 0:y.fulfilledLayout,pnu);return _.k(Z==null?void 0:Z.renderingContent,NO0)},
then:function(Z){return _.N("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.N(Q9_,{data:Z}))}}))},"Ff");var bF$=_.P(function(){var z=_.D(_.Z_(new _.X5(NaN,NaN),void 0,"hq9Bjf")),l=z.next().value,I=z.next().value;z=_.D(_.Z_(!1,void 0,"Mu3aZc"));var b=z.next().value,v=z.next().value,M=_.D(_.Z_(!1,void 0,"LGtoFb"));z=M.next().value;var x=M.next().value,g=_.pG().resolve(_.Af).miniplayerPropSignalMap[0],G=g.data,u=g.shortsData,Z=g.nextButtonDisabled,H=g.shortsPreviewThumbnail,y=g.previousButtonDisabled,f=g.externalPlaylistData;M=g.toastData;var R=g.playabilityStatus,F=g.isDisabled,Y=g.playerVe,c=g.closeVe;
g=_.nK(_.Z6);_.ay("yt-pip-window-resized",function(W){I(W)});
_.ay("yt-activate-pip-miniplayer",function(){return _.O(function(W){x(!0);_.qe(W)})});
var d=function(){var W;return!((W=f())==null||!W.contents)&&b()},V=function(){var W=l(),L=!!G(),lH=d();
W=W.clone();L&&(W.height-=76);lH&&(W.height-=285);return W},A=function(){v(!b())};
_.Te(function(){var W=Y(),L=_.sU(11),lH=_.h8(11);L&&lH&&W&&(_.LM(L,lH,W),lH=c())&&(_.UK(L,W,[lH]),_.Vi(L,[lH]))},"fHkmfb");
return _.N("ytd-pip-container",{class:"ytdPipContainerHost"},_.N(_.E,{cond:z,then:function(){return _.N(_.x4s,{isDisabled:F,playabilityStatus:R,size:V})}}),_.N(_.E,{cond:G,
then:function(){return _.N(_.plK,{data:G,expanded:b,onExpandClick:A,playlistData:f})}}),_.N(_.E,{cond:d,
then:function(){return _.N("div",{class:"ytdPipContainerPlaylistPanel"},_.N(_.wI4,{data:f,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.N(_.E,{cond:g,
then:function(){return _.N(I_8,{data:u,nextButtonDisabled:Z,previousButtonDisabled:y,playabilityStatus:R,previewThumbnail:H})}}),_.N("div",{class:"ytdPipContainerToast"},_.N(_.O0y,{toastData:M})))},"Gf");var Zw=function(z,l){var I=this;this.pipController=z;this.JSC$18725_clientRoot=l;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=HZt();this.watchPipEnabled=_.C("web_watch_pip");this.shortsPipEnabled=_.C("web_shorts_pip");this.JSC$18725_watchWhileEnabled=_.C("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;_.Wf(_.vF(),p2$,function(b){I.isSingleOptionSurveyActive=b});
this.JSC$18725_onPlayerPlayVideo=this.JSC$18725_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);_.n2(_.WW.getInstance(),this.miniplayerServiceActionMap,this.JSC$18725_clientRoot);z.pictureInPictureSupported()&&_.cW("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},zrA,N20,xMW,Ezy,uQq,E2M;
Zw.prototype.handleMediaSessionPipActivation=function(){var z=this,l;return _.O(function(I){_.wb().mediaSessionPipActivation=!0;l=_.pG().resolve(_.OB);return l.isOnWatch()&&z.watchPipEnabled?(_.wb().watchPipActivation=!0,_.boq(z,l.data),I.jumpTo(0)):l.isOnShorts()&&z.shortsPipEnabled?(_.wb().shortsPipActivation=!0,_.vzK(z),I.jumpTo(0)):z.isMiniplayerActive()&&z.watchPipEnabled&&!z.watchWhileMode?I.yield(M3K(z),0):I.jumpTo(0)})};
var M3K=function(z){var l,I,b,v;return _.O(function(M){if(M.nextAddress==1)return l=!z.miniplayerToPipMode,I=z.playerElement,b=z.miniplayerData,v=z.watchResponse,M.yield(z.deactivate(),2);if(M.nextAddress!=3)return l?(_.wb().mediaSessionPipActivation=!0,_.wb().watchPipActivation=!0):_.wb().miniplayerButtonActivation=!0,M.yield(z.activate(I,b,v),3);z.miniplayerToPipMode=l;_.qe(M)})};
Zw.prototype.onDownloadedVideoDeleted=function(z){var l,I=_.k((l=this.miniplayerData)==null?void 0:l.watchEndpoint,_.zb),b,v;I&&((b=this.watchResponse)==null?void 0:(v=b.playerResponse)==null?void 0:v.offlineState)!==void 0&&(l=I.videoId)&&z&&l===z&&this.close()};
Zw.prototype.onShowMiniplayerCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H,y;return _.O(function(f){switch(f.nextAddress){case 1:return I=_.k(z,bRj),v=(b=I)==null?void 0:b.miniplayerCommand,M=_.k(v,_.zb),v&&M&&!l.active?f.yield(_.JM.getInstance(),2):f.return();case 2:return x=f.yieldResult,f.yield((g=x)==null?void 0:g.get("yt-miniplayer-shown-video-id"),3);case 3:G=f.yieldResult;u=M.videoId;if(!u||G===u)return f.return();Z=_.pG().resolve(_.OB);if(Z.isOnWatch())return _.PW(Error("Mj")),f.return();
H={channelItem:{externalId:btoa(u)}};l.readyToResumeVe=_.kU(121253,void 0,void 0,H);_.wb().showMiniplayerCommandActivation=!0;return f.yield(_.uBp(l,v,!0),4);case 4:return l.active&&(_.Hj(l,{readyToResumeVe:l.readyToResumeVe,isReadyToResume:!0}),l.isReadyToResume=!0),f.yield((y=x)==null?void 0:y.set("yt-miniplayer-shown-video-id",M.videoId),5);case 5:l.readyToResumeVe=void 0,_.qe(f)}})};
Zw.prototype.init=function(z){this.miniplayerEl?_.PW(new _.qB("MiniplayerService already initialized.")):this.miniplayerEl=z};
Zw.prototype.isInitialized=function(){var z=!!this.miniplayerEl;z||_.PW(new _.qB("MiniplayerService used before initialized."));return z};
_.boq=function(z,l){if(z.isInitialized()){var I=_.s2(l.response,!1,l.playerResponse),b=_.pG().resolve(_.OB).getPlayerFromWatch();_.wb().currentEndpoint=I.watchEndpoint||null;z.activate(b,I,l)}};
_.vzK=function(z){if(z.isInitialized()){var l=_.pG().resolve(_.OB).getPlayerFromShorts();z.activate(l)}};
zrA=function(z,l){var I;(I=!z.isInitialized())||(I=_.pG().resolve(_.OB).isOnWatch()&&z.watchPipMode,I=!(z.isMiniplayerActive()&&(_.wb().userActivation||_.wb().lockupActivation||I)));if(I)return!1;pb1(z,l)?_.N3(z):E2M(z,l);return z.watchPipMode?!_.pG().resolve(_.OB).isOnWatch():!0};
Zw.prototype.isMiniplayerActive=function(){return this.active};
var pb1=function(z,l){var I;l=(I=_.k(l,_.zb))==null?void 0:I.videoId;var b,v;z=(v=_.k((b=z.miniplayerData)==null?void 0:b.watchEndpoint,_.zb))==null?void 0:v.videoId;return l!=null&&l===z};
Zw.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.gC(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Gb(this.miniplayerEl,"yt-navigate-home-action"))};
_.uBp=function(z,l,I,b){I=I===void 0?!1:I;var v,M,x;return _.O(function(g){switch(g.nextAddress){case 1:if(z.active){g.jumpTo(2);break}v=_.pG().resolve(_.OB);if(x=(M=z.playerElement)!=null?M:v.getPlayerFromWatch()){g.jumpTo(3);break}return g.yield(_.pG().resolve(_.HU),4);case 4:x=v.getPlayerFromWatch();case 3:if(!x){_.PW(Error("Oj"));g.jumpTo(2);break}return g.yield(z.activate(x,b),2);case 2:return z.active?g.yield(E2M(z,l,I),0):g.return()}})};
Zw.prototype.activate=function(z,l,I){var b=this,v,M,x,g,G,u,Z,H,y;return _.O(function(f){switch(f.nextAddress){case 1:if(!b.isInitialized())return f.return();if(!z)return _.PW(Error("Oj")),f.return();if(_.fz_()||b.isMiniplayerActive())var R=!0;else R=_.wb().watchPipActivation||_.wb().watchWhileActivation,_.pG().resolve(_.OB).isOnWatch()&&!R?(_.PW(new _.qB("miniplayer activated on watch page")),R=!0):R=_.wb().watchWhileActivation?b.userDeactivatedWatchWhile||!!document.pictureInPictureElement||X3Q():
!1;if(R)return yZA(),f.return();v=_.wb().mediaSessionPipActivation;M=_.wb().shortsPipActivation;x=_.wb().watchPipActivation;G=(g=_.wb().watchWhileActivation)||x;u=x||M;if(!b.pictureInPictureEnabled()||!u){f.jumpTo(2);break}return f.yield(DM4(b,v),3);case 3:if(!f.yieldResult)return _.PW(Error("Nj")),yZA(),f.return();case 2:return b.setActive(!0),b.watchResponse=I,b.playerElement=z,b.updateMiniplayerData(l),f.yield(xMW(b,z),4);case 4:if(!b.active)return _.PW(new _.qB("miniplayer deactivated during activation")),
b.removePlayerListeners(),f.return();R=_.pG().resolve(_.NG);R.addEventListener("yt-navigate",_.KJ(b,b.onPlaylistNavigate));R.addEventListener("yt-playlist-data-updated",_.KJ(b,b.JSC$18725_onPlaylistDataUpdated));b.JSC$18725_onPlaylistDataUpdated();yZA();b.JSC$18725_watchWhileEnabled&&_.OoC(b,g);b.pictureInPictureEnabled()&&b.shortsPipEnabled&&(b.shortsPipMode=M,_.vF().dispatch(vH_(b.shortsPipMode)));b.pictureInPictureEnabled()&&b.watchPipEnabled&&(b.watchPipMode=x,_.iCf(b.handleMediaSessionPipActivation));
b.player&&(Z=b.player.getPlayerState(),H=Z===1,_.vF().dispatch(EHA(Z)),_.EK(b.miniplayerEl,"yt-miniplayer-play-state-changed",[H]),_.wb().isVideoPlaying=H);_.EK(b.miniplayerEl,"yt-miniplayer-endpoint-changed");gz1(b);_.GeS(b);if(b.shortsPipMode||b.watchPipMode)f=f.yield(_.Gb(b.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{R=f.yield;var F=_.Gb(b.miniplayerEl,"yt-activate-miniplayer",[G])[0];f=R.call(f,F,6)}return f;case 6:if(b.watchResponse){R=b.getScreenLayer();F=_.sU(0);var Y=Ag1(0);F&&Y&&
(_.$O(F,Y,R),R===0&&eJt(void 0,0))}N20(b);Ezy(b,!0);(y=b.getPlayerElement())==null||y.focusOnPlayer();_.qe(f)}})};
Zw.prototype.updateMiniplayerData=function(z){this.miniplayerData=z;_.Hj(this,{data:z})};
_.GeS=function(z){var l,I,b=((l=z.miniplayerData)==null?void 0:(I=l.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";l=z.watchWhileMode||z.watchPipMode?b&&!_.pG().resolve(_.OB).isOnWatch():b;_.Hj(z,{isDisabled:l});var v,M;I=_.k((v=z.miniplayerData)==null?void 0:(M=v.miniplayerRenderer)==null?void 0:M.minimizedEndpoint,_.WT);l&&I&&_.pG().resolve(_.In).openSheet({openPopupActionCommand:{openPopupAction:I}},z.miniplayerEl)};
N20=function(z){if(z.watchResponse&&!uQq(z)){var l,I=(l=z.watchResponse.playerResponse)==null?void 0:l.trackingParams;I&&(_.Hj(z,{expandVe:_.kU(35989),closeVe:_.kU(34699),readyToResumeCloseVe:_.kU(131070),repositionVe:_.kU(226204),resizeVe:_.kU(226205)}),_.Hj(z,{playerVe:_.ch(I)}))}};
xMW=function(z,l){return _.O(function(I){if(I.nextAddress==1)return l.preparePlayer(),I.yield(l.getPlayerPromise(),2);z.player=I.yieldResult;z.player&&(z.player.addEventListener("onPlayVideo",z.JSC$18725_onPlayerPlayVideo),z.player.addEventListener("onCloseMiniplayer",z.onPlayerCloseMiniplayer),z.player.addEventListener("onExpandMiniplayer",z.onPlayerExpandMiniplayer),z.player.addEventListener("onStateChange",z.onPlayerStateChange));_.qe(I)})};
_.p=Zw.prototype;_.p.JSC$18725_onPlayerPlayVideo=function(z){var l=z.sessionData&&"autonav"in z.sessionData,I;z.sessionData&&z.sessionData.itct&&(I=z.sessionData.itct);var b=z.watchEndpoint;l=b&&l?_.Zvt(b,I):_.pc(z.videoId,z.listId||void 0,I);z.sessionData&&_.vu(_.k(l.commandMetadata,_.kB).url,z.sessionData);E2M(this,l)};
_.p.onPlayerExpandMiniplayer=function(){_.N3(this)};
_.p.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.p.onPlayerStateChange=function(){if(this.player){var z=this.player.getPlayerState(),l=z===1;_.vF().dispatch(EHA(z));_.vF().dispatch(_.H6n(z));_.EK(this.miniplayerEl,"yt-miniplayer-play-state-changed",[l]);_.wb().isVideoPlaying=l;if(z===0){l=!_.Bf.getInstance().isAutoplaySetExplicitly();var I,b,v,M,x,g,G=(I=this.watchResponse.response)==null?void 0:(b=I.contents)==null?void 0:(v=b.twoColumnWatchNextResults)==null?void 0:(M=v.autoplay)==null?void 0:(x=M.autoplay)==null?void 0:(g=x.autoplayExplicitChoiceDialogRenderer)==
null?void 0:g.confirmDialogRenderer;l&&G&&this.player.setAutonavState(1)}z===0&&this.watchWhileMode&&this.deactivate()}};
_.p.onPlaylistNavigate=function(z,l){var I=this,b,v,M,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1){if(!_.k(l.endpoint,_.zb))return Z.return();_.wb().currentEndpoint=l.endpoint;_.EK(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.pG().resolve(_.OB).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return Z.return();z.stopPropagation();(M=(v=_.k((b=l.endpoint)==null?void 0:b.commandMetadata,_.kB))==null?void 0:v.url)&&l.tempData&&!_.h7.isEmpty(l.tempData)&&_.vu(M,l.tempData);x={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};g=new Hzp(function(){return I.getPlayerElement()},x,{layer:I.getScreenLayer()});
G=function(H){g.processChunk({endpoint:l.endpoint,data:H})};
Zoq(I);I.miniplayerFetchRequest=Ho0(I,l.endpoint,G);_.RL(Z,2);return Z.yield(I.miniplayerFetchRequest,4)}if(Z.nextAddress!=2)return u=Z.yieldResult,yX1(I,u),_.a3(Z,0);_.XP(Z);_.qe(Z)})};
_.p.JSC$18725_onPlaylistDataUpdated=function(){var z=_.pG().resolve(_.NG).getPlaylistData();this.hasPlaylistData=!!z;_.Hj(this,{externalPlaylistData:z||{}})};
_.p.close=function(z){if(this.isInitialized())if(z){if(!((this.watchWhileMode||this.watchPipMode)&&_.pG().resolve(_.OB).isOnWatch()||this.shortsPipMode)){var l;(l=this.getPlayerElement())==null||l.stop()}this.deactivate()}else _.ya().closeMiniplayer(this.miniplayerEl)};
_.p.deactivate=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1){if(!l.isInitialized()||!l.active)return x.return();l.setActive(!1);Zoq(l);(I=!!z&&pb1(l,z))&&l.isSingleOptionSurveyActive&&_.Gb(l.miniplayerEl,"yt-show-watch-page-survey",[l.isSingleOptionSurveyActive]);return x.yield(f_K(l),2)}if(x.nextAddress!=3){Ezy(l,!1);l.isReadyToResume=!1;l.watchResponse=void 0;l.updateMiniplayerData(void 0);l.shortsPipMode&&(l.shortsPipMode=!1,_.vF().dispatch(vH_(l.shortsPipMode)),HDq(l.pipController),
(b=l.player)==null||b.setInternalSize(NaN,NaN));l.watchPipMode&&(l.watchPipMode=!1,HDq(l.pipController));(v=l.watchWhileMode)&&_.OoC(l,!1);l.removePlayerListeners();var g=_.pG().resolve(_.NG);g.removeEventListener("yt-navigate",_.KJ(l,l.onPlaylistNavigate));g.removeEventListener("yt-playlist-data-updated",_.KJ(l,l.JSC$18725_onPlaylistDataUpdated));_.wb().currentEndpoint=null;_.EK(l.miniplayerEl,"yt-miniplayer-endpoint-changed");l.playerElement=null;yZA();if(l.shortsPipMode||l.watchPipMode)x=x.jumpTo(3);
else{g=x.yield;var G=_.Gb(l.miniplayerEl,"yt-deactivate-miniplayer",[I,v])[0];x=g.call(x,G,3)}return x}(M=l.player)==null||M.setInternalSize(NaN,NaN);l.player=null;_.qe(x)})};
var f_K=function(z){var l;return _.O(function(I){l=_.pG().resolve(_.OB);return z.shortsPipMode?I.yield(l.movePlayerToShorts(z.playerElement),0):I.yield(l.movePlayerToWatch(z.playerElement),0)})};
Zw.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18725_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Zw.prototype.setActive=function(z){this.active=z;this.isSingleOptionSurveyActive?_.Gb(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Gb(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.vF().dispatch(_.GZ({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.OoC=function(z,l){z.watchWhileMode=l;_.Hj(z,{watchWhile:l})};
Ezy=function(z,l){if(!uQq(z))if(z.shortsPipMode||z.watchPipMode){var I;(I=z.player)==null||I.setDocumentPictureInPicture(l)}else{var b;(b=z.player)==null||b.setMinimized(l)}};
uQq=function(z){return z.watchWhileMode&&_.C("kevlar_watch_while_counterfactual")};
_.N3=function(z){var l;return _.O(function(I){switch(I.nextAddress){case 1:if(!z.isInitialized())return I.return();_.RL(I,2);return I.yield(z.miniplayerFetchRequest,4);case 4:_.a3(I,3);break;case 2:_.XP(I);case 3:z.watchResponse&&z.miniplayerData&&z.miniplayerData.watchEndpoint?(l={url:z.watchResponse.url,endpoint:z.miniplayerData.watchEndpoint,data:z.watchResponse,miniplayer:!0},_.gC(z.miniplayerEl,"yt-navigate-cache",l)):z.miniplayerData&&z.miniplayerData.watchEndpoint&&_.gC(z.miniplayerEl,"yt-navigate",
{endpoint:z.miniplayerData.watchEndpoint}),_.qe(I)}})};
E2M=function(z,l,I){var b,v,M,x;return _.O(function(g){if(g.nextAddress==1){if(pb1(z,l))return g.return();_.wb().currentEndpoint=l;_.EK(z.miniplayerEl,"yt-miniplayer-endpoint-changed");_.EK(z.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.wb().isVideoPlaying=!1;b={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};v=new Hzp(function(){return z.getPlayerElement()},b,{layer:z.getScreenLayer(),
parentLayer:0},void 0,z.readyToResumeVe);M=function(G){var u,Z,H=Object.assign({},(u=G.playerResponse)==null?void 0:(Z=u.playerConfig)==null?void 0:Z.playbackStartConfig,{startPaused:!0}),y;I&&((y=G.playerResponse)==null?0:y.playerConfig)&&(G.playerResponse.playerConfig.playbackStartConfig=H);v.processChunk({endpoint:l,data:G})};
Zoq(z);z.miniplayerFetchRequest=Ho0(z,l,M);_.RL(g,2);return g.yield(z.miniplayerFetchRequest,4)}if(g.nextAddress!=2)return x=g.yieldResult,yX1(z,x),_.a3(g,0);_.XP(g);_.qe(g)})};
Zw.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var Zoq=function(z){z.miniplayerFetchRequest&&(z.miniplayerFetchRequest.cancel&&z.miniplayerFetchRequest.cancel("Active request obsolete"),z.miniplayerFetchRequest=null)},Ho0=function(z,l,I){var b=_.UD.instance,v,M=(v=_.k(l.commandMetadata,_.kB))==null?void 0:v.url,x;
v=!M||_.C("disable_miniplayer_tempdata")?{}:(x=Q5f(M))!=null?x:{};return LI(b,l,v,window.location.href,"watch",function(g,G){I(G)},function(g){return g!==z.miniplayerFetchRequest})},yX1=function(z,l){var I;
_.O(function(b){if(!l)return b.return();z.watchResponse=l;N20(z);gz1(z);I=_.s2(l.response,!1,l.playerResponse);if(z.isMiniplayerActive()){l.response&&(z.playerElement.watchNextData=l.response);var v=_.h7.getValueByKeys.apply(_.h7,[l].concat(_.ht(X6I)));_.h7.getValueByKeys.apply(_.h7,[l].concat(_.ht(Y0M)))&&v&&_.pG().resolve(_.NG).setAutoplayRenderer(v);if(v)if(_.C("kevlar_is_pupi_enabled")){var M,x,g,G,u,Z=((M=l.response)==null?0:(x=M.playerOverlays)==null?0:(g=x.playerOverlayRenderer)==null?0:(G=
g.autonavToggle)==null?0:(u=G.autoplaySwitchButtonRenderer)==null?0:u.enabled)?2:1;_.Bf.getInstance().setState(Z,!1,!1)}else M=wK$()?2:1,(Z=z.player)==null||Z.setAutonavState(M);z.updateMiniplayerData(I);_.GeS(z)}_.qe(b)})},gz1=function(z){var l,I,b=(l=z.watchResponse)==null?void 0:(I=l.playerResponse)==null?void 0:I.playabilityStatus,v;
l=b==null?void 0:(v=b.miniplayer)==null?void 0:v.miniplayerRenderer;(l==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&l.minimizedEndpoint&&_.uJ(z.miniplayerEl,[l.minimizedEndpoint]);_.Hj(z,{playabilityStatus:b})};
Zw.prototype.openToast=function(z,l){_.Hj(this,{toastData:{data:z,label:l}})};
_.Hj=function(z,l){(0,z.miniplayerPropSignalMap[1])(l)};
Zw.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var z;return this.playerElement?this.playerElement:(z=_.Hy(this.miniplayerEl).querySelector("#player-container"))==null?void 0:z.firstElementChild};
Zw.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var DM4=function(z,l){l=l===void 0?!1:l;var I,b,v,M,x,g,G;return _.O(function(u){if(u.nextAddress==1){I=navigator.userActivation.isActive||l;if(!I||!z.pictureInPictureSupported())return u.return(!1);b=CE1(z);v=b.width;M=b.height;return u.yield(z.pipController.openWindow({width:v,height:M}),2)}x=u.yieldResult;g=z.pipController.getWindow();if(!g||!x)return u.return(!1);g.document.body.style.overflow="hidden";G=vif(g);yTS(z.pipController,function(){keK(z);G()});
return u.return(!0)})},CE1=function(z){var l=_.wb().shortsPipActivation,I,b;
z=l?.5625:(b=(I=z.player)==null?void 0:I.getVideoAspectRatio())!=null?b:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;l=l?0:76;return z>1?new _.X5(I,l+I/z):new _.X5(I*z,l+I)},keK=function(z){var l;
_.O(function(I){l=_.pG().resolve(_.OB);return l.isOnWatch()&&z.watchPipMode||l.isOnShorts()&&z.shortsPipMode?I.yield(z.deactivate(),0):z.miniplayerToPipMode?I.yield(M3K(z),0):z.watchPipMode?I.yield(_.N3(z),0):I.jumpTo(0)})};
Zw.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.vP.Object.defineProperties(Zw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Zw[HG]=[fay,U3n];var Req="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(" "),
mMy="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(" "),Ky4="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
t3C="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var B2s=null;var Xbq={},qf0=(Xbq.initialized={priority:10,callback:function(z){var l=_.pG();l.addProvider({provide:CEI,useClass:QLy});l.addProvider({provide:_.FXS,useFactory:function(){return new keu}});
l.addProvider({provide:M$,useValue:_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});l.addProvider({provide:Hn4,useValue:5184E6});l.addProvider({provide:PuC,useValue:_.Y1()});l.addProvider({provide:W0F,useClass:jvI});l.addProvider({provide:yj,useClass:yj});l.addProvider({provide:_.HU,useFactory:function(){return Mp_.promise}});
l.addProvider({provide:_.DnI,useFactory:function(){return _.p6I.promise}});
l.addProvider({provide:ZXt,useValue:function(){var G;return((G=_.GS())==null?void 0:G.getPlayer())||null}});
var I={};l.addProvider((I.provide=_.dv,I.useFactory=function(G,u){return function(){return Eop(G,u)}},I[HG]=[M$,
Hn4],I));I={};l.addProvider((I.provide=_.PE,I.useClass=Ol1,I[HG]=[M$,Hn4],I));I={};l.addProvider((I.provide=_.kjQ,I.useClass=ESs,I[HG]=[_.PE],I));l.addProvider({provide:ag,useFactory:_.vF});l.addProvider({provide:gx,useFactory:_.vF});l.addProvider({provide:la0,useFactory:_.vF});l.addProvider({provide:sap,useFactory:_.vF});l.addProvider({provide:_.G$,useFactory:_.vF});l.addProvider({provide:$T,useValue:_.mM});l.addProvider({provide:KXX,useClass:dok});l.addProvider({provide:n5s,useClass:WQF});l.addProvider({provide:RH,
useClass:RH});l.addProvider({provide:eC,useClass:eC});l.addProvider({provide:w3,useClass:w3});l.addProvider({provide:W2,useClass:W2});l.addProvider({provide:ix,useClass:ix});l.addProvider({provide:Is,useClass:Is});l.addProvider({provide:UV,useClass:UV});l.addProvider({provide:_.j_W,useValue:Uj8});l.addProvider({provide:_.br,useFactory:_.iY});l.addProvider({provide:$X,useFactory:_.Bu});I={};l.addProvider((I.provide=MBY,I.useFactory=function(G){return function(u){var Z=Z===void 0?{}:Z;var H,y,f=(y=
_.k((H=u.endpoint)==null?void 0:H.commandMetadata,_.kB))==null?void 0:y.rootVe;if(f){var R,F;if(H=u.previousCsn||((F=_.k((R=u.endpoint)==null?void 0:R.commandMetadata,Tbz))==null?void 0:F.parentCsn)){var Y=Y===void 0?{}:Y;if(H!==_.sU(Y.layer)||f!==Ag1(Y.layer))a0Y(H,Y.cttAuthInfo,Y.layer||0),eJt(H,Y.layer||0),R=Y.layer||0,_.hr(wGS(R===void 0?0:R),f);Z.parentCsn=H}u.endpoint&&H?zBn(G,u.endpoint,Z):_.db(G,f,void 0,Z);var c;((c=u.response)==null?0:c.trackingParams)&&G.graftServerVe(u.response.trackingParams);
var d;((d=u.playerResponse)==null?0:d.trackingParams)&&G.graftServerVe(u.playerResponse.trackingParams);var V;((V=u.reelWatchSequenceResponse)==null?0:V.trackingParams)&&G.graftServerVe(u.reelWatchSequenceResponse.trackingParams)}}},I[HG]=[_.br],I));
I={};l.addProvider((I.provide=bDC,I.useClass=IaS,I[HG]=[$T,_.G$],I));I={};l.addProvider((I.provide=nv,I.useClass=nv,I[HG]=[_.HU,_.G$],I));I={};l.addProvider((I.provide=ed,I.useClass=ed,I[HG]=[gx,_.DQ],I));l.addProvider({provide:_.ODK,useClass:kTc});I={};l.addProvider((I.provide=_.lL,I.useClass=N00,I[HG]=[_.ODK,_.MB(_.vD)],I));l.addProvider({provide:_.In,useClass:aH});l.addProvider({provide:_.YjX,useClass:gdl});l.addProvider({provide:_.bL,useClass:Lv});_.C("enable_ai_companion")&&l.addProvider({provide:_.vD,
useClass:ZD1});I={};l.addProvider((I.provide=_.Pz,I.useClass=C8c,I[HG]=[_.Pz],I));l.addProvider({provide:_.oB,useClass:s14});l.addProvider({provide:le,useClass:le});l.addProvider({provide:tV,useClass:tV});l.addProvider({provide:Dg,useClass:Dg});I={};l.addProvider((I.provide=$p,I.useClass=$p,I[HG]=[_.DQ,_.AY],I));l.addProvider({provide:Hz,useClass:Um});I={};l.addProvider((I.provide=CT,I.useClass=CT,I[HG]=[_.In,Hz],I));I={};l.addProvider((I.provide=Ey,I.useClass=Ey,I[HG]=[_.In],I));_.C("web_enable_feedback_endpoint_resolver")&&
(I={},l.addProvider((I.provide=VG,I.useClass=VG,I[HG]=[ag,UC],I)),l.addProvider({provide:UC,useClass:Onl}));_.C("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},l.addProvider((I.provide=J3,I.useClass=J3,I[HG]=[ag],I)),I={},l.addProvider((I.provide=jl,I.useClass=jl,I[HG]=[UC],I)));I={};l.addProvider((I.provide=yE,I.useClass=yE,I[HG]=[_.bL,Hz],I));I={};l.addProvider((I.provide=G0,I.useClass=G0,I[HG]=[_.bL],I));I={};l.addProvider((I.provide=fT,I.useClass=fT,I[HG]=[_.AY,_.lL],I));I={};l.addProvider((I.provide=
Zg,I.useClass=Zg,I[HG]=[_.AY,_.br],I));l.addProvider({provide:LT,useClass:LT});I={};l.addProvider((I.provide=rJ,I.useClass=rJ,I[HG]=[ag],I));l.addProvider({provide:xf,useClass:xf});l.addProvider({provide:Dd,useClass:Dd});I={};l.addProvider((I.provide=gh,I.useClass=gh,I[HG]=[ag],I));I={};l.addProvider((I.provide=Gd,I.useClass=Gd,I[HG]=[_.AY,ag],I));I={};l.addProvider((I.provide=NV,I.useClass=NV,I[HG]=[ag],I));I={};l.addProvider((I.provide=EV,I.useClass=EV,I[HG]=[ag],I));I={};l.addProvider((I.provide=
N$,I.useClass=N$,I[HG]=[_.lL],I));I={};l.addProvider((I.provide=JV,I.useClass=JV,I[HG]=[_.br],I));I={};l.addProvider((I.provide=MV,I.useClass=MV,I[HG]=[Wz],I));I={};l.addProvider((I.provide=p3,I.useClass=p3,I[HG]=[Wz],I));l.addProvider({provide:Io,useClass:Io});l.addProvider({provide:bF,useClass:bF});l.addProvider({provide:jI,useClass:jI});I={};l.addProvider((I.provide=kX,I.useClass=kX,I[HG]=[_.lL,_.DQ],I));l.addProvider({provide:vz,useClass:vz});I={};l.addProvider((I.provide=ue,I.useClass=ue,I[HG]=
[_.AY,_.lL],I));l.addProvider({provide:xX,useClass:xX});I={};l.addProvider((I.provide=hV,I.useClass=hV,I[HG]=[ag,_.AY,_.Pz],I));I={};l.addProvider((I.provide=dJ,I.useClass=dJ,I[HG]=[_.AY,_.DQ],I));l.addProvider({provide:$Jp,useValue:BXu});l.addProvider({provide:LD_,useValue:Q$5});l.addProvider({provide:o$,useClass:o$});I={};l.addProvider((I.provide=SI,I.useClass=SI,I[HG]=[ag],I));I={};l.addProvider((I.provide=sy,I.useClass=sy,I[HG]=[_.oB,_.DQ],I));I={};l.addProvider((I.provide=z0,I.useClass=z0,I[HG]=
[_.DQ],I));l.addProvider({provide:Lx,useFactory:function(){return new Lx(_.vF())}});
l.addProvider({provide:tvG,useFactory:_.PF.getInstance});I={};l.addProvider((I.provide=pT,I.useClass=pT,I[HG]=[M$,tvG,_.DQ],I));l.addProvider({provide:I$,useClass:I$});l.addProvider({provide:el,useClass:el});l.addProvider({provide:A3,useClass:A3});l.addProvider({provide:_.wW,useClass:_.wW});l.addProvider({provide:Hw,useClass:Hw});I={};l.addProvider((I.provide=QE,I.useClass=QE,I[HG]=[gx],I));I={};l.addProvider((I.provide=KT,I.useClass=KT,I[HG]=[_.DQ],I));I={};l.addProvider((I.provide=YX,I.useClass=
YX,I[HG]=[_.DQ],I));I={};l.addProvider((I.provide=T0,I.useClass=T0,I[HG]=[_.DQ],I));_.C("web_enable_prefetching_videos_on_home")&&(l.addProvider({provide:$D,useClass:$D}),l.addProvider({provide:Dw,useClass:Dw}));I={};l.addProvider((I.provide=Zd,I.useClass=Zd,I[HG]=[_.DQ],I));l.addProvider({provide:Wp,useClass:Wp});I={};l.addProvider((I.provide=Uy,I.useClass=Uy,I[HG]=[_.AY,_.DQ],I));I={};l.addProvider((I.provide=nx,I.useClass=nx,I[HG]=[_.DQ],I));I={};l.addProvider((I.provide=xa,I.useClass=xa,I[HG]=
[_.AY,_.DQ],I));l.addProvider({provide:q$,useClass:q$});I={};l.addProvider((I.provide=Bz,I.useClass=Bz,I[HG]=[gx,_.DQ],I));l.addProvider({provide:ie,useClass:ie});I={};l.addProvider((I.provide=C3,I.useClass=C3,I[HG]=[gx,_.DQ,_.AY],I));I={};l.addProvider((I.provide=kf,I.useClass=kf,I[HG]=[_.DQ],I));I={};l.addProvider((I.provide=f3,I.useClass=f3,I[HG]=[_.DQ,_.AY],I));I={};l.addProvider((I.provide=cz,I.useClass=cz,I[HG]=[_.HU],I));I={};l.addProvider((I.provide=FR,I.useClass=FR,I[HG]=[_.HU],I));l.addProvider({provide:AV,
useClass:AV});l.addProvider({provide:nT,useClass:nT});l.addProvider({provide:OV,useClass:OV});l.addProvider({provide:a$,useClass:a$});l.addProvider({provide:wJ,useClass:wJ});l.addProvider({provide:Oy,useClass:Oy});l.addProvider({provide:eI,useClass:eI});_.C("kevlar_enable_mss_lazy_load")&&l.addProvider({provide:_.nI,useClass:u5l});l.addProvider({provide:_.nq,useClass:jd});l.addProvider({provide:tM,useFactory:function(){return _.WW.getInstance()}});
l.addProvider({provide:JyK,useFactory:Bdu});l.addProvider({provide:Wz,useFactory:function(){return _.JM.getInstance()}});
l.addProvider({provide:az_,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};l.addProvider((I.provide=_.wv,I.useClass=_.wv,I[HG]=[_.HU,_.DQ,_.br,JyK,Wz,tM,az_,$T],I));l.addProvider({provide:_.wU,useClass:S1I});l.addProvider({provide:_.f4S,useClass:ypc});I={};l.addProvider((I.provide=gJ,I.useClass=gJ,I[HG]=[_.f4S],I));I={};l.addProvider((I.provide=_.Ac,I.useFactory=function(G){return G.upliftCompletionResolver.promise},I[HG]=[bDC],I));
I=_.rr("IS_SHELL_LOAD")?"aa":"eocs";var b=_.rr("IS_SHELL_LOAD")?3:2;_.uV().parkOrScheduleJob(function(){MA1()},b,I);
_.uV().parkOrScheduleJob(function(){_.pG().resolve(nv).start()},2,"eocs");
_.uV().parkOrScheduleJob(function(){zZs()},2,"eocs");
_.uV().parkOrScheduleJob(function(){_.pG().resolve(ed).start()},2,"eocs");
_.C("kevlar_debug_data_app_registration_ks")||PxQ();l.addProvider({provide:_.TH,useValue:new aMM(z.root)});l.addProvider({provide:wE,useValue:new JRS});l.addProvider({provide:_.v5K,useValue:new ISS(z.root)});l.addProvider({provide:_.wD,useValue:new bus});l.addProvider({provide:_.Va,useClass:Lf});l.addProvider({provide:fay,useClass:VU});_.C("kevlar_network_sli_killswitch")||l.addProvider({provide:sLc,useValue:hRu});l.addProvider({provide:tYy,useFactory:R81});_.C("web_bind_fetch")&&(I={},l.addProvider((I.provide=
BHq,I.useFactory=ms7,I[HG]=[_.MB(tYy)],I)));_.C("web_bind_window_request")&&(I={},l.addProvider((I.provide=qus,I.useFactory=KKu,I[HG]=[_.MB(tYy)],I)));_.C("web_bind_text_decoder")&&(I={},l.addProvider((I.provide=i4W,I.useFactory=tr1,I[HG]=[_.MB(tYy)],I)));I={};l.addProvider((I.provide=$zS,I.useFactory=Iok,I[HG]=[_.Ac,ag,_.dv],I));I={};l.addProvider((I.provide=rpl,I.useClass=Ro,I[HG]=[$zS],I));l.addProvider({provide:blX,useClass:JpW});l.addProvider({provide:o0y,useClass:hIK});I=[].concat(_.ht(vU));
_.C("web_continuation_response_processing")&&I.push(_.a2);I.push(GKn);_.C("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.q4w);l.addProvider({provide:IDt,useValue:I});l.addProvider({provide:qkf,useClass:dzy});l.addProvider({provide:At1,useClass:rtW});I={};l.addProvider((I.provide=Ke1,I.useClass=utS,I[HG]=[gx],I));_.ow.addLowPriorityJob(function(){nnS()});
I={};l.addProvider((I.provide=eaM,I.useFactory=function(G){return function(u){var Z,H=(Z=_.k(u.commandMetadata,_.kB))==null?void 0:Z.url;if(!H)throw new _.qB("No URL for PBJ Command",u);H=TCf(H,{pbj:"1"});Z=JHf(H,{})||{};Z=Object.assign({},Z,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.sZ("STS").toString()});u=_.CG({command:JSON.stringify(u),session_token:_.sZ("XSRF_TOKEN")});return G.fetch(H,{method:"POST",headers:Z,body:u})}},I[HG]=[At1],I));
I=[];I.push(l.resolve(o0y));b={};b=(b.client_location=_.PF.getInstance(),b.consistency=_.jJ7(),b.entities=l.resolve(n5s),b.response_received_commands=l.resolve(qkf),b.store=l.resolve(_.kjQ),b.tokens=l.resolve(o0y),b);_.C("web_service_params_response_processor")&&(l.addProvider({provide:odX,useFactory:function(){var G={};return G.CSI=XYt(),G.ECATCHER=BVx(),G}}),l.addProvider({provide:HF7,
useClass:Pt0}),b.service_params=l.resolve(HF7));if(_.C("web_shorts_prefetch_service_enabled")){var v=new uql(l.resolve(_.PE));b.shorts_prefetch=v}b.adblock_detection=l.resolve(Ke1);l.addProvider({provide:_.U5,useClass:_.U5});v=l.resolve(_.j_W);var M=[];_.C("PremiumClientSharedConfig__enable_att_context_processor")&&(l.addProvider({provide:Q18,useClass:qY0}),M.push(l.resolve(Q18)));if(_.C("owl_pl_await")){var x={};l.addProvider((x.provide=H4l,x.useFactory=function(G){return new uP4(G)},x[HG]=[_.U5],
x));
M.push(l.resolve(H4l))}JVj(v,l.resolve(At1),l.resolve(KXX),b,l.resolve(_.PE),I,M,l.resolve(rpl),l.resolve(blX));l.addProvider({provide:_.AY,useValue:_.zS.instance});_.C("start_client_gcf")&&l.addProvider({provide:i_,useValue:aAj()});l.addProvider({provide:DZC,useFactory:function(){return new DZC(_.pG().resolve(_.U5),_.JM.getInstance())}});
_.uV().parkOrScheduleJob(function(){xZs()},1,"eocs");
I={};l.addProvider((I.provide=Wk,I.useClass=Wk,I[HG]=[_.dv,_.AY],I));l.addProvider({provide:_.SvX,useFactory:_.pX.getInstance});_.uV().parkOrScheduleJob(function(){_.pG().resolve(Wk).refresh()},0,"eocs");
weM(Uj8.watchEndpointMap||{},v.reelWatchEndpointMap||{},z.injector.resolve(_.AY));l.addProvider({provide:i9,useValue:_.UD.instance});_.C("kevlar_signal_collection_killswitch")||(I={},l.addProvider((I.provide=AyX,I.useClass=AyX,I[HG]=[M$,$X],I)),_.uV().parkOrScheduleJob(function(){_.pG().resolve(AyX).record()},1,"eocs"));
_.C("web_debug_handler_registration_killswitch")||_.uV().parkOrScheduleJob(function(){d0k("DOWNLOAD_PES",tfp);_.C("offline_client_state_export_ks")||d0k("OFFLINE_CLIENT_STATE",R0p)},0,"eocs");
_.C("kevlar_prevent_polymer_dynamic_font_load")&&_.uV().parkOrScheduleJob(function(){var G=[_.HR(lCW),_.HR(ICq)];G=_.D(G);for(var u=G.next();!u.done;u=G.next()){u=u.value;var Z=document.createElement("link");_.xd(Z,u,"stylesheet");document.head.appendChild(Z)}},1,"eocs");
I=z.injector.resolve(_.AY);_.FQc.instance=new _.FQc(I);MkQ(RQW(new iuc(I)));I={};z.injector.addProvider((I.provide=Mh,I.useFactory=function(G){(G=G==null?void 0:G.getCurrentPage())?G=G.visibilityObserver:(B2s||(B2s=vJ1()),G=B2s);return G},I[HG]=[_.MB(_.OB)],I.skipCache=!0,I));
l.addProvider({provide:_.Af,useClass:Zw});l.addProvider({provide:nf,useClass:$3u});z.injector.addProvider({provide:Pp4,useValue:U2z});l.addProvider({provide:XO_,useValue:RAQ});l.addProvider({provide:T64,useValue:HHk});l.addProvider({provide:_.I2,useValue:TQQ});z=l.addProvider;P88||(P88=new oRl);z.call(l,{provide:_.Jc,useValue:P88});l.addProvider({provide:_.vr,useValue:_.sZ("HTML_DIR")==="rtl"?"rtl":"ltr"});l.addProvider({provide:UpX,useClass:p_4});l.addProvider({provide:_.mh,useClass:zU});_.pG().addProvider({provide:Vxc,
useValue:_.C("enable_web_delhi_icons")?mMy.concat(t3C):Req.concat(Ky4)});l.addProvider({provide:_.Iz,useClass:_.Iz});l.addProvider({provide:_.VYK,useValue:new a1W});l.addProvider({provide:Wcw,useClass:w74});l.addProvider({provide:VE,useClass:VE});l.addProvider({provide:zd,useClass:zd});z={};l.addProvider((z.provide=mS,z.useClass=mS,z[HG]=[_.AY,_.lL],z));l.addProvider({provide:yY,useClass:yY});l.addProvider({provide:Gln,useClass:mZc});l.addProvider({provide:vw,useClass:vw});l.addProvider({provide:qQu,
useValue:NdA});l.addProvider({provide:_.Cx,useClass:AGq});_.C("enable_payments_purchase_manager")&&l.addProvider({provide:SY8,useClass:YY4});l.addProvider({provide:zx0,useFactory:function(){return function(G){return _.Jts(G)}}});
l.addProvider({provide:_.cpl,useClass:SjW});z={};l.addProvider((z.provide=uF,z.useClass=uF,z[HG]=[_.cpl],z));l.addProvider({provide:lF,useClass:lF});l.addProvider({provide:MPj,useValue:oL_});l.addProvider({provide:baA,useValue:_.nRl});l.addProvider({provide:aDx,useClass:RZq});l.addProvider({provide:hZ4,useValue:lv8});z={};l.addProvider((z.provide=suC,z.useClass=rTs,z[HG]=[hZ4],z));z={};l.addProvider((z.provide=_.Lg,z.useClass=b0K,z[HG]=[suC],z));z={};l.addProvider((z.provide=_.vj,z.useClass=bD,z[HG]=
[_.G$,_.Va],z));if(_.C("web_explore_hub_on_hover")||_.C("web_client_explore_hub_on_hover"))z={},l.addProvider((z.provide=be,z.useClass=be,z[HG]=[_.AY,tM],z));if(_.C("web_enable_renderer_logger")){var g=new meW;dl7(function(){g.abort()});
l.addProvider({provide:GiQ,useValue:new nS4(g.signal)})}l.addProvider({provide:sgj,useValue:Ohf});l.addProvider({provide:U3u,useClass:Zly})}},Xbq);var io1={},Fyq=(io1.initialized={priority:10,callback:function(){if(!hPs){prx();iiH("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ZQ(_.tH(iiH,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.C("log_heartbeat_with_lifecycles")){var z={};Xe.instance||(Xe.instance=new Xe);Xe.instance.install((z.document_visible={callback:FK1,priority:10},z.document_hidden={callback:FK1,priority:10},z))}else _.b_(document,"visibilitychange",FK1);hPs=!0}(z=_.sU())&&z!=="UNDEFINED_CSN"&&rgx(z)}},io1);var QjX={},Yfy=(QjX.initialized={callback:function(z){var l=_.kU(232091),I=z.injector.resolve(_.br);_.oc(I,l);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?MvQ()&&_.hM(I,l):(z=z.injector.resolve(zx0)("refresh_detector"))&&(z.get("first_tab_load")?_.hM(I,l):z.set("first_tab_load","1"))}},QjX);var T24={},cXC=(T24.initialized={priority:10,callback:Ei7},T24);var Sfs={},dMl=(Sfs.initialized={priority:0,callback:function(){var z=new av_,l="other";_.kx?l="chrome":_.CO?l="firefox":_.ec?l="safari":Iw&&(l="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){z.increment(_.tE(),I,l)}).catch(function(){z.increment(_.tE(),!1,l)}):z.increment(_.tE(),!1,l)}},Sfs);var oz1={},PEl=(oz1.rendering={priority:8,callback:up5},oz1);var heC={},sj0=(heC.rendering={priority:10,callback:FeH},heC.rendered={callback:iFx},heC),rXC={},$Mc=(rXC.rendering={callback:FeH},rXC.rendered={callback:iFx},rXC);var eeC=!1,wb0={},AXK=(wb0.initialized={priority:10,callback:function(){eeC||(FGH({didPatch:function(z){z.el&&sAS(z.el,z.props)},
didUnmount:function(z){PQf(z.el)}}),eeC=!0)}},wb0);var Wys=/^\/shorts\/?$/;_.hr("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:{}}}}}}});_.C("kevlar_enable_mss")&&(_.Pf5(new smu),$af());
(function(){var z=document.querySelector("ytd-app");if(!z)throw Error("Pj");z=new M3({root:z,injector:_.pG()});z.install(Fyq);var l={};z.install((l.initialized={priority:10,callback:UmH},l));_.C("wp_lat_b")&&(l={},z.install((l.initialized={priority:10,callback:function(){fcu()}},l)));
l={};z.install((l.rendered={priority:0,callback:Wrt},l));l={};z.install((l.rendered={priority:0,callback:function(){_.ow.addLowPriorityJob(function(){_.DzF>1&&(hGY(),wDp())},4E4)}},l));
z.install(i7C);z.install(Yfy);z.install(AXK);VrQ();z.install(Plc);z.install(mjl);z.install(XR0);z.install(PKS);z.install(e1C);z.install(dj4);z.install(qf0);_.C("kevlar_enable_mss_lazy_load")&&z.install(cXC);z.install(t6C);z.install(dMl);if(!_.rr("IS_SHELL_LOAD")||_.C("kevlar_fetch_initial_data_promise_client")||_.C("sw_nav_preload_pbj")){var I=_.yI(window.location.href);l=I&&I==="/watch";I=I&&I.match(Wys);l?z.install($Mc):I?z.install(PEl):z.install(sj0)}else z.install(ClF);z.install(Qx1);_.C("web_enable_prefetching_videos_on_home")&&
z.install($jX);_.C("start_client_gcf")&&z.install(deK);z.install(T4S);(new VN_).increment("INSTALLED");z.install(sx4);z.install(H7s);z.transition("initialized");g2$()})();
_.HF=[[["aGpmbDhrbzBuZGtpbmQjamw=","bXozejFiMmJzdmFsdWUjbWZ6"],"RU1FTlRfS0lORF9FTkQjaHpoajgwbG9janE0QURfUExBQw=="]];_.Zk=["Z2xvYmFsQ2FsbGJhY2tzI29lYXVrcGdna3cx","bWFsaXR5RGV0ZWN0ZWQjM21zODg4ZmtqczAxb25BYm5vcg==","eDFzNnBob25BZFNraXAjaWF1dWJi","bGF5ZXJfcmVzcG9uc2UjeXdxams4ZXF3MGJicmF3X3A=","bGFjZW1lbnRDb25maWcjcWwweDJ4ZHlra3U0YWRQ"];_.kT="Z2xvYmFsQ2FsbGJhY2tzI29lYXVrcGdna3cx bWFsaXR5RGV0ZWN0ZWQjM21zODg4ZmtqczAxb25BYm5vcg== eDFzNnBob25BZFNraXAjaWF1dWJi bGF5ZXJfcmVzcG9uc2UjeXdxams4ZXF3MGJicmF3X3A= dGlwbGVfc2tpcHNfa3MjODl0YXI4YXZyODUzd2ViX3BsYXlsaXN0X3F1ZXVlX211bA== OTR3dDhhYWJfc2FfZWYjNDRndHB5 bGFjZW1lbnRDb25maWcjcWwweDJ4ZHlra3U0YWRQ".split(" ");
_._ModuleManager_initialize=function(z,l){if(!_.SN){if(!_.d1)return;_.Pf5(_.d1())}_.SN.setAllModuleInfoString(z,l)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.ka=function(z,l,I,b,v){var M={};l&&(M[l]=I);b?M.errorType=b:v&&(M.errorReason=v);_.cW(z,M);_.SX()};
_.Rz=function(z){var l=_.uV();return _.hpA(l,z,1)};
_.hP({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 z=this.query;z&&(this.full||z[0]==="("||(z="("+z+")"),this._mq=window.matchMedia(z),this._add(),this.queryHandler(this._mq))},
queryHandler:function(z){this._setQueryMatches(z.matches)}});var vPs;var MmC;var p88=function(){};
_.p=p88.prototype;_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._focusedChanged=function(){};
_.p._createRipple=function(){};
_.p.registered=function(){};
_.p._invalidChanged=function(){};
_.p.hasValidator=function(){};
_.p.validate=function(){};
_.p._getValidity=function(){};
_.p._requiredChanged=function(){};
_.p._valueChanged=function(){};
_.p._checkedChanged=function(){};
_.p._buttonStateChanged=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
p88=_.hP({is:"tp-yt-paper-radio-button",_template:function(){if(MmC!==void 0)return MmC;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;vPs===void 0&&(vPs=document.createElement("template"));var b=vPs;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return MmC=z},
behaviors:[_.QU_],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(){_.IR(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var z=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),l=Math.floor(3*z);l%2!==z%2&&l++;this.updateStyles({"--paper-radio-button-ink-size":l+"px"})}})}});var Dyy;var xyC;_.hP({_template:function(){if(xyC!==void 0)return xyC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Dyy===void 0&&(Dyy=document.createElement("template"));var b=Dyy;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return xyC=z},
is:"tp-yt-paper-radio-group",behaviors:[_.wUI],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(z){var l=this._valueToItem(z);if(!l||!l.hasAttribute("disabled")){if(this.selected){l=this._valueToItem(this.selected);if(this.selected==z)if(this.allowEmptySelection)z="";else{l&&(l.checked=!0);return}l&&
(l.checked=!1)}_.Ie.select.apply(this,[z]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(z){this._focusPrevious();z.preventDefault();this._activateFocusedItem()},
_onDownKey:function(z){this._focusNext();z.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(z){_.eyu._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(z){_.eyu._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Ie._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Ue._resetTabindices.apply(this,arguments);this.items.forEach(function(z){z.removeAttribute("aria-selected")},this)}});var OPS;_.sW("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var mN=function(){return _.q.apply(this,arguments)||this};
_.m(mN,_.q);_.p=mN.prototype;_.p.computeHasPrimaryIcon=function(z){return!(!z.icon&&!z.thumbnail)};
_.p.computeHasSecondary=function(z){return!(!z.secondaryIcon&&!z.secondaryNotificationText)};
_.p.computeHideSecondaryString=function(z){return!_.C("disable_hide_empty_secondary_string")&&!z.secondaryNotificationText};
_.p.computeCompactLinkStyle=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeHasFitHeight=function(z){return z==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.p.isActiveEndpoint=function(z){return(z=this.get("commandMetadata.webCommandMetadata.url",z))?_.yI(window.location.href)!=="/account_transfer_channel"&&_.yI(window.location.href)!=="/gaia_link"&&_.yI(window.location.href)!=="/channel_switcher"||z!=="/account"?_.yI(window.location.href)===z:!0:!1};
_.p.onTap=function(){var z;((z=this.data)==null?0:z.serviceEndpoint)&&_.uJ(this.hostElement,[this.data.serviceEndpoint])};
mN.prototype.onTap=mN.prototype.onTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mN.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.w("design:type",Boolean)],mN.prototype,"active",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.w("design:type",String)],mN.prototype,"compactLinkStyle",void 0);
_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",Object)],mN.prototype,"icon",void 0);_.e([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.w("design:type",Object)],mN.prototype,"secondaryIcon",void 0);_.e([_.X({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],mN.prototype,"hasSecondary",void 0);_.e([_.X({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],mN.prototype,"hideSecondaryString",void 0);
_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mN.prototype,"onTap",null);_.e([_.S({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],mN);
_.r(mN,"ytd-compact-link-renderer",function(){if(OPS!==void 0)return OPS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return OPS=z},{mode:1});var gPK;_.sW("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var KX=function(){var z=_.q.apply(this,arguments)||this;z.role="link";z.tabindex="0";z.actionMap=_.C("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 z};
_.m(KX,_.q);_.p=KX.prototype;_.p.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Sb()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.p.getCurrentTheme=function(){return _.dD()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Sb()};
_.p.onThemeSelected=function(z,l){var I=z||l?z:_.cF(),b=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Ud1(_.yI(window.location.href));_.XG(0,165,z);_.XG(0,174,l);this.prefs.save();b&&_.Gb(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.Gb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.onTap=function(){this.data.serviceEndpoint&&_.uJ(this.hostElement,[this.data.serviceEndpoint])};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
KX.prototype.onTap=KX.prototype.onTap;KX.prototype.dataChanged=KX.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],KX.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uA),_.w("design:type",Object)],KX.prototype,"paperItemBehaviors",void 0);_.e([_.X(),_.w("design:type",Object)],KX.prototype,"data",void 0);_.e([_.X({value:function(){return _.Bu()}}),
_.w("design:type",_.C9)],KX.prototype,"prefs",void 0);_.e([_.X(),_.w("design:type",Object)],KX.prototype,"label",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],KX.prototype,"role",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],KX.prototype,"tabindex",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KX.prototype,"dataChanged",null);
_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KX.prototype,"onTap",null);_.e([_.S({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],KX);
_.Hh()(KX,"ytd-toggle-theme-compact-link-renderer",function(){if(gPK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);gPK=z}z=gPK;return z},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var Nrq,EPC;_.tj=function(z){return!!z.getOptions("captions")};
_.G3C=function(z){return(z=z.getOption("captions","track"))?!!z.displayName:!1};
_.Bj=function(z,l){_.ct(l,z,function(){return Nrq[l]},function(I){Nrq[l]=I;
if(!_.C("mweb_player_ve_show_ks")){var b=_.sU(0);b&&I&&_.am(b,I)}})};
_.XC=function(z){(z=Nrq[z])&&_.hM(_.iY(),z)};
Nrq={};var u0l;/*

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
*/
_.hP({_template:function(){if(u0l!==void 0)return u0l;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;EPC===void 0&&(EPC=document.createElement("template"));var b=EPC;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return u0l=z},
is:"tp-yt-paper-checkbox",behaviors:[_.QU_],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.IR(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var z=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),l="px",I=z.match(/[A-Za-z]+$/);I!==null&&(l=I[0]);z=parseFloat(z);I=8/3*z;l==="px"&&(I=Math.floor(I),I%2!==z%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
l})}})},
_computeCheckboxClass:function(z,l){var I="";z&&(I+="checked ");l&&(I+="invalid");return I},
_computeCheckmarkClass:function(z){return z?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.iIn._createRipple.call(this)}});var ZPs=new _.Z0("radioButtonSurveyOptionRenderer"),HPc=new _.Z0("checkboxSurveyOptionRenderer");var yrq;var fJW;var CsC=0,q3=function(){var z=_.q.call(this)||this;z.selected=!1;z.isOverlay=!1;z.inputId="toggle-option-"+CsC;CsC++;return z};
_.m(q3,_.q);q3.prototype.onTap=function(){_.gC(this.hostElement,"ytd-toggle-option-clicked")};
_.e([_.X(),_.w("design:type",String)],q3.prototype,"label",void 0);_.e([_.X(),_.w("design:type",String)],q3.prototype,"inputId",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q3.prototype,"selected",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q3.prototype,"isOverlay",void 0);_.e([_.S({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.w("design:paramtypes",[])],q3);
_.r(q3,"ytd-toggle-option-renderer",function(){if(fJW!==void 0)return fJW;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return fJW=z},{mode:1});var iD=function(){var z=_.q.apply(this,arguments)||this;z.isToggleOption=!1;z.isOverlay=!1;return z};
_.m(iD,_.q);iD.prototype.onTap=function(z){z.preventDefault();this.data&&(z=!this.data.checked,this.set("data.checked",z),_.gC(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:z,value:this.data.value}))};
_.vP.Object.defineProperties(iD.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
iD.prototype.onTap=iD.prototype.onTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iD.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],iD.prototype,"isToggleOption",void 0);_.e([_.X(),_.w("design:type",Object)],iD.prototype,"isOverlay",void 0);_.e([_.B("data.responseText"),_.w("design:type",String),_.w("design:paramtypes",[])],iD.prototype,"label",null);
_.e([_.tP("ytd-toggle-option-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],iD.prototype,"onTap",null);_.e([_.S({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],iD);
_.r(iD,"ytd-checkbox-survey-option-renderer",function(){if(yrq!==void 0)return yrq;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yrq=z},{mode:1});var k34;var RbK;var FC=function(){var z=_.q.apply(this,arguments)||this;z.checked=!1;z.isToggleOption=!1;return z};
_.m(FC,_.q);FC.prototype.onTap=function(){this.data&&(this.checked?_.Gb(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Gb(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
FC.prototype.onTap=FC.prototype.onTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],FC.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],FC.prototype,"checked",void 0);_.e([_.X(),_.w("design:type",Object)],FC.prototype,"isToggleOption",void 0);_.e([_.tP("ytd-toggle-option-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],FC.prototype,"onTap",null);
_.e([_.S({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],FC);
_.r(FC,"ytd-radio-button-survey-option-renderer",function(){if(RbK!==void 0)return RbK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return RbK=z},{mode:1});var QO=function(){var z=_.q.apply(this,arguments)||this;z.disableAnimation=!1;z.isToggleOption=!0;z.followUpSurveyCommand=null;z.selectedRatingEndpoint=null;z.isSlimlineSurveyFollowUp=!1;z.isShortsStyle=!1;z.styleOverrideAttribute=!0;z.isDarkMode=!1;z.isSubmitted=!1;z.roundedContainer=!0;z.improveShortsResponseRate=_.C("web_improve_shorts_response_rate");z.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 z};
_.m(QO,_.q);_.p=QO.prototype;
_.p.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"}}}}};
_.p.attached=function(){var z=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var b;if((b=I[0])!=null&&b.isIntersecting){_.Xa().reportShown(z.hostElement);var v;(v=z.intersectionObserver)==null||v.unobserve(z.hostElement)}},{rootMargin:"0px",
threshold:.6});var l;(l=this.intersectionObserver)==null||l.observe(this.hostElement)};
_.p.onDarkModeToggledAction=function(z){this.isDarkMode=z};
_.p.dataChanged=function(){var z;if(((z=this.data)==null?void 0:z.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var l;((l=this.data)==null?void 0:l.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,b,v,M;this.darkColorPalette=(I=this.data)==null?void 0:(b=I.inlineContent)==null?void 0:(v=b.compactVideoRenderer)==null?void 0:(M=v.thumbnail)==null?
void 0:M.darkColorPalette;var x,g,G,u;this.lightColorPalette=(x=this.data)==null?void 0:(g=x.inlineContent)==null?void 0:(G=g.compactVideoRenderer)==null?void 0:(u=G.thumbnail)==null?void 0:u.lightColorPalette;var Z,H;if(((Z=this.data)==null?0:(H=Z.inlineContent)==null?0:H.compactVideoRenderer)&&this.isShortsStyle){var y,f,R,F;z=_.Hr((y=this.data)==null?void 0:(f=y.inlineContent)==null?void 0:(R=f.compactVideoRenderer)==null?void 0:(F=R.thumbnail)==null?void 0:F.thumbnails);_.R8(this.hostElement,
{"--yt-background-url":"url("+z+")"})}};
_.p.handleRequestCompletion=function(){this.hostElement.hidden&&_.gC(this.hostElement,"yt-dismissible-item-dismissed")};
_.p.onPopupClosed=function(z){var l;((l=z.detail)==null?void 0:l.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Gb(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.p.handleInlineSurveyRatingSelect=function(z,l){var I=this;this.selectedRatingEndpoint=z;this.followUpSurveyCommand=l;this.expanded=!!z;this.getOptionRenderers().forEach(function(b,v){I.notifyPath("followUpSurveyCommand.followUpOptions."+v+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+v+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),z=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Gb(this.hostElement,"yt-reel-non-video-content-dismissal-command",[z]))};
_.p.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Gb(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var z,l=(z=this.data)==null?void 0:z.dismissalEndpoint;l&&this.ytComponentBehavior.resolveCommand(l)}};
_.p.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Gb(this.hostElement,"yt-close-popup-action"))};
_.p.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var z=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{z=this.getOptionRenderers().filter(function(b){return b.checked});
if(z.length===0)return;z=z.map(function(b){return b.responseEndpoint})}var l=[];
z.forEach(function(b,v){v!==0&&(b=_.k(b,_.hf))&&b.feedbackToken&&l.push(b.feedbackToken)});
if(z=z[0]){var I={};l.length>0&&(I.extra_feedback_tokens=l);this.ytComponentBehavior.resolveCommand(z,{form:I})}}};
_.p.getOptionRenderers=function(){var z=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(l){z.isSingleSelect=!!_.k(l,ZPs);return z.isSingleSelect?_.k(l,ZPs):_.k(l,HPc)}):[]};
_.p.handleInlineSurveyOptionSelect=function(z){z=this.optionSelector.indexOf(z);z!==-1&&this.optionSelector.selectIndex(z)};
_.p.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.p.maybeGetBackgroundColor=function(z){return this.isDarkMode?z.section2Color:z.section3Color};
_.p.colorPaletteChanged=function(){var z=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;z=z&&this.maybeGetBackgroundColor(z);this.dismissibleEl.style.backgroundColor=!z||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Ur(z)};
_.vP.Object.defineProperties(QO.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
QO.prototype.colorPaletteChanged=QO.prototype.colorPaletteChanged;QO.prototype.onPopupClosed=QO.prototype.onPopupClosed;QO.prototype.handleRequestCompletion=QO.prototype.handleRequestCompletion;QO.prototype.dataChanged=QO.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],QO.prototype,"actionHandlerBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],QO.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.qX("#follow-up-survey-options"),_.w("design:type",Object)],QO.prototype,"optionSelector",void 0);_.e([_.X(),_.w("design:type",Object)],QO.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],QO.prototype,"disableAnimation",void 0);_.e([_.X(),_.w("design:type",Object)],QO.prototype,"isToggleOption",void 0);_.e([_.X(),_.w("design:type",Object)],QO.prototype,"followUpSurveyCommand",void 0);_.e([_.X(),_.w("design:type",Object)],QO.prototype,"selectedRatingEndpoint",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],QO.prototype,"expanded",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QO.prototype,"isSlimlineSurveyFollowUp",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QO.prototype,"isShortsStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QO.prototype,"styleOverrideAttribute",void 0);_.e([_.X(),_.w("design:type",Boolean)],QO.prototype,"isSingleSelect",void 0);_.e([_.X(),_.w("design:type",Object)],QO.prototype,"isDarkMode",void 0);
_.e([_.X(),_.w("design:type",Object)],QO.prototype,"lightColorPalette",void 0);_.e([_.X(),_.w("design:type",Object)],QO.prototype,"darkColorPalette",void 0);_.e([_.B("selectedRatingEndpoint","isShortsStyle"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],QO.prototype,"isOptionSelected",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QO.prototype,"roundedContainer",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QO.prototype,"improveShortsResponseRate",void 0);_.e([_.qX("#dismissible"),_.w("design:type",HTMLElement)],QO.prototype,"dismissibleEl",void 0);_.e([_.qX("#dismiss-button yt-icon-button"),_.w("design:type",HTMLElement)],QO.prototype,"dismissButtonEl",void 0);_.e([_.qX("#inline-survey-header yt-icon-button"),_.w("design:type",HTMLElement)],QO.prototype,"inlineHeaderDismissButtonEl",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QO.prototype,"dataChanged",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QO.prototype,"handleRequestCompletion",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],QO.prototype,"onPopupClosed",null);
_.e([_.By("darkColorPalette","lightColorPalette","isDarkMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QO.prototype,"colorPaletteChanged",null);_.e([_.S({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],QO);
_.r(QO,"ytd-inline-survey-renderer",function(){if(k34!==void 0)return k34;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return k34=z},{mode:1});var my1=["en-CA","en","es-MX","fr-CA"];_.KF4=_.P(function(z){var l=_.xC(z,{isOverlay:!1,isModern:!1}),I=l.captionIconType,b=l.onClick;z=l.ariaLabel;var v=l.ariaPressed,M=l.isOverlay,x=l.isModern;l=_.VK("button",function(u){_.Bj(u,127299)});
var g=_.KK(function(u){_.XC(127299);b==null||b(u);return!1}),G={};
return _.N("ytm-closed-captioning-button",{class:_.m9("ytmClosedCaptioningButtonHost",(G.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&M()},G.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!M()},G))},_.N("button",{el:l,
class:"ytmClosedCaptioningButtonButton",title:z,"aria-label":z,"aria-pressed":v,"on:click":g},_.N(_.qt,{icon:function(){var u="",Z=x();var H=Z?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";Z=Z?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var y=_.Bu().get("hl");H=!y||my1.includes(y)?H:Z;Z=I();switch(Z){case -1:case 0:u=H;break;case 1:u=H+"_FILLED";break;default:_.Ap(Z)}return u}})))},"If");
_.KF4.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.r6=function(z){return function(l,I){var b=z||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(l,I,{get:function(){var v;return this.$?this.$[b]:(v=_.X6(this))==null?void 0:v.querySelector("#"+b)},
enumerable:!0,configurable:!0})}};_.$3=function(z){z=z===void 0?!1:z;_.Q9.call(this);this.pubSub_=new _.ks(z);_.kN(this,this.pubSub_)};
_.Gs(_.$3,_.Q9);_.$3.prototype.subscribe=function(z,l,I){return this.isDisposed()?0:this.pubSub_.subscribe(z,l,I)};
_.$3.prototype.unsubscribe=function(z,l,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(z,l,I)};
_.$3.prototype.unsubscribeByKey=function(z){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(z)};
_.$3.prototype.publish=function(z,l){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var mc4=function(){_.ka("ypcRedeemFlowStarted")},sw=function(z){_.ka("ypcRedeemFlowFailed",void 0,void 0,void 0,z)},Kis=function(z,l,I){l&&I&&(z.videos.forEach(function(b){b.videoId===l&&(b.itemId=I)}),z.recommendedVideos.forEach(function(b){b.videoId===l&&(b.itemId=I)}))};var tB4;var Bzy;/*

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
*/
_.hP({_template:function(){if(Bzy!==void 0)return Bzy;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;tB4===void 0&&(tB4=document.createElement("template"));var b=tB4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return Bzy=z},
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(z,l){var I=this._resolveSrc(z);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",z===""||l?this._setLoading(!1):(this._resolvedSrc=I,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 z=this.$.sizedImgDiv.style,l=this.$.placeholder.style;z.backgroundSize=l.backgroundSize=this.sizing;z.backgroundPosition=l.backgroundPosition=this.sizing?this.position:"";z.backgroundRepeat=l.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(z){z=_.gS(z,this.$.baseURIAnchor.href);z.length>=2&&z[0]==="/"&&z[1]!=="/"&&(z=(location.origin||location.protocol+"//"+location.host)+z);return z}});var X$S;var qg8;_.hP({_template:function(){if(qg8!==void 0)return qg8;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;X$S===void 0&&(X$S=document.createElement("template"));var b=X$S;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return qg8=z},
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(z){return z?"false":"true"},
_headingChanged:function(z){var l=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==l||this.setAttribute("aria-label",z)},
_computeHeadingClass:function(z){return z?" over-image":""},
_computeAnimated:function(z){return z}});var iZK=new _.Z0("addRendererToItemSectionAction");var Fis;var rV=function(){return _.q.apply(this,arguments)||this};
_.m(rV,_.q);rV.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rV.prototype,"rendererBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],rV.prototype,"dismissibleItemBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],rV.prototype,"rendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rV.prototype,"data",void 0);_.e([_.S({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],rV);
_.r(rV,"ytd-comment-history-entry-renderer",function(){if(Fis!==void 0)return Fis;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Fis=z},{mode:1});var QI0;_.sW("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.sW("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var $2=function(){return _.q.apply(this,arguments)||this};
_.m($2,_.q);_.p=$2.prototype;_.p.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onKeyUp=function(z){if(z.keyCode===13)this.onTap()};
_.p.onTap=function(){this.data.recordClickEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var z=this.data.navigationEndpoint;z&&_.k(z,_.vf)&&_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})};
_.p.readChanged=function(){var z;_.fJ(this.hostElement,"unread",!((z=this.data)==null?0:z.read))};
_.p.dataChanged=function(){this.data&&_.fJ(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.p.computeThumbnailSize=function(){var z;return((z=this.data)==null?0:z.highPriorityNotification)?32:48};
_.p.getEndpointURL=function(z){return z&&!_.k(z,_.vf)?this.componentBehavior.computeHref_(z):null};
_.p.getEndpointData=function(z){return z&&!_.k(z,_.vf)?z:null};
$2.prototype.computeThumbnailSize=$2.prototype.computeThumbnailSize;$2.prototype.dataChanged=$2.prototype.dataChanged;$2.prototype.readChanged=$2.prototype.readChanged;$2.prototype.onKeyUp=$2.prototype.onKeyUp;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],$2.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$2.prototype,"data",void 0);_.e([_.X({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.w("design:type",Number)],$2.prototype,"thumbnailSize",void 0);_.e([_.tP("keyup"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],$2.prototype,"onKeyUp",null);
_.e([_.By("data.read"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$2.prototype,"readChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$2.prototype,"dataChanged",null);_.e([_.By("data.highPriorityNotification"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$2.prototype,"computeThumbnailSize",null);
_.e([_.S({is:"ytd-notification-renderer",disableElementRegistration:!0})],$2);
_.r($2,"ytd-notification-renderer",function(){if(QI0!==void 0)return QI0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return QI0=z},{mode:1});var Ygs;var er=function(){return _.q.apply(this,arguments)||this};
_.m(er,_.q);er.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"}}}};
er.prototype.computeActionButtonClass=function(z){return!z.actionButtons||z.actionButtons.length<=1?"single-button":z.description?"vertical-buttons":"horizontal-buttons"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],er.prototype,"data",void 0);_.e([_.S({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],er);
_.r(er,"ytd-playlist-show-metadata-renderer",function(){if(Ygs!==void 0)return Ygs;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Ygs=z},{mode:1});var Tz4;_.sW("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var wV=function(){return _.q.apply(this,arguments)||this};
_.m(wV,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wV.prototype,"data",void 0);_.e([_.S({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],wV);
_.r(wV,"ytd-purchase-item-renderer",function(){if(Tz4!==void 0)return Tz4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Tz4=z},{mode:1});var cs4;var SgS={};SgS.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(z){if(z)return z.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(z){if(z==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.sW("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Ak=function(){return _.q.apply(this,arguments)||this};
_.m(Ak,_.q);Ak.prototype.onYtNavigate=function(z){var l=this.openPopupBehavior.getNavigationEndpointPopupAction(z.detail.endpoint);l&&(z.stopPropagation(),this.openPopupBehavior.openPopup(l))};
Ak.prototype.onYtNavigate=Ak.prototype.onYtNavigate;_.e([_.t(SgS.YtSimpleTextSectionBehavior),_.w("design:type",Object)],Ak.prototype,"ytSimpleTextSectionBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],Ak.prototype,"openPopupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ak.prototype,"data",void 0);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ak.prototype,"onYtNavigate",null);_.e([_.S({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Ak);
_.r(Ak,"ytd-simple-text-section-renderer",function(){if(cs4!==void 0)return cs4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return cs4=z},{mode:1});var dcl;_.sW("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var WY=function(){return _.q.apply(this,arguments)||this};
_.m(WY,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],WY.prototype,"data",void 0);_.e([_.S({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],WY);
_.r(WY,"ytd-unlimited-page-feature-info-renderer",function(){if(dcl!==void 0)return dcl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return dcl=z},{mode:1});var ohc;var PUy;var ni=function(){return _.q.apply(this,arguments)||this};
_.m(ni,_.q);ni.prototype.dataChanged=function(){if(this.data){var z=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);z&&(z=_.ZY(z,screen.width),this.hostElement.style.backgroundImage="url("+z+")")}};
ni.prototype.dataChanged=ni.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ni.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ni.prototype,"dataChanged",null);_.e([_.S({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],ni);
_.r(ni,"ytd-post-redemption-section-renderer",function(){if(PUy!==void 0)return PUy;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PUy=z},{mode:1});var hu8;var Li=function(){return _.q.apply(this,arguments)||this};
_.m(Li,_.q);Li.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Li.prototype,"data",void 0);_.e([_.S({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Li);
_.r(Li,"ytd-ypc-post-redemption-renderer",function(){if(hu8!==void 0)return hu8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return hu8=z},{mode:1});_.sW("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Uw=function(){var z=_.q.apply(this,arguments)||this;z.MIN_CODE_LENGTH=12;z.MAX_CODE_LENGTH=24;return z};
_.m(Uw,_.q);_.p=Uw.prototype;_.p.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.p.created=function(){this.riskService=new _.neQ;this.loadPaymentThenable=_.UD5(_.sZ("YPC_MB_URL"))};
_.p.ready=function(){var z=this;this.code.addEventListener("keypress",function(l){z.onCodeInputKeypress(l)})};
_.p.dataChanged=function(){var z=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(l){l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&z.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.p.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var z=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+z+")")}};
_.p.computeRedeemButton=function(z){(z=this.get("redeemButton.buttonRenderer",z))&&(z=Object.assign({},z,{serviceEndpoint:void 0}));return z};
_.p.onRedeemButtonTap=function(z){z.stopPropagation();mc4();this.redeemCode()};
_.p.redeemCode=function(){var z=this;this.isLoading=!0;var l=this.riskService.init();_.sb([l,this.loadPaymentThenable]).then(function(){var I=z.data.redeemButton.buttonRenderer.serviceEndpoint,b=_.LoQ(),v=payments.business.integration.ClientTokenFactory.createClientToken(_.k(I,_.dQ_).countryCode,b);b={c:z.code.value.trim(),rd:window.btoa(b),ctk:v};I&&_.pG().resolve(_.DQ).resolveCommand(I,{form:Object.assign({},b,{element:z.hostElement})})},function(){z.showGenericError();
sw("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.$P(Error("yo"))})};
_.p.onYtServiceRequestCompleted=function(z){z.stopPropagation();this.isLoading=!1;var l,I;this.errorMessage=(l=z.detail)==null?void 0:(I=l.data)==null?void 0:I.errorMessage;var b,v;this.postRedemptionRenderer=(b=z.detail)==null?void 0:(v=b.data)==null?void 0:v.renderer;var M,x;if(z=(M=z.detail)==null?void 0:(x=M.data)==null?void 0:x.redirectEndpoint)this.isLoading=!0,_.gC(this.hostElement,"yt-navigate",{endpoint:z});this.errorMessage?sw("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
z)&&_.ka("ypcRedeemFlowSucceeded")};
_.p.onYtServiceRequestError=function(z){z.stopPropagation();this.isLoading=!1;if(z=this.get("detail.error.message",z))this.errorMessage=_.lc(z);sw("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.p.onInvokeInstrumentManagerActionCompleted=function(z){z.stopPropagation();this.redeemCode()};
_.p.onInvokeInstrumentManagerActionError=function(z){z.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",z)){case "instrumentManagerLoadError":this.showGenericError();sw("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();sw("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.ka("ypcRedeemFlowCancelled")}};
_.p.onInput=function(){var z=this;_.z4(this,"onInput",function(){var l=z.code.value.trim();z.redeemButtonDisabled=l.length<z.MIN_CODE_LENGTH||l.length>z.MAX_CODE_LENGTH},200)};
_.p.onCodeInputKeypress=function(z){z.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(mc4(),this.redeemCode())};
_.p.computeImageUrl=function(z){return z?_.ZY(z.thumbnails,600):null};
_.p.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Uw.prototype.onInvokeInstrumentManagerActionError=Uw.prototype.onInvokeInstrumentManagerActionError;Uw.prototype.onInvokeInstrumentManagerActionCompleted=Uw.prototype.onInvokeInstrumentManagerActionCompleted;Uw.prototype.onYtServiceRequestError=Uw.prototype.onYtServiceRequestError;Uw.prototype.onYtServiceRequestCompleted=Uw.prototype.onYtServiceRequestCompleted;Uw.prototype.dataChanged=Uw.prototype.dataChanged;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Uw.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Uw.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Boolean)],Uw.prototype,"redeemButtonDisabled",void 0);
_.e([_.X(),_.w("design:type",Object)],Uw.prototype,"errorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],Uw.prototype,"postRedemptionRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],Uw.prototype,"observer",void 0);_.e([_.qX("#code"),_.w("design:type",HTMLInputElement)],Uw.prototype,"code",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uw.prototype,"dataChanged",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Uw.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Uw.prototype,"onYtServiceRequestError",null);
_.e([_.tP("yt-invoke-instrument-manager-action-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Uw.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.e([_.tP("yt-invoke-instrument-manager-action-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Uw.prototype,"onInvokeInstrumentManagerActionError",null);_.e([_.S({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Uw);
_.r(Uw,"ytd-redeem-code-renderer",function(){if(ohc!==void 0)return ohc;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ohc=z},{mode:1});var sI1;_.sW("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var aA=function(){var z=_.q.apply(this,arguments)||this;z.businessEmailDisplayState="HIDE_SECTION";return z};
_.m(aA,_.q);_.p=aA.prototype;_.p.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}}}}}};
_.p.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"};
_.p.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.p.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.nQ(_.dC_),this.businessEmailDisplayState="CAPTCHA"))};
_.p.onYtServiceRequestCompleted=function(z){var l;if((l=z.detail.data)==null?0:l.businessEmail)this.businessEmail=z.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=z.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=z.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.computeEmailHref=function(z){return"mailto:"+z};
_.p.computeSafeUrl=function(z){if(z)return _.eA(z)};
_.p.onBusinessEmailCaptchaSubmit=function(){var z;(z=this.data)!=null&&z.onBusinessEmailRevealClickCommand&&(z=this.JSC$21732_captchaTextarea.value)&&(z={recaptcha_response_token:z,channel_id:this.data.channelId},_.pG().resolve(_.DQ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},z,{element:this.hostElement})}))};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vP.Object.defineProperties(aA.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 z,l;return!((z=this.data)==null||!z.primaryLinks)&&!((l=this.data)==null?0:l.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.primaryLinks)&&!((l=this.data)==null?0:l.links)&&!this.shouldShowNewLinks}}});
aA.prototype.onYtServiceRequestCompleted=aA.prototype.onYtServiceRequestCompleted;aA.prototype.dataChanged=aA.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],aA.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.qX("#g-recaptcha-response"),_.w("design:type",HTMLTextAreaElement)],aA.prototype,"JSC$21732_captchaTextarea",void 0);_.e([_.X(),_.w("design:type",Object)],aA.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],aA.prototype,"businessEmailDisplayState",void 0);_.e([_.X(),_.w("design:type",String)],aA.prototype,"businessEmail",void 0);_.e([_.X(),_.w("design:type",String)],aA.prototype,"businessEmailErrorMessage",void 0);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],aA.prototype,"hideDetailsSection",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aA.prototype,"dataChanged",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],aA.prototype,"shouldShowNewLinks",null);_.e([_.B("data","shouldShowLinks"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],aA.prototype,"shouldShowLegacyLinks",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],aA.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],aA);
_.r(aA,"ytd-channel-about-metadata-renderer",function(){if(sI1!==void 0)return sI1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sI1=z},{mode:1});var rs8;_.sW("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Vp=function(){return _.q.apply(this,arguments)||this};
_.m(Vp,_.q);Vp.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vp.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],Vp.prototype,"lockupContainerType",void 0);_.e([_.X(),_.w("design:type",String)],Vp.prototype,"thumbnailFixedWidth",void 0);
_.e([_.S({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Vp);
_.r(Vp,"ytd-channel-featured-content-renderer",function(){if(rs8!==void 0)return rs8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return rs8=z},{mode:1});var $cK;_.sW("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var jr=function(){var z=_.q.apply(this,arguments)||this;z.roundContainer=!0;z.amsterdamEnabled=_.C("enable_desktop_amsterdam_info_panels");return z};
_.m(jr,_.q);_.p=jr.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.dataChanged=function(){this.imageWidth=this.imageHeight=24;var z=this.data;z.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!z.style&&z.image&&z.image.thumbnails.length&&(z=z.image.thumbnails[0],this.imageWidth=z.width||0,this.imageHeight=z.height||0)};
_.p.computeSource=function(z){return z.secondarySource?_.ID(z.secondarySource):_.ID(z.source)};
_.p.computeClarifyStyle=function(z){return z?z.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.p.isLargeStyle=function(z){return z==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.p.computeBackgroundStyle=function(z){return z?z.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.p.computeHasActionButton=function(z){return!!z.actionButton};
_.p.computeHasBottomSection=function(z){return!!z.ctaHasBottomSection};
_.p.computeIsSourceMissing=function(z){return z.ctaHasBottomSection===!1?!0:z&&this.computeSource(z)?!1:!0};
_.p.computeSecondaryEndpoint=function(z){return z.secondaryEndpoint||z.endpoint};
jr.prototype.dataChanged=jr.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jr.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],jr.prototype,"imageWidth",void 0);_.e([_.X(),_.w("design:type",Number)],jr.prototype,"imageHeight",void 0);
_.e([_.X({computed:"computeSecondaryEndpoint(data)"}),_.w("design:type",Object)],jr.prototype,"secondaryEndpoint",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.w("design:type",Boolean)],jr.prototype,"hasActionButton",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.w("design:type",Boolean)],jr.prototype,"hasBottomSection",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.w("design:type",Boolean)],jr.prototype,"missingSource",void 0);_.e([_.X({computed:"computeIcon_(data.icon)"}),_.w("design:type",String)],jr.prototype,"icon",void 0);_.e([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.w("design:type",String)],jr.prototype,"secondaryIcon",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.w("design:type",String)],jr.prototype,"clarifyStyle",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.w("design:type",String)],jr.prototype,"backgroundStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jr.prototype,"roundContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],jr.prototype,"amsterdamEnabled",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jr.prototype,"dataChanged",null);
_.e([_.S({is:"ytd-clarification-renderer",disableElementRegistration:!0})],jr);
_.r(jr,"ytd-clarification-renderer",function(){if($cK!==void 0)return $cK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $cK=z},{mode:1});var euS;var w$c;var Jk=function(){var z=_.q.apply(this,arguments)||this;z.amsterdamEnabled=_.C("enable_desktop_amsterdam_info_panels");return z};
_.m(Jk,_.q);_.p=Jk.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.p.computeIcon=function(z){return z?"yt-icons:"+z.toLowerCase():null};
_.p.computeUseContacts=function(z){return!!z.contacts&&z.contacts.length>0};
_.p.computePhoneContact=function(z){var l,I;return(l=z.contacts)==null?void 0:(I=l.find(function(b){var v;return(b==null?void 0:(v=b.icon)==null?void 0:v.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.p.computeSmsContact=function(z){var l,I;return(l=z.contacts)==null?void 0:(I=l.find(function(b){var v;return(b==null?void 0:(v=b.icon)==null?void 0:v.iconType)==="SMS"}))==null?void 0:I.actionText};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jk.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Jk.prototype,"amsterdamEnabled",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.w("design:type",Boolean)],Jk.prototype,"useContacts",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.w("design:type",String)],Jk.prototype,"phoneContact",void 0);_.e([_.S({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Jk);
_.r(Jk,"ytd-single-action-emergency-support-renderer",function(){if(w$c!==void 0)return w$c;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return w$c=z},{mode:1});_.sW("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var zO=function(){var z=_.q.apply(this,arguments)||this;z.roundedContainer=!0;z.amsterdamEnabled=_.C("enable_desktop_amsterdam_info_panels");return z};
_.m(zO,_.q);zO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zO.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zO.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],zO.prototype,"amsterdamEnabled",void 0);
_.e([_.S({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],zO);
_.r(zO,"ytd-emergency-onebox-renderer",function(){if(euS!==void 0)return euS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return euS=z},{mode:1});var AsW;_.sW("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var lU=function(){return _.q.apply(this,arguments)||this};
_.m(lU,_.q);lU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lU.prototype,"data",void 0);_.e([_.S({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],lU);
_.r(lU,"ytd-exploratory-results-renderer",function(){if(AsW!==void 0)return AsW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return AsW=z},{mode:1});var WiX;_.sW("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var II=function(){var z=_.q.apply(this,arguments)||this;z.messageData=null;return z};
_.m(II,_.q);_.p=II.prototype;_.p.onServiceRequestCompleted=function(z,l){z=l.actions||[];l=0;for(var I=z.length;l<I;l++){var b=z[l],v=void 0,M=void 0;if((v=_.k(b,_.$K))==null?0:(M=v.item)==null?0:M.messageRenderer)this.messageData=_.k(b,_.$K).item.messageRenderer}};
_.p.dataChanged=function(){var z=this.data;this.hostElement.hidden=!1;_.fJ(this.hostElement,"is-channel",z&&!z.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.p.computeThumbnailWidth=function(z){return z?126:56};
_.p.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.p.onSubmitTap=function(){var z=this.data,l=this.selectedResponseIndex;z!==void 0&&l!==void 0&&(z=z.responses[l],z.responseData&&_.pG().resolve(_.DQ).resolveCommand(z.responseData,{form:{element:this.hostElement}}))};
_.p.onDismissTap=function(){this.hostElement.hidden=!0;var z=this.data;z!==void 0&&z.dismissalEndpoint&&_.pG().resolve(_.DQ).resolveCommand(z.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.updateSelectedResponseIndexFromBinding=function(z){this.selectedResponseIndex=z.detail.value};
II.prototype.onSelectedResponseIndexChange=II.prototype.onSelectedResponseIndexChange;II.prototype.dataChanged=II.prototype.dataChanged;II.prototype.onServiceRequestCompleted=II.prototype.onServiceRequestCompleted;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],II.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],II.prototype,"messageData",void 0);
_.e([_.X(),_.w("design:type",Number)],II.prototype,"selectedResponseIndex",void 0);_.e([_.qX("#submit-button"),_.w("design:type",HTMLButtonElement)],II.prototype,"submitButton",void 0);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],II.prototype,"onServiceRequestCompleted",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],II.prototype,"dataChanged",null);
_.e([_.By("selectedResponseIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],II.prototype,"onSelectedResponseIndexChange",null);_.e([_.S({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],II);
_.r(II,"ytd-feedback-elicitation-single-question-renderer",function(){if(WiX!==void 0)return WiX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return WiX=z},{mode:1});var nhW;var bU=function(){return _.q.apply(this,arguments)||this};
_.m(bU,_.q);bU.prototype.computeThumbnailWidth=function(z){return z?602:428};
bU.prototype.updateWideFromBinding=function(z){this.wide=z.detail.value};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bU.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],bU.prototype,"wide",void 0);_.e([_.S({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],bU);
_.r(bU,"ytd-newspaper-hero-video-renderer",function(){if(nhW!==void 0)return nhW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return nhW=z},{mode:1});var LiW;var v$=function(){return _.q.apply(this,arguments)||this};
_.m(v$,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],v$.prototype,"rendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],v$.prototype,"data",void 0);_.e([_.S({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],v$);
_.r(v$,"ytd-newspaper-mini-video-renderer",function(){if(LiW!==void 0)return LiW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return LiW=z},{mode:1});var Ucy;_.sW("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Mc=function(){return _.q.apply(this,arguments)||this};
_.m(Mc,_.q);Mc.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Mc.prototype,"data",void 0);_.e([_.S({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Mc);
_.r(Mc,"ytd-newspaper-renderer",function(){if(Ucy!==void 0)return Ucy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ucy=z},{mode:1});var aoW;_.sW("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var pZ=function(){var z=_.q.apply(this,arguments)||this;z.isSegment=!1;z.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};z.nextContinuation={continuationType:"playlistVideoListContinuation"};return z};
_.m(pZ,_.q);_.p=pZ.prototype;_.p.attached=function(){_.pG();var z;(z=_.pG().resolve(_.MB(_.Pz)))!=null&&(z.playlistVideoListElement=this.hostElement)};
_.p.detached=function(){var z;(z=_.pG().resolve(_.MB(_.Pz)))!=null&&(z.playlistVideoListElement=void 0);z=_.pG().resolve(_.MB(_.oB));_.C("web_enable_voting_animation")&&z&&(z.parentElem=void 0,z.videos=[],z.continuationsPresent=!1,z.showRefreshPill=!1)};
_.p.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"}}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p.dataChanged=function(){var z=_.pG().resolve(_.MB(_.oB));if(_.C("web_enable_voting_animation")&&this.data&&z){var l=_.Hy(this.hostElement).querySelector("#contents");l&&(z.parentElem=l);z.addVideos(this.data.contents)}_.Ean(this.ytReorderableBehavior)};
_.p.onRendererstamperFinished=function(){this.canReorder&&_.uCA(this.ytReorderableBehavior,_.Hy(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.p.onPlaylistReloading=function(){this.isReloading=!0};
_.p.onUpdateSetVideoId=function(z){if(z.detail&&this.data&&this.data.contents){var l=z.detail;z=this.data.contents.findIndex(function(v){var M;return((M=v.playlistVideoRenderer)==null?void 0:M.videoId)===l.videoId});
if(!(z<0)&&l.setVideoId&&(this.set("data.contents."+z+".playlistVideoRenderer.setVideoId",l.setVideoId),_.C("web_enable_voting_animation"))){var I;if(z=_.k((I=this.data.contents[z].playlistVideoRenderer)==null?void 0:I.engagementBar,_.EeG)){var b;(b=z.actions)==null||b.forEach(function(v){if(v=_.k(v,_.u27))v.itemId=l.setVideoId})}(I=_.pG().resolve(_.MB(_.oB)))&&Kis(I,l.videoId,l.setVideoId)}}};
_.p.computeContentsClass=function(z){return z?"reloading":""};
_.p.computeIsSortable=function(z,l){return z&&l>0&&!this.isSegment&&!_.C("shorts_in_playlists_web")};
_.p.computeIsEditable=function(z){return z};
_.p.computeCanReorder=function(z){return z};
_.p.handlePlaylistRemoveVideosAction=function(z){if(this.get("playlistRemoveVideosAction.setVideoIds",z)&&this.data&&this.data.contents){z=_.k(z,_.Gp_).setVideoIds;for(var l=this.data.contents.length-1;l>=0;){var I=this.data.contents[l].playlistVideoRenderer;I&&I.setVideoId&&z.includes(I.setVideoId)&&this.splice("data.contents",l,1);l--}_.Gb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var z=0;z<this.data.contents.length;z++)this.set("data.contents."+z+".playlistVideoRenderer.index",_.lc(String(z+1)))};
_.p.handleDrop=function(z){z=z.currDragItem;var l=_.sY(z.parentNode.childNodes,z),I=this.data.contents.splice(Number(_.ID(z.data.index))-1,1)[0];this.data.contents.splice(l,0,I);l=l?this.get("contents."+(l-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();z=this.buildReorderServiceEndpoint(z.data.setVideoId,l);this.ytComponentBehavior.resolveCommand(z)};
_.p.buildReorderServiceEndpoint=function(z,l){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",z),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",l),this.data.onReorderEndpoint):null};
_.p.handleUpdatePlaylistAction=function(z){var l;(z=_.k((l=_.k(z,_.NTn))==null?void 0:l.updatedRenderer,_.vmp))&&this.canReorder!==z.canReorder&&this.set("data.canReorder",z.canReorder);z&&z.contents&&(this.set("data.contents",z.contents),this.isReloading=!1);z&&z.continuations&&this.set("data.continuations",z.continuations)};
_.p.handleAddRendererToItemSectionAction=function(z){var l,I=(l=_.k(z,iZK))==null?void 0:l.renderer,b;I&&((b=_.k(z,iZK))==null?void 0:b.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),z=_.pG().resolve(_.MB(_.oB)),_.C("web_enable_voting_animation")&&z&&(I&&(l=_.NXt(I))&&z.recommendedVideos.push({itemId:l,videoId:_.Zbt(I),voteCount:_.HbQ(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.p.isVotingEnabledOnPlaylist=function(z){if(!z)return!1;z=_.D(z);for(z=z.next();!z.done;z=z.next()){var l=void 0;return!!_.k((l=z.value.playlistVideoRenderer)==null?void 0:l.engagementBar,_.EeG)}return!1};
_.p.onAppendContinuationItemsActionFinished=function(){var z;this.isVotingEnabledOnPlaylist((z=this.data)==null?void 0:z.contents)&&(this.updateIndices(),z=_.pG().resolve(_.MB(_.oB)),_.C("web_enable_voting_animation")&&z&&this.data&&z.addVideos(this.data.contents))};
_.p.updateVideoData=function(z){if(z.detail&&this.data&&this.data.contents){var l=z.detail;z=l.toIdx;var I=l.itemId,b=l.newVoteCount,v=l.voteStatus;l=l.hideItem;var M,x,g=(M=this.data)==null?void 0:(x=M.contents)==null?void 0:x.findIndex(function(H){return _.NXt(H)===I});
if(!(g<0)){M=this.data.contents[g];var G;if((G=M.playlistVideoRenderer)==null?0:G.voteCount)M.playlistVideoRenderer.voteCount=b;var u;if(G=_.k((u=M.playlistVideoRenderer)==null?void 0:u.engagementBar,_.EeG)){var Z;(Z=G.actions)==null||Z.forEach(function(H){(H=_.k(H,_.u27))&&H.initialState&&(H.initialState.votes=b,H.initialState.status=v)})}this.data.contents.splice(g,1);
l||this.data.contents.splice(z,0,M);this.updateIndices()}}};
pZ.prototype.updateVideoData=pZ.prototype.updateVideoData;pZ.prototype.onAppendContinuationItemsActionFinished=pZ.prototype.onAppendContinuationItemsActionFinished;pZ.prototype.onUpdateSetVideoId=pZ.prototype.onUpdateSetVideoId;pZ.prototype.onPlaylistReloading=pZ.prototype.onPlaylistReloading;pZ.prototype.onRendererstamperFinished=pZ.prototype.onRendererstamperFinished;pZ.prototype.dataChanged=pZ.prototype.dataChanged;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],pZ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.kH.YtNextContinuationBehavior),_.w("design:type",Object)],pZ.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.t(_.ZXA),_.w("design:type",Object)],pZ.prototype,"ytReorderableBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],pZ.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],pZ.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pZ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],pZ.prototype,"isReloading",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pZ.prototype,"isSegment",void 0);_.e([_.X({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.w("design:type",Boolean)],pZ.prototype,"isSortable",void 0);_.e([_.X({computed:"computeIsEditable(data.isEditable)"}),_.w("design:type",Boolean)],pZ.prototype,"isEditable",void 0);_.e([_.X({computed:"computeCanReorder(data.canReorder)"}),_.w("design:type",Boolean)],pZ.prototype,"canReorder",void 0);
_.e([_.X({value:101}),_.w("design:type",Number)],pZ.prototype,"scrollMargin",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pZ.prototype,"dataChanged",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pZ.prototype,"onRendererstamperFinished",null);
_.e([_.tP("yt-playlist-reloading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pZ.prototype,"onPlaylistReloading",null);_.e([_.tP("yt-update-set-video-id"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],pZ.prototype,"onUpdateSetVideoId",null);
_.e([_.tP("yt-append-continuation-items-action-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pZ.prototype,"onAppendContinuationItemsActionFinished",null);_.e([_.tP("yt-update-video-data-voting-animation"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],pZ.prototype,"updateVideoData",null);_.e([_.S({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],pZ);
_.r(pZ,"ytd-playlist-video-list-renderer",function(){if(aoW!==void 0)return aoW;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return aoW=z},{mode:_.yP("kevlar_poly_si_batch_j047")?1:2});var VBs;var Do=function(){return _.q.apply(this,arguments)||this};
_.m(Do,_.q);Do.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"}}}}};
Do.prototype.onTextWrapperTap=function(z){var l=this.data&&this.data.navigationEndpoint;l&&!_.DX(_.MX(z),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.gC(this.hostElement,"yt-navigate",{endpoint:l})};
Do.prototype.dataChanged=function(){var z=this.get("data.offerButton.buttonRenderer.serviceEndpoint");z&&z.commandMetadata&&_.k(z.commandMetadata,_.nw)&&_.k(z.commandMetadata,_.nw).fireAutomatically&&_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})};
Do.prototype.dataChanged=Do.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Cf),_.w("design:type",Object)],Do.prototype,"ytdLockupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Do.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],Do.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],Do.prototype,"biggerThumbsStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Do.prototype,"leftAligned",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Do.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Do);
_.r(Do,"ytd-movie-renderer",function(){if(VBs!==void 0)return VBs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return VBs=z},{mode:1});var jIs;var xh=function(){var z=_.q.apply(this,arguments)||this;z.rounded=!0;z.pageAttachedTo=void 0;z.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return z};
_.m(xh,_.q);xh.prototype.attached=function(){this.pageAttachedTo=_.pG().resolve(_.OB).getCurrentPage();_.gC(this.hostElement,"yt-player-attached",this.player)};
xh.prototype.detached=function(){var z;if((z=this.pageAttachedTo)==null?0:z.hostElement)_.gC(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
xh.prototype.dataChanged=function(){var z;if((z=this.data)==null?0:z.videoId)z={video_id:this.data.videoId,autoplay:!0},!_.C("miniplayer_stop_channel_video_autoplay_killswitch")&&_.pG().resolve(_.Af).isMiniplayerActive()&&(z.pause_at_start=!0,z.autoplay=!1),this.player.loadVideoWithPlayerVars(z)};
xh.prototype.handleSignalActionPausePlayer=function(){_.Nv().pause()};
xh.prototype.dataChanged=xh.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],xh.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],xh.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xh.prototype,"rounded",void 0);_.e([_.qX("#player"),_.w("design:type",Object)],xh.prototype,"player",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xh.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],xh);
_.r(xh,"ytd-channel-video-player-renderer",function(){if(jIs!==void 0)return jIs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return jIs=z},{mode:1});var Jss;var zw1;var lnl;var Og=function(){var z=_.q.apply(this,arguments)||this;z.playing=!1;z.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.UY(z);z.active=!1;return z};
_.m(Og,_.q);_.p=Og.prototype;_.p.detached=function(){this.stop()};
_.p.play=function(){var z=this,l,I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return z.active=!0,l=z.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=l.videoId||z.data.videoId,b=l.startTimeSeconds||0,v=l.playerParams||null,_.C("kevlar_player_update_killswitch")?x.yield(z.playerEl.update({args:{video_id:I,startSeconds:b,player_params:v}}),2):(z.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:b,player_params:v,autoplay:!0}),x.jumpTo(2));if(x.nextAddress!=4)return x.yield(z.playerEl.getPlayerPromise(),
4);M=x.yieldResult;M.unloadModule("annotations_module");M.addEventListener("onStateChange",function(g){z.onPlayerStateChange(g)});
_.qe(x)})};
_.p.onPlayerStateChange=function(z){if(this.active)switch(this.playing=z===1,z){case 1:_.gC(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.gC(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.p.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.p.resize=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z.playerEl.getPlayerPromise(),2);l=I.yieldResult;l.setSize(NaN,NaN);_.qe(I)})};
_.e([_.X(),_.w("design:type",Object)],Og.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Og.prototype,"playing",void 0);_.e([_.X(),_.w("design:type",Object)],Og.prototype,"playerId",void 0);_.e([_.qX("#player"),_.w("design:type",Object)],Og.prototype,"playerEl",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Og);
_.r(Og,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(lnl!==void 0)return lnl;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return lnl=z},{mode:1});var InC;var bFs;var gz=function(){var z=_.q.apply(this,arguments)||this;z.width=0;return z};
_.m(gz,_.q);_.p=gz.prototype;_.p.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.KJ(this,this.onEnded));this.mp4El.addEventListener("error",_.KJ(this,this.onError))};
_.p.detached=function(){this.videoEl.removeEventListener("ended",_.KJ(this,this.onEnded));this.mp4El.removeEventListener("error",_.KJ(this,this.onError))};
_.p.play=function(){var z=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var l=this.videoEl.play();l?l.then(function(){z.handleVideoStartPlaying()}).catch(function(){_.gC(z.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.gC(this.hostElement,"yt-video-thumbnail-not-playing")};
_.p.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.p.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.p.dataChanged=function(){var z;if((z=this.data)==null?0:z.thumbnailPlaceholder)z=_.ZY(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+z+")";this.stop();this.autoplay&&this.play()};
_.p.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.p.onEnded=function(){this.stop();_.gC(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.p.onError=function(){_.gC(this.hostElement,"yt-video-thumbnail-error")};
_.p.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.p.getVideoThumbnail=function(z){if(z&&z.length)return z[0]};
gz.prototype.dataChanged=gz.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],gz.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],gz.prototype,"animatePlaceholderOnEntrance",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],gz.prototype,"autoplay",void 0);_.e([_.X({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.w("design:type",Object)],gz.prototype,"videoThumbnail",void 0);
_.e([_.X(),_.w("design:type",Boolean)],gz.prototype,"loop",void 0);_.e([_.X(),_.w("design:type",Boolean)],gz.prototype,"isVideoPlaying",void 0);_.e([_.X(),_.w("design:type",Object)],gz.prototype,"width",void 0);_.e([_.qX("#mp4"),_.w("design:type",HTMLElement)],gz.prototype,"mp4El",void 0);_.e([_.qX("#placeholder"),_.w("design:type",HTMLElement)],gz.prototype,"placeholderEl",void 0);_.e([_.qX("#video"),_.w("design:type",HTMLVideoElement)],gz.prototype,"videoEl",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gz.prototype,"dataChanged",null);_.e([_.Wy({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],gz);
_.r(gz,"yt-video-as-thumbnail-details",function(){if(bFs===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;InC===void 0&&(InC=document.createElement("template"));var b=InC;I.call(l,b.content.cloneNode(!0),z.content.firstChild);bFs=z}z=bFs;return z},{mode:2});var GO=function(){var z=_.q.apply(this,arguments)||this;z.disableGridStateAware=!1;z.animationEnabled=_.C("enable_web_ketchup_hero_animation");z.transitioningOut=!1;z.narrow=!1;z.narrower=!1;z.isCarouselInFeed=!1;z.videoTimeoutJobId=0;z.panelTimeoutJobId=0;z.panelTimeoutJobStartMs=0;z.actionMap={"yt-window-resized":"onWindowResized"};return z};
_.m(GO,_.q);_.p=GO.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.p.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.p.attached=function(){this.onWindowResized()};
_.p.detached=function(){this.clearTimeouts()};
_.p.onWindowResized=function(){this.updateSize()};
_.p.computePanelLayout=function(z){return z&&z.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.playVideo=function(){var z;this.video&&((z=this.data)==null?0:z.videoThumbnail)&&this.video.play();var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.play()};
_.p.stopVideo=function(){var z;this.video&&((z=this.data)==null?0:z.videoThumbnail)&&this.video.stop();var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.stop()};
_.p.transitionOut=function(){var z=this;this.transitioningOut=!0;return new Promise(function(l){var I=function(){_.Hy(z.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.ow.cancelJob(b);l();z.transitioningOut=!1};
var b=_.qA(_.ow,I,1E3);_.Hy(z.hostElement).querySelector("#action-button").addEventListener("animationend",I);z.player&&(z.player.playing=!1)})};
_.p.computeMetadataOrder=function(z){return z&&z.metadataOrder&&z.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?z.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.p.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.p.computeAvatarSize=function(z){return z&&z.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.p.onContentClick=function(z){if(!_.DX(_.MX(z),this.hostElement,["A".toString(),"BUTTON".toString()])){var l;if((l=this.data)==null?0:l.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.p.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.p.setBackgroundImage=function(z){if(z=this.getBackgroundImageUrl(z))_.Hy(this.hostElement).querySelector("#hero").style.backgroundImage="url("+z+")"};
_.p.setScrimLayer=function(z){var l=this.getScrimLayerColorStops(z);z=((z==null?void 0:z.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(z=180);_.sZ("HTML_DIR")==="rtl"&&(z=-z);l&&(_.Hy(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+z+"deg, "+l+")")};
_.p.isNarrower=function(){return this.hostElement.clientWidth<GO.NARROW_VERSION_SIZE};
_.p.getScrimLayerColorStops=function(){var z,l=(z=this.data)==null?void 0:z.scrimColorValues;if(!l)return null;if(l.length===1)return z=_.aD(l[0]),z+" 0%, "+z+" 100%";if(l.length===3){var I=[0,72,98];return l.map(function(b,v){return _.aD(b)+" "+I[v]+"%"}).join(",")}return null};
_.p.getBackgroundImageUrl=function(z){return z&&z.largeFormFactorBackgroundThumbnail?_.ZY((z.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||z.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.p.onPlaying=function(){this.startVideoTimeout()};
_.p.onEnded=function(){this.rotate()};
_.p.startPanelTimeout=function(){var z=this;if(!this.panelTimeoutJobId){var l=this.get("data.minPanelDisplayDurationMs");l&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.qA(_.ow,function(){z.rotate()},l))}};
_.p.startVideoTimeout=function(){var z=this;if(!this.videoTimeoutJobId){_.ow.cancelJob(this.panelTimeoutJobId);var l=Date.now()-this.panelTimeoutJobStartMs;l=Math.max(0,this.get("data.minPanelDisplayDurationMs")-l);l=Math.max(this.get("data.minVideoPlayDurationMs")||0,l);this.videoTimeoutJobId=_.qA(_.ow,function(){z.rotate()},l)}};
_.p.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ow.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ow.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.p.rotate=function(){this.clearTimeouts();_.gC(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.vP.Object.defineProperties(GO.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Hy(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Hy(this.hostElement).querySelector("#video")}}});
_.vP.Object.defineProperties(GO,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
GO.prototype.onEnded=GO.prototype.onEnded;GO.prototype.onPlaying=GO.prototype.onPlaying;GO.prototype.dataChanged=GO.prototype.dataChanged;_.e([_.t(_.u0),_.w("design:type",Object)],GO.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],GO.prototype,"componentBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],GO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.t(_.m6j),_.w("design:type",Object)],GO.prototype,"ytBooleanLogicBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],GO.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"disableGridStateAware",void 0);_.e([_.X(),_.w("design:type",Object)],GO.prototype,"data",void 0);_.e([_.X({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.w("design:type",String)],GO.prototype,"panelLayout",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"animationEnabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"transitioningOut",void 0);
_.e([_.X({computed:"computeMetadataOrder(data)"}),_.w("design:type",Boolean)],GO.prototype,"metadataOrder",void 0);_.e([_.X({computed:"computeByline(data)"}),_.w("design:type",Object)],GO.prototype,"byline",void 0);_.e([_.X({computed:"computeAvatarSize(data)"}),_.w("design:type",Number)],GO.prototype,"avatarSize",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"narrow",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"narrower",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"layoutStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GO.prototype,"isCarouselInFeed",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GO.prototype,"dataChanged",null);_.e([_.tP("yt-default-promo-panel-renderer-playing"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GO.prototype,"onPlaying",null);
_.e([_.tP("yt-default-promo-panel-renderer-ended"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GO.prototype,"onEnded",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],GO);
_.r(GO,"ytd-default-promo-panel-renderer",function(){if(zw1!==void 0)return zw1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return zw1=z},{mode:1});_.sW("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Nc=function(){var z=_.q.apply(this,arguments)||this;z.narrower=!1;z.dotMenuVisible=!1;z.paginationThumbnailsVisible=!1;z.active=!0;z.disableGridStateAware=!1;z.actionMap={"yt-window-resized":"onWindowResized"};return z};
_.m(Nc,_.q);_.p=Nc.prototype;_.p.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]]"}}}}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.KJ(this,this.onPageTypeChange));this.currentPageSubtype=_.ma(location.pathname);this.onWindowResized()};
_.p.detached=function(){this.jobId&&_.ow.cancelJob(this.jobId);this.updateSizeJobId&&_.ow.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.KJ(this,this.onPageTypeChange))};
_.p.onPageTypeChange=function(z){this.active=z.detail.newPageSubtype===this.currentPageSubtype};
_.p.onWindowResized=function(){this.updateSize()};
_.p.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.p.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.p.setCarouselItem=function(z){z>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ow.cancelJob(this.jobId);var l=this.getCurrentPanelElement();l&&l.stopVideo();this.currentItemIndex=z%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(l||(l=this.getCurrentPanelElement()),l.playVideo()):this.startRotationJob()};
_.p.scrollThumbnails=function(z){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var l=this.getCurrentPaginationElement();if(l){var I=_.Hy(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(l=l.offsetWidth+8,I.style.transform="translateX(-"+l*(z-Math.ceil(Math.floor(this.overlay.offsetWidth/l)/2)+1)+"px)")}}};
_.p.onDataChanged=function(){var z=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.fI(_.ow,function(){var l;(l=z.getCurrentPanelElement())==null||l.updateSize();z.updateSize()}))};
_.p.getCurrentPanelElement=function(){return _.Hy(_.Hy(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.p.getCurrentPaginationElement=function(){return _.Hy(_.Hy(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.p.getNavigationClass=function(z,l){return z===l?"selected":""};
_.p.getNavigationDurationStyle=function(z){return"animation-duration:"+(this.get("data.carouselItems."+z+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.p.onNavigationTap=function(z){var l=this,I=z.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){l.setCarouselItem(I)}),this.autorotateActive=!1)};
_.p.onVideoThumbnailEnded=function(){var z=this;if(this.shouldRotate()){var l=this.getCurrentPaginationElement();l&&(l.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){l.classList.remove("finished");z.setNextCarouselItem()}))}};
_.p.onVideoThumbnailError=function(){this.startRotationJob()};
_.p.onVideoNotPlaying=function(){this.startRotationJob()};
_.p.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.p.startRotationJob=function(){var z=this;_.ow.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ow.addLowPriorityJob(function(){z.getCurrentPanelElement().transitionOut().then(function(){z.setNextCarouselItem()})},this.rotationTimeout))};
_.p.computeDotMenuVisible=function(z,l){return!!z&&!!z.carouselItems&&z.carouselItems.length>1&&!z.paginationThumbnails||!!l};
_.p.computePaginationThumbnailsVisible=function(z,l){var I,b;return((b=z==null?void 0:(I=z.paginationThumbnails)==null?void 0:I.length)!=null?b:0)>1&&!l};
_.p.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.computePaginatorAlignment=function(z){return(z==null?void 0:z.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.p.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.p.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.p.isNarrower=function(z){return(z!=null?z:0)<GO.NARROW_VERSION_SIZE};
Nc.prototype.activeChanged=Nc.prototype.activeChanged;Nc.prototype.onVideoNotPlaying=Nc.prototype.onVideoNotPlaying;Nc.prototype.onVideoThumbnailError=Nc.prototype.onVideoThumbnailError;Nc.prototype.onVideoThumbnailEnded=Nc.prototype.onVideoThumbnailEnded;Nc.prototype.onDataChanged=Nc.prototype.onDataChanged;_.e([_.t(_.u0),_.w("design:type",Object)],Nc.prototype,"ytdGridStateAwareBehavior",void 0);
_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Nc.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Nc.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Nc.prototype,"currentItem",void 0);
_.e([_.X(),_.w("design:type",Number)],Nc.prototype,"currentItemIndex",void 0);_.e([_.X(),_.w("design:type",Number)],Nc.prototype,"rotationTimeout",void 0);_.e([_.X(),_.w("design:type",Number)],Nc.prototype,"loopCount",void 0);_.e([_.X({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.w("design:type",String)],Nc.prototype,"paginatorAlignment",void 0);_.e([_.X(),_.w("design:type",Number)],Nc.prototype,"jobId",void 0);
_.e([_.X(),_.w("design:type",Number)],Nc.prototype,"updateSizeJobId",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Nc.prototype,"isCarouselInFeed",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Nc.prototype,"narrower",void 0);_.e([_.X({computed:"computeDotMenuVisible(data, narrower)"}),_.w("design:type",Object)],Nc.prototype,"dotMenuVisible",void 0);
_.e([_.X({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.w("design:type",Object)],Nc.prototype,"paginationThumbnailsVisible",void 0);_.e([_.X({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.w("design:type",String)],Nc.prototype,"layoutType",void 0);_.e([_.X({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],Nc.prototype,"autorotateActive",void 0);_.e([_.X(),_.w("design:type",Object)],Nc.prototype,"active",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Nc.prototype,"disableGridStateAware",void 0);_.e([_.qX("#overlay"),_.w("design:type",HTMLElement)],Nc.prototype,"overlay",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nc.prototype,"onDataChanged",null);
_.e([_.tP("yt-video-thumbnail-ended"),_.tP("yt-default-promo-panel-renderer-rotate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nc.prototype,"onVideoThumbnailEnded",null);_.e([_.tP("yt-video-thumbnail-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nc.prototype,"onVideoThumbnailError",null);
_.e([_.tP("yt-video-thumbnail-not-playing"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nc.prototype,"onVideoNotPlaying",null);_.e([_.YE("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Nc.prototype,"activeChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Nc);
_.r(Nc,"ytd-carousel-item-renderer",function(){if(Jss!==void 0)return Jss;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Jss=z},{mode:2});var vi4;var Mv0;var p1K;var DPF;var Eg=function(){var z=_.q.apply(this,arguments)||this;z.originalQuery=null;z.originalEndpoint=null;return z};
_.m(Eg,_.q);Eg.prototype.computeShowOriginalQueryWithoutEndpoint_=function(z,l){return!(!z||l)};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Eg.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Eg.prototype,"correctedText",void 0);_.e([_.X(),_.w("design:type",Object)],Eg.prototype,"correctedQuery",void 0);_.e([_.X(),_.w("design:type",Object)],Eg.prototype,"correctedEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],Eg.prototype,"originalText",void 0);_.e([_.X(),_.w("design:type",Object)],Eg.prototype,"originalQuery",void 0);
_.e([_.X(),_.w("design:type",Object)],Eg.prototype,"originalEndpoint",void 0);_.e([_.X({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.w("design:type",Boolean)],Eg.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.e([_.Wy({is:"yt-search-query-correction",disableElementRegistration:!0})],Eg);
_.r(Eg,"yt-search-query-correction",function(){if(DPF===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;p1K===void 0&&(p1K=document.createElement("template"));var b=p1K;I.call(l,b.content.cloneNode(!0),z.content.firstChild);DPF=z}z=DPF;return z},{mode:2});_.sW("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var uU=function(){return _.q.apply(this,arguments)||this};
_.m(uU,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uU.prototype,"data",void 0);_.e([_.Wy({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],uU);
_.r(uU,"yt-did-you-mean-renderer",function(){if(Mv0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;vi4===void 0&&(vi4=document.createElement("template"));var b=vi4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Mv0=z}z=Mv0;return z},{mode:2});var xPS;var OFC;_.sW("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Zo=function(){return _.q.apply(this,arguments)||this};
_.m(Zo,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Zo.prototype,"data",void 0);_.e([_.Wy({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Zo);
_.r(Zo,"yt-including-results-for-renderer",function(){if(OFC===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;xPS===void 0&&(xPS=document.createElement("template"));var b=xPS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);OFC=z}z=OFC;return z},{mode:2});var gil;var GjF;_.sW("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var H$=function(){return _.q.apply(this,arguments)||this};
_.m(H$,_.q);H$.prototype.computeExtraClasses_=function(z,l){var I="";z&&(I+=" "+z.toLowerCase().replace(/_/g,"-"));l&&(I+=" "+l.toLowerCase().replace(/_/g,"-"));return I};
H$.prototype.computeUrlImg_=function(){var z=this.data;z.image&&(_.Hy(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.ZY(z.image.thumbnails,Number.MAX_VALUE)+")")};
H$.prototype.computeUrlImg_=H$.prototype.computeUrlImg_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],H$.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H$.prototype,"computeUrlImg_",null);_.e([_.Wy({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],H$);
_.r(H$,"yt-music-pass-feature-info-renderer",function(){if(GjF===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;gil===void 0&&(gil=document.createElement("template"));var b=gil;I.call(l,b.content.cloneNode(!0),z.content.firstChild);GjF=z}z=GjF;return z},{mode:2});var NeS;var EiX;_.sW("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var ym=function(){return _.q.apply(this,arguments)||this};
_.m(ym,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ym.prototype,"data",void 0);_.e([_.Wy({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],ym);
_.r(ym,"yt-no-results-found-showing-results-for-renderer",function(){if(EiX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;NeS===void 0&&(NeS=document.createElement("template"));var b=NeS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);EiX=z}z=EiX;return z},{mode:2});var upS;var ZFl;_.sW("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var fZ=function(){return _.q.apply(this,arguments)||this};
_.m(fZ,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fZ.prototype,"data",void 0);_.e([_.Wy({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],fZ);
_.r(fZ,"yt-results-without-quotes-renderer",function(){if(ZFl===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;upS===void 0&&(upS=document.createElement("template"));var b=upS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ZFl=z}z=ZFl;return z},{mode:2});var HFX;var yFX;_.sW("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var CZ=function(){return _.q.apply(this,arguments)||this};
_.m(CZ,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],CZ.prototype,"data",void 0);_.e([_.Wy({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],CZ);
_.r(CZ,"yt-search-no-results-renderer",function(){if(yFX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;HFX===void 0&&(HFX=document.createElement("template"));var b=HFX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);yFX=z}z=yFX;return z},{mode:2});var fns;var Cbl;_.sW("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var kh=function(){return _.q.apply(this,arguments)||this};
_.m(kh,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kh.prototype,"data",void 0);_.e([_.Wy({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],kh);
_.r(kh,"yt-showing-results-for-renderer",function(){if(Cbl===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;fns===void 0&&(fns=document.createElement("template"));var b=fns;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Cbl=z}z=Cbl;return z},{mode:2});var kj1;var RwK;var mPS;var KeC;var RI=function(){var z=_.q.apply(this,arguments)||this;z.answerExpanded=!1;return z};
_.m(RI,_.q);RI.prototype.toggleAnswer_=function(z){var l=_.pJ(z);l&&l.classList.contains("yt-simple-endpoint")||(z.preventDefault(),z.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
RI.prototype.toggleAnswer_=RI.prototype.toggleAnswer_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],RI.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],RI.prototype,"answerExpanded",void 0);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],RI.prototype,"toggleAnswer_",null);
_.e([_.Wy({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],RI);
_.r(RI,"yt-generic-faq-question-renderer",function(){if(KeC===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;mPS===void 0&&(mPS=document.createElement("template"));var b=mPS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);KeC=z}z=KeC;return z},{mode:2});_.sW("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var mi=function(){return _.q.apply(this,arguments)||this};
_.m(mi,_.q);mi.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mi.prototype,"data",void 0);_.e([_.Wy({is:"yt-faq-section-renderer",disableElementRegistration:!0})],mi);
_.r(mi,"yt-faq-section-renderer",function(){if(RwK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;kj1===void 0&&(kj1=document.createElement("template"));var b=kj1;I.call(l,b.content.cloneNode(!0),z.content.firstChild);RwK=z}z=RwK;return z},{mode:2});var tvy;var Be0;_.sW("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var KZ=function(){return _.q.apply(this,arguments)||this};
_.m(KZ,_.q);
KZ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],KZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],KZ.prototype,"data",void 0);_.e([_.Wy({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],KZ);
_.r(KZ,"yt-offer-item-expanded-renderer",function(){if(Be0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;tvy===void 0&&(tvy=document.createElement("template"));var b=tvy;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Be0=z}z=Be0;return z},{mode:2});var X1K;var qk4;_.sW("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var ts=function(){return _.q.apply(this,arguments)||this};
_.m(ts,_.q);
ts.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"}}}}};
ts.prototype.computeFullWidthMode=function(z){return!(!z||!z.fullWidthMode)};
ts.prototype.computeBorderlessMode=function(z){return!(!z||!z.borderlessMode)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ts.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.w("design:type",Boolean)],ts.prototype,"fullWidthMode",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.w("design:type",Boolean)],ts.prototype,"borderlessMode",void 0);_.e([_.Wy({is:"yt-offer-item-renderer",disableElementRegistration:!0})],ts);
_.r(ts,"yt-offer-item-renderer",function(){if(qk4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;X1K===void 0&&(X1K=document.createElement("template"));var b=X1K;I.call(l,b.content.cloneNode(!0),z.content.firstChild);qk4=z}z=qk4;return z},{mode:2});var iFW;var FeK;_.sW("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var B$=function(){return _.q.apply(this,arguments)||this};
_.m(B$,_.q);B$.prototype.computeAriaLevel_=function(z){return this.getLevelID_(z)};
B$.prototype.getLevelID_=function(z){return(z=z.match(/[0-9]+$/))&&z.length==1?z[0]:"1"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],B$.prototype,"data",void 0);_.e([_.X({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.w("design:type",String)],B$.prototype,"ariaLevel",void 0);_.e([_.X({value:"heading",reflectToAttribute:!0}),_.w("design:type",String)],B$.prototype,"role",void 0);
_.e([_.X({value:-1,reflectToAttribute:!0}),_.w("design:type",Number)],B$.prototype,"tabindex",void 0);_.e([_.Wy({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],B$);
_.r(B$,"yt-subscription-product-header-renderer",function(){if(FeK===void 0){var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;iFW===void 0&&(iFW=document.createElement("template"));var b=iFW;I.call(l,b.content.cloneNode(!0),z.content.firstChild);FeK=z}z=FeK;return z},{mode:2});var QiS;var Yk0;_.sW("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var X3=function(){return _.q.apply(this,arguments)||this};
_.m(X3,_.q);X3.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:_.ro("menuRenderer"),events:!0}}};
X3.prototype.onStampFinished_=function(){_.Hy(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
X3.prototype.onStampFinished_=X3.prototype.onStampFinished_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],X3.prototype,"data",void 0);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X3.prototype,"onStampFinished_",null);
_.e([_.Wy({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],X3);
_.r(X3,"yt-subscription-product-renderer",function(){if(Yk0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;QiS===void 0&&(QiS=document.createElement("template"));var b=QiS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Yk0=z}z=Yk0;return z},{mode:2});var Tec;var cFX;_.sW("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var qc=function(){return _.q.apply(this,arguments)||this};
_.m(qc,_.q);qc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
qc.prototype.imageScrimColorValuesChanged_=function(){var z,l=(z=this.data)==null?void 0:z.imageScrimColorValues;_.Hy(this.hostElement).querySelector("#scrim").style.backgroundColor=l?_.aD(l[0]):"transparent"};
qc.prototype.imageScrimColorValuesChanged_=qc.prototype.imageScrimColorValuesChanged_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qc.prototype,"data",void 0);
_.e([_.By("data.imageScrimColorValues"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qc.prototype,"imageScrimColorValuesChanged_",null);_.e([_.Wy({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],qc);
_.r(qc,"yt-subscription-product-upsell-offer-renderer",function(){if(cFX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Tec===void 0&&(Tec=document.createElement("template"));var b=Tec;I.call(l,b.content.cloneNode(!0),z.content.firstChild);cFX=z}z=cFX;return z},{mode:2});var Skl;var dPK;var oiK;var PbW;var hw8;var si4;var iU=function(){return _.q.apply(this,arguments)||this};
_.m(iU,_.q);iU.prototype.onYtServiceRequestError_=function(z){_.IF(this.hostElement,z.detail.error.message)};
iU.prototype.onYtServiceRequestError_=iU.prototype.onYtServiceRequestError_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iU.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],iU.prototype,"collapsible",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],iU.prototype,"isManageRed",void 0);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],iU.prototype,"onYtServiceRequestError_",null);_.e([_.Wy({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],iU);
_.r(iU,"yt-single-ypc-offer-renderer",function(){if(si4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;hw8===void 0&&(hw8=document.createElement("template"));var b=hw8;I.call(l,b.content.cloneNode(!0),z.content.firstChild);si4=z}z=si4;return z},{mode:2});var F3=function(){return _.q.apply(this,arguments)||this};
_.m(F3,_.q);F3.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],F3.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],F3.prototype,"isManageRed",void 0);_.e([_.Wy({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],F3);
_.r(F3,"yt-single-ypc-offer-list-renderer",function(){if(PbW===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;oiK===void 0&&(oiK=document.createElement("template"));var b=oiK;I.call(l,b.content.cloneNode(!0),z.content.firstChild);PbW=z}z=PbW;return z},{mode:2});var rFl;var $P4;_.sW("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Qm=function(){return _.q.apply(this,arguments)||this};
_.m(Qm,_.q);Qm.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Qm.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Qm.prototype,"isManageRed",void 0);_.e([_.Wy({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Qm);
_.r(Qm,"yt-ypc-offers-list-renderer",function(){if($P4===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;rFl===void 0&&(rFl=document.createElement("template"));var b=rFl;I.call(l,b.content.cloneNode(!0),z.content.firstChild);$P4=z}z=$P4;return z},{mode:2});_.sW("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Yh=function(){return _.q.apply(this,arguments)||this};
_.m(Yh,_.q);
Yh.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yh.prototype,"data",void 0);_.e([_.Wy({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Yh);
_.r(Yh,"yt-unlimited-manage-subscription-page-renderer",function(){if(dPK===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Skl===void 0&&(Skl=document.createElement("template"));var b=Skl;I.call(l,b.content.cloneNode(!0),z.content.firstChild);dPK=z}z=dPK;return z},{mode:2});var ewl;var w10;var TO=function(){return _.q.apply(this,arguments)||this};
_.m(TO,_.q);_.p=TO.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.p.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.onKeypress_=function(z){z.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.p.handleHeaderTap_=function(z){z.preventDefault();z.stopPropagation();this.expandOffers_()};
_.p.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.p.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
TO.prototype.dataChanged_=TO.prototype.dataChanged_;_.e([_.t(_.rB),_.w("design:type",Object)],TO.prototype,"ironA11yKeysBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TO.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],TO.prototype,"offersVisible_",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TO.prototype,"dataChanged_",null);_.e([_.Wy({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],TO);
_.r(TO,"yt-collapsible-ypc-offer-renderer",function(){if(w10===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ewl===void 0&&(ewl=document.createElement("template"));var b=ewl;I.call(l,b.content.cloneNode(!0),z.content.firstChild);w10=z}z=w10;return z},{mode:2});var AFX;var WeF;_.sW("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var c$=function(){return _.q.apply(this,arguments)||this};
_.m(c$,_.q);_.p=c$.prototype;_.p.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.p.dataChanged_=function(){if(this.data.backgroundImage){var z=_.ZY(this.data.backgroundImage.thumbnails,screen.width),l=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=l?"linear-gradient(180deg, "+l+"), url("+z+")":"url("+z+")";this.data.gtmId&&_.If(this.data.gtmId,_.sZ("GL",""))}};
_.p.onYtServiceRequestError_=function(z){_.IF(this.hostElement,z.detail.error.message)};
_.p.getScrimLayerColorStops_=function(){var z,l,I=(z=this.data.unlimitedHeaderV2Data)==null?void 0:(l=z.unlimitedHeaderV2Data)==null?void 0:l.scrimLayerColors;if(!I)return null;var b=100/I.length;return I.map(function(v,M){M*=b;return _.aD(v)+" "+M+"%"}).join(",")};
_.p.computeLogoWithPadding=function(z){var l,I,b;return(z=(l=z.unlimitedLogoImage)==null?void 0:(I=l.thumbnails)==null?void 0:(b=I[0])==null?void 0:b.height)&&z%31===0?!0:!1};
c$.prototype.onYtServiceRequestError_=c$.prototype.onYtServiceRequestError_;c$.prototype.dataChanged_=c$.prototype.dataChanged_;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.e([_.X({computed:"computeLogoWithPadding(data)"}),_.w("design:type",Boolean)],c$.prototype,"logoWithPadding",void 0);
_.e([_.X(),_.w("design:type",Object)],c$.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c$.prototype,"dataChanged_",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],c$.prototype,"onYtServiceRequestError_",null);_.e([_.Wy({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],c$);
_.r(c$,"yt-unlimited-page-header-renderer",function(){if(WeF===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;AFX===void 0&&(AFX=document.createElement("template"));var b=AFX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);WeF=z}z=WeF;return z},{mode:2});var nil;var LeW;_.sW("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var SB=function(){return _.q.apply(this,arguments)||this};
_.m(SB,_.q);SB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],SB.prototype,"data",void 0);_.e([_.Wy({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],SB);
_.r(SB,"yt-unlimited-user-notification-renderer",function(){if(LeW===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;nil===void 0&&(nil=document.createElement("template"));var b=nil;I.call(l,b.content.cloneNode(!0),z.content.firstChild);LeW=z}z=LeW;return z},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.NCl=_.P(function(z){var l=_.xC(z,{numberOfChips:5}).numberOfChips;return _.N("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.N(_.qy,{each:function(){return Array(l==null?void 0:l())}},function(){return _.N("div",{class:"ytGhostChipShelfChip"})}))},"lh");_.EBC=_.P(function(z){var l=function(){var M;return((M=z.data)==null?void 0:M.call(z).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},I=_.KY(),b=_.pG().resolve(_.vr);
_.c8(function(){requestAnimationFrame(function(){var M;(M=I.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var x;(x=z.onLottieLoaded)==null||x.call(z)})})});
var v={};return _.N("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var M;return((M=z.data)==null?void 0:M.call(z).targetId)||""}},_.N(_.A4,{className:_.m9((v.ytChatLoadingViewModelRtl=b==="rtl",v)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:l()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||l()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:l()}}},
animationRef:I}))},"mh");
}catch(e){_._DumpException(e)}
try{
var zMS,lQq,IQF,vss,McC,pV1,DBK,xBq,OGK,HGl,wu,ZGX,Go1,uml,EsX,Nk0,gs0,yES,fQq,CfF,ko4,Aj,RMc,mBc,Bk8,nX,KZ8,az,Wj,LX,tcy,U1,XVF,qI8,iGs,FZF,Q3F,YIF,Tk8,SIX,dBq,osy,PfS,hMK,s3l,rE0,$By,wVX,AEK,WZ1,LZc,aQ0,j34,JEc,znl,lrS,bp1,v8X,M88,pd8,DWc,xWK,OpK,G6S,Zpl,uhq,Ni0,Hpy,E8c,yW1,Rny,k68,frC,CRy,jV,mWs,K5W,Bi4,Y5X,TiS,cWs,S5S,dW1,o8K,PRc,hnW,swK,rW0,eny,wdF,AWq,n8S,L50,ip4;
_.$a=function(z){var l=new _.qB("Error accessing DB");return _.Oy7().then(function(I){return new Promise(function(b,v){try{var M=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(z);M.onsuccess=function(){var x=M.result;b(x?x.value:null)};
M.onerror=function(){l.params={key:z,source:"onerror"};v(l)}}catch(x){l.params={key:z,
thrownError:String(x)},v(l)}})},function(){return null})};
_.Jr8=function(z,l){var I=_.b4u(l);I!=="javascript:"&&I!=="data:"&&z.setAttribute("href",l)};
zMS=function(z,l){return _.Cc(z.entities,"flowStateEntity",l)};
lQq=function(z,l){return _.Cc(z.entities,"contextNoteUserRatingEntityPayload",l)};
IQF=function(z,l){if(z&&l){var I=_.Qo();I().set(z,l);_.LN1(I())}};
_.bGC=function(z,l){if(z&&l){var I=_.Qo();I().set(z,l);_.LN1(I())}};
vss=function(z){return _.Sx(z,function(l){return l.languageCode==="en"})};
McC=function(z){var l=eV;if(_.G3C(z))z.setOption("captions","stickyLoading",{}),z.setOption("captions","track",{});else{var I=_.Sx(_.oeu(z),function(b){return b.displayName===l});
z.setOption("captions","track",I)}};
pV1=function(z){if(!z)return 0;var l=z.getPresentingPlayerType(),I=z.getVideoData();return I&&I.isLive?(z=z.getProgressState(l),z.seekableEnd-z.seekableStart):z.getDuration(l)};
DBK=function(z,l){for(var I=_.D(Object.keys(z)),b=I.next();!b.done;b=I.next())if(b=b.value,z[b]!==l[b])return!1;return!0};
xBq=function(){return document.getElementById("player-control-overlay")};
OGK=function(z){z!==-1&&!_.C("player_controls_log_creation_killswitch")&&xBq()&&(_.sK("pcu_cs",z),_.sK("pcu_ce"))};
HGl=function(z,l){var I=_.Df(z,{}),b=gs0("top",l),v=gs0("bottom",l),M=gs0("left",l),x=gs0("right",l);return _.XV({top:function(){return wu(I().position,b)},
bottom:function(){return wu(I().position,v)},
left:function(){return wu(I().position,M)},
right:function(){return wu(I().position,x)},
position:function(){return wu(I().positionType,Go1)},
height:function(){return wu(I().height,Aj)},
width:function(){return wu(I().width,Aj)},
"min-width":function(){return wu(I().minWidth,Aj)},
"min-height":function(){return wu(I().minHeight,Aj)},
"max-width":function(){return wu(I().maxWidth,Aj)},
"max-height":function(){return wu(I().maxHeight,Aj)},
"aspect-ratio":function(){return wu(I().aspectRatio,String)},
"margin-top":function(){return wu(I().margin,b)},
"margin-bottom":function(){return wu(I().margin,v)},
"margin-left":function(){return wu(I().margin,M)},
"margin-right":function(){return wu(I().margin,x)},
"padding-top":function(){return wu(I().padding,b)},
"padding-bottom":function(){return wu(I().padding,v)},
"padding-left":function(){return wu(I().padding,M)},
"padding-right":function(){return wu(I().padding,x)},
"flex-direction":function(){return wu(I().flexDirection,Nk0)},
"justify-content":function(){return wu(I().justifyContent,EsX)},
"align-items":function(){return wu(I().alignItems,uml)},
"flex-grow":function(){return wu(I().flexGrow,String)},
"flex-shrink":function(){return wu(I().flexShrink,String)},
"flex-basis":function(){return wu(I().flexBasis,Aj)},
"align-self":function(){return wu(I().alignSelf,uml)},
"flex-wrap":function(){return wu(I().flexWrap,ZGX)},
"align-content":function(){return wu(I().alignContent,uml)}})};
wu=function(z,l){return z!==void 0?l(z):void 0};
ZGX=function(z){switch(z){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Go1=function(z){switch(z){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
uml=function(z){switch(z){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"}};
EsX=function(z){switch(z){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"}};
Nk0=function(z){switch(z){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"}};
gs0=function(z,l){var I=l==="rtl";switch(z){case "top":var b=yES;break;case "bottom":b=fQq;break;case "left":b=CfF;break;default:b=ko4}return function(v){return wu(b(v,I),Aj)}};
yES=function(z){var l=z.top;var I=z.vertical;z=z.all;var b;return(b=l!=null?l:I)!=null?b:z};
fQq=function(z){var l=z.bottom;var I=z.vertical;z=z.all;var b;return(b=l!=null?l:I)!=null?b:z};
CfF=function(z,l){var I=z.left;var b=z.end;var v=z.start;var M=z.horizontal;z=z.all;var x,g;return(g=(x=I!=null?I:l?b:v)!=null?x:M)!=null?g:z};
ko4=function(z,l){var I=z.right;var b=z.end;var v=z.start;var M=z.horizontal;z=z.all;var x,g;return(g=(x=I!=null?I:l?v:b)!=null?x:M)!=null?g:z};
Aj=function(z){var l=z.value;switch(z.unit){case "YPC_DIMENSION_UNIT_POINT":return l+"px";case "YPC_DIMENSION_UNIT_FRACTION":return l+"%";default:return""+l}};
RMc=function(z){switch(z){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"}};
mBc=function(z){var l=z!=null?z:{};z=l.fontRole;var I=l.fontSize;l=l.fontWeight;if(z!==null&&I!==null)switch(z){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return l===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Bk8=function(z,l,I){function b(H){return Object.values(H).map(function(y){var f=y.productId;y=y.pricingOptionIndex;return Wj(v(f).pricingOptions,y).pricingOptionId})}
function v(H){return G().get(H)}
function M(H){H=b(H);I(H)}
function x(H,y){return Array.from(nX(H.pricingOptions)).filter(function(f){f=_.D(f);f.next();f=f.next().value;return LX(f.pricingGroupAttributes,y)}).map(function(f){return _.D(f).next().value})}
var g=U1([z,l],function(H,y){var f=H==null?void 0:H.selectedPricingOptions;H={};var R=!0;if(f&&y.length)for(var F=_.D(y),Y=F.next();!Y.done;Y=F.next()){Y=Y.value;var c=KZ8(Y.pricingOptions,function(A){a:{A=A.pricingOptionId;for(var W=_.D(f),L=W.next();!L.done;L=W.next())if(L.value===A){A=!0;break a}A=!1}return A});
if(c>=0){R=!1;var d=Wj(Y.pricingOptions,c),V=void 0;H[Y.groupId]={productId:Y.productId,pricingOptionIndex:c,pricingGroupAttributes:(V=d)==null?void 0:V.pricingGroupAttributes}}}R&&y.length&&(R=Wj(y[0].pricingOptions,0),H[y[0].groupId]={productId:y[0].productId,pricingOptionIndex:0,pricingGroupAttributes:R==null?void 0:R.pricingGroupAttributes});return H}),G=U1([l],function(H){return new Map(H.map(function(y){return[y.productId,
y]}))}),u=U1([l],function(H){var y=new Map;
H=_.D(H);for(var f=H.next();!f.done;f=H.next()){var R=f.value;f=R.groupId;var F=R.productId;R=_.D(nX(R.pricingOptions));for(var Y=R.next();!Y.done;Y=R.next()){var c=_.D(Y.value);Y=c.next().value;c=c.next().value;y.set(c.pricingOptionId,{groupId:f,productId:F,index:Y,pricingOption:c,pricingGroupAttributes:c.pricingGroupAttributes})}}return y}),Z=U1([l],function(H){var y=new Map;
H=_.D(H);for(var f=H.next();!f.done;f=H.next()){var R=f.value;f=R.groupId;var F=R.productId,Y=void 0;R=_.D(nX((Y=R.pricingGroups)!=null?Y:[]));for(Y=R.next();!Y.done;Y=R.next()){var c=_.D(Y.value);Y=c.next().value;c=c.next().value;y.set(c.pricingGroupId,{groupId:f,productId:F,index:Y,pricingGroup:c,pricingGroupAttributes:c.pricingGroupAttributes})}}return y});
return{getProductById:v,isProductSelected:function(H){var y=v(H);if(!y)return!1;var f;return((f=g()[y.groupId])==null?void 0:f.productId)===H},
getSelectedPricingOptions:function(){return Object.values(g()).map(function(H){var y=H.productId;H=H.pricingOptionIndex;return Wj(v(y).pricingOptions,H)})},
getSelectedPricingGroupAttributesByGroupId:function(H){var y;return(H=(y=g()[H])==null?void 0:y.pricingGroupAttributes)?Array.from(H):void 0},
getSelectedProductByGroupId:function(H){var y;return(H=(y=g()[H])==null?void 0:y.productId)?v(H):void 0},
onProductSelected:function(H){var y=v(H);if(y){var f=g(),R;if(((R=f[y.groupId])==null?void 0:R.productId)!==H){var F=(R=(F=f[y.groupId])==null?void 0:F.productId)?v(R):void 0;var Y;R=(Y=f[y.groupId])==null?void 0:Y.pricingGroupAttributes;var c;Y=(c=f[y.groupId])==null?void 0:c.pricingOptionIndex;if(F&&R&&Y!==void 0){c=x(F,R).indexOf(Y);if(c===-1)throw Error("Qj`"+Y+"`"+F.productId);Y=x(y,R);c=c<Y.length?Y[c]:Y.length>0?Y[0]:0}else c=0;az(y.pricingOptions)<=c&&(c=0);Y=Wj(y.pricingOptions,c);var d;
F={};M(Object.assign({},f,(F[y.groupId]={productId:H,pricingOptionIndex:c,pricingGroupAttributes:(d=Y==null?void 0:Y.pricingGroupAttributes)!=null?d:[]},F)))}}},
onPricingOptionSelected:function(H){var y=u().get(H);if(y){H=y.groupId;var f=y.productId;y=y.index;var R=g(),F,Y;if(((F=R[H])==null?void 0:F.productId)!==f||((Y=R[H])==null?void 0:Y.pricingOptionIndex)!==y){var c,d;F={};M(Object.assign({},R,(F[H]={productId:f,pricingOptionIndex:y,pricingGroupAttributes:(d=(c=R[H])==null?void 0:c.pricingGroupAttributes)!=null?d:[]},F)))}}},
onPricingGroupSelected:function(H){var y=Z().get(H);if(y){H=y.groupId;var f=y.productId,R=y.pricingGroup.pricingGroupAttributes,F=v(f);if(F){y=g();var Y=y[H].pricingGroupAttributes,c;if(((c=y[H])==null?void 0:c.productId)!==f||!LX(tcy(Y,az(R)),R)){c=Array.from(R);for(R=az(R);R<az(Y);R++){var d="",V=!1,A=Array.from(c);A.push(Wj(Y,R));for(var W=_.D(F.pricingGroups),L=W.next();!L.done;L=W.next())if(L=L.value,LX(L.pricingGroupAttributes,A)){c.push(Wj(Y,R));V=!0;break}else d===""&&az(L.pricingGroupAttributes)===
A.length&&LX(tcy(L.pricingGroupAttributes,c.length),c)&&(d=Wj(L.pricingGroupAttributes,R));V||c.push(d)}d=y[H].pricingOptionIndex;R=[];V=new Map;A=0;F=_.D(nX(F.pricingOptions));for(W=F.next();!W.done;W=F.next())L=_.D(W.value),W=L.next().value,L=L.next().value,LX(L.pricingGroupAttributes,c)&&R.push(W),LX(L.pricingGroupAttributes,Y)&&V.set(W,A++);R.length===0?Y=0:(Y=V.get(d),Y=Y!==void 0&&Y<R.length?R[Y]:R[0]);F={};M(Object.assign({},y,(F[H]={productId:f,pricingOptionIndex:Y,pricingGroupAttributes:c},
F)))}}}},
onClearGroupSelected:function(H){var y=g();y[H]&&(y=Object.fromEntries(Object.entries(y).filter(function(f){return _.D(f).next().value!==H})),M(y))}}};
nX=function(z){return function I(){var b,v,M,x,g;return _.E2(I,function(G){switch(G.nextAddress){case 1:_.tt(G,2),b=0,v=_.D(z),M=v.next();case 4:if(M.done){G.jumpTo(2);break}x=M.value;g=_.u9;return G.yield([b++,x],7);case 7:g(G.yieldResult);M=v.next();G.jumpTo(4);break;case 2:_.K4(G),_.B0(G,0)}})}()};
KZ8=function(z,l){z=_.D(nX(z));for(var I=z.next();!I.done;I=z.next()){var b=_.D(I.value);I=b.next().value;b=b.next().value;if(l(b))return I}return-1};
az=function(z){var l=0;for(z=z[Symbol.iterator]();!z.next().done;)++l;return l};
Wj=function(z,l){z=_.D(nX(z));for(var I=z.next();!I.done;I=z.next()){var b=_.D(I.value);I=b.next().value;b=b.next().value;if(I===l)return b}};
LX=function(z,l){if(!z&&!l)return!0;if(!z||!l)return!1;z=Array.from(z);l=Array.from(l);if(z.length!==l.length)return!1;for(var I=0;I<z.length;I++)if(z[I]!==l[I])return!1;return!0};
tcy=function(z,l){l=l===void 0?Infinity:l;var I=[];z=_.D(nX(z));for(var b=z.next();!b.done;b=z.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;if(b>=l)break;b>=0&&I.push(v)}return I};
U1=function(z,l){var I,b;return function(){for(var v=z.map(function(x){return x()}),M=0;M<v.length;M++)if(!I||v[M]!==I[M]){I=v;
b=l.apply(null,_.ht(v));break}return b}};
XVF=function(z,l,I){var b=[];z=_.D(z);for(var v=z.next();!v.done;v=z.next()){v=v.value;var M=void 0;((M=l)==null?0:M.length)&&!LX(v.pricingGroupAttributes,l)||b.push({pricingOption:v,isSelected:I.includes(v.pricingOptionId)})}return b};
qI8=function(z,l){return _.Cc(z.entities,"pdpStateEntity",l)};
iGs=function(z){var l,I;return!!(z.productId&&z.groupId&&((l=z.pricingOptions)==null?0:l.length)&&z.pricingOptions.every(function(b){return b.pricingOptionId})&&((I=z.pricingGroups)==null||!I.length||Array.isArray(z.pricingGroups)&&z.pricingGroups.every(function(b){return b.pricingGroupId&&b.pricingGroupAttributes&&b.pricingGroupAttributes.length>0})))};
FZF=function(z,l,I){return Bk8(z,U1([l],function(b){return b.filter(iGs)}),I)};
Q3F=function(z){var l=void 0,I;for(I in z)if(z.hasOwnProperty(I)){l=I;break}return l};
YIF=function(z,l){return l.length===0?[z]:[z.slice(0,l[0]),z.slice(l[0])].filter(function(I){return I.length>0})};
Tk8=function(z){switch(z){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""}};
SIX=function(z,l,I,b){b=Object.assign({},b);_.rZ(b,cE4,{selectedOptionId:z,primaryButtonOverride:I});_.M8().dispatch(_.cU("flowStateEntity",l,b))};
dBq=function(z){switch(z){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"}};
osy=function(z){switch(z){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"}};
PfS=function(z,l){l.includes(z)?l=l.filter(function(I){return I!==z}):l.push(z);
return[].concat(_.ht(l))};
hMK=function(z,l){return _.Cc(z.entities,"contextNoteFeedEntityPayload",l)};
s3l=function(z,l){switch(z){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return l==null?void 0:l.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return l==null?void 0:l.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return l==null?void 0:l.ratingNotHelpfulText}};
rE0=function(z,l){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:z.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:z.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:z.deleteDialogTitle}]},dialogMessages:[{runs:[{text:z.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:z.deleteActionText}]},command:{performCommentActionEndpoint:{action:l}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:z.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
$By=function(z,l,I){var b;if(z&&((b=l())==null?0:b.includes(z))){var v;I((v=l())==null?void 0:v.filter(function(M){return M!==z}))}else I([].concat(_.ht(l()||[]),[z]))};
wVX=function(z,l){if(z){var I=[];l=_.D((l==null?void 0:l.checkboxes)||[]);for(var b=l.next();!b.done;b=l.next()){b=_.k(b.value,eM4);var v=void 0;((v=b)==null?0:v.value)&&z.includes(b.key||"")&&I.push(b.value)}return I}};
AEK=function(z){z.style.height="auto";z.style.height=z.scrollHeight+"px"};
WZ1=function(z){return[z.syncStep,z.asyncStep].filter(function(l){return l!==void 0})};
LZc=function(z){var l,I,b;if(z=(l=z.structuredContextNoteFormSchema)==null?void 0:(I=l.fieldSchemas)==null?void 0:(b=I.noteBody)==null?void 0:b.validationSchema)for(l=_.D(WZ1(z)),I=l.next();!I.done;I=l.next()){I=I.value.rules;if(!I)break;I=_.D(I);for(I=I.next();!I.done;I=I.next())return _.k(I.value,_.nsc)}};
aQ0=function(z){if(z){z=_.D(WZ1(z));for(var l=z.next();!l.done;l=z.next()){l=l.value.rules;if(!l)break;l=_.D(l);for(l=l.next();!l.done;l=l.next())return _.k(l.value,UBc)}}};
j34=function(z){if(z){z=_.D(WZ1(z));for(var l=z.next();!l.done;l=z.next()){l=l.value.rules;if(!l)break;l=_.D(l);for(l=l.next();!l.done;l=l.next())return _.k(l.value,VcF)}}};
JEc=function(z){z=/^https?:\/\//.test(z)?z:"http://"+z;try{var l=_.UA(z)}catch(I){return!1}if(l.toString()!==z)return!1;z=l.JSC$10032_domain_.split(".");return z.length>1&&z.every(function(I){return!!I})};
znl=function(z,l,I,b){var v;b=(v=b.structuredContextNoteData)==null?void 0:v.createCommentEndpoint;if(v=_.k(b,_.$1_))return v.commentText=_.lc(z),v.videoPositionMention=l,v.sources=I,b};
lrS=function(z){return z==null?void 0:z.stringValue};
bp1=function(z,l,I){z=z.map(function(b,v){return{listItemViewModel:{title:b.title,subtitle:b.subtitle,leadingImage:b.leadingImage,trailingImage:v===l?Irc:void 0,rendererContext:{commandContext:{onTap:b.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:z}}})};
v8X=function(z,l){if(z&&l)switch(l){case "SELECTION_TYPE_BOOL":return z.boolValue;case "SELECTION_TYPE_INT":return z.intValue;case "SELECTION_TYPE_STRING":return z.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return z.privacyStatusValue}};
M88=function(z){var l;z=(l=z.options)==null?void 0:l.findIndex(function(I){return I.isSelected});
return z===void 0?-1:z};
pd8=function(z,l,I){var b=function(){return z().label},v={},M=_.m9("ytDropdownViewModelLabel",(v.ytDropdownViewModelLabelError=l,v));
return _.N(_.E,{cond:function(){return z().label&&!(I()===-1&&z().label&&!z().placeholderText)},
then:function(){return _.N("div",{class:M},_.N(_.Rf,{text:b}))}})};
DWc=function(z,l){var I={};I=_.m9("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return l()===-1},I));
return _.N("div",{class:I},_.N(_.Rf,{text:function(){var b=z();var v=l();if(v===-1)b=b.placeholderText?b.placeholderText:b.label;else{var M,x;b=(M=b.options)==null?void 0:(x=M[v])==null?void 0:x.title}return b}}))};
xWK=function(z,l){var I=function(){return z().hint};
return _.N(_.xP,null,_.N(_.E,{cond:function(){return I()&&!l()},
then:function(){return _.N("div",{class:_.m9("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.N(_.Rf,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.N(_.E,{cond:l,
then:function(){return _.N("div",{id:"dropdown-view-model-error",role:"alert",class:_.m9("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.N(_.qt,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.N(_.Rf,{text:l,className:"ytDropdownViewModelSupportText"}))}}))};
OpK=function(z,l){var I=_.pG().resolve(_.f4S);_.Sm(function(){var b=z().id;b&&I!=null&&I.dropdownMap.set(b,l)})};
G6S=function(z){z=_.k(z.scheduleButton,g8W);z=_.k(z==null?void 0:z.primaryButton,_.N1);z=_.k(z==null?void 0:z.onTap,_.Ax);var l,I,b=((I=_.k(z,_.yi))==null?void 0:I.commands)||[z];I=_.D(b);for(z=I.next();!z.done&&!(l=_.k(z.value,_.eUM));z=I.next());var v;l=(v=l)==null?void 0:v.createBroadcastRequest;if(!l)throw Error("Xj");return l};
Zpl=function(z,l,I){I=I===void 0?{}:I;var b,v;return _.O(function(M){if(b=Ni0(l))return M.return(b);(v=E8c(z,l,I))&&uhq(l,v);return M.return(v)})};
uhq=function(z,l){var I=Hpy(z);I&&l.then(function(b){_.pG().resolve(_.PE).put(I,new _.h$({innertubeResponse:b}))})};
Ni0=function(z){if(z=Hpy(z)){var l=_.pG().resolve(_.PE);if(l.has(z))return l.get(z).then(function(I){return I==null?void 0:_.x1(I)})}return null};
Hpy=function(z){var l=_.k(z.endpoint,_.zb);if(l!=null&&l.videoId)return l={videoId:l.videoId},_.C("web_imp_player_mute_params")&&(l.mutedAtStart=z.startPlaybackInMutedState),_.J8("inline_playback",l)};
E8c=function(z,l,I){z=_.I0(z,l.endpoint,yW1(l,I)).then(function(b){return b});
return Promise.resolve(z)};
yW1=function(z,l){l=_.C("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!z.startPlaybackInMutedState},l):Object.assign({},{vis:5,autonav:"1"},l);var I;l={contentPlaybackContext:_.TN(l,(I=_.k(z.endpoint.commandMetadata,_.kB))==null?void 0:I.url,window.location.href)};_.C("web_imp_player_mute_params")&&(l.overrideMutedAtStart=!z.startPlaybackInMutedState);return l};
Rny=function(z,l){var I=window.MutationObserver;I&&(VO=new I(function(b,v){b=_.D(b);for(var M=b.next();!M.done;M=b.next()){M=M.value;var x;if(x=M.type==="childList"&&M.target)a:{x=z;M=frC(M.target);x=frC(x);for(var g=null,G=0;G<M.length;G++)if(x.includes(M[G])){if(G===0){x=!1;break a}g=M[G];break}g?(M=CRy(M,g),x=CRy(x,g),x=M<x):x=!1}if(x){l();v.disconnect();break}}}),(I=k68())&&VO.observe(I,{childList:!0,
subtree:!0}))};
k68=function(){var z=document.getElementsByTagName("ytd-rich-grid-renderer");if(z.length>0)return z[0];z=document.getElementsByTagName("ytd-section-list-renderer");return z.length>0?z[0]:null};
frC=function(z){for(var l=[];z;)l.push(z),z=z.parentElement;return l};
CRy=function(z,l){var I=Array.from(l.children);l=z.indexOf(l);return l>0?I.indexOf(z[l-1]):-1};
jV=function(z,l,I){I=I===void 0?{}:I;return _.mY(z,I,l)};
mWs=function(z){switch(z){case "MUSIC":return!0;default:return!1}};
K5W=function(z){return z==null?void 0:z.filter(function(l){return l.premiereTrailerBadgeRenderer})};
Bi4=function(z){var l,I=z==null?void 0:(l=z.find(function(H){return H.thumbnailOverlayTimeStatusRenderer}))==null?void 0:l.thumbnailOverlayTimeStatusRenderer,b,v;
if((I==null?0:(b=I.icon)==null?0:b.iconType)&&mWs(I==null?void 0:(v=I.icon)==null?void 0:v.iconType)){var M;return{icon:I==null?void 0:(M=I.icon)==null?void 0:M.iconType}}var x,g;var G=(z=(x=z==null?void 0:(G=z.find(function(H){return H.thumbnailBottomOverlayViewModel}))==null?void 0:G.thumbnailBottomOverlayViewModel)==null?void 0:(g=x.badges)==null?void 0:g.find(function(H){var y,f;
return((y=_.k(H,t8q))==null?void 0:(f=y.inlinePlaybackBadgeData)==null?void 0:f.replicateAsTimestamp)===!0}))?_.k(z,t8q):void 0;
if(G==null?0:G.icon){var u,Z;if((G=(u=_.sgY(G==null?void 0:G.icon))==null?void 0:(Z=u.clientResource)==null?void 0:Z.imageName)&&mWs(G))return{icon:G}}return{}};
Y5X=function(z,l){var I=XdS,b=_.D(_.Z_(q5F(new ip4(function(){},I,l)),void 0,"PAnyd")),v=b.next().value,M=b.next().value,x=new ip4(function(g){M(g)},I,l);
_.Te(function(){Promise.resolve().then(function(){var g,G=(g=z())!=null?g:{};x.playerControlsData=G;_.C("player_controls_skip_double_signal_old")&&(x.lastSeenPlayerApi=_.wx(G.playerApi));_.C("player_controls_skip_double_signal_old")||(x.lastSeenPlayerApi=_.wx(G.playerApi));F5y(x)});
_.cb(function(){QwK(x)})},"HikUP");
_.cb(function(){QwK(x)});
return function(){return v()}};
TiS=function(z){return function(l){var I=z(),b={playerState:l};if(l===1){var v;(v=I.playerApi)==null||v.loadModule("captions")}if(l===0){var M;(M=I.playerApi)==null||M.unloadModule("captions")}l!==-1&&I.setState(b)}};
cWs=function(z){return function(l){z().setState({playbackRate:l})}};
S5S=function(z){return function(l){var I=z(),b=I.playerApi,v=b==null?void 0:b.getVideoData(),M=(v==null?void 0:v.isLive)||!1;v=v==null?void 0:v.video_id;M={videoDuration:pV1(b||void 0),isLive:M,videoId:v};M.videoId!==I.videoId&&(M=Object.assign({},_.qgY(b),M));if(l==null?0:l.playertype)M.playerType=l.playertype;if(b){M.captionsAvailable=_.tj(b);l=M;var x;v=(x=b.getStoryboardLevel(b.getNumberOfStoryboardLevels()-1))==null?void 0:x.intervalMs;l.storyboardInterval=v?v/1E3:void 0;M.captionsAvailable&&
(M.captionsEnabled=_.G3C(b))}M.volumeMuted=!(b==null||!b.isMuted());I.setState(M)}};
dW1=function(z){return function(l){var I=z(),b=I.playerApi;if(b){var v=b.getPresentingPlayerType();l={playedTime:l||0,percentLoaded:b.getVideoLoadedFraction(),playerType:v};I.playerState===0&&(l.playedTime=I.videoDuration);I.isLive&&(v=b.getProgressState(v),l.playedTime-=v.seekableStart,l.videoDuration=pV1(b));if(I.playerType===1)b=!1;else{var M;if((M=I.uxConfig)==null?0:M.showCuedOverlay){var x;b=!((x=I.playerApi)==null?0:x.getPlayerStateObject(I.playerType).isDomPaused)}else b=!0}b&&delete l.playedTime;
I.setState(l)}}};
o8K=function(z){return function(){var l=z(),I,b,v,M={volume:(v=(I=l.playerApi)==null?void 0:I.getVolume())!=null?v:0,volumeMuted:!((b=l.playerApi)==null||!b.isMuted())};l.setState(M)}};
PRc=function(z){return function(){var l=z(),I=l.playerApi;if(I){var b={captionsAvailable:_.tj(I)};b.captionsAvailable&&(b.captionsEnabled=_.G3C(I));l.setState(b)}}};
hnW=function(z){return function(){var l=z();if(l.playerApi&&!(l.volumeMuted||l.controlsVisible&&l.isProbablyAScreenreaderUser)){l.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var I;(I=document.querySelector(".player-control-play-pause-icon"))==null||I.focus()}}};
swK=function(z){return{appApi:Object.assign({},_.kOp(),{showCaptionsToggleToast:function(l){var I,b;(b=(I=z()).showCaptionsToggleToast)==null||b.call(I,l)},
openInMiniplayer:function(){var l,I;(I=(l=z()).openInMiniplayer)==null||I.call(l)}})}};
rW0=function(z,l){var I,b,v;return!!(z==null?0:(I=z.playerResponse)==null?0:(b=I.playerConfig)==null?0:(v=b.inlinePlaybackConfig)==null?0:v.showScrubbingControls)&&!(l==null?0:l.hideScrubbingControls)};
_.$WF=function(z){var l=!z.miniplayerIsActive;return[5,2,0].includes(z.miniplayerPlaybackState)||l};
eny={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};wdF=function(z,l){var I,b,v,M,x;_.O(function(g){if(!l.length)return g.return([]);I=[];b=_.D(l);for(v=b.next();!v.done;v=b.next())M=v.value,(x=z.resolveIcon(M))&&!z.iconCache[x.url]&&I.push(_.I1y(z,x).then(function(){}).catch(function(){}));
return g.return(Promise.all(I))})};
AWq=function(z,l){var I=[];l=(new Set(l)).values();l=_.D(l);for(var b=l.next();!b.done;b=l.next()){b=b.value;for(var v=_.D(Object.values(eny)),M=v.next();!M.done;M=v.next())I.push({iconName:b,iconStyle:M.value})}wdF(z.iconManager,I)};
_.W5F=function(z,l,I){var b=I!=null?I:z.iconsToFetch;b!=null&&b.length?l!==void 0&&l>=0?_.qA(_.ow,function(){AWq(z,b)},l):AWq(z,b):Promise.resolve()};
n8S={sharedUi:_.lu4,a11y:_.JZw,entities:{}};L50=function(){return _.GZ({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
ip4=function(z,l,I){var b=this;this.renderFn=z;this.listeners=l;this.context=I;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var v;this.lastSeenPlayerApi=_.wx((v=this.playerControlsData)==null?void 0:v.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.qgY(),void 0);_.C("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){q5F(b).setState({playerState:-1});b.resetRecentlyNavigatedJobId&&_.ow.cancelJob(b.resetRecentlyNavigatedJobId);
b.recentlyNavigated=!0;b.resetRecentlyNavigatedJobId=_.ow.addJob(function(){b.recentlyNavigated=!1},8,1E4)})};
ip4.prototype.setState=function(z){if(!_.C("mweb_player_skip_no_op_state_changes")||!DBK(z,this.state))if(this.state=Object.assign({},this.state,z),!_.C("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)z=-1,_.C("player_controls_log_creation_killswitch")||xBq()||(z=(0,_.Dr)()),_.sK("pcu_s"),_.sK("pcu_se"),_.sK("pcu_rs"),this.renderFn(q5F(this)),_.sK("pcu_re"),OGK(z),_.ow.addJob(function(){_.sK("pcu_ap")},8)};
var q5F=function(z){var l;var I=_.wx((l=z.playerControlsData)==null?void 0:l.playerApi);return Object.assign({},z.state,{setState:z.boundSetState,domMeasurements:{progressBarLineRect:z.progressBarLineRect},playerApi:I,appApi:z.context.appApi,playerContainer:z.context.playerContainer,playerControlContainer:z.context.playerControlContainer,uxConfig:z.context.uxConfig})},F5y=function(z){z.listeners.forEach(function(l){z.eventListenerCleanupFunctions.push(l.register(function(){return q5F(z)},function(){return z.getData()}))})},
QwK=function(z){z.eventListenerCleanupFunctions.forEach(function(l){l()});
z.eventListenerCleanupFunctions.length=0};
ip4.prototype.getData=function(){return this.playerControlsData};
var UWq=new _.Z0("crowdsourcedContextUserRatingFormFlowState");var arK=new _.Z0("noteViewModel");var Jj=new _.Z0("abuseReportFlowState");var V80=new _.Z0("feedbackFormFlowState");var jws=new _.Z0("inputBoxViewModel");var JWK=new _.Z0("flowNextStepCommand");var zq8=new _.Z0("flowPrevStepCommand");var lxs=new _.Z0("updateFlowCommand");_.IxS=new _.Z0("flowStepRenderer");_.nsc=new _.Z0("lengthValidationRule");var UBc=new _.Z0("regexValidationRule");var VcF=new _.Z0("selectedValidationRule");var b2y=new _.Z0("talkToRecsViewModel");var v7W=new _.Z0("creatorGoalSetUpFlowDropdownItemViewModel");var MX0=new _.Z0("creatorGoalSetUpFlowDropdownViewModel");var t8q=new _.Z0("thumbnailBadgeViewModel");var pW1=new _.Z0("checkboxGroupViewModel");var eM4=new _.Z0("checkboxItemViewModel");_.zi=new _.Z0("radioButtonGroupViewModel");var DAF=new _.Z0("radioButtonItemViewModel");var g8W=new _.Z0("panelFooterViewModel");var xAy=new _.Z0("ypcCancelRecurrenceCommand");var O2l=new _.Z0("cancellationFlowState");var cE4=new _.Z0("premiumPurchaseFlowState");var g7K=new _.Z0("surveyAnswerCardRenderer");var GuX=new _.Z0("showMoreButtonRenderer");var NE4;var E7C,uLS=function(){if(E7C!==void 0)return E7C;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;NE4===void 0&&(NE4=document.createElement("template"));var b=NE4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return E7C=z};var lj=function(){var z=_.q.apply(this,arguments)||this;z.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";z.goalDescription="";z.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";z.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";z.startButtonId="start-button";z.exampleButtonId="example-button";return z};
_.m(lj,_.q);_.p=lj.prototype;_.p.getGoalDropdownItems=function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.purchaseTargetDropdown,MX0))==null?void 0:l.dropdownItems};
_.p.getTimerDropdownItems=function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.timerDropdown,MX0))==null?void 0:l.dropdownItems};
_.p.getColorDropdownItems=function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.colorDropdown,MX0))==null?void 0:l.dropdownItems};
_.p.getDropdownItemText=function(z){var l;return(l=_.k(z,v7W))==null?void 0:l.itemLabel};
_.p.getDropdownItemValue=function(z){z=_.k(z,v7W);return(z==null?void 0:z.timeLimit)||(z==null?void 0:z.purchaseTarget)||(z==null?void 0:z.eligiblePurchaseType)};
_.p.updateFlowState=function(z){_.Gb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:z}])};
_.p.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.p.updateGoalValue=function(z){this.goal=z.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.p.onTextValueChanged=function(z){this.goalDescription=z.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.p.updateTimerValue=function(z){this.timer=z.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.p.updateTierValue=function(z){this.tier=z.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.p.getButtonViewModel=function(z){z=(z==null?void 0:z.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var l,I=_.k((l=this.data)==null?void 0:l.startGoalButton,_.N1);return Object.assign({},I,{state:z})};
_.vP.Object.defineProperties(lj,{template:{configurable:!0,enumerable:!0,get:function(){return uLS()}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],lj.prototype,"goal",void 0);_.e([_.X(),_.w("design:type",Object)],lj.prototype,"goalDescription",void 0);_.e([_.X(),_.w("design:type",Object)],lj.prototype,"timer",void 0);_.e([_.X(),_.w("design:type",Object)],lj.prototype,"tier",void 0);
_.e([_.X(),_.w("design:type",Object)],lj.prototype,"startButtonId",void 0);_.e([_.X(),_.w("design:type",Object)],lj.prototype,"exampleButtonId",void 0);_.e([_.Wy({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],lj);_.r(lj,"yt-creator-goal-set-up-flow-view-model",function(){return uLS()},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var Z28;Z28=Object.assign({},{continuation:_.Iu_,download:_.VqI,canvas:_.ux1,reportChannelAbuse:_.xnu,ui:_.n$Q,share:_.O6u,talkToRecs:_.GB_,watch:_.pq,ypc:_.yU_,radioButtonGroup:_.Nlt,collabInviteLink:_.g$Q},n8S,{voiceSearch:_.ah5,shorts:_.MG});_.IG=_.$l(Z28);_.H24=_.eO(_.IG);var yKC;var fxq;var C_F;var kuK=function(){return _.q.apply(this,arguments)||this};
_.m(kuK,_.q);_.e([_.X(),_.w("design:type",Object)],kuK.prototype,"data",void 0);_.e([_.Wy({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],kuK);
_.r(kuK,"yt-survey-answer-card-renderer",function(){if(C_F===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;fxq===void 0&&(fxq=document.createElement("template"));var b=fxq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);C_F=z}z=C_F;return z},{mode:2});var RqS;var mA0;var bj=function(){return _.q.apply(this,arguments)||this};
_.m(bj,_.q);_.p=bj.prototype;_.p.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.p.selectedItemChanged=function(z){_.Gb(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[z.feedbackToken||""]}])};
_.p.surveyAnswerCardRendererClicked=function(z){if(z.target&&_.k(z.model.item,g7K)){var l=z.target;z=_.k(z.model.item,g7K);z.onTapCommand?_.ZE(l,[z.onTapCommand],l):this.data.onTapCommand&&_.ZE(l,[this.data.onTapCommand],l);this.selectedItemChanged(z)}};
_.p.checkIsCancellationStyle=function(z){return z==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.p.updateSelectedItemFromBinding=function(z){this.selectedItem=z.detail.value};
bj.prototype.onSelectedItemChanged=bj.prototype.onSelectedItemChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],bj.prototype,"selectedItem",void 0);_.e([_.X({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.w("design:type",Boolean)],bj.prototype,"isCancellationStyle",void 0);
_.e([_.By("selectedItem"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bj.prototype,"onSelectedItemChanged",null);_.e([_.Wy({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],bj);
_.r(bj,"yt-survey-flow-step-renderer",function(){if(mA0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;RqS===void 0&&(RqS=document.createElement("template"));var b=RqS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);mA0=z}z=mA0;return z},{mode:2});var v5=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return z};
_.m(v5,_.q);v5.prototype.handleSurveyFlowStepOptionChanged=function(z){this.ytdReduxBehavior.dispatch(_.GZ({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:z}));_.Gb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:z}}])};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],v5.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],v5.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],v5.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],v5);
_.r(v5,"ytd-survey-flow-step-renderer",function(){if(yKC!==void 0)return yKC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yKC=z},{mode:1});_.XWs=_.P(function(z){var l=z.data;var I=z.hideDivider;var b=z.isChannelInfoCard;z={};return _.N("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.N("div",{class:_.m9("yt-profile-identity-info-view-model__frame",(z["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!l().channelBanner},z))},_.N(KgK,{profileIdentityInfoData:l}),_.N("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.N("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz})),_.N(tXW,{profileIdentityInfoData:l})),_.N(_.E,{cond:function(){return l().channelDescription},
then:function(v){var M={};return _.N("div",{class:_.m9((M["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(b==null||!b())},M["yt-profile-identity-info-view-model__channel-description"]=function(){return!(b==null?0:b())},M))},v)}}),_.N(BEc,{profileIdentityInfoData:l}),_.N(_.E,{cond:function(){return!(I==null?0:I())},
then:function(){return _.N("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Jf");
_.XWs.idomCompat=!0;var BEc=_.P(function(z){var l=z.profileIdentityInfoData;return _.N("div",{class:"yt-profile-identity-info-view-model__buttons"},_.N(_.qy,{each:function(){return l().subscribeButton?[l().subscribeButton,l().channelAccess]:[l().channelAccess]}},function(I){return _.N("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.N("div",{class:"yt-profile-identity-info-view-model--button"},_.N(_.TS,{data:function(){return I}},{buttonViewModel:_.h4,
subscribeButtonViewModel:_.py})))}))},"Kf"),tXW=_.P(function(z){var l=z.profileIdentityInfoData;
return _.N("div",{class:"yt-profile-identity-info-view-model__trio"},_.N("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.N(qNX,{profileIdentityInfoData:l}),_.N(_.TS,{data:function(){return l().threeDotMenu}},{buttonViewModel:_.h4})),_.N(i2q,{profileIdentityInfoData:l}))},"Lf"),qNX=_.P(function(z){var l=z.profileIdentityInfoData;
return _.N("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.N("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return l().channelDisplayName}),_.N(_.E,{cond:function(){return l().verifiedOrOacBadge},
then:function(I){return _.N("div",{class:"yt-profile-identity-info-view-model__badge"},_.N(_.pK,{data:function(){return{thumbnails:[{url:I().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Mf"),KgK=_.P(function(z){var l=z.profileIdentityInfoData;
return _.N("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.N(_.TS,{data:function(){var I=l().channelBanner;if(I)return{imageBannerViewModel:{image:I.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(I){return _.N("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.N(_.ZN,{data:I.data,
isPositionRelative:!0}))}}))},"Nf"),i2q=_.P(function(z){var l=z.profileIdentityInfoData;
return _.N("div",{class:"yt-profile-identity-info-view-model__metadata"},_.N("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.N("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return l().channelHandle}),_.N(_.E,{cond:function(){return l().channelPronouns&&l().channelHandle},
then:function(){return _.N("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.N("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return l().channelPronouns})),_.N("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.N("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return l().leftOfBulletInfo}),_.N(_.E,{cond:function(){return l().leftOfBulletInfo&&l().rightOfBulletInfo},
then:function(){return _.N("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.N("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return l().rightOfBulletInfo})))},"Of");var Fgc;var MU=function(){return _.q.apply(this,arguments)||this};
_.m(MU,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],MU.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],MU.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],MU);
_.r(MU,"ytd-channel-history-renderer",function(){if(Fgc!==void 0)return Fgc;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Fgc=z},{mode:1});var QyW;var YNX=function(){return _.q.apply(this,arguments)||this};
_.m(YNX,_.q);_.e([_.X(),_.w("design:type",Object)],YNX.prototype,"data",void 0);_.e([_.S({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],YNX);
_.r(YNX,"ytd-feature-enablement-info-renderer",function(){if(QyW!==void 0)return QyW;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return QyW=z},{mode:1});var TES;var cK1;var p8=function(){var z=_.q.apply(this,arguments)||this;z.textBoxMaxLength=_.C("enable_tvod_campaign_code_integration")?15:12;return z};
_.m(p8,_.q);_.p=p8.prototype;_.p.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.p.onSubmit=function(){var z=this.data.serviceEndpoint,l=_.k(z,_.Ma);l&&z&&(l.couponCode=this.userInput,_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}}))};
_.p.validate=function(){var z=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=z&&!this.data.errorMessage;this.showErrorMessage=z&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.C("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.p.computeStyle=function(z){return z};
_.p.computeShowValidationBelowInput=function(z){return z!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.p.updateUserInputFromBinding=function(z){this.userInput=z.currentTarget.value};
_.p.updateShowErrorMessageFromBinding=function(z){this.showErrorMessage=z.detail.value};
_.vP.Object.defineProperties(p8.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
p8.prototype.dataChanged=p8.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],p8.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],p8.prototype,"userInput",void 0);_.e([_.X(),_.w("design:type",Boolean)],p8.prototype,"disableApplyButton",void 0);_.e([_.X(),_.w("design:type",Boolean)],p8.prototype,"hideApplyButton",void 0);
_.e([_.X(),_.w("design:type",Boolean)],p8.prototype,"hideErrorMessage",void 0);_.e([_.X(),_.w("design:type",Boolean)],p8.prototype,"showTick",void 0);_.e([_.X(),_.w("design:type",Boolean)],p8.prototype,"showErrorMessage",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],p8.prototype,"couponStyle",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.w("design:type",Boolean)],p8.prototype,"showValidationBelowInput",void 0);_.e([_.X(),_.w("design:type",Object)],p8.prototype,"textBoxMaxLength",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],p8.prototype,"dataChanged",null);
_.e([_.B("showTick","showErrorMessage","userInput"),_.w("design:type",String),_.w("design:paramtypes",[])],p8.prototype,"validationState",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],p8);
_.r(p8,"ytd-ypc-coupon-renderer",function(){if(cK1!==void 0)return cK1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return cK1=z},{mode:1});var DO=function(){return _.q.apply(this,arguments)||this};
_.m(DO,_.q);DO.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"}}}};
DO.prototype.computeStyle=function(z){return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],DO.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],DO.prototype,"buttonStyle",void 0);_.e([_.S({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],DO);
_.r(DO,"ytd-flow-bottom-bar-renderer",function(){if(TES!==void 0)return TES;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return TES=z},{mode:1});var SNK;var dAq;var o7q;var x3=function(){return _.q.apply(this,arguments)||this};
_.m(x3,_.q);x3.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
x3.prototype.focus=function(z){this.title&&_.j8(this.title,z)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],x3.prototype,"data",void 0);_.e([_.qX("#title"),_.w("design:type",HTMLElement)],x3.prototype,"title",void 0);_.e([_.S({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],x3);
_.r(x3,"ytd-flow-top-bar-renderer",function(){if(o7q!==void 0)return o7q;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return o7q=z},{mode:1});var P_y;var hqq;var sy4;var OT=function(){return _.q.apply(this,arguments)||this};
_.m(OT,_.q);OT.prototype.freeTextValueChanged=function(){_.Gb(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
OT.prototype.updateFreeTextValueFromBinding=function(z){this.freeTextValue=z.detail.value};
_.vP.Object.defineProperties(OT.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(l=(z=this.data)==null?void 0:z.responseMaxLength)!=null?l:500,b;return((b=this.freeTextValue)!=null?b:"").length>=I?"maxed-out":""}}});
OT.prototype.freeTextValueChanged=OT.prototype.freeTextValueChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],OT.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],OT.prototype,"freeTextValue",void 0);_.e([_.qX("#user-input"),_.w("design:type",HTMLTextAreaElement)],OT.prototype,"input",void 0);
_.e([_.B("freeTextValue"),_.w("design:type",Object),_.w("design:paramtypes",[])],OT.prototype,"characterLimitClass",null);_.e([_.By("freeTextValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OT.prototype,"freeTextValueChanged",null);_.e([_.Wy({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],OT);
_.r(OT,"yt-free-text-input-flow-step-renderer",function(){if(sy4===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;hqq===void 0&&(hqq=document.createElement("template"));var b=hqq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);sy4=z}z=sy4;return z},{mode:2});var g6=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return z};
_.m(g6,_.q);g6.prototype.handleFreeTextFlowStepInputChanged=function(z){_.Gb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:z}}])};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],g6.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],g6.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],g6.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],g6);
_.r(g6,"ytd-free-text-input-flow-step-renderer",function(){if(P_y!==void 0)return P_y;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return P_y=z},{mode:1});var rK4;var $Al;var eqF=function(){return _.q.apply(this,arguments)||this};
_.m(eqF,_.q);_.e([_.X(),_.w("design:type",Object)],eqF.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],eqF);
_.r(eqF,"ytd-metadata-line-renderer",function(){if($Al!==void 0)return $Al;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $Al=z},{mode:1});var Gi=function(){return _.q.apply(this,arguments)||this};
_.m(Gi,_.q);Gi.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Gi.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Gi.prototype,"isMasthead",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Gi);
_.r(Gi,"ytd-media-product-renderer",function(){if(rK4!==void 0)return rK4;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return rK4=z},{mode:1});var wWs;var NU=function(){return _.q.apply(this,arguments)||this};
_.m(NU,_.q);NU.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
NU.prototype.onBillboardImageLoaded=function(){_.gC(this.hostElement,"yt-refit")};
NU.prototype.onBillboardImageLoaded=NU.prototype.onBillboardImageLoaded;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],NU.prototype,"data",void 0);_.e([_.qX("#billboardImage"),_.w("design:type",Object)],NU.prototype,"billboardImage",void 0);_.e([_.tP("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NU.prototype,"onBillboardImageLoaded",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],NU);
_.r(NU,"ytd-billboard-masthead-renderer",function(){if(wWs!==void 0)return wWs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return wWs=z},{mode:1});var AK4;var ET=function(){var z=_.q.apply(this,arguments)||this;z.smallSize=!1;return z};
_.m(ET,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ET.prototype,"ytComponentBehaviorType",void 0);_.e([_.X(),_.w("design:type",Object)],ET.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ET.prototype,"smallSize",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],ET);
_.r(ET,"ytd-bullet-formatted-string",function(){if(AK4!==void 0)return AK4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return AK4=z},{mode:1});var WgS;var uj=function(){return _.q.apply(this,arguments)||this};
_.m(uj,_.q);uj.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uj.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],uj);
_.r(uj,"ytd-offer-detail-renderer",function(){if(WgS!==void 0)return WgS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return WgS=z},{mode:1});var n70;var ZO=function(){return _.q.apply(this,arguments)||this};
_.m(ZO,_.q);ZO.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ZO.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],ZO);
_.r(ZO,"ytd-offer-detail-step-renderer",function(){if(n70!==void 0)return n70;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return n70=z},{mode:1});var Lg8;var H5=function(){var z=_.q.apply(this,arguments)||this;z.isInOfferModule=!1;return z};
_.m(H5,_.q);_.p=H5.prototype;_.p.computeHasEndpoint=function(){var z;return!((z=this.data)==null||!z.onClickCommand)};
_.p.dataChanged=function(){var z;if((z=this.data)==null?0:z.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")};
_.p.detached=function(){var z;if((z=this.data)==null?0:z.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.p.handleClickEvent=function(){var z;if((z=this.data)==null?0:z.onClickCommand){var l;this.componentBehavior.resolveCommand((l=this.data)==null?void 0:l.onClickCommand)}};
_.p.onContentKeyDown=function(z){z.key==="Enter"?this.handleClickEvent(z):z.key===" "&&z.preventDefault()};
_.p.onContentKeyUp=function(z){z.key===" "&&this.handleClickEvent(z)};
H5.prototype.dataChanged=H5.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],H5.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],H5.prototype,"data",void 0);_.e([_.X({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],H5.prototype,"hasEndpoint",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],H5.prototype,"isInOfferModule",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H5.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],H5);
_.r(H5,"ytd-channel-masthead-renderer",function(){if(Lg8!==void 0)return Lg8;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Lg8=z},{mode:1});var UAq;var yx=function(){var z=_.q.apply(this,arguments)||this;z.thumbnailObjectFit="CONTAIN";z.thumbnailObjectPosition="LEFT";z.isExpanded=!1;return z};
_.m(yx,_.q);_.p=yx.prototype;_.p.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.p.dataChanged=function(){this.resetStates()};
_.p.computeisTapOnOfferInfoContainerEnabled=function(){var z;return((z=this.data)==null?void 0:z.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.p.onExpandBtnClick=function(){var z,l=_.k((z=this.data)==null?void 0:z.showMoreButtonRenderer,GuX);l&&_.sE(_.iY(),l.trackingParams);this.isExpanded=!this.isExpanded};
_.p.onOfferInfoClick=function(z){this.isTapOnOfferInfoContainerEnabled&&(_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.xU(_.MX(z)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.p.onBottomBarClick=function(){this.executeTapCommand()};
_.p.executeTapCommand=function(){var z,l=(z=this.data)==null?void 0:z.tapCommand;l&&this.ytComponentBehavior.resolveCommand(l)};
_.p.resetStates=function(){this.isExpanded=!1};
_.vP.Object.defineProperties(yx.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var z=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),l,I,b;return((l=this.data)==null?void 0:l.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&z&&!!((I=this.data)==null?0:(b=I.benefits)==null?0:b.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((l=_.k((z=this.data)==null?void 0:z.showMoreButtonRenderer,GuX))==null?void 0:l.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((l=_.k((z=this.data)==null?void 0:z.showMoreButtonRenderer,GuX))==null?void 0:l.showLessButtonTitle)||((I=this.data)==null?void 0:I.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var z;return(z=this.showLessButtonTitle)!=null?z:""}var l;return(l=this.showMoreButtonTitle)!=null?l:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?void 0:z.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((l=this.data)==null?0:l.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
yx.prototype.dataChanged=yx.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],yx.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",String)],yx.prototype,"thumbnailObjectFit",void 0);
_.e([_.X(),_.w("design:type",String)],yx.prototype,"thumbnailObjectPosition",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.w("design:type",Boolean)],yx.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.e([_.X(),_.w("design:type",Object)],yx.prototype,"isExpanded",void 0);_.e([_.X(),_.w("design:type",Object)],yx.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.footerIcon)"}),_.w("design:type",String)],yx.prototype,"icon",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yx.prototype,"dataChanged",null);_.e([_.B("data.thumbnail"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yx.prototype,"hasThumbnail",null);_.e([_.B("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yx.prototype,"enableExpandButton",null);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yx.prototype,"enableOfferContentIcon",null);_.e([_.B("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.w("design:type",Object),_.w("design:paramtypes",[])],yx.prototype,"showMoreButtonTitle",null);_.e([_.B("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.w("design:type",Object),_.w("design:paramtypes",[])],yx.prototype,"showLessButtonTitle",null);
_.e([_.B("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.w("design:type",String),_.w("design:paramtypes",[])],yx.prototype,"expandedBtnText",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yx.prototype,"enableBottomBar",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],yx);
_.r(yx,"ytd-offer-card-renderer",function(){if(UAq!==void 0)return UAq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return UAq=z},{mode:1});var axs;var f8=function(){return _.q.apply(this,arguments)||this};
_.m(f8,_.q);f8.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"}}}};
f8.prototype.onClick=function(z){if(!_.DX(z.composedPath()||[],this.hostElement,["A".toString()])){var l,I;if((z=(I=_.k((l=this.data)==null?void 0:l.actionButton,_.xm))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(z)){var b;(b=_.iY())==null||b.clickCommand(z);_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})}}};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],f8.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],f8);
_.r(f8,"ytd-offer-content-renderer",function(){if(axs!==void 0)return axs;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return axs=z},{mode:1});var VXS;var C8=function(){return _.q.apply(this,arguments)||this};
_.m(C8,_.q);C8.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.vP.Object.defineProperties(C8.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.title)||!((l=this.data)==null||!l.description)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],C8.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],C8.prototype,"hasHeaderData",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],C8);
_.r(C8,"ytd-offer-section-renderer",function(){if(VXS!==void 0)return VXS;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return VXS=z},{mode:1});var jyc;var k3=function(){return _.q.apply(this,arguments)||this};
_.m(k3,_.q);
k3.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],k3.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],k3);
_.r(k3,"ytd-offer-selection-step-renderer",function(){if(jyc!==void 0)return jyc;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return jyc=z},{mode:1});var JKs;var RG=function(){return _.q.apply(this,arguments)||this};
_.m(RG,_.q);RG.prototype.computeStyle=function(z){return z};
RG.prototype.computeImageWidth=function(z){return z==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.e([_.X({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.w("design:type",String)],RG.prototype,"containerStyle",void 0);_.e([_.X({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.w("design:type",String)],RG.prototype,"imageWidth",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],RG.prototype,"data",void 0);
_.e([_.S({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],RG);
_.r(RG,"ytd-confirmation-masthead-renderer",function(){if(JKs!==void 0)return JKs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return JKs=z},{mode:1});var ztK;var mP=function(){return _.q.apply(this,arguments)||this};
_.m(mP,_.q);mP.prototype.computeStyle=function(z){return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mP.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.w("design:type",String)],mP.prototype,"containerStyle",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],mP);
_.r(mP,"ytd-purchase-complete-detail-renderer",function(){if(ztK!==void 0)return ztK;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ztK=z},{mode:1});var lAl;var K8=function(){var z=_.q.apply(this,arguments)||this;z.scriptsAppended=!1;return z};
_.m(K8,_.q);K8.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"}}}};
K8.prototype.onDataChanged=function(){var z=this.get("data.gtmId");z&&(_.If(z,_.sZ("GL","")),this.setupConversionTracking())};
K8.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var z=document.createElement("noscript");z.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(z);this.scriptsAppended=!0}};
K8.prototype.onDataChanged=K8.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],K8.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],K8.prototype,"scriptsAppended",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K8.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],K8);
_.r(K8,"ytd-purchase-complete-step-renderer",function(){if(lAl!==void 0)return lAl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return lAl=z},{mode:1});var IAq;var t1=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(t1,_.q);t1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],t1.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],t1.prototype,"darkerDarkTheme",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],t1);
_.r(t1,"ytd-ypc-transaction-error-message-renderer",function(){if(IAq!==void 0)return IAq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return IAq=z},{mode:1});var bsl;var vF1;var B5=function(){var z=_.q.apply(this,arguments)||this;z.handlePhoneVerificationSuccess=function(l){if(z.isValidPhoneVerificationCompletionMessageEvent(l)){var I;((I=z.data)==null?0:I.nextStepCommand)&&z.ytComponentBehavior.resolveCommand(z.data.nextStepCommand)}};
return z};
_.m(B5,_.q);B5.prototype.isValidPhoneVerificationCompletionMessageEvent=function(z){if(z.data!=="yt-phone-verification-complete")return!1;z=_.lf(z.origin);return z!==null&&z.includes("youtube.com")};
B5.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
B5.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],B5.prototype,"data",void 0);_.e([_.Wy({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],B5);
_.r(B5,"yt-feature-enablement-soft-entry-renderer",function(){if(vF1===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;bsl===void 0&&(bsl=document.createElement("template"));var b=bsl;I.call(l,b.content.cloneNode(!0),z.content.firstChild);vF1=z}z=vF1;return z},{mode:1});var MjX;var pCc;var DhK;var xhc;var Osy=function(){return _.q.apply(this,arguments)||this};
_.m(Osy,_.q);_.e([_.X(),_.w("design:type",Object)],Osy.prototype,"data",void 0);_.e([_.Wy({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Osy);
_.r(Osy,"yt-benefits-item-renderer",function(){if(xhc===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;DhK===void 0&&(DhK=document.createElement("template"));var b=DhK;I.call(l,b.content.cloneNode(!0),z.content.firstChild);xhc=z}z=xhc;return z},{mode:2});var gFF;var G10;var Xc=function(){return _.q.apply(this,arguments)||this};
_.m(Xc,_.q);Xc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Xc.prototype.computeisWithoutPadding=function(){var z;return((z=this.data)==null?void 0:z.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xc.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.w("design:type",Boolean)],Xc.prototype,"isWithoutPadding",void 0);_.e([_.Wy({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Xc);
_.r(Xc,"yt-benefits-section-renderer",function(){if(G10===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;gFF===void 0&&(gFF=document.createElement("template"));var b=gFF;I.call(l,b.content.cloneNode(!0),z.content.firstChild);G10=z}z=G10;return z},{mode:2});var qU=function(){return _.q.apply(this,arguments)||this};
_.m(qU,_.q);qU.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
qU.prototype.computeisUsingLargeWidth=function(){var z;return((z=this.data)==null?void 0:z.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qU.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.w("design:type",Boolean)],qU.prototype,"isUsingLargeWidth",void 0);_.e([_.Wy({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],qU);
_.r(qU,"yt-benefits-flow-step-renderer",function(){if(pCc===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;MjX===void 0&&(MjX=document.createElement("template"));var b=MjX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);pCc=z}z=pCc;return z},{mode:2});var NS1;var EFc;var ij=function(){return _.q.apply(this,arguments)||this};
_.m(ij,_.q);ij.prototype.checkIsUsingLargeWidth=function(){var z;return((z=this.data)==null?void 0:z.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.e([_.X(),_.w("design:type",Object)],ij.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.e([_.X({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.w("design:type",Boolean)],ij.prototype,"isUsingLargeWidth",void 0);_.e([_.Wy({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],ij);
_.r(ij,"yt-confirmation-flow-step-renderer",function(){if(EFc===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;NS1===void 0&&(NS1=document.createElement("template"));var b=NS1;I.call(l,b.content.cloneNode(!0),z.content.firstChild);EFc=z}z=EFc;return z},{mode:2});var uYK;var Zs4;var Hsq=function(){return _.q.apply(this,arguments)||this};
_.m(Hsq,_.q);_.e([_.X(),_.w("design:type",Object)],Hsq.prototype,"data",void 0);_.e([_.Wy({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Hsq);
_.r(Hsq,"yt-info-flow-step-renderer",function(){if(Zs4===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;uYK===void 0&&(uYK=document.createElement("template"));var b=uYK;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Zs4=z}z=Zs4;return z},{mode:2});var yey;var fAl;var Cqq=function(){return _.q.apply(this,arguments)||this};
_.m(Cqq,_.q);_.e([_.X(),_.w("design:type",Object)],Cqq.prototype,"data",void 0);_.e([_.Wy({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Cqq);
_.r(Cqq,"yt-info-list-flow-step-renderer",function(){if(fAl===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;yey===void 0&&(yey=document.createElement("template"));var b=yey;I.call(l,b.content.cloneNode(!0),z.content.firstChild);fAl=z}z=fAl;return z},{mode:2});var k1y=_.P(function(z){var l=z.data;return _.N("styled-text-view-model",{class:_.m9("ytStyledTextViewModelHost",function(){return mBc(l().fontAttributes)},function(){return RMc(l().color)})},_.N(_.Rf,{text:function(){return l().text},
ariaLabel:function(){var I,b,v;return(v=(I=l().accessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label)!=null?v:""}}))},"Pf");
k1y.idomCompat=!0;var Rtq=_.P(function(z){var l=function(){var v,M,x,g;return(g=(x=(v=z.alt)==null?void 0:v.call(z))!=null?x:(M=z.data().accessibilityData)==null?void 0:M.label)!=null?g:""},I=function(){return z.data().imageWidth},b=function(){return z.data().imageHeight};
return _.N("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.N(_.E,{cond:function(){var v=z.data();if(v){var M,x,g;var G=((M=_.pG().resolve(_.MB(_.I2)))==null?0:M())?(x=v.imageDark)!=null?x:v.imageLight:(g=v.imageLight)!=null?g:v.imageDark}else G=void 0;return G},
then:function(v){return _.N(_.pK,Object.assign({},z,{data:v,alt:l,targetWidth:I,targetHeight:b,preserveHeight:!0,preserveWidth:!0}))}}))},"Qf");
Rtq.idomCompat=!0;var Fc=_.P(function(z){var l=z.data;z=_.Df(function(){return l().slots},[]);
var I=_.Df(function(){return l().layoutProperties},{}),b=_.pG().resolve(_.vr);
return _.N("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:HGl(I,b)},_.N(_.qy,{each:z,keyBy:"INDEX"},function(v){return _.N("div",{class:"ytContainerLayoutViewModelSlot",style:HGl(function(){return v().layoutProperties},b)},_.N(_.TS,{data:function(){return v().contents}},{containerLayoutViewModel:Fc,
badgeViewModel:_.T2,buttonViewModel:_.h4,styledTextViewModel:k1y,contentPreviewImageViewModel:function(M){return _.N(_.cm,{data:M.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(M){return _.N(Rtq,{data:M.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Rf");
Fc.idomCompat=!0;var mh8=_.P(function(z){var l=z.data;var I=z.stateFns;var b=function(){var u=l(),Z=u.productId;return!(!u.clearGroupId&&!Z)},v=function(){var u=l(),Z=u.clearGroupId;
return(u=u.productId)?I().isProductSelected(u):Z?I().getSelectedProductByGroupId(Z)==null:!1},M=function(u){var Z=l(),H=Z.clearGroupId;
if(Z=Z.productId)I().onProductSelected(Z),u==null||u.forEach(function(y){_.ae(y)});
else if(H)I().onClearGroupSelected(H)},x=function(){var u=l(),Z=u.clearGroupId;
if(u=u.productId){var H;return"group:"+(((H=I().getProductById(u))==null?void 0:H.groupId)||"")}return Z?"group:"+Z:""},g=_.Df(function(){return l().header},[]),G=_.Df(function(){return l().body},[]);
return _.N("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.N(_.E,{cond:function(){return g().length>0||b()},
then:function(){return _.N("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.N("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.N(_.TS,{data:g},{containerLayoutViewModel:function(u){return _.N("div",{class:"ytPdpCardSectionViewModelContentItem"},_.N(Fc,{data:u.data}))},
styledTextViewModel:function(u){return _.N("div",{class:"ytPdpCardSectionViewModelContentItem"},_.N(k1y,{data:u.data}))}})),_.N(_.E,{cond:b,
then:function(){return _.N("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.N(_.O_,{checked:v,name:x,onChange:function(){M(l().onSelect)}}))}}))}}),_.N(_.E,{cond:function(){return G().length>0},
then:function(){return _.N("div",null,_.N(_.TS,{data:G},{containerLayoutViewModel:function(u){return _.N("div",{class:"ytPdpCardSectionViewModelContentItem"},_.N(Fc,{data:u.data}))}}))}}))},"Sf");
mh8.idomCompat=!0;var KIF=_.P(function(z){var l=z.data;var I=z.stateFns;return _.N("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.N(_.E,{cond:function(){return l().banner},
then:function(b){return _.N("div",{class:"ytPdpCardViewModelBanner"},_.N(_.Rf,{text:b}))}}),_.N(_.TS,{data:function(){return l().sections}},{pdpCardSectionViewModel:function(b){b=b.data;
var v={};return _.N("div",{class:_.m9("ytPdpCardViewModelSectionContainer",(v.ytPdpCardViewModelShowDividers=function(){return l().showDividers},v))},_.N(mh8,{data:b,
stateFns:I}))}}))},"Tf");
KIF.idomCompat=!0;var tjW=_.P(function(z){var l=z.data;var I=z.isOverlay;z={};return _.N("pdp-masthead-view-model",{class:_.m9("ytPdpMastheadViewModelHost",(z.ytPdpMastheadViewModelIsOverlay=I,z))},_.N(_.TS,{data:function(){return l().image}},{contentPreviewImageViewModel:_.cm,
themedImageViewModel:function(b){return _.N(Rtq,{data:b.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.N(_.E,{cond:function(){return l().title},
then:function(b){return _.N("h1",{class:"ytPdpMastheadViewModelHeading"},_.N(_.Rf,{text:b,isOverlay:I}))}}),_.N(_.qy,{each:function(){var b;
return(b=l().finePrint)!=null?b:[]}},function(b){return _.N("div",{class:"ytPdpMastheadViewModelFinePrint"},_.N(_.Rf,{text:b,
isOverlay:I}))}))},"Uf");
tjW.idomCompat=!0;var BSF=_.P(function(z){var l=z.data;var I=z.stateFns;var b=function(){return"pdp-pricing-group-selector-"+l().pricingGroupAttributeIds},v=_.Df(function(){return l().pricingGroupSelectorSectionHeader});
return _.N("pdp-pricing-group-selector-view-model",null,_.N(_.E,{cond:function(){return!!v()},
then:function(){return _.N(_.TS,{data:v},{sectionHeaderViewModel:function(M){M=M.data;var x={};return _.N("div",{class:_.m9("ytPdpPricingGroupSelectorViewModelSectionHeader",(x.ytPdpPricingGroupSelectorViewModelFullBleed=!0,x.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,x))},_.N(_.rj,{data:M}))}})}}),_.N("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.N(_.qy,{each:function(){var M=I().getSelectedProductByGroupId(l().groupId);
if(!M)return _.oy(Error("Rj`"+l().groupId)),[];var x,g=(x=l().pricingGroupAttributeIds)!=null?x:[],G;if((G=M.pricingGroups)==null||!G.length||!g.length)return[];x=M.pricingGroups.filter(function(y){return g.length?y.pricingGroupAttributes.every(function(f){return g.includes(f)}):!1});
M=[];if(g.length>0){x=[].concat(_.ht(x));G=_.D(g);for(var u=G.next(),Z={};!u.done;Z={targetAttrId:void 0},u=G.next())Z.targetAttrId=u.value,u=x.findIndex(function(y){return function(f){return f.pricingGroupAttributes.includes(y.targetAttrId)}}(Z)),u!==-1&&(M.push(x[u]),x.splice(u,1))}var H=I().getSelectedPricingGroupAttributesByGroupId(l().groupId);
return M.map(function(y){var f=!1;H&&y.pricingGroupAttributes&&(f=LX(y.pricingGroupAttributes,H));return{pricingGroup:y,isSelected:f}})},
keyBy:function(M){return M.pricingGroup.pricingGroupId}},function(M){return _.N("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.N("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.N(_.TS,{data:function(){return M().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Fc})),_.N("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.N(_.O_,{checked:function(){return M().isSelected},
name:b,onClick:function(){var x=M().pricingGroup;I().onPricingGroupSelected(x.pricingGroupId);if(x=_.Wh(x.onSelectPricingGroup)){var g;(g=_.pG().resolve(_.DQ))==null||g.resolveCommand(x)}}})))})))},"Vf");
BSF.idomCompat=!0;var XC0=_.P(function(z){var l=z.data;var I=z.stateFns;var b=function(){var x=I().getSelectedPricingOptions().map(function(u){return u.pricingOptionId}),g=I().getSelectedProductByGroupId(l().groupId);
if(!g)return _.oy(Error("Sj`"+l().groupId)),[];var G=I().getSelectedPricingGroupAttributesByGroupId(l().groupId);return XVF(g.pricingOptions,G,x)},v=_.Df(function(){return l().pricingOptionSelectorSectionHeader}),M=function(){return b().length>1};
return _.N("pdp-pricing-option-selector-view-model",null,_.N(_.E,{cond:function(){return!!v()&&M()},
then:function(){return _.N(_.TS,{data:v},{sectionHeaderViewModel:function(x){x=x.data;var g={};return _.N("div",{class:_.m9("ytPdpPricingOptionSelectorViewModelSectionHeader",(g.ytPdpPricingOptionSelectorViewModelFullBleed=!0,g.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,g))},_.N(_.rj,{data:x}))}})}}),_.N(_.E,{cond:M,
then:function(){return _.N("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.N(_.qy,{each:b,keyBy:"INDEX"},function(x){return _.N("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.N("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.N(_.TS,{data:function(){return x().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Fc})),_.N("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.N(_.O_,{checked:function(){return x().isSelected},
onClick:function(){I().onPricingOptionSelected(x().pricingOption.pricingOptionId);var g=x().pricingOption.onSelectPricingOption;if(g=_.Wh(g)){var G;(G=_.pG().resolve(_.DQ))==null||G.resolveCommand(g)}}})))}))}}))},"Wf");
XC0.idomCompat=!0;var qdC=_.P(function(z){var l=z.data;var I=z.stateFns;return _.N("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.N(_.TS,{data:function(){var b,v;return(v=(b=I().getSelectedPricingOptions()[0])==null?void 0:b.primaryButton)!=null?v:l().emptyStateButton}},{buttonViewModel:_.h4}))},"Xf");
qdC.idomCompat=!0;var isX=_.P(function(z){var l=z.stateFns;return _.N("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.N(_.TS,{data:function(){return l().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.N("div",{class:"ytPdpSummaryViewModelLineItem"},_.N(Fc,{data:I.data}))}}))},"Yf");
isX.idomCompat=!0;var FIF=_.P(function(z){function l(Y){var c=x();_.pE(_.sc("pdpStateEntity",c,{key:c,selectedPricingOptions:Y}))}
var I=z.data;var b=z.internalScrolling;var v=z.stateFnsForTesting;var M=_.Df(function(){return I().allProducts},[]),x=_.Df(function(){return I().pdpStateEntityKey},""),g=_.F1(qI8,x),G=_.kz(function(){_.d2(!0);
var Y;return(Y=v==null?void 0:v())!=null?Y:FZF(g,M,l)},void 0,"tAB69c"),u=_.Df(function(){return I().body},[]),Z=_.Df(function(){return I().columnBreakHints},[]),H=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},y=function(){return H()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},f=_.kz(function(){var Y=_.j9(I().background),c;
if(Y==null?0:(c=Y.sources)==null?0:c.length){var d=d===void 0?!0:d;Y=_.ejY(void 0,Y.sources,void 0,d,d?1E3:void 0,d?void 0:1E3)}else Y=null;return Y},void 0,"bHjkUb");
z=_.XV({"--pdp-view-model-background":function(){return f()?"url("+f()+")":void 0}});
var R={};b=_.m9("ytPdpViewModelHost",(R.ytPdpViewModelHasBackground=function(){return y()||!!f()},R.ytPdpViewModelHasDarkBackground=y,R.ytPdpViewModelHasScrim=H,R.ytPdpViewModelInternalScrolling=_.Df(b,!1),R));
var F=function(Y){var c={};return _.m9("ytPdpViewModelItem",(c.ytPdpViewModelFullBleed=function(){return Q3F(Y())==="dividerViewModel"||Q3F(Y())==="sectionHeaderViewModel"},c.ytPdpViewModelNoVerticalPadding=function(){return Q3F(Y())==="sectionHeaderViewModel"},c))};
_.Sm(function(){var Y=I().onStartCommand;if(Y&&(Y=_.Wh(Y))){var c;(c=_.pG().resolve(_.DQ))==null||c.resolveCommand(Y)}});
return _.N("pdp-view-model",{class:b,style:z},_.N("div",{class:"ytPdpViewModelColumnContainer"},_.N(_.qy,{each:function(){return YIF(u(),Z())},
keyBy:"INDEX"},function(Y){return _.N("div",{class:"ytPdpViewModelColumn"},_.N(_.TS,{data:Y},{containerLayoutViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(Fc,{data:c}))},
dividerViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(_.Bzp,{data:c}))},
pdpCardViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(KIF,{data:c,
stateFns:G}))},
pdpMastheadViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(tjW,{data:c,
isOverlay:y}))},
pdpPricingGroupSelectorViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(BSF,{data:c,
stateFns:G}))},
pdpPricingOptionSelectorViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(XC0,{data:c,
stateFns:G}))},
pdpPrimaryButtonViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(qdC,{data:c,
stateFns:G}))},
pdpSummaryViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(isX,{data:c,
stateFns:G}))},
sectionHeaderViewModel:function(c,d){c=c.data;return _.N("div",{class:F(function(){return Y()[d()]})},_.N(_.rj,{data:c}))}}))})))},"Zf");
FIF.idomCompat=!0;_.uO(FIF,"pdp-view-model",{props:{data:_.mB,stateFnsForTesting:_.GH,internalScrolling:_.GH}});var QKK=_.P(function(z){var l=z.data;var I=z.className;var b=_.F1(_.b9,function(){return l().flowStateEntityKey});
return _.N("ytm-premium-purchase-button-renderer",{class:_.m9("ytPremiumPurchaseButtonRendererHost",I)},_.N(_.TS,{data:function(){var v;return(v=_.k(b(),cE4))==null?void 0:v.primaryButtonOverride}},{buttonRenderer:function(v){return _.N(_.K5,{data:v.data,
className:I})},
buttonViewModel:function(v){return _.N(_.h4,{data:v.data,className:I})}}))},"$f");
QKK.idomCompat=!0;var Yd8=_.P(function(z){var l=z.data;z=z.className;var I=function(){return Tk8(l().style)},b=_.m9("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),v=_.m9("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.N("yt-flow-bottom-bar-renderer",{class:_.m9("yt-flow-bottom-bar-renderer",z,I)},_.N(_.TS,{data:function(){return l().secondaryButton}},{buttonRenderer:function(M){return _.N(_.K5,{data:M.data,
className:v})},
buttonViewModel:function(M){return _.N(_.h4,{data:M.data,className:v})},
premiumPurchaseButtonRenderer:function(M){return _.N(QKK,{data:M.data,className:v})}}),_.N(_.TS,{data:function(){return l().primaryButton}},{buttonRenderer:function(M){return _.N(_.K5,{data:M.data,
className:b})},
buttonViewModel:function(M){return _.N(_.h4,{data:M.data,className:b})},
premiumPurchaseButtonRenderer:function(M){return _.N(QKK,{data:M.data,className:b})}}))},"ag");
Yd8.idomCompat=!0;_.uO(Yd8,"yt-flow-bottom-bar-renderer",{props:{data:_.mB,className:_.mB}});var TS8=_.P(function(z){var l=_.m9(z.className,"ytOfferSummaryRendererHost");return _.N("yt-offer-summary-renderer",{class:l},_.N("div",{class:"ytOfferSummaryRendererTextContainer"},_.N("div",{class:"ytOfferSummaryRendererEyebrowText"},_.N(_.Rf,{text:function(){return z.data().eyebrowText}})),_.N("div",{class:"ytOfferSummaryRendererTitle"},_.N(_.Rf,{text:function(){return z.data().title}})),_.N("div",{class:"ytOfferSummaryRendererSubtitle"},_.N(_.Rf,{text:function(){return z.data().subtitle}})),_.N("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.N(_.qy,{each:function(){var I;
return(I=z.data().featureListData)!=null?I:[]}},function(I){var b;
return _.N("div",{class:"ytOfferSummaryRendererFeatureList"},_.N(_.qt,{icon:(b=I.icon)==null?void 0:b.iconType,active:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(I.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"}}}),_.N("div",{class:"ytOfferSummaryRendererFeatureListText"},_.N(_.Rf,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.N("div",{class:"ytOfferSummaryRendererDescription"},_.N(_.Rf,{text:function(){return z.data().description}}))))},"bg");_.uO(_.P(function(z){var l={};l=_.m9("ytOfferSummaryFlowStepRendererHost",(l.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=z.shouldDisableHeaderTopMargin,l));return _.N("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:l},_.N("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.N("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.N(_.Rf,{text:function(){return z.data().header}})),_.N("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.N(_.Rf,{text:function(){return z.data().subtitle}}))),_.N("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.N(_.TS,{data:function(){return z.data().offerSummary}},{offerSummaryRenderer:function(I){return _.N(TS8,{data:I.data,
className:z.flowClassName})}})))},"cg"),"yt-offer-summary-flow-step-renderer",{props:{data:_.GH,
flowClassName:_.GH,flowStateEntityKey:_.GH,shouldDisableHeaderTopMargin:_.GH}});var cec=_.P(function(z){var l=z.data;var I=z.className;var b=z.flowStateEntityKey;var v=z.selectionStepStyle;z=_.KK(function(G){var u=l(),Z=b==null?void 0:b();G.target&&(G.stopPropagation(),G=Z||"",Z=_.b9(_.M8().getState(),G),u=Object.assign({},Z,{premiumPurchaseFlowState:{selectedOptionId:u.optionId,primaryButtonOverride:u.primaryButtonOverride}}),_.M8().dispatch(_.cU("flowStateEntity",G,u)));return!1});
var M=function(){return(b==null?void 0:b())||""},x=_.F1(_.b9,M);
_.Sm(function(){var G=l(),u=M(),Z=x();G.defaultSelected&&u!==""&&G.primaryButtonOverride&&SIX(G.optionId||"",u,G.primaryButtonOverride,Z)});
var g={};return _.N("ytm-option-item-renderer",{"on:click":z,class:_.m9(I,"ytm-option-item-renderer",(g["ytm-option-item-renderer--lp2-style"]=function(){return(v==null?void 0:v())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},g))},_.N("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.N("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var G=l(),u=M(),Z=x();Z=_.k(Z,cE4);return(Z?(Z==null?void 0:Z.selectedOptionId)||"":G.defaultSelected&&u!==""?(G==null?void 0:G.optionId)||"":"")===l().optionId},
name:("input"+_.Uh(_.pA)).toString()})),_.N("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.N(_.TS,{data:function(){return l().titleBadge}},{badgeViewModel:function(G){return _.N(_.T2,{data:G.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.N(_.E,{cond:function(){return l().eyebrowText},
then:function(){return _.N("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.N(_.Rf,{text:function(){return l().eyebrowText}}))}}),_.N("div",{class:"ytm-option-item-renderer__option-item-title"},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.N(_.Rf,{text:function(){return l().subtitle}})),_.N(_.E,{cond:function(){return l().featureListData},
then:function(){return _.N("div",{class:"ytm-option-item-renderer__feature-list-data"},_.N(_.qy,{each:function(){return l().featureListData||[]}},function(G){var u,Z=(u=G.icon)==null?void 0:u.iconType;
a:switch(G.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":u="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":u="ytm-option-item-renderer__feature-list-icon-small";break a;default:u="ytm-option-item-renderer__feature-list-icon-default"}return _.N("div",{class:"ytm-option-item-renderer__feature-list"},_.N(_.qt,{icon:Z,className:u,active:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.N("div",{class:"ytm-option-item-renderer__feature-list-text"},_.N(_.Rf,{text:G.text,
className:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.N("div",{class:"ytm-option-item-renderer__option-item-description"},_.N(_.Rf,{text:function(){return l().description}}))))},"dg");var Sd4=_.P(function(z){var l=z.data;var I=z.flowClassName;var b=z.flowStateEntityKey;var v=z.selectionStepStyle;return _.N("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.N("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.N("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.N(_.Rf,{text:function(){return l().title}}),_.N(_.TS,{data:function(){return l().titleBadge}},{badgeViewModel:function(M){return _.N(_.T2,{data:M.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.N(_.E,{cond:function(){return l().subtitle},
then:function(){return _.N("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.N(_.Rf,{text:function(){return l().subtitle}}))}}),_.N(_.E,{cond:function(){return l().featureListData},
then:function(M){return _.N("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.N(_.qy,{each:M},function(x){var g;return _.N("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.N(_.qt,{icon:(g=x.icon)==null?void 0:g.iconType,active:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(x.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"}}}),_.N("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.N(_.Rf,{text:x.text,
className:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.N(_.E,{cond:function(){return l().secondaryTitle},
then:function(){return _.N("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.N(_.Rf,{text:function(){return l().secondaryTitle}}))}}),_.N(_.qy,{each:function(){return l().sectionDisclaimers||[]}},function(M){return _.N("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.N(_.Rf,{text:M}))})),_.N(_.TS,{data:function(){return l().optionItems}},{optionItemRenderer:function(M){return _.N("div",{class:"ytOptionSectionRendererOptionItem"},_.N(cec,{data:M.data,
className:I,flowStateEntityKey:b,selectionStepStyle:v}))}}),_.N(_.E,{cond:function(){return l().offerText},
then:function(){return _.N("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.N(_.Rf,{text:function(){return l().offerText}}))}}))},"eg");
Sd4.idomCompat=!0;var dhX=_.P(function(z){var l=z.data;var I=z.flowClassName;var b=z.flowStateEntityKey;z=z.isDesktop;var v=function(){var u;return(u=l().flowStateEntityKey)!=null?u:b==null?void 0:b()},M=function(){return(v==null?void 0:v())||""},x=function(){return l().style},g=_.F1(_.b9,M);
_.Sm(function(){var u=l(),Z=M(),H=g();!_.k(H,cE4)&&u.noPreselect&&Z!==""&&u.defaultButtonOverride&&SIX("default",Z,u.defaultButtonOverride,H)});
var G={};return _.N("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.m9("ytm-option-selection-flow-step-renderer",(G["ytm-option-selection-flow-step-renderer--desktop"]=z,G["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return l().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},G))},_.N("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"},
_.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.N(_.Rf,{text:function(){return l().header}})),_.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.N(_.Rf,{text:function(){return l().subtitle}}))),_.N(_.TS,{data:function(){return l().optionItems||[]}},{optionItemRenderer:function(u){return _.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.N(cec,{data:u.data,
className:I,flowStateEntityKey:v,selectionStepStyle:x}))},
optionSectionRenderer:function(u){return _.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.N(Sd4,{data:u.data,flowClassName:I,flowStateEntityKey:v,selectionStepStyle:x}))}}))},"fg");
dhX.idomCompat=!0;_.uO(dhX,"yt-option-selection-flow-step-renderer",{props:{data:_.mB,flowClassName:_.mB,flowStateEntityKey:_.mB,isDesktop:_.mB}});_.Qx=_.P(function(z){var l=_.xC(z,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=l.data,b=l.type;z=l.disablePadding;var v=l.disablePrimaryButton,M=l.onClickPrimaryButton,x=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},g=function(){return{disabled:v(),
state:v()?"disabled":"active"}},G=function(){return I().leadingLabel||I().trailingLabel};
l={};return _.N("yt-panel-footer-view-model",{class:_.m9("yt-panel-footer-view-model",(l["yt-panel-footer-view-model--hide-divider"]=function(){return I().shouldHideDivider},l["yt-panel-footer-view-model--disable-padding"]=z,l))},_.N(_.E,{cond:G,
then:function(){var u={},Z={};return _.N("div",{class:_.m9("yt-panel-footer-view-model__text-row",(u["yt-panel-footer-view-model--row-bottom-padding"]=function(){var H=I();return!(!H.leadingLabel&&!H.trailingLabel||!H.primaryButton&&!H.secondaryButton)},u))},_.N(_.Rf,{text:function(){return I().leadingLabel},
className:_.m9((Z["yt-panel-footer-view-model--text-padding"]=G,Z))}),_.N(_.Rf,{text:function(){return I().trailingLabel}}))}}),_.N(_.E,{cond:x,
then:function(){var u={};return _.N("div",{class:"yt-panel-footer-view-model__button-stack"},_.N("div",{class:_.m9("yt-panel-footer-view-model__primary-button",(u["yt-panel-footer-view-model__button-stack--top-button"]=function(){return I().secondaryButton},u))},_.N(_.TS,{data:function(){return I().primaryButton}},{buttonViewModel:function(Z){return _.N(_.h4,{data:Z.data,
buttonOverrides:g,onClick:M})}})),_.N(_.TS,{data:function(){return I().secondaryButton}},{buttonViewModel:_.h4}))}}),_.N(_.E,{cond:function(){return!x()},
then:function(){var u={},Z={},H={};return _.N("div",{class:_.m9("yt-panel-footer-view-model__button-row",(u["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===b()},u))},_.N("div",{class:_.m9("yt-panel-footer-view-model__button-row--left-button",(Z["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===b()},Z["yt-panel-footer-view-model__button-row--hidden"]=function(){return!I().secondaryButton||0===b()},Z["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===b()},Z))},_.N(_.TS,{data:function(){return I().secondaryButton}},{buttonViewModel:_.h4})),_.N("div",{class:_.m9("yt-panel-footer-view-model__primary-button",(H["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===b()||1===b()},H["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===b()},H))},_.N(_.TS,{data:function(){return I().primaryButton}},{buttonViewModel:function(y){return _.N(_.h4,{data:y.data,
buttonOverrides:g,onClick:M})}})))}}))},"gg");
_.Qx.idomCompat=!0;_.oFX=_.P(function(z){z=_.xC(z,{disablePadding:!1});var l=z.data,I=z.disablePadding;z=_.AjQ(function(){return l().formId});
var b=z.submitForm,v=z.isValid,M=z.isSubmitting;return _.N("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.N(_.TS,{data:function(){return l().panelFooter}},{panelFooterViewModel:function(x){return _.N(_.Qx,{data:x.data,
onClickPrimaryButton:function(){b()},
disablePrimaryButton:function(){return!v()||M()},
disablePadding:I})}}))},"hg");_.uO(_.oFX,"yt-form-footer-view-model",{props:{data:_.mB,disablePadding:_.mB}});var Pqq=_.P(function(z){var l=_.C("enable_user_rating_web");return _.N("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.N(_.E,{cond:function(){var I;return(I=z.data())==null?void 0:I.image},
then:function(I){return _.N(_.pK,{data:I,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.N(_.Rf,{text:function(){var I;
return(I=z.data())==null?void 0:I.title}})),_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.N(_.Rf,{text:function(){var I;
return(I=z.data())==null?void 0:I.subtitle}})),_.N(_.E,{cond:function(){return!l},
then:function(){return _.N(_.TS,{data:function(){var I;return(I=z.data())==null?void 0:I.viewTipsButton}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"ig");_.uO(Pqq,"yt-contributor-zero-state-view-model",{props:{data:_.mB}});var hty=_.P(function(z){var l=function(){var I;return(I=z.data())==null?void 0:I.image};
return _.N("yt-featured-content-item-view-model",{class:_.m9("ytFeaturedContentItemViewModelHost")},_.N("div",{class:_.m9(function(){return l()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.N("div",{class:function(){return l()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.N(_.E,{cond:l,
then:function(){return _.N("div",{class:"ytFeaturedContentItemViewModelImage"},_.N(_.TS,{data:function(){return z.data().image}},{themedImageViewModel:function(I){return _.N(Rtq,{data:I.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.N(_.E,{cond:function(){var I;
return!l()&&((I=z.data())==null?void 0:I.iconName)},
then:function(){return _.N("div",{class:"ytFeaturedContentItemViewModelIcon"},_.N(_.qt,{icon:function(){return z.data().iconName}}))}}),_.N("div",{class:"ytFeaturedContentItemViewModelContent"},_.N(_.E,{cond:function(){var I;
return(I=z.data())==null?void 0:I.title},
then:function(){return _.N("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.N(_.Rf,{text:function(){return z.data().title}}))}}),_.N(_.E,{cond:function(){var I;
return(I=z.data())==null?void 0:I.body},
then:function(){return _.N("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.N(_.Rf,{text:function(){return z.data().body}}))}})))))},"jg");var sKy=_.P(function(z){var l=function(){var v;return dBq((v=z.data())==null?void 0:v.titleFontSize)},I=function(){var v;
return osy((v=z.data())==null?void 0:v.descriptionFontSize)},b=function(){var v;
return((v=z.data())==null?void 0:v.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.N("yt-landing-page-view-model",{class:_.m9("ytLandingPageViewModelHost",z.className)},_.N("div",{class:"ytLandingPageViewModelHeader"},_.N(_.E,{cond:function(){var v;return(v=z.data())==null?void 0:v.bannerImage},
then:function(v){return _.N("div",{class:"ytLandingPageViewModelHeaderImage"},_.N(_.TS,{data:function(){return v()}},{imageBannerViewModel:function(M){return _.N(_.ZN,{data:M.data,
isPositionRelative:!0})}}))}}),_.N(_.E,{cond:function(){var v;
return(v=z.data())==null?void 0:v.bannerAnimation},
then:function(v){return _.N(_.A4,{data:function(){var M=v();if(M==null?0:M.url){var x;M={path:(x=M==null?void 0:M.url)!=null?x:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(M==null?0:M.payload){var g;M={animationData:JSON.parse((g=M==null?void 0:M.payload)!=null?g:""),autoplay:!0,loop:!0,renderer:"svg"}}else M=void 0;return{animationConfig:M}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.N("div",{class:"ytLandingPageViewModelHeaderTitle"},_.N(_.E,{cond:function(){var v;
return(v=z.data())==null?void 0:v.title},
then:function(v){return _.N("div",{class:_.m9("ytLandingPageViewModelHeaderTitleContent",l)},_.N(_.Rf,{text:function(){return v()}}))}}),_.N(_.E,{cond:function(){var v;
return(v=z.data())==null?void 0:v.description},
then:function(v){var M={};return _.N(_.Rf,{className:_.m9("ytLandingPageViewModelHeaderTitleDescription",I,(M.ytLandingPageViewModelHeaderTitleDescriptionMargin=b,M)),text:function(){return v()}})}}))),_.N(_.E,{cond:function(){var v,M;
return(v=z.data())==null?void 0:(M=v.featuredContentList)==null?void 0:M.length},
then:function(){return _.N("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.N(_.TS,{data:function(){return z.data().featuredContentList}},{featuredContentItemViewModel:function(v){return _.N(hty,{data:v.data})}}))}}),_.N(_.E,{cond:function(){var v,M;
return(v=z.data())==null?void 0:(M=v.expandableContentList)==null?void 0:M.length},
then:function(){return _.N("div",{class:"ytLandingPageViewModelFaqSection"},_.N(_.TS,{data:function(){return z.data().expandableContentList}},{faqEntryViewModel:function(v){return _.N("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.N(_.xc_,{data:v.data}))}}))}}),_.N("div",{class:"ytLandingPageViewModelFooter"},_.N(_.E,{cond:function(){var v;
return(v=z.data())==null?void 0:v.legalCopy},
then:function(v){return _.N("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.N(_.Rf,{text:function(){return v()}}))}}),_.N(_.E,{cond:function(){var v;
return(v=z.data())==null?void 0:v.actions},
then:function(v){return _.N("div",null,_.N(_.TS,{data:function(){return v()}},{flexibleActionsViewModel:function(M){return _.N(_.xJ,{data:M.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"kg");_.uO(_.P(function(z){return _.N("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.N("div",{class:"ytLpSectionGroupViewModelContainer"},_.N(_.TS,{data:function(){return z.data().sections}},{landingPageViewModel:function(l){return _.N(sKy,{data:l.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"lg"),"yt-lp-section-group-view-model",{props:{data:_.mB}});var re0=_.P(function(z){var l=z.data;var I=z.selectedKey;var b=z.onSelected;var v=z.groupName;var M=function(){return l().text},x=function(){return l().attributedText},g=function(){return l().subtext},G=function(){return l().attributedSubtext},u=_.N("div",{class:"ytRadioButtonItemViewModelLabel"},_.N(_.E,{cond:M,
then:function(){return _.N("div",null,M)}}),_.N(_.E,{cond:x,
then:function(){return _.N(_.Rf,{text:x})}}),_.N(_.E,{cond:g,
then:function(){return _.N("div",{class:"ytRadioButtonItemViewModelSubText"},g)}}),_.N(_.E,{cond:G,
then:function(){return _.N("div",{class:"ytRadioButtonItemViewModelSubText"},_.N(_.Rf,{text:G}))}})),Z=function(){if(x()){var y;
return(y=x())==null?void 0:y.content}return M()},H=function(){if(G()){var y;
return(y=G())==null?void 0:y.content}return g()};
z={};return _.N("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.N(_.O_,{name:v,checked:function(){return!(I==null||!I()||l().key!==(I==null?void 0:I()))},
onChange:function(y){b==null||b(y.target,l(),v==null?void 0:v())},
labelRenderable:function(){return u},
ariaLabel:function(){return H()?Z()+", "+H():Z()},
className:_.m9((z.ytRadioButtonItemViewModelSubTitle=function(){return!!l().subtext},z))}))},"mg");_.$hq=_.P(function(z){var l=z.data;var I=z.onSelected;var b=z.selectedKey;var v=z.groupName;var M=function(){return(v==null?void 0:v())||l().key};
return _.N("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.N("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.N(_.TS,{data:function(){return l().radioButtons}},{radioButtonItemViewModel:function(x){return _.N(re0,{data:x.data,
onSelected:I,selectedKey:b,groupName:M})}})))},"ng");var etS=_.P(function(z){_.Sm(function(){if(z.controlledMode()&&z.data().defaultSelected)_.dE(Error("Tj"));else{var M;!z.controlledMode()&&((M=z.selected)==null?0:M.call(z))&&_.dE(Error("Uj"))}});
var l=_.D(_.Br(function(){if(!z.controlledMode())return z.data().defaultSelected})),I=l.next().value,b=l.next().value,v=function(){if(!z.controlledMode())return I();
var M;return(M=z.selected)==null?void 0:M.call(z)};
return _.N("yt-checkbox-item-view-model",{class:_.m9("ytCheckboxItemViewModelHost")},_.N(_.GA,{data:function(){var M=z.data(),x=v();return{title:M.text,subtitle:M.subtext,superlabel:M.superlabel,isSelected:!!x,isDisabled:M.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(M){M.preventDefault();!z.controlledMode()&&b(!I());var x,g;(g=z.onTap)==null||g.call(z,!!v(),z.data(),(x=z.groupName)==null?void 0:x.call(z))}}))},"og");var wCy=_.P(function(z){var l=z.data;var I=z.controlledMode;var b=z.selectedKeys;var v=z.onItemTap;var M=z.groupName;var x=function(){return(M==null?void 0:M())||l().key};
_.Sm(function(){I()&&l().defaultSelectedKeys?_.dE(Error("Vj")):!I()&&(b==null?0:b())&&_.dE(Error("Wj"))});
z=_.D(_.Br(function(){if(!I())return l().defaultSelectedKeys}));
var g=z.next().value,G=z.next().value,u=function(Z,H,y){Z=[];!I()&&H.key&&(Z=PfS(H.key,g()||[]),G(Z));v==null||v(H,Z,y)};
return _.N("yt-checkbox-group-view-model",{class:_.m9("ytCheckboxGroupViewModelHost")},_.N("fieldset",{class:_.m9("ytCheckboxGroupViewModelFieldset")},_.N(_.TS,{data:function(){return l().checkboxes}},{checkboxItemViewModel:function(Z){var H=Z.data;
return _.N(etS,{data:H,controlledMode:!0,selected:function(){var y=I()?(b==null?void 0:b())||[]:g()||[],f=H().key;return f?y.includes(f):!1},
onTap:u,groupName:x})}})))},"pg");var Y3=_.P(function(z){var l=_.F1(hMK,_.Df(function(){var g;return(g=z.data())==null?void 0:g.noteFeedEntityKey},"")),I=_.F1(lQq,_.Df(function(){var g;
return(g=z.data())==null?void 0:g.userRatingEntityKey},"")),b=_.C("enable_user_rating_web"),v=function(){var g,G,u;
return((g=l())==null?0:g.contributorNote)?(G=l())==null?void 0:G.contributorNote:(u=z.data())==null?void 0:u.existingNote},M=function(){var g,G;
return!!I()&&!!s3l((g=I())==null?void 0:g.helpfulnessValue,(G=z.data())==null?void 0:G.noteData)};
if(b){var x={};return _.N("yt-note-view-model",{class:_.m9("ytNoteViewModelHostUserRating",(x.ytNoteViewModelHostUserRatingPublishedNote=function(){var g,G,u,Z;return((g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.isPublished)&&!((u=z.data())==null?0:(Z=u.noteData)==null?0:Z.isUserRatingForm)},x))},_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.N(_.E,{cond:function(){var g,G;
return(g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.isPinned},
then:function(){return _.N(_.qt,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.N(_.E,{cond:function(){var g,G;return(g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.isPublished},
then:function(){return _.N(_.qt,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.N(_.TS,{data:function(){var g;
return(g=z.data())==null?void 0:g.metadata}},{contentMetadataViewModel:_.Sq}),_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var g,G;
return(G=_.k((g=z.data())==null?void 0:g.metadata,_.dwn))==null?void 0:G.delimiter}),_.N(_.Rf,{text:function(){var g;
return(g=v())==null?void 0:g.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.N(_.E,{cond:function(){var g,G;return!((g=z.data())==null?0:(G=g.noteData)==null?0:G.isUserRatingForm)},
then:function(){return _.N(_.TS,{data:function(){var g,G,u,Z,H,y,f,R=!!((g=z.data())==null?0:(G=g.noteData)==null?0:G.isPinned);g=M();G=(u=z.data())==null?void 0:u.noteData;u=(Z=l())==null?void 0:(H=Z.contributorNote)==null?void 0:H.deleteAction;Z=(y=z.data())==null?void 0:y.overflowButtonNoteWithRatingOnTapOverride;y=(f=z.data())==null?void 0:f.overflowButton;return R?rE0(G,u):g?{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:Z}}:y}},{buttonViewModel:function(g){return _.N(_.h4,{data:g.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.N("div",{class:"ytNoteViewModelNoteContent"},_.N(_.Rf,{text:function(){var g;
return(g=v())==null?void 0:g.text}})),_.N(_.E,{cond:function(){var g,G,u,Z;
return!((g=z.data())==null?0:(G=g.noteData)==null?0:G.isPinned)&&!((u=z.data())==null?0:(Z=u.noteData)==null?0:Z.isUserRatingForm)},
then:function(){return _.N(_.E,{cond:M,then:function(){return _.N("div",{class:"ytNoteViewModelUserRatingContainer"},_.N(_.Rf,{text:function(){var g,G;return s3l((g=I())==null?void 0:g.helpfulnessValue,(G=z.data())==null?void 0:G.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.N(_.TS,{data:function(){var g;return(g=z.data())==null?void 0:g.userRatingButton}},{buttonViewModel:function(g){return _.N(_.h4,{data:g.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.N(_.E,{cond:function(){var g,G,u,Z;
return!((g=z.data())==null?0:(G=g.noteData)==null?0:G.ignoreDivider)&&!((u=z.data())==null?0:(Z=u.noteData)==null?0:Z.isUserRatingForm)},
then:function(){return _.N("div",{class:"ytNoteViewModelDivider"},_.N(_.TS,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(g){return _.N(_.Bzp,{data:g.data})}}))}}))}return _.N("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.N(_.E,{cond:function(){var g,G;return(g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.isPinned},
then:function(){return _.N(_.qt,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.N(_.E,{cond:function(){var g,G;return(g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.isPublished},
then:function(){return _.N(_.qt,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.N(_.E,{cond:function(){return b},
then:function(){return _.N(_.TS,{data:function(){var g;return(g=z.data())==null?void 0:g.metadata}},{contentMetadataViewModel:function(g){return _.N(_.Sq,{data:g.data})}})}}),_.N(_.Rf,{text:function(){var g,G;
return(g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.headerText}}),_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.N(_.Rf,{text:function(){var g,G;
return(g=z.data())==null?void 0:(G=g.noteData)==null?void 0:G.delimiter}})),_.N(_.Rf,{text:function(){var g,G;
return(g=l())==null?void 0:(G=g.contributorNote)==null?void 0:G.publishedTimeText}})),_.N(_.TS,{data:function(){var g,G,u;
return rE0((g=z.data())==null?void 0:g.noteData,(G=l())==null?void 0:(u=G.contributorNote)==null?void 0:u.deleteAction)}},{buttonViewModel:function(g){return _.N(_.h4,{data:g.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.N("div",{class:"ytNoteViewModelNoteContent"},_.N(_.Rf,{text:function(){var g,G;
return(g=l())==null?void 0:(G=g.contributorNote)==null?void 0:G.text}})))},"qg");
Y3.idomCompat=!0;_.uO(_.P(function(z){var l=_.F1(_.b9,_.Df(function(){var Y;return(Y=z.data())==null?void 0:Y.flowStateEntityKey},"")),I=_.D(_.Br(function(){var Y;
return(Y=_.k(z.data().helpfulnessValue,_.zi))==null?void 0:Y.defaultSelectedKey})),b=I.next().value,v=I.next().value;
I=_.D(_.Br(function(){var Y,c,d;return(d=_.k((Y=_.k(z.data().helpfulnessValue,_.zi))==null?void 0:(c=Y.radioButtons)==null?void 0:c.find(function(V){var A;return((A=_.k(V,DAF))==null?void 0:A.key)===b()}),DAF))==null?void 0:d.value}));
var M=I.next().value,x=I.next().value,g=function(Y,c){v(c.key);x(c.value)},G=function(){var Y,c;
return((Y=M())==null?void 0:Y.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((c=M())==null?void 0:c.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},u=function(){var Y,c;
return((Y=M())==null?void 0:Y.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((c=M())==null?void 0:c.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
I=_.D(_.Br(function(){var Y;return(Y=_.k(z.data().helpfulReasons,pW1))==null?void 0:Y.defaultSelectedKeys}));
var Z=I.next().value,H=I.next().value,y=function(Y){$By(Y.key,Z,H)};
I=_.D(_.Br(function(){var Y;return(Y=_.k(z.data().notHelpfulReasons,pW1))==null?void 0:Y.defaultSelectedKeys}));
var f=I.next().value,R=I.next().value,F=function(Y){$By(Y.key,f,R)};
_.Sm(function(){var Y,c,d;IQF((Y=z.data())==null?void 0:(c=Y.userRatingFormSchema)==null?void 0:c.id,{isValid:function(){return!!b()},
formData:function(){var V=M(),A=wVX(Z(),_.k(z.data().helpfulReasons,pW1)),W=wVX(f(),_.k(z.data().notHelpfulReasons,pW1));V={helpfulnessValue:V==null?void 0:V.noteHelpfulnessValue};if(A){V.helpfulReasons=[];A=_.D(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var lH=void 0;if((lH=L)==null?0:lH.noteHelpfulReason)lH=void 0,V.helpfulReasons.push((lH=L)==null?void 0:lH.noteHelpfulReason)}}if(W)for(V.notHelpfulReasons=[],W=_.D(W),A=W.next();!A.done;A=W.next())if(A=A.value,L=void 0,(L=A)==null?0:L.noteNotHelpfulReason)L=
void 0,V.notHelpfulReasons.push((L=A)==null?void 0:L.noteNotHelpfulReason);return{userRatingFormData:V}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(d=_.k(l(),UWq))==null?void 0:d.submitFormParams},disableDuringSubmission:!0})});
return _.N("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.N(_.TS,{data:function(){var Y=_.k(l(),UWq);if(Y){var c;var d={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:Y==null?void 0:(c=Y.note)==null?void 0:c.headerText}]}],delimiter:"\u2022"}},existingNote:Y.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else d=void 0;return d}},{noteViewModel:function(Y){return _.N("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.N(Y3,{data:Y.data}))}}),_.N(_.TS,{data:function(){var Y;
return(Y=z.data())==null?void 0:Y.helpfulnessValue}},{radioButtonGroupViewModel:function(Y){return _.N("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.N(_.$hq,{data:Y.data,
onSelected:g,selectedKey:b}))}}),_.N(_.E,{cond:G,
then:function(){return _.N("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.N("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.N(_.Rf,{text:function(){var Y;return(Y=z.data())==null?void 0:Y.helpfulReasonQuestion}})),_.N(_.TS,{data:function(){var Y;
return(Y=z.data())==null?void 0:Y.helpfulReasons}},{checkboxGroupViewModel:function(Y){return _.N(wCy,{data:Y.data,
onItemTap:y,selectedKeys:Z,controlledMode:!0})}}))}}),_.N(_.E,{cond:u,
then:function(){return _.N("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.N("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.N(_.Rf,{text:function(){var Y;return(Y=z.data())==null?void 0:Y.notHelpfulReasonQuestion}})),_.N(_.TS,{data:function(){var Y;
return(Y=z.data())==null?void 0:Y.notHelpfulReasons}},{checkboxGroupViewModel:function(Y){return _.N(wCy,{data:Y.data,
onItemTap:F,selectedKeys:f,controlledMode:!0})}}))}}),_.N(_.E,{cond:function(){return!G()&&!u()},
then:function(){return _.N(_.TS,{data:function(){var Y;return(Y=z.data())==null?void 0:Y.helpfulNoteFeatures}},{alertBannerViewModel:function(Y){return _.N("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.N(_.Tzw,{data:Y.data}))}})}}))},"rg"),"yt-note-user-rating-view-model",{props:{data:_.mB}});_.uO(Y3,"yt-note-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=_.F1(hMK,_.Df(function(){var I;return(I=z.data())==null?void 0:I.noteFeedEntityKey},""));
return _.N("yt-notes-wrapper-view-model",{class:_.m9("ytNotesWrapperViewModelHost")},_.N(_.E,{cond:function(){var I,b,v;return!((I=z.data())==null||!I.existingNotes)||!((b=z.data())==null||!b.currentNote)&&!((v=l())==null||!v.contributorNote)},
then:function(){return _.N(_.xP,null,_.N(_.TS,{data:function(){var I,b,v,M;return((b=_.k((I=z.data())==null?void 0:I.currentNote,arK))==null?0:(v=b.noteData)==null?0:v.isPublished)?(M=z.data())==null?void 0:M.currentNote:void 0}},{noteViewModel:function(I){return _.N(Y3,{data:I.data})}}),_.N(_.TS,{data:function(){var I;
return(I=z.data())==null?void 0:I.existingNotes}},{noteViewModel:function(I){var b=I.data;
return _.N(_.E,{cond:function(){var v,M;return(v=b())==null?void 0:(M=v.noteData)==null?void 0:M.isPublished},
then:function(){return _.N(Y3,{data:b})}})}}),_.N(_.TS,{data:function(){var I,b,v,M;
return((b=_.k((I=z.data())==null?void 0:I.currentNote,arK))==null?0:(v=b.noteData)==null?0:v.isPublished)?void 0:(M=z.data())==null?void 0:M.currentNote}},{noteViewModel:function(I){return _.N(Y3,{data:I.data})}}),_.N(_.TS,{data:function(){var I;
return(I=z.data())==null?void 0:I.existingNotes}},{noteViewModel:function(I){var b=I.data;
return _.N(_.E,{cond:function(){var v,M;return!((v=b())==null?0:(M=v.noteData)==null?0:M.isPublished)},
then:function(){return _.N(Y3,{data:b})}})}}))},
else:function(){return _.N(_.TS,{data:function(){var I;return(I=z.data())==null?void 0:I.zeroStateData}},{contributorZeroStateViewModel:Pqq})}}))},"sg"),"yt-notes-wrapper-view-model",{props:{data:_.mB}});var Ti=_.P(function(z){var l=_.xC(z,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),I=l.label,b=l.text,v=l.placeholder,M=l.hint;z=l.rows;var x=l.overflowStyle,g=l.outline,G=l.disabled,u=l.disableNewLines,Z=l.characterLimit,H=l.validation,y=l.onInput,f=_.VK("textarea");l=_.D(_.Br(function(){return b()}));
var R=l.next().value,F=l.next().value;l=_.D(_.Z_(!1,void 0,"u9PDq"));var Y=l.next().value,c=l.next().value,d=function(){c(!0)},V=function(){c(!1)};
_.Sm(function(){var P7=f.value,o1=x(),z_=R();o1==="expand-vertically"&&z_&&AEK(P7);f.value.addEventListener("focusin",d);f.value.addEventListener("focusout",V)});
_.cb(function(){f.value.removeEventListener("focusin",d);f.value.removeEventListener("focusout",V)});
var A=function(){var P7;return(P7=H())==null?void 0:P7.validate(R())},W=function(){return Z()&&!A()&&R().length>Z().maxChars},L=function(){return!!A()||W()};
l=_.KK(function(P7){if(!P7.currentTarget)return!1;P7=P7.currentTarget;F(P7.value);x()==="expand-vertically"&&AEK(P7);y==null||y(P7.value);return!0});
var lH=_.KK(function(P7){u()&&P7.key==="Enter"&&P7.preventDefault();return!1}),Gk=_.KK(function(){f.value.focus()}),uH=function(){return v()||I()},Xt={},R1={},H7={};
return _.N("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.N("div",{class:_.m9("ytStandardsTextareaShapeTextareaContainer",(Xt.ytStandardsTextareaShapeTextareaContainerOutline=g,Xt.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=G,Xt.ytStandardsTextareaShapeTextareaContainerOutlineError=L,Xt)),"on:click":Gk},_.N("label",{class:_.m9("ytStandardsTextareaShapeLabel",(R1.ytStandardsTextareaShapeLabelFocused=Y,R1.ytStandardsTextareaShapeLabelDisabled=G,R1.ytStandardsTextareaShapeLabelError=
function(){return L()&&!G()},R1.ytStandardsTextareaShapeLabelHidden=function(){return!Y()&&!R()&&!!uH()},R1))},I),_.N("div",{class:_.m9("ytStandardsTextareaShapePlaceholder",(H7.ytStandardsTextareaShapePlaceholderVisible=function(){return!Y()&&!R()},H7)),
"aria-hidden":"true"},uH),_.N("textarea",{el:f,class:"ytStandardsTextareaShapeTextarea",rows:z,disabled:G,placeholder:uH,"on:input":l,"on:keydown":lH},R)),_.N(_.E,{cond:function(){return M()&&!L()},
then:function(){var P7={};return _.N("div",{class:_.m9("ytStandardsTextareaShapeHint",(P7.ytStandardsTextareaShapeHintDisabled=G,P7))},_.N("div",{class:"ytStandardsTextareaShapeHintHintMessage"},M))}}),_.N(_.E,{cond:A,
then:function(){return _.N(Ael,{disabled:G},_.N("div",{class:"ytStandardsTextareaShapeErrorMessage"},A))}}),_.N(_.E,{cond:Z,
then:function(P7){return _.N(_.E,{cond:W,then:function(){return _.N(Ael,{disabled:G},_.N("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return P7().errorMessage}),_.N("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return R().length+"/"+P7().maxChars}))}})}}))},"tg");
Ti.idomCompat={callbacks:{onInput:!0}};var Ael=_.P(function(z){var l={};return _.N("div",{class:_.m9("ytStandardsTextareaShapeError",(l.ytStandardsTextareaShapeErrorDisabled=z.disabled,l)),role:"alert"},_.N(_.qt,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),z.children)},"ug");_.WI1=_.P(function(z){var l=z.data;return _.N("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.N(Ti,{text:z.text,label:function(){var I;return(I=l().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=l().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=l().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=l().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=l().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:z.disabled,disableNewLines:function(){var I;return(I=l().displayProperties)==null?void 0:I.disableNewLines},
onInput:z.onInput,characterLimit:z.characterLimit,validation:z.validation,rows:function(){var I;return(I=l().displayProperties)==null?void 0:I.rows}}))},"vg");_.nF0=_.P(function(z){var l=z.data;return _.N("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.N(Ti,{text:z.text,label:function(){var I;return(I=l().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=l().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=l().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=l().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=l().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=l().displayProperties)==null?void 0:I.disableNewLines},
onInput:z.onInput,characterLimit:z.characterLimit,validation:z.validation,rows:function(){var I;return(I=l().displayProperties)==null?void 0:I.rows}}))},"wg");var LIC=_.P(function(z){var l=_.D(_.Br(function(){var uH,Xt;return((uH=z.data().structuredContextNoteFormSchema)==null?0:(Xt=uH.initialValues)==null?0:Xt.noteBody)?z.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=l.next().value,b=l.next().value;
l=_.D(_.Br(function(){z.data();return!1}));
var v=l.next().value,M=l.next().value;l=_.D(_.Br(function(){z.data();return!1}));
var x=l.next().value,g=l.next().value;l=_.D(_.Br(function(){var uH,Xt;return((uH=z.data().structuredContextNoteFormSchema)==null?0:(Xt=uH.initialValues)==null?0:Xt.timestamp)?z.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var G=l.next().value,u=l.next().value;l=_.D(_.Br(function(){z.data();return!1}));
var Z=l.next().value,H=l.next().value;l=_.D(_.Br(function(){var uH,Xt;return((uH=z.data().structuredContextNoteFormSchema)==null?0:(Xt=uH.initialValues)==null?0:Xt.sources)?[z.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var y=l.next().value,f=l.next().value;l=_.D(_.Br(function(){z.data();return!1}));
var R=l.next().value,F=l.next().value;l=_.D(_.Br(function(){return!1}));
var Y=l.next().value,c=l.next().value;_.Sm(function(){var uH;_.bGC((uH=z.data().structuredContextNoteFormSchema)==null?void 0:uH.id,{isSubmitting:Y,onSubmit:function(){c(!0);var Xt=znl(I(),G(),y(),z.data()),R1=_.pG().resolve(_.DQ);Xt&&R1&&R1.resolveCommand(Xt,{commandController:{onSuccess:function(){c(!1)}}})},
isValid:function(){return v()&&!x()&&!Z()&&!R()}})});
var d=function(uH){if(uH!==void 0&&(b(uH),!v()&&uH.length>0&&M(!0),v())){var Xt=LZc(z.data());if(Xt){var R1=Xt.minLength;Xt=Xt.maxLength;R1&&uH.length<R1?g(!0):Xt&&uH.length>Xt?g(!0):g(!1)}}},V=function(uH){if(uH!==void 0){u(uH);
if(uH.length>0){var Xt,R1,H7,P7,o1=aQ0((Xt=z.data())==null?void 0:(R1=Xt.structuredContextNoteFormSchema)==null?void 0:(H7=R1.fieldSchemas)==null?void 0:(P7=H7.timestamp)==null?void 0:P7.validationSchema);if(o1&&(Xt=o1.regex)&&!(new RegExp(Xt)).test(uH)){H(!0);return}}H(!1)}},A=function(uH){if(uH!==void 0){var Xt=uH.split(/[ \n]/).map(function(R1){return R1.trim()});
f(Xt);if(uH.length>0)for(uH=_.D(Xt),Xt=uH.next();!Xt.done;Xt=uH.next())if(!JEc(Xt.value)){F(!0);return}F(!1)}},W=function(){return{validate:function(uH){if(v()){var Xt=LZc(z.data());
if(Xt){var R1=Xt.minLength;Xt=Xt.translations;if(R1&&uH.length<R1)return Xt==null?void 0:Xt.minLengthErrorMessage}}}}},L=function(){var uH=LZc(z.data()),Xt=uH==null?void 0:uH.maxLength,R1;
uH=uH==null?void 0:(R1=uH.translations)==null?void 0:R1.maxLengthErrorMessage;if(Xt&&uH)return{maxChars:Xt,errorMessage:uH}},lH=function(){return{validate:function(uH){if(uH){var Xt,R1,H7,P7,o1=aQ0((Xt=z.data())==null?void 0:(R1=Xt.structuredContextNoteFormSchema)==null?void 0:(H7=R1.fieldSchemas)==null?void 0:(P7=H7.timestamp)==null?void 0:P7.validationSchema);
if(o1&&(Xt=o1.regex,o1=o1.translations,Xt&&!(new RegExp(Xt)).test(uH)))return o1==null?void 0:o1.regexErrorMessage}}}},Gk=function(){return{validate:function(uH){if(uH){var Xt,R1,H7,P7,o1=j34((Xt=z.data())==null?void 0:(R1=Xt.structuredContextNoteFormSchema)==null?void 0:(H7=R1.fieldSchemas)==null?void 0:(P7=H7.sources)==null?void 0:P7.validationSchema);
if(o1&&(Xt=o1.translations,Xt==null?0:Xt.selectedErrorMessage))for(uH=uH.split(/[ \n]/).map(function(z_){return z_.trim()}),uH=_.D(uH),R1=uH.next();!R1.done;R1=uH.next())if(!JEc(R1.value))return uH=void 0,(uH=Xt)==null?void 0:uH.selectedErrorMessage}}}};
return _.N("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.N("div",{class:"ytStructuredContextNoteViewModelTextField"},_.N(_.TS,{data:function(){var uH;return(uH=z.data())==null?void 0:uH.noteContents}},{textFormFieldViewModel:function(uH){return _.N(_.nF0,{data:uH.data,
onInput:d,validation:W,characterLimit:L})},
textFieldViewModel:function(uH){return _.N(_.WI1,{data:uH.data,onInput:d,validation:W,characterLimit:L})}})),_.N("div",{class:"ytStructuredContextNoteViewModelTextField"},_.N(_.TS,{data:function(){var uH;
return(uH=z.data())==null?void 0:uH.noteTimestamp}},{textFormFieldViewModel:function(uH){return _.N(_.nF0,{data:uH.data,
onInput:V,validation:lH})},
textFieldViewModel:function(uH){return _.N(_.WI1,{data:uH.data,onInput:V,validation:lH})}})),_.N("div",{class:"ytStructuredContextNoteViewModelTextField"},_.N(_.TS,{data:function(){var uH;
return(uH=z.data())==null?void 0:uH.noteSources}},{textFormFieldViewModel:function(uH){return _.N(_.nF0,{data:uH.data,
onInput:A,validation:Gk})},
textFieldViewModel:function(uH){return _.N(_.WI1,{data:uH.data,onInput:A,validation:Gk})}})))},"xg");
LIC.idomCompat=!0;_.uO(LIC,"yt-structured-context-note-view-model",{props:{data:_.mB}});var Uhs=_.P(function(z){var l=_.D(_.Br(function(){var M;if((M=z.controlled)==null?0:M.call(z))return[];var x;return(((x=z.data())==null?void 0:x.chips)||[]).map(function(g){g=_.k(g,_.EE);if(g==null?0:g.selected)return lrS(g.chipValue)}).filter(function(g){return g!==void 0})})),I=l.next().value,b=l.next().value,v=function(M){var x=lrS(M.chipValue);
if(x!==void 0){var g;if((g=z.controlled)==null?0:g.call(z))return void z.controlled().onTap(x);M=I().includes(x)?[].concat(_.ht(I().filter(function(u){return u!==x}))):[].concat(_.ht(I()),[x]);
b(M);var G;if((G=z.uncontrolled)==null?0:G.call(z))z.uncontrolled().onUpdate(M)}};
return _.N("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.N(_.qy,{each:function(){return z.data().chips||[]}},function(M){return _.N("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.N(_.Kiu,{data:function(){return _.k(M,_.EE)},
selected:function(){var x;if(x=_.k(M,_.EE)){var g=lrS(x.chipValue);if(g!==void 0){var G;x=((G=z.controlled)==null?0:G.call(z))?z.controlled().selectedValues.includes(g):I().includes(g)}else x=void 0}else x=!1;return x},
callback:v}))}))},"yg");var aA8=_.P(function(z){var l=z.data;var I=function(){var g;return((g=l())==null?void 0:g.flowStateKey)||""},b=_.F1(_.b9,I),v=function(){var g;
return(g=_.k(b(),V80))==null?void 0:g.chips},M=function(g){if(g!==void 0){var G=v()||[];
G=G.find(function(u){return u===g})?G.filter(function(u){return u!==g}):[].concat(_.ht(G),[g]);
G=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.k(b(),V80),{chips:G})});_.pE(_.cU("flowStateEntity",I(),G))}},x=function(){var g;
return _.k((g=l())==null?void 0:g.inputBox,jws)};
z=_.S1(function(g){var G=x();G=!(G==null?0:G.maxChars)||g.length<=G.maxChars;g=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.k(b(),V80),{detail:g}),abuseReportFlowState:Object.assign({},_.k(b(),Jj),{navigationEnabled:G})});_.pE(_.cU("flowStateEntity",I(),g))},150);
return _.N("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.N("div",{class:"ytFeedbackFormViewModelChips"},_.N(_.TS,{data:function(){var g;return(g=l())==null?void 0:g.chipSelection}},{chipSelectionFormFieldViewModel:function(g){return _.N(Uhs,{data:g.data,
controlled:function(){return{selectedValues:v()||[],onTap:M}}})}})),_.N("div",{class:"ytFeedbackFormViewModelInputBox"},_.N(Ti,{text:function(){var g;
return(g=_.k(b(),V80))==null?void 0:g.detail},
placeholder:function(){var g;return((g=x())==null?void 0:g.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var g=x();if(g&&g.maxChars)return{maxChars:g.maxChars,errorMessage:g.maxCharsExceededErrorMessage||""}},
onInput:z})),_.N("div",{class:"ytFeedbackFormViewModelFooterText"},_.N(_.Rf,{text:function(){return l().footerText}})))},"zg");
aA8.idomCompat=!0;_.uO(aA8,"yt-feedback-form-view-model",{props:{data:_.mB}});var Vjl=_.P(function(z){var l=z.data;var I=function(){return l().flowStateKey||""},b=_.F1(zMS,I),v=function(){return _.k(b(),Jj)},M=function(){if(_.C("enable_gff_accessibility_fix")){var x=!0,g;
if((g=v())==null?0:g.navigationEnabled){var G;_.ae((G=v())==null?void 0:G.navigationCommand);x=!1}g=Object.assign({},b(),{abuseReportFlowState:Object.assign({},v(),{isReportFormDirty:x})});_.pE(_.cU("flowStateEntity",I(),g))}else _.ae((x=v())==null?void 0:x.navigationCommand)};
return _.N("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.N("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.N(_.TS,{data:function(){return l().cancelButton}},{buttonViewModel:function(x){return _.N(_.h4,{data:x.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}}),_.N(_.TS,{data:function(){var x;
if(l().navButton){var g=Object;var G=g.assign,u=_.k(l().navButton,_.N1),Z=((x=v())==null?0:x.navigationEnabled)||_.C("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",H,y;x=_.k((H=v())==null?void 0:H.navigationCommand,_.Ax);H=(y=_.k(x,_.AK))==null?void 0:y.url;g={buttonViewModel:G.call(g,{},u,{state:Z,iconName:H?"OPEN_IN_NEW":""})}}else g=void 0;return g}},{buttonViewModel:function(x){return _.N(_.h4,{data:x.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}})))},"Ag");
Vjl.idomCompat=!0;_.uO(Vjl,"yt-report-form-bottom-bar-view-model",{props:{data:_.mB}});var jKF=_.P(function(z){var l=z.nextStep;return _.N("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.N("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.N(_.qt,{icon:function(){return l().iconName||""}})),_.N("div",null,_.N(_.Rf,{text:function(){return l().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Bg"),JeF=_.P(function(z){var l=z.data;
var I,b=(I=_.pG().resolve(_.MB(_.I2)))==null?void 0:I(),v=_.F1(_.b9,function(){return l().flowStateKey||""});
return _.N("yt-report-form-confirmation-page-view-model",{class:function(){var M;return((M=_.k(v(),Jj))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.N("div",{class:function(){var M;
return((M=_.k(v(),Jj))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.N(_.pK,{data:function(){return b&&l().imageDark?l().imageDark:l().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.N("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.N("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return l().confirmationHeader}),_.N("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.N(_.Rf,{text:function(){return l().confirmationText}})),_.N("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.N(_.Rf,{text:function(){return l().lawEnforcementText}})),
_.N("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return l().whatToExpectHeader}),_.N(_.E,{cond:function(){return l().nextSteps},
then:function(M){return _.N("div",null,_.N(_.qy,{each:M},function(x){return _.N(jKF,{nextStep:x})}))}}),_.N(_.E,{cond:function(){return l().legalReportText},
then:function(M){return _.N("div",null,_.N(_.Rf,{text:M,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Cg");
JeF.idomCompat=!0;_.uO(JeF,"yt-report-form-confirmation-page-view-model",{props:{data:_.mB}});var z48=_.P(function(z){var l=z.data;var I=function(){var M;return((M=_.k(l().inputBox,jws))==null?void 0:M.maxChars)||500},b=function(){return l().flowStateKey||""},v=_.F1(_.b9,b);
z=_.S1(function(M){M=Object.assign({},v(),{flowFormState:{isValid:M.length<=I()},abuseReportFlowState:{userComments:M,navigationEnabled:!(M.length>I()),isReportFormDirty:!0}});_.M8().dispatch(_.sc("flowStateEntity",b(),M))},150);
_.Sm(function(){var M=Object.assign({},v(),{flowFormState:{isValid:!0}});_.M8().dispatch(_.sc("flowStateEntity",b(),M))});
return _.N("yt-report-form-details-page-view-model",{class:function(){var M;return((M=_.k(v(),Jj))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.N("h1",{class:function(){var M;
return((M=_.k(v(),Jj))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return l().detailsPageHeader}),_.N("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.N(_.Rf,{text:function(){return l().bodyText}})),_.N("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.N(Ti,{label:function(){var M;
return((M=_.k(l().inputBox,jws))==null?void 0:M.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var M;return{errorMessage:((M=_.k(l().inputBox,jws))==null?void 0:M.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:z})))},"Dg");
z48.idomCompat=!0;_.uO(z48,"yt-report-form-details-page-view-model",{props:{data:_.mB}});var lV8=_.P(function(z){var l=z.data;var I=_.z1("div"),b=function(){return l().flowStateKey||""},v=_.F1(_.b9,b),M=function(){return _.k(v(),Jj)};
_.Te(function(){var x,g;if(((x=M())==null?0:x.isReportFormDirty)&&((g=M())==null||!g.navigationEnabled)&&_.C("enable_gff_accessibility_fix")){var G;if(((G=M())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var u;(u=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||u.scrollIntoView()}else{var Z;(Z=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||Z.scrollIntoView()}}},"nktJfe");
return _.N("yt-report-form-reason-select-page-view-model",{class:function(){var x;return((x=M())==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.N("h1",{class:function(){var x;
return((x=M())==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return l().pageHeader}),_.N("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.N(_.Rf,{text:function(){return l().bodyText}})),_.N("div",{class:function(){var x;
return((x=M())==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.N(_.E,{cond:function(){var x,g;
return((x=M())==null?void 0:x.isReportFormDirty)&&!((g=M())==null?0:g.navigationEnabled)&&_.C("enable_gff_accessibility_fix")},
then:function(){return _.N("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:I},_.N(_.qt,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.N("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return l().emptyReasonSelectErrorMessage}))}}),_.N(_.$hq,{data:function(){return _.k(l().radioButtonGroup,_.zi)},
onSelected:function(x,g){x=Object.assign({},v(),{abuseReportFlowState:Object.assign({},M(),{reasonKey:g.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:g.command})});_.pE(_.cU("flowStateEntity",b(),x))},
selectedKey:function(){var x;return(x=M())==null?void 0:x.reasonKey},
groupName:"report-form-reason-select-page"})))},"Eg");
lV8.idomCompat=!0;_.uO(lV8,"yt-report-form-reason-select-page-view-model",{props:{data:_.mB}});var IV8=_.P(function(z){var l=z.data;var I,b=(I=_.pG().resolve(_.MB(_.I2)))==null?void 0:I();return _.N("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.N("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.N(_.pK,{data:function(){return b&&l().imageDark?l().imageDark:l().image},
alt:""})),_.N("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.N("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return l().header}),_.N(_.Rf,{text:function(){return l().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Fg");
IV8.idomCompat=!0;_.uO(IV8,"yt-report-form-sign-in-page-view-model",{props:{data:_.mB}});_.bQK=(0,_.H24)(_.IG.talkToRecs,{talkToRecsStateSelector:function(z){return z}});_.uO(_.P(function(z){var l=z.data;var I=_.nK(_.bQK.talkToRecsStateSelector),b=function(){return l().titleSuperscript},v=function(){return l().answersShelf},M=function(){return l().videoShelf},x=function(){var Gk;
return(Gk=l().textInputPlaceholder)==null?void 0:Gk.content},g=function(){return l().showOpenTextInput},G=function(){var Gk;
return(Gk=l().textInputValue)==null?void 0:Gk.content},u=function(){return l().isMultiTurnFlow?l().resetButtonViewModel:void 0},Z="",H=function(){return l().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
z=_.D(_.Z_("",void 0,"aCjEZb"));var y=z.next().value,f=z.next().value;z=_.D(_.Z_(!1,void 0,"VNSW6c"));var R=z.next().value,F=z.next().value,Y=function(){return{state:R()||y()?"active":"disabled",disabled:!(R()||y())}};
_.c8(function(){if(g()){G()&&f(G());var Gk;if(!u()&&((Gk=I())==null?0:Gk.stepStates)){var uH;Gk=Object.keys((uH=I())==null?void 0:uH.stepStates);uH=Gk[Gk.length-1];var Xt,R1;(uH=(Xt=I().stepStates[uH])==null?void 0:(R1=Xt.userQuery)==null?void 0:R1.userQuery)&&f(uH);_.pE(L50())}}});
_.cb(function(){_.pE(L50())});
var c=function(Gk){var uH=l().onUpdateText;uH&&_.ae(uH,{form:{userQuery:Gk}});f(Gk)},d=_.S1(function(Gk){c(Gk.target.value.trim())},150),V=_.KK(function(Gk){var uH;
Z=(uH=Gk.target.value)==null?void 0:uH.trim();d(Gk);return!1}),A=_.KK(function(Gk){Gk.key==="Enter"&&(R()||y())&&(c(Gk.target.value.trim()),L());
return!1}),W=function(Gk,uH){F(uH);
if(uH){if(l().isMultiTurnFlow&&!Z){var Xt;c((Xt=Gk==null?void 0:Gk.text)!=null?Xt:"")}l().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&L()}else f(Z)},L=function(){var Gk=void 0,uH=_.k(l().nextButtonViewModel,_.N1),Xt,R1;
if(uH==null?0:(Xt=uH.loggingDirectives)==null?0:(R1=Xt.clientVeSpec)==null?0:R1.uiType){var H7,P7;Gk=_.kU((H7=uH.loggingDirectives)==null?void 0:(P7=H7.clientVeSpec)==null?void 0:P7.uiType)}(uH=l().onNextStepCommand)&&_.ae(uH,{forceClickLogging:!0,clickedVisualElement:Gk})};
z=_.VK("yt-talk-to-recs-view-model");var lH={};return _.N("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:z},_.N("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.N(_.TS,{data:function(){return l().topCornerButton}},{buttonViewModel:_.h4})),_.N("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.N("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.N(_.Rf,{text:function(){return l().title}}),_.N(_.E,{cond:b,
then:function(){return _.N("sup",{class:"ytwTalkToRecsSuperScript"},_.N(_.Rf,{text:b}))}})),_.N("div",{class:"ytwTalkToRecsSubtitle"},_.N(_.Rf,{text:function(){return l().subtitle}})),_.N("div",{class:"ytwTalkToRecsResultsShelf"},_.N(_.E,{cond:v,
then:function(){return _.N(_.TS,{data:v},{chipsShelfViewModel:function(Gk){return _.N("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.N(_.x6,{data:Gk.data,callback:W,selectionBehavior:H}))}})}}),_.N(_.E,{cond:M,
then:function(){return _.N(_.TS,{data:M},{horizontalShelfViewModel:function(Gk){return _.N("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.N(_.E_,{data:Gk.data,thumbnailAspectRatio:0}))}})}})),_.N("div",{class:_.m9("ytwTalkToRecsRefinementContainer",(lH.ytwTalkToRecsBottomMargin=function(){return l().isMultiTurnFlow},lH))},_.N(_.E,{cond:g,
then:function(){return _.N("div",{class:"ytwTalkToRecsUserInputBox"},_.N("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:x,value:y,"on:input":V,"on:keyup":A,maxlength:200}))}}),_.N(_.TS,{data:function(){return l().isMultiTurnFlow?l().nextButtonViewModel:void 0}},{buttonViewModel:function(Gk){return _.N("div",{class:"ytwTalkToRecsFlowControlButtons"},_.N(_.h4,{data:Gk.data,
buttonOverrides:Y}))}}),_.N(_.TS,{data:u},{buttonViewModel:function(Gk){return _.N("div",{class:"ytwTalkToRecsFlowControlButtons"},_.N(_.h4,{data:Gk.data,
onClick:function(){var uH=_.k(l().resetButtonViewModel,_.N1);c(y());(uH=uH==null?void 0:uH.onTap)&&_.ae(uH)}}))}}))))},"Gg"),"yt-talk-to-recs-view-model",{props:{data:_.mB}});var Irc={sources:[{clientResource:{imageName:"CHECK"}}]};_.vOS=_.P(function(z){var l=_.VK("div");z=_.xC(z,{error:void 0});var I=z.data,b=z.error,v=z.onSelected;z=_.D(_.Br(function(){return M88(I())}));
var M=z.next().value,x=z.next().value;OpK(I,function(y){x(y);var f,R,F=v8X((f=I().options)==null?void 0:(R=f[y])==null?void 0:R.value,I().type);v==null||v(F);l.value.focus()});
z=_.KK(function(){if(!I().disabled){var y=I(),f=M(),R=l.value;y.options&&(y=bp1(y.options,f,y.label),_.pG().resolve(_.In).openSheet({viewModel:y},R))}});
var g=_.OSY(),G=function(){return!!b()},u=function(){return!!I().disabled},Z={},H={};
return _.N("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.N("div",{class:_.m9("ytDropdownViewModelDropdownContainer",(Z.ytDropdownViewModelDropdownContainerErrorBorder=G,Z.ytDropdownViewModelDropdownContainerDisabled=u,Z)),"on:click":z,el:l,role:"combobox",tabindex:0,"on:keydown":g,"aria-invalid":G,"aria-disabled":u,"aria-describedby":function(){return G()?"dropdown-view-model-error":void 0}},_.N("div",{class:"ytDropdownViewModelText"},pd8(I,G,M),DWc(I,M)),_.N("div",{class:_.m9("ytDropdownViewModelChevronDown",
(H.ytDropdownViewModelChevronDownDisabled=u,H))},_.N(_.qt,{icon:"CHEVRON_DOWN"}))),xWK(I,b))},"Hg");_.uO(_.P(function(z){var l=z.data;var I=function(v){var M=G6S(l());M.videoMetadata||(M.videoMetadata={});M.videoMetadata.sponsorshipsMetadata||(M.videoMetadata.sponsorshipsMetadata={});M.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(v)},b=function(v){var M=G6S(l());
M.scheduledRedirectMetadata||(M.scheduledRedirectMetadata={});M.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(v)};
return _.N("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.N("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.N("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.N(_.Rf,{text:function(){return l().title}}),_.N(_.qt,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.N(_.Rf,{text:function(){return l().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.N(_.TS,{data:function(){return l().tierChoices}},{dropdownViewModel:function(v){return _.N("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.N(_.vOS,{data:v.data,
onSelected:I}))}}),_.N(_.TS,{data:function(){return l().startTimeChoices}},{dropdownViewModel:function(v){return _.N("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.N(_.vOS,{data:v.data,
onSelected:b}))}}),_.N(_.Rf,{text:function(){return l().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.N("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.N(_.TS,{data:function(){return l().scheduleButton}},{panelFooterViewModel:_.Qx})))},"Ig"),"ytfz-schedule-fanzone-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;z=z.className===void 0?"":z.className;var I=_.F1(zMS,function(){return l().flowStateEntityKey||""}),b={};
b=_.m9("ytFlowBottomBarViewModelFlowBottomBarButtons",(b.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},b));
var v={},M=_.m9("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",b,(v.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},v.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},v));
v={};var x=_.m9("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",b,(v.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},v.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},v));
b={};b=_.m9("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
b));
z=_.m9("ytFlowBottomBarViewModelHost",z);return _.N("yt-flow-bottom-bar-view-model",{class:z},_.N(_.E,{cond:function(){var g;return(g=l())==null?void 0:g.textSection},
then:function(g){return _.N("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.N(_.Rf,{text:g}))}}),_.N("div",{class:b},_.N(_.TS,{data:function(){return l().secondaryButton}},{buttonViewModel:function(g){return _.N(_.h4,{data:g.data,
className:x})}}),_.N(_.TS,{data:function(){return l().primaryButton}},{buttonViewModel:function(g){return _.N(_.h4,{data:g.data,
className:M,buttonOverrides:function(){var G;return{disabled:!((G=I())==null||!G.primaryButtonDisabled)}}})}})))},"Jg"),"yt-flow-bottom-bar-view-model",{props:{data:_.mB,
className:_.GH}});var Mnq="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),c5=function(){var z=_.q.apply(this,arguments)||this;z.enableScrollingFix=!0;z.bottomBar=!1;z.fitContent=!1;return z};
_.m(c5,_.q);_.p=c5.prototype;_.p.ready=function(){_.C("enable_pdp_icon_prefetch")&&_.W5F(_.pG().resolve(_.Iz),0,Mnq)};
_.p.focus=function(z){this.topBar?_.j8(this.topBar,z):this.paperDialog.focus(z)};
_.p.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19108_scroller&&(this.JSC$19108_scroller.dialogElement=this.paperDialog,this.JSC$19108_scroller.attached&&typeof this.JSC$19108_scroller.attached==="function"&&this.JSC$19108_scroller.attached())};
_.p.onDataChanged=function(){var z;this.fitContent=!((z=this.data)==null||!z.fitContent);var l;this.bottomBar=!((l=this.data)==null||!l.bottomBar)};
_.p.onProgressChanged=function(){var z,l,I=((l=(z=this.data)==null?void 0:z.progress)!=null?l:0)*100;this.progressElement.style.width=I+"%"};
_.p.isProgressHidden=function(){var z;return!((z=this.data)==null?0:z.progress)};
_.p.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(z){return _.C("enable_wiz_next_lp2_msof")&&z&&!z.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
c5.prototype.onProgressChanged=c5.prototype.onProgressChanged;c5.prototype.onDataChanged=c5.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],c5.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],c5.prototype,"enableScrollingFix",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],c5.prototype,"bottomBar",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],c5.prototype,"fitContent",void 0);_.e([_.qX("#progress"),_.w("design:type",HTMLElement)],c5.prototype,"progressElement",void 0);_.e([_.qX("#scroller"),_.w("design:type",Object)],c5.prototype,"JSC$19108_scroller",void 0);_.e([_.qX("ytd-flow-top-bar-renderer"),_.w("design:type",HTMLElement)],c5.prototype,"topBar",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c5.prototype,"onDataChanged",null);_.e([_.By("data.progress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],c5.prototype,"onProgressChanged",null);_.e([_.S({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],c5);
_.r(c5,"ytd-flow-step-renderer",function(){if(dAq!==void 0)return dAq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return dAq=z},{mode:1});var pPs=function(z){this.resolveCommand=z;this.steps={}},DrX=function(z,l){l=_.D(l||[]);
for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=Object.values(I)[0],v=void 0;if((v=b)==null?0:v.stepId)z.steps[b.stepId]=I}},gOC=function(z,l){var I,b,v,M,x;
return _.O(function(g){if((I=z.state)==null||!I.currentStepId)return g.return(void 0);b=xrl(z);if(!b)return g.return(OQC(z));if(v=_.k(b,_.IxS)){var G;((G=v.screenLoggingData)==null?0:G.screenVeType)&&_.db(_.iY(),v.screenLoggingData.screenVeType);((M=v)==null?0:M.onStepStartCommand)&&z.resolveCommand((x=v)==null?void 0:x.onStepStartCommand,{})}if(v&&l){G=v;var u,Z,H,y;((u=l.flowLoggingData)==null?0:u.eventNamespace)&&((Z=G.flowEventData)==null?0:Z.eventType)&&((H=G.flowEventData)==null?0:H.eventMetadata)&&
((y=l.flowLoggingData)==null?0:y.flowType)&&(u=_.fr(l.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.Cr(_.kW(),u,l.flowLoggingData.flowType));l.steps&&!l.steps.includes(b)&&l.steps.push(b)}return g.return(b)})};
pPs.prototype.back=function(){var z;(z=this.state)!=null&&z.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
pPs.prototype.handleUpdateFlowCommand=function(z){z.steps&&DrX(this,z.steps);z.entityUpdateCommand&&this.resolveCommand(z.entityUpdateCommand,{});z.flowContinuationCommand&&(z=z.flowContinuationCommand)&&(this.getFlowContinuationCommand=z);this.awaitFlowContinuation&&(this.awaitFlowContinuation(xrl(this)),this.awaitFlowContinuation=void 0)};
pPs.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var OQC=function(z){return _.O(function(l){return z.getFlowContinuationCommand?l.return(new Promise(function(I){z.awaitFlowContinuation=I;z.getFlowContinuationCommand&&z.resolveCommand(z.getFlowContinuationCommand,{flow_state:z.state})})):l.return(Promise.resolve(void 0))})},xrl=function(z){var l;
if((l=z.state)!=null&&l.currentStepId)return z.steps[z.state.currentStepId]};var Sh=function(){var z=_.q.apply(this,arguments)||this;z.flowState=new pPs(function(l,I){I=I===void 0?{}:I;_.KE.instance.resolveCommand(l,{form:{form:I,element:z.hostElement}})});
z.initialState=!0;z.isLoading=!1;z.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"};z.containsTalkToRecs=!1;return z};
_.m(Sh,_.q);_.p=Sh.prototype;_.p.onPopupClosed=function(z){z&&this.hostElement!==z.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.p.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"}}}};
_.p.focus=function(z){var l=this;_.JP(function(){var I=_.Hy(l.hostElement).querySelector("ytd-flow-step-renderer");(I==null?0:I.topBar)?I.focus(z):l.topBar&&_.j8(l.topBar,z)},1)};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.p.computeTopBarHidden=function(z){var l;return!((l=_.k(z,_.IxS))==null||!l.topBarOverride)};
_.p.dataChanged=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1){((l=z.data)==null?0:l.steps)&&DrX(z.flowState,z.data.steps);if((I=z.data)==null?0:I.flowContinuationCommand){var v=z.flowState,M=z.data.flowContinuationCommand;M&&(v.getFlowContinuationCommand=M)}return b.yield(gOC(z.flowState,z.data),2)}z.currentFlowStep=b.yieldResult;_.qe(b)})};
_.p.flowChanged=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1){if(!z.flow)return I.return();z.flowState.state=z.flow;z.isLoading=!0;return I.yield(gOC(z.flowState,z.data),2)}l=I.yieldResult;if(!l||z.flow.isLoading)return I.return();z.currentFlowStep=l;z.initialState=!1;z.isLoading=!1;z.autofocusAndRefit();z.updateContainsTalkToRecs();_.qe(I)})};
_.p.updateContainsTalkToRecs=function(){var z,l=(z=_.k(this.currentFlowStep,_.IxS))==null?void 0:z.content;this.containsTalkToRecs=!!l&&!!_.k(l,b2y)};
_.p.autofocusAndRefit=function(){var z=this,l=_.pG().resolve(_.MB(_.T$)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),b=document.querySelector("yt-report-form-confirmation-page-view-model"),v=document.querySelector("yt-report-form-details-page-view-model"),M=document.querySelector("yt-report-form-reason-select-page-view-model"),x=document.querySelector("yt-contributor-zero-state-view-model"),
g=document.querySelector("yt-structured-context-note-view-model"),G=document.querySelector("yt-note-view-model");(!I&&l&&l.isKeyBoardInUse()||b||!I&&v||!I&&M||x||g||G)&&_.JW(this.hostElement);_.IR(this,function(){_.gC(z.hostElement,"yt-refit")})};
_.p.handleUpdateFlowCommand=function(z){this.data&&(z=_.k(z,lxs),z.targetId===this.data.targetId&&(z.flowContinuationCommand&&(this.data.flowContinuationCommand=z.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(z),this.autofocusAndRefit()))};
_.p.handleFlowNextStepCommand=function(z){this.data&&this.flow&&this.flow.key&&(z=_.k(z,JWK),z.targetId===this.data.targetId&&(z=z.stepId||"",this.ytdReduxBehavior.dispatch(_.sc("flowStateEntity",this.flow.key,{currentStepId:z,stepIdStack:(this.flow.stepIdStack||[]).concat(z)}))))};
_.p.handleFlowPrevStepCommand=function(z){if(this.data&&this.flow&&this.flow.key&&(z=_.k(z,zq8),z.targetId===this.data.targetId)){var l=[].concat(_.ht(this.flow.stepIdStack||[]));l.length>1?(l.pop(),this.ytdReduxBehavior.dispatch(_.sc("flowStateEntity",this.flow.key,{currentStepId:l[l.length-1],stepIdStack:l}))):z.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(z.onFirstStepCommand)}};
_.p.handleYpcCancelRecurrenceCommand=function(z){if(this.data&&this.flow&&this.flow.key&&(z=_.k(z,xAy),z.targetId===this.data.targetId&&z.endpointCommand)){var l=_.k(this.flow,O2l);l&&_.k(z.endpointCommand,_.YMu)&&(_.k(z.endpointCommand,_.YMu).feedbackData=l.surveyFeedback);this.ytComponentBehavior.resolveCommand(z.endpointCommand)}};
_.p.handlePartialUpdateFlowStateEntity=function(z){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.sc("flowStateEntity",this.flow.key,z,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Sh.prototype.flowChanged=Sh.prototype.flowChanged;Sh.prototype.dataChanged=Sh.prototype.dataChanged;Sh.prototype.onPopupClosed=Sh.prototype.onPopupClosed;_.e([_.t(_.gU),_.w("design:type",Object)],Sh.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Sh.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Sh.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Sh.prototype,"initialState",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Sh.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Object)],Sh.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],Sh.prototype,"currentFlowStep",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Sh.prototype,"onPopupClosed",null);_.e([_.X({selectorArgs:["data.flowStateEntityKey"],selector:zMS}),_.w("design:type",Object)],Sh.prototype,"flow",void 0);_.e([_.qX("ytd-flow-top-bar-renderer"),_.w("design:type",HTMLElement)],Sh.prototype,"topBar",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],Sh.prototype,"dataChanged",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Sh.prototype,"containsTalkToRecs",void 0);_.e([_.YE("flow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],Sh.prototype,"flowChanged",null);_.e([_.S({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Sh);
_.GRC=_.Hh()(Sh,"ytd-flow-root-renderer",function(){if(SNK!==void 0)return SNK;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return SNK=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var Nml;var VO=null;_.uO(_.P(function(z){return _.N("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.N("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.N(_.Rf,{text:function(){return z.data().text}}),_.N("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Kg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.mB}});var EOq=_.P(function(z){var l=z.playerControlsProps;var I=z.isShortsPage;return _.N("yt-bigboard",null,_.N(_.E,{cond:function(){return l().isDragging},
then:function(){return _.N("div",{class:"ytBigboardStoryboardHost"},_.N(_.h7S,{progressBarProps:l,isShortsPage:I}))}}))},"Lg");
EOq.idomCompat=!0;_.d6={ACCOUNT_LABEL:jV("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:jV("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:jV("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:jV("AD_BADGE_HINT"),AD_BADGE_TEXT:jV("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:jV("ALL_CHANNELS_LABEL"),AMBIENT_MODE:jV("AMBIENT_MODE"),AMBIENT_MODE_OFF:jV("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:jV("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:jV("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:jV("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:jV("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:jV("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:jV("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:jV("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:jV("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:jV("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:jV("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:jV("AUTO_ZOOM","Auto zoom"),BACK:jV("BACK"),CANCEL:jV("CANCEL"),CHANNEL_SWITCHER_LABEL:jV("CHANNEL_SWITCHER_LABEL"),CLOSE:jV("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:jV("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:jV("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:jV("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:jV("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:jV("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:jV("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:jV("COMMENT_MODAL_CONTENT"),CONFIRM_OK:jV("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:jV("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:jV("COPIED_TO_CLIPBOARD"),COPY:jV("COPY"),COPY_DEBUG_INFO:jV("COPY_DEBUG_INFO"),COPY_EMBED_CODE:jV("COPY_EMBED_CODE"),
COPY_LINK_LABEL:jV("COPY_LINK_LABEL"),COPY_VIDEO_URL:jV("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:jV("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:jV("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:jV("DELETE_FROM_DOWNLOADS"),DIALOG:jV("DIALOG"),DONE:jV("DONE"),DOWNLOAD:jV("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:jV("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:jV("FLAG_CONFIRM"),FLAG_CONTENT:jV("FLAG_CONTENT"),FLAG_LABEL:jV("FLAG_LABEL"),FLAG_TITLE:jV("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:jV("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:jV("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:jV("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:jV("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:jV("HIDE_SEARCH_FILTERS_LABEL"),HOME:jV("HOME","Home"),INVALID_RESPONSE_RECEIVED:jV("INVALID_RESPONSE_RECEIVED"),LIBRARY:jV("LIBRARY","Library"),LISTENING:jV("LISTENING"),LOADING:jV("LOADING"),LONG_PRESS_MIC_TO_SPEAK:jV("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:jV("LOOP"),MENU_DESKTOP:jV("MENU_DESKTOP"),
MENU_EXIT:jV("MENU_EXIT"),MENU_FEEDBACK:jV("MENU_FEEDBACK"),MENU_HELP:jV("MENU_HELP"),MENU_IMPRESSUM:jV("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:jV("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:jV("MENU_SETTINGS"),MENU_SIGN_IN:jV("MENU_SIGN_IN"),MENU_TITLE:jV("MENU_TITLE"),MENU_YOUR_DATA:jV("MENU_YOUR_DATA"),MORE_INFO:jV("MORE_INFO"),MORE_OPTIONS:jV("MORE_OPTIONS"),MUTE_VOLUME:jV("MUTE_VOLUME"),NEW_PLAYLIST:jV("NEW_PLAYLIST"),NEXT_VIDEO:jV("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:jV("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:jV("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:jV("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:jV("NOT_FOUND_TITLE"),NO_DOWNLOADS:jV("NO_DOWNLOADS"),NO_MIC_INPUT:jV("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:jV("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:jV("OOPS_MESSAGE"),OPEN_APP:jV("OPEN_APP"),OPEN_YOUTUBE:jV("OPEN_YOUTUBE"),PAUSE:jV("PAUSE"),PLAY:jV("PLAY"),PLAYER_CAPTION:jV("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:jV("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:jV("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:jV("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:jV("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:jV("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:jV("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:jV("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:jV("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:jV("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:jV("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:jV("PLAYER_MINIMIZE"),PLAYER_NEXT:jV("PLAYER_NEXT"),PLAYER_PAUSE:jV("PLAYER_PAUSE"),PLAYER_PLAY:jV("PLAYER_PLAY"),
PLAYER_PREVIOUS:jV("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:jV("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:jV("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:jV("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:jV("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:jV("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:jV("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:jV("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:jV("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:jV("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:jV("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:jV("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:jV("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:jV("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:jV("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:jV("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:jV("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:jV("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:jV("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:jV("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:jV("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:jV("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:jV("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:jV("PLAY_ALL"),PLEASE_FIX_ERRORS:jV("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:jV("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:jV("PREVIOUS_VIDEO"),PRIVACY_POLICY:jV("PRIVACY_POLICY"),RELOAD:jV("RELOAD"),REQUIRED_LABEL:jV("REQUIRED_LABEL"),SAVE_PLAYLIST:jV("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:jV("SCRUB_SLIDE_USER_EDU"),SEARCH:jV("SEARCH","Search"),
SEARCH_APPEND_LABEL:jV("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:jV("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:jV("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:jV("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:jV("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:jV("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:jV("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:jV("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:jV("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:jV("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:jV("SEEK_SLIDER"),SETTINGS_LABEL:jV("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:jV("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:jV("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:jV("SHOW_LESS"),SHOW_MORE:jV("SHOW_MORE"),SHOW_PLAYER_CONTROLS:jV("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:jV("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:jV("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:jV("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:jV("SIGN_IN_ON_WEB"),STABLE_VOLUME:jV("STABLE_VOLUME"),STABLE_VOLUME_OFF:jV("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:jV("STABLE_VOLUME_ON"),STATS_FOR_NERDS:jV("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:jV("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:jV("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:jV("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:jV("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:jV("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:jV("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:jV("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:jV("TIMESTAMP_SECONDS"),TOGGLE_OFF:jV("TOGGLE_OFF"),TOGGLE_ON:jV("TOGGLE_ON"),TRENDING:jV("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:jV("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:jV("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:jV("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:jV("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:jV("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:jV("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:jV("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:jV("VIDEO_LINK_LABEL")};var ug1=_.P(function(z){var l=z.playerApi;z=_.VK("button",function(b){_.Bj(b,36843)});
var I=jV("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.N("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.N("button",{el:z,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":_.KK(function(){_.XC(36843);l&&l().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.N("span",null,_.N(_.qt,{icon:"FAST_FORWARD"}))))},"Mg");var ZQl=_.P(function(z){var l=z.appApi;z=_.VK("button",function(b){_.Bj(b,62946)});
var I=jV("OPEN_IN_MINIPLAYER");return _.N("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.N("button",{el:z,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":_.KK(function(){_.XC(62946);var b,v;(v=(b=l()).openInMiniplayer)==null||v.call(b);return!1})},_.N(_.qt,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ng");var HQ8=_.P(function(z){var l=z.playerApi;z=_.VK("button",function(M){_.Bj(M,142812)});
var I=_.D(_.Z_(!1,void 0,"eOMRAb")),b=I.next().value,v=I.next().value;I=function(){return jV("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(b()?1:2)})};
return _.N("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.N("button",{el:z,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":_.KK(function(){_.XC(142812);if(l){var M=l(),x=b();M.setPlaybackRate(x?1:2);v(!b())}return!1})},_.N("span",null,_.N(_.qt,{icon:function(){return b()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Og");var y88=_.P(function(z){var l=z.title;var I=z.ariaLabel;var b=z.icon;var v=z.command;var M=z.veType;z=_.VK("button",function(x){M&&_.Bj(x,M())});
return _.N("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.N("button",{el:z,class:"ytdThumbnailOverlayButtonButton",title:l,"aria-label":I,"on:click":_.KK(function(){M&&_.XC(M());v&&_.pG().resolve(_.DQ).resolveCommand(v())})},_.N(_.qt,{icon:b})))},"Pg");var eV="";var fV1=_.P(function(z){var l=z.playerControlsProps,I=z.onClickFn;z=_.kz(function(){var M=l(),x=-1;M.captionsAvailable&&(x=M.captionsEnabled?1:0);return x},void 0,"MZ0Wqe");
var b=_.kz(function(){var M=l();return M.captionsAvailable?_.mY(M.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.mY("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),v=_.kz(function(){var M=l();
M=M.captionsAvailable?M.captionsEnabled:void 0;return M},void 0,"fhuQRe");
return _.N("yt-closed-captions-toggle-button",null,_.N(_.KF4,{captionIconType:z,ariaLabel:b,ariaPressed:v,onClick:function(M){var x=l();if(x.captionsAvailable){var g=x.playerApi;if(g){var G=x.playerApi;if(G){var u=eV;if(u){G=G.getOption("captions","track");var Z;eV=(Z=G?G.displayName:null)!=null?Z:u}else _.tj(G)?(u=_.oeu(G),eV=u.length?(Z=vss(u))?Z.displayName:u[0].displayName:""):eV=""}McC(g);_.C("mweb_disable_set_state_captions_killswitch")&&x.setState({captionsEnabled:!x.captionsEnabled})}}var H,
y;(y=(H=x.appApi).showCaptionsToggleToast)==null||y.call(H,x);I==null||I(M)},
isOverlay:!0}))},"Qg");var CMK=_.P(function(z){var l=z.data;return _.N("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.N(_.Nm,{data:function(){return{type:17,text:_.M0S(l().label)}}}))},"Rg");var kR0=_.P(function(z){var l=_.m9("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return z.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return z.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return z.size()==="small"?z.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
z.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.N("animated-seek-arrows",{class:_.m9("ytPlayerControlsAnimatedSeekArrowsHost")},_.N("span",{class:l}),_.N("span",{class:l}),_.N("span",{class:l}))},"Sg");
kR0.idomCompat=!0;var R4K=_.P(function(){var z=_.mY("PLAYER_SECONDS",{seconds_placeholder:"30"}),l=_.D(_.Z_(!1,void 0,"iRJu8c")),I=l.next().value,b=l.next().value,v=_.D(_.Z_(!1,void 0,"MPnizf"));l=v.next().value;var M=v.next().value;v={};var x=_.m9("jumpForwardOverlayOverlay",(v.jumpForwardOverlayOverlayHidden=l,v));_.Sm(function(){var g=null,G=null,u=function(){g!==null&&_.Y1().cancelJob(g);G!==null&&_.Y1().cancelJob(G);M(!0);b(!0);_.CK(_.Y1(),function(){M(!1)});
g=_.CK(_.Y1(),function(){M(!0);G=_.CK(_.Y1(),function(){b(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",u);_.cb(function(){window.removeEventListener("jump-forward-clicked",u)})});
return _.N("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.N(_.E,{cond:I,then:function(){return _.N("div",{class:x},_.N(kR0,{direction:1,size:"large"}),_.N("div",null,z))}}))},"Tg");var mrs=_.d6.MUTE_VOLUME,KGl=_.d6.UNMUTE_VOLUME,tn4=_.P(function(z){var l=z.muteIconType;var I=z.onClick;var b=z.useOutlineIcon;var v=z.useDelhiIcons;z=_.VK("button",function(g){_.Bj(g,28662)});
var M=function(){var g=l(),G=b==null?void 0:b(),u=v==null?void 0:v(),Z="",H="";switch(g){case -1:case 0:Z=G?"VOLUME_OFF":u?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";H=KGl;break;case 1:Z=G?"VOLUME_UP_OUTLINE":u?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";H=mrs;break;case 2:Z=G?"VOLUME_DOWN_OUTLINE":u?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";H=mrs;break;default:_.Ap(g)}return{iconName:Z,ariaLabel:H}},x=function(){return M().ariaLabel};
return _.N("ytm-mute-button",{class:"ytmMuteButtonHost"},_.N("button",{el:z,class:"ytmMuteButtonButton",title:x,"aria-label":x,"on:click":_.KK(function(g){_.XC(28662);I==null||I(g);return!1})},_.N("span",null,_.N(_.qt,{icon:function(){return M().iconName}}))))},"Ug");var Bms=_.P(function(z){var l=z.volumeProps;var I=z.onClickFn;var b=z.useOutlineIcon;var v=z.useDelhiIcons;return _.N("yt-mute-toggle-button",null,_.N(tn4,{muteIconType:function(){var M=l();return M.volumeMuted||M.volume===0?0:M.volume>50?1:2},
onClick:function(M){var x=l().playerApi;x&&(x.isMuted()?x.unMute():x.mute(!1));I==null||I(M)},
useOutlineIcon:function(){return!(b==null||!b())},
useDelhiIcons:function(){return!(v==null||!v())}}))},"Vg");
Bms.idomCompat=!0;var XPy=_.P(function(z){var l=z.data;var I=_.VK("ytm-paid-content-overlay-renderer");return _.N("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":_.KK(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.N(_.cZ,{command:function(){return l().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.N(_.E,{cond:function(){var b;return(b=l().icon)==null?void 0:b.iconType},
then:function(){return _.N("span",null,_.N(_.qt,{icon:function(){var b;return(b=l().icon)==null?void 0:b.iconType}}))}}),_.N("div",{class:"ytmPaidContentOverlayText"},_.N(_.Rf,{text:function(){return l().text}})),_.N(_.E,{cond:function(){return l().navigationEndpoint},
then:function(){return _.N(_.qt,{icon:"CHEVRON_RIGHT"})}})))},"Wg");
XPy.idomCompat=!0;var XdS=[].concat(_.ht([{register:function(z){var l=o8K(z),I;(I=z().playerApi)==null||I.addEventListener("onVolumeChange",l);return function(){}}},
{register:function(z){var l=PRc(z);z=z().playerApi;z==null||z.addEventListener("captionschanged",l);z==null||z.addEventListener("captionssettingschanged",l);z==null||z.addEventListener("onCaptionsTrackListChanged",l);return function(){}}},
{register:function(z){if(!_.C("mweb_screenreader_accessible_player"))return function(){};
var l=hnW(z),I=document.querySelector("video");I==null||I.addEventListener("touchend",l);return function(){I==null||I.removeEventListener("touchend",l)}}},
{register:function(z){if(!_.C("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var l=hnW(z),I=document.querySelector("video");I==null||I.addEventListener("focus",l);return function(){I==null||I.removeEventListener("focus",l)}}}]),[{register:function(z){var l=TiS(z),I;
(I=z().playerApi)==null||I.addEventListener("onStateChange",l);return function(){}}},
{register:function(z){var l=cWs(z),I;(I=z().playerApi)==null||I.addEventListener("onPlaybackRateChange",l);return function(){}}},
{register:function(z){var l=S5S(z),I;(I=z().playerApi)==null||I.addEventListener("onVideoDataChange",l);return function(){}}},
{register:function(z){var l=dW1(z),I,b;(I=z())==null||(b=I.playerApi)==null||b.addEventListener("onVideoProgress",l);return function(){}}}]);var qUK=_.P(function(z){var l=z.data;var I=function(){return _.mY("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+l().playbackRate})};
return _.N(_.E,{cond:function(){return l().playbackRate&&l().playbackRate!==1},
then:function(){return _.N("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.N("div",{class:"ytPlaybackRateOverlayOverlay"},_.N(kR0,{direction:1,size:"small"}),_.N("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"Xg");var iQS=_.P(function(z){var l=z.data;return _.N("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.N(_.E,{cond:function(){var I,b=(I=l())==null?void 0:I.playerResponse,v;return b==null?void 0:(v=b.paidContentOverlay)==null?void 0:v.paidContentOverlayRenderer},
then:function(I){return _.N(XPy,{data:I})}}))},"Zg"),FGK=_.P(function(z){var l=z.props;
var I=z.data;var b=z.options;var v=function(){var u,Z,H,y;return(u=I())==null?void 0:(Z=u.playerResponse)==null?void 0:(H=Z.playerConfig)==null?void 0:(y=H.inlinePlaybackConfig)==null?void 0:y.showAudioControls},M=function(){var u,Z;
if(v()&&((u=b())==null?void 0:(Z=u.additionalButton)==null?void 0:Z.button)!==void 0){var H,y,f;u=(H=I())==null?void 0:(y=H.playerApi)==null?void 0:(f=y.getSize())==null?void 0:f.height;if(!(u===void 0||u<180)){var R,F;return(R=b())==null?void 0:(F=R.additionalButton)==null?void 0:F.button}}},x=function(){var u,Z;
return(u=b())==null?void 0:(Z=u.additionalButton)==null?void 0:Z.thumbnailOverlayButtonRenderers},g=function(){var u,Z;
return(u=b())==null?void 0:(Z=u.additionalButton)==null?void 0:Z.thumbnailOverlayButtonViewModels},G=function(){var u=[_.N(Bms,{volumeProps:l}),
_.N(fV1,{playerControlsProps:l})];M()===1&&u.push(_.N(ug1,{playerApi:function(){return l().playerApi}}));
M()===2&&u.push(_.N(ZQl,{appApi:function(){return l().appApi}}));
M()===3&&u.push(_.N(HQ8,{playerApi:function(){return l().playerApi}}));
var Z=x();if(M()===4&&Z){Z=_.D(Z);for(var H=Z.next(),y={};!H.done;y={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$589:void 0},H=Z.next()){H=H.value;y.tooltip$jscomp$2=H.tooltip;var f=void 0,R=void 0;y.ariaLabel$jscomp$20=((f=H.accessibility)==null?void 0:(R=f.accessibilityData)==null?void 0:R.label)||y.tooltip$jscomp$2;f=void 0;y.icon$jscomp$50=(f=H.icon)==null?void 0:f.iconType;y.command$jscomp$589=H.command;y.tooltip$jscomp$2&&y.ariaLabel$jscomp$20&&y.icon$jscomp$50&&
u.push(_.N(y88,{title:function(F){return function(){return F.tooltip$jscomp$2}}(y),
ariaLabel:function(F){return function(){return F.ariaLabel$jscomp$20}}(y),
icon:function(F){return function(){return F.icon$jscomp$50}}(y),
command:function(F){return function(){return F.command$jscomp$589}}(y)}))}}Z=g();
if(M()===4&&Z)for(Z=_.D(Z),H=Z.next(),y={};!H.done;y={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$590:void 0},H=Z.next())H=H.value,y.tooltip$jscomp$3=H.title,y.ariaLabel$jscomp$21=H.accessibilityText||y.tooltip$jscomp$3,y.icon$jscomp$51=H.iconName,y.command$jscomp$590=_.Wh(H.onTap),y.tooltip$jscomp$3&&y.ariaLabel$jscomp$21&&y.icon$jscomp$51&&u.push(_.N(y88,{title:function(F){return function(){return F.tooltip$jscomp$3}}(y),
ariaLabel:function(F){return function(){return F.ariaLabel$jscomp$21}}(y),
icon:function(F){return function(){return F.icon$jscomp$51}}(y),
command:function(F){return function(){return F.command$jscomp$590}}(y)}));
return u};
return _.N(_.E,{cond:v,then:function(){return _.N("div",{class:"ytInlinePlayerControlsTopRightControls"},_.N(_.qy,{each:G},function(u){return _.N("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.N("div",{class:"ytInlinePlayerControlsButtonIcon"},u))}))}})},"$g"),Tm4=_.P(function(z){var l=z.props;
var I=z.data;var b=z.options;z={};z=_.m9("ytInlinePlayerControlsBottomRightControls",(z.ytInlinePlayerControlsBottomRightControlsHidden=function(){var v;return rW0(I(),b())&&((v=b())==null?void 0:v.insetProgressBar)&&(l().isHovering||l().isDragging)},z));
return _.N("div",{class:z},_.N(QR1,{data:I}),_.N(_.E,{cond:function(){var v;return!((v=b())==null?0:v.hideTimeDisplay)},
then:function(){return _.N(YUs,{props:l,data:I})}}))},"ah"),QR1=_.P(function(z){var l=z.data;
return _.N(_.TS,{data:function(){var I;return K5W((I=l())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:CMK})},"bh"),YUs=_.P(function(z){var l=z.props;
var I=z.data;return _.N(_.E,{cond:function(){return l().isLive},
then:function(){return _.N(c80,null)},
else:function(){return _.N(SUC,{props:l,data:I})}})},"ch"),SUC=_.P(function(z){var l=z.props;
var I=z.data;var b=_.kz(function(){var v;return Bi4((v=I())==null?void 0:v.thumbnailOverlays)},void 0,"tLs0gd");
return _.N("div",{class:_.m9("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.d6.PLAYER_TIME_ELAPSED+" "+_.nhx(l().playedTime)}},_.N(_.Nm,{data:function(){var v=_.nhx(l().videoDuration-l().playedTime);
return Object.assign({},{type:17,text:v},b())}}))},"dh"),c80=_.P(function(){var z=_.m9("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.N("div",{class:z},_.N(_.Nm,{data:{type:18,text:_.d6.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"eh"),dr1=_.P(function(z){var l=z.props;
var I=z.data;var b=z.options;return _.N(_.AA0,{progressBarProps:l,config:function(){var v,M=_.k((v=I())==null?void 0:v.multiMarkersPlayerBar,_.bew),x;v=((x=b())==null?0:x.insetProgressBar)?2:1;var g;x=(g=b())==null?void 0:g.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:v,chapterData:M,isInlinePlayback:!0,doSeekOnClick:x,playheadDotBehavior:x?1:0}}})},"fh");_.uO(_.P(function(z){var l=z.data;var I=z.appApi;var b=z.options;var v=Y5X(l,swK(I));z={};I={};return _.N("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.N("div",{class:_.m9("ytInlinePlayerControlsDarkenedOverlay",(z.ytInlinePlayerControlsDarkenedOverlayShow=function(){return v().isHovering},z))}),_.N(R4K,null),_.N(qUK,{data:v}),_.N(iQS,{data:l}),_.N(EOq,{playerControlsProps:v,
isShortsPage:!1}),_.N("div",{class:_.m9((I.ytInlinePlayerControlsControlsHidden=function(){return v().isDragging},I))},_.N(FGK,{props:v,
data:l,options:b}),_.N(Tm4,{props:v,data:l,options:b})),_.N(_.E,{cond:function(){return rW0(l(),b())},
then:function(){return _.N(dr1,{props:v,data:l,options:b})}}))},"Yg"),"yt-inline-player-controls",{props:{data:_.mB,
appApi:_.GH,options:_.mB}});var oG=function(){var z=_.q.apply(this,arguments)||this;z.opts=null;z.playerControlsData=null;z.playerControlsAppApi={openInMiniplayer:function(){z.openInMiniplayer()}};
z.playerControlsOptions={};z.noAnimation=!1;z.playbackIntentTriggered=!1;z.positionData=null;z.hidden=!0;z.active=!1;z.playing=!1;z.videoPreviewDataIndex=0;z.JSC$19164_playerPromise=null;z.player=null;z.enableAudioControls=!1;z.hasBeenUnmuted=!1;z.captionsHaveBeenTurnedOff=!1;z.JSC$19164_playerEvents=new Map;z.videoPreviewFetchRequest=null;z.scheduledPreviewEndJobId=null;z.JSC$19164_preventProgressSaveTimer=null;z.watchEndpointStartTimeUpdaterInterval=null;z.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};z.windowOnBlurFn=function(){z.deactivate()};
return z};
_.m(oG,_.q);_.p=oG.prototype;
_.p.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"}}}};
_.p.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19164_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19164_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19164_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19164_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.KJ(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.KJ(this,this.onScroll))};
_.p.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.KJ(this,this.onScroll))};
_.p.onPageTypeChange=function(){this.deactivate()};
_.p.onWindowResized=function(){this.deactivate()};
_.p.onCaptionsChanged=function(z){z=!!z.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!z);this.setCaptionSize()};
_.p.setCaptionSize=function(){var z;if(this.active&&!this.captionsHaveBeenTurnedOff&&((z=this.player)==null?0:z.getCaptionWindowContainerId())){var l;(l=this.player)==null||l.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.p.currentPageAllowed=function(){return!this.isWatchPage};
_.p.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.C("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var z=this.positionData,l=z.initialTopPosition,I=z.initialHorizontalPosition;_.R8(this.hostElement,{"--ytd-video-preview-translate-left":z.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":z.finalTopPosition-l+"px","--ytd-video-preview-original-top-position":l+
"px","--ytd-video-preview-original-horizontal-position":I+"px","--ytd-video-preview-initial-scale":"scale("+z.initialScale+")","--ytd-video-preview-width":z.videoPreviewWidth+"px","--ytd-video-preview-height":z.videoPreviewHeight+"px"});return!0};
_.p.isOutOfBounds=function(z){var l=z.initialHorizontalPosition+12;z=l+z.videoPreviewWidth>window.innerWidth;return l<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&l<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&l<72||z};
_.p.handleOpenVideoPreviewAction=function(z){var l=this,I;return _.O(function(b){if(!l.currentPageAllowed())return b.return(0);l.opts=z;return(I=l.alignVideoPreviewForAnimation(z.thumbnail))?b.return(l.activate()):b.return(0)})};
_.p.onMouseLeave=function(z){this.shouldDeactivateOnMouseLeave(z)&&this.deactivate()};
_.p.onScroll=function(){var z,l;((z=this.opts)==null?0:z.isAutoplay)&&((l=this.opts)==null?0:l.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.p.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ow.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.p.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.p.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",oG.JSC$19163_DEFAULT_CLICK_LOCATION_BEHAVIOR,oG.JSC$19163_CLICK_LOCATION_ID_MAP)};
_.p.shouldDeactivateOnMouseLeave=function(z){z=z.relatedTarget;if(!z)return!0;var l;return(l=this.opts)!=null&&l.mediaRenderer?!_.y5(this.opts.mediaRenderer).contains(z):!0};
_.p.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.p.onPlaybackStart=function(){var z=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$19164_preventProgressSaveTimer=
_.CK(_.ow,function(){z.resetPreventProgressSaveTimer()},1E4);
var l;if((l=this.opts)==null?0:l.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.CK(_.ow,function(){z.hasMultipleVideoPreviews()?z.startPlaybackForNextVideo():z.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.p.getRoundedCornersSize=function(){var z;if((z=this.opts)==null?0:z.roundedCornersSize){var l;return(l=this.opts)==null?void 0:l.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="small")return 1;var v;if(((v=this.opts)==null?void 0:v.thumbnailSize)==="medium")return 2;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="large")return 3}return _.C("web_imp_inset_progress_bar")?3:0};
_.p.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.p.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.p.onMediaContainerClick=function(z){this.isShortcutClick(z)||(this.navigateToWatch(z),z.preventDefault(),z.stopPropagation())};
_.p.activate=function(){var z=this,l,I,b,v,M,x,g,G,u;return _.O(function(Z){switch(Z.nextAddress){case 1:if(!z.currentPageAllowed())return Z.return(0);I=(l=z.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint;b=_.zS.instance;if(!I||!b)return Z.return(0);z.playbackIntentTriggered=!0;((v=z.opts)==null?0:v.mediaRenderer)&&((M=z.opts)==null||!M.isAutoplay)&&Rny(z.opts.mediaRenderer,function(){z.deactivate()});
_.IR(z,function(){z.revealPreviewUi()});
x={};_.C("enable_unknown_lact_fix_on_html5")&&(_.pG().resolve(_.TH),x.lact=_.p2());z.videoPreviewFetchRequest=Zpl(b,z.getInlinePlaybackRequestData(z.videoPreviewData),x);_.RL(Z,2);return Z.yield(z.videoPreviewFetchRequest,4);case 4:g=Z.yieldResult;if(((G=g)==null?void 0:(u=G.playabilityStatus)==null?void 0:u.status)==="OK")return Z.return(z.handlePlayerResponse(g));throw Error("Yj");case 2:_.XP(Z),z.deactivate();case 3:return Z.return(1)}})};
_.p.getInlinePlaybackRequestData=function(z){var l,I=_.C("web_imp_player_mute_params")?((l=this.opts)==null?void 0:l.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:z.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.p.handlePlayerResponse=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H;return _.O(function(y){if(y.nextAddress==1){I=l.getInlinePlaybackVideoId();if(!(((b=z)==null?0:(v=b.videoDetails)==null?0:v.videoId)&&l.currentPageAllowed()&&l.playbackIntentTriggered&&l.opts&&I))return l.deactivate(),y.return(0);if(z.videoDetails.videoId!==I)return y.return(0);l.enableAudioControls=!!((M=z.playerConfig)==null?0:(x=M.inlinePlaybackConfig)==null?0:x.showAudioControls);z.trackingParams=l.getInlinePlaybackTrackingParams();
if(!l.inlinePlayer)return y.return(0);g={};if(u=_.k((G=l.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint,_.zb))g.watch_endpoint=u;if(l.videoPreviewData){var f,R=(f=_.k(l.videoPreviewData.inlinePlaybackEndpoint,_.zb))==null?void 0:f.startTimeSeconds;R!==void 0&&(z.playerConfig||(z.playerConfig={}),z.playerConfig.playbackStartConfig||(z.playerConfig.playbackStartConfig={}),z.playerConfig.playbackStartConfig.startPosition||(z.playerConfig.playbackStartConfig.startPosition={}),z.playerConfig.playbackStartConfig.startSeconds=
R,z.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(R*1E3))}l.inlinePlayer.loadVideoWithPlayerResponse(z,g);if(l.JSC$19164_playerPromise)return y.jumpTo(2);l.JSC$19164_playerPromise=l.inlinePlayer.getPlayerPromise();return y.yield(l.JSC$19164_playerPromise,3)}y.nextAddress!=2&&(Z=y.yieldResult,Z.setInlinePreview(!0),Z.setSizeStyle(!1,!0),l.ytPlayerListenerBehavior.listenToPlayerEvents(Z,l.JSC$19164_playerEvents),l.player=Z,_.gC(l.hostElement,"player-api-ready"));((H=l.opts)==
null?0:H.showPlayerControls)&&l.videoPreviewData&&l.player&&(l.playerControlsData={playerResponse:z,isInlinePlayback:!0,thumbnailOverlays:l.videoPreviewData.thumbnailOverlays,playerApi:l.player},l.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!l.unroundCornersForPlayback,additionalButton:l.getAdditionalButtonType(l.videoPreviewData.thumbnailOverlays)});return y.return(2)})};
_.p.revealPreviewUi=function(){var z=this;this.playbackIntentTriggered&&_.z3u(this,function(){z.hasThumbnailPositionChangedSinceTriggered()||(z.updateActiveState(!0),z.noAnimation=!1)})};
_.p.hasThumbnailPositionChangedSinceTriggered=function(){var z=this.positionData,l=this.getThumbnailPositionData();return(z==null?void 0:z.initialTopPosition)!==(l==null?void 0:l.initialTopPosition)||(z==null?void 0:z.initialHorizontalPosition)!==(l==null?void 0:l.initialHorizontalPosition)};
_.p.getThumbnailPositionData=function(){var z,l;if((l=this.opts)==null||!l.thumbnail)return null;l=this.opts.thumbnail;var I=((z=this.opts)==null?0:z.cropPlayerToFillThumbnailHorizontally)?!1:!0;var b=l.getBoundingClientRect();z=b.width;l=b.height;var v=b.top+window.scrollY;b=b.left+window.scrollX;var M=I?Math.ceil(z):z;I=I?Math.ceil(l):l;var x=z/M;z={initialScale:x,initialTopPosition:v-12*x,finalTopPosition:v-12-(I-l)/2,initialHorizontalPosition:b-(12+(M-z)/2),finalHorizontalPosition:b-12-(M-z)/
2,videoPreviewWidth:M,videoPreviewHeight:I};return z};
_.p.updateActiveState=function(z){this.active=z;this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:z}))};
_.p.stopPlayer=function(z){z=z.resetWatchEndpointStartTime===void 0?!1:z.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(z)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ow.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.p.deactivate=function(z){z=z===void 0?{}:z;z=z.resetWatchEndpointStartTime===void 0?!1:z.resetWatchEndpointStartTime;VO&&(VO.disconnect(),VO=null);this.stopPlayer({resetWatchEndpointStartTime:z});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.p.isValidThumbnailOverlayButton=function(z,l){z=z.thumbnailOverlayButtonRenderer;var I;return!!z&&!!z.tooltip&&!((I=z.icon)==null||!I.iconType)&&l.includes(z.icon.iconType)};
_.p.isValidThumbnailOverlayButtonViewModel=function(z,l){var I;z=_.k((I=z.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.N1);return!!z&&!!z.title&&!!z.iconName&&l.includes(z.iconName)};
_.p.getAdditionalButtonType=function(z){var l=this;if(_.C("web_imp_fastforward_button"))return{button:1};if(_.C("web_imp_miniplayer_button"))return{button:2};if(_.C("web_imp_playback_speed_button"))return{button:3};var I=["BOX_STACK_3"],b=(z||[]).filter(function(M){return l.isValidThumbnailOverlayButton(M,I)}).map(function(M){return M.thumbnailOverlayButtonRenderer});
if(b.length)return{button:4,thumbnailOverlayButtonRenderers:b};var v=["BOX_STACK_3"];z=(z||[]).filter(function(M){return l.isValidThumbnailOverlayButtonViewModel(M,v)}).map(function(M){return _.k(M.thumbnailOverlayButtonViewModel.overlayButton,_.N1)});
if(z.length)return{button:4,thumbnailOverlayButtonViewModels:z}};
_.p.allowCaptions=function(){var z;return!((z=this.opts)==null?0:z.forceCaptionsOff)};
_.p.allowUnmuting=function(){var z;return this.enableAudioControls&&!((z=this.opts)==null?0:z.forceMutedVolume)};
_.p.beginStartTimeUpdater=function(){var z=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ZQ(function(){z.updateWatchEndpointStartTime()},1E3)};
_.p.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.p.resetPreventProgressSaveTimer=function(){this.JSC$19164_preventProgressSaveTimer!==null&&(_.ow.cancelJob(this.JSC$19164_preventProgressSaveTimer),this.JSC$19164_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.p.updateWatchEndpointStartTime=function(z){var l=this.videoPreviewData;if(this.player&&l!=null&&l.inlinePlaybackEndpoint&&!this.JSC$19164_preventProgressSaveTimer){z=z?0:Math.floor(this.player.getCurrentTime());var I=_.k(l.navigationEndpoint,_.zb);I&&(I.startTimeSeconds=z);if(l=_.k(l.inlinePlaybackEndpoint,_.zb))l.startTimeSeconds=z}};
_.p.isShortcutClick=function(z){return!!z&&(z.ctrlKey||z.shiftKey||z.metaKey)};
_.p.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.p.openInMiniplayer=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1){I=(l=z.videoPreviewData)==null?void 0:l.navigationEndpoint;if(!I)return b.return();_.wb().lockupActivation=!0;return b.yield(_.uBp(_.pG().resolve(_.Af),I),2)}_.wb().userActivation=!0;_.qe(b)})};
_.p.navigateToWatch=function(z){var l,I=(l=this.videoPreviewData)==null?void 0:l.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,z,!0);else{var b;_.C("web_thumbnail_to_watch_transition")&&((b=this.opts)==null?0:b.thumbnail)&&_.GPI(_.pG().resolve(_.Lg),this.opts.thumbnail);_.gC(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.p.getInlinePlaybackVideoId=function(){var z,l;return(l=_.k((z=this.videoPreviewData)==null?void 0:z.inlinePlaybackEndpoint,_.zb))==null?void 0:l.videoId};
_.p.getInlinePlaybackTrackingParams=function(){var z,l;return(z=this.videoPreviewData)==null?void 0:(l=z.inlinePlaybackEndpoint)==null?void 0:l.clickTrackingParams};
_.p.hasMultipleVideoPreviews=function(){var z;return!!(((z=this.opts)==null?0:z.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.p.startPlaybackForNextVideo=function(){var z;(z=this.opts)!=null&&z.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())};
_.vP.Object.defineProperties(oG.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.opts)==null?0:z.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.opts)==null||!z.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 z;if(Array.isArray((z=this.opts)==null?void 0:z.videoPreviewData)){var l;return(l=this.opts)==null?void 0:l.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
oG.prototype.onIsAdsVideoChange=oG.prototype.onIsAdsVideoChange;oG.prototype.onInlinePreviewIsEnabledChange=oG.prototype.onInlinePreviewIsEnabledChange;oG.prototype.optsChanged=oG.prototype.optsChanged;oG.prototype.onMouseLeave=oG.prototype.onMouseLeave;oG.JSC$19163_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);oG.JSC$19163_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],oG.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],oG.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],oG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],oG.prototype,"componentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],oG.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.QW.YtSparklesClickLocationBehavior),_.w("design:type",Object)],oG.prototype,"ytSparklesClickLocationBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],oG.prototype,"opts",void 0);
_.e([_.X(),_.w("design:type",Object)],oG.prototype,"playerControlsData",void 0);_.e([_.X(),_.w("design:type",Object)],oG.prototype,"playerControlsAppApi",void 0);_.e([_.X(),_.w("design:type",Object)],oG.prototype,"playerControlsOptions",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],oG.prototype,"noAnimation",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],oG.prototype,"hidden",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],oG.prototype,"active",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],oG.prototype,"playing",void 0);_.e([_.X({selector:_.gT1}),_.w("design:type",Boolean)],oG.prototype,"inlinePreviewIsEnabled",void 0);_.e([_.X(),_.w("design:type",String)],oG.prototype,"pagePath",void 0);_.e([_.X({selector:_.DGQ}),_.w("design:type",Boolean)],oG.prototype,"isWatchPage",void 0);
_.e([_.B("videoPreviewData"),_.w("design:type",Object),_.w("design:paramtypes",[])],oG.prototype,"thumbnailData",null);_.e([_.B("opts","active"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oG.prototype,"hidePlayerControls",null);_.e([_.B("opts"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oG.prototype,"isAdsVideo",null);
_.e([_.B("opts"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oG.prototype,"roundedCornersSmall",null);_.e([_.B("opts"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oG.prototype,"roundedCornersMedium",null);_.e([_.B("opts"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oG.prototype,"roundedCornersLarge",null);
_.e([_.B("opts"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],oG.prototype,"unroundCornersForPlayback",null);_.e([_.B("opts","videoPreviewDataIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],oG.prototype,"videoPreviewData",null);_.e([_.X(),_.w("design:type",Object)],oG.prototype,"videoPreviewDataIndex",void 0);_.e([_.qX("#inline-player"),_.w("design:type",Object)],oG.prototype,"inlinePlayer",void 0);
_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[MouseEvent]),_.w("design:returntype")],oG.prototype,"onMouseLeave",null);_.e([_.YE("opts"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oG.prototype,"optsChanged",null);_.e([_.YE("inlinePreviewIsEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oG.prototype,"onInlinePreviewIsEnabledChange",null);
_.e([_.By("isAdsVideo"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oG.prototype,"onIsAdsVideoChange",null);_.e([_.S({is:"ytd-video-preview",disableElementRegistration:!0})],oG);
_.r(oG,"ytd-video-preview",function(){if(Nml!==void 0)return Nml;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Nml=z},{mode:2});
}catch(e){_._DumpException(e)}
try{
var hQ8,s10,rGR;hQ8=function(z){return _.C("kevlar_watch_cinematics_invisible")||z.fullscreen&&_.C("kevlar_watch_cinematics_invisible_in_fullscreen")||z.theater&&!z.fullscreen&&_.C("kevlar_watch_cinematics_invisible_in_theater")};
s10=function(){var z=document.createElement("canvas"),l=z.getContext("2d");if(!l)throw Error("Co");_.aq(z,{position:"absolute",width:"100%",height:"100%"});return{element:z,context:l}};
rGR=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.C("kevlar_watch_cinematics_css_blur")};
_.$p8=function(z,l,I){return Math.abs(z-l)<=(I||1E-6)};
_.eQR=function(z,l){return z==l?!0:z&&l?z.width==l.width&&z.height==l.height:!1};_.w70=new _.Z0("notificationActionRenderer");var AGr=function(z){var l=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.yX;this.element.addEventListener("load",function(){l.loaded=!0;l.resolver.resolve(l.element)});
this.element.addEventListener("error",function(){l.failed=!0});
this.element.src=z};var WQa=function(z,l){this.image=z;this.frame=l};
WQa.prototype.drawToCanvas=function(z,l){var I=this.frame.width/this.frame.columns,b=this.frame.height/this.frame.rows,v=l.offsetX,M=l.offsetY;hQ8(l)?(z.fillStyle=l.fullscreen?"#000":"#0f0f0f",z.fillRect(v,M,(l==null?void 0:l.width)||I,(l==null?void 0:l.height)||b)):z.drawImage(this.image,this.frame.column*I,this.frame.row*b,I,b,v,M,(l==null?void 0:l.width)||I,(l==null?void 0:l.height)||b)};
var n5R=function(z){this.color=z};
n5R.prototype.drawToCanvas=function(z,l){var I=l.offsetX,b=l.offsetY,v=l.width,M=l.height;z.fillStyle=hQ8(l)?l.fullscreen?"#000":"#0f0f0f":this.color;z.fillRect(I,b,v,M)};var C_=function(z,l){_.$3.call(this);this.playerApi=l;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.X5(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();LQR(this,z);UpQ(this);this.update()};
_.m(C_,_.$3);C_.prototype.addEventListeners=function(){var z=this,l=function(){z.update()},I=function(v){z.paused||(v.type==="newdata"&&(z.mosaics.clear(),aSZ(z),kc(z)),UpQ(z),z.update())},b=function(){z.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",l);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",b);this.addOnDisposeCallback(function(){z.playerApi.removeEventListener("onVideoProgress",l);z.playerApi.removeEventListener("onVideoDataChange",I);z.playerApi.removeEventListener("onStateChange",b)})};
var LQR=function(z,l){z.cinematicContainerRenderer!==l&&(z.cinematicContainerRenderer=l,aSZ(z),kc(z),z.colorStoreUpdateJobId=_.ow.addLowPriorityJob(function(){var I;if((I=z.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var b=_.D(z.cinematicContainerRenderer.colorStore.sampledColors),v=b.next();!v.done;v=b.next()){v=v.value;var M=Number(v.key);M!==0&&M<I&&(I=M);M=_.aD(v.value);z.colorStore.set(v.key,M)}z.colorStoreTimeInterval=I}}))},aSZ=function(z){z.colorStoreUpdateJobId&&
(_.ow.cancelJob(z.colorStoreUpdateJobId),z.colorStoreUpdateJobId=void 0);
z.colorStore.clear();z.currentStoryboardColor=void 0},VxT=function(z,l){var I;
return(I=z.getStoryboardFrame(l))==null?void 0:I.url};
C_.prototype.onPlayerStateChange=function(){this.update()};
C_.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var UpQ=function(z){var l=z.getStoryboardFrame(0);l&&(l=new _.X5(l.width/l.columns,l.height/l.rows),_.eQR(z.currentStoryboardSize,l)||(z.currentStoryboardSize=l,z.publish("STORYBOARD_SIZE_CHANGED",z.currentStoryboardSize)))},j1T=function(z,l){z.currentStoryboardIndex=l;
z.pendingStoryboardIndex=NaN;l=z.getStoryboardFrame(z.currentStoryboardIndex);z.currentStoryboard=new WQa(z.mosaics.get(l.url).element,l);z.publish("STORYBOARD_CHANGED",z.currentStoryboard);z.lastUpdateTime=(0,_.Dr)()};
C_.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var kc=function(z){z.currentStoryboardIndex=NaN;z.pendingStoryboardIndex=NaN;z.currentStoryboard&&(z.currentStoryboard=void 0,z.publish("STORYBOARD_CHANGED",void 0));z.lastUpdateTime=NaN};
C_.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)kc(this);else{var z=this.playerApi.getPlayerState(1);if(z===-1||z===5||z===0)kc(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Dr)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(z=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){z=""+Math.round(z*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var l=this.colorStore.get(z);l?l!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=l,this.currentStoryboard=new n5R(l),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Dr)()):(_.PW(new _.qB("Could not find color for timestamp: "+z,this.cinematicContainerRenderer)),kc(this))}else kc(this);else JG8(this,z)}};
var JG8=function(z,l){var I=z.getStoryboardFrameIndex(l);if(I!==z.currentStoryboardIndex&&I!==z.pendingStoryboardIndex){l=VxT(z,I);var b=z.mosaics.get(l);b?b.loaded&&j1T(z,I):(z.pendingStoryboardIndex=I,I=new AGr(l),z.mosaics.set(l,I),I.resolver.promise.then(function(){if(!z.isDisposed()&&!z.paused&&!isNaN(z.pendingStoryboardIndex)){var v=VxT(z,z.pendingStoryboardIndex);if(v){var M;(M=z.mosaics.get(v))!=null&&M.loaded&&j1T(z,z.pendingStoryboardIndex)}else kc(z)}}))}};
C_.prototype.getStoryboardFrameIndex=function(z){var l=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(z,l)};
C_.prototype.getStoryboardFrame=function(z){var l=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,b;return((b=(I=this.playerApi).getStoryboardFrame)==null?void 0:b.call(I,z,l))||null};
C_.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var m4=function(z,l,I,b){b=b===void 0?!1:b;_.Q9.call(this);this.cinematicContainerRenderer=l;this.playerApi=I;this.theater=this.fullscreen=!1;var v;this.ambientLightThemeEnabled=!b&&!!(l==null?0:(v=l.config)==null?0:v.enableInLightTheme);this.ambientFullscreenEnabled=b&&_.C("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=b&&_.C("web_cinematic_theater_mode");this.container=document.createElement("div");z.appendChild(this.container);var M;if(_.C("web_cinematic_theater_mode")||_.C("web_cinematic_fullscreen")||
(l==null?0:(M=l.config)==null?0:M.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);zIZ(this);z=this.ambientV2Container||this.container;this.backCanvas=s10();this.frontCanvas=s10();z.appendChild(this.backCanvas.element);z.appendChild(this.frontCanvas.element);this.storyboardManager=new C_(l,this.playerApi);_.kN(this,this.storyboardManager);this.addEventListeners();l4R(this)?I47(this,100+Rb(this)*3*2,100+Rb(this)*3*2):bnR(this);
v0a(this,this.storyboardManager.currentStoryboard)};
_.m(m4,_.Q9);var zIZ=function(z){z.ambientV2Container?MM0(z):(_.aq(z.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+p_0(z)+", "+Dza(z)+")"}),rGR()&&_.aq(z.container,"filter","blur("+_.OI("cinematic_watch_css_filter_blur_strength",40)+"px)"))},MM0=function(z){if(z.ambientV2Container){var l=z.playerApi.getVideoAspectRatio();
_.aq(z.container,{"aspect-ratio":""+l,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.aq(z.ambientV2Container,{"aspect-ratio":""+l,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+p_0(z)+", "+Dza(z)+")"});rGR()&&_.aq(z.ambientV2Container,"filter","blur("+_.OI("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
m4.prototype.setFullscreen=function(z,l){this.fullscreen=z;this.theater=!!l;zIZ(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),z=this.storyboardManager.currentStoryboard,xz0(this),z&&OnD(this,z)};
m4.prototype.addEventListeners=function(){var z=this,l=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(v){v0a(z,v)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){bnR(z)});
this.addOnDisposeCallback(function(){z.storyboardManager.unsubscribeByKey(l);z.storyboardManager.unsubscribeByKey(I)});
if(this.ambientV2Container){var b=function(){MM0(z)};
this.playerApi.addEventListener("onVideoDataChange",b);this.addOnDisposeCallback(function(){z.playerApi.removeEventListener("onVideoDataChange",b)})}};
var bnR=function(z){if(!l4R(z)){var l=z.storyboardManager.currentStoryboardSize;isNaN(l.width)||isNaN(l.height)||I47(z,Number(l.width)+Rb(z)*3*2,Number(l.height)+Rb(z)*3*2)}},I47=function(z,l,I){z.backCanvas.element.width=l;
z.backCanvas.element.height=I;z.frontCanvas.element.width=l;z.frontCanvas.element.height=I},l4R=function(z){return z.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},v0a=function(z,l,I){I=I===void 0?!1:I;
var b=z.frontCanvas.element.getAnimations()[0];b?(b.pause(),z.backCanvas.context.globalAlpha=Number(getComputedStyle(z.frontCanvas.element).opacity),z.frontCanvas.element.style.opacity="0",b.finish()):z.backCanvas.context.globalAlpha=1;z.backCanvas.context.drawImage(z.frontCanvas.element,0,0,z.backCanvas.element.width,z.backCanvas.element.height);xz0(z);l&&OnD(z,l);l=l?z.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.OI("cinematic_watch_fade_out_duration",500);b=_.OI("cinematic_watch_transition_frame_rate")/
1E3;var v={};b&&(v={easing:"steps("+Math.round(l*b)+")"});(I===void 0?0:I)||z.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:l,iterations:1},v));z.frontCanvas.element.style.opacity="1"},xz0=function(z){var l=z.ambientLightThemeEnabled||z.ambientTheaterModeEnabled,I=z.ambientLightThemeEnabled||z.ambientFullscreenEnabled;
z.frontCanvas.context.fillStyle=z.theater&&l||z.fullscreen&&I?"#000":"#0f0f0f";rGR()||(z.frontCanvas.context.filter="blur(0)");z.frontCanvas.context.fillRect(0,0,z.frontCanvas.element.width,z.frontCanvas.element.height)},OnD=function(z,l){rGR()||(z.frontCanvas.context.filter="blur("+Rb(z)+"px)");
z.frontCanvas.context.globalAlpha=z.fullscreen&&z.ambientFullscreenEnabled||z.theater&&z.ambientTheaterModeEnabled?_.OI("cinematic_watch_effect_letterbox_opacity",.4):_.OI("cinematic_watch_effect_opacity",.4);var I={offsetX:Rb(z)*3,offsetY:Rb(z)*3,theater:z.theater,fullscreen:z.fullscreen};l4R(z)&&(I.width=100,I.height=100);l.drawToCanvas(z.frontCanvas.context,I);z.frontCanvas.context.globalAlpha=1},Rb=function(z){var l;
return(l=z.cinematicContainerRenderer.config.blurStrength)!=null?l:5},p_0=function(z){var l,I;
if((z.fullscreen||z.theater)&&((l=z.cinematicContainerRenderer.config)==null?0:(I=l.watchFullscreenConfig)==null?0:I.colorSourceWidthMultiplier))return z.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var b;return(b=z.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?b:z.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Dza=function(z){var l,I;
if((z.fullscreen||z.theater)&&((l=z.cinematicContainerRenderer.config)==null?0:(I=l.watchFullscreenConfig)==null?0:I.colorSourceHeightMultiplier))return z.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var b;return(b=z.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?b:z.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
m4.prototype.disposeInternal=function(){_.Q9.prototype.disposeInternal.call(this);this.container.remove()};
m4.prototype.clear=function(){v0a(this,void 0,!0)};
m4.prototype.pause=function(){this.storyboardManager.pause()};var g0r;g0r=_.cc(function(){var z,l,I=!((l=(z=document.createElement("canvas")).getContext)==null||!l.call(z,"2d")),b;z=!((b=CSS)==null||!b.supports("filter: blur(0)"));b=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var v;return I&&z&&b&&!((v=CSS)==null||!v.supports("aspect-ratio: 1 / 1"))});
_.K_=function(z,l){_.$3.call(this);this.container=z;this.playerApi=l;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=G_0(this);this.update()};
_.m(_.K_,_.$3);_.NwR=function(z){var l=document.documentElement.hasAttribute("dark");z.isDarkModeEnabled=l;z.update()};
_.E0r=function(z,l){z.settingEnabled=l;z.update()};
_.K_.prototype.setFullscreen=function(z,l){this.fullscreen=z;this.theater=!!l;this.update()};
_.uAD=function(z,l){z.cinematicContainerRenderer=l;z.cinematicContainerRenderer&&(z.cinematicsVe=_.kU(z.isShorts()?227858:159022),_.oc(_.iY(),z.cinematicsVe),z.loggingClientData={watchCinematicContainerData:{presentationStyle:z.cinematicContainerRenderer.presentationStyle}});z.update()};
_.K_.prototype.isShorts=function(){var z,l;return((z=this.cinematicContainerRenderer)==null?void 0:(l=z.config)==null?void 0:l.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.K_.prototype.isAllowed=function(){var z;if(z=g0r()){var l,I,b;z=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((b=this.cinematicContainerRenderer)==null||!b.colorStore)||((l=this.cinematicContainerRenderer)==null?void 0:l.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(z)if(_.C("web_cinematics_pausing")){var v,M;z=this.isDarkModeEnabled||!!((v=this.cinematicContainerRenderer)==
null?0:(M=v.config)==null?0:M.enableInLightTheme)}else{var x,g;v=!!((x=this.cinematicContainerRenderer)==null?0:(g=x.config)==null?0:g.enableInLightTheme)&&(_.sZ("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);z=this.isDarkModeEnabled||v}if(x=z){var G,u;x=!((u=(G=this.prefersReducedMotionQuery)==null?void 0:G.matches)!=null&&u)}return x};
_.ZnZ=function(z){(z=z.currentCinematicEffect)!=null&&(z=z.storyboardManager,z.paused=!1,UpQ(z),z.update())};
_.K_.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var G_0=function(z){if(!_.C("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var l=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){z.update()};
l.addListener(I);z.addOnDisposeCallback(function(){l.removeListener(I)});
return l}};
_.K_.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var z=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new m4(this.container,z,this.playerApi,this.isDarkModeEnabled),_.kN(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var l=this.currentCinematicEffect;l.cinematicContainerRenderer!==
z&&(l.cinematicContainerRenderer=z,LQR(l.storyboardManager,z),zIZ(l));z=_.Bu();_.XG(0,194,!0);z.save();z=_.sU();this.cinematicsVe&&z&&_.Vi(z,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(z=_.sU(),this.cinematicsVe&&z&&_.j_(z,[this.cinematicsVe],!1,this.loggingClientData),_.p0(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.vP.Object.defineProperties(_.K_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var GkZ;var NfT;_.hP({_template:function(){if(NfT!==void 0)return NfT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=
z.content,I=l.insertBefore;GkZ===void 0&&(GkZ=document.createElement("template"));var b=GkZ;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return NfT=z},
is:"tp-yt-iron-pages",behaviors:[_.ap,_.Ie],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var NRF;_.Ets=function(){if(_.C("kevlar_home_skeleton")&&!NRF){var z=document.querySelector("#home-page-skeleton");z&&(_.sK("hgcr"),_.Bl(z),NRF=!0)}};
NRF=!1;_.Ii=new _.Z0("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var anK,jiW,JFX,zTs,l5W,I5S,b_C,vc0,pql,D7K,gcl,NYS,u_l,GGK,x7l,O_4,yDl;_.UPX=function(z,l,I){l=l===void 0?5:l;if(l!==0){var b=typeof z==="function"?z():document.querySelector(z);b?(I==null?0:I.enableSmartFocus)?_.SI7(b):b.focus():setTimeout(function(){_.UPX(z,l-1,I)},500)}};
anK=function(z){return String.raw.apply(String,[{raw:z}].concat(_.ht(_.AT.apply(1,arguments).map(function(l){return l instanceof Array?l.join(""):l}))))};
jiW=function(z){var l=_.AT.apply(1,arguments),I=l.length;if(!Array.isArray(z)||!Array.isArray(z.raw)||z.length!==z.raw.length||!_.cGI&&z===z.raw||!(_.cGI&&!_.SYj||_.cQ(z))||I+1!==z.length)throw new TypeError("$");return new Vvl(Object.freeze({strings:Object.freeze(z),args:Object.freeze(l)}))};
JFX=function(z){return _.cn5(_.TPx(z&16777215))<.5};
zTs=function(z,l,I){var b=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;return z<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||l!==null&&z-l<=b?!1:!0};
l5W=function(z,l){var I=0,b=0;z=_.D(z);for(var v=z.next();!v.done;v=z.next()){var M=v.value;if(M.richItemRenderer)M.richItemRenderer.rowIndex=b,M.richItemRenderer.colIndex=I++,I===l&&(I=0,b++);else if(M.richGroupRenderer&&M.richGroupRenderer.numColumns!==void 0)M.richGroupRenderer.rowIndex=b,M.richGroupRenderer.colIndex=I,I+=M.richGroupRenderer.numColumns,I===l&&(I=0,b++);else if(M.richSectionRenderer){var x=v=void 0;if(M=_.k((v=M)==null?void 0:(x=v.richSectionRenderer)==null?void 0:x.content,_.nZA))M.rowIndex=
b++}}};
I5S=function(z,l){var I=l.contentElement;l=l.rendererToTagNameMap;if(I&&l&&l.size!==0){for(var b=new Map,v=_.D(I.children),M=v.next();!M.done;M=v.next()){M=M.value;var x=M.tagName.toLowerCase(),g=b.get(x);g||(g=[],b.set(x,g));g.push(M)}if(b.size!==0)for(v=Math.min(z.length,I.children.length),M=new Map,x=0;x<v;x++){g=Object.keys(z[x])[0];g=l.get(g);if(!g)break;var G=M.get(g);G===void 0&&(G=0,M.set(g,G));var u=b.get(g);if(!u||G>=u.length)break;M.set(g,G+1);g=u[G];G=I.children[x];G!==g&&(_.Nt=!0,_.EW.set(g,
!0),I.insertBefore(g,G),_.EW.delete(g),_.Nt=!1)}}};
b_C=function(z,l,I,b,v,M,x){b=b===void 0?{}:b;if(!z||!z.length)return{orderedContent:[]};z=z.slice();var g=[],G=[];v=null;for(var u=0,Z=function(V){G.sort(function(L,lH){return lH.skippedOnRow-L.skippedOnRow});
for(var A,W=(A=G.shift())==null?void 0:A.content;W;)!W.richSectionRenderer&&V||g.push(W),A=void 0,W=(A=G.shift())==null?void 0:A.content},H=void 0,y=void 0,f=new Set;z.length>0||G.length>0;){for(var R=[],F=l;F>0;){var Y=void 0,c=void 0,d=(c=G[0]&&G[0].skippedOnRow<u?(Y=G.shift())==null?void 0:Y.content:void 0)!=null?c:z.shift();
if(!d)break;if(d.richItemRenderer)Y=d.richItemRenderer.targetId,c=void 0,Y&&((c=x)==null?0:c.has(Y))&&(c=x.get(Y),!H||c&&c.timestamp>H.timestamp)&&(H=c,y&&f.add(y),y=Y),R.push(d),F--;else if(d.richGroupRenderer&&d.richGroupRenderer.numColumns!==void 0)d.richGroupRenderer.numColumns<=F?(R.push(d),F-=d.richGroupRenderer.numColumns):F===l&&d.richGroupRenderer.numColumns>l?(R.push({richGroupRenderer:Object.assign({},d.richGroupRenderer,{numColumns:l})}),F=0):G.push({content:d,skippedOnRow:u});else if(d.richSectionRenderer)if(zTs(u,
v,b)&&F===l){g.push(d);v=u;u++;continue}else G.push({content:d,skippedOnRow:u});else if(d.continuationItemRenderer){Z(!0);g.push(d);F=0;break}if(F===0)g.push.apply(g,_.ht(R));else if(!I&&z.length===0){Z(!1);g.push.apply(g,_.ht(R));F=0;break}}u++;H&&(g.push(H.content),u++);y=H=void 0}l5W(g,l);M&&I5S(g,M);return{orderedContent:g,pinnedContentNotShownTargetIds:f}};
vc0=function(){return _.AT.apply(0,arguments).flat().filter(function(z){return z}).join(";")};
pql=function(){return jiW(MP8,vc0.apply(null,_.ht(_.AT.apply(0,arguments))))};
D7K=function(z){switch(z){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
gcl=function(z,l){if(l){var I=_.vF().getState().entities.flowStateEntity,b=x7l(z),v=[l];b&&b!==l&&v.push(b);var M=!0,x;if(I&&z.flowStateEntityKey&&((x=I[z.flowStateEntityKey])==null?void 0:x.primaryButtonDisabled)!==void 0){var g;M=!((g=I[z.flowStateEntityKey])==null||!g.primaryButtonDisabled)}O_4(z,b!=null?b:l,v,M)}};
NYS=function(z){return _.Wf(_.vF(),function(l){return l.entities.flowStateEntity},function(l,I){if(z.flowStateEntityKey){var b,v=l==null?void 0:(b=l[z.flowStateEntityKey])==null?void 0:b.currentStepId,M;
I=I==null?void 0:(M=I[z.flowStateEntityKey])==null?void 0:M.currentStepId;M=_.vF().getState().talkToRecs;if(v&&v!==I){var x;l=(l==null?void 0:(x=l[z.flowStateEntityKey])==null?void 0:x.stepIdStack)||Object.keys(M.stepStates);x=!GGK(M==null?void 0:M.stepStates[v]);O_4(z,v,l,x)}}})};
u_l=function(z){return _.Wf(_.vF(),Ec1,function(l){var I=x7l(z);if(I){var b=Object.keys(l.stepStates);l=!GGK(l==null?void 0:l.stepStates[I]);O_4(z,I,b,l)}})};
GGK=function(z){var l=Object.keys((z==null?void 0:z.selectionStates)||{}).reduce(function(M,x){return M||(z==null?void 0:z.selectionStates[x].isSelected)},!1),I,b,v=!!(z==null?0:(I=z.userQuery)==null?0:(b=I.userQuery)==null?0:b.trim());
return l||v};
x7l=function(z){if(z.flowStateEntityKey){var l,I,b=(l=_.vF().getState().entities.flowStateEntity)==null?void 0:(I=l[z.flowStateEntityKey])==null?void 0:I.currentStepId;if(b)return b}};
O_4=function(z,l,I,b){_.vF().dispatch(_.cU("flowStateEntity",z.flowStateEntityKey,{currentStepId:l,stepIdStack:I,key:z.flowStateEntityKey,primaryButtonDisabled:b}))};
_.Z_C=function(z,l){return _.Cc(z.entities,"youchatPendingResponseEntity",l)};
_.H_W=function(z){return function(l){_.pE(_.cU("youchatPendingResponseEntity",z,{entityKey:z,isPendingResponse:l}))}};
yDl=function(z){z==null||z.addEventListener("DOMLoaded",function(){z.goToAndPlay(z.totalFrames-48,!0)})};
_.pP=function(z){this.__isSoyCss=!0;this.css=anK.apply(null,[z.strings].concat(_.ht(z.args)))};
_.pP.prototype.toString=function(){return this.css};
var Vvl=function(){_.pP.apply(this,arguments)};
_.m(Vvl,_.pP);var MP8=_.zs(["",""]);var f5K;var CNK;_.hP({_template:function(){if(CNK!==void 0)return CNK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
var l=z.content,I=l.insertBefore;f5K===void 0&&(f5K=document.createElement("template"));var b=f5K;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return CNK=z},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var kGq=new _.Z0("flowRootRenderer");var RTq=new _.Z0("chipsShelfViewModel");var m7C=new _.Z0("responsiveContainerConfiguration");_.K4y=new _.Z0("engagementPanelSectionListRenderer");var tPW=function(){this.horizontal=!1},BYK=function(z,l){z.horizontal=l};
tPW.prototype.position=function(z,l,I,b){b=b===void 0?1:b;z=this.delta(z)*b+l;b=Math.max(l,I);return z>=Math.min(l,I)&&z<=b?z:I};
tPW.prototype.axis=function(z){z=this.direction(z);return z==="up"||z==="down"?"Y":"X"};var dz=function(z,l,I){l=l===void 0?_.JC():l;this.target=z;this.manager=l;this.touchAction=I;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
dz.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(_.ht(this.events)));for(var z=_.D(this.events),l=z.next();!l.done;l=z.next())this.listen(l.value)}};
dz.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ht(this.events)));for(var z=_.D(this.events),l=z.next();!l.done;l=z.next())this.unlisten(l.value)}};
dz.prototype.listen=function(z){this.eventMap[z]&&this.target.addEventListener(z,this.eventMap[z])};
dz.prototype.unlisten=function(z){this.eventMap[z]&&this.target.removeEventListener(z,this.eventMap[z])};var oI=function(){tPW.apply(this,arguments)};
_.m(oI,tPW);oI.prototype.direction=function(z){var l=z.detail;z=l.deltaY;l=l.deltaX;return z&&!this.horizontal?z>0?"down":"up":l&&this.horizontal?l>0?"right":"left":"none"};
oI.prototype.distance=function(z){return Math.abs(this.delta(z))};
oI.prototype.delta=function(z){var l=this.direction(z),I=z.detail;z=I.deltaX;I=I.deltaY;return l==="up"||l==="down"?I||0:z||0};
oI.prototype.velocity=function(z){var l=this.direction(z),I=z.detail;z=I.velocityX;I=I.velocityY;return Math.abs(l==="up"||l==="down"?I||0:z||0)};_.P$=function(z,l,I,b,v,M){v=v===void 0?new oI:v;M=M===void 0?_.JC():M;dz.call(this,l,M,b);var x=this;this.element=z;this.target=l;this.config=I;this.input=v;this.manager=M;this.events=["panstart","panmove","panend"];this.onPanStart=function(){x.config.draggingClass&&x.element.classList.add(x.config.draggingClass);x.config.startAction&&x.config.startAction()};
this.onPanMove=function(g){var G=XqS(x,g);if(G){x.move(g,G);G.fade&&x.fade(g,G);var u=x.input.direction(g);G.moveAction&&G.moveAction(qGW(x,g,G),u)}};
this.onPanEnd=function(g){var G,u,Z,H,y,f;return _.O(function(R){if(R.nextAddress==1){x.animationRequestId&&cancelAnimationFrame(x.animationRequestId);x.animationRequestId=void 0;G=XqS(x,g);if(!G)return R.return();u=G;Z=u.triggerAction;H=u.fade;y=u.disableFinish;f=u.translateBack;var F=x.input.velocity(g),Y=x.input.distance(g),c=x.threshold(G);return F>.3&&Y>10||Y>c?y?R.jumpTo(6):H?R.yield(i_c(x,g),6):R.yield(F4c(x,g,G),6):f?R.yield(x.translateBack(g),3):R.jumpTo(3)}R.nextAddress!=3&&Z&&Z();x.config.draggingClass&&
x.element.classList.remove(x.config.draggingClass);x.reset();_.qe(R)})};
z=Object.keys(I.triggers);this.directions=new Set(z);BYK(this.input,this.directions.has("right")||this.directions.has("left"))};
_.m(_.P$,dz);_.P$.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var XqS=function(z,l){l=z.input.direction(l);return z.config.triggers[l]};
_.P$.prototype.move=function(z,l){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var b=I.input.axis(z),v=I.input.position(z,I.config.startPosition,l.endPosition,l.moveRatio||1);I.element.style.transform="translate"+b+"("+v+"px)";I.animationRequestId=void 0}))};
var qGW=function(z,l,I){var b=I.moveRatio||1;I=Math.abs(z.config.startPosition-I.endPosition);return Math.min(z.input.distance(l)*b,I)/I};
_.P$.prototype.fade=function(z,l){var I=l.endOpacity;z=qGW(this,z,l);z>0&&(this.element.style.opacity=""+(((I||0)-1)*z+1))};
_.P$.prototype.threshold=function(z){return z.threshold?z.threshold:Math.abs(z.endPosition-this.config.startPosition)/3};
var F4c=function(z,l,I){var b,v,M,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1)return b=z.input.delta(l)+z.config.startPosition,v=z.input.axis(l),M=I,x=M.endPosition,g=M.transitionEndPosition,u=(G=g)!=null?G:x,Z.yield(z.element.animate([{transform:"translate"+v+"("+b+"px)"},{transform:"translate"+v+"("+u+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);z.element.style.transform="translate"+v+"("+u+"px)";_.qe(Z)})};
_.P$.prototype.translateBack=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1){if(!l.element.style.transform)return v.return();I=l.input.axis(z);b=l.config.startPosition;return v.yield(l.element.animate([{transform:l.element.style.transform},{transform:"translate"+I+"("+b+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}l.element.style.transform="translate"+I+"("+b+"px)";_.qe(v)})};
var i_c=function(z,l){var I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return I=z.input.delta(l)+z.config.startPosition,b=z.input.axis(l),v=I+70,M=z.element.style.opacity===""?1:z.element.style.opacity,x.yield(z.element.animate([{transform:"translate"+b+"("+I+"px)",opacity:M},{transform:"translate"+b+"("+v+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);z.element.style.transform="translate"+b+"("+v+"px)";z.element.style.opacity="0";_.qe(x)})};var hs=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;z.scrollRate=3;z.autoScrollAnimationStart=0;z.autoScrollPaused=!1;z.autoScrollRafId=0;return z};
_.m(hs,_.F6);_.p=hs.prototype;_.p.created=function(){var z=this;this.boundAutoScrollHandler=function(l){z.autoScroll(l)}};
_.p.detached=function(){this.hostElement.removeEventListener("mouseout",_.KJ(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.KJ(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.KJ(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.p.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.KJ(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.KJ(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.KJ(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.KJ(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.KJ(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.KJ(this,this.endAutoScroll)),this.endAutoScroll())};
_.p.autoScroll=function(z){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=z);var l;if(l=!this.autoScrollPaused&&this.scrollTarget)l=this.scrollTarget,l=l.scrollHeight-l.scrollTop!==l.clientHeight;l&&(l=1E3/this.scrollRate,z-=this.autoScrollAnimationStart,z>l&&(this.scrollTarget.scrollTop+=Math.ceil(z/l),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.p.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.p.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
hs.prototype.autoScrollEnabledChanged=hs.prototype.autoScrollEnabledChanged;_.e([_.X(),_.w("design:type",Object)],hs.prototype,"scrollRate",void 0);_.e([_.X(),_.w("design:type",Object)],hs.prototype,"scrollTarget",void 0);_.e([_.X(),_.w("design:type",Boolean)],hs.prototype,"autoScrollEnabled",void 0);_.e([_.By("autoScrollEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hs.prototype,"autoScrollEnabledChanged",null);_.e([_.Q5()],hs);_.Qb8=[hs.prototype];var YGS;var sg=function(){var z=_.q.apply(this,arguments)||this;z.buttonUpdate=_.C("web_button_rework");z.dismissButtonOverrides=_.C("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;z.forceDarkTheme=!1;z.forceLightTheme=!1;z.dynamicTextHeight=94;z.hasOverflowButton=!1;z.isInfeedModernization=!1;return z};
_.m(sg,_.q);_.p=sg.prototype;_.p.computeUrlImg=function(z){if(z)return _.Hr(z.thumbnails)};
_.p.getLogoHeight=function(z){return this.logoWithPadding(z)?"31":"24"};
_.p.getLogoClassName=function(z){return this.logoWithPadding(z)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.p.logoWithPadding=function(z){var l,I;return(z=(l=z.thumbnails)==null?void 0:(I=l[0])==null?void 0:I.height)&&z%31===0?!0:!1};
_.p.sendImpressionEndpoints=function(z){z.impressionEndpoints&&_.uJ(this.hostElement,z.impressionEndpoints)};
_.p.observeBasicPalette=function(){var z,l,I=(z=this.data)==null?void 0:(l=z.colorData)==null?void 0:l.basicColorPaletteData;I?_.Pr(this.hostElement,I):_.Pr(this.hostElement,{})};
_.p.observeDataChanged=function(){var z;this.dynamicTextHeight=((z=this.data)==null?0:z.supplementalText)?74:94;var l;this.hasSupplementalText=!((l=this.data)==null||!l.supplementalText);if(_.C("web_button_rework")){var I,b,v,M;z=(I=this.data)==null?void 0:(b=I.actionButton)==null?void 0:(v=b.buttonRenderer)==null?void 0:(M=v.colorData)==null?void 0:M.basicColorPaletteData;var x,g,G;if(!((x=this.data)==null?0:(g=x.actionButton)==null?0:(G=g.buttonRenderer)==null?0:G.style)&&z){this.computeIsInfeedModernization(this.data)||
(z.borderColor=z.foregroundTitleColor);var u,Z;this.set("data.actionButton.buttonRenderer",_.h7.unsafeClone((u=this.data)==null?void 0:(Z=u.actionButton)==null?void 0:Z.buttonRenderer))}}};
_.p.observeDataForCounterfactual=function(){if(_.C("kevlar_banner_cf_extra_logging")){var z;((z=this.data)==null?0:z.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.p.computeSupplementalStyle=function(){var z;if((z=this.data)!=null&&z.supplementalText){var l,I,b;if((l=this.data)==null?0:(I=l.colorData)==null?0:(b=I.basicColorPaletteData)==null?0:b.foregroundActivatedColor)return z=_.Ur(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+z+"; --yt-endpoint-hover-color:"+z+"; --yt-endpoint-visited-color:"+z+"; --yt-formatted-string-bold-font-weight:700;"}};
_.p.computeForcedDarkTheme=function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.actionButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.style,v,M,x;z=JFX(((v=this.data)==null?void 0:(M=v.colorData)==null?void 0:(x=M.basicColorPaletteData)==null?void 0:x.backgroundColor)||0);return b&&z};
_.p.computeForcedLightTheme=function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.actionButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.style,v,M,x;z=!JFX(((v=this.data)==null?void 0:(M=v.colorData)==null?void 0:(x=M.basicColorPaletteData)==null?void 0:x.backgroundColor)||0);return b&&z};
_.p.computeHasOverflowButton=function(z){return!!z.overflowButton};
_.p.computeHasTitle=function(z){return!!z.title};
_.p.computeTitleMaxFontSize=function(z){return this.computeHasOverflowButton(z)?28:64};
_.p.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.p.computeIsInfeedModernization=function(){var z,l,I,b,v=(z=this.data)==null?void 0:(l=z.actionButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:(b=I.colorData)==null?void 0:b.basicColorPaletteData;return(v==null?void 0:v.backgroundColor)===452984831||(v==null?void 0:v.backgroundColor)===218103808};
sg.prototype.observeDataForCounterfactual=sg.prototype.observeDataForCounterfactual;sg.prototype.observeDataChanged=sg.prototype.observeDataChanged;sg.prototype.observeBasicPalette=sg.prototype.observeBasicPalette;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],sg.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],sg.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sg.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sg.prototype,"buttonUpdate",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],sg.prototype,"hasSupplementalText",void 0);_.e([_.X(),_.w("design:type",Object)],sg.prototype,"dismissButtonOverrides",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.w("design:type",Boolean)],sg.prototype,"hasTitle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.w("design:type",Object)],sg.prototype,"forceDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.w("design:type",Object)],sg.prototype,"forceLightTheme",void 0);_.e([_.X(),_.w("design:type",Object)],sg.prototype,"dynamicTextHeight",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.w("design:type",Object)],sg.prototype,"hasOverflowButton",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.w("design:type",Object)],sg.prototype,"isInfeedModernization",void 0);_.e([_.By("data.colorData.basicColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sg.prototype,"observeBasicPalette",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sg.prototype,"observeDataChanged",null);_.e([_.By("data.isVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sg.prototype,"observeDataForCounterfactual",null);_.e([_.S({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],sg);
_.r(sg,"ytd-banner-promo-renderer",function(){if(YGS!==void 0)return YGS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YGS=z},{mode:1});var TYy;var cD8;var SGF;var rz=function(){return _.q.apply(this,arguments)||this};
_.m(rz,_.q);_.e([_.X(),_.w("design:type",Object)],rz.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.e([_.S({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],rz);
_.r(rz,"ytd-hashtag-grid-tile-renderer",function(){if(SGF!==void 0)return SGF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return SGF=z},{mode:1});var $h=function(){return _.q.apply(this,arguments)||this};
_.m($h,_.q);$h.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
$h.prototype.updateRichGridTrendingHashtagsVisibility=function(){var z,l;if(((z=this.data)==null||!z.isExpanded)&&(l=this.data)!=null&&l.tiles){z=this.data.tiles.length;l=z>this.richGridItemsPerRow?this.richGridItemsPerRow+1:z;var I=Math.ceil(z/l);this.fullyVisibleRows=z%l===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
$h.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
$h.prototype.updateRichGridTrendingHashtagsVisibility=$h.prototype.updateRichGridTrendingHashtagsVisibility;_.e([_.X(),_.w("design:type",Object)],$h.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Number)],$h.prototype,"fullyVisibleRows",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],$h.prototype,"isShowMoreVisible",void 0);_.e([_.X({selector:_.sp,value:0}),_.w("design:type",Number)],$h.prototype,"richGridItemsPerRow",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],$h.prototype,"ytdReduxBehavior",void 0);_.e([_.By("data","richGridItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$h.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.e([_.S({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],$h);
_.r($h,"ytd-hashtag-grid-shelf-renderer",function(){if(cD8!==void 0)return cD8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return cD8=z},{mode:1});var d7K;var ocW;var eB=function(){var z=_.q.apply(this,arguments)||this;z.visibleVideos=[];z.hiddenVideos=[];z.modern=_.C("web_modern_buttons");z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(eB,_.q);_.p=eB.prototype;_.p.attached=function(){var z=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",z);this.onDarkModeToggledAction(z)};
_.p.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"}}}};
_.p.dataChanged=function(){var z=this;this.requestElementsPerRow();var l,I;this.currentColorPalette=this.isDarkTheme?(l=this.data)==null?void 0:l.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var b;if((b=this.currentColorPalette)==null?0:b.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.IR(this,function(){z.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.p.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.p.computeIsFirstFeedItem=function(z){return z};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&this.set("isDarkTheme",z);this.data&&(this.currentColorPalette=z?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.p.getCurrentLogo=function(z,l){if(z)return l?z.darkLogoImage:z.lightLogoImage};
_.p.computeTitleStyle=function(z){var l;if((l=this.data)!=null&&l.title&&z&&z.textPrimary!==void 0)return"color:"+_.Ur(z.textPrimary)+";"};
_.p.computeSubtitleStyle=function(z){var l;if((l=this.data)!=null&&l.subtitle&&z&&z.textSecondary!==void 0)return"color:"+_.Ur(z.textSecondary)+";"};
_.p.computeDismissIconStyle=function(z){if(this.data&&this.data.dismissButton&&z&&z.textPrimary!==void 0)return"--yt-button-color:"+_.Ur(z.textPrimary)+";"};
_.p.computeOverflowButtonStyle=function(z){if(this.data&&this.data.overflowButton&&z&&z.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Ur(z.textPrimary)+";--yt-spec-icon-active-other:"+_.Ur(z.textPrimary)+";"};
_.p.computeBackgroundStyle=function(z){if(z&&this.data){var l="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.Hr((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(l+='background-image:url("'+I+'");')}z.backgroundColor!==void 0&&(l+="background-color:"+_.aD(z.backgroundColor)+";");return l}};
_.p.computeButton=function(){var z,l=Object.assign({},_.k((z=this.data)==null?void 0:z.showMoreButton,_.xm));if(this.modern&&l){l.style="STYLE_MONO_OUTLINE";var I;if(z=(I=this.currentColorPalette)==null?void 0:I.textPrimary)l.colorData={basicColorPaletteData:{foregroundTitleColor:z,borderColor:z}}}return l};
_.p.shouldShowBottomButton=function(z,l){return!(z==null?0:z.header)&&!(z==null||!z.primaryButton)&&l<3};
_.p.checkExpanded=function(z){this.isExpanded=z&&z.content?this.hiddenVideos.length===0:!0};
_.p.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.p.getLogoHeight=function(z){return this.logoWithPadding(z)?"26":"20"};
_.p.getLogoImageId=function(z){return this.logoWithPadding(z)?"logo-image-with-padding":"logo-image"};
_.p.computeHasSectionHeader=function(z){return!!z.header};
_.p.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var z;if((z=this.data.primaryButton)==null?0:z.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var l;((l=this.data.dismissButton)==null?0:l.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,b;((I=this.data)==null?0:(b=I.primaryButton)==null?0:b.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.p.setVisibleVideos=function(z){if(this.data&&this.data.content)if(this.data.content.length){var l=this.data.content.length;this.data.header?z?(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.slimItemsPerRow),l)):(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow),l)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(l,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow),l)):(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow-1),l))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.p.setHasMovieRenderer=function(){var z;if((z=this.data)!=null&&z.content){var l;this.hasMovieRenderer=!!_.k((l=this.data)==null?void 0:l.content[0],_.aiI)}else this.hasMovieRenderer=!1};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
_.p.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var z=_.D(this.hiddenMediaRenderers),l=z.next();!l.done;l=z.next())l.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(z=_.Hy(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&z.focus()}};
_.p.updateTitleSpec=function(){var z;(z=this.data)!=null&&z.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.p.logoWithPadding=function(z){var l,I,b;return(z=(l=this.getCurrentLogo(z,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(b=I[0])==null?void 0:b.height)&&z%31===0?!0:!1};
_.p.onUpdateElementsPerRowAction=function(z,l,I){z&&this.elementsPerRow!==z&&(this.elementsPerRow=z);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
eB.prototype.slimItemsPerRowChanged=eB.prototype.slimItemsPerRowChanged;eB.prototype.elementsPerRowChanged=eB.prototype.elementsPerRowChanged;eB.prototype.dataChanged=eB.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],eB.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],eB.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],eB.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],eB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],eB.prototype,"currentColorPalette",void 0);_.e([_.X(),_.w("design:type",Array)],eB.prototype,"visibleVideos",void 0);_.e([_.X(),_.w("design:type",Array)],eB.prototype,"hiddenVideos",void 0);
_.e([_.X(),_.w("design:type",Object)],eB.prototype,"primaryButton",void 0);_.e([_.X({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],eB.prototype,"elementsPerRow",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eB.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eB.prototype,"isExpanded",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eB.prototype,"largeTitle",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],eB.prototype,"hasMovieRenderer",void 0);_.e([_.X(),_.w("design:type",Number)],eB.prototype,"slimItemsPerRow",void 0);_.e([_.X(),_.w("design:type",Boolean)],eB.prototype,"showLightVideoMetadata",void 0);_.e([_.X(),_.w("design:type",Boolean)],eB.prototype,"showDarkVideoMetadata",void 0);_.e([_.X(),_.w("design:type",Number)],eB.prototype,"videoMetadataColor",void 0);
_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],eB.prototype,"miniMode",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.w("design:type",Boolean)],eB.prototype,"isFirstFeedItem",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.w("design:type",Boolean)],eB.prototype,"hasSectionHeader",void 0);
_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],eB.prototype,"roundedContainer",void 0);_.e([_.i5("#visible-video-container ytd-rich-grid-media"),_.w("design:type",Array)],eB.prototype,"visibleMediaRenderers",void 0);_.e([_.i5("#hidden-video-container ytd-rich-grid-media"),_.w("design:type",Array)],eB.prototype,"hiddenMediaRenderers",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],eB.prototype,"modern",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eB.prototype,"dataChanged",null);_.e([_.By("elementsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eB.prototype,"elementsPerRowChanged",null);_.e([_.By("slimItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eB.prototype,"slimItemsPerRowChanged",null);
_.e([_.S({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],eB);
_.r(eB,"ytd-brand-video-shelf-renderer",function(){if(ocW!==void 0)return ocW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ocW=z},{mode:1});var PNW;var wz=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(wz,_.q);_.p=wz.prototype;_.p.attached=function(){var z=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",z);this.onDarkModeToggledAction(z)};
_.p.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"}}}};
_.p.dataChanged=function(){this.requestElementsPerRow();var z,l;this.currentColorPalette=this.isDarkTheme?(z=this.data)==null?void 0:z.darkColorData:(l=this.data)==null?void 0:l.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.p.computeIsFirstFeedItem=function(z){return z};
_.p.onDarkModeToggledAction=function(z){z!==this.isDarkTheme&&this.set("isDarkTheme",z);this.data&&(this.currentColorPalette=z?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(z),this.updateButtonPalette())};
_.p.shouldShowThumbnailInMetadata=function(z){return z<=1};
_.p.computeVideoMetadataColor=function(){if(this.data){var z;if((z=this.currentColorPalette)==null?0:z.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.p.computeTitleStyle=function(z){var l;if((l=this.data)!=null&&l.title&&z&&z.textPrimary!==void 0)return"color:"+_.Ur(z.textPrimary)+";"};
_.p.computeSubtitleStyle=function(z){var l;if((l=this.data)!=null&&l.subtitle&&z&&z.textSecondary!==void 0)return"color:"+_.Ur(z.textSecondary)+";"};
_.p.computeOverflowButtonStyle=function(z){if(this.data&&this.data.overflowButton&&z.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Ur(z.textPrimary)+";--yt-spec-icon-active-other:"+_.Ur(z.textPrimary)+";"};
_.p.computeBackgroundStyle=function(z){if(z&&this.data){var l="";z.backgroundColor!==void 0&&(l+="background-color:"+_.aD(z.backgroundColor)+";");return l}};
_.p.computeHasOverflowButton=function(z){return!!z.overflowButton};
_.p.updateButtonPalette=function(){if(this.data){var z;if((z=this.data.primaryButton)==null?0:z.buttonRenderer){var l;if((l=this.currentColorPalette)==null?0:l.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var I;((I=this.currentColorPalette)==null?0:I.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)})}}};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
_.p.updateTitleSpec=function(){var z;(z=this.data)!=null&&z.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")};
_.p.onUpdateElementsPerRowAction=function(z){z&&this.elementsPerRow!==z&&(this.elementsPerRow=z)};
wz.prototype.elementsPerRowChanged=wz.prototype.elementsPerRowChanged;wz.prototype.dataChanged=wz.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],wz.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],wz.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],wz.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wz.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],wz.prototype,"currentColorPalette",void 0);_.e([_.X(),_.w("design:type",Object)],wz.prototype,"primaryButton",void 0);
_.e([_.X({reflectToAttribute:!0,value:3}),_.w("design:type",Number)],wz.prototype,"elementsPerRow",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],wz.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],wz.prototype,"titleSize",void 0);_.e([_.X(),_.w("design:type",Number)],wz.prototype,"videoMetadataColor",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],wz.prototype,"miniMode",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.w("design:type",Boolean)],wz.prototype,"isFirstFeedItem",void 0);_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],wz.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.w("design:type",Boolean)],wz.prototype,"hasOverflowButton",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wz.prototype,"dataChanged",null);_.e([_.By("elementsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wz.prototype,"elementsPerRowChanged",null);_.e([_.S({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],wz);
_.r(wz,"ytd-brand-video-singleton-renderer",function(){if(PNW!==void 0)return PNW;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PNW=z},{mode:_.yP("kevlar_poly_si_batch_j070")?1:2});var hT0;var sb4=_.P(function(z){var l=z.data;return _.N(_.pK,{data:function(){return l().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(l().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var I=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":I=88;break a;default:I=88}return I},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return l().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ak"),$7K=_.P(function(z){var l=z.metadataRow;
var I=z.delimiter;return _.N(_.qy,{each:function(){return l().textParts||[]},
keyBy:"INDEX"},function(b,v){return _.N(_.xP,null,_.N(_.Rf,{text:b,noWrap:!0,userInput:!0}),_.N(rDX,{delimiter:I,max:function(){return l().textParts.length},
index:v}))})},"bk"),rDX=_.P(function(z){var l=z.delimiter;
var I=z.max;var b=z.index;return _.N(_.E,{cond:function(){return(l==null?void 0:l())&&I()-1>b()},
then:function(){return _.N("span",null,l)}})},"ck"),eTq=_.P(function(z){var l=z.data;
z={};return _.N("yt-profile-page-header-information-view-model",{class:_.m9("profilePageHeaderInformationViewModelHost",(z.profilePageHeaderInformationViewModelMobile=!1,z))},_.N(_.E,{cond:function(){return l().onTap},
then:function(){return _.N(_.cZ,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.Wh(l().onTap)}},_.N(_.TS,{data:function(){return l().thumbnail}},{profilePageHeaderThumbnailViewModel:sb4}))},
else:function(){return _.N("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.N(_.TS,{data:function(){return l().thumbnail}},{profilePageHeaderThumbnailViewModel:sb4}))}}),_.N("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.N(_.E,{cond:function(){return l().onTap},
then:function(){return _.N(_.TS,{data:function(){return l().title}},{profilePageHeaderTitleViewModel:function(I){var b=I.data;
return _.N(_.cZ,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.Wh(b().onTap)}},_.N(_.Rf,{text:function(){return b().title}}))}})},
else:function(){return _.N(_.TS,{data:function(){return l().title}},{profilePageHeaderTitleViewModel:function(I){var b=I.data;
return _.N(_.Rf,{text:function(){return b().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.N(_.TS,{data:function(){return l().metadata}},{profilePageHeaderMetadataViewModel:function(I){var b=I.data;
return _.N(_.E,{cond:function(){return b().metadataRows},
then:function(v){return _.N("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.N(_.qy,{each:v,keyBy:"INDEX"},function(M,x){return _.N(_.xP,null,_.N($7K,{metadataRow:M,delimiter:" \u2022 "}),_.N(rDX,{delimiter:" \u2022 ",max:function(){return v().length},
index:x}))}))}})}})))},"dk");
eTq.idomCompat=!0;_.uO(eTq,"yt-profile-page-header-information-view-model",{props:{data:_.mB}});var As=function(){return _.q.apply(this,arguments)||this};
_.m(As,_.q);As.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],As.prototype,"data",void 0);_.e([_.S({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],As);
_.r(As,"ytd-effect-pivot-header-view-model",function(){if(hT0!==void 0)return hT0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return hT0=
z},{mode:1});var wqK;var W$=function(){return _.q.apply(this,arguments)||this};
_.m(W$,_.q);W$.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],W$.prototype,"data",void 0);_.e([_.S({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],W$);
_.r(W$,"ytd-source-pivot-header-renderer",function(){if(wqK!==void 0)return wqK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return wqK=z},{mode:1});_.ADC=_.P(function(z){var l=z.data;var I=function(){var b;return _.w5((b=l())==null?void 0:b.rendererContext)};
z={};return _.N("content-list-item-view-model",{el:_.xl(_.AR(function(){return l().rendererContext})),
class:_.m9("ytContentListItemViewModelHost",(z.ytContentListItemViewModelTappable=I,z)),role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.N("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.N("div",{class:"ytContentListItemViewModelImageContainer"},_.N(_.E,{cond:function(){return l().image},
then:function(b){return _.N(_.pK,{data:b,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.N(_.TS,{data:function(){var b;
return(b=l())==null?void 0:b.avatar}},{avatarViewModel:_.Dz})),_.N("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.N("div",{class:_.m9("ytContentListItemViewModelTitle",function(){a:{switch(l().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var b="ytContentListItemViewModelProminentTitle";
break a}b=void 0}return b})},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",{class:"ytContentListItemViewModelMetadata"},_.N(_.TS,{data:function(){return l().metadata}},{contentMetadataViewModel:function(b){return _.N(_.Sq,{data:b.data,
layout:1})}})))),_.N("div",{class:"ytContentListItemViewModelActionButton"},_.N(_.TS,{data:function(){var b;
return(b=l())==null?void 0:b.actionButton}},{buttonViewModel:_.h4,
toggleButtonViewModel:_.vL})))},"ek");var W4W=_.P(function(z){var l=function(){return z.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.N("yt-linear-layout-view-model",{class:_.m9("ytLinearLayoutViewModelHost",function(){a:switch(z.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var I="ytLinearLayoutViewModelHostHorizontal";break a;default:I="ytLinearLayoutViewModelHostVertical"}return I})},_.N(_.TS,{data:function(){return z.data().items}},{lockupViewModel:function(I){return _.N("div",{style:_.XV({"margin-bottom":function(){return l()?void 0:"8px"},
"margin-right":function(){return l()?"8px":void 0}})},_.N(_.sq,{data:I.data,
containerType:function(){return l()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return l()?void 0:"33%"}}))}}))},"fk");var ncs=_.P(function(z){var l=function(){return z.data().background},I=function(){return z.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},b=function(){return z.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.N("yt-card-view-model",{class:_.m9("ytCardViewModelHost",z.className)},_.N(_.dA,{contentId:function(){return z.data().contentId}},function(){return _.N("div",{class:_.m9("ytCardViewModelCardViewModelInner",function(){return D7K(z.data().cardStyle)},function(){var v;
a:{switch((v=z.data().cardState)==null?void 0:v.selectionState){case "CARD_SELECTION_STATE_SELECTED":v="ytCardViewModelSelected";break a}v=void 0}return v})},_.N(_.TS,{data:l},{cinematicContainerViewModel:function(v){return _.N(_.kjI,{data:v.data})}}),_.N("div",{class:"ytCardViewModelContentWrapper"},_.N(_.E,{cond:function(){return!I()},
then:function(){var v={};return _.N("div",{class:"ytCardViewModelTopContentContainer"},_.N("div",{class:"ytCardViewModelTopContent"},_.N(_.TS,{data:function(){return z.data().topContent}},{contentListItemViewModel:function(M){return _.N(_.ADC,{data:M.data})}})),_.N("div",{class:_.m9("ytCardViewModelInlineTrailingAction",(v.ytCardViewModelInlineCenterTrailingAction=b,v))},_.N(_.TS,{data:function(){return z.data().trailingAction}},{buttonViewModel:function(M){return _.N(_.h4,{data:M.data})}})))}}),
_.N("div",{class:"ytCardViewModelBodyContent"},_.N(_.TS,{data:function(){return z.data().bodyContent}},{contentListItemViewModel:_.ADC,
listItemViewModel:_.GA,linearLayoutViewModel:W4W}))),_.N(_.E,{cond:function(){return I()},
then:function(){return _.N("div",{class:"ytCardViewModelOverlayTrailingAction"},_.N(_.TS,{data:function(){return z.data().trailingAction}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data})}}))}}))}))},"gk");_.uO(ncs,"yt-card-view-model",{props:{data:_.mB,className:_.mB}});var Ec1=_.bQK.talkToRecsStateSelector;_.uO(_.P(function(z){var l=function(){return _.k(z.data().flowRoot,kGq)};
_.Sm(function(){var I=l(),b=function(){},v=function(){};
if(I){var M,x,g,G=((g=_.k((M=l())==null?void 0:(x=M.steps)==null?void 0:x[0],_.IxS))==null?void 0:g.stepId)||"";gcl(I,G);b=NYS(I);v=u_l(I)}_.cb(function(){var u=l();u&&_.vF().dispatch(_.cU("flowStateEntity",u.flowStateEntityKey));b();b=function(){};
v();v=function(){}})});
return _.N("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.N(_.dA,{contentId:function(){return z.data().contentId}},function(){return _.N("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.N(_.E,{cond:l,
then:function(I){return _.N(_.GRC,{data:I})}}))}))},"hk"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.mB}});_.uO(_.P(function(){return _.N("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.N("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.N("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.N(_.NCl,null)),_.N(_.Rf_,{data:{rows:1},isExploreHub:!0}))},"ik"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.uO(_.P(function(z){var l=z.data;var I=z.standardUnitMinWidth;z=_.D((0,_.B9_)(l));var b=z.next().value,v=z.next().value,M=function(){var g,G=(g=b())==null?void 0:g.contents;return G==null||G.length===0},x=function(){v(Object.assign({},b(),{contents:[]}))};
return _.N("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.xl(_.ps({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var g=_.k(l().chipsShelf,RTq);if(g!=null&&g!=null&&g.autoselectChipOnVisible){var G,u,Z=_.k(g==null?void 0:(G=g.contents)==null?void 0:G[(u=g.autoselectedChipIndex)!=null?u:0],_.EE);Z&&Z.tapCommand&&_.ae(Z.tapCommand)}}}))},_.N(_.dA,{contentId:function(){return l().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.N("div",null,_.N("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.N(_.TS,{data:function(){return l().header}},{sectionHeaderViewModel:function(g){return _.N(_.rj,{data:g.data,
disableHorizontalPadding:!0})}})),_.N("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.N(_.TS,{data:function(){return l().chipsShelf}},{chipsShelfViewModel:function(g){return _.N(_.x6,{data:g.data,
callback:x,selectionBehavior:1})}})),_.N("div",null,_.N(_.E,{cond:M,
then:function(){return _.N("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.N(_.Rf_,{data:{rows:1},isExploreHub:!0}))}}),_.N(_.TS,{data:function(){var g;
return(g=b())==null?void 0:g.contents}},{richShelfRenderer:function(g){return _.N(_.QN_,{data:g.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"jk"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.mB,
standardUnitMinWidth:_.mB}});var nZ=function(){return _.q.apply(this,arguments)||this};
_.m(nZ,_.q);
nZ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
nZ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.e([_.t(_.gU),_.w("design:type",Object)],nZ.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],nZ.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nZ.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Number)],nZ.prototype,"standardUnitMinWidth",void 0);_.e([_.S({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],nZ);
_.r(nZ,"ytd-rich-section-renderer",function(){if(d7K!==void 0)return d7K;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return d7K=z},{mode:_.yP("kevlar_poly_si_batch_j029")?
1:2});_.uO(_.XWs,"yt-profile-identity-info-view-model",{props:{data:_.mB,hideDivider:_.mB,isChannelInfoCard:_.mB}});_.uO(_.iFM,"yt-page-header-view-model",{props:{data:_.mB,noPadding:_.mB,enableBanner:_.mB,cinematicContainerTopbarOffset:_.mB,allowCinematicContainerOverflow:_.mB,displayAsSidebar:_.mB,displayAsPanel:_.mB,alwaysUseMediumTextDescription:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=function(){var v;return(v=l().numColumns)!=null?v:2},b=function(){return I()>1?3:2};
z={};return _.N("ytd-rich-grid-group",{class:_.m9("ytdRichGridGroupHost",(z.ytdRichGridGroupHostFirstColumn=function(){return l().colIndex===0},z)),
style:_.XV({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":b})},_.N("div",{class:"ytdRichGridGroupContents"},_.N(_.TS,{data:function(){var v;return(v=l().contents)==null?void 0:v.slice(0,b())}},{richItemRenderer:function(v){return _.N(_.iCw,{data:v.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"kk"),"ytd-rich-grid-group",{props:{data:_.mB}});var LZ=function(){var z=_.q.apply(this,arguments)||this;z.resizeOnObserverInit=!1;z.isInlinePreviewDisabled=_.C("web_disable_inline_preview");z.disableStickyFilterBar=!1;z.transparentBackgroundChipsBar=!1;z.hideChipsBar=!1;z.isWatchDefaultLayout=!0;z.continuationShowButton=!1;z.rowReducedHorizontalMargin=!1;z.useCompactList=!1;z.manualDownloadsPresent=!1;z.smartDownloadsPresent=!1;z.isOnline=!1;z.shouldRenderDownloadsBanner=!1;z.shouldRenderDownloadsBannerUpsell=!1;z.hasOptedIntoSmartDownloads=!1;
z.elementsPerRow=4;z.typographyBump=!1;z.showGnomeContents=!1;z.slimItemsPerRow=1;z.pageLoadingFromNavigation=!1;z.resizeObserver=null;z.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"};z.rendererToTagNameMap=new Map(Object.entries(z.contentMapping()).map(function(l){var I=
_.D(l);l=I.next().value;I=I.next().value;return[l,I.component]}));
z.insertedContent=new Map;return z};
_.m(LZ,_.q);_.p=LZ.prototype;_.p.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var z=_.D(_.Hy(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),l=z.next();!l.done;l=z.next())l.value.useCompactList=this.useCompactList};
_.p.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var z=_.D(_.Hy(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),l=z.next();!l.done;l=z.next())l=l.value,l.sizing=this.sizing,l.typographyBump=this.typographyBump};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.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]]"}}}};
_.p.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}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.KJ(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21924_throttledOnResize=new _.zD(this.resizeObserved,_.OI("rich_grid_resize_delay_ms",50),this)};
_.p.detached=function(){var z;(z=this.resizeObserver)==null||z.disconnect();document.removeEventListener("yt-page-type-changed",_.KJ(this,this.onPageChange))};
_.p.insertRichSection=function(z){var l=z.richItemTargetId;z=z.richSectionRendererToInsert;l&&z&&(this.insertedContent.set(l,{content:z,timestamp:Date.now()}),this.reflowContent())};
_.p.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeIsInlinePreviewEnabled=function(z,l,I){return _.C("web_disable_inline_preview")?!1:!I&&_.$WF({miniplayerIsActive:z,miniplayerPlaybackState:l})};
_.p.computeSizing=function(){var z=_.v_S(this.data);if(z||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return z?this.useCompactList?"COMPACT":z:this.miniMode?"COMPACT":"STANDARD"};
_.p.updateItemMinAndMaxWidth=function(){var z=_.OI("rich_grid_max_item_width",500);z>0&&_.R8(this.hostElement,{"--ytd-rich-grid-item-max-width":z+"px"});var l;z=this.getRichItemMinWidth((l=this.hostElement)==null?void 0:l.clientWidth);z>0&&_.R8(this.hostElement,{"--ytd-rich-grid-item-min-width":z+"px"})};
_.p.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.p.resizeObserved=function(){_.EK(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.p.navigateBackToHome=function(){_.C("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);var z=_.pG().resolve(_.OB).isOnWatch(),l,I=((l=_.ma(location.pathname))==null?void 0:l.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(I)||z)&&this.gnomeContents&&_.C("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!0)};
_.p.onPageChange=function(){var z=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.EK(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ow.addJob(function(){z.pageLoadingFromNavigation=!1;z.setMasthead();z.maybeSetBigYoodle();z.forceRefreshAndLog();z.terminateVideoPreview();_.C("web_hide_gnome_until_user_navigates_back_to_home")&&(z.dataChanged(),_.IR(z,function(){if(z.showGnomeContents){var l=Array.from(_.Hy(z.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(b){b=
_.Hy(b).querySelector("ytd-rich-shelf-renderer");return!!b&&b.isGnomeShelf()});
if(l){l=l.offsetTop-z.contentsElement.offsetTop;var I=_.pG().resolve(_.OB).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:l,behavior:"smooth"})}}}))},8)):(_.C("web_hide_gnome_until_user_navigates_back_to_home")&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.p.dataChanged=function(){var z=this;_.EK(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.IR(this,function(){z.updateRichItemGridPositions();z.contentsElement&&_.R8(z.hostElement,{"--ytd-rich-grid-content-offset-top":z.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.p.initResizeObserver=function(){var z=this;if(window.ResizeObserver){var l;(l=this.resizeObserver)==null||l.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var b;(b=z.resizeObserver)==null||b.disconnect();var v;(v=z.JSC$21924_throttledOnResize)==null||v.fire();requestAnimationFrame(function(){var x;(x=z.JSC$21924_throttledOnResize)==null||x.fire();z.initResizeObserver()})}else if(I=!0,z.resizeOnObserverInit){var M;
(M=z.JSC$21924_throttledOnResize)==null||M.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.p.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.EK(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.updateElementsPerRow=function(){_.EK(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.p.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.p.onRichShelfRendererCollapse=function(z){if(this.shownItems){var l=z.detail;z=this.shownItems.findIndex(function(b){var v,M;return((M=_.k(b==null?void 0:(v=b.richSectionRenderer)==null?void 0:v.content,_.nZA))==null?void 0:M.trackingParams)===l});
var I=z+1;z<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.p.onSoftReloadPage=function(){this.scrollUpToTop()};
_.p.handleRerenderDownloadsData=function(){_.C("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.p.handlePlaylistRemoveVideosAction=function(z){var l;if(((l=_.k(z,_.Gp_))==null?0:l.setVideoIds)&&this.data&&this.data.contents){z=_.k(z,_.Gp_).setVideoIds;for(l=this.data.contents.length-1;l>=0;){var I=_.k(this.data.contents[l],_.Lw);(I=I&&_.k(I.content,_.DZ))&&I.setVideoId&&z.includes(I.setVideoId)&&this.splice("data.contents",l,1);l--}this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var z=0;z<this.data.contents.length;z++)this.set("data.contents."+z+".richItemRenderer.index",_.lc(String(z+1)))};
_.p.hasTopRowInlinePlayableVideoWithEndorsement=function(z){var l;return!((l=z.slice(0,this.getItemsPerRow()))==null||!l.some(function(I){var b;I=_.k(I==null?void 0:(b=I.richItemRenderer)==null?void 0:b.content,_.gb);var v;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(v=I.thumbnailOverlays)==null?void 0:v.some(function(M){return M.thumbnailOverlayEndorsementRenderer}))}))};
_.p.refreshGridLayoutNew=function(z,l,I,b){var v=b.postsPerRow;var M=b.slimItemsPerRow;var x=b.gameCardsPerRow;b=b.miniGameCardsPerRow;var g;if((g=this.data)==null||!g.contents||!this.containerWidth)return!1;var G;if((G=this.data.responsiveContainerConfiguration)==null?0:G.responsiveSize){var u=_.SSt(this.data.responsiveContainerConfiguration,this.containerWidth),Z;g=_.Vo(Object.assign({},u,{standardUnitMinWidth:(Z=this.data)==null?void 0:Z.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&u.isCompactList)}else g=_.Vo({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(u=this.data)==null?void 0:u.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=g.typographyBump;Z=!1;if(z||this.elementsPerRow!==g.numItems||this.postsPerRow!==v||this.slimItemsPerRow!==M||this.gameCardsPerRow!==
x||this.miniGameCardsPerRow!==b||this.gutter!==g.gutter)Z=this.elementsPerRow!==g.numItems,this.elementsPerRow=g.numItems,this.postsPerRow=v,this.slimItemsPerRow=M,this.gameCardsPerRow=x,this.miniGameCardsPerRow=b,this.gutter=g.gutter,this.itemWidth=g.itemWidth,this.reflowContent(l),_.R8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":g.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(I);this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:g.maxContainerWidth}));return Z};
_.p.refreshGridLayout=function(z,l){var I,b=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(b,!0);var v;if((v=this.data)==null||!v.contents||!this.containerWidth)return z&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(z=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(b);var M=this.isShortsPanel?146:194,x=this.getMiniGameCardMinWidth(),g=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;b=I=this.calcElementsPerRow(I,
g);(v=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var G=this.calcMaxSlimElementsPerRow(I,g,this.isDefaultGrid);g=this.calcElementsPerRow(M,G);var u=this.calcElementsPerRow(this.isCompactGrid?M:154,G);M=this.calcElementsPerRow(this.isCompactGrid?M:x,G);x=!1;if(this.sizing)return this.refreshGridLayoutNew(z,l,v,{postsPerRow:b,slimItemsPerRow:g,gameCardsPerRow:u,miniGameCardsPerRow:M});if(z||this.elementsPerRow!==I||this.postsPerRow!==b||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
u||this.miniGameCardsPerRow!==M)x=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=b,this.slimItemsPerRow=g,this.gameCardsPerRow=u,this.miniGameCardsPerRow=M,this.reflowContent(l),this.updateElementsPerRow(),_.R8(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)&&_.R8(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(v);_.EK(this.hostElement,"yt-rich-grid-layout-refreshed");return x};
_.p.getRichItemMinWidth=function(z){var l=_.OI("rich_grid_min_item_width",310);if(!_.C("kevlar_disable_min_width_override")){var I,b;l=(b=(I=this.data)==null?void 0:I.minItemWidth)!=null?b:l}return l+_.VLQ(z)};
_.p.calcMaxSlimElementsPerRow=function(z,l,I){return(I===void 0?0:I)?z===1?2:z%2===0?z/2*3:z+2:l*2};
_.p.adjustRichGridWidth=function(z,l){var I=_.C("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.pG().resolve(_.MB(_.ZW));var b=I==null?void 0:I.guideElement;if(!(!I||I.getData()||b!=null&&b.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(z)&&I.getGuideExpandsAutomatically()){var v,M,x=Number((v=window.getComputedStyle(this.hostElement))==null?void 0:(M=v.getPropertyValue("--app-drawer-width"))==null?void 0:M.replace("px",""));z-=x||0}else if(I.canFitMiniGuide(z)){var g;
v=Number((x=window.getComputedStyle(this.hostElement))==null?void 0:(g=x.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:g.replace("px",""));z-=v||0}}z>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(z-=l?32:48));return z};
_.p.calcElementsPerRow=function(z,l){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),b=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+b)/(z+b))||1,l)};
_.p.reflowContent=function(z){var l=this;if(!this.isReflowing){this.isReflowing=!0;var I,b,v=!!((I=this.data)==null?0:(b=I.contents)==null?0:b.some(function(f){return _.k(f,_.MN)}));
I=this.getItemsPerRow();var M;b=(M=this.data)==null?void 0:M.reflowOptions;z&&(_.sK("rgr_s"),_.IR(this,function(){_.sK("rgr_nrf")}));
z={};(M=_.Hy(this.hostElement).querySelector("#contents"))&&(z={contentElement:M,rendererToTagNameMap:this.rendererToTagNameMap});M=(M=this.data.contents)?M.slice():[];var x=(_.C("web_hide_gnome_behind_feed_filter_chip")||_.C("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,g=-1;if(this.isHomePage&&x){for(var G=0;G<M.length;G++){var u=void 0,Z=void 0,H=_.k((u=M[G])==null?void 0:(Z=u.richSectionRenderer)==null?void 0:Z.content,_.nZA);H&&x&&(Z=u=void 0,H=_.k((u=H)==null?
void 0:(Z=u.contents)==null?void 0:Z[0],_.Lw),u=void 0,_.k((u=H)==null?void 0:u.content,_.nIM)&&(g=G))}g>-1&&(this.gnomeContents=M.splice(g,1))}v=b_C(M,I,v,b,this.getRichGridStyle(),z,this.insertedContent);var y=v.orderedContent;if(v=v.pinnedContentNotShownTargetIds)for(v=_.D(v),I=v.next();!I.done;I=v.next())this.insertedContent.delete(I.value);v=function(){l.shownItems=y;l.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(y),_.IR(this,v)):v()}};
_.p.getFirstRowItems=function(z){for(var l=[],I=0;I<z.length;I++){var b=void 0,v=void 0,M=void 0,x=void 0,g=void 0,G=void 0;if(((b=z[I])==null?void 0:(v=b.richItemRenderer)==null?void 0:v.rowIndex)===0||((M=z[I])==null?void 0:(x=M.richGroupRenderer)==null?void 0:x.rowIndex)===0||((g=z[I])==null?void 0:(G=g.richSectionRenderer)==null?void 0:G.rowIndex)===0)l.push(z[I]);else break}return l};
_.p.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.p.resetInsertedContentIfNeeded=function(){(_.C("web_explore_hub_on_hover")||_.C("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.p.handleChipCloudChipSelectAction=function(z,l){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.C("web_hide_gnome_behind_feed_filter_chip")&&(l?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.p.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()};
_.p.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.C("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.p.terminateVideoPreview=function(){_.EK(this.hostElement,"yt-terminate-video-preview-action")};
_.p.updateRichItemGridPositions=function(){var z={gridData:{gridColumnCount:this.elementsPerRow}},l;((l=this.data)==null?0:l.trackingParams)&&(l=_.sU())&&_.li(l,_.ch(this.data.trackingParams),z);_.EK(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.miniModeAllowed=function(){return this.isChannelPage};
_.p.getMiniGameCardMinWidth=function(){return 154};
_.p.updateMiniMode=function(z){this.miniMode=this.miniModeAllowed()&&z;this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_RICH_GRID_MINI_MODE",payload:z}))};
_.p.isCurrentPage=function(){return location.pathname===this.pagePath};
_.p.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var z=_.pG().resolve(_.OB).getCurrentPage();z&&z.setScrollTop(0)}};
_.p.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.p.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.p.maybeSetBigYoodle=function(){var z,l=(z=this.data)==null?void 0:z.bigYoodle;this.bigYoodleData!==l&&(this.bigYoodleData=l)};
_.p.setMasthead=function(){var z;((z=this.data)==null?0:z.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.p.getRichGridStyle=function(){var z,l;return(l=(z=this.data)==null?void 0:z.style)!=null?l:"RICH_GRID_STYLE_UNKNOWN"};
_.p.onIsShortsGridChange=function(){var z=this.ytdReduxBehavior,l=z.dispatch,I=this.getRichGridStyle();l.call(z,_.GZ({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.vP.Object.defineProperties(LZ.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var z;return(((z=this.data)==null?void 0:z.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var z;return(((z=this.data)==null?void 0:z.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var z=_.pG().resolve(_.OB).getCurrentPage(),l,I,b;return(((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_audio_pivot"||_.C("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.C("web_enable_effect_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_effect_pivot")&&(z==null?void 0:z.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.C("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 z;return!((z=this.data)==null?0:z.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var z;return((z=_.pG().resolve(_.OB).getCurrentPage())==null?void 0:z.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var z;return((z=_.pG().resolve(_.OB).getCurrentPage())==null?void 0:z.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 z;return(((z=this.data)==null?void 0:z.targetId)||"")==="watch-next-feed"&&!_.C("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?0:z.enableContentSpecificAspectRatio)||((l=this.data)==null?0:(I=l.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.OI("web_continuation_handler_margin",0):0}}});
LZ.prototype.onIsShortsGridChange=LZ.prototype.onIsShortsGridChange;LZ.prototype.onReloadContinuationFinish=LZ.prototype.onReloadContinuationFinish;LZ.prototype.reflowContent=LZ.prototype.reflowContent;LZ.prototype.handleRerenderDownloadsData=LZ.prototype.handleRerenderDownloadsData;LZ.prototype.onRichShelfRendererCollapse=LZ.prototype.onRichShelfRendererCollapse;LZ.prototype.onRequestElementsPerRow=LZ.prototype.onRequestElementsPerRow;LZ.prototype.contentLengthChanged=LZ.prototype.contentLengthChanged;
LZ.prototype.dataChanged=LZ.prototype.dataChanged;LZ.prototype.onSizingChange=LZ.prototype.onSizingChange;LZ.prototype.onUseCompactListChange=LZ.prototype.onUseCompactListChange;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],LZ.prototype,"ironResizableBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],LZ.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],LZ.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],LZ.prototype,"componentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],LZ.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],LZ.prototype,"miniMode",void 0);_.e([_.X({value:[]}),_.w("design:type",Array)],LZ.prototype,"shownItems",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],LZ.prototype,"isReflowing",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],LZ.prototype,"isFilteredFeed",void 0);_.e([_.X({selector:_.MCk}),_.w("design:type",Boolean)],LZ.prototype,"guideIsExpanded",void 0);
_.e([_.X({selectorArgs:["entitySelectorType"],selector:function(z,l){if(_.C("kevlar_modern_downloads_page")&&l&&l!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(l){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":l=z.entities;var I=_.dg(l),b=_.oh(l),v=_.KvH(z),M=_.mG7(z),x=_.tCt(z),g=_.U1p(l),G=_.Fs(I),u=_.Pg(l);return _.qSY(I,b,g,_.JM5(l),v,M,G,u,x,_.X2f(z),_.eS(z));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return z=_.dg(z.entities),_.FVx(z);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return z=
_.Wtf(z.entities),_.QSH(z);default:_.PW(new _.qB("Error: entitySelectorType defined but not matched in selector.",z,l))}}}),
_.w("design:type",Object)],LZ.prototype,"entityDrivenRichGridData",void 0);_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"resizeOnObserverInit",void 0);_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"bigYoodleData",void 0);_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"mastheadData",void 0);_.e([_.X(),_.w("design:type",Boolean)],LZ.prototype,"isInlinePreviewDisabled",void 0);_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"disableStickyFilterBar",void 0);
_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"transparentBackgroundChipsBar",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],LZ.prototype,"hideChipsBar",void 0);_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"isWatchDefaultLayout",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],LZ.prototype,"continuationShowButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],LZ.prototype,"rowReducedHorizontalMargin",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],LZ.prototype,"useCompactList",void 0);_.e([_.X({selector:function(z){return _.oh(z.entities).length>0}}),
_.w("design:type",Object)],LZ.prototype,"manualDownloadsPresent",void 0);_.e([_.X({selector:function(z){return _.dg(z.entities).length>0}}),
_.w("design:type",Object)],LZ.prototype,"smartDownloadsPresent",void 0);_.e([_.X({selector:_.eS}),_.w("design:type",Object)],LZ.prototype,"isOnline",void 0);_.e([_.X({selector:_.mG7}),_.w("design:type",Object)],LZ.prototype,"shouldRenderDownloadsBanner",void 0);_.e([_.X({selector:_.X2f}),_.w("design:type",Object)],LZ.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.e([_.X({selector:_.KvH}),_.w("design:type",Object)],LZ.prototype,"hasOptedIntoSmartDownloads",void 0);
_.e([_.By("useCompactList"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"onUseCompactListChange",null);_.e([_.By("sizing","typographyBump"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"onSizingChange",null);_.e([_.X({selector:_.Gvx}),_.w("design:type",Number)],LZ.prototype,"miniplayerPlaybackState",void 0);_.e([_.X({selector:_.rg}),_.w("design:type",Boolean)],LZ.prototype,"miniplayerIsActive",void 0);
_.e([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.w("design:type",Boolean)],LZ.prototype,"isInlinePreviewEnabled",void 0);_.e([_.X({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.w("design:type",String)],LZ.prototype,"sizing",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],LZ.prototype,"elementsPerRow",void 0);
_.e([_.X(),_.w("design:type",Object)],LZ.prototype,"typographyBump",void 0);_.e([_.X(),_.w("design:type",Number)],LZ.prototype,"itemWidth",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],LZ.prototype,"headerElement",void 0);_.e([_.qX("#contents"),_.w("design:type",HTMLElement)],LZ.prototype,"contentsElement",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"dataChanged",null);
_.e([_.YE("data.contents.length"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"contentLengthChanged",null);_.e([_.tP("yt-request-elements-per-row"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"onRequestElementsPerRow",null);
_.e([_.tP("yt-rich-shelf-renderer-collapse"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],LZ.prototype,"onRichShelfRendererCollapse",null);_.e([_.YE("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"handleRerenderDownloadsData",null);
_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],LZ.prototype,"entitySelectorType",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isSub",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isWatch",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data.targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isShortsPanel",null);_.e([_.X({reflectToAttribute:!0}),_.B("isWatch"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"reducedTopMargin",null);_.e([_.X({reflectToAttribute:!0}),_.B("data","isWatch","isWatchDefaultLayout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"noTopMargin",null);
_.e([_.X({reflectToAttribute:!0}),_.B("isInlinePreviewEnabled","shownItems"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"topRowEndorsement",null);_.e([_.B("data.header"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"hideHeader",null);_.e([_.tP("yt-rich-grid-reflow"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean]),_.w("design:returntype")],LZ.prototype,"reflowContent",null);
_.e([_.tP("yt-reload-continuation-finish"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"onReloadContinuationFinish",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isSlimGrid",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isShortsGrid",null);
_.e([_.B("data","isSlimGrid","isShortsGrid"),_.X(),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"noRichItemGutterMargins",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isShortsGridSlim",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isCompactGrid",null);
_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"isDefaultGrid",null);_.e([_.B("data.targetId"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"hideChipsBarOnWatch",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],LZ.prototype,"onIsShortsGridChange",null);
_.e([_.B("data.enableContentSpecificAspectRatio"),_.X(),_.w("design:type",Boolean),_.w("design:paramtypes",[])],LZ.prototype,"force16By9ThumbnailAspectRatio",null);_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],LZ.prototype,"continuationTriggerOffset",null);_.e([_.S({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],LZ);
_.r(LZ,"ytd-rich-grid-renderer",function(){if(TYy!==void 0)return TYy;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return TYy=z},{mode:2});var L4X=_.P(function(z){var l=z.thumbsUp,I=z.thumbsDown,b=z.rightAlignThumbs;z=_.D(_.Z_(!1,void 0,"OxPsH"));var v=z.next().value,M=z.next().value;z=_.D(_.Z_(!1,void 0,"V5vWne"));var x=z.next().value,g=z.next().value;z={};return _.N("div",{class:_.m9("ytwThumbsUpDownThumbs",(z.ytwThumbsUpDownRightAlign=function(){return b==null?void 0:b()},z))},_.N(_.vL,{data:l,
onToggle:function(G){M(G);x()&&g(!1)},
buttonShapeOverrides:function(){return{toggled:v()}}}),_.N(_.vL,{data:I,
onToggle:function(G){g(G);v()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:x()}}}))},"lk");
L4X.idomCompat=!0;var a54=_.P(function(z){var l=function(){return z.data().pendingStateEntityKey||""},I=_.F1(_.Z_C,l),b=function(){var g;
if(!(g=z.disabled())){var G;g=!((G=I())==null||!G.isPendingResponse)}return g},v=_.D(_.Z_(pql(""),void 0,"NwQXfe")),M=v.next().value,x=v.next().value;
_.c8(function(){requestAnimationFrame(function(){var g=z.data().onShowAnimationMs||0;g=g>0?pql("--chip-animation-duration: "+g+"ms;"):pql("");x(g)})});
return _.N("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:M},_.N(_.qy,{each:function(){return z.data().chipData||[]},
keyBy:"REFERENCE"},function(g){return _.N(U70,{data:g,disabled:b,pendingStateKey:l,onError:z.onError})}))},"mk"),U70=_.P(function(z){var l=_.z1("button"),I=_.D(_.Z_(!0,void 0,"G4GPGe")),b=I.next().value,v=I.next().value,M=function(){return z.data().text.content},x=function(){return z.data().transparentWhenLoading},g=_.KK(function(G){var u,Z,H,y,f,R,F,Y;
return _.O(function(c){switch(c.nextAddress){case 1:G.stopPropagation();if(z.disabled())return c.return();Z=String(Math.floor(((u=_.mE())==null?void 0:u.getCurrentTime())||0)*1E3);H="youchat-"+Date.now();y=function(){_.nE(z.data().onClick||{});var d={continuationCommand:{token:z.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},V={inputComposerFormData:{clientMessageId:H,playerOffsetMs:Z}};return new Promise(function(A,W){_.nE(d,{form:{formData:V},commandController:{onSuccess:function(L,
lH){A(lH)},
onServerError:function(L,lH){W(lH.error)}}})})};
f=_.H_W(z.pendingStateKey());f(!0);_.UPX("#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");v(!1);_.RL(c,2);return c.yield(y(),4);case 4:_.a3(c,3);break;case 2:R=_.XP(c),(Y=(F=z).onError)==null||Y.call(F,R);case 3:f(!1),_.qe(c)}})});
return _.N(_.E,{cond:b,then:function(){return _.N("div",{class:"ytwYouChatChipsDataChipWrapper"},_.N("button",{el:l,class:"ytwYouChatChipsDataChip","data-disabled":z.disabled,"data-transparent-loading":x,"on:click":g,tabindex:0},M))}})},"nk");var VPW=_.P(function(z){var l=z.data;var I=z.initiallyExpanded;var b=function(){var u;return(u=l().conversationResourceData)==null?void 0:u.learningGuideData};
z=_.D(_.Br(function(){var u;return(u=I==null?void 0:I())!=null?u:!1}));
var v=z.next().value,M=z.next().value,x=function(){M(!0)},g=_.kz(function(){var u,Z;
return(Z=(u=b())==null?void 0:u.sections)!=null?Z:[]},void 0,"aPRmH"),G=_.kz(function(){return g().length>4},void 0,"PUPDyc");
z=_.kz(function(){var u;return!v()&&G()&&(u=b())!=null&&u.expandButton?g().slice(0,4):g()},void 0,"wUz4Ud");
return _.N("yt-conversation-resource-view-model",{class:_.m9("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.N(_.TS,{data:z},{expandableMetadataViewModel:_.nRl}),_.N(_.E,{cond:function(){return G()&&!v()},
then:function(){return _.N("div",{id:"showMoreButton"},_.N(_.TS,{data:function(){var u;return(u=b())==null?void 0:u.expandButton}},{buttonViewModel:function(u){return _.N(_.h4,{data:u.data,
onClick:x})}}))}}))},"ok");var jbS=_.P(function(z){var l=function(){var d;return(d=z.data().text)==null?void 0:d.content},I=function(){var d,V;
return(d=z.data().webData)==null?void 0:(V=d.textResult)==null?void 0:V.content},b=_.pG().resolve(_.vr),v=_.KY(),M=function(){return z.data().chatResponseStyle},x=function(){return!z.data().transparentBackground},g=function(){return z.data().rightAlignThumbs},G=function(){return z.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||z.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},u=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:G()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:z.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},Z=function(){var d;
return z.data().webData||((d=z.data().text)==null?void 0:d.content)||z.data().videoResultsData||z.data().conversationResourceViewModel||z.data().quiz||z.data().richContent},H=function(){return!!z.data().sectionHeader||Z()},y=function(){var d;
return(d=z.data().videoResultsData)==null?void 0:d.videoShelf},f=function(){var d;
return(d=z.data().webData)==null?void 0:d.sourcesShelf},R=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:z.data().thumbsDownViewModel&&z.data().thumbsUpViewModel},F=function(){return _.k(z.data().thumbsUpViewModel,_.uS)},Y=function(){return _.k(z.data().thumbsDownViewModel,_.uS)};
_.c8(function(){requestAnimationFrame(function(){var d;(d=z.shouldAnimateIcon)!=null&&d.call(z)&&yDl(v.lottieEl)})});
var c={};return _.N("you-chat-item-view-model",{class:_.m9("ytwYouChatItemViewModelYouChatItemViewModel",(c.ytwYouChatItemViewModelColumnLayout=function(){return G()},c)),
"data-target-id":function(){return z.data().id||""}},_.N(_.E,{cond:function(){return z.data().removeIcon?!1:H()},
then:function(){var d={};return _.N("div",{"aria-hidden":"true"},_.N(_.A4,{className:_.m9("ytwYouChatItemViewModelIcon",(d.ytwYouChatItemViewModelRtl=b==="rtl",d.ytwYouChatItemViewModelHidden=function(){return!(z.data().hideIcon||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:H())},d)),
animationName:"YOUCHAT_ICON",data:u,animationRef:v}))}}),_.N(_.E,{cond:H,
then:function(){var d={};return _.N("div",{class:_.m9("ytwYouChatItemViewModelHost",(d.ytwYouChatItemViewModelHostNoPadding=function(){return!!z.data().sectionHeader&&!Z()},d.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},d.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},d.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
d.ytwYouChatItemViewModelGradientBackground=x,d)),
role:"alert"},_.N(_.E,{cond:l,then:function(V){return _.N(_.Hi,{text:V,wrapCodeBlocks:!0})}}),_.N(_.TS,{data:function(){return z.data().sectionHeader}},{sectionHeaderViewModel:function(V){var A={};
return _.N(_.rj,{data:V.data,className:_.m9("ytwYouChatItemViewModelSectionHeader",(A.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!z.data().sectionHeader&&!Z()},A))})}}),_.N(_.E,{cond:I,
then:function(V){return _.N(_.Hi,{text:V,wrapCodeBlocks:!0})}}),_.N(_.E,{cond:y,
then:function(){return _.N("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.N(_.TS,{data:function(){var V;return(V=z.data().videoResultsData)==null?void 0:V.videoShelf}},{horizontalShelfViewModel:function(V){return _.N(_.E_,{data:V.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.N(_.E,{cond:f,
then:function(){return _.N("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.N(_.TS,{data:function(){var V;return(V=z.data().webData)==null?void 0:V.sourcesShelf}},{horizontalShelfViewModel:function(V){return _.N(_.E_,{data:V.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.N(_.TS,{data:function(){return z.data().conversationResourceViewModel}},{conversationResourceViewModel:VPW}),_.N(_.TS,{data:function(){return z.data().quiz}},{learningJourneyQuizViewModel:_.p1z}),_.N(_.TS,{data:function(){return z.data().richContent}},{cardViewModel:ncs}),_.N(_.E,{cond:R,
then:function(){return _.N(L4X,{thumbsUp:F,thumbsDown:Y,rightAlignThumbs:g})}}))}}),_.N(_.E,{cond:function(){return z.data().chipsData},
then:function(d){return _.N(a54,{data:d,disabled:z.pending,onError:z.onError})}}))},"pk");
jbS.idomCompat={callbacks:{onError:!0,onSend:!0}};var JDW=_.P(function(z){var l=function(){return z.data().choiceSelectedText},I=function(){return z.data().hasGradientBackground},b={};
return _.N("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.N(_.E,{cond:l,then:function(){return _.N("div",{class:"ytYouChatUserTurnChoiceSelected"},_.N(_.Rf,{text:l}))}}),_.N("div",{class:_.m9("ytYouChatUserTurnUserMessage",(b.ytYouChatUserTurnGradientContainer=I,b.ytYouChatUserTurnDefaultContainer=function(){return!I()},b))},function(){return z.data().text}))},"qk");var zgS=_.P(function(z){var l=_.D((0,_.iV0)(z.data)).next().value;return _.N("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return z.data().targetId||""}},_.N(_.TS,{data:function(){return z.data().header}},{chipBarViewModel:_.tBw}),_.N(_.TS,{data:function(){return l().contents}},{accordionViewModel:_.gin,
alertBannerViewModel:_.Tzw,chatLoadingViewModel:_.EBC,chatUserTurnViewModel:JDW,learningJourneyLoaderViewModel:_.In_,lockupViewModel:function(I){return _.N(_.sq,{data:I.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:z.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.Cbn,youChatItemViewModel:function(I){return _.N(jbS,{data:I.data,pending:!1})}}))},"rk");_.uO(_.P(function(z){var l=_.D((0,_.iV0)(z.data)).next().value,I=_.VK("yt-section-list-renderer"),b=_.D(_.Z_(void 0,void 0,"boqAXd")),v=b.next().value,M=b.next().value,x=function(){var g;return _.k((g=z.data().sectionListLayoutConfiguration)==null?void 0:g.layoutConfiguration,m7C)};
_.Sm(function(){var g,G=(g=I.value)==null?void 0:g.clientWidth;if(x()){g=x();var u=g.responsiveSize;G=G<528?"CONTAINER_SIZE_NARROW":G<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var Z=_.D(g.responsiveMap||[]);for(var H=Z.next();!H.done;H=Z.next())if(H=H.value,H.containerSize===G){Z=H.containerType;break b}Z=void 0}if(Z&&u){b:{if(Z==="CONTAINER_TYPE_VERTICAL_LIST")if(u==="RESPONSIVE_SIZE_STANDARD"){if(G!=="CONTAINER_SIZE_NARROW"){H="50%";break b}}else{H=G==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}H=void 0}g={responsiveSize:u,containerSize:G,containerType:Z,force16By9ThumbnailAspectRatio:!g.enableContentSpecificAspectRatio,contentPreviewWidth:H,fullbleed:(Z==="CONTAINER_TYPE_VERTICAL_LIST"||Z==="CONTAINER_TYPE_GRID")&&G==="CONTAINER_SIZE_NARROW"&&!1}}else g=void 0}else g=void 0;M(g)});
return _.N("yt-section-list-renderer",{class:_.m9("ytSectionListRendererHost",z.className),el:I,"data-target-id":function(){return z.data().targetId||""}},_.N(_.TS,{data:function(){return l().contents}},{itemSectionRenderer:function(g){return _.N(zgS,{data:g.data,
containerLayoutConfig:v})}}))},"sk"),"yt-section-list-renderer",{props:{data:_.mB,
className:_.GH}});var l2s;var I2X;var bWX=function(){return _.q.apply(this,arguments)||this};
_.m(bWX,_.q);_.e([_.X(),_.w("design:type",Object)],bWX.prototype,"data",void 0);_.e([_.Wy({is:"yt-alert-renderer",disableElementRegistration:!0})],bWX);
_.r(bWX,"yt-alert-renderer",function(){if(I2X===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;l2s===void 0&&(l2s=document.createElement("template"));var b=l2s;I.call(l,b.content.cloneNode(!0),z.content.firstChild);I2X=z}z=I2X;return z},{mode:2});
}catch(e){_._DumpException(e)}
try{
var V3s;V3s=function(z,l,I,b){I||(z?b&&(b.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||b.WINDOW_SIZE_CHANGED&&(l.width!==window.innerWidth||l.height!==window.innerHeight)||b.SAFARI_ABORTED_BY_NEW_TRANSITION&&z instanceof DOMException&&z.name==="AbortError"&&z.message.includes("Old view transition aborted by new view transition"))||_.dE(z):_.dE(Error("pj")))};
_.jjK=function(z,l){l=l===void 0?{}:l;var I,b,v,M,x,g,G,u,Z,H,y,f,R;return _.O(function(F){switch(F.nextAddress){case 1:I=l;b=I.shouldWrap===void 0?!0:I.shouldWrap;v=I.skipTransitionTimeoutMs===void 0?300:I.skipTransitionTimeoutMs;M=I.beforeTransition;x=I.afterTransition;if(!b||!document.startViewTransition||document.visibilityState==="hidden")return F.return(z());g={width:window.innerWidth,height:window.innerHeight};G=!1;(u=M)==null||u();_.RL(F,2);Z=document.startViewTransition(z);H=setTimeout(function(){Z.skipTransition();
G=!0},v);
return F.yield(Z.ready,4);case 4:return clearTimeout(H),F.yield(Z.finished,5);case 5:clearTimeout(H);(y=x)==null||y();_.a3(F,0);break;case 2:f=_.XP(F),(R=x)==null||R(),V3s(f,g,G,l.ignoredErrors),_.qe(F)}})};
_.JX0=function(z,l,I){z.persistentPanelContainerMap.set(I,l)};
_.yO=function(){for(var z=Array(36),l=0,I,b=0;b<36;b++)b==8||b==13||b==18||b==23?z[b]="-":b==14?z[b]="4":(l<=2&&(l=33554432+Math.random()*16777216|0),I=l&15,l>>=4,z[b]=_.j0u[b==19?I&3|8:I]);return z.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var zb4=_.zs(['<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>']),
lJS=_.Spu(zb4);lJS.setAttribute("style","display: none;");document.head.appendChild(lJS.content);_.fX=_.k6Y(function(z){var l=_.tA("DIV");z&&(l.className=z);l.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";z=_.tA("DIV");_.T40(z,"200px","200px");l.appendChild(z);document.body.appendChild(l);z=l.offsetWidth-l.clientWidth;_.Bl(l);return z});var IJW;var bP0;var CX=function(){var z=_.q.apply(this,arguments)||this;z.icon=null;return z};
_.m(CX,_.q);CX.prototype.dismiss=function(){_.gC(this.hostElement,"yt-live-chat-error-message-dismiss")};
CX.prototype.computeIcon=function(z){return z&&z.iconType?"yt-icons:"+z.iconType.toLowerCase():"yt-icons:close"};
_.e([_.X(),_.w("design:type",Object)],CX.prototype,"data",void 0);_.e([_.X({computed:"computeIcon(data.icon)"}),_.w("design:type",Object)],CX.prototype,"icon",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],CX);
_.r(CX,"yt-live-chat-error-message-renderer",function(){if(bP0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;IJW===void 0&&(IJW=document.createElement("template"));var b=IJW;I.call(l,b.content.cloneNode(!0),z.content.firstChild);bP0=z}z=bP0;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var mKZ,K00,tWv,B4A,F0Z,T4R,cyQ,S8Z,dKT,oSr,PKR,$c,h18,sCr,ryu,$KR,e1u,wXZ,AyQ,W0a,nS0,L0T,UK8,aFT,VW8,jCr,JyZ,zZR,la7,IaR,bDu,vRv,MAZ,pQR,DZu,xZR,GT7,ER7,ZDZ,HDr,yTR,faT,OD8,gRT,RZr,mZT,K7Z,tAu,B0R,C8T,qvu;mKZ=function(z,l){return _.Cc(z.entities,"liveReactionsDataEntity",l)};
K00=function(z,l){z=_.Cc(z.entities,"booleanEntity",l);return!(!z||!z.value)};
tWv=function(z,l){var I=_.sU();I&&z&&_.LM(I,_.ch(z),l)};
B4A=function(z,l){return _.Cc(z.entities,"timedMarkersListSyncEntity",l)};
_.XXr=function(z){return z.watch.isWatchActive};
_.q8u=function(z){return _.wo(z)||_.AN(z)||_.T8t(z)};
_.ilT=function(z){return!_.q8u(z)};
_.rY=function(z){return z.watch.watchScrollTop};
F0Z=function(z){return z.watch.isLiveChatCollapsed};
_.QCZ=function(){_.C("web_watch_log_theater_mode")&&_.aOS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Y8R=function(z,l,I){if(!z.includes("START_TIME_PLACEHOLDER")||!z.includes("END_TIME_PLACEHOLDER"))return z;var b=new Date(0),v=new Date(0);b.setUTCMilliseconds(l);v.setUTCMilliseconds(I);return z.replace("START_TIME_PLACEHOLDER",_.jS(b,7)).replace("END_TIME_PLACEHOLDER",_.jS(v,7))};
T4R=function(z,l){return _.Cc(z.entities,"booleanEntity",l)};
cyQ=function(){return function(z){_.pE(_.cU("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:z}))}};
S8Z=function(z){switch(z){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}};
dKT=function(z,l,I){var b=_.Wh(I);z&&l&&b&&z.getPlayerPromise().then(function(v){_.bXu(b)&&_.SX();(new _.I6(v)).executeCommand(b,l);_.C("continue_playback_on_desktop_companion_click")||v.pauseVideo()})};
oSr=function(z){var l=_.GS(),I;if(I=_.W8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;I=(b=I())==null?void 0:b.layoutId}else I=null;dKT(l,I,z)};
PKR=function(z){var l=_.GS(),I;if(I=_.W8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;I=(b=I())==null?void 0:b.layoutId}else I=null;dKT(l,I,z)};
$c=function(z,l){var I=z<0?"-":"";z=Math.abs(z);var b=Math.floor(z/3600),v=Math.floor(z)%3600,M=Math.floor(v/60);v=Math.floor(v)%60;var x="";(l===void 0?0:l)&&(x="."+Math.round((z-Math.floor(z))*10));return b>0?I+b+":"+(M<10?"0"+M:""+M)+":"+(v<10?"0"+v:""+v)+x:I+M+":"+(v<10?"0"+v:""+v)+x};
h18=function(z){var l=z.match(/[^0-9:\.]/g);if(l&&l.length>0)return null;z=z.split(":");if(z.length===0||z.length>3)return null;l=1;for(var I=0;z.length>0;){var b=z.pop();if(b===void 0)break;var v=Number(b);if(b===""||isNaN(v))return null;I+=v*l;l*=60}return I};
sCr=function(z,l,I,b){z=Math.max(I,z);l=Math.min(l,b-I);z+l>b?(I=b,z=I-l):I=z+l;return{start:z,end:I}};
ryu=function(z,l,I,b,v,M){z<I?z=I:z+v>b&&(z=b-v);l>b&&(l=b);l=Math.min(z+M,Math.max(z+v,l));return{start:z,end:l}};
$KR=function(z,l,I,b,v,M){l>b?l=b:l-v<I&&(l=I+v);z<I&&(z=I);z=Math.min(l-v,Math.max(l-M,z));return{start:z,end:l}};
e1u=function(z){return _.C("web_transcript_cue_id_killswitch")?String(z):"ytd-transcript-renderer_"+z};
wXZ=function(z){return _.C("web_transcript_cue_id_killswitch")?!0:z.startsWith("ytd-transcript-renderer")};
AyQ=function(z){var l=_.GS(),I;if(I=_.W8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;I=(b=I())==null?void 0:b.layoutId}else I=null;dKT(l,I,z)};
W0a=function(z){z.style.height="auto";z.style.height=Math.min(z.scrollHeight||20,80)+"px"};
nS0=function(z,l,I){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:l,hasGradientBackground:I}}],insertByPositionInSection:{sectionTargetId:z,position:"INSERTION_POSITION_LAST"}}}]}}}};
L0T=function(z){var l=_.GS(),I;I=(I=_.W8("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;dKT(l,I,z)};
UK8=function(z){var l=_.GS(),I;I=(I=_.W8("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;dKT(l,I,z)};
aFT=function(z,l){l=l===void 0?!1:l;if(z.simpleText)z=[{text:z.simpleText}];else{var I;z=((I=z.runs)!=null?I:[]).map(function(b){return Object.assign({},b)})}if(l)for(l=_.D(z),I=l.next();!I.done;I=l.next())I.value.bold=!0;
return z};
VW8=function(z){var l=z.startEndTimeTemplate,I=z.startTimeUtcMillis;z=z.endTimeUtcMillis;if(l&&I&&z)return _.lc(_.Y8R(_.ID(l),Number(I),Number(z)))};
jCr=function(z,l){var I,b,v=z==null?void 0:(I=z.viewCount)==null?void 0:(b=I.videoViewCountRenderer)==null?void 0:b.shortViewCount;if(!l&&v)return v;var M,x;return z==null?void 0:(M=z.viewCount)==null?void 0:(x=M.videoViewCountRenderer)==null?void 0:x.viewCount};
JyZ=function(z,l){var I=z==null?void 0:z.relativeDateText;return!l&&I?[I,!0]:[z==null?void 0:z.dateText,!1]};
zZR=function(z,l,I,b,v){b=b===void 0?!0:b;v=v===void 0?"":v;var M=jCr(z,l),x=_.D(JyZ(z,l)),g=x.next().value;x=x.next().value;l=l?z==null?void 0:z.sponsorsOnlyFirstTimeLongText:z==null?void 0:z.sponsorsOnlyFirstTimeShortText;var G=[];I&&M&&G.push(M);!I&&x||!g||G.push(g);z=[z==null?void 0:z.subtitle].concat(_.ht(G),[l,z==null?void 0:z.stationName,z==null?void 0:z.rating,z?VW8(z):void 0,z==null?void 0:z.upNextProgramText,z==null?void 0:z.superTitleLink]).filter(function(u){return!!u});
I={runs:[]};for(M=0;M<z.length;M++)I.runs.push.apply(I.runs,_.ht(aFT(z[M],b))),M<z.length-1&&I.runs.push({text:" "+v+" ",bold:b});return I};
la7=function(z){if(z)return{runs:[{text:z,bold:!0}]}};
IaR=function(z){return z.filter(function(l){return!_.k(l,_.Ic)})};
bDu=function(z){var l,I,b,v;if(z=z==null?void 0:(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.results)==null?void 0:(v=b.results)==null?void 0:v.contents){var M,x;return(x=(M=z.find(function(g){return!!g.videoPrimaryInfoRenderer}))==null?void 0:M.videoPrimaryInfoRenderer)==null?void 0:x.updatedMetadataEndpoint}};
vRv=function(z,l){var I;return(I=z.sourceConfigs)==null?void 0:I.find(function(b){return b.videoId===l})};
MAZ=function(z){return z==="End of video"||z==="End of playlist"};
pQR=function(z){var l,I,b,v;return(l=z.getWatchNextResponse())==null?void 0:(I=l.contents)==null?void 0:(b=I.twoColumnWatchNextResults)==null?void 0:(v=b.playlist)==null?void 0:v.playlist};
DZu=function(z){var l,I,b,v,M,x;return(l=pQR(z))==null?void 0:(I=l.playlistButtons)==null?void 0:(b=I.menuRenderer)==null?void 0:(v=b.topLevelButtons)==null?void 0:(M=v[0])==null?void 0:(x=M.playlistLoopButtonRenderer)==null?void 0:x.playlistLoopStateEntityKey};
xZR=function(z){var l=_.pG().resolve(_.NG),I;return(l=(I=_.k(l.getAutoplayEndpoint(),_.zb))==null?void 0:I.playlistId)&&l===z};
GT7=function(z,l,I,b,v){function M(){_.ow.cancelJob(eP);var x=OD8(l,I/z.getPlaybackRate()),g=x.hours,G=x.minutes;x=(x.seconds*1E3||6E4)/z.getPlaybackRate();z.setVideoTimeLeft(gRT(g,G));b&&z.getPlayerState()!==0&&z.setSleepTimerTimeLeft(gRT(g,G,!0));(g>0||G>0)&&!v&&(eP=_.o0(_.ow,M,x))}
_.ow.cancelJob(eP);eP=_.o0(_.ow,M)};
ER7=function(z,l,I){function b(){_.ow.cancelJob(N07);var v=OD8(l,I),M=v.hours;v=v.minutes;var x=6E4/z.getPlaybackRate();if(M>0||v>0)z.setSleepTimerTimeLeft(gRT(M,v,!0)),N07=_.o0(_.ow,b,x)}
_.ow.cancelJob(N07);N07=_.o0(_.ow,b)};
ZDZ=function(z,l){var I=z.getVolume()/(l/500),b=function(v){_.ow.cancelJob(urR);var M=Math.floor(v-I);z.setVolume(M,!1);M>0&&(urR=_.o0(_.ow,function(){b(M)},500))};
_.ow.cancelJob(urR);urR=_.o0(_.ow,function(){b(z.getVolume())})};
HDr=function(z,l){_.ow.cancelJob(urR);l&&z.syncVolume()};
yTR=function(){var z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.mY("SLEEP_TIMER_DISRUPTED")}}}}};_.pG().resolve(_.DQ).resolveCommand(z)};
faT=function(z){return(z.getDuration()-z.getProgressState().current)*1E3};
OD8=function(z,l){z=z+l-(0,_.Dr)();if(z<=0)return{hours:0,minutes:0,seconds:0};var I=new C8T(0,0,0,0,0,0,z);z=I.getHours();l=I.getMinutes();I=I.getSeconds();I!==0&&l++;l!==0&&l%60===0&&(z++,l=0);return{hours:z,minutes:l,seconds:I}};
gRT=function(z,l,I){return z>0&&l>0?I?_.mY("TIME_LEFT_HOURS_MINUTES",{hours:z.toString(),minutes:l.toString()}):_.mY("TIME_HOURS_MINUTES",{hours:z.toString(),minutes:l.toString()}):z>0?I?_.KM("TIME_LEFT_HOURS",z):_.KM("TIME_HOURS",z):I?_.mY("TIME_LEFT_MINUTES",{minutes:l.toString()}):_.mY("TIME_MINUTES",{minutes:l.toString()})};
RZr=function(z,l){if(z.timelyActions)return z.timelyActions.find(function(I){var b;return((b=_.k(I,kTT))==null?void 0:b.cueRangeId)===l})};
mZT=function(z){var l=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.tJ(z);z.keyMap_.forEach(function(I,b){_.rf(l,b)||this.remove(b)},z)};
K7Z=function(z,l){z.reloadContinuationItemsCommandMatcher=l};
_.wY=function(z,l){z.insertBefore(l,z.childNodes[0]||null)};
tAu=function(z){if(z>=48&&z<=57||z>=96&&z<=106||z>=65&&z<=90||_.yk&&z==0)return!0;switch(z){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 _.Hx;default:return!1}};
B0R=function(z){if(z.altKey&&!z.ctrlKey||z.metaKey||z.keyCode>=112&&z.keyCode<=123)return!1;if(tAu(z.keyCode))return!0;switch(z.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!_.Hx;default:return z.keyCode<166||z.keyCode>183}};
C8T=function(z,l,I,b,v,M,x){this.date=typeof z==="number"?new Date(z,l||0,I||1,b||0,v||0,M||0,x||0):new Date(z&&z.getTime?z.getTime():_.gG())};
_.Gs(C8T,_.eH);_.p=C8T.prototype;_.p.getHours=function(){return this.date.getHours()};
_.p.getMinutes=function(){return this.date.getMinutes()};
_.p.getSeconds=function(){return this.date.getSeconds()};
_.p.getMilliseconds=function(){return this.date.getMilliseconds()};
_.p.getUTCDay=function(){return this.date.getUTCDay()};
_.p.getUTCHours=function(){return this.date.getUTCHours()};
_.p.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.p.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.p.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.p.setHours=function(z){this.date.setHours(z)};
_.p.setMinutes=function(z){this.date.setMinutes(z)};
_.p.setSeconds=function(z){this.date.setSeconds(z)};
_.p.setMilliseconds=function(z){this.date.setMilliseconds(z)};
_.p.setUTCHours=function(z){this.date.setUTCHours(z)};
_.p.setUTCMinutes=function(z){this.date.setUTCMinutes(z)};
_.p.setUTCSeconds=function(z){this.date.setUTCSeconds(z)};
_.p.setUTCMilliseconds=function(z){this.date.setUTCMilliseconds(z)};
_.p.add=function(z){_.eH.prototype.add.call(this,z);z.hours&&this.setUTCHours(this.date.getUTCHours()+z.hours);z.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+z.minutes);z.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+z.seconds)};
_.p.JSC$11332_toIsoString=function(z){var l=_.eH.prototype.JSC$11332_toIsoString.call(this,z);return z?l+"T"+_.Hc(this.getHours(),2)+":"+_.Hc(this.getMinutes(),2)+":"+_.Hc(this.getSeconds(),2):l+"T"+_.Hc(this.getHours(),2)+_.Hc(this.getMinutes(),2)+_.Hc(this.getSeconds(),2)};
_.p.equals=function(z){return this.getTime()==z.getTime()};
_.p.toString=function(){return this.JSC$11332_toIsoString()};
_.p.clone=function(){var z=new C8T(this.date);z.firstDayOfWeek_=this.firstDayOfWeek_;z.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return z};
_.XQ8=function(z){return _.GZ({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:z}})};
qvu=new _.Z0("imageTileRenderer");var iD7=new _.Z0("adGridCardCollectionViewModel");var F7Z=new _.Z0("carouselTitleViewModel");var QuR=new _.Z0("ctaCarouselItemViewModel");var YvD=new _.Z0("textFieldViewModel");_.T0A=new _.Z0("engagementPanelHeaderShowNavigationButtonCommand");var cTR=new _.Z0("hideEngagementPanelScrimAction");var SvQ=new _.Z0("setActivePanelItemAction");var dZa=new _.Z0("showEngagementPanelScrimAction");var oRD=new _.Z0("updateEngagementPanelAction");var P8v=new _.Z0("updateSearchInVideoResultsAction");var hZ0=new _.Z0("transcriptCueGroupRenderer");var suu=new _.Z0("transcriptCueRenderer");var rTR=new _.Z0("transcriptFooterRenderer");var $ZZ=new _.Z0("engagementPanelAdSubtitleRenderer");var eZD=new _.Z0("videoDescriptionFantasySectionViewModel");var wQ0=new _.Z0("deleteClipEngagementPanelCommand");var ATQ=new _.Z0("loopCommand");var W7A=new _.Z0("changeCreatorEndscreenVisibilityCommand");var nRD=new _.Z0("liveChatCallForQuestionsRenderer");var L7T=new _.Z0("updateTimedMarkersSyncObserverCommand");var kTT=new _.Z0("timelyActionViewModel");var UZu=new _.Z0("timelyActionsOverlayViewModel");var aa8=new _.Z0("repeatChapterCommand");var VA7=new _.Z0("watchPlayerOverflowMenuCommand");var ju7=new _.Z0("compositeVideoOverlayRenderer");var JT8=new _.Z0("sortFilterSubMenuRenderer");var zPA=new _.Z0("switchListItemViewModel");var l1R=new _.Z0("inputComposerViewModel");var I1T=new _.Z0("transcriptEditSegmentCommand");var b4D=new _.Z0("transcriptUpdateSegmentTextCommand");var vdT=new _.Z0("transcriptSearchBoxRenderer");var MYZ=new _.Z0("transcriptSegmentListRenderer");var p0T=new _.Z0("transcriptSegmentRenderer");_.DeT=new _.Z0("updateDateTextAction");var xe0=new _.Z0("updateTitleAction");var O4u=new _.Z0("updateViewershipAction");var gdD=new _.Z0("carouselLockupRenderer");var AD=new _.Z0("expandableVideoDescriptionBodyRenderer");var GgZ=new _.Z0("videoDescriptionHeaderRenderer");var NHu=new _.Z0("videoDescriptionYouchatSectionViewModel");_.Wq=_.OI("kevlar_watch_page_horizontal_margin",24);_.EdT=_.OI("kevlar_watch_page_columns_top_padding",24);_.uP0=426+_.Wq*2;_.n_=_.OI("kevlar_watch_two_column_width_threshold",1E3);_.Z48=_.Wq*2;_.H4D=_.OI("kevlar_watch_secondary_width",402);_.ytr=_.OI("kevlar_watch_max_player_width",1280);_.f17=_.OI("kevlar_watch_flexy_metadata_height",136);_.CtR=_.Z48+310+_.Wq;_.kgT=_.Z48+360+_.Wq;var RPT={PAUSE_CHAT:18};var meA;var KXQ;var L_=function(){return _.q.apply(this,arguments)||this};
_.m(L_,_.q);L_.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
L_.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var z=_.k(this.data.button,_.N1);z&&(z.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.vP.Object.defineProperties(L_,{template:{configurable:!0,enumerable:!0,get:function(){if(KXQ===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;meA===void 0&&(meA=document.createElement("template"));var b=meA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);KXQ=z}z=KXQ;return z}}});
_.e([_.t(_.Nw),_.w("design:type",Object)],L_.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({selectorArgs:["data.enabledEntityKey"],selector:K00,observer:"onEnabledChange"}),_.w("design:type",Boolean)],L_.prototype,"enabled",void 0);_.e([_.X(),_.w("design:type",Object)],L_.prototype,"data",void 0);_.e([_.Wy({is:"yt-disableable-button-view-model",noInjection:!0})],L_);var tYT;var BHr;var X0D=["transVert01","transVert02","transVert03"],quR="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),UG=function(){var z=_.q.apply(this,arguments)||this;z.emojiManager=_.HL;z.isDarkTheme=document.documentElement.hasAttribute("dark");z.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};z.reactionBuckets=[];z.noEmojiIdentifier="NO_EMOJI";return z};
_.m(UG,_.q);_.p=UG.prototype;_.p.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.p.desktopFountainEmojiSizePxChanged=function(){_.R8(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.p.createUserReactionAnimation=function(z){this.createEmojiAnimation(z,!0)};
_.p.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var z;((z=this.data)==null?0:z.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.cU("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ht(this.emojiContainer.children)).forEach(function(l){l.remove()})};
_.p.detached=function(){this.cleanupFountain()};
_.p.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var z;this.reactionBuckets=_.h7.unsafeClone((z=this.emojiFountainData)==null?void 0:z.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.p.processEmojiBucket=function(z){var l=this;if(this.reactionBuckets&&!(z>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var I=this.reactionBuckets[z];this.generateEmojiAnimations(I);if(z<this.reactionBuckets.length-1){var b;if(I==null?0:(b=I.duration)==null?0:b.seconds)this.emojiBucketTimerId=setTimeout(function(){l.processEmojiBucket(z+1)},Number(I.duration.seconds)*1E3)}}};
_.p.generateEmojiAnimations=function(z){var l=this,I=this.getRandomEmojiIdFromBucketWithOverride(z);if(I&&I!==this.noEmojiIdentifier){var b=0;z.targetEps?(b=this.linearInterpolateBounded(1,20,100,12,z.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,z.emojiAnimationMs,b),b=this.getEmojiDelayMsFromTargetEps(z.targetEps)):(this.createEmojiAnimation(I),b=this.getEmojiDelayMsFromDistribution(z.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){l.generateEmojiAnimations(z)},b)}};
_.p.getRandomEmojiIdFromBucketWithOverride=function(z){if(!(z&&z.reactionsData&&z.reactionsData.length&&z.totalReactions))return this.noEmojiIdentifier;for(var l=z.totalReactions,I=1,b=_.D(z.reactionsData),v=b.next();!v.done;v=b.next())v=v.value,(v.reactionWeightOverride||v.reactionWeightOverride===0)&&v.reactionCount&&(l-=v.reactionCount,I-=v.reactionWeightOverride);b=!0;I<0&&(b=!1,l=z.totalReactions,I=1);if(b&&I>0&&l===0)if(I===1){v=0;for(var M=_.D(z.reactionsData),x=M.next();!x.done;x=M.next())x=
x.value,x.reactionCount&&x.reactionCount>0&&v++;v=1/v;M=_.D(z.reactionsData);for(x=M.next();!x.done;x=M.next())x.value.reactionWeightOverride=v}else for(v=1/(1-I),M=_.D(z.reactionsData),x=M.next();!x.done;x=M.next())x=x.value,x.reactionWeightOverride&&(x.reactionWeightOverride*=v);v=Math.random();M=0;x=_.D(z.reactionsData);for(var g=x.next();!g.done;g=x.next())if(g=g.value,g.reactionCount&&(M=(g.reactionWeightOverride||g.reactionWeightOverride===0)&&b?M+g.reactionWeightOverride:M+I*g.reactionCount/
l,M>v&&(g.reactionCount--,z.totalReactions--,g=this.reactionItemToEmojiString(g),g!==this.noEmojiIdentifier)))return g;return this.noEmojiIdentifier};
_.p.reactionItemToEmojiString=function(z){if(z.unicodeEmojiId)return z.unicodeEmojiId;if(z.emoteId)return z.emoteId;if(z.videoReactionType)switch(z.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.p.createEmojiAnimation=function(z,l,I,b){l=l===void 0?!1:l;this.lastEmojiRequestedForTesting=z;var v=z.startsWith("yt-icons:"),M=_.ur(this.emojiManager,z);if(M||v){var x=document.createElement("emoji");x.classList.add("yt-emoji-fountain-view-model");x.classList.add(X0D[Math.floor(Math.random()*X0D.length)]);var g=document.createElement("div");g.classList.add("yt-emoji-fountain-view-model");g.classList.add("horizontal-container");g.classList.add(quR[Math.floor(Math.random()*quR.length)]);l?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),g.appendChild(I)):(I&&(x.style.animationDuration=I+"ms",g.style.animationDuration=I+"ms"),b&&(x.style.width=b+"px",x.style.height=b+"px"));v?(v=document.createElement("yt-icon"),v.polymerController.icon=z,b&&(v.style.width=b+"px",v.style.height=b+"px"),z=v):z=this.emojiManager.createEmoji(M,!1);z.classList.add("yt-emoji-fountain-view-model");g.appendChild(z);x.appendChild(g);this.emojiContainer.appendChild(x);
x.addEventListener("animationend",function(){x.remove()});
var G,u;if((G=this.data)==null?0:(u=G.loggingDirectives)==null?0:u.trackingParams)l=l?_.kU(183501):_.kU(183500),tWv(this.data.loggingDirectives.trackingParams,l),_.sok(l);setTimeout(function(){x&&x.remove()},2E3)}};
_.p.getEmojiDelayMsFromDistribution=function(z){return Math.random()*(z||1)*1E3};
_.p.getEmojiDelayMsFromTargetEps=function(z){return Math.random()*2*(1/z)*1E3};
_.p.linearInterpolateBounded=function(z,l,I,b,v){v=Math.min(Math.max(v,z),I);return(l*(I-v)+b*(v-z))/(I-z)};
UG.prototype.onEmojiFountainDataEntityUpdate=UG.prototype.onEmojiFountainDataEntityUpdate;UG.prototype.desktopFountainEmojiSizePxChanged=UG.prototype.desktopFountainEmojiSizePxChanged;UG.prototype.isActiveChanged=UG.prototype.isActiveChanged;_.e([_.X(),_.w("design:type",_.EM)],UG.prototype,"emojiManager",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],UG.prototype,"ytLiveChatReduxBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],UG.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],UG.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(z,l){return _.Cc(z.entities,"emojiFountainDataEntity",l)}}),
_.w("design:type",Object)],UG.prototype,"emojiFountainData",void 0);_.e([_.X(),_.w("design:type",Boolean)],UG.prototype,"isActive",void 0);_.e([_.By("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UG.prototype,"isActiveChanged",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],UG.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",String)],UG.prototype,"lastEmojiRequestedForTesting",void 0);
_.e([_.X({value:function(){return _.OI("desktop_fountain_emoji_size_px",20)}}),
_.w("design:type",Number)],UG.prototype,"desktopFountainEmojiSizePx",void 0);_.e([_.By("desktopFountainEmojiSizePx"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UG.prototype,"desktopFountainEmojiSizePxChanged",null);_.e([_.qX("#emoji-container"),_.w("design:type",HTMLElement)],UG.prototype,"emojiContainer",void 0);
_.e([_.By("emojiFountainData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UG.prototype,"onEmojiFountainDataEntityUpdate",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],UG);
_.r(UG,"yt-emoji-fountain-view-model",function(){if(BHr===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;tYT===void 0&&(tYT=document.createElement("template"));var b=tYT;I.call(l,b.content.cloneNode(!0),z.content.firstChild);BHr=z}z=BHr;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var i4A;var FXR;var ab=function(){return _.q.apply(this,arguments)||this};
_.m(ab,_.q);ab.prototype.onChoiceChanged=function(){this.data&&_.R8(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
ab.prototype.onChoiceChanged=ab.prototype.onChoiceChanged;_.e([_.X(),_.w("design:type",Object)],ab.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ab.prototype,"onChoiceChanged",null);_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],ab);
_.r(ab,"yt-live-chat-banner-poll-choice",function(){if(FXR===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;i4A===void 0&&(i4A=document.createElement("template"));var b=i4A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);FXR=z}z=FXR;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var QLT;var Yur;var VT=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_button_rework_with_live");z.small=!1;return z};
_.m(VT,_.q);VT.prototype.computeIsSmall=function(){var z;return((z=this.buttonOverrides)==null?void 0:z.size)==="S"};
VT.prototype.computeId=function(){return this.data&&this.data.targetId};
_.e([_.t(_.EF.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],VT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",String)],VT.prototype,"id",void 0);_.e([_.X(),_.w("design:type",Object)],VT.prototype,"buttonOverrides",void 0);_.e([_.X(),_.w("design:type",Object)],VT.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VT.prototype,"modern",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.w("design:type",Object)],VT.prototype,"small",void 0);_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-button"})],VT);
_.r(VT,"yt-live-chat-button",function(){if(Yur===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;QLT===void 0&&(QLT=document.createElement("template"));var b=QLT;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Yur=z}z=Yur;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var THa;var ctQ;var jP=function(){var z=_.q.apply(this,arguments)||this;z.inCollapsedBanner=!1;z.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};z.questionButtonOverrides={style:"mono",type:"filled"};return z};
_.m(jP,_.q);_.p=jP.prototype;_.p.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]]"}}}}}};
_.p.onContextMenuButtonClick=function(z){this.ytLiveChatItemBehavior.showContextMenu(z)};
_.p.onYtRendererstamperFinished=function(){this.menuButton=_.Hy(this.hostElement).querySelector("#menu-button")};
_.p.dataChanged=function(){var z,l;if((l=_.k((z=this.data)==null?void 0:z.overflowMenuButton,_.xm))==null?0:l.command)this.data.contextMenuEndpoint=_.k(this.data.overflowMenuButton,_.xm).command};
_.p.onButtonClick=function(){var z,l=_.k((z=this.data)==null?void 0:z.askQuestionButton,_.xm);if(l){if(l.trackingParams&&(z=_.ch(l.trackingParams))){var I=_.sU();I&&_.JH(I,z)}_.gC(this.hostElement,"innertube-command",l.command)}};
jP.prototype.onYtRendererstamperFinished=jP.prototype.onYtRendererstamperFinished;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],jP.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],jP.prototype,"ytLiveChatItemBehavior",void 0);_.e([_.X({observer:"dataChanged"}),_.w("design:type",Object)],jP.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jP.prototype,"inCollapsedBanner",void 0);_.e([_.X(),_.w("design:type",Object)],jP.prototype,"buttonOverrides",void 0);_.e([_.X(),_.w("design:type",Object)],jP.prototype,"questionButtonOverrides",void 0);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jP.prototype,"onYtRendererstamperFinished",null);
_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],jP);
_.r(jP,"yt-live-chat-call-for-questions-renderer",function(){if(ctQ===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;THa===void 0&&(THa=document.createElement("template"));var b=THa;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ctQ=z}z=ctQ;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var Su8={};Su8.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 z=this;window.requestAnimationFrame(function(){z.restoreFocusNode_||(z.restoreFocusNode_=document.activeElement);var l=_.OIu(z.hostElement);l.length&&l[l.length-1].focus()})},
isAttachedChanged_:function(z,l){z?this.focusChild_():l&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(z){this.hidden||_.MX(z).indexOf(this.hostElement)!==-1||(z.stopPropagation(),this.focusChild_())}};var de8;var odQ;var JD=function(){return _.q.apply(this,arguments)||this};
_.m(JD,_.q);JD.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
JD.prototype.onClick=function(z){z.target!==this.confirmButton&&z.target!==this.cancelButton&&(this.hidden=!0)};
_.e([_.qX("#confirm_button"),_.w("design:type",Object)],JD.prototype,"confirmButton",void 0);_.e([_.qX("#cancel_button"),_.w("design:type",Object)],JD.prototype,"cancelButton",void 0);_.e([_.X(),_.w("design:type",Pt7)],JD.prototype,"data",void 0);_.e([_.X({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],JD.prototype,"hidden",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(Su8.YtLiveChatDialogBehavior),_.w("design:type",Object)],JD.prototype,"ytLiveChatDialogBehavior",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],JD);
var Pt7=_.r(JD,"yt-live-chat-dialog-renderer",function(){if(odQ===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;de8===void 0&&(de8=document.createElement("template"));var b=de8;I.call(l,b.content.cloneNode(!0),z.content.firstChild);odQ=z}z=odQ;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var hPR;var sLT,rtA=function(){if(sLT!==void 0)return sLT;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;hPR===void 0&&(hPR=document.createElement("template"));var b=hPR;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return sLT=z};var $eA;var ePZ;var zQ=function(){var z=_.q.apply(this,arguments)||this;z.tooltip=null;z.data=null;z.id="";z.active=!1;z.icon="";z.disabled=!1;z.showTooltip=!1;z.useToggledActiveState=!0;z.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return z};
_.m(zQ,_.q);_.p=zQ.prototype;
_.p.dataChanged=function(){var z;((z=this.data)==null?0:z.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,_.kE)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var l;if((l=this.data)==null?0:l.disabled)this.disabled=!0};
_.p.computeId=function(z){return z};
_.p.computeIcon=function(z,l){if(!z)return"";if(this.useToggledActiveState)return"yt-icons:"+z.toLowerCase();var I,b;return l&&((I=this.data)==null?0:(b=I.toggledIcon)==null?0:b.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+z.toLowerCase()};
_.p.logPDGEntryPoint=function(){_.Y31(_.fr("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")};
_.p.immediatelyShowTooltip=function(){var z=_.Hy(this.hostElement).querySelector("#tooltip");z.animationDelay=0;z.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};z.show()};
_.p.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.p.onClick=function(z){var l;((l=this.data)==null?0:l.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),z.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.gC(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.p.computeShowTooltip=function(z,l){return!!(z&&z.tooltip&&l)};
_.p.maybeUpdateTooltipText=function(){var z=this,l;if((l=this.data)==null?0:l.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.kE)(z.tooltip).textContent=I},250)}};
_.p.handleLiveChatActions=function(z){var l=this;z.length&&(this.id!=="creator"&&this.id!=="product-picker"||z.forEach(function(I){(I=l.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&l.startBubble(l.colorFromDecimal(I.startBackgroundColor))}))};
_.p.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.p.startBubble=function(z){_.R8(this.hostElement,{"--yt-live-chat-monetization-button-glow":z});this.hostElement.setAttribute("bubble","")};
_.p.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.p.colorFromDecimal=function(z){typeof z==="string"&&(z=Number(z));return"rgba("+[z>>16&255,z>>8&255,z&255,(z>>24&255)/255].join()+")"};
zQ.prototype.onAnimationEnd=zQ.prototype.onAnimationEnd;zQ.prototype.disabledChanged=zQ.prototype.disabledChanged;zQ.prototype.dataChanged=zQ.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],zQ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.EF.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],zQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zQ.prototype,"data",void 0);_.e([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",Object)],zQ.prototype,"id",void 0);_.e([_.X({notify:!0,reflectToAttribute:!0}),_.w("design:type",Object)],zQ.prototype,"active",void 0);
_.e([_.X({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.w("design:type",Object)],zQ.prototype,"icon",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zQ.prototype,"disabled",void 0);_.e([_.X({computed:"computeShowTooltip(data, disabled)"}),_.w("design:type",Object)],zQ.prototype,"showTooltip",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zQ.prototype,"useToggledActiveState",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zQ.prototype,"dataChanged",null);_.e([_.By("disabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zQ.prototype,"disabledChanged",null);_.e([_.tP("animationend"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],zQ.prototype,"onAnimationEnd",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],zQ);
_.r(zQ,"yt-live-chat-icon-toggle-button-renderer",function(){if(ePZ===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;$eA===void 0&&($eA=document.createElement("template"));var b=$eA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ePZ=z}z=ePZ;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var w0T;var AtZ;var ln=function(){return _.q.apply(this,arguments)||this};
_.m(ln,_.q);ln.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.e([_.X(),_.w("design:type",Object)],ln.prototype,"data",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ln);
_.r(ln,"yt-live-chat-message-input-prompt-header-renderer",function(){if(AtZ===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;w0T===void 0&&(w0T=document.createElement("template"));var b=w0T;I.call(l,b.content.cloneNode(!0),z.content.firstChild);AtZ=z}z=AtZ;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var WXr;var ndZ;var LX0;var UeR;var a1A;var VY8;var jLR=function(){return _.q.apply(this,arguments)||this};
_.m(jLR,_.q);_.e([_.X(),_.w("design:type",Object)],jLR.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],jLR);
_.r(jLR,"yt-live-chat-message-subtext-renderer",function(){if(VY8===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;a1A===void 0&&(a1A=document.createElement("template"));var b=a1A;I.call(l,b.content.cloneNode(!0),z.content.firstChild);VY8=z}z=VY8;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var IM=function(){var z=_.q.apply(this,arguments)||this;z.subtextOnBottom=!1;z.buttonOverrides={style:"mono",type:"tonal"};return z};
_.m(IM,_.q);IM.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],IM.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],IM.prototype,"subtextOnBottom",void 0);_.e([_.X(),_.w("design:type",Object)],IM.prototype,"buttonOverrides",void 0);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],IM);
_.r(IM,"yt-live-chat-message-renderer",function(){if(UeR===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;LX0===void 0&&(LX0=document.createElement("template"));var b=LX0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);UeR=z}z=UeR;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var JtR;var zx7;var bn=function(){var z=_.q.apply(this,arguments)||this;z.isRemovable=!1;z.hasPrefilledText=!1;z.isInputDirty=!1;z.overCharacterLimit=!1;z.underCharacterLimit=!1;z.showErrorMessage=!1;return z};
_.m(bn,_.q);_.p=bn.prototype;_.p.computeId=function(){return this.data.id};
_.p.computeInputData=function(){return this.data.inputData};
_.p.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.p.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.p.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.p.getLiveChatRichMessageInput=function(){return _.Hy(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.p.clearInput=function(){_.Hy(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.p.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.p.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.p.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.p.handleTextInputCharCountChanged=function(z){z=z.detail&&z.detail.characterCount;z!==void 0&&(this.characterCount=z,z!==0&&(this.isInputDirty=!0))};
_.p.onInputFocusOut=function(){this.isInputDirty=!0};
_.p.onClickCloseButton=function(){_.gC(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
bn.prototype.handleTextInputCharCountChanged=bn.prototype.handleTextInputCharCountChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bn.prototype,"data",void 0);_.e([_.X({computed:"computeId(data.id)"}),_.w("design:type",String)],bn.prototype,"id",void 0);_.e([_.X({computed:"computeInputData(data.inputData)"}),_.w("design:type",Object)],bn.prototype,"inputData",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.w("design:type",Object)],bn.prototype,"isRemovable",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.w("design:type",Object)],bn.prototype,"hasPrefilledText",void 0);_.e([_.X({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.w("design:type",Number)],bn.prototype,"charactersRemaining",void 0);
_.e([_.X(),_.w("design:type",Number)],bn.prototype,"characterCount",void 0);_.e([_.X(),_.w("design:type",Object)],bn.prototype,"isInputDirty",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.w("design:type",Object)],bn.prototype,"overCharacterLimit",void 0);_.e([_.X({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.w("design:type",Object)],bn.prototype,"underCharacterLimit",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.w("design:type",Object)],bn.prototype,"showErrorMessage",void 0);_.e([_.tP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],bn.prototype,"handleTextInputCharCountChanged",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],bn);
_.r(bn,"yt-live-chat-poll-editor-input",function(){if(zx7===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;JtR===void 0&&(JtR=document.createElement("template"));var b=JtR;I.call(l,b.content.cloneNode(!0),z.content.firstChild);zx7=z}z=zx7;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var lCA;var ICr;var b7Z={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},va=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_button_rework_with_live");z.closeButtonOverrides={iconPosition:"icon-only"};z.startButtonOverrides={style:"mono",type:"filled"};z.addOptionButtonOverrides={style:"mono",type:"text"};return z};
_.m(va,_.q);_.p=va.prototype;
_.p.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"}}}}};
_.p.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var z;_.k((z=this.data)==null?void 0:z.startButton,_.xm)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.computeId=function(){return this.data&&this.data.id||""};
_.p.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.p.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.p.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.p.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.p.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var z=0;z<this.pollEditorInfoWithDefaults.minPollOptions;z++)this.addPollOptionData()};
_.p.getIsValidPoll=function(){var z=this;if(!this.pollEditorInfoWithDefaults)return!1;var l=this.pollEditorInfoWithDefaults,I=l.minPollOptionChars,b=l.maxPollOptionChars,v=l.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>l.maxPollQuestionChars)return!1;l=_.Hy(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(l).every(function(M,x){M=M.characterCount;!M&&v[x]&&(M=z.ytRendererBehavior.getSimpleString(v[x]).length);return M!==void 0&&M>=I&&M<=b})};
_.p.isValidPollChanged=function(){var z;_.k((z=this.data)==null?void 0:z.startButton,_.xm)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.addPollOptionData=function(){var z=this.pollEditorInfoWithDefaults,l=z.maxPollOptionChars,I=z.optionPlaceholderText,b=z.customOptionPlaceholderText,v=z.pollOptionData;this.currentNumPollOptions>=z.maxPollOptions||(z={liveChatPollOptionInput:{inputData:{placeholder:b[this.currentNumPollOptions]||I,maxCharacterLimit:l},maxCharacterLimit:l,minCharacterLimit:z.minPollOptionChars,hasPrefilledText:!!b[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=z.minPollOptions}},v.charCountErrorText&&
(z.liveChatPollOptionInput.charCountErrorText=v.charCountErrorText),v.charsRemainingAltLabel&&(z.liveChatPollOptionInput.charsRemainingAltLabel=v.charsRemainingAltLabel),v.removeOptionAltText&&(z.liveChatPollOptionInput.removeOptionAltText=v.removeOptionAltText),this.push("pollOptionsData",z),v=Array.from(_.Hy(_.Hy(this.hostElement).querySelector("#poll-options")).children),v.forEach(function(M,x){M.polymerController.set("data.id",x)}),_.Hy(v[v.length-1]).querySelector("#input").focus())};
_.p.getPollOptionInputValues=function(){var z=this,l=[],I=_.Hy(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),b=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(v,M){var x=null;v=v.getLiveChatRichMessageInput();var g;(v==null?0:(g=v.textSegments)==null?0:g.length)?x=_.Ve(v):b[M]&&(x=z.formattedStringToLiveChatRichMessageInput(b[M]));l.push(x)});
return l};
_.p.requestCreateAndStartPoll=function(z){var l=this.getPollOptionInputValues();if(!l.some(function(b){return!b})){l={optionText:l};
var I=_.Hy(_.Hy(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(l.questionText=_.Ve(I.liveChatRichMessageInput));_.uJ(this.hostElement,[z,l])}};
_.p.selectedChanged=function(){if(this.selected){var z=_.Hy(_.Hy(this.hostElement).querySelector("#start-button")).firstElementChild;if(z){var l;(l=_.Hy(z).querySelector("#button")||_.y5(z).querySelector("button"))==null||l.focus()}}};
_.p.handleTextInputChanged=function(z){var l;((l=z.target)==null?void 0:l.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=z.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.p.handleStartButtonAction=function(z){z.detail.actionName==="yt-service-request"&&(z.stopPropagation(),(z=z.detail.args[1])&&this.requestCreateAndStartPoll(z))};
_.p.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(z){this.createPollRequestInFlight=!1;(z=z.detail&&z.detail.data)&&z.success&&(_.gC(this.hostElement,"picker-cancelled"),_.Gb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.p.onCloseClick=function(){_.gC(this.hostElement,"picker-cancelled");_.Gb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.p.handlePollEditorInputClosed=function(z){var l=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===z.detail.id});
this.splice("pollOptionsData",l,1);this.isValidPoll=this.getIsValidPoll()};
_.p.onPickerCancelled=function(){this.reset()};
_.p.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var z=_.Hy(_.Hy(this.hostElement).querySelector("#poll-question")).firstChild;z&&z.setLiveChatRichMessageInput(null);if(z=_.Hy(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){z=_.D(Array.from(z));for(var l=z.next();!l.done;l=z.next())l.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.p.formattedStringToLiveChatRichMessageInput=function(z){return z.simpleText?{text_segments:[z.simpleText]}:{text_segments:z.runs}};
_.vP.Object.defineProperties(va.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(b7Z,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
va.prototype.onPickerCancelled=va.prototype.onPickerCancelled;va.prototype.handlePollEditorInputClosed=va.prototype.handlePollEditorInputClosed;va.prototype.handleServiceRequestCompleted=va.prototype.handleServiceRequestCompleted;va.prototype.handleServiceRequestSent=va.prototype.handleServiceRequestSent;va.prototype.handleTextInputChanged=va.prototype.handleTextInputChanged;va.prototype.selectedChanged=va.prototype.selectedChanged;va.prototype.isValidPollChanged=va.prototype.isValidPollChanged;
va.prototype.shouldInitializePollChanged=va.prototype.shouldInitializePollChanged;va.prototype.dataChanged=va.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],va.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],va.prototype,"modern",void 0);
_.e([_.X(),_.w("design:type",Object)],va.prototype,"closeButtonOverrides",void 0);_.e([_.X(),_.w("design:type",Object)],va.prototype,"startButtonOverrides",void 0);_.e([_.X(),_.w("design:type",Object)],va.prototype,"addOptionButtonOverrides",void 0);_.e([_.X({computed:"computeId(data.id)",reflectToAttribute:!0}),_.w("design:type",String)],va.prototype,"id",void 0);_.e([_.X({value:function(){return[]}}),
_.w("design:type",Array)],va.prototype,"pollOptionsData",void 0);_.e([_.B("pollEditorInfoWithDefaults"),_.w("design:type",Object),_.w("design:paramtypes",[])],va.prototype,"pollQuestionData",null);_.e([_.X({value:0}),_.w("design:type",Number)],va.prototype,"pollQuestionCharacterCount",void 0);_.e([_.B("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.w("design:type",Object),_.w("design:paramtypes",[])],va.prototype,"pollQuestionCharactersRemaining",null);
_.e([_.X({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.w("design:type",Boolean)],va.prototype,"overQuestionCharacterLimit",void 0);_.e([_.B("data.pollEditorInfo"),_.w("design:type",Object),_.w("design:paramtypes",[])],va.prototype,"pollEditorInfoWithDefaults",null);_.e([_.X({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.w("design:type",Number)],va.prototype,"currentNumPollOptions",void 0);
_.e([_.X({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.w("design:type",Boolean)],va.prototype,"hasMaxNumPollOptions",void 0);_.e([_.B("pollEditorInfoWithDefaults","pollOptionsData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],va.prototype,"shouldInitializePoll",null);_.e([_.X(),_.w("design:type",Object)],va.prototype,"isValidPoll",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],va.prototype,"createPollRequestInFlight",void 0);_.e([_.X(),_.w("design:type",Object)],va.prototype,"selected",void 0);_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.w("design:type",Boolean)],va.prototype,"showQuestionErrorMessage",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],va.prototype,"dataChanged",null);_.e([_.By("shouldInitializePoll"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],va.prototype,"shouldInitializePollChanged",null);_.e([_.By("isValidPoll"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],va.prototype,"isValidPollChanged",null);
_.e([_.By("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],va.prototype,"selectedChanged",null);_.e([_.tP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],va.prototype,"handleTextInputChanged",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],va.prototype,"handleServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],va.prototype,"handleServiceRequestCompleted",null);
_.e([_.tP("yt-live-chat-poll-editor-input-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],va.prototype,"handlePollEditorInputClosed",null);_.e([_.tP("picker-cancelled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],va.prototype,"onPickerCancelled",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],va);
_.r(va,"yt-live-chat-poll-editor-panel-renderer",function(){if(ICr===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;lCA===void 0&&(lCA=document.createElement("template"));var b=lCA;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ICr=z}z=ICr;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var vqD;var M6A;var M6=function(){return _.q.apply(this,arguments)||this};
_.m(M6,_.q);M6.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
M6.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vP.Object.defineProperties(M6.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var z,l;return(z=this.data)==null?void 0:(l=z.title)==null?void 0:l.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var z;return _.Wh((z=this.data)==null?void 0:z.onTapCommand)}}});
_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],M6.prototype,"ytEndpointBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],M6.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],M6.prototype,"itemId",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],M6.prototype,"hasPromotion",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],M6.prototype,"innertubeCommand",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],M6);
_.r(M6,"yt-live-chat-product-picker-panel-item-view-model",function(){if(M6A===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;vqD===void 0&&(vqD=document.createElement("template"));var b=vqD;I.call(l,b.content.cloneNode(!0),z.content.firstChild);M6A=z}z=M6A;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var pRD;var DjR;var pW=function(){var z=_.q.apply(this,arguments)||this;z.id="product-picker";z.selected=!1;z.closeButtonId="close-button";z.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return z};
_.m(pW,_.q);_.p=pW.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var z=_.Hy(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");z.length&&z[0].focus()};
_.p.onCloseBuyFlow=function(){_.gC(this.hostElement,"picker-cancelled")};
_.p.onCloseClick=function(){_.gC(this.hostElement,"picker-cancelled");var z;((z=this.data)==null?0:z.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.closeButton,_.N1))};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.gC(this.hostElement,"picker-cancelled")};
pW.prototype.observeSelected=pW.prototype.observeSelected;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],pW.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pW.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pW.prototype,"id",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pW.prototype,"selected",void 0);_.e([_.X(),_.w("design:type",Object)],pW.prototype,"closeButtonId",void 0);_.e([_.By("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pW.prototype,"observeSelected",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],pW);
_.r(pW,"yt-live-chat-product-picker-panel-view-model",function(){if(DjR===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;pRD===void 0&&(pRD=document.createElement("template"));var b=pRD;I.call(l,b.content.cloneNode(!0),z.content.firstChild);DjR=z}z=DjR;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var xjR;var O7a;var D2=function(){var z=_.q.apply(this,arguments)||this;z.iconId="";z.icon="";z.disabled=!1;z.systemIcons=_.C("kevlar_system_icons");return z};
_.m(D2,_.q);_.p=D2.prototype;_.p.computeIconId=function(z){return z&&z.icon&&z.icon.iconType?z.icon.iconType.toLowerCase():""};
_.p.computeIcon=function(z){return z&&z.icon&&z.icon.iconType?(z=z.icon.iconType.toLowerCase(),(z.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+z):""};
_.p.computeDisabled=function(z){return!!z};
_.p.computeCommand=function(z,l){return l?void 0:z};
_.p.computeTooltip=function(z,l){return l&&z?z:""};
_.p.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vP.Object.defineProperties(D2.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var z="",l,I,b;if((l=this.data)==null?0:(I=l.text)==null?0:(b=I.runs)==null?0:b.length)z=this.data.text.runs[0].text||"";else{var v,M;if((v=this.data)==null?0:(M=v.text)==null?0:M.simpleText)z=this.data.text.simpleText}var x,g,G;if((x=this.data)==null?0:(g=x.subtext)==null?0:(G=g.runs)==null?0:G.length)z&&(z+=". "),z+=this.data.subtext.runs[0].text||"";else{var u,Z;if((u=this.data)==null?0:(Z=u.subtext)==
null?0:Z.simpleText)z&&(z+=". "),z+=this.data.subtext.simpleText}return z}}});
_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],D2.prototype,"ytEndpointBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],D2.prototype,"data",void 0);_.e([_.X({computed:"computeIconId(data)",reflectToAttribute:!0}),_.w("design:type",Object)],D2.prototype,"iconId",void 0);
_.e([_.X({computed:"computeIcon(data)",reflectToAttribute:!0}),_.w("design:type",Object)],D2.prototype,"icon",void 0);_.e([_.X({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.w("design:type",Object)],D2.prototype,"disabled",void 0);_.e([_.X({computed:"computeCommand(data.command, disabled)"}),_.w("design:type",Object)],D2.prototype,"command",void 0);_.e([_.X({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.w("design:type",String)],D2.prototype,"tooltip",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],D2.prototype,"systemIcons",void 0);_.e([_.B("data.text","data.subtext"),_.X(),_.w("design:type",String),_.w("design:paramtypes",[])],D2.prototype,"ariaLabel",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],D2);
_.r(D2,"yt-live-chat-product-button-renderer",function(){if(O7a===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;xjR===void 0&&(xjR=document.createElement("template"));var b=xjR;I.call(l,b.content.cloneNode(!0),z.content.firstChild);O7a=z}z=O7a;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var gqQ;var GhZ;var xt=function(){var z=_.q.apply(this,arguments)||this;z.selected=!1;z.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 z};
_.m(xt,_.q);_.p=xt.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.computeId=function(z){return z.id||""};
_.p.onCloseClick=function(){_.gC(this.hostElement,"picker-cancelled")};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var z=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");z.length&&z[0].focus()};
_.p.onCloseBuyFlow=function(){_.gC(this.hostElement,"picker-cancelled")};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.gC(this.hostElement,"picker-cancelled")};
xt.prototype.observeSelected=xt.prototype.observeSelected;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],xt.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xt.prototype,"data",void 0);
_.e([_.X({computed:"computeId(data)",reflectToAttribute:!0}),_.w("design:type",String)],xt.prototype,"id",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xt.prototype,"selected",void 0);_.e([_.By("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xt.prototype,"observeSelected",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],xt);
_.r(xt,"yt-live-chat-product-picker-renderer",function(){if(GhZ===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;gqQ===void 0&&(gqQ=document.createElement("template"));var b=gqQ;I.call(l,b.content.cloneNode(!0),z.content.firstChild);GhZ=z}z=GhZ;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var NsT;var Eqr;var u5D;var Z7A;var OO=function(){return _.q.apply(this,arguments)||this};
_.m(OO,_.q);OO.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()};
OO.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
OO.prototype.created=function(){this.ids={background:_.yO(),maskOne:_.yO(),maskTwo:_.yO(),gradient:_.yO(),largeBackground:_.yO(),largeGradientOne:_.yO(),largeGradientTwo:_.yO(),largeGradientPath:_.yO()}};
OO.prototype.maybeLoadAnimationBackground=OO.prototype.maybeLoadAnimationBackground;_.e([_.X({value:!1}),_.w("design:type",Boolean)],OO.prototype,"useLargeBackground",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],OO.prototype,"useAnimationBackground",void 0);_.e([_.X({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.w("design:type",Boolean)],OO.prototype,"useRegularBackground",void 0);
_.e([_.X(),_.w("design:type",Object)],OO.prototype,"ids",void 0);_.e([_.X(),_.w("design:type",Object)],OO.prototype,"lottieAnimation",void 0);_.e([_.qX("#animation-background"),_.w("design:type",HTMLDivElement)],OO.prototype,"animationBackground",void 0);_.e([_.By("useAnimationBackground"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OO.prototype,"maybeLoadAnimationBackground",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],OO);
_.r(OO,"yt-live-interactivity-component-background",function(){if(Z7A===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;u5D===void 0&&(u5D=document.createElement("template"));var b=u5D;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Z7A=z}z=Z7A;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var gR=function(){var z=_.q.apply(this,arguments)||this;z.characterCount=0;z.showInputErrorMessage=!1;z.startQnaRequestInFlight=!1;z.modern=_.C("web_button_rework_with_live");z.buttonOverrides={style:"mono",type:"filled"};z.closeButtonOverrides={iconPosition:"icon-only"};z.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return z};
_.m(gR,_.q);_.p=gR.prototype;
_.p.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]]"}}}}}};
_.p.onCharacterCountChanged=function(z){var l,I,b,v,M=(I=_.k(this==null?void 0:(l=this.data)==null?void 0:l.creatorCallForQuestions,nRD))==null?void 0:(b=I.inputField)==null?void 0:(v=b.liveChatTextInputFieldRenderer)==null?void 0:v.maxCharacterLimit,x,g;M!=null&&(z==null?void 0:(x=z.detail)==null?void 0:x.characterCount)!=null&&_.k(this==null?void 0:(g=this.data)==null?void 0:g.startButton,_.xm)&&(l=z.detail.characterCount>M,this.set("data.startButton.buttonRenderer.isDisabled",z.detail.characterCount===
0||l),this.showInputErrorMessage=l)};
_.p.onCloseClick=function(){_.gC(this.hostElement,"picker-cancelled");_.Gb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onPickerCancelled=function(){var z=_.Hy(this.hostElement).querySelector("#qna-creator-text-input-field");z&&z.setLiveChatRichMessageInput(null)};
_.p.handleOpenQnaStartPanel=function(){var z=_.Hy(this.hostElement).querySelector("#qna-creator-text-input-field");z&&z.focus()};
_.p.handleStartButtonAction=function(z){var l=this;if(z.detail.actionName==="yt-service-request"&&(z.stopPropagation(),z=z.detail.args[1])){var I=_.Hy(this.hostElement).querySelector("#qna-creator-text-input-field"),b;(I==null?0:(b=I.liveChatRichMessageInput)==null?0:b.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(b={rich_message:_.Ve(I.liveChatRichMessageInput)},_.uJ(this.hostElement,[z,b]).then(function(){_.gC(l.hostElement,"picker-cancelled")}))}};
_.p.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(z){var l;z=z==null?void 0:(l=z.detail)==null?void 0:l.data;(z==null?0:z.actions)&&z.actions.length>0?this.startQnaRequestInFlight=!1:_.Gb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
gR.prototype.handleServiceRequestError=gR.prototype.handleServiceRequestError;gR.prototype.handleServiceRequestCompleted=gR.prototype.handleServiceRequestCompleted;gR.prototype.handleServiceRequestSent=gR.prototype.handleServiceRequestSent;gR.prototype.onPickerCancelled=gR.prototype.onPickerCancelled;gR.prototype.onCharacterCountChanged=gR.prototype.onCharacterCountChanged;_.e([_.X(),_.w("design:type",Object)],gR.prototype,"characterCount",void 0);
_.e([_.X(),_.w("design:type",Object)],gR.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gR.prototype,"showInputErrorMessage",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gR.prototype,"startQnaRequestInFlight",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gR.prototype,"modern",void 0);_.e([_.X(),_.w("design:type",Object)],gR.prototype,"buttonOverrides",void 0);
_.e([_.X(),_.w("design:type",Object)],gR.prototype,"closeButtonOverrides",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],gR.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.t(_.yS.YtLiveChatItemBehavior),_.w("design:type",_.fe)],gR.prototype,"ytLiveChatItemBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],gR.prototype,"ytActionHandlerBehavior",void 0);_.e([_.tP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gR.prototype,"onCharacterCountChanged",null);_.e([_.tP("picker-cancelled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gR.prototype,"onPickerCancelled",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gR.prototype,"handleServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gR.prototype,"handleServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],gR.prototype,"handleServiceRequestError",null);_.e([_.S({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],gR);
_.r(gR,"yt-live-chat-qna-start-panel-renderer",function(){if(Eqr===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;NsT===void 0&&(NsT=document.createElement("template"));var b=NsT;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Eqr=z}z=Eqr;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var H7R;var y7T;var GQ=function(){return _.q.apply(this,arguments)||this};
_.m(GQ,_.q);GQ.prototype.dismiss=function(){_.gC(this.hostElement,"yt-live-chat-error-message-dismiss")};
GQ.prototype.edit=function(){_.gC(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.e([_.X(),_.w("design:type",Object)],GQ.prototype,"data",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],GQ);
_.r(GQ,"yt-live-chat-text-actions-error-message-renderer",function(){if(y7T===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;H7R===void 0&&(H7R=document.createElement("template"));var b=H7R;I.call(l,b.content.cloneNode(!0),z.content.firstChild);y7T=z}z=y7T;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var fCv;var Cla;var kh7;var RxR;var N6=function(){var z=_.q.apply(this,arguments)||this;z.isDarkTheme=document.documentElement.hasAttribute("dark");z.newnessDotEligible=!1;return z};
_.m(N6,_.q);N6.prototype.sendReaction=function(){var z,l,I=((z=this.data)==null?void 0:z.emojiId)||((l=this.data)==null?void 0:l.emoteId),b;I&&((b=this.data)==null?0:b.shouldTriggerAnimation)&&_.Gb(this.hostElement,"yt-create-user-reaction-animation",[I]);var v;(z=_.Wh((v=this.data)==null?void 0:v.onTap))&&_.tx(z,this.hostElement);this.showNewnessDot&&_.Gb(this.hostElement,"yt-hide-newness-dot")};
N6.prototype.onClick=function(z){(!z||z.clientX||z.clientY)&&this.sendReaction()};
N6.prototype.onKeyDown=function(z){z.key!=="Enter"&&z.key!==" "||z.repeat||this.sendReaction()};
_.vP.Object.defineProperties(N6.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!(((z=this.data)==null?0:z.emojiId)||((l=this.data)==null?0:l.emoteId))}}});
_.e([_.X(),_.w("design:type",Object)],N6.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],N6.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],N6.prototype,"newnessDotEligible",void 0);_.e([_.B("data.maybeShowNewnessDot"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N6.prototype,"showNewnessDot",null);_.e([_.B("data.emojiId","data.emoteId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],N6.prototype,"useYtImage",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],N6);
_.r(N6,"yt-reaction-control-panel-button-view-model",function(){if(RxR===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;kh7===void 0&&(kh7=document.createElement("template"));var b=kh7;I.call(l,b.content.cloneNode(!0),z.content.firstChild);RxR=z}z=RxR;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var mjD;var KH7;var EO=function(){var z=_.q.apply(this,arguments)||this;z.reactionControlPanelExpanded=!1;z.isDarkTheme=document.documentElement.hasAttribute("dark");z.newnessDotEligible=!1;return z};
_.m(EO,_.q);_.p=EO.prototype;_.p.expandedButtonsChanged=function(){var z,l;_.R8(this.hostElement,{"--expanded-buttons-height":((l=(z=this.expandedButtonsData)==null?void 0:z.length)!=null?l:0)*36+"px"})};
_.p.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}}};
_.p.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.p.onMouseLeave=function(){var z=this;this.collapseTimer=setTimeout(function(){z.reactionControlPanelExpanded=!1},500)};
_.p.onFocusIn=function(){this.onMouseEnter()};
_.p.onFocusOut=function(){this.onMouseLeave()};
_.p.onCollapsedButtonFocusIn=function(){var z=this;setTimeout(function(){var l;(l=z.expandedButtons.querySelector("button"))==null||l.focus()},100)};
_.p.onCollapsedButtonFocusOut=function(z){z.stopPropagation()};
_.vP.Object.defineProperties(EO.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var z,l;return _.h7.unsafeClone((z=this.liveReactionsData)==null?void 0:z.emojiButtonData)||((l=this.data)==null?void 0:l.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var z;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((z=this.data)==null||!z.maybeShowNewnessDot)}}});
EO.prototype.expandedButtonsChanged=EO.prototype.expandedButtonsChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],EO.prototype,"ytLiveChatReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EO.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],EO.prototype,"reactionControlPanelExpanded",void 0);_.e([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:mKZ}),_.w("design:type",Object)],EO.prototype,"liveReactionsData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],EO.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],EO.prototype,"newnessDotEligible",void 0);
_.e([_.B("liveReactionsData","data.expandedButtons"),_.w("design:type",Object),_.w("design:paramtypes",[])],EO.prototype,"expandedButtonsData",null);_.e([_.B("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.X({reflectToAttribute:!0}),_.w("design:type",Object),_.w("design:paramtypes",[])],EO.prototype,"showNewnessDot",null);_.e([_.qX("#expanded-buttons"),_.w("design:type",HTMLElement)],EO.prototype,"expandedButtons",void 0);
_.e([_.By("expandedButtonsData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EO.prototype,"expandedButtonsChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],EO);
_.r(EO,"yt-reaction-control-panel-view-model",function(){if(KH7===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;mjD===void 0&&(mjD=document.createElement("template"));var b=mjD;I.call(l,b.content.cloneNode(!0),z.content.firstChild);KH7=z}z=KH7;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var un=new _.$8("yt-live-chat"),t6u=Date.parse("2024-7-24"),Z2=function(){var z=_.q.apply(this,arguments)||this;z.emojiManager=_.HL;z.newnessDotEligible=!1;z.newnessDotImpressionCounted=!1;z.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return z};
_.m(Z2,_.q);_.p=Z2.prototype;_.p.emojiCustomizationEnabledChanged=function(){var z;((z=this.data)==null?0:z.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((z=un.getCreationTime("emoji-customization-count"))&&z<t6u&&un.set("emoji-customization-count","0"),z=Number(un.get("emoji-customization-count"))||0,z<3&&(this.newnessDotEligible=!0,un.set("emoji-customization-count",(z+1).toString())),this.newnessDotImpressionCounted=!0)};
_.p.hideNewnessDot=function(){this.newnessDotEligible=!1;un.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.p.handleReactionsMute=function(z){var l=_.sU(),I=_.kU(206221),b={checkboxData:{state:z?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};l&&_.JH(l,I,b);this.reactionsMuted=z};
_.p.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.p.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}}};
_.vP.Object.defineProperties(Z2.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var z;return(!((z=this.liveReactionsData)==null||!z.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Z2.prototype.liveReactionsSettingChanged=Z2.prototype.liveReactionsSettingChanged;Z2.prototype.emojiCustomizationEnabledChanged=Z2.prototype.emojiCustomizationEnabledChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nw),_.w("design:type",Object)],Z2.prototype,"ytLiveChatReduxBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Z2.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Z2.prototype,"data",void 0);_.e([_.X(),_.w("design:type",_.EM)],Z2.prototype,"emojiManager",void 0);_.e([_.X(),_.w("design:type",Object)],Z2.prototype,"newnessDotEligible",void 0);_.e([_.X(),_.w("design:type",Object)],Z2.prototype,"newnessDotImpressionCounted",void 0);
_.e([_.X({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:K00}),_.w("design:type",Boolean)],Z2.prototype,"liveReactionsSetting",void 0);_.e([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:mKZ}),_.w("design:type",Object)],Z2.prototype,"liveReactionsData",void 0);_.e([_.X({value:function(){var z=_.C("enable_lwe_web_mute"),l=un.get("allow-reactions");return l===void 0?!1:!l&&z}}),
_.w("design:type",Boolean)],Z2.prototype,"reactionsMuted",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Z2.prototype,"liveReactionsEnabled",null);_.e([_.By("data.emojiCustomizationEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z2.prototype,"emojiCustomizationEnabledChanged",null);
_.e([_.By("liveReactionsEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Z2.prototype,"liveReactionsSettingChanged",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Z2);
_.r(Z2,"yt-reaction-control-panel-overlay-view-model",function(){if(Cla===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;fCv===void 0&&(fCv=document.createElement("template"));var b=fCv;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Cla=z}z=Cla;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var BsD={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(z){var l=this.$.pickers.selected;if(l){_.Hy(this.hostElement).removeAttribute(l+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",l==="emoji"&&_.Hy(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.Hy(this.hostElement).querySelector(I).querySelector("#"+l))I.active=!1}I=z;l==z&&(I=null);l!=
z&&_.Hy(this.hostElement).setAttribute(z+"-open","");this.$.pickers.selected=I;_.Gb(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Ha=function(){var z=_.q.apply(this,arguments)||this;z.numSentMessages=0;z.timeoutDurationMs=0;z.timeoutMs=0;z.lastTimeoutTimeMs=0;z.pendingMessageId="";z.hasFiredInitialFocusActions=!1;z.isBeforeFocusEnabled=!0;z.id="";z.characterCount=0;z.maxCharacterLimit=0;z.remainingCharacterCount=0;z.inputExpanded=!1;z.buttonOverrides={iconPosition:"icon-only"};z.inReplyPanel=!1;z.countdownRatio=0;z.isTooltipVisible=!1;z.tooltipTimeout=1E4;z.systemIcons=_.C("kevlar_system_icons");z.tallerEmojiPicker=_.C("live_chat_taller_emoji_picker");
z.sendReplyMessageInFlight=!1;z.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"};z.onResize=function(){z.maybeToggleCharacterCount()};
return z};
_.m(Ha,_.q);_.p=Ha.prototype;
_.p.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"}}}};
_.p.attached=function(){window.addEventListener("resize",this.onResize)};
_.p.detached=function(){window.removeEventListener("resize",this.onResize)};
_.p.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.p.sendMessage=function(){var z=this,l,I,b,v;return _.O(function(M){if(z.sendDisabled)return M.return();z.isTooltipVisible&&_.Gb(z.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(z.data.sendButton&&z.data.sendButton.buttonRenderer){z.input.completeEmojis();l=z.data.sendButton.buttonRenderer.serviceEndpoint;if(!l)return M.return();b=((I=_.k(l,_.Pgu))==null?void 0:I.clientIdPrefix)||"";v={client_message_id:b+String(z.numSentMessages++),rich_message:_.Ve(z.input.liveChatRichMessageInput)};
z.pendingMessageId=v.client_message_id;z.inReplyPanel&&(z.sendReplyMessageInFlight=!0);_.uJ(z.hostElement,[l,v]);z.input.setLiveChatRichMessageInput(null)}_.qe(M)})};
_.p.handleSendButtonAction=function(z){z.detail.actionName==="yt-service-request"&&(z.stopPropagation(),this.sendMessage())};
_.p.onSendCompleted=function(z,l){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(z=this.get("timeoutDurationUsec",l.data))&&this.handleTimeout(Number(z)/1E3);this.errorMessage=this.get("errorMessage",l.data);this.pendingMessageId=""};
_.p.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Gb(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.p.handlePickerButtonToggle=function(z){z=z.detail.targetId;this.ytPickerBehavior.togglePicker_(z);if(z==="emoji")this.input.focus();else if(z==="qna-start-panel"){var l,I;(l=_.Hy(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=l.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.p.onComponentReplaced=function(z){var l,I;z.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((l=z.replacement.liveChatMessageInputRenderer)==null?0:(I=l.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.p.onEmojiSelect=function(z){this.input.focus();this.input.insertEmoji(z.detail)};
_.p.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.p.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Gb(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Gb(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.p.onOpenPopupAction=function(z,l){var I=this;l===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Gb(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.p.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.p.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.p.focusChanged=function(){this.maybeToggleCharacterCount()};
_.p.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var z=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",z>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.p.computeId=function(){return this.data&&this.data.targetId||""};
_.p.computeSendDisabled=function(z,l,I,b){z=!!(!z||l&&z>l||b);(l=_.Hy(this.hostElement).querySelector("#send-button"))&&l.children.length&&(l.children[0].disabled=z);return z};
_.p.handleTimeout=function(z){this.timeoutDurationMs=this.timeoutMs=z;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.p.updateTimeout=function(z){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(z-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=z,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.p.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.p.onErrorMessageEdit=function(z){this.input.setLiveChatRichMessageInput(z.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.p.errorMessageChanged=function(){var z=this;_.JP(function(){_.Gb(z.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.p.computeAuthorNameColor=function(z){var l;if(_.C("live_chat_author_name_color_usernames")&&(z==null?0:(l=z.authorName)==null?0:l.simpleText))return _.U9Q(_.a85(z.authorName.simpleText));if(_.C("live_chat_seed_color_usernames")&&(z==null?0:z.authorSeedColorArgb))return _.U9Q(_.CE(z.authorSeedColorArgb));if(_.C("live_chat_colored_usernames"))return"#cc0000";var I;return _.C("live_chat_simple_color_usernames")&&(z==null?0:(I=z.authorName)==null?0:I.simpleText)&&(z==null?0:z.authorUsernameColorLight)&&
(z==null?0:z.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.CE(z.authorUsernameColorDark):_.CE(z.authorUsernameColorLight):""};
_.p.onIsTooltipVisibleChanged=function(){var z=_.Hy(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){z.hidden=!1;z.setAttribute("role","alert")},0):(z.hidden=!0,z.removeAttribute("role"))};
_.p.onFocusedChanged=function(z){this.inputFocused=z.detail.value};
_.vP.Object.defineProperties(Ha.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 z;return!((z=this.data)==null||!z.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:(l=z.pickers)==null?void 0:l.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var z=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return z?this.ytRendererBehavior.getSimpleString(z):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Ha.prototype.onIsTooltipVisibleChanged=Ha.prototype.onIsTooltipVisibleChanged;Ha.prototype.errorMessageChanged=Ha.prototype.errorMessageChanged;Ha.prototype.onErrorMessageEdit=Ha.prototype.onErrorMessageEdit;Ha.prototype.onErrorMessageDismiss=Ha.prototype.onErrorMessageDismiss;Ha.prototype.focusChanged=Ha.prototype.focusChanged;Ha.prototype.characterCountChanged=Ha.prototype.characterCountChanged;Ha.prototype.onEmojiSelect=Ha.prototype.onEmojiSelect;Ha.prototype.handlePickerButtonToggle=Ha.prototype.handlePickerButtonToggle;
Ha.prototype.onSendError=Ha.prototype.onSendError;Ha.prototype.onSendCompleted=Ha.prototype.onSendCompleted;Ha.prototype.sendMessage=Ha.prototype.sendMessage;Ha.prototype.dataChanged=Ha.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Ha.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(BsD.YtPickerBehavior),_.w("design:type",Object)],Ha.prototype,"ytPickerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.EF.YtLiveChatTooltipTargetingBehavior),_.w("design:type",Object)],Ha.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"hasFiredInitialFocusActions",void 0);
_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"isBeforeFocusEnabled",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"data",void 0);_.e([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.w("design:type",Object)],Ha.prototype,"id",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"characterCount",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"maxCharacterLimit",void 0);
_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"remainingCharacterCount",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ha.prototype,"inputExpanded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Ha.prototype,"inputFocused",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Ha.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.e([_.X(),_.w("design:type",_.RV)],Ha.prototype,"participantsManager",void 0);
_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"buttonOverrides",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ha.prototype,"inReplyPanel",void 0);_.e([_.B("characterCount, maxCharacterLimit, countdownActive"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ha.prototype,"sendDisabled",null);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"countdownRatio",void 0);
_.e([_.B("countdownRatio"),_.w("design:type",Number),_.w("design:paramtypes",[])],Ha.prototype,"countdownStrokeDashOffset",null);_.e([_.B("countdownRatio"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ha.prototype,"countdownActive",null);_.e([_.B("data.interactionMessage"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ha.prototype,"hasInteractionMessage",null);
_.e([_.B("data.emojiPickerButton"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ha.prototype,"hasEmojiPickerButton",null);_.e([_.B("data, characterCount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ha.prototype,"showAvatar",null);_.e([_.B("data.pickers"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ha.prototype,"hasProductPickerPanelViewModel",null);
_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"errorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"genericErrorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"isTooltipVisible",void 0);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"tooltipTimeout",void 0);_.e([_.B("data.onInitialFocusCommand"),_.w("design:type",String),_.w("design:paramtypes",[])],Ha.prototype,"tooltipMessage",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ha.prototype,"systemIcons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ha.prototype,"tallerEmojiPicker",void 0);_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],Ha.prototype,"authorNameColor",null);_.e([_.X(),_.w("design:type",Object)],Ha.prototype,"sendReplyMessageInFlight",void 0);_.e([_.qX("#input"),_.w("design:type",_.i3_)],Ha.prototype,"input",void 0);
_.e([_.qX("#count"),_.w("design:type",HTMLElement)],Ha.prototype,"count",void 0);_.e([_.qX("#input-container"),_.w("design:type",HTMLElement)],Ha.prototype,"inputContainer",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"dataChanged",null);_.e([_.tP("yt-live-chat-send-message"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],Ha.prototype,"sendMessage",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[Event,_.pY]),_.w("design:returntype")],Ha.prototype,"onSendCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"onSendError",null);
_.e([_.tP("yt-live-chat-icon-toggle-button-renderer-toggle"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ha.prototype,"handlePickerButtonToggle",null);_.e([_.tP("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ha.prototype,"onEmojiSelect",null);
_.e([_.By("characterCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"characterCountChanged",null);_.e([_.By("inputFocused"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"focusChanged",null);_.e([_.tP("yt-live-chat-error-message-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"onErrorMessageDismiss",null);
_.e([_.tP("yt-live-chat-error-message-edit"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ha.prototype,"onErrorMessageEdit",null);_.e([_.By("errorMessage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"errorMessageChanged",null);_.e([_.By("isTooltipVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ha.prototype,"onIsTooltipVisibleChanged",null);
_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Ha);
_.r(Ha,"yt-live-chat-message-input-renderer",function(){if(ndZ===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;WXr===void 0&&(WXr=document.createElement("template"));var b=WXr;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ndZ=z}z=ndZ;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var XR7;var q7T;var yQ=function(){var z=_.q.apply(this,arguments)||this;z.systemIcons=_.C("kevlar_system_icons");z.firedOnClickCommand=!1;z.inReplyPanel=!1;return z};
_.m(yQ,_.q);
yQ.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"}}}};
yQ.prototype.onButtonToggle=function(z){z.target.disabled||this.ytPickerBehavior.togglePicker_(z.detail.targetId)};
yQ.prototype.onClick=function(){var z=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Gb(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return z.firedOnClickCommand=!1},5E3))};
_.vP.Object.defineProperties(yQ.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:(l=z.panels)==null?void 0:l.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
yQ.prototype.onButtonToggle=yQ.prototype.onButtonToggle;_.e([_.t(BsD.YtPickerBehavior),_.w("design:type",Object)],yQ.prototype,"ytPickerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yQ.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],yQ.prototype,"systemIcons",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Object)],yQ.prototype,"firedOnClickCommand",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],yQ.prototype,"inReplyPanel",void 0);_.e([_.B("data.pickers"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],yQ.prototype,"hasProductPickerPanelViewModel",null);
_.e([_.tP("yt-live-chat-icon-toggle-button-renderer-toggle"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],yQ.prototype,"onButtonToggle",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],yQ);
_.r(yQ,"yt-live-chat-restricted-participation-renderer",function(){if(q7T===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;XR7===void 0&&(XR7=document.createElement("template"));var b=XR7;I.call(l,b.content.cloneNode(!0),z.content.firstChild);q7T=z}z=q7T;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var fW=function(){var z=_.q.apply(this,arguments)||this;z.genericErrorMessage=_.lc("Error, try again.");z.inReplyPanel=!1;z.hideBorder=!1;return z};
_.m(fW,_.q);fW.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}}}}}};
_.vP.Object.defineProperties(fW,{template:{configurable:!0,enumerable:!0,get:function(){return rtA()}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fW.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],fW.prototype,"genericErrorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],fW.prototype,"inReplyPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],fW.prototype,"hideBorder",void 0);
_.e([_.Wy({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],fW);_.r(fW,"yt-live-chat-engagement-panel-input-renderer",function(){return rtA()},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var i7u,FHv;i7u=_.kU(115994);FHv=_.kU(115993);_.QxZ=function(z,l,I){var b=this;var v=I.dragDownAction;this.layer=0;this.JSC$22570_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.JSC$22570_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var M=_.iY();_.Pf(M,i7u,this.layer);_.Pf(M,FHv,this.layer);this.dragDownAction=function(){v();_.JN(M,{visualElement:b.fullscreen?i7u:FHv})};
this.gesture=new _.P$(z,l,this.JSC$22570_watchConfig,"pandown");this.attach()};
_.QxZ.prototype.attach=function(){this.gesture.attach()};
_.QxZ.prototype.detach=function(){this.gesture.detach()};
_.QxZ.prototype.update=function(z){this.fullscreen=z;this.gesture.config=z?this.JSC$22570_watchFullScreenConfig:this.JSC$22570_watchConfig};var Y7Z={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(z){if(z&&z.length==1&&Array.isArray(z[0].loggingUrls)){z=_.h7.unsafeClone(z[0]);var l=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.Hu();z.loggingUrls.forEach(function(b){if(b.baseUrl){var v=b.baseUrl;var M=l;M=M===void 0?{}:M;v=I.getOptions().includes("replaceUrlMacros")?_.ngA(I,"replaceUrlMacros",{url:v,additionalMapping:M}):v;b.baseUrl=v}},this);
z=[z]}return _.uJ(this.hostElement,z)},
getAdModuleClient_:function(){var z=_.GS(this);return z?(z=z.getPlayer())?new _.I6(z):null:null}}]};var TsD;var CW=function(){var z=_.q.apply(this,arguments)||this;z.isCollapsed=!1;z.modernPanels=_.C("kevlar_watch_modern_panels");z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return z};
_.m(CW,_.q);_.p=CW.prototype;_.p.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.onDonateTap=function(){var z=this.get("data.donateButton.buttonRenderer.command");if(z){var l=_.sU(),I=this.get("data.donateButton.buttonRenderer.trackingParams");l&&I&&_.JH(l,_.ch(I));this.ytOpenPopupBehavior.openPopup(z)}};
_.p.onShowMore=function(){this.isCollapsed=!1;var z=_.sU(),l=this.get("data.expandButton.buttonRenderer.trackingParams");z&&l&&_.JH(z,_.ch(l))};
_.p.onShowLess=function(){this.isCollapsed=!0};
_.p.dataChanged=function(){_.R8(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.handleUpdate=function(z){if(z=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",z))this.set("data.startLabel",z.startLabel),this.set("data.endLabel",z.endLabel),this.set("data.progress",z.progress),this.set("data.amountRaisedLabel",z.amountRaisedLabel),this.dataChanged()};
_.p.handleOpenPopupAction=function(z){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",z)&&_.Gb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.p.computeHeaderBackgroundUrl=function(z,l){if(z)return l?z.headerBackgroundDarkUrl:z.headerBackgroundUrl};
_.p.isProgressBarVisible=function(z){return!(!z||z.progress===void 0)};
_.p.headerBackgroundClass=function(){return _.sZ("HTML_DIR")==="rtl"?"flip":""};
CW.prototype.dataChanged=CW.prototype.dataChanged;_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],CW.prototype,"ytOpenPopupBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],CW.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],CW.prototype,"isCollapsed",void 0);_.e([_.X({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.w("design:type",String)],CW.prototype,"headerBackgroundUrl",void 0);_.e([_.X(),_.w("design:type",Boolean)],CW.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],CW.prototype,"modernPanels",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CW.prototype,"dataChanged",null);_.e([_.S({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],CW);
_.r(CW,"ytd-donation-shelf-renderer",function(){if(TsD!==void 0)return TsD;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return TsD=z},{mode:1});var c70;var S7R=function(){return _.q.apply(this,arguments)||this};
_.m(S7R,_.q);_.e([_.X(),_.w("design:type",Object)],S7R.prototype,"data",void 0);_.e([_.S({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],S7R);
_.r(S7R,"ytd-donation-unavailable-renderer",function(){if(c70!==void 0)return c70;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return c70=z},{mode:1});var dj0;var kt=function(){return _.q.apply(this,arguments)||this};
_.m(kt,_.q);kt.prototype.computeIconType=function(z){return z?"yt-icons:"+z.toLowerCase():null};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kt.prototype,"data",void 0);_.e([_.S({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],kt);
_.r(kt,"ytd-limited-state-message-renderer",function(){if(dj0!==void 0)return dj0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return dj0=z},{mode:1});var oqa;var RM=function(){return _.q.apply(this,arguments)||this};
_.m(RM,_.q);RM.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
RM.prototype.onTap=function(z){var l=this.data&&this.data.endpoint;l&&!_.DX(_.MX(z),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.gC(this.hostElement,"yt-navigate",{endpoint:l})};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],RM.prototype,"data",void 0);_.e([_.S({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],RM);
_.r(RM,"ytd-autotagging-metadata-renderer",function(){if(oqa!==void 0)return oqa;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return oqa=z},{mode:1});var PlT;var mc=function(){return _.q.apply(this,arguments)||this};
_.m(mc,_.q);mc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mc.prototype,"data",void 0);_.e([_.S({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],mc);
_.r(mc,"ytd-autotagging-metadata-row-renderer",function(){if(PlT!==void 0)return PlT;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PlT=z},{mode:1});var hxv;var sx0;var KW=function(){var z=_.q.apply(this,arguments)||this;z.engagementPanelContent=!1;return z};
_.m(KW,_.q);KW.prototype.computeHasDividerLine=function(z,l){return z&&!l};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],KW.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.w("design:type",Boolean)],KW.prototype,"hasDividerLine",void 0);_.e([_.X(),_.w("design:type",Object)],KW.prototype,"engagementPanelContent",void 0);
_.e([_.S({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],KW);
_.r(KW,"ytd-metadata-row-header-renderer",function(){if(sx0!==void 0)return sx0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sx0=z},{mode:1});var r7r;var tI=function(){return _.q.apply(this,arguments)||this};
_.m(tI,_.q);tI.prototype.computeHasDividerLine=function(z){return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],tI.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.w("design:type",Boolean)],tI.prototype,"hasDividerLine",void 0);_.e([_.S({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],tI);
_.r(tI,"ytd-metadata-row-renderer",function(){if(r7r!==void 0)return r7r;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return r7r=z},{mode:1});var $jQ;var ex8=function(){return _.q.apply(this,arguments)||this};
_.m(ex8,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ex8.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ex8.prototype,"data",void 0);_.e([_.S({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],ex8);
_.r(ex8,"ytd-metadata-with-image-row-renderer",function(){if($jQ!==void 0)return $jQ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $jQ=z},{mode:1});var wRZ;var Ba=function(){var z=_.q.apply(this,arguments)||this;z.rounded=!0;z.fixie=!1;z.fullWidth=!1;return z};
_.m(Ba,_.q);_.p=Ba.prototype;_.p.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onDataChanged=function(){var z=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(l){z.onEndpointLinkKeyPress(l)}))};
_.p.onEndpointLinkKeyPress=function(z){z.target===this.endpointLink&&z.keyCode===13&&_.gC(this.hostElement,"click")};
_.p.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var z;if((z=this.data)==null?0:z.endpoint)_.ZE(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.p.onYtNavigate=function(z){this.endpointHref||(z.stopPropagation(),z.preventDefault())};
_.p.onInformationButtonContainerClick=function(z){z.target.id!=="information-button-container"&&(z.stopPropagation(),z.preventDefault())};
_.p.computeStyle=function(z){return z};
_.p.computeIsThumbnailStyle=function(z){return z==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.p.computeThumbnailWidth=function(z){switch(z){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}};
_.p.computeThumbnailObjectFit=function(z){switch(z){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.vP.Object.defineProperties(Ba.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?0:z.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Ba.prototype.onYtNavigate=Ba.prototype.onYtNavigate;Ba.prototype.onClick=Ba.prototype.onClick;Ba.prototype.onDataChanged=Ba.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Ba.prototype,"componentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Ba.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],Ba.prototype,"componentStyle",void 0);_.e([_.X({computed:"computeIsThumbnailStyle(data.style)"}),_.w("design:type",Boolean)],Ba.prototype,"isThumbnailStyle",void 0);_.e([_.X({computed:"computeThumbnailObjectFit(data.style)"}),_.w("design:type",String)],Ba.prototype,"thumbnailObjectFit",void 0);
_.e([_.X({computed:"computeThumbnailWidth(data.style)"}),_.w("design:type",Number)],Ba.prototype,"thumbnailWidth",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ba.prototype,"rounded",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ba.prototype,"fixie",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ba.prototype,"fullWidth",void 0);_.e([_.qX("#endpoint-link"),_.w("design:type",HTMLAnchorElement)],Ba.prototype,"endpointLink",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ba.prototype,"onDataChanged",null);_.e([_.B("data.endpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ba.prototype,"endpointHref",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Ba.prototype,"onClick",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Ba.prototype,"onYtNavigate",null);_.e([_.S({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Ba);
_.r(Ba,"ytd-rich-metadata-renderer",function(){if(wRZ!==void 0)return wRZ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return wRZ=z},{mode:_.yP("kevlar_poly_si_batch_j075")?1:2});var A78;var Xd=function(){var z=_.q.apply(this,arguments)||this;z.fixie=!1;z.fullWidth=!1;return z};
_.m(Xd,_.q);Xd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Xd.prototype.computeHasDividerLine=function(z){return z};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xd.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.w("design:type",Boolean)],Xd.prototype,"hasDividerLine",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Xd.prototype,"fixie",void 0);_.e([_.X(),_.w("design:type",Object)],Xd.prototype,"fullWidth",void 0);
_.e([_.S({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Xd);
_.r(Xd,"ytd-rich-metadata-row-renderer",function(){if(A78!==void 0)return A78;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return A78=z},{mode:1});var q6=function(){var z=_.q.apply(this,arguments)||this;z.engagementPanelContent=!1;z.fixie=!1;z.fullWidth=!1;return z};
_.m(q6,_.q);
q6.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"}}}};
q6.prototype.computeCollapsibleItems=function(z,l,I){return z===void 0||l===void 0||I===void 0||I?[]:z.slice(l)};
q6.prototype.computeAlwaysShownItems=function(z,l){return z&&z.length?z.slice(0,l):[]};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],q6.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],q6.prototype,"collapsed",void 0);
_.e([_.X({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.w("design:type",Array)],q6.prototype,"alwaysShownItems",void 0);_.e([_.X({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.w("design:type",Array)],q6.prototype,"collapsibleItems",void 0);_.e([_.X(),_.w("design:type",Object)],q6.prototype,"engagementPanelContent",void 0);_.e([_.X(),_.w("design:type",Object)],q6.prototype,"fixie",void 0);
_.e([_.X(),_.w("design:type",Object)],q6.prototype,"fullWidth",void 0);_.e([_.S({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],q6);
_.r(q6,"ytd-metadata-row-container-renderer",function(){if(hxv!==void 0)return hxv;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return hxv=z},{mode:1});var WH7;var Fd=function(){var z=_.q.apply(this,arguments)||this;z.currentPageUrl="";z.baseUrl="";z.isHiddenByUser=null;z.hidden=!1;z.showAboveScrim=!1;z.watchNextGrid=_.C("kevlar_watch_grid");z.modernButtons=_.C("web_modern_buttons");z.roundedContainer=!0;z.noBorder=!1;z.roundBackground=!_.C("live_chat_round_background_killswitch");z.overflowHideChat=_.C("live_chat_overflow_hide_chat");z.forceDarkTheme=!1;z.theaterWatchWhile=!1;z.isListeningForPlayerProgress=!1;z.JSC$22606_playerEvents=new Map;z.isFrameReady=
!1;z.player=null;z.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 z};
_.m(Fd,_.q);_.p=Fd.prototype;_.p.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.EK(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.p.created=function(){var z=this;this.handleIframeEventListener=function(l){z.handleIframeEvent(l)};
this.handleKeyboardEventListener=function(l){z.handleKeyboardEvent(l)};
this.JSC$22606_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22606_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22606_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22606_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22606_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.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()};
_.p.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};
_.p.computeBaseUrl=function(z){var l="/live_chat";this.isChatReplay()&&(l="/live_chat_replay");return _.Cm(_.fm(_.y4(_.UA(z),l),null),"").toString()};
_.p.dataChanged=function(){_.C("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.p.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var z=this.url;if(this.isChatReplay()&&this.player){var l=Math.floor(this.player.getProgressState().current*1E3);z=_.V9(_.UA(z),"playerOffsetMs",l.toString()).toString()}l=this.chatframe;try{var I=z==="about:blank"?_.dpu:_.eA(z),b=l.contentDocument.location,v=_.WQ(I);v!==void 0&&b.replace(v)}catch(M){l.src=z}}};
_.p.collapsedChanged=function(){_.gC(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.p.handleIframeEvent=function(z){if(z&&this.baseUrl.startsWith(z.origin)&&z.source===this.chatframe.contentWindow&&_.Lu(z.data))if(z.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(z);else if(z.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(z.data["yt-show-feedback-dialog"]){var l=_.pG().resolve(_.MB(_.v5K));if(l){var I=z.ports,b;I&&I.length&&(b=function(){I[0].postMessage({})});
z=z.data["yt-show-feedback-dialog"];l.showFeedbackDialog(z.customProductData,z.feedbackContent,b,z.bucket)}}else if(z.data["yt-show-survey"])_.gC(this.hostElement,"yt-show-survey",z.data["yt-show-survey"]);else if(z.data["yt-purchase-membership"])_.pG().resolve(_.DQ).resolveCommand(z.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(z.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(z.data["yt-tunnel-out-live-service-request"]);else if(z.data["yt-user-activity"])_.MA();
else if(z.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(z.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(z.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(z.data["yt-open-popup"]);else if(z.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(z.data["yt-log-flow-logging-event-command"]);else if(z.data["yt-hide-live-chat"])this.onShowHideChat();else z.data["yt-report-moderation-state-log"]&&
this.player&&(l={cpn:this.player.getVideoData().cpn},_.cW("liveChatBeingModerated",l))};
_.p.attachLiveChatResponseVeTrackingParams=function(z){z=_.ch(z);var l=_.sU(),I=_.W8("liveChatRenderer.trackingParams",this.data);l&&I&&_.LM(l,_.ch(I),z)};
_.p.handleBuyflowMessages=function(z){var l=z.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=z.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,b=z.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.jOG(_.pI(_.vy),l.replace(/-/g,"+").replace(/_/g,"/"),function(v){z.ports[0].postMessage({success:!0,buyFlowResponse:v})},void 0,function(v){z.ports[0].postMessage({success:!1,
error:v&&v.message||"Buyflow rejected without error."})},_.Bu().get("hl"),void 0,function(){z.ports[0].postMessage({closed:!0})},I,b)};
_.p.setupPlayerProgressRelay=function(){var z=this;if(!this.isListeningForPlayerProgress){var l=_.Nv();l!=null&&l.getPlayerPromise&&(l.getPlayerPromise().then(function(I){z.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.p.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.p.playerApiReady=function(z){this.setPlayer(z)};
_.p.playerProgressHandler=function(){if(this.player){var z=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":z.current})}};
_.p.playerAdStartHandler=function(z){this.postToContentWindow({"yt-player-ad-start":z})};
_.p.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.p.playerStateChangeHandler=function(z){this.postToContentWindow({"yt-player-state-change":z})};
_.p.setPlayer=function(z){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22606_playerEvents);z&&(this.player=z,this.ytPlayerListenerBehavior.listenToPlayerEvents(z,this.JSC$22606_playerEvents),_.gC(this.hostElement,"player-api-ready"))};
_.p.liveChatPageUrl=function(z,l,I,b){return!I||l?"about:blank":I.liveChatRenderer?(l=_.UA(this.currentPageUrl).JSC$10032_queryData_,mZT(l),z=_.UA(z),l.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.Sb()==="USER_INTERFACE_THEME_DARK",(b||I)&&l.add("dark_theme","true"),_.fm(z,l),b=_.UA(z.toString()),I=b.JSC$10032_queryData_,"SESSION_INDEX"in _.P8&&(I.add("authuser",_.sZ("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.P8&&I.add("pageId",_.sZ("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.P8&&I.add("sdc",_.sZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),b.toString()):""};
_.p.isCollapsed=function(z,l){return l!==null?l:this.isChatReplay()||z&&z.conversationBarRenderer&&z.conversationBarRenderer.availabilityMessage?!0:z?z.liveChatRenderer?z.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.C("live_chat_hide_premiere_replay_message")||z.conversationBarRenderer&&z.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.p.isHidden=function(z,l,I){var b=l&&l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage,v=l&&l.liveChatRenderer&&l.liveChatRenderer.showHideButton,M=l&&l.liveChatRenderer&&l.liveChatRenderer.showButton;return I&&z&&!b&&!M||!I&&z&&!b&&!v?!0:l&&l.liveChatRenderer&&l.liveChatRenderer.initialDisplayState?l.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.p.computeButtonOverride=function(z,l){if(z&&l)return{type:"outline"}};
_.p.setCollapsedState=function(z){_.k(z,_.ljA)&&(this.isHiddenByUser=!!_.k(z,_.ljA).collapsed,!this.isHiddenByUser&&_.C("enable_teaser_framework_web_client")&&_.Gb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.p.forwardReduxActionToIframe=function(z){this.postToContentWindow({"yt-live-chat-forward-redux-action":z})};
_.p.onLoopRangeChange=function(z){this.showAboveScrim=!(z==null||!z.postId)};
_.p.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.p.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.p.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.p.sendDarkThemePostMessage=function(z){this.postToContentWindow({"yt-live-chat-set-dark-theme":z})};
_.p.onLiveChatBuyFlowCallback=function(z){this.postToContentWindow({"yt-live-chat-buy-flow-callback":z})};
_.p.handleKeyboardEvent=function(z){(0,_.h7.containsValue)(RPT,z.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:z.type,keyCode:z.keyCode}})};
_.p.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.p.postToContentWindow=function(z){if(this.isFrameReady)try{var l=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(z,l):_.PW(new _.qB("Tried posting a message to an iframe with no content window",z))}catch(b){_.dE(b)}};
_.p.shouldHideChatFrame=function(z){return z&&_.C("hide_live_chat_button_when_collapsed")};
_.vP.Object.defineProperties(Fd.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.C("live_chat_overflow_hide_chat")||_.C("web_watch_chat_hide_button_killswitch"))return _.C("live_chat_overflow_hide_chat");var z,l,I,b;return!!((z=this.data)==null?0:(l=z.liveChatRenderer)==null?0:(I=l.header)==null?0:(b=I.liveChatHeaderRenderer)==null?0:b.collapseButton)}}});
Fd.prototype.collapsedChanged=Fd.prototype.collapsedChanged;Fd.prototype.urlChanged=Fd.prototype.urlChanged;Fd.prototype.dataChanged=Fd.prototype.dataChanged;Fd.prototype.onShowHideChat=Fd.prototype.onShowHideChat;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Fd.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Fd.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],Fd.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],Fd.prototype,"ytOpenPopupBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Fd.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Fd.prototype,"currentPageUrl",void 0);
_.e([_.X({computed:"computeBaseUrl(currentPageUrl,data)"}),_.w("design:type",Object)],Fd.prototype,"baseUrl",void 0);_.e([_.X({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.w("design:type",String)],Fd.prototype,"url",void 0);_.e([_.X(),_.w("design:type",Object)],Fd.prototype,"isHiddenByUser",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.w("design:type",Object)],Fd.prototype,"hidden",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.w("design:type",Boolean)],Fd.prototype,"collapsed",void 0);_.e([_.X({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.w("design:type",Boolean)],Fd.prototype,"hideChatFrame",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fd.prototype,"showAboveScrim",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fd.prototype,"watchNextGrid",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Fd.prototype,"modernButtons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fd.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fd.prototype,"noBorder",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Fd.prototype,"roundBackground",void 0);
_.e([_.X({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.w("design:type",Object)],Fd.prototype,"toggleButtonOverride",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Fd.prototype,"overflowHideChat",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fd.prototype,"forceDarkTheme",void 0);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Fd.prototype,"enableShowWithoutHideChatButton",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fd.prototype,"theaterWatchWhile",void 0);_.e([_.qX("#chatframe"),_.w("design:type",HTMLIFrameElement)],Fd.prototype,"chatframe",void 0);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fd.prototype,"onShowHideChat",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fd.prototype,"dataChanged",null);
_.e([_.By("url"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fd.prototype,"urlChanged",null);_.e([_.By("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fd.prototype,"collapsedChanged",null);_.e([_.S({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Fd);
_.r(Fd,"ytd-live-chat-frame",function(){if(WH7!==void 0)return WH7;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return WH7=z},{mode:1});var nqZ;var QQ=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_modern_buttons");z.buttonOverrides={style:"call-to-action",type:"filled"};return z};
_.m(QQ,_.q);QQ.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=_.Ur(this.data.backgroundColor)))};
QQ.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var z=this.getFormattedStringLoggingDirectives(this.data.headline);z&&this.rendererBehavior.logExplicitClick(z)}};
QQ.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var z=this.getFormattedStringLoggingDirectives(this.data.description);z&&this.rendererBehavior.logExplicitClick(z)}};
QQ.prototype.getFormattedStringLoggingDirectives=function(z){return z&&z.runs&&z.runs.length>0&&z.runs[0]&&z.runs[0].loggingDirectives?z.runs[0].loggingDirectives:null};
QQ.prototype.dataChanged=QQ.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],QQ.prototype,"rendererBehavior",void 0);_.e([_.t(Y7Z.YtMacroReplacementBehavior),_.w("design:type",Object)],QQ.prototype,"macroReplacementBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],QQ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],QQ.prototype,"navigationEndpoint",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],QQ.prototype,"enableColors",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QQ.prototype,"modern",void 0);_.e([_.X(),_.w("design:type",Object)],QQ.prototype,"buttonOverrides",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],QQ.prototype,"dataChanged",null);_.e([_.S({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],QQ);
_.r(QQ,"ytd-action-basic-immersive-content-renderer",function(){if(nqZ!==void 0)return nqZ;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return nqZ=z},{mode:1});var LH0;var Ujv;var Yt=function(){return _.q.apply(this,arguments)||this};
_.m(Yt,_.q);Yt.prototype.dataChanged=function(){var z;((z=this.data)==null?void 0:z.backgroundColor)!==void 0&&_.R8(this.hostElement,{"--bgu-color":_.Ur(this.data.backgroundColor)})};
Yt.prototype.onImageTileClick=function(){var z;((z=this.data)==null?0:z.navigationEndpoint)&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var l;((l=this.data)==null?0:l.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.vP.Object.defineProperties(Yt.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var z;if(((z=this.data)==null?void 0:z.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 z;return((z=this.data)==null?void 0:z.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var z,l,I;if(((z=this.data)==null?void 0:(l=z.detailsLine)==null?void 0:l.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.detailsLine.texts.map(function(v){return v.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var z,l,I;if(((z=this.data)==null?void 0:(l=z.optionalDetailsLine)==null?void 0:l.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.optionalDetailsLine.texts.map(function(v){return v.text}).join("")}return null}}});
Yt.prototype.dataChanged=Yt.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Yt.prototype,"rendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Yt.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yt.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.backgroundColor"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Yt.prototype,"hasBackgroundColor",null);
_.e([_.B("data.objectFit"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yt.prototype,"getObjectFit",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.tileRenderingStyle"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Yt.prototype,"hasTileMetadata",null);_.e([_.B("data.detailsLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yt.prototype,"getSecondaryDetails",null);
_.e([_.B("data.optionalDetailsLine"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yt.prototype,"getOptionalDetails",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yt.prototype,"dataChanged",null);_.e([_.S({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Yt);
_.r(Yt,"ytd-image-tile-renderer",function(){if(Ujv!==void 0)return Ujv;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ujv=z},{mode:1});var aCR;var TQ=function(){return _.q.apply(this,arguments)||this};
_.m(TQ,_.q);TQ.prototype.getOpenLinkIcon=function(){return _.C("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
TQ.prototype.onSitelinkTap=function(){_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.C("kevlar_command_handler_migration_killswitch"))_.ZE(this.hostElement,this.data.clickCommands,this.hostElement);else for(var z=_.D(this.data.clickCommands),l=z.next();!l.done;l=z.next())this.ytComponentBehavior.resolveCommand(l.value)};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],TQ.prototype,"rendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TQ.prototype,"data",void 0);_.e([_.S({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],TQ);
_.r(TQ,"ytd-sitelink-renderer",function(){if(aCR!==void 0)return aCR;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return aCR=z},{mode:1});var ca=function(){var z=_.q.apply(this,arguments)||this;z.paddingFix=_.C("enable_ads_web_ep_buenos_aires_and_padding_fix");return z};
_.m(ca,_.q);ca.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"}}}};
ca.prototype.dataChanged=function(){var z=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(l){l.clickTrackingParams&&delete l.clickTrackingParams;z.ytMacroReplacementBehavior.sendServiceRequestAction([l])})};
ca.prototype.shouldHideFooter=function(z){return!(z&&_.C("use_ads_engagement_panel_desktop_footer_cta"))};
_.vP.Object.defineProperties(ca.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.imageTileRenderers)===void 0||((l=this.data)==null?void 0:l.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var b;return(b=_.k(I,qvu))==null?void 0:b.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.imageTileRenderers)===void 0||((l=this.data)==null?void 0:l.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var b;return((b=_.k(I,qvu))==null?void 0:b.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
ca.prototype.dataChanged=ca.prototype.dataChanged;_.e([_.t(Y7Z.YtMacroReplacementBehavior),_.w("design:type",Object)],ca.prototype,"ytMacroReplacementBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ca.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ca.prototype,"paddingFix",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.imageTileRenderers"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ca.prototype,"removeBorderFromImageTiles",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.imageTileRenderers"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ca.prototype,"useFooteredMetadataRenderingStyle",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ca.prototype,"dataChanged",null);_.e([_.S({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],ca);
_.r(ca,"ytd-action-engagement-panel-content-renderer",function(){if(LH0!==void 0)return LH0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return LH0=z},{mode:1});var V60;var jx7=_.P(function(z){var l=z.data;var I=z.customCommandResolver;return _.N("ad-grid-card-image-full-metadata-view-model",{class:function(){var b;return((b=l().interaction)==null?0:b.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ}),_.a0(function(){return l().interaction},I)),
"aria-label":function(){var b,v;return(b=l().interaction)==null?void 0:(v=b.accessibility)==null?void 0:v.label}},_.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(b){return _.N(_.AU,{data:b.data,
customCommandResolver:I})}})),_.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.N(_.E,{cond:function(){return l().headline},
then:function(b){return _.N(_.Rf,{text:b,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.N(_.E,{cond:function(){return l().detailsLine},
then:function(b){return _.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.N(_.TS,{data:b},{adDetailsLineViewModel:function(v){return _.N(_.Pm,{data:v.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.N(_.E,{cond:function(){return l().secondaryDetailsLine},
then:function(b){return _.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.N(_.TS,{data:b},{adDetailsLineViewModel:function(v){return _.N(_.Pm,{data:v.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ck");var J7Z=_.P(function(z){var l=z.data;var I=z.customCommandResolver;return _.N("ad-grid-card-image-view-model",{class:function(){var b;return((b=l().interaction)==null?0:b.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ}),_.a0(function(){return l().interaction},I)),
"aria-label":function(){var b,v;return(b=l().interaction)==null?void 0:(v=b.accessibility)==null?void 0:v.label}},_.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(b){return _.N(_.AU,{data:b.data,
customCommandResolver:I})}}),_.N("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.N(_.TS,{data:function(){return l().adCardBadge}},{adCardBadgeViewModel:_.Cmz})))},"Dk");var z7A=_.P(function(z){var l=z.data;var I=z.customCommandResolver;return _.N("ad-grid-card-text-view-model",{class:function(){var b;return((b=l().interaction)==null?0:b.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ}),_.a0(function(){return l().interaction},I)),
"aria-label":function(){var b,v;return(b=l().interaction)==null?void 0:(v=b.accessibility)==null?void 0:v.label}},_.N("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.N(_.E,{cond:function(){return l().title},
then:function(b){return _.N(_.Rf,{text:b,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.N("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.N(_.qy,{each:function(){var b;
return((b=l())==null?void 0:b.descriptions)||[]},
keyBy:"INDEX"},function(b){return _.N(_.Rf,{text:b,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.N("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.N(_.TS,{data:function(){return l().moreInfoButton}},{adButtonViewModel:function(b){return _.N(_.YQ,{data:b.data,
customCommandResolver:I})}})))},"Ek");var lvv=_.P(function(z){var l=z.data;var I=z.customCommandResolver;var b=z.adGridCardCollectionStyle;return _.N("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(v){var M,x=(M=l().interaction)==null?void 0:M.onFirstVisible;v&&x&&_.ae(x)},
showOption:_.FJ})),style:function(){return"grid-template-columns: repeat("+S8Z(b?b():l().style)+", minmax(0, 1fr));"}},_.N(_.TS,{data:function(){var v;
return(v=l())==null?void 0:v.gridCards}},{adGridCardImageViewModel:function(v){return _.N(J7Z,{data:v.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(v){return _.N(jx7,{data:v.data,customCommandResolver:I})},
adGridCardTextViewModel:function(v){return _.N(z7A,{data:v.data,customCommandResolver:I})}}))},"Fk");_.uO(_.P(function(z){var l=z.data;return _.N("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.xl(_.ps({visibilityCallback:function(I){var b,v=(b=l().interaction)==null?void 0:b.onFirstVisible;I&&v&&_.ae(v)},
showOption:_.FJ}),_.a0(function(){return l().interaction},oSr))},_.N("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.N(_.E,{cond:_.Q9k("(min-width: "+((0,_.fX)()+_.n_)+"px)"),
then:function(){return _.N(_.TS,{data:function(){return l().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.N(lvv,{data:I.data,
customCommandResolver:oSr})}})},
else:function(){return _.N(_.TS,{data:function(){return l().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.N(lvv,{data:I.data,
customCommandResolver:oSr,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.N("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.N(_.TS,{data:function(){return l().adButton}},{adButtonViewModel:function(I){return _.N(_.YQ,{data:I.data,
customCommandResolver:oSr})}})))},"Gk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;return _.N("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.xl(_.ps({visibilityCallback:function(I){var b,v=(b=l().interaction)==null?void 0:b.onFirstVisible;I&&v&&_.ae(v)},
showOption:_.FJ}),_.a0(function(){return l().interaction},PKR))},_.N("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.N(_.TS,{data:function(){if(_.Q9k("(min-width: "+((0,_.fX)()+_.n_)+"px)")())var I=l().adGridCardCollection;
else{I=Object.assign({},_.k(l().adGridCardCollection,iD7));var b;I.gridCards!==void 0&&((b=I.gridCards)==null?void 0:b.length)>1?I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";I={adGridCardCollectionViewModel:I}}return I}},{adGridCardCollectionViewModel:function(I){return _.N(lvv,{data:I.data,
customCommandResolver:PKR})}})),_.N("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.N(_.TS,{data:function(){return l().adButton}},{adButtonViewModel:function(I){return _.N(_.YQ,{data:I.data,
customCommandResolver:PKR})}})))},"Hk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.mB}});var SQ=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return z};
_.m(SQ,_.q);_.p=SQ.prototype;_.p.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"}}}};
_.p.attached=function(){this.getDataFromPlayerAndRender()};
_.p.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.p.getDataFromPlayerAndRender=function(){var z=this,l=_.GS(this.hostElement);l&&l.getPlayerPromise().then(function(I){z.getCachedDataAndListen(I)})};
_.p.getCachedDataAndListen=function(z){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(z,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(z,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=z)};
_.p.resolveCachedActions=function(){var z=_.W8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(z=z&&z())&&!_.h7.isEmpty(z)&&this.sendUpdateEngagementPanelAction(z);(z=(z=_.W8("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&z())&&!_.h7.isEmpty(z)&&this.sendChangeEngagementPanelVisibilityAction(z);(z=(z=_.W8("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&z())&&!_.h7.isEmpty(z)&&this.sendScrollToEngagementPanelCommand(z)};
_.p.sendUpdateEngagementPanelAction=function(z){var l;_.Gb(this.hostElement,"yt-update-engagement-panel-action",[(l=_.h7.get(z,"action"))!=null?l:z])};
_.p.sendChangeEngagementPanelVisibilityAction=function(z){_.Gb(this.hostElement,"yt-change-engagement-panel-visibility-action",[z])};
_.p.sendScrollToEngagementPanelCommand=function(z){_.Gb(this.hostElement,"yt-scroll-to-engagement-panel-command",[z])};
_.p.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.C("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.PW(Error("Mo"))};
SQ.prototype.dataChanged=SQ.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],SQ.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],SQ.prototype,"componentBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],SQ.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],SQ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],SQ.prototype,"player",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SQ.prototype,"dataChanged",null);_.e([_.S({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],SQ);
_.r(SQ,"ytd-ads-engagement-panel-content-renderer",function(){if(V60!==void 0)return V60;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return V60=z},{mode:1});var Ivr;var dR=function(){var z=_.q.apply(this,arguments)||this;z.player=null;z.JSC$22643_playerEvents=new Map;z.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return z};
_.m(dR,_.q);_.p=dR.prototype;_.p.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]]"}}}}}};
_.p.created=function(){this.player=null;this.JSC$22643_playerEvents=new Map;this.JSC$22643_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22643_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22643_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22643_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.attached=function(){var z=this,l=_.GS();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));l&&l.getPlayerPromise().then(function(I){z.setPlayer(I);z.set("isPageLoad",!1)})};
_.p.setPlayer=function(z){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22643_playerEvents);this.set("player",z);z&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(z,this.JSC$22643_playerEvents),z.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.p.onLoopRangeChange=function(z){var l=_.pG().resolve(_.MB(_.OB));if((!l||l.isOnWatch())&&this.hostElement.clientHeight){var I;!z&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.p.onVideoProgress=function(z){var l,I,b=((l=this.player)==null?void 0:(I=l.getPresentingPlayerType)==null?void 0:I.call(l))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b);var v;if(!b&&(v=this.player)!=null&&v.getLoopRange()){I=this.player.getLoopRange();l=I.startTimeMs;I=I.endTimeMs;b=this.player.getProgressState(1).seekableStart;var M;l<b*1E3&&((M=this.data)==null?0:M.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
z=I<z*1E3;var x;((x=this.player)==null?0:x.getLoopRange())&&z&&this.player.seekTo(l/1E3)}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onYtDeleteClipEngagementPanelCommand=function(z){_.k(z,wQ0).command&&this.ytComponentBehavior.resolveCommand(_.k(z,wQ0).command)};
_.vP.Object.defineProperties(dR.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.voteCount)||_.lc("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],dR.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dR.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],dR.prototype,"isAdPlaying",void 0);_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],dR.prototype,"isPageLoad",void 0);_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],dR.prototype,"isDarkTheme",void 0);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dR.prototype,"voteCount",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],dR.prototype,"channelEndpoint",null);_.e([_.B("channelEndpoint"),_.w("design:type",Object),_.w("design:paramtypes",[])],dR.prototype,"channelHref",null);_.e([_.S({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],dR);
_.r(dR,"ytd-clip-attribution-renderer",function(){if(Ivr!==void 0)return Ivr;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Ivr=z},{mode:1});var b08;var oM=function(){var z=_.q.apply(this,arguments)||this;z.player=null;z.JSC$22648_playerEvents=new Map;return z};
_.m(oM,_.q);_.p=oM.prototype;_.p.created=function(){this.player=null;this.JSC$22648_playerEvents=new Map;this.JSC$22648_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22648_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22648_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p.attached=function(){var z=this,l=_.GS();l&&l.getPlayerPromise().then(function(I){z.setPlayer(I);z.set("isPageLoad",!1)})};
_.p.setPlayer=function(z){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22648_playerEvents);this.set("player",z);if(z){this.ytPlayerListenerBehavior.listenToPlayerEvents(z,this.JSC$22648_playerEvents);var l;(z==null?void 0:(l=z.getPresentingPlayerType)==null?void 0:l.call(z))===2&&this.playerAdStartHandler()}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onVideoProgress=function(){var z,l,I=((z=this.player)==null?void 0:(l=z.getPresentingPlayerType)==null?void 0:l.call(z))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],oM.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],oM.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],oM.prototype,"isAdPlaying",void 0);
_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],oM.prototype,"isPageLoad",void 0);_.e([_.S({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],oM);
_.r(oM,"ytd-clip-section-footer-renderer",function(){if(b08!==void 0)return b08;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return b08=z},{mode:1});var vND;var MNZ;var plZ=function(){return _.q.apply(this,arguments)||this};
_.m(plZ,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],plZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],plZ.prototype,"data",void 0);_.e([_.S({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],plZ);
_.r(plZ,"ytd-clip-ad-state-renderer",function(){if(MNZ!==void 0)return MNZ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return MNZ=z},{mode:1});var D4T;var Pa=function(){var z=_.q.apply(this,arguments)||this;z.value="";z.valid=!1;z.userChangedValue=!1;z.disabled=!1;z.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return z};
_.m(Pa,_.q);_.p=Pa.prototype;_.p.detached=function(){this.userChangedValue=!1};
_.p.handleKeyDown=function(z){if(_.Hx)var l=13;else _.d7H&&_.yk?l=13:l=13;z.keyCode===l&&z.preventDefault()};
_.p.handleInput=function(){var z=_.Hy(this.hostElement).querySelector("#title");if(z){var l=(z.value||"").replace(/\r|\n/g," ");this.set("value",l);z.value=l;this.valid=z.validate();this.userChangedValue=!0}};
_.p.handleBlur=function(){this.valid=_.Hy(this.hostElement).querySelector("#title").validate()};
_.p.onValueChanged=function(){_.gC(this.hostElement,"title-changed",{title:this.value})};
_.p.onValidChanged=function(){_.gC(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.p.setInput=function(z,l){var I=_.Hy(this.hostElement).querySelector("#title");I&&(I.value=z,this.handleInput(),l&&(I.invalid=!1,this.valid=!0))};
_.p.onClipCreationDisable=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable=function(){this.set("disabled",!1)};
_.p.onClipCreationVisibilityChange=function(z){var l=this;z.visible?requestAnimationFrame(function(){var I;((I=_.Hy(l.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Pa.prototype.onValidChanged=Pa.prototype.onValidChanged;Pa.prototype.onValueChanged=Pa.prototype.onValueChanged;Pa.prototype.handleBlur=Pa.prototype.handleBlur;Pa.prototype.handleInput=Pa.prototype.handleInput;Pa.prototype.handleKeyDown=Pa.prototype.handleKeyDown;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Pa.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Pa.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Pa.prototype,"value",void 0);_.e([_.X(),_.w("design:type",Object)],Pa.prototype,"valid",void 0);_.e([_.X(),_.w("design:type",Object)],Pa.prototype,"userChangedValue",void 0);_.e([_.X(),_.w("design:type",Object)],Pa.prototype,"disabled",void 0);_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],Pa.prototype,"handleKeyDown",null);
_.e([_.tP("input"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pa.prototype,"handleInput",null);_.e([_.tP("blur"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pa.prototype,"handleBlur",null);_.e([_.By("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pa.prototype,"onValueChanged",null);
_.e([_.By("valid"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pa.prototype,"onValidChanged",null);_.e([_.S({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Pa);
_.r(Pa,"ytd-clip-creation-text-input-renderer",function(){if(D4T!==void 0)return D4T;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return D4T=z},{mode:1});var x4R;var O0T;var gN0;var Gzr;var N1T;var hI=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};z.pendingStoryboardImages_={};z.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];z.tickLabelInterval=30;z.mediumTickInterval=5;z.largeTickInterval=15;z.aboveRulerHeight=32;z.rulerHeight=50;z.smallTickHeight=4;z.mediumTickHeight=8;z.largeTickHeight=16;z.mediaListeners_=
{};return z};
_.m(hI,_.q);_.p=hI.prototype;_.p.attached=function(){var z=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(l){l=_.D(["screen and (min-resolution: "+l+")","screen and (max-resolution: "+l+")"]);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=window.matchMedia(I);b&&(z.mediaListeners_[I]=z.updatePixelRatio_.bind(z),b.addEventListener?b.addEventListener("change",z.mediaListeners_[I]):b.addListener?b.addListener(z.mediaListeners_[I]):delete z.mediaListeners_[I])}})};
_.p.detached=function(){this.setPlayer(null);for(var z=_.D(Object.keys(this.mediaListeners_)),l=z.next();!l.done;l=z.next()){var I=l.value;l=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",l):I.removeListener&&I.removeListener(l))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.p.onVisibilityChangedAction_=function(z){var l=this;z.visible&&!this.player_&&(z=_.GS())&&z.getPlayerPromise().then(function(I){l.setPlayer(I)})};
_.p.setPlayer=function(z){z&&this.set("player_",z)};
_.p.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.p.setUpCanvas_=function(){var z=this.rulerWidth,l=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&l!==0){I=this.aboveRulerHeight+this.rulerHeight;var b=_.Hy(this.hostElement).querySelector("#ticks");b.width=z*l;b.height=I*l;b.style.width=z+"px";b.style.height=I+"px";b.getContext("2d").scale(l,l);this.set("canvasReady_",!0)}};
_.p.drawRuler_=function(z,l,I,b,v,M,x,g,G,u,Z,H){z&&I&&l&&(z=_.Hy(this.hostElement).querySelector("#ticks"),l=z.getContext("2d"),l.clearRect(0,0,z.width,z.height),l.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),l.lineWidth=2,l.beginPath(),l.moveTo(0,this.aboveRulerHeight),l.lineTo(z.width,this.aboveRulerHeight),l.moveTo(0,z.height),l.lineTo(z.width,z.height),l.stroke(),this.drawRulerTicks_(z,M,v,b),this.drawStoryboardImages_(z,I,M,v,b),l.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
l.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(x-M,b,!1),this.rulerHeight),I=this.timeToPixels_(g-M,b,!1),l.fillRect(I,this.aboveRulerHeight,z.width-I,this.rulerHeight),this.drawSpeedLines_(z,M,H))};
_.p.drawRulerTicks_=function(z,l,I,b){var v=z.getContext("2d");v.save();v.lineWidth=1;for(var M=Math.floor(Math.max(0,l-this.tickLabelInterval));M<l+I;M++){v.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var x=(M-l)*b;v.beginPath();v.moveTo(x,z.height);var g=this.smallTickHeight;M%this.largeTickInterval===0?g=this.largeTickHeight:M%this.mediumTickInterval===0&&(g=this.mediumTickHeight);v.lineTo(x,z.height-g);v.stroke();M%this.tickLabelInterval===0&&(v.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),v.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),v.fillText($c(M),x+4,12),v.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),v.moveTo(x,0),v.lineTo(x,this.aboveRulerHeight),v.stroke())}v.restore()};
_.p.percentToHex_=function(z){z=Math.round(z*255).toString(16);z.length<2&&(z="0"+z);return z};
_.p.drawSpeedLines_=function(z,l,I){var b=z.getContext("2d");b.save();var v=Math.min(25,Math.abs(I)-15)/25,M=z.width*.3*v,x=z.width*-.3,g=z.width*1.3,G=this.aboveRulerHeight;z=z.height;var u=Math.round(4*v),Z=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");Z.length<7&&(Z="#"+Z.substring(1,4).repeat(2));var H=this.percentToHex_(.5+v/2);H=Z+H;Z+="00";if(v>0)for(v=0;v<u;v++){var y=x+Math.random()*(g-x),f=G+Math.random()*(z-G),R=M+l%M,F=b.createLinearGradient(y,f,y+R,f);
I<0?(F.addColorStop(0,H),F.addColorStop(.4,H),F.addColorStop(.9,Z)):(F.addColorStop(.1,Z),F.addColorStop(.6,H),F.addColorStop(1,H));b.strokeStyle=F;b.lineWidth=1;b.beginPath();b.moveTo(y,f);b.lineTo(y+R,f);b.stroke()}b.restore()};
_.p.getStoryboardForTime_=function(z,l,I){I===void 0&&(I=l.getNumberOfStoryboardLevels()-1);z=l.getStoryboardFrameIndex(z,I);return l.getStoryboardFrame(z,I)};
_.p.drawStoryboardImages_=function(z,l,I,b,v){if(!this.disabled){z=z.getContext("2d");var M=this.getStoryboardForTime_(0,l);if(M){var x=M.width/M.columns;M=M.height/M.rows;var g=x/M,G=this.rulerHeight*g;G=this.tickLabelInterval*(g<this.tickLabelInterval*v/this.rulerHeight?1/Math.floor(this.tickLabelInterval*v/G):Math.round(G/(this.tickLabelInterval*v)));var u=G*v,Z=this.rulerHeight,H=u/this.rulerHeight,y=Math.floor(Math.max(0,I-G));for(y-=y%G;y<I+b;y+=G){var f=this.getStoryboardForTime_(y,l),R=this.getPreloadedStoryboard_(f.url);
if(R){var F=(y-I)*v,Y=this.aboveRulerHeight,c=f.column*x,d=f.row*M;if(g<H){var V=Z/(u/g);f=x;V*=M;d+=(M-V)/2}else f=u/(Z*g)*x,V=M,c+=(x-f)/2;z.drawImage(R,c,d,f,V,F,Y,u,Z)}else this.fetchStoryboardImage_(f)}}}};
_.p.getPreloadedStoryboard_=function(z){return this.storyboardImages_.find(function(l){if(l.src==z)return!0;var I=l.src.indexOf(z);return I!=-1&&I==l.src.length-z.length})};
_.p.fetchStoryboardImage_=function(z){var l=this,I=this.getPreloadedStoryboard_(z.url),b=this.pendingStoryboardImages_[z.url];I||b!==void 0||(I=new Promise(function(v){var M=new Image(z.width,z.height);M.src=z.url;M.onload=function(){v(M)};
M.onerror=function(){v(null)}}),this.pendingStoryboardImages_[z.url]=I,I.then(function(v){v&&l.push("storyboardImages_",v);
return v}).finally(function(){delete l.pendingStoryboardImages_[z.url]}))};
_.p.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.p.timeToPixels_=function(z,l,I){z*=l;return I===void 0||I?z+"px":z};
_.p.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
hI.prototype.drawRuler_=hI.prototype.drawRuler_;hI.prototype.setUpCanvas_=hI.prototype.setUpCanvas_;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],hI.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],hI.prototype,"start",void 0);_.e([_.X({value:30}),_.w("design:type",Number)],hI.prototype,"end",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],hI.prototype,"visible",void 0);_.e([_.X(),_.w("design:type",Object)],hI.prototype,"player_",void 0);_.e([_.X(),_.w("design:type",Number)],hI.prototype,"tickSpacing",void 0);_.e([_.X(),_.w("design:type",Number)],hI.prototype,"windowSizeSec",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],hI.prototype,"rulerWidth",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],hI.prototype,"rulerShift",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],hI.prototype,"canvasReady_",void 0);_.e([_.X({value:function(){return[]}}),
_.w("design:type",Array)],hI.prototype,"storyboardImages_",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],hI.prototype,"disabled",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],hI.prototype,"forceRender_",void 0);_.e([_.X({value:1}),_.w("design:type",Number)],hI.prototype,"devicePixelRatio_",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],hI.prototype,"windowSpeed",void 0);
_.e([_.By("visible","devicePixelRatio_","rulerWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hI.prototype,"setUpCanvas_",null);
_.e([_.By("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.w("design:returntype")],hI.prototype,"drawRuler_",null);_.e([_.Wy({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],hI);
_.r(hI,"yt-clip-creation-scrubber-canvas",function(){if(N1T===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);N1T=z}z=N1T;return z},
{mode:2});var EN8;var u7D;var sO=function(){var z=_.q.apply(this,arguments)||this;z.start=0;z.end=30;z.visible=!1;z.draggingLeft_=!1;z.draggingRight_=!1;z.draggingRuler_=!1;z.draggingWindow_=!1;z.seekableStart=0;z.seekableEnd=0;z.rulerWidth_=0;z.rulerShift_=0;z.windowSlideSpeed=0;z.disabled=!1;z.initialized=!1;z.durationAccessibilityLabel="";z.activeLoopRange_=!1;z.rulerDragMouseStart_=0;z.rulerDragRulerStart_=0;z.rulerDragStartTime_=0;z.rulerDragEndTime_=0;z.dragMouseLastX_=0;z.scrollInterval_=null;z.scrubberVe_=null;z.boundHandlers_=
{};z.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return z};
_.m(sO,_.q);_.p=sO.prototype;
_.p.created=function(){var z=this;this.JSC$22661_playerEvents=new Map;this.JSC$22661_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22661_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22661_playerEvents.set("onStateChange",this.onStateChange_);var l={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(l).forEach(function(I){z.boundHandlers_[I]=l[I].bind(z)})};
_.p.attached=function(){this.activeLoopRange_=!1;_.Hy(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Hy(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.kU(156731)};
_.p.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Hy(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Hy(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.p.onVisibilityChangedAction_=function(z){var l=this;z.visible&&!this.player_&&(z=_.GS())&&z.getPlayerPromise().then(function(I){l.setPlayer(I)})};
_.p.setPlayer=function(z){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22661_playerEvents);z&&(this.set("player_",z),this.ytPlayerListenerBehavior.listenToPlayerEvents(z,this.JSC$22661_playerEvents))};
_.p.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.p.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.p.beginHandleDrag_=function(z){this.disabled||(z.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=z.clientX,z.target===_.Hy(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():z.target===_.Hy(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.p.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.p.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.p.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.p.beginRulerDrag_=function(z){this.disabled||(z.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=z.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.p.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.p.beginWindowScroll_=function(){var z=this;this.scrollInterval_=setInterval(function(){var l=z.windowSlideSpeed;if(l=_.$p8(z.start,z.boundedRulerStartLimit_())?l-.1:_.$p8(z.end,z.boundedRulerEndLimit_())?l+.1:0){var I=z.capRulerOffset_(z.rulerShift_+l);I==z.rulerShift_?l=0:(z.set("rulerShift_",I),_.gC(z.hostElement,"set-fixed-length-range",{start:z.start+l,duration:z.end-z.start}))}z.set("windowSlideSpeed",l)},33)};
_.p.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.p.endDrag_=function(){this.logClick();var z=void 0;this.draggingRight_?z=this.end-1:this.draggingLeft_&&(z=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,z);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))};
_.p.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.p.updateRulerSize_=function(){this.set("rulerWidth_",_.Hy(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.p.handleMouseDrag_=function(z){z.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(z):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(z):this.draggingWindow_&&this.handleWindowDrag_(z))};
_.p.handleRulerDrag_=function(z){z=this.pixelsToTime_(z.clientX-this.rulerDragMouseStart_);z=this.capRulerOffset_(this.rulerDragRulerStart_-z);this.set("rulerShift_",z);var l=this.rulerDragStartTime_-(this.rulerDragRulerStart_-z);_.gC(this.hostElement,"set-fixed-length-range",{start:l,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-z)-l})};
_.p.handleWindowDrag_=function(z){var l=z.clientX-this.dragMouseLastX_;this.dragMouseLastX_=z.clientX;z=this.pixelsToTime_(l);_.gC(this.hostElement,"set-fixed-length-range",{start:this.start+z,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.capRulerOffset_=function(z){var l=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(l,z),I)};
_.p.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.p.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.p.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.p.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.p.handleWindowHandleDrag_=function(z){var l=z.clientX-this.dragMouseLastX_;this.dragMouseLastX_=z.clientX;z=this.pixelsToTime_(l);if(this.draggingLeft_){var I=this.start+z;var b=this.end}else this.draggingRight_&&(I=this.start,b=this.end+z);_.gC(this.hostElement,"set-range",{start:I,end:b,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.onVideoProgress_=function(z){this.disabled||(z=this.timeToPixels_(z-this.rulerShift_,this.tickSpacing_),_.Hy(this.hostElement).querySelector("#playhead").style.transform="translateX("+z+")")};
_.p.onClipCreationDisable_=function(){this.endDrag_()};
_.p.timeToPixels_=function(z,l,I){z*=l;return I===void 0||I?z+"px":z};
_.p.pixelsToTime_=function(z){return z/this.tickSpacing_};
_.p.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.centerRuler_=function(z,l,I){this.set("rulerShift_",this.capRulerOffset_(z+(l-z)/2-I/2))};
_.p.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.p.updateLoopRange_=function(z,l,I,b,v,M,x){z&&(l&&b&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(z.pauseVideo(),z.seekTo(v,!1,void 0,void 0,50)):this.draggingRight_?(z.pauseVideo(),z.seekTo(M-.1,!1,void 0,void 0,50)):(x!==void 0?z.seekTo(x,!0,void 0,void 0,50):(l=z.getCurrentTime(),l<v||l>M?z.seekTo(v,!0,void 0,void 0,50):z.seekTo(l,!0,void 0,void 0,50)),z.playVideo()),z.setLoopRange({startTimeMs:v*1E3,endTimeMs:M*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(z.getCurrentTime())):
this.activeLoopRange_&&(z.setLoopRange(null),this.activeLoopRange_=!1))};
_.p.updateHandles_=function(){_.Hy(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Hy(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.p.updateRuler_=function(){var z=this.end,l=this.start,I=this.draggableStartLimit_(),b=this.draggableEndLimit_();(l<I-.001||z>b+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.computeDurationLabel_=function(z,l){return z?z.replace("$clip_length",parseFloat(l).toFixed(1)):""};
_.p.computeDuration_=function(z,l){return this.isValidTime_(z)&&this.isValidTime_(l)&&z<l?l-z:0};
_.p.isValidTime_=function(z){return isNaN(parseFloat(z))||z<0?!1:this.player_?z>=this.seekableStart&&z<=this.seekableEnd:!0};
_.p.computeWindowSizeSec_=function(z,l,I){return Math.min((z||12E4)/1E3,I-l)};
_.p.computeTickSpacing_=function(z,l){return l?l/z:1};
_.p.onDragStateChanged_=function(){_.gC(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.p.centerRangeOnTime_=function(z){var l=this.duration;z=sCr(z-l/2,l,this.seekableStart,this.seekableEnd);_.gC(this.hostElement,"set-fixed-length-range",{start:z.start,duration:z.end-z.start})};
_.p.nearlyLessThan_=function(z,l,I){return z+(I===void 0?1E-6:I)<l};
_.p.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var z=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(z,this.start)||this.nearlyLessThan_(this.end,z))&&this.centerRangeOnTime_(z)}};
_.p.onStateChange_=function(z){this.visible&&!this.disabled&&z==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.p.computeDragState_=function(z,l,I,b){return z?"left":l?"right":I?"ruler":b?"window":"none"};
_.p.logClick=function(){var z=_.sU(),l=_.h8();z&&l&&this.scrubberVe_&&(_.C("combine_ve_grafts")?_.oc(_.iY(),this.scrubberVe_,l):_.LM(z,l,this.scrubberVe_),_.JH(z,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_;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],sO.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",Object)],sO.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"start",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"end",void 0);_.e([_.X({computed:"computeDuration_(start, end)"}),_.w("design:type",Number)],sO.prototype,"duration",void 0);
_.e([_.X(),_.w("design:type",String)],sO.prototype,"lengthTemplate",void 0);_.e([_.X({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.w("design:type",String)],sO.prototype,"durationLabel",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"visible",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"player_",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"draggingLeft_",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"draggingRight_",void 0);
_.e([_.X(),_.w("design:type",Object)],sO.prototype,"draggingRuler_",void 0);_.e([_.X({value:!1}),_.w("design:type",Object)],sO.prototype,"draggingWindow_",void 0);_.e([_.X({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.w("design:type",Number)],sO.prototype,"tickSpacing_",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"seekableStart",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"seekableEnd",void 0);
_.e([_.X(),_.w("design:type",Number)],sO.prototype,"windowSizeMs",void 0);_.e([_.X({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.w("design:type",Number)],sO.prototype,"windowSizeSec_",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"rulerWidth_",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"rulerShift_",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"windowSlideSpeed",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sO.prototype,"disabled",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"initialized",void 0);_.e([_.X(),_.w("design:type",Object)],sO.prototype,"durationAccessibilityLabel",void 0);_.e([_.X({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.w("design:type",String)],sO.prototype,"dragState",void 0);
_.e([_.By("visible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"onVisibleChanged_",null);_.e([_.By("initialized"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"onInitializedChanged_",null);_.e([_.By("player_","visible","disabled","initialized","start","end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"onUpdateLoopRange",null);
_.e([_.By("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"updateHandles_",null);_.e([_.By("start","end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"updateRuler_",null);
_.e([_.By("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sO.prototype,"onDragStateChanged_",null);_.e([_.Wy({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],sO);
_.r(sO,"yt-clip-creation-scrubber-view",function(){if(u7D===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;EN8===void 0&&(EN8=document.createElement("template"));var b=EN8;I.call(l,b.content.cloneNode(!0),z.content.firstChild);u7D=z}z=u7D;return z},{mode:2});var rR=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};z.startHighlightTimeout=0;z.endHighlightTimeout=0;return z};
_.m(rR,_.q);_.p=rR.prototype;_.p.attached=function(){var z=this;this.startInput.addEventListener("input",function(l){return z.handleStartInput_(l)});
this.endInput.addEventListener("input",function(l){return z.handleEndInput_(l)});
this.startInput.addEventListener("focusout",function(l){return z.handleStartBlur_(l)});
this.endInput.addEventListener("focusout",function(l){return z.handleEndBlur_(l)})};
_.p.setPlayer=function(z){this.set("player_",z)};
_.p.onSetFixedLengthRange_=function(z){var l=z.detail;z=l.start;var I=l.duration,b=l.startLimit;l=l.endLimit;b||(b=this.seekableStart_);l||(l=this.seekableEnd_);z=sCr(z,I,b,l);this.start=z.start;this.end=z.end};
_.p.onSetRange_=function(z){var l=z.detail;z=l.start;var I=l.end,b=l.startLimit;l=l.endLimit;b||(b=this.seekableStart_);l||(l=this.seekableEnd_);if(z=ryu(z,I,b,l,this.minLengthSec,this.maxLengthSec))this.start=z.start,this.end=z.end};
_.p.updateInputs_=function(){var z=this.end,l=this.start;this.startInput.focused||(this.startInput.value=$c(l,!0));this.endInput.focused||(this.endInput.value=$c(z,!0))};
_.p.handleStartInput_=function(z){z=h18(z.target.value);if(z===null)this.set("startValid",!1);else{var l=this.end,I=ryu(z,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==l),this.set("startValid",I.start===z)):this.set("startValid",!1)}};
_.p.handleEndInput_=function(z){z=h18(z.target.value);if(z===null)this.set("endValid",!1);else{var l=this.start,I=$KR(this.start,z,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==l),this.set("endValid",I.end===z)):this.set("endValid",!1)}};
_.p.handleStartBlur_=function(z){z=h18(z.target.value);z===null?this.startInput.value=$c(this.start,!0):this.forceUpdateInputs_(ryu(z,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.handleEndBlur_=function(z){z=h18(z.target.value);z===null?this.endInput.value=$c(this.end,!0):this.forceUpdateInputs_($KR(this.start,z,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.forceUpdateInputs_=function(z){z&&(this.start=z.start,this.end=z.end);this.startInput.value=$c(this.start,!0);this.endInput.value=$c(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.p.initializeClipRange_=function(){var z=this.seekableEnd_,l=this.seekableStart_,I=this.visible_,b=this.player_;if(!b||!I||l===null||!z)this.set("initialized",!1);else if(!this.initialized){var v=b.getCurrentTime(),M=this.getDefaultLengthSec_();I=b.getVideoData();var x=b.getPlayerState()==1,g=I.isLive;M=Math.min(M,z-l);v=Math.max(0,v);z=g?$KR(v-M,v,l,z,this.minLengthSec,this.maxLengthSec):x?sCr(v-M/2,M,l,z):sCr(v,M,l,z);this.start=z.start;this.end=z.end;this.set("initialized",!0);I.isLive&&b.seekTo(z.start);
this.startInput.value=$c(this.start,!0);this.endInput.value=$c(this.end,!0)}};
_.p.onStartChanged_=function(){var z=this;_.gC(this.hostElement,"start-changed",{start:this.start});var l;isNaN((l=this.oldStart)!=null?l:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){z.set("highlightStart",!1);z.startHighlightTimeout=0;z.oldStart=z.start},3E3))};
_.p.onEndChanged_=function(){var z=this;_.gC(this.hostElement,"end-changed",{end:this.end});var l;isNaN((l=this.oldEnd)!=null?l:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){z.set("highlightEnd",!1);z.endHighlightTimeout=0;z.oldEnd=z.end},3E3))};
_.p.onVisibilityChangedAction_=function(z){var l=this;this.set("visible_",z.visible);this.visible_&&!this.player_&&(z=_.GS())&&z.getPlayerPromise().then(function(I){l.setPlayer(I)})};
_.p.computeMinLengthSec_=function(z){return z/1E3||5};
_.p.computeMaxLengthSec_=function(z){return z/1E3||60};
_.p.computeDefaultLengthSec_=function(z){return z/1E3};
_.p.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.p.computeSeekableStart_=function(z,l){return z&&l?z.getProgressState(1).seekableStart:0};
_.p.computeSeekableEnd_=function(z,l){return z&&l?z.getProgressState(1).seekableEnd:0};
_.p.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.p.onDragState_=function(z){this.set("highlightStart",z.detail.startChanging);this.set("highlightEnd",z.detail.endChanging)};
rR.prototype.onDragState_=rR.prototype.onDragState_;rR.prototype.onEndChanged_=rR.prototype.onEndChanged_;rR.prototype.onStartChanged_=rR.prototype.onStartChanged_;rR.prototype.initializeClipRange_=rR.prototype.initializeClipRange_;rR.prototype.updateInputs_=rR.prototype.updateInputs_;rR.prototype.onSetRange_=rR.prototype.onSetRange_;rR.prototype.onSetFixedLengthRange_=rR.prototype.onSetFixedLengthRange_;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],rR.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rR.prototype,"data",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],rR.prototype,"start",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],rR.prototype,"startValid",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rR.prototype,"startWillUpdate",void 0);_.e([_.X({value:30}),_.w("design:type",Number)],rR.prototype,"end",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],rR.prototype,"endValid",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rR.prototype,"endWillUpdate",void 0);_.e([_.X({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.w("design:type",Number)],rR.prototype,"minLengthSec",void 0);
_.e([_.X({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.w("design:type",Number)],rR.prototype,"maxLengthSec",void 0);_.e([_.X({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.w("design:type",Number)],rR.prototype,"defaultLengthSec",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],rR.prototype,"visible_",void 0);_.e([_.X(),_.w("design:type",Object)],rR.prototype,"player_",void 0);
_.e([_.X({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.w("design:type",Number)],rR.prototype,"seekableStart_",void 0);_.e([_.X({computed:"computeSeekableEnd_(player_, visible_)"}),_.w("design:type",Number)],rR.prototype,"seekableEnd_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],rR.prototype,"initialized",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rR.prototype,"disabled",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rR.prototype,"highlightStart",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],rR.prototype,"highlightEnd",void 0);_.e([_.qX("#start"),_.w("design:type",HTMLInputElement)],rR.prototype,"startInput",void 0);_.e([_.qX("#end"),_.w("design:type",HTMLInputElement)],rR.prototype,"endInput",void 0);
_.e([_.tP("set-fixed-length-range"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],rR.prototype,"onSetFixedLengthRange_",null);_.e([_.tP("set-range"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],rR.prototype,"onSetRange_",null);_.e([_.By("start","end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rR.prototype,"updateInputs_",null);
_.e([_.By("player_","visible_","seekableStart_","seekableEnd_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rR.prototype,"initializeClipRange_",null);_.e([_.By("start"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rR.prototype,"onStartChanged_",null);_.e([_.By("end"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rR.prototype,"onEndChanged_",null);
_.e([_.tP("clips-drag-state"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],rR.prototype,"onDragState_",null);_.e([_.Wy({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],rR);
_.r(rR,"yt-clip-creation-scrubber-renderer",function(){if(Gzr===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;gN0===void 0&&(gN0=document.createElement("template"));var b=gN0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Gzr=z}z=Gzr;return z},{mode:2});var $t=function(){var z=_.q.apply(this,arguments)||this;z.player_=null;z.JSC$22675_playerEvents=new Map;z.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return z};
_.m($t,_.q);_.p=$t.prototype;_.p.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"}}}};
_.p.created=function(){this.JSC$22675_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22675_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22675_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22675_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.p.detached=function(){this.setPlayer(null)};
_.p.onVisibilityChangedAction_=function(z){var l=this,I;if((I=this.data)==null?0:I.externalVideoId){var b;this.videoId=(b=this.data)==null?void 0:b.externalVideoId}this.getPlayer().then(function(v){if(z.visible)l.returnTime=v.getCurrentTime(),l.isAtLiveHead=v.getProgressState().isAtLiveHead;else{var M=l.returnTime;l.isAtLiveHead&&(M=Number.POSITIVE_INFINITY);v.seekTo(M,void 0,void 0,void 0,51)}})};
_.p.getPlayer=function(){var z=this;if(!this.player_){var l=_.GS();if(l)return l.getPlayerPromise().then(function(I){z.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.p.setPlayer=function(z){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22675_playerEvents);if(z){this.player_=z;var l;((l=this.data)==null?0:l.externalVideoId)||this.set("videoId",z.getVideoData().video_id||"");var I;(z==null?void 0:(I=z.getPresentingPlayerType)==null?void 0:I.call(z))===2&&(this.set("isAdPlaying",!0),_.Gb(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(z,this.JSC$22675_playerEvents)}};
_.p.ready=function(){_.Hy(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.p.onTitleChanged_=function(z){this.set("titleValue",z.detail.title)};
_.p.onStartChanged_=function(z){this.set("start",z.detail.start)};
_.p.onEndChanged_=function(z){this.set("end",z.detail.end)};
_.p.onTitleValidChanged_=function(z){this.set("titleValid",z.detail.valid)};
_.p.onStartValidChanged_=function(z){this.set("startValid",z.detail.valid)};
_.p.onEndValidChanged_=function(z){this.set("endValid",z.detail.valid)};
_.p.onVideoDataChange_=function(){var z;if((z=this.data)==null||!z.externalVideoId){var l;this.set("videoId",((l=this.player_)==null?void 0:l.getVideoData().video_id)||"")}};
_.p.computeFormValid_=function(z,l,I,b){return!!(z&&l&&I&&b)};
_.p.computeCancelButton_=function(z,l,I){return z&&_.k(z,_.xm)?{buttonRenderer:Object.assign({},_.k(z,_.xm),{isDisabled:l||I})}:null};
_.p.computeSubmitButton_=function(z,l,I){return z&&_.k(z,_.xm)?{buttonRenderer:Object.assign({},_.k(z,_.xm),{command:void 0,isDisabled:!this.formValid||l||I})}:null};
_.p.computeSubmitCommand_=function(z){return z||null};
_.p.onSubmit_=function(z){var l=this;z.stopPropagation();z.preventDefault();this.submitCommand_&&(z={},z.comment_text=this.titleValue,z.clip_external_video_id=this.videoId,z.clip_offset_ms=parseInt(this.start*1E3,10),z.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.uJ(this.hostElement,[this.submitCommand_,z]).then(function(){l.set("isLoading_",!1)},function(){l.set("isLoading_",!1)}))};
_.p.playerAdStartHandler_=function(){_.Gb(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler_=function(){_.Gb(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.p.onVideoProgress_=function(){var z=this;this.getPlayer().then(function(l){var I,b=(l==null?void 0:(I=l.getPresentingPlayerType)==null?void 0:I.call(l))===2;z.isAdPlaying!==b&&(b?z.playerAdStartHandler_():z.playerAdEndHandler_())})};
$t.prototype.onEndValidChanged_=$t.prototype.onEndValidChanged_;$t.prototype.onStartValidChanged_=$t.prototype.onStartValidChanged_;$t.prototype.onTitleValidChanged_=$t.prototype.onTitleValidChanged_;$t.prototype.onEndChanged_=$t.prototype.onEndChanged_;$t.prototype.onStartChanged_=$t.prototype.onStartChanged_;$t.prototype.onTitleChanged_=$t.prototype.onTitleChanged_;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],$t.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",Object)],$t.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$t.prototype,"data",void 0);_.e([_.X({value:""}),_.w("design:type",String)],$t.prototype,"titleValue",void 0);
_.e([_.X({value:!1}),_.w("design:type",Boolean)],$t.prototype,"titleValid",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],$t.prototype,"start",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],$t.prototype,"startValid",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],$t.prototype,"end",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],$t.prototype,"endValid",void 0);_.e([_.X({value:""}),_.w("design:type",String)],$t.prototype,"videoId",void 0);
_.e([_.X({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.w("design:type",Boolean)],$t.prototype,"formValid",void 0);_.e([_.X({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.w("design:type",Object)],$t.prototype,"submitButton_",void 0);_.e([_.X({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.w("design:type",Object)],$t.prototype,"submitCommand_",void 0);
_.e([_.X({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.w("design:type",Object)],$t.prototype,"cancelButton_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],$t.prototype,"isLoading_",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],$t.prototype,"isAdPlaying",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],$t.prototype,"returnTime",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],$t.prototype,"isAtLiveHead",void 0);
_.e([_.tP("title-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$t.prototype,"onTitleChanged_",null);_.e([_.tP("start-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$t.prototype,"onStartChanged_",null);_.e([_.tP("end-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$t.prototype,"onEndChanged_",null);
_.e([_.tP("title-valid-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$t.prototype,"onTitleValidChanged_",null);_.e([_.tP("start-valid-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$t.prototype,"onStartValidChanged_",null);_.e([_.tP("end-valid-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$t.prototype,"onEndValidChanged_",null);
_.e([_.Wy({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],$t);
_.r($t,"yt-clip-creation-renderer",function(){if(O0T===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;x4R===void 0&&(x4R=document.createElement("template"));var b=x4R;I.call(l,b.content.cloneNode(!0),z.content.firstChild);O0T=z}z=O0T;return z},{mode:2});var eQ=function(){return _.q.apply(this,arguments)||this};
_.m(eQ,_.q);eQ.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"}}}};
eQ.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(z){return z.hasOwnProperty("clipCreationRenderer")})&&_.Gb(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
eQ.prototype.onPanelContentVisibleChanged=eQ.prototype.onPanelContentVisibleChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.yy.YtVisibilityBehavior),_.w("design:type",Object)],eQ.prototype,"ytVisibilityBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],eQ.prototype,"ytdReduxBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],eQ.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],eQ.prototype,"panelContentVisible",void 0);_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],eQ.prototype,"onPanelContentVisibleChanged",null);_.e([_.S({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],eQ);
_.r(eQ,"ytd-clip-section-renderer",function(){if(vND!==void 0)return vND;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return vND=z},{mode:1});var Z0v;var wR=function(){return _.q.apply(this,arguments)||this};
_.m(wR,_.q);_.p=wR.prototype;
_.p.onKeyDown=function(z){if(this.snippetElements.length!==0&&(z=z.keyCode,z===38||z===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);z===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.rx(this.highlightedIndex,-1,this.snippetElements.length);z=this.snippetElements.length;var l=this.highlightedIndex%z;this.highlightedIndex=l*z<0?l+z:l;z=this.snippetElements[this.highlightedIndex];this.highlightSnippet(z);this.ensureVisible(z)}};
_.p.onKeyUp=function(z){var l=this;B0R(z)&&(z.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ow.cancelJob(this.inputTimerId),this.inputTimerId=_.ow.addLowPriorityJob(function(){l.typedValue&&(l.fetchSnippets(l.typedValue),l.logInputGesture(l.data))},1E3))};
_.p.onClick=function(z){(z=_.ilp(z.target,null,"snippet-item"))&&this.selectSnippet(z)};
_.p.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.p.ready=function(){var z=this;this.inputElement.addEventListener("focus",function(){z.snippetsWrapper.style.removeProperty("display")})};
_.p.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.p.getSourceTimelines=function(){if(!this.data)return[];var z=[];if(this.data.searchInVideoSources)for(var l=_.D(this.data.searchInVideoSources),I=l.next();!I.done;I=l.next())I=I.value,I==="SEARCH_IN_VIDEO_SOURCE_ASR"?z.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):I==="SEARCH_IN_VIDEO_SOURCE_OCR"&&z.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return z};
_.p.fetchSnippets=function(z){var l=_.Gb(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();z={getSearchInVideoCommand:{externalVideoId:l,query:z!=null?z:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})};
_.p.filterSnippets=function(z,l){var I=this;if(l){this.filteredSnippets=(0,_.h7.unsafeClone)(z);var b=RegExp(_.xRQ(l),"i");this.filteredSnippets=this.filteredSnippets.filter(function(x){return b.test(I.ytRendererBehavior.getSimpleString(x.snippet))});
z=_.D(this.filteredSnippets);for(var v=z.next();!v.done;v=z.next()){v=v.value;var M=this.ytRendererBehavior.getSimpleString(v.snippet);v.snippet={runs:[{text:M.substring(0,M.toLowerCase().indexOf(l))},{text:M.substring(M.toLowerCase().indexOf(l),M.toLowerCase().indexOf(l)+l.length),bold:!0},{text:M.substring(M.toLowerCase().indexOf(l)+l.length,M.length)}]}}}else this.filteredSnippets=z};
_.p.onUpdateSearchInVideoResults=function(z){if(!(this.snippets.length>0)){var l,I,b;if((b=(l=_.k(z,P8v))==null?void 0:(I=l.results)==null?void 0:I.length)!=null&&b){var v;this.filteredSnippets=this.snippets=((v=_.k(z,P8v))==null?void 0:v.results).map(function(M){var x,g,G;return{startMs:M==null?void 0:(x=M.searchInVideoResultRenderer)==null?void 0:x.startMs,startTimeText:M==null?void 0:(g=M.searchInVideoResultRenderer)==null?void 0:g.startTimeText,snippet:M==null?void 0:(G=M.searchInVideoResultRenderer)==
null?void 0:G.snippet}})}}};
_.p.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};
_.p.highlightSnippet=function(z){z.classList.add("highlighted")};
_.p.removeSnippetHighlight=function(z){z.classList.remove("highlighted")};
_.p.selectSnippet=function(z){this.typedValue=String(z.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(z);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.p.ensureVisible=function(z){var l=this.snippetsWrapper.scrollTop,I=l+this.snippetsWrapper.clientHeight,b=z.offsetTop-this.snippetsWrapper.offsetTop;z=b+z.clientHeight;b<l?this.snippetsWrapper.scrollTop-=l-b:z>I&&(this.snippetsWrapper.scrollTop+=z-I)};
_.p.seekPlayer=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1){if(!z)return b.jumpTo(0);l=Number(z.dataset.startOffset);return b.yield(_.Nv().getPlayerPromise(),3)}I=b.yieldResult;I.seekTo(l/1E3,!0);I.wakeUpControls();_.qe(b)})};
_.p.logInputGesture=function(z){var l=_.sU();l&&(z==null?0:z.trackingParams)&&_.zZ(l,_.ch(z.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.p.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("typed-value-changed",this.typedValue))};
_.p.updateTypedValueFromBinding=function(z){this.typedValue=z.currentTarget.value};
wR.prototype.typedValueChangedForBinding=wR.prototype.typedValueChangedForBinding;wR.prototype.dataChanged=wR.prototype.dataChanged;wR.prototype.panelContentVisibleChanged=wR.prototype.panelContentVisibleChanged;wR.prototype.onClick=wR.prototype.onClick;wR.prototype.onKeyUp=wR.prototype.onKeyUp;wR.prototype.onKeyDown=wR.prototype.onKeyDown;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],wR.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wR.prototype,"data",void 0);_.e([_.X({value:[]}),_.w("design:type",Array)],wR.prototype,"snippets",void 0);_.e([_.X({value:[]}),_.w("design:type",Array)],wR.prototype,"filteredSnippets",void 0);_.e([_.X({value:[]}),_.w("design:type",Array)],wR.prototype,"snippetElements",void 0);
_.e([_.qX("#siv-input"),_.w("design:type",HTMLElement)],wR.prototype,"inputElement",void 0);_.e([_.qX("#siv-snippets-wrapper"),_.w("design:type",HTMLElement)],wR.prototype,"snippetsWrapper",void 0);_.e([_.X(),_.w("design:type",String)],wR.prototype,"typedValue",void 0);_.e([_.X({value:-1}),_.w("design:type",Number)],wR.prototype,"highlightedIndex",void 0);_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[_.TL]),_.w("design:returntype")],wR.prototype,"onKeyDown",null);
_.e([_.tP("keyup"),_.w("design:type",Function),_.w("design:paramtypes",[_.TL]),_.w("design:returntype")],wR.prototype,"onKeyUp",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],wR.prototype,"onClick",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],wR.prototype,"panelContentVisible",void 0);
_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wR.prototype,"panelContentVisibleChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wR.prototype,"dataChanged",null);_.e([_.By("typedValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wR.prototype,"typedValueChangedForBinding",null);
_.e([_.S({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],wR);
_.r(wR,"ytd-search-in-video-renderer",function(){if(Z0v!==void 0)return Z0v;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Z0v=z},{mode:1});var H0T;var AI=function(){return _.q.apply(this,arguments)||this};
_.m(AI,_.q);AI.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
AI.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]]"}}}}}};
AI.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var z,l,I,b,v=(l=_.k((z=this.data)==null?void 0:z.onClickCommand,_.rL))==null?void 0:(I=l.item)==null?void 0:(b=I.notificationTextRenderer)==null?void 0:b.successResponseText;v&&_.o_t(this.hostElement,v)}};
_.vP.Object.defineProperties(AI.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return this.isProductPlaceholder&&((z=this.data)==null?void 0:(l=z.hiddenProductOptions)==null?void 0:l.showDropCountdown)&&!!((I=this.data)==null?0:(b=I.hiddenProductOptions)==null?0:b.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var z;return!this.isProductPlaceholder&&!((z=this.data)==null?0:z.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null?0:z.priceReplacementText)&&!((l=this.data)==null||!l.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],AI.prototype,"componentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],AI.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("isProductPlaceholder"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"useCenterLayoutContainer",null);_.e([_.X({computed:"computeButtonOverride(data)"}),_.w("design:type",Object)],AI.prototype,"buttonOverride",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"isProductPlaceholder",null);
_.e([_.B("isProductPlaceholder"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"showDropCountdown",null);_.e([_.B("isProductPlaceholder","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"showBrandName",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"showPriceReplacementText",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"showPrice",null);
_.e([_.B("isProductPlaceholder"),_.w("design:type",Object),_.w("design:paramtypes",[])],AI.prototype,"showMetadata",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],AI);
_.r(AI,"ytd-product-list-item-renderer",function(){if(H0T!==void 0)return H0T;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return H0T=z},{mode:1});var yAa;var Wa=function(){return _.q.apply(this,arguments)||this};
_.m(Wa,_.q);Wa.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Wa.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Wa.prototype.panelContentVisibleChanged=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return z.playerApi?I.jumpTo(2):I.yield(_.Nv().getPlayerPromise(),3);I.nextAddress!=2&&(z.playerApi=I.yieldResult);(l=z.playerApi)==null||l.productsInVideoVisibilityUpdated(!!z.panelContentVisible);_.qe(I)})};
Wa.prototype.panelContentVisibleChanged=Wa.prototype.panelContentVisibleChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Wa.prototype,"panelContentVisible",void 0);_.e([_.X(),_.w("design:type",Object)],Wa.prototype,"data",void 0);
_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],Wa.prototype,"panelContentVisibleChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Wa);
_.r(Wa,"ytd-product-list-renderer",function(){if(yAa!==void 0)return yAa;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yAa=z},{mode:1});var fvT;var nW=function(){var z=_.q.apply(this,arguments)||this;z.hideTimestamps=!!_.rD("hide-transcript-timestamps");z.currentCueIndex=-1;z.flatCues=[];z.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};z.TEST_ONLY={getFlatCues:function(){return z.flatCues}};
return z};
_.m(nW,_.q);_.p=nW.prototype;_.p.hideTimestampsChanged=function(){_.sr("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.dataChanged=function(){var z;if((z=this.data)!=null&&z.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;z=_.D(this.data.cueGroups);for(var l=z.next();!l.done;l=z.next()){l=_.D(_.k(l.value,hZ0).cues);for(var I=l.next();!I.done;I=l.next())this.flatCues.push(Number(_.k(I.value,suu).startOffsetMs))}}};
_.p.onYtPlayerTimeChanged=function(z){if(!(z<0)){for(var l=this.currentCueIndex,I=l;;){var b=I>=0?this.flatCues[I]/1E3:-1;if(z+.5<b)--I;else if(b=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,z+.5>b)I+=1;else break}I!==l&&(l>=0&&((z=this.getCueElement(l))&&z.classList.remove("active"),(l=this.getCueGroupElement(l))&&l.classList.remove("active")),(l=this.getCueElement(I))&&l.classList.add("active"),(l=this.getCueGroupElement(I))&&l.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.p.scrollElementToTop=function(z){z=this.getCueElement(z>=3?z-3:0);this.hostElement.scrollTop=Math.min(z.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.getCueElement=function(z){return _.Hy(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[z]+'"]')};
_.p.getCueGroupElement=function(z){return(z=this.getCueElement(z))&&z.parentElement?z.parentElement.parentElement:null};
_.p.onTap=function(z){var l=_.pJ(z);z.target.classList.contains("cue")&&this.seekCueElement(l)};
_.p.onKeyPress=function(z){z.keyCode==13&&(z=_.ilp(z.target,null,"cue"))&&this.seekCueElement(z)};
_.p.seekCueElement=function(z){z=Number(z.getAttribute("start-offset"));_.Gb(this.hostElement,"yt-transcript-player-seek",[z/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
nW.prototype.onMouseLeave=nW.prototype.onMouseLeave;nW.prototype.onMouseEnter=nW.prototype.onMouseEnter;nW.prototype.onKeyPress=nW.prototype.onKeyPress;nW.prototype.onTap=nW.prototype.onTap;nW.prototype.dataChanged=nW.prototype.dataChanged;nW.prototype.hideTimestampsChanged=nW.prototype.hideTimestampsChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],nW.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nW.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],nW.prototype,"hideTimestamps",void 0);_.e([_.X(),_.w("design:type",Boolean)],nW.prototype,"isHovered",void 0);_.e([_.By("hideTimestamps"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nW.prototype,"hideTimestampsChanged",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nW.prototype,"dataChanged",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],nW.prototype,"onTap",null);_.e([_.tP("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],nW.prototype,"onKeyPress",null);
_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nW.prototype,"onMouseEnter",null);_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nW.prototype,"onMouseLeave",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],nW);
_.r(nW,"ytd-transcript-body-renderer",function(){if(fvT!==void 0)return fvT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return fvT=z},{mode:1});var CWT;var LW=function(){var z=_.q.apply(this,arguments)||this;z.darkerPanels=_.C("web_watch_darker_panels");return z};
_.m(LW,_.q);LW.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LW.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],LW.prototype,"darkerPanels",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],LW);
_.r(LW,"ytd-transcript-footer-renderer",function(){if(CWT!==void 0)return CWT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return CWT=z},{mode:1});var kzT;var R7A;var UO=function(){var z=_.q.apply(this,arguments)||this;z.systemIcons=_.C("kevlar_system_icons");z.showClearButton=!1;return z};
_.m(UO,_.q);_.p=UO.prototype;_.p.handleInput=function(z){var l=this;z.target.value.length?_.z4(this,"ytdTranscriptSearchBoxSearch",function(){l.emitSearchEvent(z)},500):(_.I75(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=z.target.value.length>0};
_.p.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.p.handleClick=function(){var z,l=(z=this.data)==null?void 0:z.trackingParams;l&&_.sE(_.iY(),l)};
_.p.handleClear=function(){_.I75(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var z,l,I=(l=_.k((z=this.data)==null?void 0:z.clearButton,_.xm))==null?void 0:l.trackingParams;I&&_.sE(_.iY(),I);this.clear()};
_.p.emitSearchEvent=function(z){_.gC(this.hostElement,"yt-transcript-search-box-search",{query:z.target.value});var l,I;(z=(I=_.k((l=this.data)==null?void 0:l.searchButton,_.xm))==null?void 0:I.trackingParams)&&_.sE(_.iY(),z)};
_.p.emitClearEvent=function(){_.gC(this.hostElement,"yt-transcript-search-box-clear")};
_.vP.Object.defineProperties(UO.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Hy(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],UO.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],UO.prototype,"systemIcons",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],UO);
_.r(UO,"ytd-transcript-search-box-renderer",function(){if(R7A!==void 0)return R7A;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return R7A=z},{mode:1});var m4Q;var KsT;var aM=function(){return _.q.apply(this,arguments)||this};
_.m(aM,_.q);aM.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var z,l;this.sectionHeaderAriaLabel=(z=this.data)==null?void 0:(l=z.accessibility)==null?void 0:l.accessibilityData.label}};
aM.prototype.fireSelectedEvent=function(z){_.gC(this.hostElement,"ytd-transcript-section-header",{startMs:z})};
aM.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
aM.prototype.handleKeyPress=function(z){this.data&&z.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.vP.Object.defineProperties(aM.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.data)==null?void 0:z.enableTappableTranscriptHeader)!=null?l:!1}}});
aM.prototype.dataChanged=aM.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],aM.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],aM.prototype,"sectionHeaderAriaLabel",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],aM.prototype,"enableTappableTranscriptHeader",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],aM.prototype,"dataChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],aM);
_.r(aM,"ytd-transcript-section-header-renderer",function(){if(KsT!==void 0)return KsT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return KsT=z},{mode:1});var tNR;var B1R;var VQ=function(){var z=_.q.apply(this,arguments)||this;z.isEditMode=!1;z.touchCaptionsEnabled=!1;z.deleteCaptionCorrectionPopupCommand=null;z.voteCaptionCorrectionPopupCommand=null;z.roundedContainer=!0;z.mouseOver=!1;z.textChanged=!1;z.messages={suggest_correction:_.mY("suggest_correction",void 0,"Edit caption"),suggested_caption:_.mY("suggested_caption",void 0,"Suggested caption"),submit_correction:_.mY("submit_correction",void 0,"Submit for review"),cancel_correction:_.mY("cancel_correction",
void 0,"Cancel"),replay_segment:_.mY("replay_segment",void 0,"Re-play segment"),delete_correction:_.mY("delete_correction",void 0,"Delete correction")};z.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return z};
_.m(VQ,_.q);_.p=VQ.prototype;_.p.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)};
_.p.handleDelete=function(z){if(this.deleteCaptionCorrectionPopupCommand){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);l&&this.ytdOpenPopupBehavior.openPopup(l);z.stopPropagation()}};
_.p.handleSubmit=function(z){if(this.data&&this.data.submitCaptionCorrectionCommand&&(z.stopPropagation(),this.textChanged)){var l;z=(l=_.k(this.data.submitCaptionCorrectionCommand,_.Uw_))==null?void 0:l.params;l=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:z,correctionText:String(this.ironTextAreaElement.value),originalText:_.ID(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(l);this.isEditMode=!1}};
_.p.handleUpdateSegmentText=function(z){(z=_.k(z,b4D))&&z.targetId&&this.data&&z.targetId===this.data.targetId&&(z.userCorrection&&(this.editedText=z.userCorrection),z.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.ID(this.data.snippet)),z.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=z.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=z.voteCaptionCorrectionPopupCommand?
z.voteCaptionCorrectionPopupCommand:null,z.accessibility&&(this.segmentAriaLabel=z.accessibility.accessibilityData.label))};
_.p.handleCancel=function(z){this.isEditMode=!1;z.stopPropagation();this.logClientVe(159409)};
_.p.handleEditSegmentCommand=function(z){(z=_.k(z,I1T))&&z.targetId&&this.data&&z.targetId===this.data.targetId&&this.handleEdit()};
_.p.handleEditButtonClick=function(z){this.data&&(this.handleEdit(),z.stopPropagation())};
_.p.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var z;(z=this.ironTextAreaElement.textarea)==null||z.focus();this.logClientVe(159407)}};
_.p.handleMouseEnter=function(){this.mouseOver=!0};
_.p.handleMouseLeave=function(){this.mouseOver=!1};
_.p.handleReplay=function(z){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),z.stopPropagation(),this.logClientVe(159408))};
_.p.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()))};
_.p.handleKeypress=function(z){this.data&&(this.isEditMode?z.stopPropagation():this.isEnterPress(z)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(z)&&this.logClientVe(138758))};
_.p.handleTextboxClick=function(z){z.stopPropagation()};
_.p.handleTextboxKeydown=function(z){this.isControlEnterPress(z)?this.handleSubmit(z):z.key==="Escape"&&this.handleCancel(z)};
_.p.handleTextboxKeyup=function(){this.textChanged=_.ID(this.latestText)!==String(this.ironTextAreaElement.value)};
_.p.fireSelectedEvent=function(z){_.gC(this.hostElement,"yt-transcript-segment-selected",{startMs:z})};
_.p.fireReplayEvent=function(z,l){_.gC(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(z-100,0),endMs:l})};
_.p.fireEditEvent=function(z,l){_.gC(this.hostElement,"yt-transcript-segment-edit",{startMs:z,endMs:l})};
_.p.isEnterPress=function(z){return z.key==="Enter"||z.code==="Enter"||z.code==="NumpadEnter"||z.keyCode===13?!0:!1};
_.p.isControlEnterPress=function(z){var l=z.key==="Enter"||z.code==="Enter"||z.code==="NumpadEnter"||z.keyCode===13;return(z.ctrlKey||z.metaKey)&&l};
_.p.isCopyPress=function(z){var l=z.ctrlKey;return z.key==="c"&&l};
_.p.logClick=function(){var z,l=(z=this.data)==null?void 0:z.trackingParams;l&&_.sE(_.iY(),l)};
_.p.logClientVe=function(z){_.hM(_.iY(),_.kU(z))};
_.vP.Object.defineProperties(VQ.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}}});
VQ.prototype.handleMouseLeave=VQ.prototype.handleMouseLeave;VQ.prototype.handleMouseEnter=VQ.prototype.handleMouseEnter;VQ.prototype.dataChanged=VQ.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],VQ.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],VQ.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],VQ.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VQ.prototype,"isEditMode",void 0);_.e([_.X(),_.w("design:type",Object)],VQ.prototype,"touchCaptionsEnabled",void 0);_.e([_.X(),_.w("design:type",Object)],VQ.prototype,"editedText",void 0);_.e([_.X(),_.w("design:type",Object)],VQ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.e([_.X(),_.w("design:type",Object)],VQ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.e([_.X(),_.w("design:type",String)],VQ.prototype,"segmentAriaLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VQ.prototype,"roundedContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VQ.prototype,"mouseOver",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],VQ.prototype,"textChanged",void 0);_.e([_.X(),_.w("design:type",Object)],VQ.prototype,"messages",void 0);
_.e([_.qX("#suggestion"),_.w("design:type",Object)],VQ.prototype,"ironTextAreaElement",void 0);_.e([_.B("data","editedText"),_.w("design:type",Object),_.w("design:paramtypes",[])],VQ.prototype,"latestText",null);_.e([_.B("touchCaptionsEnabled","isEditMode"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],VQ.prototype,"enableEditButton",null);
_.e([_.B("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],VQ.prototype,"enableUndoButton",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VQ.prototype,"dataChanged",null);_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VQ.prototype,"handleMouseEnter",null);
_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VQ.prototype,"handleMouseLeave",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],VQ);
_.r(VQ,"ytd-transcript-segment-renderer",function(){if(B1R!==void 0)return B1R;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return B1R=z},{mode:1});var jQ=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};z.isError=!1;z.darkerPanels=_.C("web_watch_darker_panels");z.useParentMaxHeight=_.C("web_watch_transscript_use_parent_max_height");z.segmentOffsets=[];z.segmentIndex=-1;return z};
_.m(jQ,_.q);_.p=jQ.prototype;_.p.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"}}}}};
_.p.segmentsChanged=function(){this.updateOffsets()};
_.p.onYtPlayerTimeChanged=function(z){for(var l=this.segmentIndex,I=l;;){if(I>=0){var b=this.segmentOffsets[I].start;var v=this.segmentOffsets[I].isAutoScrollable}else b=-1,v=!0;var M=z+.5;if(!v){b=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(M>=b){I+=1;continue}I=-1;break}if(M<b)b=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,v=I===0||b?1:2,I-=v;else if(v=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,b=I+v<this.segmentOffsets.length?
this.segmentOffsets[I+v].start:Infinity,M>b)I+=v;else{if(I<0)break;I<this.segmentOffsets.length&&M>this.segmentOffsets[I].end&&(I=-1);break}}if(l!==I){if(l>=0){var x;(x=this.getSegmentElement(l))==null||x.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var g;(g=this.getSegmentElement(I))==null||g.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.p.handleSegmentEdit=function(z){z.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=z.target,_.Gb(this.hostElement,"yt-transcript-player-edit",[z.detail.startMs/1E3,z.detail.endMs/1E3]))};
_.p.handleSegmentSelected=function(z){_.Gb(this.hostElement,"yt-transcript-player-seek",[z.detail.startMs/1E3])};
_.p.handleSegmentReplay=function(z){_.Gb(this.hostElement,"yt-transcript-player-replay",[z.detail.startMs/1E3,z.detail.endMs/1E3])};
_.p.handleSectionHeaderSelected=function(z){_.Gb(this.hostElement,"yt-transcript-player-seek",[z.detail.startMs/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.onRetryButtonClick=function(){_.gC(this.hostElement,"transcript-retry-button-click")};
_.p.getSegmentElement=function(z){return _.Hy(this.hostElement).querySelector(":nth-child("+(z+1)+")")};
_.p.scrollElementToTop=function(z){z=this.getSegmentElement(z>=2?z-2:0);this.hostElement.scrollTop=Math.min(z.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(z){var l,I=(l=z.transcriptSegmentRenderer)!=null?l:z.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:z.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.p.clearHighlightedSegments=function(){var z=_.Hy(this.hostElement);z=_.D(z.querySelectorAll("ytd-transcript-segment-renderer"));for(var l=z.next();!l.done;l=z.next())l.value.classList.remove("active")};
_.vP.Object.defineProperties(jQ.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.searchResultSegments)||((l=this.data)==null?void 0:l.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
jQ.prototype.onMouseLeave=jQ.prototype.onMouseLeave;jQ.prototype.onMouseEnter=jQ.prototype.onMouseEnter;jQ.prototype.handleSectionHeaderSelected=jQ.prototype.handleSectionHeaderSelected;jQ.prototype.handleSegmentReplay=jQ.prototype.handleSegmentReplay;jQ.prototype.handleSegmentSelected=jQ.prototype.handleSegmentSelected;jQ.prototype.handleSegmentEdit=jQ.prototype.handleSegmentEdit;jQ.prototype.segmentsChanged=jQ.prototype.segmentsChanged;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],jQ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jQ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],jQ.prototype,"isError",void 0);
_.e([_.X(),_.w("design:type",Object)],jQ.prototype,"noResultLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jQ.prototype,"darkerPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jQ.prototype,"useParentMaxHeight",void 0);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],jQ.prototype,"segments",null);
_.e([_.B("segments","noResultLabel"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jQ.prototype,"displayNoResults",null);_.e([_.By("segments"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jQ.prototype,"segmentsChanged",null);_.e([_.tP("yt-transcript-segment-edit"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],jQ.prototype,"handleSegmentEdit",null);
_.e([_.tP("yt-transcript-segment-selected"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],jQ.prototype,"handleSegmentSelected",null);_.e([_.tP("yt-transcript-segment-replay"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],jQ.prototype,"handleSegmentReplay",null);
_.e([_.tP("ytd-transcript-section-header"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],jQ.prototype,"handleSectionHeaderSelected",null);_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jQ.prototype,"onMouseEnter",null);_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jQ.prototype,"onMouseLeave",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],jQ);
_.r(jQ,"ytd-transcript-segment-list-renderer",function(){if(tNR!==void 0)return tNR;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tNR=z},{mode:1});var JI=function(){var z=_.q.apply(this,arguments)||this;z.hideTimestamps=!!_.rD("hide-transcript-timestamps");z.isLoadingTranscripts=!1;z.darkerPanels=_.C("web_watch_darker_panels");z.isError=!1;z.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return z};
_.m(JI,_.q);_.p=JI.prototype;_.p.headerChanged=function(){var z,l;this.baseGetTranscriptsCommand=(l=_.k((z=this.data)==null?void 0:z.header,vdT))==null?void 0:l.onTextChangeCommand};
_.p.bodyChanged=function(){var z=this.getBodyRenderer();z&&(z.initialSegments&&(this.initialTranscriptsRenderer=z),z.noResultLabel&&(this.noResultLabel=z.noResultLabel),z.retryLabel&&(this.retryLabel=z.retryLabel))};
_.p.detached=function(){this.clearSearchBoxText()};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.p.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"}}}};
_.p.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.p.fireSearch=function(z){var l=this;if(z){var I=z.detail.query;if(this.baseGetTranscriptsCommand){var b;z=(b=_.k(this.baseGetTranscriptsCommand,_.zJ_))==null?void 0:b.params;var v;b=_.k((v=this.data)==null?void 0:v.footer,rTR);var M;if((v=(M=_.k(b==null?void 0:b.languageMenu,JT8))==null?void 0:M.subMenuItems)&&v.length>0&&(M=v.find(function(G){return G.selected}))){var x,g;
z=(x=M.continuation)==null?void 0:(g=x.reloadContinuationData)==null?void 0:g.continuation}x=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:z,searchQuery:I}});this.ytComponentBehavior.resolveCommand(x,{commandController:{onServerError:function(){l.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});K7Z(this.ytContinuationHandlerBehavior,function(){return I===l.getCurrentSearchBoxText()})}}};
_.p.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.p.onRetryButtonClick=function(){this.isError=!1;var z={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:z}))};
_.p.hideTimestampsChanged=function(){_.sr("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.handleSignalActionCopyTranscript=function(){var z=this,l=this.getBodyRenderer();l&&(l=((l==null?void 0:l.searchResultSegments)||(l==null?void 0:l.initialSegments)||[]).map(function(I){return _.k(I,p0T)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var b=(I.snippet.runs||[]).reduce(function(v,M){return v+M.text},"");
return z.hideTimestamps?b:I.startTimeText.simpleText+" "+b}).join("\n"),this.copyToClipboard(l))};
_.p.copyToClipboard=function(z){navigator.clipboard&&navigator.clipboard.writeText(z)};
_.p.getCurrentSearchBoxText=function(){var z;return(z=this.searchBox)==null?void 0:z.value};
_.p.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.p.getBodyRenderer=function(){var z;return _.k((z=this.data)==null?void 0:z.body,MYZ)};
_.p.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.vP.Object.defineProperties(JI.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Hy(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
JI.prototype.hideTimestampsChanged=JI.prototype.hideTimestampsChanged;JI.prototype.searchCleared=JI.prototype.searchCleared;JI.prototype.fireSearch=JI.prototype.fireSearch;JI.prototype.onReloadContinuationFinish=JI.prototype.onReloadContinuationFinish;JI.prototype.bodyChanged=JI.prototype.bodyChanged;JI.prototype.headerChanged=JI.prototype.headerChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],JI.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],JI.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],JI.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],JI.prototype,"hideTimestamps",void 0);
_.e([_.X(),_.w("design:type",Object)],JI.prototype,"isLoadingTranscripts",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],JI.prototype,"darkerPanels",void 0);_.e([_.X(),_.w("design:type",Object)],JI.prototype,"isError",void 0);_.e([_.By("data.header"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JI.prototype,"headerChanged",null);
_.e([_.YE("data.body"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JI.prototype,"bodyChanged",null);_.e([_.tP("yt-reload-continuation-finish"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JI.prototype,"onReloadContinuationFinish",null);_.e([_.tP("yt-transcript-search-box-search"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],JI.prototype,"fireSearch",null);
_.e([_.tP("yt-transcript-search-box-clear"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JI.prototype,"searchCleared",null);_.e([_.By("hideTimestamps"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JI.prototype,"hideTimestampsChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],JI);
_.r(JI,"ytd-transcript-search-panel-renderer",function(){if(m4Q!==void 0)return m4Q;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return m4Q=z},{mode:1});var zl=function(){var z=_.q.apply(this,arguments)||this;z.player=null;z.playerPollJobId=0;return z};
_.m(zl,_.q);_.p=zl.prototype;_.p.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.p.onLoadReloadContinuation=function(z){_.C("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:z.target.data.continuation}}):(z={clickTrackingParams:z.target.data.clickTrackingParams,getTranscriptEndpoint:{params:z.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}}))};
_.p.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"}}}};
_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.p.attached=function(){this.updatePlayerListening()};
_.p.detached=function(){this.updatePlayerListening()};
_.p.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.p.startPlayerListening=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return(l=_.GS())?I.yield(l.getPlayerPromise(),2):I.return();z.player=I.yieldResult;z.playerPollJobId=_.ow.addLowPriorityJob(function(){z.getPlayerVideoProgress()},1E3);
z.player.addEventListener("onCueRangeEnter",function(b){z.onCueRangeEnter(b)});
z.player.addEventListener("onCueRangeExit",function(b){z.onCueRangeExit(b)});
z.player.addEventListener("onStateChange",function(b){z.onPlayerStateChange(b)});
z.player.addEventListener("SEEK_TO",function(b){z.onPlayerSeek(b)});
_.qe(I)})};
_.p.getPlayerVideoProgress=function(){var z=this;_.ow.cancelJob(this.playerPollJobId);if(this.player){var l=this.player.getCurrentTime();_.Gb(this.hostElement,"yt-player-time-changed",[l])}this.playerPollJobId=_.ow.addLowPriorityJob(function(){z.getPlayerVideoProgress()},1E3)};
_.p.stopPlayerListening=function(){this.player=null;_.ow.cancelJob(this.playerPollJobId)};
_.p.onPlayerStateChange=function(z){z===2&&this.removePendingCue()};
_.p.onPlayerSeek=function(z){var l;if(l=this.pendingReplayCueId)l=this.pendingReplayCueId,l=z===(_.C("web_transcript_cue_id_killswitch")?Number(l):Number(l.split("_")[1]));l||this.removePendingCue()};
_.p.onCueRangeEnter=function(z){wXZ(z)&&(this.pendingReplayCueId=z)};
_.p.onCueRangeExit=function(z){wXZ(z)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.p.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.p.onYtTranscriptPlayerSeek=function(z){this.player&&this.player.seekTo(z,!0)};
_.p.onYtTranscriptPlayerReplay=function(z,l){this.player&&(this.player.addCueRange(e1u(z),z,l),this.player.seekTo(z,!0),this.player.playVideo())};
_.p.onYtTranscriptPlayerEdit=function(z,l){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(e1u(z),z,l),this.player.seekTo(z,!0))};
zl.prototype.onLoadReloadContinuation=zl.prototype.onLoadReloadContinuation;zl.prototype.panelContentVisibleChanged=zl.prototype.panelContentVisibleChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],zl.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],zl.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zl.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],zl.prototype,"panelContentVisible",void 0);_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zl.prototype,"panelContentVisibleChanged",null);
_.e([_.tP("yt-load-reload-continuation"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],zl.prototype,"onLoadReloadContinuation",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],zl);
_.r(zl,"ytd-transcript-renderer",function(){if(kzT!==void 0)return kzT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return kzT=z},{mode:1});var Xlv;var qAD;var ly=function(){return _.q.apply(this,arguments)||this};
_.m(ly,_.q);ly.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ZE(this.hostElement,[this.data.clickCommand],this.hostElement))};
ly.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.fX)()+_.n_)+"px)"};
ly.prototype.updateShouldHideFromBinding=function(z){this.shouldHide=z.detail.value};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ly.prototype,"rendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ly.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],ly.prototype,"shouldHide",void 0);_.e([_.S({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],ly);
_.r(ly,"ytd-ad-engagement-panel-banner-renderer",function(){if(qAD!==void 0)return qAD;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return qAD=z},{mode:_.yP("kevlar_poly_si_batch_j070")?1:2});var i0T;var Ik=function(){var z=_.q.apply(this,arguments)||this;z.modernPanels=_.C("kevlar_watch_modern_panels");z.buttonUpdate=_.C("web_modern_buttons");z.adsSemanticText=_.C("enable_ads_web_ep_buenos_aires_and_padding_fix");return z};
_.m(Ik,_.q);Ik.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.e([_.X(),_.w("design:type",Object)],Ik.prototype,"data",void 0);_.e([_.X({computed:"computeHideDefaultAdBadge(data)"}),_.w("design:type",Boolean)],Ik.prototype,"hideDefaultAdBadge",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ik.prototype,"modernPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ik.prototype,"buttonUpdate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ik.prototype,"adsSemanticText",void 0);
_.e([_.S({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Ik);
_.r(Ik,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(i0T!==void 0)return i0T;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return i0T=z},{mode:1});var Fsr;var by=function(){var z=_.q.apply(this,arguments)||this;z.darkerPanels=_.C("web_watch_darker_panels");z.enableSqueezebackPanels=_.C("web_shorts_enable_squeezeback_panels");z.enableAnchoredPanel=_.C("desktop_shorts_v2_anchored_panel");z.modernPanels=_.C("kevlar_watch_modern_panels");z.headerClickListener=function(l){z.onHeaderClick(l)};
z.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return z};
_.m(by,_.q);_.p=by.prototype;_.p.computeAdsInfoButton=function(){if(_.C("web_modern_buttons")){var z,l;return(l=_.k((z=this.data)==null?void 0:z.subtitleComplex,$ZZ))==null?void 0:l.adInfoRenderer}};
_.p.updateHeaderClickListener=function(){var z,l,I;((z=this.data)==null?0:z.navigationEndpoint)||((l=this.data)==null?0:l.onClickCommand)||_.k((I=this.data)==null?void 0:I.visibilityButton,_.OE)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.p.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}}}}}};
_.p.collapsedChanged=function(){var z;(z=this.data)!=null&&z.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.C("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.p.focus=function(z){var l=this;this.titleElement&&_.ow.addJob(function(){_.j8(l.titleElement,z)},0,500)};
_.p.computeTitleAriaLabel=function(z){var l=[];if(z.title){var I,b;l.push(this.ytRendererBehavior.getSimpleString(z.title)||((I=z.title.accessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label))}z.contextualInfo&&l.push(this.ytRendererBehavior.getSimpleString(z.contextualInfo));return l.join(" ")};
_.p.onHeaderClick=function(z){this.shouldTriggerHeaderClick(z)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ZE(this.hostElement,[this.data.onClickCommand],this.hostElement)):(z=this.getVisibilityToggleButton())&&z.click())};
_.p.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var z=_.k(this.data.visibilityButton,_.xm)||_.k(this.data.visibilityButton,_.OE);z&&this.ytRendererBehavior.logExplicitClick(z)}};
_.p.getVisibilityToggleButton=function(){var z=_.Hy(this.hostElement).querySelector("#visibility-button").firstElementChild;return(z==null?void 0:z.is)==="ytd-toggle-button-renderer"?z:null};
_.p.shouldTriggerHeaderClick=function(z){return!_.DX(_.MX(z),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.p.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(z){z=_.k(z,_.T0A);this.targetId&&(z==null?void 0:z.targetId)===this.targetId&&(z=z.navigationButton)&&this.set("data.navigationButton",z)};
_.vP.Object.defineProperties(by.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var z;return!!(((z=this.entity)==null?0:z.isActionButtonHidden)||this.hideActionButton)}}});
by.prototype.collapsedChanged=by.prototype.collapsedChanged;by.prototype.updateHeaderClickListener=by.prototype.updateHeaderClickListener;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],by.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],by.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],by.prototype,"targetId",void 0);_.e([_.X(),_.w("design:type",Boolean)],by.prototype,"collapsed",void 0);_.e([_.X(),_.w("design:type",Boolean)],by.prototype,"hideActionButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],by.prototype,"shortsPanel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],by.prototype,"liveChatEngagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],by.prototype,"learningChatEngagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],by.prototype,"darkerPanels",void 0);_.e([_.qX("#title"),_.w("design:type",HTMLElement)],by.prototype,"titleElement",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],by.prototype,"headerElement",void 0);
_.e([_.X({computed:"computeAdsInfoButton(data)"}),_.w("design:type",Object)],by.prototype,"adsInfoButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],by.prototype,"enableSqueezebackPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],by.prototype,"enableAnchoredPanel",void 0);_.e([_.X({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(z,l){return _.Cc(z.entities,"engagementPanelTitleHeaderEntity",l)}}),
_.w("design:type",Object)],by.prototype,"entity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],by.prototype,"modernPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("targetId"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],by.prototype,"adsSemanticText",null);_.e([_.By("data","data.navigationEndpoint","data.onClickCommand"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],by.prototype,"updateHeaderClickListener",null);
_.e([_.YE("collapsed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],by.prototype,"collapsedChanged",null);_.e([_.B("entity","hideActionButton"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],by.prototype,"isActionButtonHidden",null);_.e([_.S({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],by);
_.r(by,"ytd-engagement-panel-title-header-renderer",function(){if(Fsr!==void 0)return Fsr;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Fsr=z},{mode:1});var QQT;var vI=function(){return _.q.apply(this,arguments)||this};
_.m(vI,_.q);vI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],vI.prototype,"data",void 0);_.e([_.S({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],vI);
_.r(vI,"ytd-macro-markers-info-item-renderer",function(){if(QQT!==void 0)return QQT;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return QQT=z},{mode:1});var YAa;var M2=function(z,l,I,b,v,M){_.Q9.call(this);var x=this;this.JSC$22777_containerElement=z;this.hostElement=l;this.supportedSyncItems=I;this.syncEntityKey=b;this.options=v;this.renderLazyListItems=M;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;T1Q(this);cAA(this);this.JSC$22777_scrollAnimation=new _.fx(function(g){z.scrollTop=g});
_.kN(this,this.JSC$22777_scrollAnimation);this.addOnDisposeCallback(function(){SAa(x,!1);x.activeItem&&x.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.m(M2,_.Q9);var T1Q=function(z){var l=_.Wf(_.pG().resolve(_.G$),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,b){var v;
if(I[z.syncEntityKey]!==b[z.syncEntityKey]&&((v=I[z.syncEntityKey])==null?void 0:v.activeItemIndex)!==void 0)if(b=I[z.syncEntityKey].activeItemIndex,I=z.getItemByIndex(b)){if(d4r(z,I),z.contentVisible)if(z.browsingMode){var M;((M=z.options)==null?void 0:M.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M=oNZ(z),I.offsetTop<z.JSC$22777_containerElement.clientHeight+z.JSC$22777_containerElement.scrollTop&&M&&!z.activeItemBelowSyncPosition&&SAa(z,!1));PWa(z)}else z.scrollToItem(I)}else _.PW(new _.qB("Could not find "+
z.supportedSyncItems+" sync child to set active.",b,z.JSC$22777_containerElement.querySelectorAll(z.supportedSyncItems).length))});
z.unsubscribeFromTimedMarkersListSyncEntity=l;z.addOnDisposeCallback(l);h7R(z)},h7R=function(z){var l=_.pG().resolve(_.G$);
l=_.l35(l.getState(),z.syncEntityKey);(l==null?void 0:l.activeItemIndex)!==void 0&&(l=z.getItemByIndex(l.activeItemIndex))&&d4r(z,l)},cAA=function(z){var l=new _.zD(z.onScroll,50,z);
_.kN(z,l);var I=function(){l.fire()};
z.JSC$22777_containerElement.addEventListener("scroll",I);z.addOnDisposeCallback(function(){z.JSC$22777_containerElement.removeEventListener("scroll",I)})};
M2.prototype.getItemByIndex=function(z){var l;(l=this.renderLazyListItems)==null||l.call(this,z);l=this.JSC$22777_containerElement.querySelectorAll(this.supportedSyncItems);if(l.length>z)return l[z]};
var d4r=function(z,l){z.activeItem&&z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));l.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));z.activeItem=l};
M2.prototype.scrollToItem=function(z){z=this.getScrollPositionForItem(z);this.JSC$22777_containerElement.scrollTop!==z&&this.JSC$22777_scrollAnimation.start(this.JSC$22777_containerElement.scrollTop,z,300)};
M2.prototype.getScrollPositionForItem=function(z){if(this.JSC$22777_containerElement.querySelectorAll(this.supportedSyncItems)[0]===z)return 0;var l,I=((l=this.options)==null?0:l.percentOffset)?this.JSC$22777_containerElement.clientHeight*this.options.percentOffset:0;z=_.ws(z).y+this.JSC$22777_containerElement.scrollTop-(_.ws(this.JSC$22777_containerElement).y+I);return Math.max(0,Math.min(z,this.JSC$22777_containerElement.scrollHeight-this.JSC$22777_containerElement.offsetHeight))};
M2.prototype.onScroll=function(){this.activeItemBelowSyncPosition=oNZ(this);if(this.activeItem&&!this.JSC$22777_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22777_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var z;switch((z=this.options)==null?void 0:z.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":sQZ(this,!rAT(this));PWa(this);break;default:sQZ(this,!0)}}};
var sQZ=function(z,l){var I,b;_.O(function(v){if(v.nextAddress==1){if(z.browsingMode)return v.return();z.browsingMode=!0;l&&z.hostElement.classList.add("browsing-mode");z.playerExitBrowsingModeListener=function(){SAa(z,!1)};
return v.yield(_.R0(),2)}I=v.yieldResult;(b=I)==null||b.addEventListener("SEEK_TO",z.playerExitBrowsingModeListener);_.qe(v)})},SAa=function(z,l){l=l===void 0?!0:l;
z.browsingMode&&(z.browsingMode=!1,z.hostElement.classList.remove("browsing-mode"),l&&z.scrollToItem(z.activeItem),$4Z(z))},$4Z=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return z.playerExitBrowsingModeListener?b.yield(_.R0(),3):b.jumpTo(0);l=b.yieldResult;(I=l)==null||I.removeEventListener("SEEK_TO",z.playerExitBrowsingModeListener);z.playerExitBrowsingModeListener=void 0;_.qe(b)})},PWa=function(z){var l;
((l=z.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(rAT(z)?z.hostElement.classList.remove("browsing-mode"):z.activeItem&&z.hostElement.classList.add("browsing-mode"))},oNZ=function(z){if(!z.activeItem)return!1;
var l,I=((l=z.options)==null?0:l.percentOffset)?z.JSC$22777_containerElement.clientHeight*z.options.percentOffset:0;return z.activeItem.offsetTop>=z.JSC$22777_containerElement.scrollTop+I},rAT=function(z){if(!z.activeItem)return!1;
var l=z.activeItem.offsetTop+14<=z.JSC$22777_containerElement.scrollTop+z.JSC$22777_containerElement.clientHeight;return z.activeItem.offsetTop+z.activeItem.clientHeight-14>=z.JSC$22777_containerElement.scrollTop&&l};
M2.prototype.panelContentVisibleChanged=function(z){(this.contentVisible=z)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var e7T=function(z,l){z.syncEntityKey=l;var I;(I=z.unsubscribeFromTimedMarkersListSyncEntity)==null||I.call(z);T1Q(z)},wlZ=function(z,l){z.options=l};var p$=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return z};
_.m(p$,_.q);_.p=p$.prototype;_.p.detached=function(){var z;(z=this.scrollController)==null||z.dispose();this.scrollController=void 0};
_.p.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"}}}};
_.p.dataChanged=function(){var z=this;_.IR(this,function(){if(z.scrollController){var l;(l=z.scrollController)==null||SAa(l,!1);var I,b,v;(b=z.scrollController)==null||e7T(b,(v=(I=z.data)==null?void 0:I.syncModelEntityKey)!=null?v:"default-macro-markers-list-renderer-entity-key");var M,x,g;(g=z.scrollController)==null||wlZ(g,{percentOffset:(M=z.data)==null?void 0:M.selectedItemAlignmentPercentOffset,floatingPillType:(x=z.data)==null?void 0:x.floatingPillType})}else{var G,u,Z,H;z.scrollController=
new M2(z.contents,z.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(H=(G=z.data)==null?void 0:G.syncModelEntityKey)!=null?H:"default-macro-markers-list-renderer-entity-key",{percentOffset:(u=z.data)==null?void 0:u.selectedItemAlignmentPercentOffset,floatingPillType:(Z=z.data)==null?void 0:Z.floatingPillType},function(y){z.renderLazyListItems(y)})}z.scrollController.panelContentVisibleChanged(!!z.panelContentVisible)})};
_.p.computeButtonShape=function(){var z=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){z.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.p.renderLazyListItems=function(z){for(var l=this.contents.children,I=0,b=0;b<l.length;b++){var v=void 0;(v=l[b].ytLazyListBehavior)==null||v.fillRemainingListItems();var M=void 0,x=void 0;v=_.k((M=this.data)==null?void 0:(x=M.contents)==null?void 0:x[b],_.FtA);x=M=void 0;if((M=v)==null?0:(x=M.contents)==null?0:x.length)I+=v.contents.length;if(I>=z)break}};
_.p.handleSetActivePanelItemAction=function(z){if((z=_.k(z,SvQ))&&this.panelTargetId===z.panelTargetId){z=z.itemIndex;var l,I,b=(I=(l=this.data)==null?void 0:l.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key",v;((v=this.syncEntity)==null?void 0:v.activeItemIndex)!==z&&this.ytdReduxBehavior.dispatch(_.cU("markersEngagementPanelSyncEntity",b,{key:b,activeItemIndex:z}))}};
_.p.onSyncClick=function(){var z;(z=this.scrollController)==null||SAa(z)};
_.p.panelContentVisibleChanged=function(){var z;(z=this.scrollController)==null||z.panelContentVisibleChanged(!!this.panelContentVisible)};
p$.prototype.panelContentVisibleChanged=p$.prototype.panelContentVisibleChanged;p$.prototype.dataChanged=p$.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],p$.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],p$.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],p$.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],p$.prototype,"useCustomColors",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],p$.prototype,"panelTargetId",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],p$.prototype,"panelContentVisible",void 0);
_.e([_.qX("#contents"),_.w("design:type",HTMLElement)],p$.prototype,"contents",void 0);_.e([_.X({selectorArgs:["data.syncModelEntityKey"],selector:_.l35}),_.w("design:type",Object)],p$.prototype,"syncEntity",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],p$.prototype,"dataChanged",null);
_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],p$.prototype,"panelContentVisibleChanged",null);_.e([_.S({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],p$);
_.r(p$,"ytd-macro-markers-list-renderer",function(){if(YAa!==void 0)return YAa;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YAa=z},{mode:1});var AA7;var DM=function(){return _.q.apply(this,arguments)||this};
_.m(DM,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],DM.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],DM.prototype,"data",void 0);_.e([_.S({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],DM);
_.r(DM,"ytd-error-corrections-section-item-renderer",function(){if(AA7!==void 0)return AA7;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return AA7=z},{mode:1});var Ws7;var xL=function(){return _.q.apply(this,arguments)||this};
_.m(xL,_.q);xL.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xL.prototype,"data",void 0);_.e([_.S({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],xL);
_.r(xL,"ytd-error-corrections-section-renderer",function(){if(Ws7!==void 0)return Ws7;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Ws7=z},{mode:1});var nNR;var OJ=function(){return _.q.apply(this,arguments)||this};
_.m(OJ,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],OJ.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],OJ.prototype,"data",void 0);_.e([_.S({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],OJ);
_.r(OJ,"ytd-topic-link-renderer",function(){if(nNR!==void 0)return nNR;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return nNR=z},{mode:1});var Lsr;var g$=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("kevlar_modern_sd_v2");z.modernLockupV2=_.C("modernize_structured_description_playlist_lockups_v2");z.modernTypography=_.C("web_modern_typography");return z};
_.m(g$,_.q);g$.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],g$.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],g$.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],g$.prototype,"modernLockupV2",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],g$.prototype,"modernTypography",void 0);_.e([_.S({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],g$);
_.r(g$,"ytd-video-description-course-section-renderer",function(){if(Lsr!==void 0)return Lsr;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Lsr=z},{mode:1});var U48;var Gl=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("kevlar_modern_sd_v2");z.modernTypography=_.C("web_modern_typography");return z};
_.m(Gl,_.q);Gl.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Gl.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gl.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gl.prototype,"modernTypography",void 0);
_.e([_.S({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Gl);
_.r(Gl,"ytd-video-description-files-section-renderer",function(){if(U48!==void 0)return U48;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return U48=z},{mode:1});var avQ;var N2=function(){return _.q.apply(this,arguments)||this};
_.m(N2,_.q);N2.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],N2.prototype,"data",void 0);_.e([_.S({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],N2);
_.r(N2,"ytd-video-description-gaming-section-renderer",function(){if(avQ!==void 0)return avQ;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return avQ=z},{mode:1});var VNQ;var EJ=function(){var z=_.q.apply(this,arguments)||this;z.isExpanded=!1;return z};
_.m(EJ,_.q);EJ.prototype.computeHasDefaultMetadataEndpoint=function(z){var l;z=z==null?void 0:(l=z.defaultMetadata)==null?void 0:l.runs;return!(!z||z.length!==1||!z[0].navigationEndpoint)};
EJ.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.vP.Object.defineProperties(EJ.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EJ.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],EJ.prototype,"isExpanded",void 0);_.e([_.X({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],EJ.prototype,"hasDefaultMetadataEndpoint",void 0);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],EJ.prototype,"isExpandable",null);_.e([_.B("data","isExpandable","isExpanded"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],EJ.prototype,"showExpandedMetadata",null);_.e([_.S({is:"ytd-info-row-renderer",disableElementRegistration:!0})],EJ);
_.r(EJ,"ytd-info-row-renderer",function(){if(VNQ!==void 0)return VNQ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return VNQ=z},{mode:1});var jQT;var uy=function(){var z=_.q.apply(this,arguments)||this;z.currentIndex=0;z.supportComponentResize=!0;z.modern=_.C("kevlar_modern_sd_v2");z.JSC$22807_lastScrollContainerWidth=NaN;return z};
_.m(uy,_.q);_.p=uy.prototype;
_.p.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"}}}};
_.p.getItemsPath=function(){return"videoLockups"};
_.p.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.p.onIronResize=function(){this.updateVideoLockupStyles()};
_.p.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.p.updateVideoLockupStyles=function(){var z;this.JSC$22807_scrollContainer!==void 0&&(z=this.videoLockups)!=null&&z.length&&(z=this.JSC$22807_scrollContainer.clientWidth,z!==this.JSC$22807_lastScrollContainerWidth&&(this.JSC$22807_lastScrollContainerWidth=z,_.R8(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(z*.8,415)+"px"}),_.gC(this.hostElement,"iron-resize")))};
_.vP.Object.defineProperties(uy.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var z=[],l;if((l=this.data)==null||!l.carouselLockups)return z;l=_.D(this.data.carouselLockups);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;((b=_.k(I,gdD))==null?0:b.videoLockup)&&z.push(_.k(I,gdD).videoLockup)}return z}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.videoLockups)==null||!z.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var z=[],l;if((l=this.data)==null||!l.carouselLockups)return z;var I;return(I=_.k(this.data.carouselLockups[this.scrollCount],gdD))==null?void 0:I.infoRows}}});
uy.prototype.dataChanged=uy.prototype.dataChanged;uy.prototype.onIronResize=uy.prototype.onIronResize;uy.prototype.hiddenChanged=uy.prototype.hiddenChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],uy.prototype,"componentBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],uy.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uy.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],uy.prototype,"inlineStructuredDescription",void 0);_.e([_.X({value:2}),_.w("design:type",Number)],uy.prototype,"initialCount",void 0);_.e([_.X(),_.w("design:type",Object)],uy.prototype,"currentIndex",void 0);
_.e([_.X(),_.w("design:type",Number)],uy.prototype,"scrollCount",void 0);_.e([_.X(),_.w("design:type",Object)],uy.prototype,"supportComponentResize",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],uy.prototype,"contentHidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uy.prototype,"modern",void 0);_.e([_.qX("#scroll-container"),_.w("design:type",HTMLDivElement)],uy.prototype,"JSC$22807_scrollContainer",void 0);
_.e([_.By("contentHidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uy.prototype,"hiddenChanged",null);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],uy.prototype,"videoLockups",null);_.e([_.B("videoLockups"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],uy.prototype,"hasVideoLockups",null);
_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uy.prototype,"onIronResize",null);_.e([_.B("data","scrollCount"),_.w("design:type",Object),_.w("design:paramtypes",[])],uy.prototype,"infoRows",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uy.prototype,"dataChanged",null);_.e([_.S({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],uy);
_.r(uy,"ytd-video-description-music-section-renderer",function(){if(jQT!==void 0)return jQT;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return jQT=z},{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var JAv;var ZM=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("kevlar_modern_sd_v2");z.modernTypography=_.C("web_modern_typography");return z};
_.m(ZM,_.q);ZM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.e([_.X({}),_.w("design:type",Object)],ZM.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ZM.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ZM.prototype,"modernTypography",void 0);
_.e([_.S({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],ZM);
_.r(ZM,"ytd-video-description-transcript-section-renderer",function(){if(JAv!==void 0)return JAv;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return JAv=z},{mode:1});var ze8;_.uO(_.P(function(z){var l=_.F1(_.$UQ,function(){return z.data().firstProviderLinkStatusEntityKey}),I=_.F1(_.$UQ,function(){return z.data().secondProviderLinkStatusEntityKey}),b=function(){var v,M;
return((v=l())==null?void 0:v.linked)||((M=I())==null?void 0:M.linked)};
return _.N("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.N(_.Rf,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return z.data().sectionTitle}}),_.N(_.Rf,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return b()?z.data().connectedMessage:z.data().notConnectedMessage}}),_.N(_.E,{cond:b,
then:function(){return _.N(_.TS,{data:function(){return z.data().connectedButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.N(_.E,{cond:function(){return!b()},
then:function(){return _.N(_.TS,{data:function(){return z.data().notConnectedButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ik"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;return _.N("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.N("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.N(_.Rf,{text:function(){return l().sectionTitle}})),_.N("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.N(_.Rf,{text:function(){return l().bodyHeader}})),_.N("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.N(_.Rf,{text:function(){return l().bodyText}})),_.N(_.E,{cond:function(){return l().attributionText},
then:function(){return _.N("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.N(_.Rf,{text:function(){return l().attributionText}}))}}))},"Jk"),"how-this-was-made-section-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){return _.N("yt-video-description-youchat-section-view-model",{class:_.m9("ytVideoDescriptionYouchatSectionViewModelHost")},_.N("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.N(_.Rf,{text:function(){return z.data().sectionTitle}})),_.N("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.N(_.Rf,{text:function(){return z.data().subHeaderText}})),_.N("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.N(_.h4,{data:function(){return _.k(z.data().primaryButton,
_.N1)}})))},"Kk"),"yt-video-description-youchat-section-view-model",{props:{data:_.mB}});var HI=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return z};
_.m(HI,_.q);_.p=HI.prototype;
_.p.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}}}}}};
_.p.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.p.dataChanged=function(){var z,l;this.hasDescriptionOnly=!(((z=this.data)==null?void 0:(l=z.items)==null?void 0:l.length)!==1||!_.k(this.data.items[0],AD))};
_.p.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.p.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.p.autoFocusDescription=function(){var z;((z=_.pG().resolve(_.MB(_.T$)))==null?0:z.isKeyBoardInUse())&&this.description&&_.JW(this.description)};
_.p.resize=function(){if(_.C("kevlar_disable_sd_resize"))this.JSC$22816_cardList&&_.gC(this.JSC$22816_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.gC(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.gC(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.p.scrollToSection=function(z){if(z=this.getSectionElement(z))_.Gb(this.hostElement,"yt-scroll-to-watch-element",[z]),z.focus()};
_.p.getSectionElement=function(z){switch(z){case "infocards-item-section":var l;return(l=this.infocardsSection)!=null?l:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var b;return(b=this.howThisWasMadeSection)!=null?b:null;case "files-item-section":var v;return(v=this.filesSection)!=null?v:null;default:return null}};
_.p.handleSetActiveItemAction=function(z){var l=_.k(z,SvQ),I=l&&(l==null?void 0:l.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22816_cardList;if(l&&I){z=this.currentActiveChapter;var b=this.currentActiveProblem;l=I==null?void 0:I.getItemByIndex(l.itemIndex);var v=I=!0;l&&(l.active=!0,l.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=z!==l,v=!1,this.currentActiveChapter=l):(l==null?void 0:l.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,v=b!==l,this.currentActiveProblem=l));z&&I&&(z.active=!1);b&&v&&(b.active=!1)}};
_.vP.Object.defineProperties(HI.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.C("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
HI.prototype.onYtExpanderMoreTapped=HI.prototype.onYtExpanderMoreTapped;HI.prototype.onHiddenChanged=HI.prototype.onHiddenChanged;HI.prototype.dataChanged=HI.prototype.dataChanged;HI.prototype.panelContentVisibleChanged=HI.prototype.panelContentVisibleChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],HI.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],HI.prototype,"ironResizableBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],HI.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],HI.prototype,"panelContentVisible",void 0);_.e([_.X(),_.w("design:type",Boolean)],HI.prototype,"hasDescriptionOnly",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],HI.prototype,"inlineStructuredDescription",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],HI.prototype,"hidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],HI.prototype,"shortsPanel",void 0);_.e([_.X(),_.w("design:type",Object)],HI.prototype,"videoSummary",void 0);_.e([_.X(),_.w("design:type",Object)],HI.prototype,"merchShelf",void 0);
_.e([_.B("videoSummary"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],HI.prototype,"showVideoSummary",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],HI.prototype,"engagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],HI.prototype,"watchWhileSdp",void 0);_.e([_.qX("ytd-expandable-video-description-body-renderer"),_.w("design:type",Object)],HI.prototype,"description",void 0);
_.e([_.qX("ytd-horizontal-card-list-renderer"),_.w("design:type",Object)],HI.prototype,"JSC$22816_cardList",void 0);_.e([_.qX("ytd-horizontal-card-list-renderer[center-items]"),_.w("design:type",Object)],HI.prototype,"problemWalkthroughCardList",void 0);_.e([_.qX("ytd-shelf-renderer"),_.w("design:type",Object)],HI.prototype,"shelfSection",void 0);_.e([_.qX("ytd-video-description-music-section-renderer"),_.w("design:type",Object)],HI.prototype,"musicMetadataSection",void 0);
_.e([_.qX("ytd-video-description-infocards-section-renderer"),_.w("design:type",Object)],HI.prototype,"infocardsSection",void 0);_.e([_.qX("ytd-video-description-transcript-section-renderer"),_.w("design:type",Object)],HI.prototype,"transcriptSection",void 0);_.e([_.qX("how-this-was-made-section-view-model"),_.w("design:type",Object)],HI.prototype,"howThisWasMadeSection",void 0);_.e([_.qX("ytd-video-description-files-section-renderer"),_.w("design:type",Object)],HI.prototype,"filesSection",void 0);
_.e([_.By("panelContentVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],HI.prototype,"panelContentVisibleChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],HI.prototype,"dataChanged",null);_.e([_.By("hidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],HI.prototype,"onHiddenChanged",null);
_.e([_.tP("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],HI.prototype,"onYtExpanderMoreTapped",null);_.e([_.S({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],HI);
_.r(HI,"ytd-structured-description-content-renderer",function(){if(ze8!==void 0)return ze8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ze8=z},{mode:2});var l_Q;var I_v;var y_=function(){return _.q.apply(this,arguments)||this};
_.m(y_,_.q);y_.prototype.computeAriaLabel=function(z){var l,I;return(z==null?void 0:(l=z.accessibility)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label)||_.mY("LOADING",void 0,"Loading")};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],y_.prototype,"data",void 0);_.e([_.X({computed:"computeAriaLabel(data)"}),_.w("design:type",String)],y_.prototype,"ariaLabel",void 0);_.e([_.Wy({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],y_);
_.r(y_,"yt-content-loading-renderer",function(){if(I_v===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;l_Q===void 0&&(l_Q=document.createElement("template"));var b=l_Q;I.call(l,b.content.cloneNode(!0),z.content.firstChild);I_v=z}z=I_v;return z},{mode:_.yP("kevlar_poly_si_batch_j043")?1:2});_.uO(_.P(function(z){var l=_.D(_.Z_(!1,void 0,"OZMtVb")),I=l.next().value,b=l.next().value;l=_.D(_.Z_(!1,void 0,"qWERsf"));var v=l.next().value,M=l.next().value;_.Sm(function(){var G=_.k(z.data().collaboratePlaylistCollaborationSetting,zPA);G&&b(G.switchedOnByDefault);var u=_.k(z.data().allowNewCollaboratorsPlaylistCollaborationSetting,zPA);u&&M(u.switchedOnByDefault);if(!G&&!u||!G&&z.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")b(!0),M(!0)});
var x=function(G){b(G);M(G);var u=z.data().playlistCollaborationEntityKey||"";var Z=_.M8().getState();(Z=_.Cc(Z.entities,"playlistCollaborationEntity",u))&&(Z==null?void 0:Z.isCollaborative)===G||_.M8().dispatch(_.cU("playlistCollaborationEntity",u,Object.assign({},Z,{isCollaborative:G})))},g=function(G){M(G)};
return _.N("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.N("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.N(_.TS,{data:function(){return z.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(G){return _.N(_.eu0,{data:G.data,
onSwitch:x})}})),_.N(_.E,{cond:I,
then:function(){return _.N(_.xP,null,_.N("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.N(_.TS,{data:function(){return z.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(G){return _.N(_.eu0,{data:G.data,
onSwitch:g,overrideDisabled:!1})}})),_.N(_.E,{cond:v,
then:function(){return _.N("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.N(_.TS,{data:function(){return z.data().copyLinkButton}},{buttonViewModel:_.h4}))}}),_.N("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.N(_.TS,{data:function(){return z.data().playlistCollaborators}},{contentListItemViewModel:_.ADC})))}}))},"Lk"),"playlist-collaboration-view-model",{props:{data:_.mB}});var bor=_.P(function(z){var l=z.data;var I=z.customCommandResolver;return _.N(_.xP,null,_.N("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.N(_.TS,{data:function(){return l().adAvatar}},{adAvatarViewModel:function(b){return _.N(_.Cku,{data:b.data,
customCommandResolver:I})}})),_.N("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.N(_.E,{cond:function(){return l().headline},
then:function(b){return _.N(_.Rf,{text:b,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.N("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.N(_.TS,{data:function(){return l().adBadge}},{adBadgeViewModel:function(b){return _.N(_.ot,{data:b.data,
hasDot:function(){return l().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.N(_.TS,{data:function(){return l().primaryDetailsLine}},{adDetailsLineViewModel:function(b){return _.N(_.Pm,{data:b.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Mk"),vz8=_.P(function(z){var l=z.data;
var I=z.customCommandResolver;return _.N("ad-avatar-lockup-view-model",{class:function(){var b;return((b=l().interaction)==null?0:b.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.xl(_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ}),_.a0(function(){return l().interaction},I)),
"aria-label":function(){var b,v;return(b=l().interaction)==null?void 0:(v=b.accessibility)==null?void 0:v.label}},_.N(_.Q7,null,_.N(_.is,{when:function(){return l().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.N(bor,{data:l,
customCommandResolver:I})}),_.N(_.F0,null,function(){return null})))},"Nk");_.uO(_.P(function(z){var l=z.data;var I=z.panelContentVisibility;z=_.ps({visibilityCallback:function(M){var x,g=(x=l().interaction)==null?void 0:x.onFirstVisible;M&&g&&_.ae(g)},
showOption:_.FJ});var b=_.a0(function(){return l().interaction},AyQ);
_.oj(function(){var M,x;if(x=_.W8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var g;x=(g=x())==null?void 0:g.onLayoutVisibleCallback}else x=null;(M=x)==null||M()});
var v=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.N("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.xl(z,b)},_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.N(_.E,{cond:_.Q9k("(min-width: "+((0,_.fX)()+_.n_)+"px) or (max-width: 600px)"),then:function(){return _.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(M){return _.N(_.AU,{data:M.data,
targetHeight:80,customCommandResolver:AyQ})}})}})),_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.N(_.TS,{data:function(){return l().adAvatarLockup}},{adAvatarLockupViewModel:function(M){return _.N(vz8,{data:M.data,
customCommandResolver:AyQ})}})),_.N(_.E,{cond:v,
then:function(){return _.N(_.TS,{data:function(){return l().adButton}},{adButtonViewModel:function(M){return _.N(_.YQ,{data:M.data,
customCommandResolver:AyQ})}})},
else:function(){return _.N(_.TS,{data:function(){return l().menu}},{buttonViewModel:_.h4})}}),_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.N(_.TS,{data:function(){var M=_.k(l().toggleButton,_.uS);
return{toggleButtonViewModel:Object.assign({},M,{isTogglingDisabled:!0,isToggled:v()})}}},{toggleButtonViewModel:_.vL})))))},"Ok"),"panel-ad-header-image-lockup-view-model",{props:{data:_.mB,
panelContentVisibility:_.mB}});_.uO(_.P(function(z){var l=function(){return _.k(z.data().inputComposerViewModel,l1R)},I=function(){var R;
return((R=l())==null?void 0:R.youchatPendingResponseEntityKey)||""},b=_.F1(_.Z_C,I),v=function(){var R;
return!((R=b())==null||!R.isPendingResponse)},M=_.D(_.Z_(!0,void 0,"UmKX1e")),x=M.next().value,g=M.next().value,G=function(){return l().sectionTargetId||"youchat_messages_section"};
M=_.z1("yt-chat-input-view-model");var u=_.VK("textarea"),Z=_.F1(T4R,"chat_input_view_model_state"),H=cyQ(),y=function(){var R;return!((R=Z())==null||!R.value)};
_.Sm(function(){var R;if(!y()&&((R=l())==null?0:R.welcomeFeatureContinuation)){var F;((F=l())==null?0:F.setPendingResponseOnWelcome)&&_.H_W(I())(!0);R={continuationCommand:{token:l().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var Y;F=String(Math.floor(((Y=_.mE())==null?void 0:Y.getCurrentTime())||0)*1E3);Y={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:F}};_.nE(R,{form:{formData:Y}});H(!0)}var c=G(),d;(d=_.pG().resolve(_.MB(_.Va)))==null||
d.addEventListener("yt-navigate-start",function(){_.YU.remove(c);H(!1)},{once:!0})});
var f=function(){var R=u.value.value;u.value.value="";W0a(u.value);var F,Y=((F=l())==null?void 0:F.enableGradientColorBg)||!1;F=nS0(G(),R,Y);_.nE(F);var c=_.H_W(I()),d;_.ae(((d=l())==null?void 0:d.onSubmitCommand)||{});c(!0);var V;d=String(Math.floor(((V=_.mE())==null?void 0:V.getCurrentTime())||0)*1E3);var A;V={continuationCommand:{token:(A=l())==null?void 0:A.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};R={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:R,
playerOffsetMs:d}};_.nE(V,{form:{formData:R},commandController:{onSuccess:function(){c(!1)},
onServerError:function(){var W=G();_.nE({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:W}}]}}});c(!1)}}})};
return _.N("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:M},_.N("div",{class:"chatInputViewModelChatInputWrapper"},_.N("form",{class:"chatInputViewModelChatInputForm"},_.N("textarea",{class:"chatInputViewModelChatInput",el:u,"on:keydown":_.KK(function(R){var F=v()||!1;W0a(u.value);F||R.key!=="Enter"||R.shiftKey||(R.preventDefault(),f());return!1}),
"on:keyup":_.KK(function(){g(u.value.value.length===0);return!1}),
placeholder:function(){var R,F;var Y=_.k((F=l())==null?void 0:F.inputFormField,YvD);return Y==null?void 0:(R=Y.contentProperties)==null?void 0:R.placeholderText},
rows:1}),_.N(_.h4,{data:function(){return _.k(z.data().sendButton,_.N1)},
onClick:function(R){R.preventDefault();f();g(u.value.value.length===0)},
buttonOverrides:function(){return{disabled:x()||v()}}})),_.N(_.Rf,{className:"chatInputViewModelChatDisclaimer",
text:function(){var R;return(R=_.k(z.data().disclaimer,_.Qc_))==null?void 0:R.text}})))},"Pk"),"yt-chat-input-view-model",{props:{data:_.mB}});var M38=["engagement-panel-clip-create","engagement-panel-clip-view"],pbZ=0,f$=function(){var z=_.q.apply(this,arguments)||this;var l;z.headerData=(l=z.data)==null?void 0:l.header;z.darkerPanels=_.C("web_watch_darker_panels");z.matchContentTheme=_.C("web_watch_panel_content_match_theme");z.disableAutoFill=!1;z.isFullscreen=!1;z.isTheaterMode=!1;z.modernPanels=_.C("kevlar_watch_modern_panels");z.liveChatReplyPanel=!1;z.enableAnchoredPanel=_.C("desktop_shorts_v2_anchored_panel");z.disableBackdropFilter=
_.C("web_disable_backdrop_filter");z.isPersistentPanel=!1;z.trackEngagementPanelVisibility=_.C("web_watch_track_engagement_panel_visibility");z.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 z};
_.m(f$,_.q);_.p=f$.prototype;
_.p.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(z){var l;return(z==null?void 0:(l=z.webComponentHint)==null?void 0:l.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.p.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var z;if((z=this.hostElement.parentElement)==null?0:z.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.p.detached=function(){this.updateTheaterDisablement()};
_.p.showPanel=function(){var z=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ow.addJob(function(){z.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.p.maybeScrollToItemSection=function(z){var l=this,I,b=z==null?void 0:(I=z.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;b&&_.ow.addJob(function(){var v;(v=l.sectionListRendererElement)==null||v.scrollToItemSection(b)},8)};
_.p.hidePanel=function(){var z=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ow.addJob(function(){z.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.p.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.p.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.p.updatePanel=function(z,l,I,b){var v=this;if((z=z==null?void 0:z.engagementPanelSectionListRenderer)||b){if(z){b=z.header;var M=z.content,x=z.footer;(z=z.targetId)&&this.set("data.targetId",z);b&&this.set("data.header",b);M&&this.set("data.content",M);x&&this.set("data.footer",x)}else b&&(z=b.content,M=b.secondaryHeaderContent,(b=b.targetId)&&this.set("data.targetId",b),z&&this.set("data.content",z),M&&(this.secondaryHeaderData=M));this.updateChildVisibilityProperties();if(l){var g;_.C("kevlar_update_panel_focus_scroll_killswitch")||
(g={preventScroll:!0});this.focus(g)}_.IR(this,function(){_.gC(v.hostElement,"yt-refit");v.maybeScrollToItemSection(I)})}};
_.p.computeHeaderData=function(){var z,l=(0,_.h7.unsafeClone)((z=this.data)==null?void 0:z.header);if(l){z=new _.Z0(Object.keys(l)[0]);var I=_.k(l,z),b=_.k(this.secondaryHeaderData,z);b&&_.rZ(l,z,Object.assign({},b,I))}return l};
_.p.getReloadContinuation=function(){var z,l,I,b=_.D(((z=this.data)==null?void 0:(l=z.content)==null?void 0:(I=l.sectionListRenderer)==null?void 0:I.continuations)||[]);for(z=b.next();!z.done;z=b.next())if(z=z.value,z.reloadContinuationData)return z.reloadContinuationData.continuation};
_.p.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var z;((z=this.data)==null?0:z.targetId)&&(z=this.contentElement.firstElementChild)&&z.setAttribute("panel-target-id",this.data.targetId)};
_.p.forwardPopupClosedToFlowRootRenderer=function(){var z=_.Hy(this.hostElement).querySelector("ytd-flow-root-renderer");if(z)z.onPopupClosed()};
_.p.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var z;if(!M38.includes((z=this.theaterDisablementPanelIdentifier)!=null?z:""))if(z=_.C("web_watch_imax_theater_mode")&&this.isTheaterMode,z=_.C("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||z,_.C("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||z){var l;this.visibility=(l=this.data)==null?void 0:l.visibility;var I;this.trackEngagementPanelVisibility&&((I=this.data)==null?void 0:I.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var b,v,M,x;this.contentEmpty=!!(((b=this.data)==null?0:(v=b.content)==null?0:v.structuredDescriptionContentRenderer)&&Object.keys((M=this.data)==null?void 0:(x=M.content)==null?void 0:
x.structuredDescriptionContentRenderer).length===0);(l=_.pG().resolve(_.lL))&&l.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.p.isTheaterModeChanged=function(){_.C("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.p.isFullscreenChanged=function(){_.C("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.p.focus=function(z){if(this.header)this.header.focus(z);else{var l;(l=_.Hy(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||l.focus(z)}};
_.p.visibilityChanged=function(){if(!_.C("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var z=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",v=b||!this.lastVisibility,M,x,g,G=((M=this.data)==null?void 0:(x=M.identifier)==null?void 0:
x.tag)||((g=this.data)==null?void 0:g.panelIdentifier);if(z&&v){var u;((u=this.data)==null?0:u.onShowCommands)&&_.ZE(this.hostElement,this.data.onShowCommands,this.hostElement);G&&_.vF().dispatch(_.GZ({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:G}}))}else if(l&&I){var Z;((Z=this.data)==null?0:Z.onHideCommands)&&_.ZE(this.hostElement,this.data.onHideCommands,this.hostElement);G&&_.vF().dispatch(_.GZ({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:G}}))}z&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*pbZ++));_.C("kevlar_watch_focus_on_engagement_panels")&&z&&b&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.p.notifyVisibilityChanged=function(z){var l;_.EK(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,z,(l=this.data)==null?void 0:l.targetId])};
_.p.updateTheaterDisablement=function(){if(!_.C("kevlar_watch_theater_disablement_killswitch")){var z=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&M38.includes(z)&&!_.C("watch_next_grid_ignore_disallowed_panels")){var l=_.wo(_.vF().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";z!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=l,this.theaterDisablementPanelIdentifier=
z),l&&_.Gb(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.p.clearTheaterDisablement=function(){_.Gb(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.p.updateChildVisibilityProperties=function(){this.hostElement||_.C("kevlar_panel_property_init_killswitch")||this._enableProperties();var z=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=z);var l,I=(l=this.headerElement)==null?void 0:l.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){l=z==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=l;I=_.Hy(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==l&&I.polymerController.set("data.isToggled",l)}var b;if(l=(b=this.contentElement)==null?void 0:b.firstElementChild)if(z&&z!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")l.removeAttribute("panel-content-visible");else{l.setAttribute("panel-content-visible","");var v;(v=l.markDirty)==null||v.call(l)}};
_.p.onYtChangeEngagementPanelVisibilityAction=function(z){var l=this,I,b=(I=this.data)==null?void 0:I.targetId,v,M,x;I=((v=this.data)==null?void 0:(M=v.identifier)==null?void 0:M.tag)||((x=this.data)==null?void 0:x.panelIdentifier);var g=_.k(z,_.DR_),G;z=b&&(g==null?void 0:g.targetId)===b||I&&(g==null?void 0:(G=g.panelIdentifier)==null?void 0:G.tag)===I;this.dialog&&z&&(g==null?void 0:g.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(b==="engagement-panel-comments-section"?_.Gb(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Gb(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",I]));!_.C("kevlar_use_engagement_panel_management_component")&&z&&(b=g.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!b?_.ow.addJob(function(){l.visibility=g.visibility},2,this.hideDelayMs):this.visibility=g.visibility,g.visibility&&this.notifyVisibilityChanged(g.visibility))};
_.p.onYtScrollToEngagementPanelCommand=function(z){var l,I=(l=this.data)==null?void 0:l.targetId,b,v,M;l=((b=this.data)==null?void 0:(v=b.identifier)==null?void 0:v.tag)||((M=this.data)==null?void 0:M.panelIdentifier);z=_.k(z,_.CCI);var x;(I&&(z==null?void 0:z.targetId)===I||l&&(z==null?void 0:(x=z.panelIdentifier)==null?void 0:x.tag)===l)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Gb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.p.attachVEs=function(z){var l,I;(z==null?0:(l=z.content)==null?0:(I=l.productListRenderer)==null?0:I.trackingParams)&&_.iY().graftServerVe(z.content.productListRenderer.trackingParams);var b,v;(z==null?0:(b=z.content)==null?0:(v=b.transcriptRenderer)==null?0:v.trackingParams)&&_.iY().graftServerVe(z.content.transcriptRenderer.trackingParams)};
_.p.onYtUpdateEngagementPanelAction=function(z){var l,I=(l=this.data)==null?void 0:l.targetId;z=_.k(z,oRD);I&&(z==null?void 0:z.targetId)===I&&(this.updatePanel({engagementPanelSectionListRenderer:{header:z==null?void 0:z.header,content:z==null?void 0:z.content}},!1),this.attachVEs(z))};
_.p.onYtShowEngagementPanelScrimAction=function(z){var l,I=(l=this.data)==null?void 0:l.targetId;z=_.k(z,dZa);I&&(z==null?void 0:z.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.p.onYtHideEngagementPanelScrimAction=function(z){var l,I=(l=this.data)==null?void 0:l.targetId;z=_.k(z,cTR);I&&(z==null?void 0:z.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.p.getIdentifier=function(){var z,l,I;return((z=this.data)==null?void 0:z.panelIdentifier)||((l=this.data)==null?void 0:(I=l.identifier)==null?void 0:I.tag)};
_.p.getSurface=function(){var z,l;return(z=this.data)==null?void 0:(l=z.identifier)==null?void 0:l.surface};
_.vP.Object.defineProperties(f$.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var z=this.getIdentifier();return z==="engagement-panel-youchat"||z==="PAyouchat"}}});
f$.prototype.visibilityChanged=f$.prototype.visibilityChanged;f$.prototype.isFullscreenChanged=f$.prototype.isFullscreenChanged;f$.prototype.isTheaterModeChanged=f$.prototype.isTheaterModeChanged;f$.prototype.dataChanged=f$.prototype.dataChanged;f$.prototype.forwardPopupClosedToFlowRootRenderer=f$.prototype.forwardPopupClosedToFlowRootRenderer;f$.prototype.onYtRendererstamperFinished=f$.prototype.onYtRendererstamperFinished;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],f$.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],f$.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],f$.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],f$.prototype,"data",void 0);
_.e([_.X({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.w("design:type",Object)],f$.prototype,"headerData",void 0);_.e([_.X(),_.w("design:type",Object)],f$.prototype,"secondaryHeaderData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"visibility",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"contentEmpty",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"scrimmed",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"dialog",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"dropdown",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"darkerPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"matchContentTheme",void 0);_.e([_.X(),_.w("design:type",Object)],f$.prototype,"disableAutoFill",void 0);
_.e([_.X({reflectToAttribute:!0,value:_.C("optimal_reading_width_comments_ep")}),_.w("design:type",Boolean)],f$.prototype,"optimalReadingWidthComments",void 0);_.e([_.X(),_.w("design:type",Number)],f$.prototype,"hideDelayMs",void 0);_.e([_.X({selector:_.AN,reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"isFullscreen",void 0);_.e([_.X({selector:_.wo,reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"isTheaterMode",void 0);
_.e([_.X(),_.w("design:type",Number)],f$.prototype,"showDelayMs",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.targetId"),_.w("design:type",Object),_.w("design:paramtypes",[])],f$.prototype,"targetId",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],f$.prototype,"webSize",null);_.e([_.X(),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],f$.prototype,"hideFooterBorder",null);
_.e([_.X(),_.w("design:type",Object)],f$.prototype,"isWatch",void 0);_.e([_.X(),_.w("design:type",Object)],f$.prototype,"originalTheaterState",void 0);_.e([_.X(),_.w("design:type",Object)],f$.prototype,"theaterDisablementPanelIdentifier",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"modernPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"isWatchWhilePanel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"shortsPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"liveChatEngagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],f$.prototype,"learningChatEngagementPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"liveChatReplyPanel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"enableAnchoredPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"disableBackdropFilter",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f$.prototype,"isPersistentPanel",void 0);_.e([_.X(),_.w("design:type",Object)],f$.prototype,"trackEngagementPanelVisibility",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],f$.prototype,"headerElement",void 0);
_.e([_.qX("#header > *"),_.w("design:type",HTMLElement)],f$.prototype,"header",void 0);_.e([_.qX("ytd-section-list-renderer"),_.w("design:type",Object)],f$.prototype,"sectionListRendererElement",void 0);_.e([_.qX("panel-ad-header-image-lockup-view-model"),_.w("design:type",HTMLElement)],f$.prototype,"adHeaderImageLockupViewModel",void 0);_.e([_.qX("#content"),_.w("design:type",HTMLElement)],f$.prototype,"contentElement",void 0);
_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f$.prototype,"onYtRendererstamperFinished",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f$.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.e([_.YE("data","isFullscreen","isTheaterMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f$.prototype,"dataChanged",null);
_.e([_.By("isTheaterMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f$.prototype,"isTheaterModeChanged",null);_.e([_.By("isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f$.prototype,"isFullscreenChanged",null);_.e([_.By("visibility"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f$.prototype,"visibilityChanged",null);
_.e([_.S({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],f$);
_.r(f$,"ytd-engagement-panel-section-list-renderer",function(){if(Xlv!==void 0)return Xlv;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Xlv=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var DM0;var C$=function(){var z=_.q.apply(this,arguments)||this;z.lastRenderedPanelIds=new Set;z.visiblePanels=[];z.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return z};
_.m(C$,_.q);_.p=C$.prototype;_.p.dataChanged=function(){if(this.data){for(var z=[],l=_.D(this.data),I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0,v=void 0,M=(b=I)==null?void 0:(v=b.engagementPanelSectionListRenderer)==null?void 0:v.visibility;v=b=void 0;((b=I)==null?0:(v=b.engagementPanelSectionListRenderer)==null?0:v.targetId)&&M!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z.push(I)}this.visiblePanels=z}else this.visiblePanels=[]};
_.p.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}}};
_.p.withoutVisiblePanelById=function(z){return this.visiblePanels.filter(function(l){var I;return((I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==z})};
_.p.onYtChangeEngagementPanelVisibilityAction=function(z){var l=this,I=_.k(z,_.DR_);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var b,v=(b=this.data.find(function(x){var g;return((g=x.engagementPanelSectionListRenderer)==null?void 0:g.targetId)===I.targetId}))==null?void 0:b.engagementPanelSectionListRenderer;
if(v){var M=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(z=this.data.find(function(x){var g;return((g=x.engagementPanelSectionListRenderer)==null?void 0:g.targetId)===I.targetId}))&&(M=[z].concat(_.ht(M)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.length===0?_.ow.addJob(function(){v.visibility=I.visibility;l.visiblePanels=M},10,this.hideDelayMs):(v.visibility=I.visibility,this.visiblePanels=M);
_.EK(this.hostElement,"yt-engagement-panels-visible-changed",[M])}}};
_.p.onRendererstamperFinished=function(){var z=new Set(this.visiblePanels.map(function(l){var I;return(I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(z,this.lastRenderedPanelIds);this.lastRenderedPanelIds=z};
_.p.handlePanelVisibilityChange=function(z,l){z=z===void 0?new Set:z;l=l===void 0?new Set:l;if(this.data)for(var I=_.D(this.data),b=I.next();!b.done;b=I.next()){b=b.value;var v=void 0,M=void 0,x=(v=b)==null?void 0:(M=v.engagementPanelSectionListRenderer)==null?void 0:M.targetId;if(x&&(v=l.has(x),M=z.has(x),x=void 0,!v&&M?(M=v=void 0,x=(v=b)==null?void 0:(M=v.engagementPanelSectionListRenderer)==null?void 0:M.onShowCommands):v&&!M&&(M=v=void 0,x=(v=b)==null?void 0:(M=v.engagementPanelSectionListRenderer)==
null?void 0:M.onHideCommands),x))for(b=_.D(x),x=b.next();!x.done;x=b.next())this.ytComponentBehavior.resolveCommand(x.value)}};
C$.prototype.onRendererstamperFinished=C$.prototype.onRendererstamperFinished;C$.prototype.dataChanged=C$.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],C$.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],C$.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],C$.prototype,"lastRenderedPanelIds",void 0);_.e([_.X(),_.w("design:type",Number)],C$.prototype,"hideDelayMs",void 0);_.e([_.X(),_.w("design:type",Array)],C$.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Array)],C$.prototype,"visiblePanels",void 0);_.e([_.X(),_.w("design:type",Boolean)],C$.prototype,"isWatchWhilePanel",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C$.prototype,"dataChanged",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],C$.prototype,"onRendererstamperFinished",null);_.e([_.S({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],C$);
_.r(C$,"ytd-watch-engagement-panels",function(){if(DM0!==void 0)return DM0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return DM0=z},{mode:1});var xMA;var kL=function(){return _.q.apply(this,arguments)||this};
_.m(kL,_.q);kL.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.p4(_.Hy(this.hostElement).querySelector("#text"),_.eIn(_.WA_,this.data.companionLegalText))};
kL.prototype.computeAutoScrollEnabled=function(z,l){return z&&!l};
kL.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
kL.prototype.onToggleTap=function(){this.expanded=!this.expanded};
kL.prototype.expandedChanged=kL.prototype.expandedChanged;kL.prototype.dataChanged=kL.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Qb8),_.w("design:type",Object)],kL.prototype,"ytdAutoScrollBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kL.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],kL.prototype,"expanded",void 0);
_.e([_.X({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.w("design:type",Boolean)],kL.prototype,"autoScrollEnabled",void 0);_.e([_.X(),_.w("design:type",String)],kL.prototype,"expanderIcon",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kL.prototype,"dataChanged",null);
_.e([_.By("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kL.prototype,"expandedChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],kL);
_.r(kL,"ytd-companion-legal-text-renderer",function(){if(xMA!==void 0)return xMA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return xMA=z},{mode:1});var Oou;var Rk=function(){var z=_.q.apply(this,arguments)||this;z.buttonUpdate=_.C("web_modern_buttons");z.kevlarWatchGrid=_.C("kevlar_watch_grid");z.centerAlignDescription=_.C("action_companion_center_align_description");z.truncateDomain=_.C("action_companion_truncate_domain");return z};
_.m(Rk,_.q);_.p=Rk.prototype;_.p.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.p.getOnLayoutVisibleCallback=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.layoutId:null};
_.p.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Rk.JSC$22863_DEFAULT_AD_BADGE_RENDERER);var z=this.getOnLayoutVisibleCallback();z&&z()}};
_.p.getButtonRenderer=function(z){return z.actionButton&&_.k(z.actionButton,_.xm)?(delete _.k(z.actionButton,_.xm).navigationEndpoint,_.k(z.actionButton,_.xm)):{}};
_.p.onClick=function(z){var l=this;if((!_.C("web_modern_buttons")||!_.DX(_.MX(z),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){z=_.GS();var I=this.getLayoutId();z&&I&&_.C("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?z.getPlayerPromise().then(function(b){(new _.I6(b)).executeCommand(l.data.navigationEndpoint,I)}):_.C("kevlar_companion_resolve_command_killswitch")?_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Gb(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.vP.Object.defineProperties(Rk.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?0:(l=z.detailsLine)==null?0:(I=l.adRating)==null?0:I.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 z,l,I,b;return((z=this.data)==null?0:(l=z.detailsLine)==null?0:(I=l.adRating)==null?0:(b=I.ratingIcon)==null?0:b.iconType)?_.Re(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return((z=this.data)==null?0:(l=z.detailsLine)==null?0:(I=l.texts)==null?0:(b=I[0])==null?0:b.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 z,l;return((z=this.data)==null?0:(l=z.description)==null?0:l.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var z=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return z?z.indexOf("/default_banner")!==-1:!0}}});
Rk.prototype.onClick=Rk.prototype.onClick;Rk.prototype.dataChanged=Rk.prototype.dataChanged;Rk.JSC$22863_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Rk.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Rk.prototype,"rendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Rk.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rk.prototype,"buttonUpdate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rk.prototype,"kevlarWatchGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rk.prototype,"centerAlignDescription",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Rk.prototype,"truncateDomain",void 0);
_.e([_.X({computed:"computeButtonOverride(buttonUpdate)"}),_.w("design:type",Object)],Rk.prototype,"buttonOverride",void 0);_.e([_.B("data.detailsLine.adRating.ratingText"),_.w("design:type",Object),_.w("design:paramtypes",[])],Rk.prototype,"getRating",null);_.e([_.B("getRating"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Rk.prototype,"computeRatingHidden",null);
_.e([_.B("data.detailsLine.adRating.ratingIcon.iconType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Rk.prototype,"iconType",null);_.e([_.B("data.detailsLine.texts.0.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],Rk.prototype,"getDetailsLine",null);_.e([_.B("getDetailsLine"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Rk.prototype,"computeDetailsLineHidden",null);
_.e([_.B("data.description.text"),_.w("design:type",Object),_.w("design:paramtypes",[])],Rk.prototype,"getDescriptionText",null);_.e([_.B("getDescriptionText"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Rk.prototype,"computeDescriptionTextHidden",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Rk.prototype,"interactionLoggingClientData",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Rk.prototype,"hideBanner",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Rk.prototype,"dataChanged",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Rk.prototype,"onClick",null);_.e([_.S({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Rk);
_.r(Rk,"ytd-action-companion-ad-renderer",function(){if(Oou!==void 0)return Oou;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Oou=z},{mode:_.yP("kevlar_poly_si_batch_j067")?1:2});var gzZ;var GeR;var mC=function(){var z=_.q.apply(this,arguments)||this;z.buttonUpdate=_.C("web_modern_buttons");z.hideLegacyBanner=_.C("enable_dsa_one_click_ata_translators_infeed_elements");z.adInfoButtonStyle="mono";z.adInfoButtonType="text";z.noDotAdBadge=!0;return z};
_.m(mC,_.q);_.p=mC.prototype;_.p.getOnLayoutVisibleCallback=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.layoutId:null};
_.p.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 z=this.data.image.thumbnail.thumbnails[0];this.imageSrc=z.url?_.eA(z.url):void 0;this.imageWidth=z.width||0;this.imageHeight=z.height||0}this.data.clickthroughEndpoint&&_.k(this.data.clickthroughEndpoint,_.AK)&&(z=_.k(this.data.clickthroughEndpoint,_.AK).url,_.C("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
z||"":z?(z=_.eA(z),this.clickThroughUrl=_.hT(z)):this.clickThroughUrl=void 0);(z=this.getOnLayoutVisibleCallback())&&z()}};
_.p.onClick=function(z){_.DX(_.MX(z),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(z)};
_.p.handleClick=function(){var z=this;this.data&&this.data.clickthroughEndpoint&&(_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(l){z.macroReplacementBehavior.sendServiceRequestAction([l])}),_.Gb(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.p.onLoad=function(){_.EK(this.hostElement,"yt-refit-popups-action")};
_.vP.Object.defineProperties(mC.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.interactionLoggingClientData:null}}});
mC.prototype.onLoad=mC.prototype.onLoad;mC.prototype.onClick=mC.prototype.onClick;mC.prototype.dataChanged=mC.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mC.prototype,"rendererBehavior",void 0);_.e([_.t(Y7Z.YtMacroReplacementBehavior),_.w("design:type",Object)],mC.prototype,"macroReplacementBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mC.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],mC.prototype,"buttonUpdate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],mC.prototype,"hideLegacyBanner",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],mC.prototype,"adInfoButtonStyle",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],mC.prototype,"adInfoButtonType",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],mC.prototype,"macros",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],mC.prototype,"interactionLoggingClientData",null);_.e([_.X(),_.w("design:type",String)],mC.prototype,"clickThroughUrl",void 0);_.e([_.X(),_.w("design:type",_.SA)],mC.prototype,"imageSrc",void 0);_.e([_.X(),_.w("design:type",Number)],mC.prototype,"imageWidth",void 0);_.e([_.X(),_.w("design:type",Number)],mC.prototype,"imageHeight",void 0);_.e([_.X(),_.w("design:type",Object)],mC.prototype,"noDotAdBadge",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mC.prototype,"dataChanged",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],mC.prototype,"onClick",null);_.e([_.tP("load"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mC.prototype,"onLoad",null);_.e([_.S({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],mC);
_.r(mC,"ytd-image-companion-renderer",function(){if(GeR!==void 0)return GeR;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return GeR=z},{mode:_.yP("kevlar_poly_si_batch_j067")?1:2});var N27;var K$=function(){return _.q.apply(this,arguments)||this};
_.m(K$,_.q);_.p=K$.prototype;_.p.dataChanged=function(){this.set("data.adBadge",K$.JSC$22872_DEFAULT_AD_BADGE_RENDERER);if(this.data){var z=this.getOnLayoutVisibleCallback();z&&z()}};
_.p.getOnLayoutVisibleCallback=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.layoutId:null};
_.p.onCompanionClicked=function(z){this.data&&(z.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Gb(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.p.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var z=_.GS(),l=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;z&&l&&_.C("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?z.getPlayerPromise().then(function(b){(new _.I6(b)).executeCommand(I,l)}):_.gC(this.hostElement,"yt-navigate",{endpoint:I})}};
_.p.sendTrackingPings=function(z){if(z&&z.length!==0&&z[0].loggingUrls&&(z=z[0].loggingUrls.map(this.getBaseUrl)))for(var l=0;l<z.length;l++)_.np(z[l])};
_.p.getBaseUrl=function(z){return z.baseUrl||""};
_.vP.Object.defineProperties(K$.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var z=_.W8("yt.www.ads.eventcache.getLastCompanionData");return z?(z=z())&&z.interactionLoggingClientData:null}}});
K$.prototype.onCompanionClicked=K$.prototype.onCompanionClicked;K$.prototype.dataChanged=K$.prototype.dataChanged;K$.JSC$22872_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],K$.prototype,"data",void 0);_.e([_.qX("#title"),_.w("design:type",HTMLElement)],K$.prototype,"shopTitle",void 0);
_.e([_.YE("data.impressionEndpoints"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],K$.prototype,"dataChanged",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],K$.prototype,"interactionLoggingClientData",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],K$.prototype,"onCompanionClicked",null);
_.e([_.S({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],K$);
_.r(K$,"ytd-shopping-companion-renderer",function(){if(N27!==void 0)return N27;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return N27=z},{mode:1});_.uO(_.P(function(z){var l=z.data;z=_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ});var I=_.a0(function(){return l().interaction},L0T);
_.oj(function(){var b,v;v=(v=_.W8("yt.www.ads.eventcache.getLastCompanionData"))?(v=v())&&v.onLayoutVisibleCallback:null;(b=v)==null||b()});
return _.N("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.KK(function(b){_.EK(b.currentTarget,"yt-refit-popups-action")}),
el:_.xl(z,I),"aria-label":function(){var b,v;return(b=l().interaction)==null?void 0:(v=b.accessibility)==null?void 0:v.label}},_.N("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(b){return _.N(_.AU,{data:b.data,
targetHeight:80,customCommandResolver:L0T})}})),_.N("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.N("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.N(_.TS,{data:function(){return l().adBadge}},{adBadgeViewModel:function(b){return _.N(_.ot,{data:b.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.N("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.N(_.TS,{data:function(){return l().menu}},{buttonViewModel:_.h4}))))},"Qk"),"banner-image-layout-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;z=_.ps({visibilityCallback:function(b){var v,M=(v=l().interaction)==null?void 0:v.onFirstVisible;b&&M&&_.ae(M)},
showOption:_.FJ});var I=_.a0(function(){return l().interaction},UK8);
_.oj(function(){var b,v;v=(v=_.W8("yt.www.ads.eventcache.getLastCompanionData"))?(v=v())&&v.onLayoutVisibleCallback:null;(b=v)==null||b()});
return _.N("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.xl(z,I)},_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.N(_.TS,{data:function(){return l().adImage}},{adImageViewModel:function(b){return _.N(_.AU,{data:b.data,
targetHeight:80,customCommandResolver:UK8})}})),_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.N(_.TS,{data:function(){return l().adAvatarLockup}},{adAvatarLockupViewModel:function(b){return _.N(vz8,{data:b.data,
customCommandResolver:UK8})}})),_.N(_.TS,{data:function(){return l().adButton}},{adButtonViewModel:function(b){return _.N(_.YQ,{data:b.data,
customCommandResolver:UK8})}}),_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.N(_.TS,{data:function(){return l().menu}},{buttonViewModel:_.h4}))))},"Rk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.mB}});var EzT={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"},th=function(){var z=_.q.apply(this,arguments)||this;z.updateCompanionDataJobId=0;z.contentVideoId=null;z.player=null;z.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return z};
_.m(th,_.q);_.p=th.prototype;_.p.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:EzT}}};
_.p.attached=function(){var z=this,l=_.GS();l&&l.getPlayerPromise().then(function(I){z.getCachedDataAndListen(I)})};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.p.updateRendererStamper=function(){var z={};if(this.data)for(var l in EzT)if(this.data[l]){z[l]=this.data[l];break}if(this.oneofRenderer!=void 0||Object.keys(z).length)this.oneofRenderer=z};
_.p.getCachedDataAndListen=function(z){var l=this.retrieveCachedCompanionData();l&&Object.keys(l).length&&this.receiveCompanionData(l);this.ytPlayerListenerBehavior.listenToPlayerEvent(z,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=z};
_.p.retrieveCachedCompanionData=function(){return _.v7.yt&&_.v7.yt.www&&_.v7.yt.www.ads&&_.v7.yt.www.ads.eventcache&&_.v7.yt.www.ads.eventcache.getLastCompanionData?_.v7.yt.www.ads.eventcache.getLastCompanionData():null};
_.p.receiveCompanionData=function(z){z&&Object.keys(z).length?(this.contentVideoId=z.contentVideoId,this.setCompanionData(z)):this.setCompanionData(z)};
_.p.setCompanionData=function(z){this.cancelPendingCompanionAdJobs();if(z){this.updateCompanionDataJobId=0;for(var l in EzT)EzT.hasOwnProperty(l)&&(this.data[l]=void 0);z.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",z.shoppingCompanionCarouselRenderer):z.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",z.imageCompanionAdRenderer):z.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",z.actionCompanionAdRenderer),_.EK(this.hostElement,
"yt-hide-unlimited-offer-module"),_.EK(this.hostElement,"yt-hide-tvfilm-offer-module")):z.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",z.bannerImageLayoutViewModel):z.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",z.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.p.dataChanged=function(){var z=this,l=_.GS();l?l.getPlayerPromise().then(function(I){z.contentVideoId&&I.getVideoUrl().includes("v="+z.contentVideoId)||(z.cancelPendingCompanionAdJobs(),z.updateRendererStamper())}):_.nP(Error("No"))};
_.p.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ow.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.p.handleCompanionAdClicked=function(z,l){this.player.onAdUxClicked(z,l);this.player.pauseVideo()};
th.prototype.dataChanged=th.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],th.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],th.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],th.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],th.prototype,"oneofRenderer",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],th.prototype,"dataChanged",null);_.e([_.S({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],th);
_.r(th,"ytd-companion-slot-renderer",function(){if(gzZ!==void 0)return gzZ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return gzZ=z},{mode:_.yP("kevlar_poly_si_batch_j067")?
1:2});var uQr;var BI=function(){return _.q.apply(this,arguments)||this};
_.m(BI,_.q);BI.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
BI.prototype.dataChanged=BI.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],BI.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],BI.prototype,"companionSlotData",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BI.prototype,"dataChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],BI);
_.r(BI,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(uQr!==void 0)return uQr;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uQr=z},{mode:1});var Zor;var Xn=function(){var z=_.q.apply(this,arguments)||this;z.skinnyMode=!1;z.COMPACT_EVENT_COUNT=4;z.onShelfToggleButtonTap=function(){z.logTap(z.data);z.showingMore=!z.showingMore};
z.onShelfToggleButtonFocus=function(){z.showingMore||(z.logTap(z.data),z.showingMore=!0,_.IR(z,function(){var l=z.COMPACT_EVENT_COUNT-1,I;(I=_.Hy(z.hostElement).querySelector("#event-"+l))==null||I.focus()}))};
return z};
_.m(Xn,_.q);_.p=Xn.prototype;_.p.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.p.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.p.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.KJ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.KJ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.KJ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.KJ(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.KJ(this.infoTooltip,this.infoTooltip.hide))};
_.p.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.KJ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.KJ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.KJ(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.KJ(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.KJ(this.infoTooltip,this.infoTooltip.hide))};
_.p.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)};
_.p.onShowingMoreChanged=function(){var z;this.showingMoreChanged((z=this.showingMore)!=null?z:!1)};
_.p.showingMoreChanged=function(z){var l=this.get("data.events")||[];this.set("restEvents",l.slice(1,z?l.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
l.slice(0,z?l.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var b=_.sU();I=I.ticketEventRenderer.trackingParams;_.h8()&&b&&I&&(I=_.ch(I),b&&_.am(b,I))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.p.computeAriaLabel=function(z){return z.subtitle1+", "+z.subtitle2};
_.p.logTap=function(z){_.h8()&&this.ytRendererBehavior.logExplicitClick(z)};
_.p.isKeyboardAction=function(z){return this.get("detail.x",z)===0&&this.get("detail.y",z)===0};
_.p.onFirstEventTap=function(z){z.target&&this.handleTap(z.target,this.firstEvent,this.isKeyboardAction(z))};
_.p.onTicketLinkTap=function(z){z.target&&this.handleTap(z.target,z.model.item,this.isKeyboardAction(z))};
_.p.handleTap=function(z,l,I){if(l.buttonCommand)if(l.hasMultipleOffers)Object.assign(_.k(l.buttonCommand,_.WT),{properties:{source:I?"keyboard":"tap"}}),this.logTap(l),this.popupPositionTarget=z,_.ZE(this.hostElement,[l.buttonCommand],this.hostElement);else{var b;if((b=_.k(l.buttonCommand,_.AK))==null?0:b.url)this.logTap(l),_.zg(window,_.k(l.buttonCommand,_.AK).url)}};
Xn.prototype.onShowingMoreChanged=Xn.prototype.onShowingMoreChanged;Xn.prototype.dataChanged=Xn.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Xn.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Xn.prototype,"firstEvent",void 0);_.e([_.X(),_.w("design:type",Object)],Xn.prototype,"restEvents",void 0);_.e([_.X(),_.w("design:type",String)],Xn.prototype,"imageUrl",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Xn.prototype,"showingMore",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Xn.prototype,"canShowMore",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Xn.prototype,"skinnyMode",void 0);_.e([_.X(),_.w("design:type",HTMLElement)],Xn.prototype,"popupPositionTarget",void 0);_.e([_.qX("#banner-info-tooltip"),_.w("design:type",Object)],Xn.prototype,"infoTooltip",void 0);
_.e([_.qX("#info-container"),_.w("design:type",HTMLElement)],Xn.prototype,"infoContainer",void 0);_.e([_.qX("#shelf-toggler"),_.w("design:type",HTMLElement)],Xn.prototype,"shelfToggleButton",void 0);_.e([_.qX("#separator"),_.w("design:type",HTMLDivElement)],Xn.prototype,"separator",void 0);_.e([_.X(),_.w("design:type",String)],Xn.prototype,"shelfTogglerLabelText",void 0);_.e([_.X(),_.w("design:type",String)],Xn.prototype,"shelfTogglerIcon",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xn.prototype,"dataChanged",null);_.e([_.YE("showingMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xn.prototype,"onShowingMoreChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Xn);
_.r(Xn,"ytd-ticket-shelf-renderer",function(){if(Zor!==void 0)return Zor;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Zor=z},{mode:1});var Ho7;var yXZ;var f_8=function(){return _.q.apply(this,arguments)||this};
_.m(f_8,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],f_8.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],f_8.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],f_8);
_.r(f_8,"ytd-comments-entry-point-message-renderer",function(){if(yXZ!==void 0)return yXZ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yXZ=z},{mode:1});var CEZ;var q2=function(){return _.q.apply(this,arguments)||this};
_.m(q2,_.q);_.vP.Object.defineProperties(q2.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.teaserAvatar)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],q2.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],q2.prototype,"hasAvatar",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],q2);
_.r(q2,"ytd-comments-entry-point-teaser-renderer",function(){if(CEZ!==void 0)return CEZ;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return CEZ=z},{mode:1});var ke8;var Rer=function(){return _.q.apply(this,arguments)||this};
_.m(Rer,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Rer.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Rer.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Rer);
_.r(Rer,"ytd-comments-simplebox-renderer",function(){if(ke8!==void 0)return ke8;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ke8=z},{mode:1});var iy=function(){var z=_.q.apply(this,arguments)||this;z.fullHeight=!_.C("comment_teaser_full_height_kill_switch")&&_.C("kevlar_watch_grid");return z};
_.m(iy,_.q);iy.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"}}}};
iy.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
iy.prototype.onTap=function(){var z=this.tapCommand;z&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(z))};
iy.prototype.onKeyUp=function(z){if(z.keyCode===13)this.onTap()};
_.vP.Object.defineProperties(iy.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null?0:z.onTap)return this.data.onTap;var l,I;if(((l=this.data)==null?0:l.teaserContent)||((I=this.data)==null?0:I.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)!=null&&z.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
iy.prototype.onKeyUp=iy.prototype.onKeyUp;iy.prototype.onTap=iy.prototype.onTap;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],iy.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iy.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],iy.prototype,"fullHeight",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"tapCommand",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"simpleboxPlaceholder",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iy.prototype,"hasSimpleboxPlaceholder",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"simpleboxAvatar",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"teaserContent",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iy.prototype,"hasTeaserContent",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"teaserAvatar",null);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iy.prototype,"hasTeaserAvatar",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"messageText",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],iy.prototype,"contentRenderer",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iy.prototype,"hasContents",null);
_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iy.prototype,"hasContentRenderer",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iy.prototype,"onTap",null);_.e([_.tP("keypress"),_.w("design:type",Function),_.w("design:paramtypes",[_.TL]),_.w("design:returntype")],iy.prototype,"onKeyUp",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],iy);
_.r(iy,"ytd-comments-entry-point-header-renderer",function(){if(Ho7!==void 0)return Ho7;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Ho7=z},{mode:1});var mMT;_.uO(_.kyM,"yt-animated-rolling-number",{props:{numberText:_.mB,numberValue:_.mB,heightPx:_.mB,fontSizeMultiplier:_.mB,shouldAnimate:_.mB,forceRollUp:_.mB}});var Ky0=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),t3u={numberText:"",heightPx:2*Ky0,shouldAnimate:!1},Fn=function(){var z=_.q.apply(this,arguments)||this;z.usingAnimatedComponents=!0;z.wasDetailed=!1;z.JSC$22909_browserSupportsAnimation=_.C("web_supports_animations_api");z.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};z.detailed=!1;z.shouldAnimate=!1;z.viewCountProps=t3u;z.dateTextProps=
t3u;z.metadataBadgesInDescription=_.C("web_metadata_badges_in_description");return z};
_.m(Fn,_.q);_.p=Fn.prototype;_.p.resetAnimationState=function(){this.shouldAnimate=!1};
_.p.updateDynamicMetadata=function(){if(this.JSC$22909_browserSupportsAnimation){if(!this.detailed){var z,l,I,b;var v=(z=this.videoPrimaryInfoRenderer)==null?void 0:(l=z.viewCount)==null?void 0:(I=l.videoViewCountRenderer)==null?void 0:(b=I.extraShortViewCount)==null?void 0:b.simpleText;var M,x,g,G;var u=(M=this.videoPrimaryInfoRenderer)==null?void 0:(x=M.viewCount)==null?void 0:(g=x.videoViewCountRenderer)==null?void 0:(G=g.shortViewCount)==null?void 0:G.simpleText}if(!u){var Z,H,y,f;v=(Z=this.videoPrimaryInfoRenderer)==
null?void 0:(H=Z.viewCount)==null?void 0:(y=H.videoViewCountRenderer)==null?void 0:(f=y.unlabeledViewCountValue)==null?void 0:f.simpleText;var R,F,Y,c;u=(R=this.videoPrimaryInfoRenderer)==null?void 0:(F=R.viewCount)==null?void 0:(Y=F.videoViewCountRenderer)==null?void 0:(c=Y.viewCount)==null?void 0:c.simpleText}var d,V,A;z=Number((d=this.videoPrimaryInfoRenderer)==null?void 0:(V=d.viewCount)==null?void 0:(A=V.videoViewCountRenderer)==null?void 0:A.originalViewCount);var W,L;d=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(L=W.relativeDateText)==null?void 0:L.simpleText;var lH;W=!((lH=this.videoPrimaryInfoRenderer)==null||!lH.relativeDateText);if(v&&u&&z&&(d||!W)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;lH=u.split(new RegExp("("+v+")"));v=la7(lH[0]);var Gk;u={numberText:(Gk=lH[1])!=null?Gk:"",numberValue:z,heightPx:2*Ky0,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var uH;Gk=((uH=lH[2])!=null?uH:"")+"  ";this.setViewCount(u,v,la7(Gk));
if(!this.detailed&&W){v=d.split(/(\d+)/);uH=la7(v[0]);var Xt;Gk={numberText:(Xt=v[1])!=null?Xt:"",heightPx:2*Ky0,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var R1;Xt=((R1=v[2])!=null?R1:"")+"  ";this.setDateText(Gk,uH,la7(Xt))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.p.setViewCount=function(z,l,I){_.ID(l)!==_.ID(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=l);this.viewCountProps.numberText!==(z==null?void 0:z.numberText)&&(this.viewCountProps=z||t3u);_.ID(I)!==_.ID(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.p.setDateText=function(z,l,I){_.ID(l)!==_.ID(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=l);this.dateTextProps.numberText!==(z==null?void 0:z.numberText)&&(this.dateTextProps=z||t3u);_.ID(I)!==_.ID(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.p.onYtUpdateViewershipAction=function(z){this.videoPrimaryInfoRenderer&&(_.k(z,O4u).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.k(z,O4u).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.k(z,O4u).viewCount)))};
_.p.onYtUpdateDateTextAction=function(z){if(this.videoPrimaryInfoRenderer){z=_.k(z,_.DeT).dateText;this.shouldAnimate=!0;var l;((l=this.videoPrimaryInfoRenderer)==null?0:l.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",z):this.set("videoPrimaryInfoRenderer.dateText",z)}};
_.vP.Object.defineProperties(Fn.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return zZR(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.ID(zZR(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.ID(this.viewCountPreNumberText),this.viewCountProps.numberText,_.ID(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.ID(this.dateTextPreNumberText),this.dateTextProps.numberText,_.ID(this.dateTextPostNumberText)].join("")}}});
Fn.prototype.updateDynamicMetadata=Fn.prototype.updateDynamicMetadata;Fn.prototype.resetAnimationState=Fn.prototype.resetAnimationState;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Fn.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Fn.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Fn.prototype,"videoPrimaryInfoRenderer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"detailed",void 0);_.e([_.X(),_.w("design:type",Object)],Fn.prototype,"shouldAnimate",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"viewCountPreNumberText",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"viewCountProps",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"viewCountPostNumberText",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"dateTextPreNumberText",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"dateTextProps",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"dateTextPostNumberText",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Fn.prototype,"metadataBadgesInDescription",void 0);_.e([_.B("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.w("design:type",Object),_.w("design:paramtypes",[])],Fn.prototype,"infoText",null);
_.e([_.B("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.w("design:type",String),_.w("design:paramtypes",[])],Fn.prototype,"descriptionInfoTooltipText",null);_.e([_.B("detailed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Fn.prototype,"showDescriptionInfoTooltip",null);
_.e([_.B("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.w("design:type",String),_.w("design:paramtypes",[])],Fn.prototype,"animatedViewCountAccessibilityLabel",null);_.e([_.B("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.w("design:type",String),_.w("design:paramtypes",[])],Fn.prototype,"animatedDateTextAccessibilityLabel",null);
_.e([_.By("videoPrimaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fn.prototype,"resetAnimationState",null);_.e([_.By("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Fn.prototype,"updateDynamicMetadata",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Fn);
_.r(Fn,"ytd-watch-info-text",function(){if(mMT!==void 0)return mMT;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return mMT=z},{mode:1});var B2R;var Xbr="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var qf7=_.P(function(z){var l=z.data;var I=z.setTapCommand;_.Te(function(){var b=_.Wh(l().onTap);I(b)},"Hj6Srd");
return _.N("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz}),_.N("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.N("span",null,function(){return l().simpleboxText})))},"Sk");var ioZ=_.P(function(z){return _.N("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.N(_.E,{cond:function(){return _.k(z.data().avatar,_.WU)},
then:function(l){return _.N(_.Dz,{data:l,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.N("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.N(_.Rf,{text:function(){return z.data().teaserText}})))},"Tk");var Fyr=_.P(function(z){var l=z.data;var I=z.setTapCommand;_.Te(function(){var b=_.Wh(l().onTap);I(b)},"IlZFqc");
return _.N("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.N(_.TS,{data:function(){return l().teasers}},{commentsEntryPointTeaserViewModel:ioZ}))},"Uk");var QjQ=_.P(function(z){var l=z.data;var I=z.setTapCommand;_.Te(function(){var b=_.Wh(l().onTap);I(b)},"sYe8ye");
return _.N("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.N(_.Rf,{text:function(){return l().messageText}}))},"Vk");var YfT=_.P(function(z){var l=z.data;var I=z.setTapCommand;var b=z.isDisabled;_.Te(function(){var v=(b==null?0:b())?void 0:_.Wh(l().onTap);I(v)},"GZxRqd");
return _.N("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.N(_.qt,{icon:function(){return l().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.N(_.E,{cond:function(){return l().image},
then:function(v){return _.N(_.pK,{data:v,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.N(_.Rf,{text:function(){return l().text},
className:function(){return l().image||l().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.N(_.TS,{data:function(){return l().button}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:b==null?void 0:b()}}})}}))},"Wk");var T20=_.P(function(z){var l=z.data;var I=z.itemIndex;var b=z.selectedIndex;var v=z.indexUpdatedCallback;var M=z.observer;z=z.title;var x=_.VK("yt-carousel-item-view-model",function(H){M&&M().observe(H)}),g=function(H){I()===b()&&v(H)},G=_.nK(F0Z),u=_.nK(_.cLp),Z=function(){var H,y,f;
return((H=l())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!G()||((y=l())==null?void 0:y.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&u().includes("PAposts_by_host")||((f=l())==null?void 0:f.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&u().includes("PAyouchat")};
return _.N("yt-carousel-item-view-model",{el:x,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":z},_.N(_.TS,{data:function(){var H,y;return(y=(H=_.k(l().carouselItem,QuR))==null?void 0:H.textCarousel)!=null?y:l().carouselItem}},{textCarouselItemViewModel:function(H){return _.N(YfT,{data:H.data,
setTapCommand:g,isDisabled:Z})},
commentTeaserCarouselItemViewModel:function(H){return _.N(Fyr,{data:H.data,setTapCommand:g})},
commentInputBoxCarouselItemViewModel:function(H){return _.N(qf7,{data:H.data,setTapCommand:g})},
commentsEntryPointMessageViewModel:function(H){return _.N(QjQ,{data:H.data,setTapCommand:g})}}))},"Xk");var cXu=_.P(function(z){var l=z.numDots;var I=z.activeIndex;return _.N("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.N(_.qy,{each:function(){return Array.from({length:l()})},
keyBy:"INDEX"},function(b,v){return _.N("div",{class:function(){var M={};return _.sB("ytCarouselDotsShapeDot",(M.ytCarouselDotsShapeDotActive=v===I(),M))}})}))},"Yk");var SfR=_.P(function(z){var l=z.data;var I=z.handleCarouselNavigation;var b=z.numItems;var v=z.selectedIndex;var M=function(){return{disabled:v()===0}},x=function(){return{disabled:v()===b()-1}};
return _.N("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.N("div",null,_.N("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return l().title}),_.N(_.E,{cond:function(){return l().subtitle},
then:function(g){return _.N("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return l().subtitleAccessibilityText}},g)}})),_.N(_.E,{cond:function(){return b()>1},
then:function(){return _.N("div",{class:"ytCarouselTitleViewModelNavigation"},_.N(cXu,{numDots:b,activeIndex:v}),_.N(_.E,{cond:function(){return l().previousButton},
then:function(g){return _.N(_.TS,{data:g},{buttonViewModel:function(G){return _.N(_.h4,{data:G.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:M})}})}}),_.N(_.E,{cond:function(){return l().nextButton},
then:function(g){return _.N(_.TS,{data:g},{buttonViewModel:function(G){return _.N(_.h4,{data:G.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:x})}})}}))}}))},"Zk");_.uO(_.P(function(z){var l=z.data;var I,b=_.VK("yt-video-metadata-carousel-view-model"),v=_.VK("div",function(W){var L=function(){var lH=W.offsetWidth*F(),Gk=24*(F()-1);y(lH+Gk)};
L();window.ResizeObserver&&(I=new ResizeObserver(L),I.observe(W))}),M=_.sZ("HTML_DIR")==="rtl",x=!1,g=0,G=0;
z=_.D(_.Z_(0,void 0,"M49TDf"));var u=z.next().value,Z=z.next().value;z=_.D(_.Z_(0,void 0,"zLIok"));var H=z.next().value,y=z.next().value;z=_.D(_.Z_(!1,void 0,"bhelhc"));var f=z.next().value,R=z.next().value,F=function(){var W,L,lH;return(lH=(W=l())==null?void 0:(L=W.carouselTitles)==null?void 0:L.length)!=null?lH:0},Y=function(){v.value&&v.value.scrollLeft!==g&&Z((M?v.value.scrollLeft<g:v.value.scrollLeft>g)?Math.min(u()+1,F()-1):Math.max(u()-1,0))},c;
window.IntersectionObserver&&(c=new IntersectionObserver(function(W){W=_.D(W);for(var L=W.next();!L.done;L=W.next())if(L.value.isIntersecting){if(x){x=!1;break}Y()}else Z(G)},{threshold:.2}));
_.Te(function(){if(v.value){var W=(M?-1:1)*(H()/F()+12)*(f()&&c?G:u());typeof v.value.scrollTo==="function"?v.value.scrollTo({left:W,behavior:"smooth"}):v.value.scrollLeft=W;g=W;G=f()&&c?G:u()}},"s9rbgc");
var d,V=function(W){d=W};
_.cb(function(){var W;(W=I)==null||W.disconnect();var L;(L=c)==null||L.disconnect()});
var A=function(W){W=u()+W;W>=0&&W<F()&&(x=!0,Z(W))};
return _.N("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:b,"on:click":_.KK(function(W){if(_.$U(_.r5(W),b.value,["BUTTON".toString()])||!d)return!1;_.pG().resolve(_.DQ).resolveCommand(d,{forceClickLogging:!0});return!1}),
"on:touchstart":_.KK(function(){R(!0);return!1}),
"on:touchend":_.KK(function(){c||Y();R(!1);return!1}),
hidden:function(){var W,L;return!((W=l())==null?0:(L=W.carouselItems)==null?0:L.length)}},_.N("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.N(_.E,{cond:function(){return l().carouselTitles},
then:function(W){return _.N(_.TS,{data:function(){return W()[f()&&c?G:u()]}},{carouselTitleViewModel:function(L){return _.N(SfR,{data:L.data,
handleCarouselNavigation:A,numItems:F,selectedIndex:u})}})}})),_.N("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:v},_.N("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+H()+"px;"}},_.N(_.E,{cond:function(){return l().carouselItems},
then:function(W){return _.N(_.qy,{each:W},function(L,lH){return _.N(_.TS,{data:function(){return L}},{carouselItemViewModel:function(Gk){return _.N(T20,{data:Gk.data,
itemIndex:lH,selectedIndex:u,indexUpdatedCallback:V,observer:c,title:function(){a:{var uH=lH();var Xt,R1=(Xt=l())==null?void 0:Xt.carouselTitles;if(R1&&(uH=R1[uH])){var H7;uH=(H7=_.k(uH,F7Z))==null?void 0:H7.title;break a}uH=void 0}return uH}})}})})}}))))},"$k"),"yt-video-metadata-carousel-view-model",{props:{data:_.mB}});var dMD=_.C("web_action_buttons_update_owner_width")?32:12,Q_=function(){var z=_.q.apply(this,arguments)||this;z.isHovering=!1;z.enableColorSampling=_.C("web_delhi_colorful_sd");z.metadataBadgesInDescription=_.C("web_metadata_badges_in_description");z.descriptionCollapsed=!0;z.useFadedScrimDescription=_.C("kevlar_enable_faded_scrim_on_description");z.skinnyMode=!1;z.playlist=!1;z.isDark=document.documentElement.hasAttribute("dark");z.disableVideoOwnerOnTap=_.C("swatchie_video_owner_on_tap_ks");z.swatcherooDelayLoad=
_.C("swatcheroo_enable_ghost_cards");z.primaryMenuWidth=0;z.videoId="";z.titleHeadlineXs=_.C("web_watch_typography_title_headline_xs");z.titleHeadlineS=_.C("web_watch_typography_title_headline_s");z.titleHeadlineM=_.C("web_watch_typography_title_headline_m");z.titleHashtagBlackLinkified=_.C("web_title_hashtag_black_linkified");z.titleHashtagGreyLinkified=_.C("web_title_hashtag_grey_linkified");z.actionButtonsUpdateOwnerWidth=_.C("web_action_buttons_update_owner_width");z.shouldForceIconOnly=!1;z.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};z.isFullscreen=!1;z.isTheaterMode=!1;return z};
_.m(Q_,_.q);_.p=Q_.prototype;_.p.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.p.updateOwnerAndDescriptionPosition=function(){_.C("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.wY(this.bottomRowElement,this.ownerElement)):(_.wY(this.bottomRowElement,this.descriptionElement),_.wY(this.topRowElement,this.ownerElement)))};
_.p.titleOnTap=function(z){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||this.handleExpandDescriptionCommands()}};
_.p.videoOwnerOnTap=function(z){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.p.detached=function(){var z=this,l;return _.O(function(I){(l=z.resizeObserver)==null||l.disconnect();_.qe(I)})};
_.p.maybeAttachResizeObserver=function(){var z=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.zD(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){z.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.p.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var z=this.hostElement.clientWidth,l=Math.max(this.largerItemWrap?400:350,z/2-dMD);if(_.C("web_action_buttons_update_owner_width")){var I;l=(((I=document.getElementById("owner"))==null?void 0:I.clientWidth)||0)+dMD}this.actionsOnSeparateLine=this.primaryMenuWidth>z-l?!0:!1}};
_.p.stripAttributedDescription=function(z){return{content:z.content.replace(/[\r\n]{2,}/g,"\n")}};
_.p.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.C("web_modern_buttons"),forceIconButton:!_.C("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:_.C("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.p.videoPrimaryInfoRendererChanged=function(){var z;if((z=this.videoPrimaryInfoRenderer)==null?0:z.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.p.videoSecondaryInfoRendererChanged=function(){var z,l;(l=(z=this.descriptionInlineExpander).collapse)==null||l.call(z);this.descriptionExpandClientVe=_.kU(110509);this.descriptionCollapseClientVe=_.kU(110510);z=_.sU();l=_.h8();z&&l&&(_.C("combine_ve_grafts")?(_.oc(_.iY(),this.descriptionExpandClientVe,l),_.oc(_.iY(),this.descriptionCollapseClientVe,l)):_.UK(z,l,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.p.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.p.updateTopLevelIconsOnly=function(){var z=this;_.C("top_level_update_killswitch")||this.menu&&_.ow.addLowPriorityJob(function(){z.menu.topLevelIconsOnly=z.skinnyMode},_.OI("swathceroo_delay_flexible_menu_update",100))};
_.p.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.C("web_action_buttons_minimize_subscribe")};
_.p.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.p.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.p.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.p.onYtTextInlineExpanderExpandedChanged=function(){if(!_.C("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var z,l;(l=(z=this.structuredDescriptionContentRendererElement).resize)==null||l.call(z)}};
_.p.onRenderStamperFinished=function(z){(z==null?void 0:z.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.p.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.p.onYtExpanderLessTapped=function(){var z,l=(z=this.videoSecondaryInfoRenderer)==null?void 0:z.showLessCommand;l&&this.ytComponentBehavior.resolveCommand(l)};
_.p.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.p.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.p.onDescriptionClick=function(z){if(!_.DX(_.MX(z)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.C("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.p.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.p.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.p.logCollapseClick=function(){var z=_.sU();z&&this.descriptionCollapseClientVe&&_.JH(z,this.descriptionCollapseClientVe)};
_.p.logExpandClick=function(){var z=_.sU();z&&this.descriptionExpandClientVe&&_.JH(z,this.descriptionExpandClientVe)};
_.p.collapseDescription=function(){this.descriptionCollapsed=!0};
_.p.scrollToTopOfContainer=function(){_.Gb(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.p.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.p.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.p.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.p.resize=function(){if(this.descriptionInlineExpander){var z,l;(l=(z=this.descriptionInlineExpander).resize)==null||l.call(z)}else _.PW(new _.qB("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var I;(I=this.menu)==null||I.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.p.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var z,l,I,b,v=_.C("web_action_buttons_update_owner_width")?(I=(z=_.Hy(this.menu).querySelector("#button-shape"))==null?void 0:z.clientWidth)!=null?I:0:(b=(l=_.Hy(this.menu).querySelector("#button"))==null?void 0:l.clientWidth)!=null?b:0,M,x;z=((x=(M=_.Hy(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:M.clientWidth)!=null?x:0)+8+v;var g,G;v=(G=(g=_.Hy(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:g.children.length)!=null?G:2;z<=8*v||(this.primaryMenuWidth=z)}};
_.p.onYtUpdateTitleAction=function(z){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.k(z,xe0).title)};
_.p.onYtUpdateDescriptionAction=function(z){if(z=_.k(z,_.zs4)){var l,I=!((l=this.videoSecondaryInfoRenderer)==null||!l.attributedDescription);z.isEmpty||!z.description&&!z.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):z.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",z.attributedDescription):z.description&&(I?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.$C(z.description)):this.set("videoSecondaryInfoRenderer.description",z.description))}};
_.p.onYtDarkModeToggledAction=function(z){this.isDark=z};
_.p.registerPanel=function(){if(!_.C("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var z=_.C("web_watch_imax_theater_mode")&&this.isTheaterMode;z=_.C("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||z;var l=_.pG().resolve(_.lL);l&&!z&&l.registerPanel("engagement-panel-structured-description",this)}};
_.p.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.p.parseColorSamplingData=function(){var z;if(_.C("web_delhi_colorful_sd")&&((z=this.structuredDescriptionContentRenderer)==null?0:z.items)&&(z=this.structuredDescriptionContentRenderer.items.find(function(v){return!!_.k(v,AD)}))){var l,I;
this.hoverColor={lightTheme:(l=_.k(z,AD))==null?void 0:l.lightThemeColorPalette,darkTheme:(I=_.k(z,AD))==null?void 0:I.darkThemeColorPalette};var b;this.hoverText=(b=_.k(z,AD))==null?void 0:b.colorSampledDescriptionBodyText}};
_.p.updateHoverColor=function(){if(_.C("web_delhi_colorful_sd")){var z=this.hoverColor,l={},I;z=(I=this.isDark?z==null?void 0:z.darkTheme:z==null?void 0:z.lightTheme)!=null?I:{};I=_.D(Xbr);for(var b=I.next();!b.done;b=I.next()){b=b.value;var v=z[b];l["--yt-saturated-"+_.KQ(b)]=v?_.aD(v):"initial"}_.R8(this.hostElement,l)}};
_.p.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.p.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.p.showPanel=function(z){this.expandDescription();var l=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;l.resize();var I,b=z==null?void 0:(I=z.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;b?_.ow.addJob(function(){l==null||l.scrollToSection(b)},8):this.scrollToTopOfContainer()};
_.p.isVisible=function(){return!this.descriptionCollapsed};
_.p.getReloadContinuation=function(){};
_.p.hidePanel=function(){};
_.p.updatePanel=function(){};
_.vP.Object.defineProperties(Q_.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var z;return _.C("web_delhi_colorful_sd")&&(z=this.structuredDescriptionContentRenderer)!=null&&z.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(l){return!_.k(l,AD)&&!_.k(l,GgZ)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.structuredDescriptionContentRendererComputed)!=null&&z.items){var l;z=_.D((l=this.structuredDescriptionContentRendererComputed)==null?void 0:l.items);for(l=z.next();!l.done;l=z.next())if(l=_.k(l.value,_.LjM))return l}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.videoPrimaryInfoRenderer)==null?0:z.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!!((z=this.videoSecondaryInfoRenderer)==null?0:(l=z.owner)==null?0:(I=l.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var z,l;if((z=this.videoSecondaryInfoRenderer)==null?0:(l=z.attributedDescription)==null?0:l.content){var I,b;return(b=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?b:{runs:[]}}}if(_.C("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var v,M,x,g;return(g=(x=(v=this.videoSecondaryInfoRenderer)==
null?void 0:v.description)!=null?x:(M=this.videoSecondaryInfoRenderer)==null?void 0:M.attributedDescription)!=null?g:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.videoSecondaryInfoRenderer)==null?void 0:z.headerRuns)!=null?l:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.commentsEntryPointHeaderRenderer)==null||!z.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.videoMetadataCarousel)==null||!z.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.OI("swatchie_desc_lines",3):this.hasTeaserCarousel?_.OI("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var z,l,I=Object.assign({},(z=this.videoSecondaryInfoRenderer)==null?void 0:(l=z.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0&&!(I.rows.length<=I.collapsedItemCount))return I.rows=I.rows.slice(I.collapsedItemCount),I.collapsedItemCount=0,I}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var z,l,I=Object.assign({},(z=this.videoSecondaryInfoRenderer)==null?void 0:(l=z.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0)return I.rows=I.rows.slice(0,I.collapsedItemCount),I.collapsedItemCount=I.rows.length,I}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!((z=this.structuredDescriptionContentRendererComputed)==null?0:(l=z.items)==null?0:l.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var z;return(z=this.videoSecondaryInfoRenderer)==null?void 0:z.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.videoSecondaryInfoRenderer)==null?0:(l=z.owner)==null?0:(I=l.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return!!((z=this.videoPrimaryInfoRenderer)==null?0:(l=z.videoActions)==null?0:(I=l.menuRenderer)==null?0:(b=I.flexibleItems)==null?0:b.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.bO(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.bO(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var z=this;if(_.C("web_title_hashtag_grey_delinkified")){var l,I=_.h7.unsafeClone((l=this.videoPrimaryInfoRenderer)==null?void 0:l.title);(l=I==null?void 0:I.runs)&&l.forEach(function(b){if(b==null?0:b.navigationEndpoint)b.textColor=4284506208,z.isDark&&(b.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.C("web_title_hashtag_black_delinkified")||_.C("web_title_hashtag_grey_delinkified")}}});
Q_.prototype.updateHoverColor=Q_.prototype.updateHoverColor;Q_.prototype.parseColorSamplingData=Q_.prototype.parseColorSamplingData;Q_.prototype.resetDescriptionState=Q_.prototype.resetDescriptionState;Q_.prototype.registerPanel=Q_.prototype.registerPanel;Q_.prototype.onYtExpanderLessTapped=Q_.prototype.onYtExpanderLessTapped;Q_.prototype.onYtExpanderMoreTapped=Q_.prototype.onYtExpanderMoreTapped;Q_.prototype.onRenderStamperFinished=Q_.prototype.onRenderStamperFinished;
Q_.prototype.onYtTextInlineExpanderExpandedChanged=Q_.prototype.onYtTextInlineExpanderExpandedChanged;Q_.prototype.onYtTextInlineExpanderCollapseClicked=Q_.prototype.onYtTextInlineExpanderCollapseClicked;Q_.prototype.onYtTextInlineExpanderExpandClicked=Q_.prototype.onYtTextInlineExpanderExpandClicked;Q_.prototype.moveActionsElement=Q_.prototype.moveActionsElement;Q_.prototype.updateShouldForceIconOnly=Q_.prototype.updateShouldForceIconOnly;Q_.prototype.updateTopLevelIconsOnly=Q_.prototype.updateTopLevelIconsOnly;
Q_.prototype.structuredDescriptionContentRendererChanged=Q_.prototype.structuredDescriptionContentRendererChanged;Q_.prototype.videoSecondaryInfoRendererChanged=Q_.prototype.videoSecondaryInfoRendererChanged;Q_.prototype.videoPrimaryInfoRendererChanged=Q_.prototype.videoPrimaryInfoRendererChanged;Q_.prototype.maybeUpdateActionsOnSeparateLine=Q_.prototype.maybeUpdateActionsOnSeparateLine;Q_.prototype.updateOwnerAndDescriptionPosition=Q_.prototype.updateOwnerAndDescriptionPosition;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Q_.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],Q_.prototype,"ytdReduxBehavior",void 0);_.e([_.qX("#above-the-fold"),_.w("design:type",HTMLElement)],Q_.prototype,"aboveTheFoldContainer",void 0);_.e([_.qX("#menu ytd-menu-renderer"),_.w("design:type",Object)],Q_.prototype,"menu",void 0);_.e([_.qX("#description-inline-expander"),_.w("design:type",Object)],Q_.prototype,"descriptionInlineExpander",void 0);
_.e([_.qX("#faded-structured-description"),_.w("design:type",Object)],Q_.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.e([_.qX("#structured-description"),_.w("design:type",Object)],Q_.prototype,"structuredDescriptionContentRendererElement",void 0);_.e([_.qX("#title"),_.w("design:type",HTMLElement)],Q_.prototype,"titleElement",void 0);_.e([_.qX("#description"),_.w("design:type",HTMLElement)],Q_.prototype,"descriptionElement",void 0);
_.e([_.qX("#description-interaction"),_.w("design:type",Object)],Q_.prototype,"descriptionInteraction",void 0);_.e([_.qX("#owner"),_.w("design:type",HTMLElement)],Q_.prototype,"ownerElement",void 0);_.e([_.qX("#top-row"),_.w("design:type",HTMLElement)],Q_.prototype,"topRowElement",void 0);_.e([_.qX("#bottom-row"),_.w("design:type",HTMLElement)],Q_.prototype,"bottomRowElement",void 0);_.e([_.qX("#actions"),_.w("design:type",HTMLElement)],Q_.prototype,"actionsElement",void 0);
_.e([_.qX("#bottom-actions"),_.w("design:type",HTMLElement)],Q_.prototype,"bottomActionsElement",void 0);_.e([_.qX("#ytd-watch-info-text"),_.w("design:type",Object)],Q_.prototype,"watchInfoTextElement",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"videoPrimaryInfoRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"videoSecondaryInfoRenderer",void 0);
_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"commentsEntryPointHeaderRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"videoMetadataCarousel",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"structuredDescriptionContentRenderer",void 0);_.e([_.B("structuredDescriptionContentRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"structuredDescriptionContentRendererComputed",null);
_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"videoSummary",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"merchShelf",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"infoPanelBelowMetadata",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"hoverColor",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"hoverText",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"isHovering",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"enableColorSampling",void 0);_.e([_.B("structuredDescriptionContentRendererComputed"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"productShelf",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"metadataBadgesInDescription",void 0);_.e([_.B("videoPrimaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"shouldHideBadges",null);
_.e([_.B("productShelf","descriptionCollapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"shouldShowProductShelf",null);_.e([_.X(),_.w("design:type",Boolean)],Q_.prototype,"isWatchFlexy",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"descriptionCollapsed",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Q_.prototype,"useFadedScrimDescription",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"skinnyMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("videoSecondaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"largerItemWrap",null);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"playlist",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"clarifyBox",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"playerAds",void 0);
_.e([_.X(),_.w("design:type",Boolean)],Q_.prototype,"isDark",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Q_.prototype,"actionsOnSeparateLine",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"disableVideoOwnerOnTap",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"swatcherooDelayLoad",void 0);_.e([_.X(),_.w("design:type",Boolean)],Q_.prototype,"suppressTopLevelMetadataRows",void 0);
_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"primaryMenuWidth",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"videoId",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"titleHeadlineXs",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"titleHeadlineS",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"titleHeadlineM",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"titleHashtagBlackLinkified",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"titleHashtagGreyLinkified",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.e([_.X(),_.w("design:type",Object)],Q_.prototype,"shouldForceIconOnly",void 0);
_.e([_.YE("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"updateOwnerAndDescriptionPosition",null);_.e([_.YE("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.e([_.B("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"descriptionText",null);_.e([_.B("videoSecondaryInfoRenderer.headerRuns"),_.w("design:type",Array),_.w("design:paramtypes",[])],Q_.prototype,"headerRuns",null);
_.e([_.X({value:!1}),_.B("commentsEntryPointHeaderRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"hasTeaser",null);_.e([_.X({value:!1,reflectToAttribute:!0}),_.B("videoMetadataCarousel"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"hasTeaserCarousel",null);_.e([_.X({value:3}),_.B("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"descriptionMaxLines",null);
_.e([_.B("videoSecondaryInfoRenderer.metadataRowContainer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"collapsibleMetadataRows",null);_.e([_.B("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"alwaysVisibleMetadataRows",null);
_.e([_.B("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"hasInlineStructuredDescription",null);_.e([_.B("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"showInlineStructuredDescription",null);
_.e([_.B("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"descriptionExpandCommand",null);_.e([_.B("videoSecondaryInfoRenderer.owner"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"videoOwnerCommand",null);_.e([_.X({reflectToAttribute:!0}),_.B("videoPrimaryInfoRenderer.videoActions"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"flexMenuEnabled",null);
_.e([_.X({selector:_.AN,reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"isFullscreen",void 0);_.e([_.X({selector:_.wo,reflectToAttribute:!0}),_.w("design:type",Object)],Q_.prototype,"isTheaterMode",void 0);_.e([_.B("descriptionText","useFadedScrimDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"showAttributedStringDescription",null);
_.e([_.B("descriptionText","useFadedScrimDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"showFormattedStringDescription",null);_.e([_.B("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Q_.prototype,"showFadedStructuredDescription",null);
_.e([_.YE("videoPrimaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"videoPrimaryInfoRendererChanged",null);_.e([_.B("videoPrimaryInfoRenderer.title"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"videoTitle",null);_.e([_.B("videoPrimaryInfoRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Q_.prototype,"noEndpoints",null);
_.e([_.YE("videoSecondaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"videoSecondaryInfoRendererChanged",null);_.e([_.By("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"structuredDescriptionContentRendererChanged",null);
_.e([_.By("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"updateTopLevelIconsOnly",null);_.e([_.By("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"updateShouldForceIconOnly",null);_.e([_.By("skinnyMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"moveActionsElement",null);
_.e([_.tP("yt-text-inline-expander-expand-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"onYtTextInlineExpanderExpandClicked",null);_.e([_.tP("yt-text-inline-expander-collapse-clicked"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.e([_.tP("yt-text-inline-expander-expanded-changed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],Q_.prototype,"onRenderStamperFinished",null);
_.e([_.tP("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"onYtExpanderMoreTapped",null);_.e([_.tP("yt-expander-less-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"onYtExpanderLessTapped",null);
_.e([_.By("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"registerPanel",null);_.e([_.By("videoSecondaryInfoRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"resetDescriptionState",null);
_.e([_.By("structuredDescriptionContentRenderer"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"parseColorSamplingData",null);_.e([_.By("hoverColor","isDark"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Q_.prototype,"updateHoverColor",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Q_);
_.r(Q_,"ytd-watch-metadata",function(){if(B2R!==void 0)return B2R;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return B2R=z},{mode:2});_.wb7=function(z){_.Q9.call(this);this.JSC$22934_watchApi=z;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;ozZ(this);PED(this);heu(this);sj7(this);rXu(this);$MT(this);eeu(this)};
_.m(_.wb7,_.Q9);var heu=function(z){var l=function(){_.C("kevlar_is_pupi_enabled")||YL(z)};
z.JSC$22934_watchApi.getRoot().addEventListener("yt-player-updated",l);z.addOnDisposeCallback(function(){z.JSC$22934_watchApi.getRoot().removeEventListener("yt-player-updated",l)})},rXu=function(z){if(_.C("kevlar_endscreen_auto_theater_mode")){var l=z.JSC$22934_watchApi.subscribeToActiveChanged(function(){AX8(z)},!1);
z.addOnDisposeCallback(l)}},ozZ=function(z){var l,I,b,v,M;
_.O(function(x){if(x.nextAddress==1)return x.yield(z.JSC$22934_watchApi.playerApi,2);l=x.yieldResult;I=function(g){g=!!g;WyR(z)&&(g=g?2:1,_.Bf.getInstance().setState(g,!0,!1))};
b=function(g){g&&_.ilT(_.vF().getState())&&(_.Gb(z.JSC$22934_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),z.temporaryTheaterMode=!0)};
v=function(g){_.C("kevlar_player_update_autonav_on_new_data")&&g.type==="newdata"&&(_.C("kevlar_is_pupi_enabled")||YL(z))};
M=function(g){z.onPlayerStateChange(g)};
_.C("kevlar_endscreen_auto_theater_mode")&&l.addEventListener("onAutonavCancelled",b);l.addEventListener("onAutonavChangeRequest",I);l.addEventListener("onVideoDataChange",v);l.addEventListener("onStateChange",M);z.addOnDisposeCallback(function(){l.removeEventListener("onAutonavChangeRequest",I);l.removeEventListener("onVideoDataChange",v);l.removeEventListener("onStateChange",M);_.C("kevlar_endscreen_auto_theater_mode")&&l.removeEventListener("onAutonavCancelled",b)});
_.qe(x)})},PED=function(z){z.JSC$22934_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){z.autonavCancelledBySignal=!0;
_.C("kevlar_is_pupi_enabled")||YL(z)});
z.JSC$22934_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(l,I,b){I&&YL(z,b)});
z.JSC$22934_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){WyR(z)&&_.Bf.getInstance().setState(2,!0,!0)});
z.JSC$22934_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){WyR(z)&&_.Bf.getInstance().setState(1,!0,!0)});
z.addOnDisposeCallback(function(){z.JSC$22934_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");z.JSC$22934_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");z.JSC$22934_watchApi.unregisterActionHandler("yt-enable-autoplay-command");z.JSC$22934_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},sj7=function(z){var l=z.JSC$22934_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){eeu(z)}),I=z.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){$MT(z)});
z.addOnDisposeCallback(function(){z.JSC$22934_watchApi.unsubscribeByKey(l);z.JSC$22934_watchApi.unsubscribeByKey(I)})},eeu=function(z){z.autonavCancelledBySignal=!1;
_.C("kevlar_is_pupi_enabled")||YL(z)},$MT=function(z){var l=z.JSC$22934_watchApi.getWatchNextResponse(),I,b;
var v=(l=(b=_.k(l==null?void 0:(v=l.playerOverlays)==null?void 0:(I=v.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.I$j))==null?void 0:b.enabled)?2:1;_.C("kevlar_is_pupi_enabled")?_.Bf.getInstance().setState(v,!1,!1):YL(z);_.C("web_persist_server_autonav_state_on_client")&&typeof l==="boolean"&&_.Av$(v===2)},WyR=function(z){if(z.autonavCancelledBySignal)return!1;
var l,I,b,v;return!!((l=z.JSC$22934_watchApi.getWatchNextResponse())==null?0:(I=l.contents)==null?0:(b=I.twoColumnWatchNextResults)==null?0:(v=b.autoplay)==null?0:v.autoplay)};
_.wb7.prototype.onPlayerStateChange=function(z){if(z===0){z=!_.Bf.getInstance().isAutoplaySetExplicitly();var l=this.JSC$22934_watchApi.getWatchNextResponse(),I,b,v,M;l=_.k(l==null?void 0:(I=l.contents)==null?void 0:(b=I.twoColumnWatchNextResults)==null?void 0:(v=b.autoplay)==null?void 0:(M=v.autoplay)==null?void 0:M.autoplayExplicitChoiceDialogRenderer,_.kW4);WyR(this)&&z&&l&&_.KE.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:l},popupType:"DIALOG"}})}else AX8(this)};
var AX8=function(z){z.temporaryTheaterMode&&(z.temporaryTheaterMode=!1,_.Gb(z.JSC$22934_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},YL=function(z,l){l=l===void 0?!1:l;
var I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$22934_watchApi.playerApi,2);I=b.yieldResult;WyR(z)?I.setAutonavState(_.Bf.getInstance().getState(),l):I.setAutonavState(1,l);_.qe(b)})};var nzT={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"};_.UMv=function(z){_.Q9.call(this);var l=this;this.JSC$22939_watchApi=z;var I=this.JSC$22939_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){LyT(l)});
this.addOnDisposeCallback(function(){l.JSC$22939_watchApi.unsubscribeByKey(I)});
LyT(this)};
_.m(_.UMv,_.Q9);var LyT=function(z){var l=z.JSC$22939_watchApi.getPlayerResponse(),I=z.JSC$22939_watchApi.getWatchNextResponse();if(!_.nof(l==null?void 0:l.playabilityStatus,I==null?void 0:I.playerOverlays)){var b;var v=l==null?void 0:(b=l.playabilityStatus)==null?void 0:b.errorScreen}z.JSC$22939_watchApi.provideRenderingData("ERROR_SCREEN",v)};var a_R=_.P(function(z){var l=z.data;z=_.C("web_watch_video_details_hide_subtitle");var I=_.C("web_watch_video_details_single_line_title"),b=_.KK(function(){var g=l().onTap;g&&_.pG().resolve(_.DQ).resolveCommand(g)}),v={},M={},x={};
return _.N("yt-player-overlay-video-details-renderer",{class:_.m9("ytPlayerOverlayVideoDetailsRendererHost",(v.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.C("web_watch_video_details_transparent_background"),v)),"on:click":b,role:"button"},_.N("h2",{class:_.m9("ytPlayerOverlayVideoDetailsRendererTitle",(M.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return I},M))},_.N(_.Rf,{text:function(){return l().title}})),_.N("div",{class:_.m9("ytPlayerOverlayVideoDetailsRendererSubtitle",
(x.ytPlayerOverlayVideoDetailsRendererHideSubtitle=z,x))},_.N(_.Rf,{text:function(){return l().subtitle}})))},"al");var Tl={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},V3R=_.P(function(z){var l=z.data;var I=_.nK(_.AN),b=_.C("web_watch_action_bar_resize_buttons"),v=_.C("web_watch_video_action_dsdvb"),M=_.C("delhi_modern_web_player_icons")&&!_.C("enable_web_delhi_icons");z=_.C("delhi_modern_web_player_disable_frosted_glass");var x=function(){return b&&!I()?{size:"M"}:void 0},g={};
return _.N("yt-player-quick-action-buttons",{class:_.m9("ytPlayerQuickActionButtonsHost",(g.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!I()},g.ytPlayerQuickActionButtonsHostDisableBackdropFilter=z,g))},_.N(_.qy,{each:function(){var G=l();
if(M){G=JSON.parse(JSON.stringify(G));for(var u=_.D(G),Z=u.next();!Z.done;Z=u.next()){var H=Z.value,y=void 0;Z=_.k((y=_.k(H,_.bS))==null?void 0:y.toggleButtonViewModel,_.uS);var f=void 0;y=_.k((f=_.k(H,_.Ic))==null?void 0:f.toggleButtonViewModel,_.uS);f=_.k(H,_.N1);H=_.k(H,_.uS);if(Z)y=_.k(Z.defaultButtonViewModel,_.N1),Z=_.k(Z.toggledButtonViewModel,_.N1),y&&y.iconName&&(y.iconName=Tl[y.iconName]),Z&&Z.iconName&&(Z.iconName=Tl[Z.iconName]);else if(y)Z=_.k(y.defaultButtonViewModel,_.N1),y=_.k(y.toggledButtonViewModel,
_.N1),Z&&Z.iconName&&(Z.iconName=Tl[Z.iconName]),y&&y.iconName&&(y.iconName=Tl[y.iconName]);else if(f)f.iconName&&(f.iconName=Tl[f.iconName]);else if(H){Z=_.k(H.defaultButtonViewModel,_.N1);y=_.k(H.toggledButtonViewModel,_.N1);H=void 0;if((H=Z)==null?0:H.iconName)Z.iconName=Tl[Z.iconName];Z=void 0;if((Z=y)==null?0:Z.iconName)y.iconName=Tl[y.iconName]}}}v&&(G=IaR(G));return G}},function(G){return _.N(_.TS,{data:function(){return G}},{buttonViewModel:function(u){return _.N(_.h4,{data:u.data,
buttonOverrides:x})},
likeButtonViewModel:function(u){return _.N(_.gP,{data:u.data,buttonShapeOverrideables:x})},
dislikeButtonViewModel:function(u){return _.N(_.Os,{data:u.data,buttonShapeOverrideables:x})},
toggleButtonViewModel:function(u){return _.N(_.vL,{data:u.data,buttonShapeOverrides:x})}})}))},"bl");_.JX7=function(z){_.Q9.call(this);var l=this;this.JSC$22943_watchApi=z;z=_.D(_.Z_({},void 0,"n9wCVe"));this.quickActionsViewModel=z.next().value;this.setQuickActionsViewModel=z.next().value;z=_.D(_.Z_({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=z.next().value;this.setPlayerOverlayVideoDetailsRenderer=z.next().value;var I=this.JSC$22943_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jj8(l)});
this.addOnDisposeCallback(function(){l.JSC$22943_watchApi.unsubscribeByKey(I)});
jj8(this)};
_.m(_.JX7,_.Q9);
var jj8=function(z){var l,I,b,v,M,x,g,G,u,Z,H,y,f,R;_.O(function(F){if(F.nextAddress==1)return F.yield(z.JSC$22943_watchApi.playerApi,2);l=F.yieldResult;I=z.JSC$22943_watchApi.getWatchNextResponse();M=(b=I)==null?void 0:(v=b.playerOverlays)==null?void 0:v.playerOverlayRenderer;g=_.k((x=M)==null?void 0:x.fullscreenQuickActionsBar,_.lZp);(u=(G=z).setQuickActionsViewModel)==null||u.call(G,g||{});g&&zb0(z,l);y=(Z=M)==null?void 0:(H=Z.videoDetails)==null?void 0:H.playerOverlayVideoDetailsRenderer;(R=(f=
z).setPlayerOverlayVideoDetailsRenderer)==null||R.call(f,y||{});y&&lJR(z,l);_.qe(F)})},zb0=function(z,l){if(!z.quickActionButtonsContainer)if(l.setFullscreenQuickActions){z.quickActionButtonsContainer=document.createElement("div");
l.setFullscreenQuickActions(z.quickActionButtonsContainer);var I=function(){return z.quickActionsViewModel().quickActionButtons||[]},b=_.T3(z.quickActionButtonsContainer,function(){return _.N(V3R,{data:I})},"cl");
z.addOnDisposeCallback(function(){l.setFullscreenQuickActions(void 0);b()})}else _.PW(new _.qB("setFullscreenQuickActions not defined",{playerApi:Object.keys(l),
isReady:l.isReady(),appState:l.getAppState()}))},lJR=function(z,l){if(!z.playerOverlayVideoDetailsRendererContainer)if(l.setPlayerOverlayVideoDetailsRenderer){z.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
l.setPlayerOverlayVideoDetailsRenderer(z.playerOverlayVideoDetailsRendererContainer);var I=_.T3(z.playerOverlayVideoDetailsRendererContainer,function(){return _.N(a_R,{data:z.playerOverlayVideoDetailsRenderer})},"dl");
z.addOnDisposeCallback(function(){l.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}else _.PW(new _.qB("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(l),
isReady:l.isReady(),appState:l.getAppState()}))};_.cI=function(z){_.Q9.call(this);var l=this;this.JSC$22949_watchApi=z;this.JSC$22949_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;z=_.Wf(_.vF(),_.AN,function(I){l.onFullscreenChanged(I)});
this.addOnDisposeCallback(z);z=_.Wf(_.vF(),_.rY,function(I){l.onWatchScroll(I)});
this.addOnDisposeCallback(z);_.C("kevlar_watch_while_v2")&&(z=_.Wf(_.vF(),_.rg,function(I){IJA(l,I)}),this.addOnDisposeCallback(z));
bP7(this);vPR(this);Mmu();this.onWatchScroll(_.rY(_.vF().getState()));_.rr("START_IN_FULL_WINDOW_MODE")&&this.JSC$22949_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.m(_.cI,_.Q9);var bP7=function(z){z.JSC$22949_watchApi.registerActionHandler("yt-fullscreen-change-action",function(l){var I=z.JSC$22949_watchApi.isActive();l&&!I||_.vF().dispatch(_.GZ({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!l}}))});
z.addOnDisposeCallback(function(){z.JSC$22949_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},vPR=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$22949_watchApi.playerApi,2);l=b.yieldResult;I=function(){z.onFullerscreenEduClicked()};
l.addEventListener("onFullerscreenEduClicked",I);z.addOnDisposeCallback(function(){l.removeEventListener("onFullerscreenEduClicked",I)});
_.qe(b)})};
_.cI.prototype.onFullscreenChanged=function(z){var l=this,I;return _.O(function(b){if(b.nextAddress==1)return l.isFullscreen=!!_.pM(),b.yield(l.JSC$22949_watchApi.playerApi,2);I=b.yieldResult;l.JSC$22949_miniplayerActive||I.setFauxFullscreen(l.isFullscreen);if(z&&(l.JSC$22949_watchApi.focusOnPlayer(),!l.fullerscreenEduButtonShownThisPlayback)){l.fullerscreenEduButtonShownThisPlayback=!0;var v=_.rD("yt-fullerscreen-edu-button-shown-count")||0;_.sr("yt-fullerscreen-edu-button-shown-count",v+1,31536E3);
l.updateFullerscreenEduButtonSubtleModeState()}_.qe(b)})};
var IJA=function(z,l){var I;_.O(function(b){if(b.nextAddress==1)return z.JSC$22949_miniplayerActive=l,b.yield(z.JSC$22949_watchApi.playerApi,2);I=b.yieldResult;I.setFauxFullscreen(!z.JSC$22949_miniplayerActive&&z.isFullscreen);_.qe(b)})};
_.cI.prototype.onWatchScroll=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1)return _.C("external_fullscreen_with_edu")?v.yield(l.JSC$22949_watchApi.playerApi,2):v.return();I=v.yieldResult;b=z<=0;l.shouldShowFullerscreenEdu!==b&&(l.shouldShowFullerscreenEdu=b,I.updateFullerscreenEduButtonVisibility(!l.shouldShowFullerscreenEdu));_.qe(v)})};
_.cI.prototype.onFullerscreenEduClicked=function(){this.JSC$22949_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var z=_.rD("yt-fullerscreen-edu-button-click-count")||0;_.sr("yt-fullerscreen-edu-button-click-count",z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.cI.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var z=this,l,I,b,v,M,x;return _.O(function(g){if(g.nextAddress==1)return l=_.rD("yt-fullerscreen-edu-button-click-count")||0,I=_.rD("yt-fullerscreen-edu-button-shown-count")||0,b=_.OI("external_fullscreen_button_click_threshold"),v=_.OI("external_fullscreen_button_shown_threshold"),M=l>=b||I>=v,g.yield(z.JSC$22949_watchApi.playerApi,2);x=g.yieldResult;x.updateFullerscreenEduButtonSubtleModeState(M);_.qe(g)})};
_.cI.prototype.disposeInternal=function(){_.Q9.prototype.disposeInternal.call(this);var z=_.pM();_.C("kevlar_exit_fullscreen_leaving_watch")&&z&&_.DE(z)};
var Mmu=function(){if(_.C("web_watch_add_viewport_meta_tag")){var z=document.querySelector("meta[name=viewport]"),l=document.head;l&&!z&&(z=document.createElement("meta"),z.name="viewport",z.content="width=device-width, initial-scale=1.0, viewport-fit=cover",l.appendChild(z))}};_.DyT=function(z){_.Q9.call(this);var l=this;this.JSC$22953_watchApi=z;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$22953_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){p8v(l)});
this.addOnDisposeCallback(function(){l.JSC$22953_watchApi.unsubscribeByKey(I)});
p8v(this)};
_.m(_.DyT,_.Q9);var xyu=function(z){_.ow.cancelJob(z.jobId);z.pendingRequestId=void 0},p8v=function(z){xyu(z);
var l=bDu(z.JSC$22953_watchApi.getWatchNextResponse());if(l){var I=250,b,v=(b=_.k(l,_.z50))==null?void 0:b.initialDelayMs;_.C("web_watch_updated_metadata_server_initial_delay")&&v&&(I=v);z.jobId=_.ow.addLowPriorityJob(function(){return z.fetchUpdatedMetadata(l)},I)}};
_.DyT.prototype.fetchUpdatedMetadata=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c;return _.O(function(d){switch(d.nextAddress){case 1:l&&(b={continuation:l});if(!_.C("web_get_updated_metadata_fantasy_panel_continuation_params")){d.jumpTo(2);break}v=_.pG().resolve(_.lL);M="PAsports_fantasy";return d.yield(v.isVisible(M,!0),3);case 3:d.yieldResult&&(u=(g=(x=v).getUpdatePanelContinuationData)==null?void 0:(G=g.call(x,M))==null?void 0:G.updatePanelContinuationRequest)&&(b||(b={}),b.clientParams=
{panelContinuationParams:{panelContinuation:u}});case 2:Z=_.pG().resolve(_.AY);if(!Z)return _.dE(Error("Oo")),d.return();H={};I.pendingRequestId=H;return d.yield(_.I0(Z,z,b),4);case 4:y=d.yieldResult;if(H!==I.pendingRequestId)return d.return();F=(f=y)==null?void 0:(R=f.continuation)==null?void 0:R.timedContinuationData;((Y=F)==null?0:Y.continuation)&&((c=F)==null?0:c.timeoutMs)&&(I.jobId=_.ow.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(z,F.continuation)},F.timeoutMs));
_.qe(d)}})};
_.DyT.prototype.disposeInternal=function(){_.Q9.prototype.disposeInternal.call(this);xyu(this)};var OPR=_.P(function(z){var l=_.KK(function(){var b=z.data().videoId;if(z.active())b=_.pc(b),_.pG().resolve(_.DQ).resolveCommand(b);else{var v=z.playerApi(),M=v.getAvailableAudioTracks(),x,g,G=(x=z.sourceVideoConfig().audioTracks)==null?void 0:(g=x.find(function(u){return u.isDefaultForSource}))==null?void 0:g.id;
if(M=M.find(function(u){return u.getLanguageInfo().getId()===G}))v.setAudioTrack(M,!0),v.setCompositeParam({activeVideoId:b}),z.setActiveSourceId(b)}}),I={};
return _.N("ytw-composite-source-video-overlay",{class:_.m9("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=z.active,I.ytwCompositeSourceVideoOverlayInteracting=z.interacting,I)),style:_.XV({left:function(){var b;return((b=z.data().topLeftCornerX)!=null?b:0)*100+"%"},
top:function(){var b;return((b=z.data().topLeftCornerY)!=null?b:0)*100+"%"},
width:function(){var b;return((b=z.data().width)!=null?b:0)*100+"%"},
height:function(){var b;return((b=z.data().height)!=null?b:0)*100+"%"}}),
"on:click":l},_.N("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"el");var gP8=_.P(function(z){var l=_.D(_.Br(function(){var x,g=(x=z.data().sources)==null?void 0:x.find(function(G){return G.isActive});
if(g)return g.videoId})),I=l.next().value,b=l.next().value;
l=_.D(_.Z_(!1,void 0,"yNRzwd"));var v=l.next().value,M=l.next().value;return _.N("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.KK(function(){M(!0)}),
"on:mouseout":_.KK(function(){M(!1)})},_.N(_.E,{cond:function(){return z.data().sources},
then:function(x){return _.N(_.qy,{each:x},function(g){return _.N(OPR,{data:g,active:function(){return g.videoId===I()},
setActiveSourceId:b,interacting:v,playerApi:z.playerApi,sourceVideoConfig:function(){return vRv(z.compositeVideoConfig(),g.videoId)}})})}}))},"fl");_.EPu=function(z){_.Q9.call(this);this.JSC$22969_watchApi=z;z=_.D(_.Z_({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=z.next().value;this.setCompositeVideoOverlayRenderer=z.next().value;z=_.D(_.Z_({},void 0,"OlaJpc"));this.compositeVideoConfig=z.next().value;this.setCompositeVideoConfig=z.next().value;G3u(this);Nrr(this)};
_.m(_.EPu,_.Q9);var G3u=function(z){var l=z.JSC$22969_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Nrr(z)});
z.addOnDisposeCallback(function(){z.JSC$22969_watchApi.unsubscribeByKey(l)})},u0D=function(z){var l;
return _.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$22969_watchApi.playerApi,2);l=I.yieldResult;l.setCompositeVideoOverlayRendererComponent(z.container);_.qe(I)})},ZPR=function(z){var l;
return _.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$22969_watchApi.playerApi,2);l=I.yieldResult;l.setCompositeVideoOverlayRendererComponent(void 0);_.qe(I)})},HPT=function(z){var l,I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$22969_watchApi.playerApi,2);l=b.yieldResult;z.container=document.createElement("div");I=_.T3(z.container,function(){return _.N(gP8,{data:z.compositeVideoOverlayRenderer,compositeVideoConfig:z.compositeVideoConfig,playerApi:l})},"gl");
z.addOnDisposeCallback(I);_.qe(b)})},Nrr=function(z){var l,I,b,v,M,x,g,G;
_.O(function(u){return u.nextAddress==1?(l=z.JSC$22969_watchApi.getPlayerResponse(),M=_.k((I=l)==null?void 0:(b=I.overlay)==null?void 0:(v=b.playerControlsOverlayRenderer)==null?void 0:v.compositeVideoOverlay,ju7),G=(x=l)==null?void 0:(g=x.playerConfig)==null?void 0:g.compositeVideoConfig,M&&z.setCompositeVideoOverlayRenderer(M),G&&z.setCompositeVideoConfig(G),M&&G?z.container?u.jumpTo(6):u.yield(HPT(z),6):yrr(z)?u.yield(ZPR(z),0):u.jumpTo(0)):yrr(z)?u.jumpTo(0):u.yield(u0D(z),0)})},yrr=function(z){var l;
return!((l=z.container)==null||!l.parentElement)};
_.EPu.prototype.disposeInternal=function(){yrr(this)&&ZPR(this);_.Q9.prototype.disposeInternal.call(this)};_.myZ=function(z){_.Q9.call(this);var l=this;this.JSC$22975_watchApi=z;var I=this.JSC$22975_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var b=l.JSC$22975_watchApi.getPlayerResponse();if(b){var v,M;if(b=_.k((v=b.endscreen)==null?void 0:(M=v.endscreenRenderer)==null?void 0:M.hideButton,_.uS)){var x;(x=l.setEndscreenHideButton)==null||x.call(l,b);fJA(l)}}});
this.addOnDisposeCallback(function(){l.JSC$22975_watchApi.unsubscribeByKey(I)});
z=_.D(_.Z_({},void 0,"ER3tqb"));this.endscreenHideButton=z.next().value;this.setEndscreenHideButton=z.next().value;Csu(this);k30(this);Rb8(this)};
_.m(_.myZ,_.Q9);
var fJA=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return z.creatorEndscreenHideButtonContainer?b.return():b.yield(z.JSC$22975_watchApi.playerApi,2);l=b.yieldResult;z.creatorEndscreenHideButtonContainer=document.createElement("div");_.jN(z.creatorEndscreenHideButtonContainer,!1);l.setCreatorEndscreenHideButton(z.creatorEndscreenHideButtonContainer);I=_.T3(z.creatorEndscreenHideButtonContainer,function(){return _.N(_.vL,{data:z.endscreenHideButton,useOutlinedIcon:!0})},"hl");
z.addOnDisposeCallback(function(){I();var v;(v=l)==null||v.setCreatorEndscreenHideButton(void 0)});
_.qe(b)})},Csu=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$22975_watchApi.playerApi,2);l=b.yieldResult;I=function(){z.creatorEndscreenHideButtonContainer&&_.jN(z.creatorEndscreenHideButtonContainer,!0)};
l.addEventListener("endscreenelementshown",I);z.addOnDisposeCallback(function(){var v;(v=l)==null||v.removeEventListener("endscreenelementshown",I)});
_.qe(b)})},k30=function(z){var l=function(){z.creatorEndscreenHideButtonContainer&&_.jN(z.creatorEndscreenHideButtonContainer,!1)},I=z.JSC$22975_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",l),b=z.JSC$22975_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",l);
z.addOnDisposeCallback(function(){z.JSC$22975_watchApi.unsubscribeByKey(I);z.JSC$22975_watchApi.unsubscribeByKey(b)})},Rb8=function(z){z.JSC$22975_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(l){var I=_.k(l,W7A);
z.JSC$22975_watchApi.playerApi.then(function(b){b==null||b.setCreatorEndscreenVisibility(!!I.hide)})});
z.addOnDisposeCallback(function(){z.JSC$22975_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.tmZ=function(z){_.Q9.call(this);this.JSC$22981_watchApi=z;KF0(this)};
_.m(_.tmZ,_.Q9);var KF0=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$22981_watchApi.playerApi,2);l=b.yieldResult;I=function(v){_.vF().dispatch(_.GZ({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:v}}))};
l.addEventListener("onRetroModeChanged",I);z.addOnDisposeCallback(function(){l.removeEventListener("onRetroModeChanged",I)});
_.qe(b)})};var N07=0,eP=0,urR=0;var Brr;Brr=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.St=function(z){_.Q9.call(this);this.JSC$22986_watchApi=z;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;X8R(this)};
_.m(_.St,_.Q9);
var X8R=function(z){var l,I,b;_.O(function(v){if(v.nextAddress==1)return v.yield(z.JSC$22986_watchApi.playerApi,2);l=v.yieldResult;if(z.isDisposed())return v.return();z.sessionStorage=_.Jts("yt-sleep-timer");z.sessionStorage||_.PW(new _.qB("SessionStorage for Sleep Timer is undefined."));((I=z.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(yTR(),(b=z.sessionStorage)==null||b.remove("yt-sleep-timer"),l.syncVolume());qZD(z,l);iP7(z,l);FFZ(z,l);_.qe(v)})},qZD=function(z,l){var I=function(u){z.onSleepTimerSettingsChanged(u,
l)},b=function(u){z.onPlayerStateChange(u,l)},v=function(){z.onLoopChange(l)},M=function(){z.onCloseMiniplayer(l)},x=function(){GT7(l,(0,_.Dr)(),faT(l),z.selectedOption==="End of video",l.getPlayerState()!==1)},g=function(){z.onSeekComplete(l)},G=function(){_.ow.cancelJob(eP);
var u=l.getCurrentTime()>=l.getDuration(),Z=z.selectedOption==="End of video"||z.selectedOption==="End of playlist"&&!xZR(z.playlistId);u&&Z&&QYZ(z,l)};
l.addEventListener("onSleepTimerSettingsChanged",I);l.addEventListener("onLoopChange",v);l.addEventListener("onLoopRangeChange",v);l.addEventListener("onStateChange",b);l.addEventListener("onCloseMiniplayer",M);l.addEventListener("onSleepTimerFeatureAvailable",x);l.addEventListener("SEEK_COMPLETE",g);l.addEventListener("onAdStart",G);z.addOnDisposeCallback(function(){l.removeEventListener("onSleepTimerSettingsChanged",I);l.removeEventListener("onLoopChange",v);l.removeEventListener("onLoopRangeChange",
v);l.removeEventListener("onStateChange",b);l.removeEventListener("onCloseMiniplayer",M);l.removeEventListener("onSleepTimerFeatureAvailable",x);l.removeEventListener("SEEK_COMPLETE",g);l.removeEventListener("onAdStart",G)})},iP7=function(z,l){var I=z.JSC$22986_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var b=l.getVideoData().video_id,v,M=(v=pQR(z.JSC$22986_watchApi))==null?void 0:v.playlistId;
z.pauseAutonavPlayback&&(l.pauseVideo(),l.syncVolume(),z.pauseAutonavPlayback=!1);if(z.selectedOption==="End of video"&&b!==z.videoId)d$(z,l);else{if(z.selectedOption==="End of playlist"){v=xZR(z.playlistId);if(M!==z.playlistId){d$(z,l);break a}v?v&&YZa(z,l):Trv(z,l)}z.videoId=b;z.playlistId=M}}});
z.addOnDisposeCallback(function(){z.JSC$22986_watchApi.unsubscribeByKey(I)})},FFZ=function(z,l){var I=_.pG().resolve(_.G$),b=_.Wf(I,_.xG$,function(M){M&&z.selectedOption!=="Off"&&d$(z,l)}),v=z.JSC$22986_watchApi.subscribeToActiveChanged(function(M){var x,g;
return _.O(function(G){if(G.nextAddress==1)return G.yield(_.wb().navigationFinishPromise,2);x=!_.fz_();g=_.pG().resolve(_.Af).isMiniplayerActive();M||!MAZ(z.selectedOption)||g||x||d$(z,l);_.qe(G)})},!1);
I=_.Wf(I,function(M){return M.entities.playlistLoopStateEntity||{}},function(M){M=M===void 0?{}:M;
var x=DZu(z.JSC$22986_watchApi);if(x){var g;((g=M[x])==null?void 0:g.state)==="PLAYLIST_LOOP_STATE_ALL"&&MAZ(z.selectedOption)&&d$(z,l)}});
z.addOnDisposeCallback(b);z.addOnDisposeCallback(I);z.addOnDisposeCallback(v)};
_.St.prototype.onSleepTimerSettingsChanged=function(z,l){switch(z){case "Off":this.selectedOption!=="Off"&&d$(this,l);break;case "End of video":case "End of playlist":crr(this,z,l);break;default:crr(this,z,l,Brr.get(z))}};
_.St.prototype.onLoopChange=function(z){(z.getLoopVideo()||z.getLoopRange())&&MAZ(this.selectedOption)&&d$(this,z)};
_.St.prototype.onCloseMiniplayer=function(z){MAZ(this.selectedOption)&&d$(this,z)};
var crr=function(z,l,I,b){SZv(z,I);z.selectedOption=l;z.videoId=I.getVideoData().video_id;z.playlistId="";var v;(v=z.sessionStorage)==null||v.set("yt-sleep-timer","true");z.adjustmentsCount++;GT7(I,(0,_.Dr)(),faT(I),z.selectedOption==="End of video");if(z.selectedOption==="End of video")Trv(z,I),dyZ(z,I);else if(z.selectedOption==="End of playlist"){dyZ(z,I);var M,x;z.playlistId=(x=(M=pQR(z.JSC$22986_watchApi))==null?void 0:M.playlistId)!=null?x:"";xZR(z.playlistId)||Trv(z,I)}else b&&(z.presetFadeSchedulerId=
_.o0(_.ow,function(){ZDZ(I,15E3)},b-15E3),z.presetPauseSchedulerId=_.o0(_.ow,function(){QYZ(z,I)},b),ER7(I,(0,_.Dr)(),b))},QYZ=function(z,l){if(z.JSC$22986_watchApi.isActive()){var I={dismissDialogEndpoint:{}};
var b={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.mY("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};b={buttonViewModel:{title:_.mY("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:b}}};var v={dialogHeaderViewModel:{headline:{content:_.mY("SLEEP_TIMER_ENDED_TITLE")}}},
M={basicContentViewModel:{paragraphs:[{text:{content:_.mY("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:v,content:M,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:b,shouldHideDivider:!0}}}}}}};_.pG().resolve(_.DQ).resolveCommand(I,{form:{element:z}})}else yTR();oPR(z,!1);PsZ(z,l);l.pauseVideo();_.Bf.getInstance().getState()===2&&l.getPlayerState()===5&&(z.pauseAutonavPlayback=!0)},d$=function(z,l){oPR(z,!0);
PsZ(z,l);yTR()},PsZ=function(z,l){SZv(z,l);
z.selectedOption="Off";z.videoId="";z.playlistId="";z.adjustmentsCount=0;var I;(I=z.sessionStorage)==null||I.remove("yt-sleep-timer");_.ow.cancelJob(N07);l.resetSleepTimerMenuSettings()},oPR=function(z,l){l={timer_length_adjustment_times_during_session:z.adjustmentsCount-1,
is_session_cancelled:l};switch(z.selectedOption){case "Off":l.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":l.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":l.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:l.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",l.option_duration_in_minutes=Brr.get(z.selectedOption)/6E4}_.cW("sleepTimerSessionFinishEvent",l)};
_.St.prototype.onPlayerStateChange=function(z,l){z===1?GT7(l,(0,_.Dr)(),faT(l),this.selectedOption==="End of video"):z===0?(_.ow.cancelJob(eP),l.setVideoTimeLeft(gRT(0,0))):z===2&&_.ow.cancelJob(eP);this.selectedOption==="End of video"?z===0?QYZ(this,l):z===2&&HDr(l):this.selectedOption!=="End of playlist"||xZR(this.playlistId)||(z===0?QYZ(this,l):z===2&&HDr(l))};
_.St.prototype.onSeekComplete=function(z){z.getPlayerState()===2&&GT7(z,(0,_.Dr)(),faT(z),this.selectedOption==="End of video",!0)};
_.St.prototype.onCueRangeEnter=function(z,l){z==="sleep-timer-fade-audio"&&ZDZ(l,(l.getDuration()-l.getProgressState().current)*1E3)};
_.St.prototype.onCueRangeExit=function(z,l){z==="sleep-timer-fade-audio"&&l.getPlayerState()!==0&&HDr(l,!0)};
var Trv=function(z,l){l.addCueRange("sleep-timer-fade-audio",l.getDuration()-15,l.getDuration());l.addEventListener("onCueRangeEnter",function(I){z.onCueRangeEnter(I,l)});
l.addEventListener("onCueRangeExit",function(I){z.onCueRangeExit(I,l)})},YZa=function(z,l){l.removeCueRange("sleep-timer-fade-audio");
l.removeEventListener("onCueRangeEnter",function(I){z.onCueRangeEnter(I,l)});
l.removeEventListener("onCueRangeExit",function(I){z.onCueRangeExit(I,l)})},SZv=function(z,l){MAZ(z.selectedOption)?YZa(z,l):(_.ow.cancelJob(z.presetPauseSchedulerId),_.ow.cancelJob(z.presetFadeSchedulerId),z.presetPauseSchedulerId=0,z.presetFadeSchedulerId=0);
HDr(l,!0)},dyZ=function(z,l){l.setLoop(!1);
l.setLoopVideo(!1);l.setLoopRange(null);(z=DZu(z.JSC$22986_watchApi))&&_.pG().resolve(_.G$).dispatch(_.cU("playlistLoopStateEntity",z,{key:z,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.$y7=function(z){_.Q9.call(this);this.JSC$22989_watchApi=z;hbR(this);sYA(this);rrQ(this);z=z.getRoot();if(z.is==="ytd-watch-flexy"||z.is==="ytd-watch-grid")z.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.QCZ();_.C("web_watch_log_theater_mode_cookie_state")&&_.mZ.get("wide","0")==="1"&&_.aOS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.m(_.$y7,_.Q9);var hbR=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$22989_watchApi.playerApi,2);l=b.yieldResult;I=function(v){eb0(z,!!v)};
l.addEventListener("SIZE_CLICKED",I);z.addOnDisposeCallback(function(){l.removeEventListener("SIZE_CLICKED",I)});
_.qe(b)})},sYA=function(z){z.JSC$22989_watchApi.registerActionHandler("yt-toggle-theater-mode",function(l,I){eb0(z,l,I===void 0?!0:I)});
z.addOnDisposeCallback(function(){z.JSC$22989_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.$y7.prototype.getState=function(){return _.wo(_.vF().getState())};
var eb0=function(z,l,I){I=I===void 0?!0:I;var b,v,M,x=_.C("enable_player_resize_transition")&&!!z.JSC$22989_watchApi.getWatchNextResponse()&&!((b=z.JSC$22989_watchApi.getWatchNextResponse())==null?0:(v=b.contents)==null?0:(M=v.twoColumnWatchNextResults)==null?0:M.conversationBar);_.jjK(function(){_.vF().dispatch(_.GZ({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:l}}));_.C("theater_mode_scroll_to_top_killswitch")||z.JSC$22989_watchApi.scrollWatchTo(0,!1);_.pM()&&_.C("external_fullscreen")&&_.DE(document.documentElement);
rrQ(z);I&&_.KG("wide",l?"1":"0",-1);_.Gb(z.JSC$22989_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);z.JSC$22989_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:l});l&&_.QCZ()},{shouldWrap:x})},rrQ=function(z){var l;
_.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$22989_watchApi.playerApi,2);l=I.yieldResult;l.setSizeStyle(!0,z.getState());_.qe(I)})};var WF7=function(z){_.Q9.call(this);var l=this;this.playerApi=z;this.timeToPanelSyncKeyMap={};var I;if(z==null?0:(I=z.isReady)==null?0:I.call(z)){I=_.Wf(_.pG().resolve(_.G$),function(v){return v.entities.timedMarkersListSyncEntity||{}},function(v,M){v=v===void 0?{}:v;
M=M===void 0?{}:M;for(var x=_.D(Object.keys(M)),g=x.next();!g.done;g=x.next())g=g.value,v[g]!==M[g]&&w8u(l,M[g]);M=_.D(Object.keys(v));for(x=M.next();!x.done;x=M.next())x=x.value,g=v[x],l.timeToPanelSyncKeyMap[x]&&ArT(l,g)});
this.addOnDisposeCallback(I);var b=function(v){l.onCueRangeEnter(v)};
z.addEventListener("onCueRangeEnter",b);this.addOnDisposeCallback(function(){var v;(v=z.removeEventListener)==null||v.call(z,"onCueRangeEnter",b)})}};
_.m(WF7,_.Q9);
var ArT=function(z,l){var I,b;if((I=z.playerApi)==null?0:(b=I.isReady)==null?0:b.call(I)){var v;if((I=l==null?void 0:(v=l.timedListData)==null?void 0:v.sections)&&l!=null&&l.key)for(v=_.D(I),I=v.next();!I.done;I=v.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(b=0;b<I.timedSyncDataList.length;b++){var M=I.timedSyncDataList[b];M.syncItemId&&z.playerApi.addCueRange(I.sectionId+"_"+l.key+"_"+M.syncItemId,Number(M.videoTimeMs)/1E3,b===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[b+
1].videoTimeMs)/1E3)}}},w8u=function(z,l){var I,b;
if((I=z.playerApi)==null?0:(b=I.isReady)==null?0:b.call(I)){var v;if((I=l==null?void 0:(v=l.timedListData)==null?void 0:v.sections)&&l!=null&&l.key)for(v=_.D(I),I=v.next();!I.done;I=v.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){b=_.D(I.timedSyncDataList);for(var M=b.next();!M.done;M=b.next())M=M.value,M.syncItemId&&z.playerApi.removeCueRange(I.sectionId+"_"+l.key+"_"+M.syncItemId)}}};
WF7.prototype.onCueRangeEnter=function(z){for(var l=_.D(Object.keys(this.timeToPanelSyncKeyMap)),I=l.next();!I.done;I=l.next()){I=I.value;var b=_.D(z.split("_"+I+"_")),v=b.next().value;b=b.next().value;if(v&&b){z=_.pG().resolve(_.G$);l=this.timeToPanelSyncKeyMap[I];var M=_.l35(z.getState(),l);I=nPA(I,v,b);if(I===-1)break;I={activeSyncId:b,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:v}};M?z.dispatch(_.sc("markersEngagementPanelSyncEntity",l,I)):z.dispatch(_.cU("markersEngagementPanelSyncEntity",
l,Object.assign({},{key:l},I)));break}}};
var nPA=function(z,l,I){var b=_.pG().resolve(_.G$),v,M;z=(v=B4A(b.getState(),z))==null?void 0:(M=v.timedListData)==null?void 0:M.sections;if(!z)return-1;v=0;M=_.D(z);for(z=M.next();!z.done;z=M.next()){z=z.value;b=z.timedSyncDataList||[];if(z.sectionId===l)return l=b.findIndex(function(x){return x.syncItemId===I}),l===-1?l:v+l;
v+=b.length}return-1};_.aJv=function(z){_.Q9.call(this);var l=this;this.JSC$23002_watchApi=z;this.unresolvedCommands=[];this.JSC$23002_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){LFZ(l,I)});
this.addOnDisposeCallback(function(){l.JSC$23002_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
UyT(this)};
_.m(_.aJv,_.Q9);var UyT=function(z){var l;_.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$23002_watchApi.playerApi,2);l=I.yieldResult;if(z.isDisposed())return I.return();z.timedSyncObserver=new WF7(l);z.unresolvedCommands.length&&(z.unresolvedCommands.forEach(function(b){return LFZ(z,b)}),z.unresolvedCommands=[]);
_.kN(z,z.timedSyncObserver);_.qe(I)})},LFZ=function(z,l){if(z.timedSyncObserver){var I=_.k(l,L7T);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){z=z.timedSyncObserver;l=I.timedSyncEntityKey;var b=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var v=_.pG().resolve(_.G$);v=B4A(v.getState(),l);I?z.timeToPanelSyncKeyMap[l]||(z.timeToPanelSyncKeyMap[l]=b,ArT(z,v)):(delete z.timeToPanelSyncKeyMap[l],w8u(z,v))}}else z.unresolvedCommands.push(l)};var VmD=_.P(function(z){var l=z.data,I=z.maybeLogSmartSkipClientData,b=null,v=null,M=_.C("web_enable_auto_focus_for_timely_action_button"),x=function(){b=document.activeElement},g=function(){l().smartSkipMetadata&&(b=document.activeElement,_.UPX(function(){return v}))},G=function(Z){if(l().smartSkipMetadata&&(!Z||Z.key!=="Enter")){b&&b.isConnected&&(_.UPX(function(){return b}),b=null);
var H;(H=v)==null||H.blur()}};
z=_.KK(function(){I==null||I(!0,l());return!1});
var u=_.xl(_.AR(function(){return l().rendererContext},{onTap:function(Z,H){H({disableClickTracking:!0})}}),_.ps({visibilityCallback:function(Z){if(M)Z?v&&l().smartSkipMetadata&&(g(),document.addEventListener("focusin",x)):(document.removeEventListener("focusin",x),G());
else if(Z){Z=_.e9(l().rendererContext);var H=Number(l().maxVisibleDurationMilliseconds),y,f=(y=_.k(l().rendererContext,_.YM))==null?void 0:y.label;Z&&H&&f&&(y={label:f,command:Z,durationMs:H},_.pG().resolve(_.vj).enqueue(y))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.c8(function(){if(M){var Z;if((v=(Z=u.value)==null?void 0:Z.querySelector("button"))&&l().smartSkipMetadata){var H;(H=u.value)==null||H.addEventListener("keydown",G)}}});
_.cb(function(){M&&(v&&l().smartSkipMetadata&&v.removeEventListener("keydown",G),document.removeEventListener("focusin",x),G())});
return _.N("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:u,"on:click":z},_.N(_.TS,{data:function(){return l().content}},{buttonViewModel:_.h4}))},"il");var jYa=_.P(function(z){var l=z.data,I=z.playerApi,b=_.pG().resolve(_.cpl);z=_.D(_.Br(function(){l()}));
var v=z.next().value,M=z.next().value,x=function(){return RZr(l(),v())},g=function(u,Z){var H,y,f=(H=_.k(Z==null?void 0:Z.rendererContext,_.Fa))==null?void 0:(y=H.loggingDirectives)==null?void 0:y.trackingParams;
if((Z=Z==null?void 0:Z.smartSkipMetadata)&&Z.loggingData&&(y=Z.loggingData,Z=y.algorithmId,H=y.startMilliseconds,y=y.endMilliseconds,Z&&H!==void 0&&y!==void 0)){var R,F;u={smartSkipData:Object.assign({},{versionName:Z,startMediaTimeMs:H,endMediaTimeMs:y},u&&{userInteractionMediaTimeMs:(Math.floor(((R=_.GS())==null?void 0:(F=R.getPlayer())==null?void 0:F.getCurrentTime())||0)*1E3).toString()})};R=_.sU();var Y;f&&(Y=_.ch(f));R&&Y&&_.li(R,Y,u)}},G=function(u,Z){var H=RZr(l(),u);
if(H){var y=_.k(H,kTT),f;if(f=Z)f=I(),H=_.k(H,kTT),f=H!=null&&H.smartSkipMetadata?!(f==null?0:f.isSameMarkerTypeVisible((H==null?void 0:H.smartSkipMetadata.markerKey)||"")):!0;if(f){var R,F;(y==null?0:(R=y.smartSkipMetadata)==null?0:(F=R.loggingData)==null?0:F.isCounterfactual)||(g(!1,y),M(u))}else Z||v()!==u||M(void 0)}};
_.Te(function(){var u=l().timelyActions;if(u){u=_.D(u);for(var Z=u.next();!Z.done;Z=u.next()){Z=_.k(Z.value,kTT);var H=void 0;(H=Z)!=null&&H.cueRangeId&&b.timelyActionsMap.set(Z.cueRangeId,G)}_.cb(function(){b.timelyActionsMap.clear()})}},"PSaw4c");
return _.N("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.N(_.TS,{data:x},{timelyActionViewModel:function(u){return _.N(VmD,{data:u.data,maybeLogSmartSkipClientData:function(){g(!0,_.k(x(),kTT))}})}}))},"jl");_.zMR=function(z){_.Q9.call(this);this.JSC$23014_watchApi=z;z=_.D(_.Z_({},void 0,"UN7k5e"));this.timelyActionsOverlay=z.next().value;this.setTimelyActionsOverlay=z.next().value;Jrv(this)};
_.m(_.zMR,_.Q9);var Jrv=function(z){var l,I,b,v;_.O(function(M){if(M.nextAddress==1)return lQr(z),IQa(z),z.timelyActionsContainer=document.createElement("div"),M.yield(z.JSC$23014_watchApi.playerApi,2);l=M.yieldResult;(b=(I=l).insertTimelyActionUi)==null||b.call(I,z.timelyActionsContainer);v=_.T3(z.timelyActionsContainer,function(){return _.N(jYa,{data:z.timelyActionsOverlay,playerApi:l})},"kl");
z.addOnDisposeCallback(v);_.qe(M)})},IQa=function(z){var l=z.JSC$23014_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lQr(z)});
z.addOnDisposeCallback(function(){z.JSC$23014_watchApi.unsubscribeByKey(l)})},lQr=function(z){var l=z.JSC$23014_watchApi.getWatchNextResponse();
if(l){var I,b;if(l=_.k((I=l.playerOverlays)==null?void 0:(b=I.playerOverlayRenderer)==null?void 0:b.timelyActionsOverlayViewModel,UZu)){var v;(v=z.setTimelyActionsOverlay)==null||v.call(z,l)}}};_.vsR=function(z){_.Q9.call(this);this.JSC$23018_watchApi=z;bGu(this)};
_.m(_.vsR,_.Q9);var bGu=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23018_watchApi.playerApi,2);l=b.yieldResult;I=function(v){_.KE.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.k(v,_.w70)},popupType:"TOAST"}})};
l.addEventListener("onYtShowToast",I);z.addOnDisposeCallback(function(){l.removeEventListener("onYtShowToast",I)});
_.qe(b)})};var Mcu,xBr,EsQ,pVZ,DBZ,Nk7,gs7,GoZ,umD,HGD;Mcu=!1;_.OG8=function(z){_.Q9.call(this);this.JSC$23021_watchApi=z;this.fullscreen=this.theater=!1;pVZ(this);DBZ(this);xBr(this)};
_.m(_.OG8,_.Q9);xBr=function(z){var l,I,b;_.O(function(v){if(v.nextAddress==1)return v.yield(z.JSC$23021_watchApi.playerApi,2);l=v.yieldResult;if(z.isDisposed())return v.return();I=z.JSC$23021_watchApi.getElement("CINEMATICS");if(!I)return v.return();z.JSC$23021_cinematicController=new _.K_(I,l);_.kN(z,z.JSC$23021_cinematicController);_.NwR(z.JSC$23021_cinematicController);gs7(z,_.A$p());b=z.JSC$23021_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(M){GoZ(z,M)});
z.addOnDisposeCallback(function(){z.JSC$23021_watchApi.unsubscribeByKey(b)});
Nk7(z);GoZ(z,z.JSC$23021_cinematicController.isAllowed());EsQ(z);umD(z);_.qe(v)})};
EsQ=function(z){z.fullscreen=_.AN(_.vF().getState());z.theater=_.wo(_.vF().getState());_.ZGQ(z,z.fullscreen,z.theater);var l=_.Wf(_.vF(),_.AN,function(b){z.fullscreen=b;_.ZGQ(z,z.fullscreen,z.theater)}),I=_.Wf(_.vF(),_.wo,function(b){z.theater=b;
_.ZGQ(z,z.fullscreen,z.theater)});
z.addOnDisposeCallback(l);z.addOnDisposeCallback(I)};
pVZ=function(z){var l=z.JSC$23021_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Nk7(z)});
z.addOnDisposeCallback(function(){z.JSC$23021_watchApi.unsubscribeByKey(l)})};
DBZ=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23021_watchApi.playerApi,2);l=b.yieldResult;I=function(v){gs7(z,v)};
l.addEventListener("cinematicSettingsToggleChange",I);z.addOnDisposeCallback(function(){l.removeEventListener("cinematicSettingsToggleChange",I)});
_.qe(b)})};
Nk7=function(z){var l=z.JSC$23021_watchApi.getWatchNextResponse(),I;l=_.k(l==null?void 0:(I=l.pageVisualEffects)==null?void 0:I[0],_.Ii);var b;(b=z.JSC$23021_cinematicController)==null||_.uAD(b,l)};
gs7=function(z,l){var I;(I=z.JSC$23021_cinematicController)==null||_.E0r(I,l);HGD(z)};
GoZ=function(z,l){var I;_.O(function(b){if(b.nextAddress==1)return _.C("kevlar_watch_cinematics_invisible")&&(l=!1),b.yield(z.JSC$23021_watchApi.playerApi,2);I=b.yieldResult;I.updateCinematicSettings(l);HGD(z);_.qe(b)})};
umD=function(z){var l=_.Bu();if(_.C("kevlar_measure_ambient_mode_idle")&&!l.getFlag(192)&&!Mcu){Mcu=!0;var I=_.qA(_.ow,function(){_.pG().resolve(_.VYK).start(1E4)},5E3);
z.addOnDisposeCallback(function(){_.ow.cancelJob(I);_.pG().resolve(_.VYK).stop()})}};
_.ZGQ=function(z,l,I){z.fullscreen=l;z.theater=I;var b;(b=z.JSC$23021_cinematicController)==null||b.setFullscreen(z.fullscreen,z.theater);if(_.C("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(z.theater||z.fullscreen){var v;(v=z.JSC$23021_cinematicController)==null||_.ZnZ(v)}else if((z=z.JSC$23021_cinematicController)!=null){var M;(M=z.currentCinematicEffect)==null||M.pause()}};
HGD=function(z){if(_.C("web_cinematic_theater_mode")||_.C("web_cinematic_fullscreen")){var l;z.JSC$23021_watchApi.getRoot().toggleCinematicsActive(!((l=z.JSC$23021_cinematicController)==null||!l.isEnabled()))}};_.ko0=function(z){_.Q9.call(this);var l=this;this.JSC$23024_watchApi=z;this.commentsReady=!1;this.setCommentsJobId=0;z=_.Wf(_.vF(),_.rY,function(){yER(l)});
this.addOnDisposeCallback(z);var I=this.JSC$23024_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fQr(l)}),b=this.JSC$23024_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){fQr(l)});
this.addOnDisposeCallback(function(){l.JSC$23024_watchApi.unsubscribeByKey(I);l.JSC$23024_watchApi.unsubscribeByKey(b)});
var v=function(){_.C("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Cfa(l,"false")};
this.JSC$23024_watchApi.getRoot().addEventListener("yt-page-data-will-update",v);this.addOnDisposeCallback(function(){l.JSC$23024_watchApi.getRoot().removeEventListener("yt-page-data-will-update",v)});
fQr(this)};
_.m(_.ko0,_.Q9);var fQr=function(z){z.commentsReady=!1;_.ow.cancelJob(z.setCommentsJobId);z.setCommentsJobId=_.qA(_.ow,function(){yER(z)},1E3)},yER=function(z){if(!z.commentsReady){_.sK("cmi");
_.ow.cancelJob(z.setCommentsJobId);var l,I,b,v,M=(l=z.JSC$23024_watchApi.getWatchNextResponse())==null?void 0:(I=l.contents)==null?void 0:(b=I.twoColumnWatchNextResults)==null?void 0:(v=b.results)==null?void 0:v.results.contents;l=void 0;if(M&&M.length)for(M=_.D(M),I=M.next();!I.done;I=M.next())if(I=I.value,v=b=void 0,((b=I)==null?void 0:(v=b.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"){_.C("web_watch_provide_undefined_comments")?l=I.itemSectionRenderer:z.JSC$23024_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);Cfa(z,"true");break}_.C("web_watch_provide_undefined_comments")&&z.JSC$23024_watchApi.provideRenderingData("COMMENTS",l);z.commentsReady=!0;z.JSC$23024_watchApi.dispatchEvent("yt-watch-comments-ready")}},Cfa=function(z,l){var I;
(I=z.JSC$23024_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",l)};_.Bkv=function(z){_.Q9.call(this);var l=this;this.JSC$23027_watchApi=z;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.C("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.C("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.C("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.OI("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)RMT(this);
else{var I=this.JSC$23027_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){mBT(l);ok(l)}),b=this.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PI(l);
ok(l)});
this.JSC$23027_watchApi.getRoot().is==="ytd-watch-grid"&&_.C("swatcheroo_pbs_load_grid")&&(KZv(this),tcT(this));this.addOnDisposeCallback(function(){l.JSC$23027_watchApi.unsubscribeByKey(I);l.JSC$23027_watchApi.unsubscribeByKey(b);_.ow.cancelJob(l.provideRichGridJobId)});
mBT(this);PI(this)}};
_.m(_.Bkv,_.Q9);var RMT=function(z){var l=z.JSC$23027_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){z.providePlayerJobId=_.fI(_.ow,function(){mBT(z);ok(z)},z.provideAllDataDelayMs)}),I=z.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){z.provideWatchNextJobId=_.fI(_.ow,function(){PI(z);
ok(z)},z.provideAllDataDelayMs)}),b=z.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){z.provideWatchNextJobId=_.fI(_.ow,function(){PI(z);
ok(z)},z.provideAllDataDelayMs)});
z.JSC$23027_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.qA(_.ow,function(){mBT(z);PI(z);ok(z)},100)});
z.JSC$23027_watchApi.addPageDisposeJob(function(){_.ow.cancelJob(z.provideWatchNextJobId);_.ow.cancelJob(z.providePlayerJobId)});
z.addOnDisposeCallback(function(){z.JSC$23027_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");z.JSC$23027_watchApi.unsubscribeByKey(l);z.JSC$23027_watchApi.unsubscribeByKey(I);z.JSC$23027_watchApi.unsubscribeByKey(b);_.ow.cancelJob(z.providePlayerJobId);_.ow.cancelJob(z.provideWatchNextJobId)});
mBT(z);PI(z)},mBT=function(z){var l=z.JSC$23027_watchApi.getPlayerResponse(),I,b,v=(b=l==null?void 0:(I=l.playabilityStatus)==null?void 0:I.messageRenderers)!=null?b:[],M,x;
l=(x=l==null?void 0:(M=l.playabilityStatus)==null?void 0:M.messages)!=null?x:[];M=_.D(l);for(x=M.next();!x.done;x=M.next())v.push({alertRenderer:{text:_.lc(x.value),type:"WARNING"}});z.JSC$23027_watchApi.provideRenderingData("ALERTS",v)},PI=function(z){var l=[],I,b,v,M=z.JSC$23027_watchApi.getWatchNextResponse(),x,g,G,u,Z=M==null?void 0:(x=M.contents)==null?void 0:(g=x.twoColumnWatchNextResults)==null?void 0:(G=g.results)==null?void 0:(u=G.results)==null?void 0:u.contents;
if(Z)for(x=_.D(Z),g=x.next();!g.done;g=x.next())if(g=g.value,g.videoPrimaryInfoRenderer)var H=g;else if(g.videoSecondaryInfoRenderer){var y=g;u=G=void 0;g=Object.assign({},(G=g.videoSecondaryInfoRenderer)==null?void 0:(u=G.metadataRowContainer)==null?void 0:u.metadataRowContainerRenderer);if(g.rows&&g.collapsedItemCount!==void 0){g.rows=g.rows.slice(0,g.collapsedItemCount).filter(function(bK){return!!bK.richMetadataRowRenderer});
g.collapsedItemCount=g.rows.length;var f={metadataRowContainerRenderer:g}}}else if(g.merchandiseShelfRenderer)var R=g;else if(g.ticketShelfRenderer)var F=g;else if(g.expandableMetadataRenderer)var Y=g;else if(g.itemSectionRenderer)if(G=g.itemSectionRenderer.contents,u=void 0,z.directlyProvideComments&&((u=g.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section")_.sK("cmi"),z.JSC$23027_watchApi.provideRenderingData("COMMENTS",g.itemSectionRenderer);else if(G)for(g=_.D(G),G=
g.next();!G.done;G=g.next())if(G=G.value,G.commentsEntryPointHeaderRenderer)var c=G;else if(G.clarificationRenderer||G.infoPanelContainerRenderer||G.infoPanelContentRenderer||G.emergencyOneboxRenderer){l.push(G);var d=d||!!y}else G.limitedStateMessageRenderer?b=G:G.videoMetadataCarouselViewModel&&(v=G);if(_.C("web_watch_merch_in_sd_when_ticket_shelf_present")&&R&&F){var V=R;R=void 0}if(z.provideWatchNextSecondaryResults){var A,W,L;z.JSC$23027_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
M==null?void 0:(A=M.contents)==null?void 0:(W=A.twoColumnWatchNextResults)==null?void 0:(L=W.secondaryResults)==null?void 0:L.secondaryResults)}if(z.JSC$23027_watchApi.getRoot().is==="ytd-watch-grid"){var lH,Gk;z.JSC$23027_watchApi.provideRenderingData("LIVE_CHAT",M==null?void 0:(lH=M.contents)==null?void 0:(Gk=lH.twoColumnWatchNextResults)==null?void 0:Gk.conversationBar)}var uH,Xt,R1,H7;(A=M==null?void 0:(uH=M.contents)==null?void 0:(Xt=uH.twoColumnWatchNextResults)==null?void 0:(R1=Xt.secondaryResults)==
null?void 0:(H7=R1.secondaryResults)==null?void 0:H7.offerModule)&&(A.donationShelfRenderer||A.donationUnavailableRenderer)&&z.JSC$23027_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=A);uH=z.JSC$23027_watchApi.getPlayerResponse();if(!uH||!_.nof(uH.playabilityStatus,M==null?void 0:M.playerOverlays)){var P7;if(M==null?0:(P7=M.contents)==null?0:P7.singleColumnWatchNextResults){var o1,z_;var dw=M==null?void 0:(o1=M.contents.singleColumnWatchNextResults.results)==null?void 0:(z_=o1.results)==null?void 0:
z_.contents}else{var Ej,JG,yu,uu;P7=!!(Z==null?0:(Ej=Z[0])==null?0:(JG=Ej.itemSectionRenderer)==null?0:(yu=JG.contents)==null?0:(uu=yu[0])==null?0:uu.backgroundPromoRenderer);var Y0,iK;Ej=!!(M==null?0:(Y0=M.contents)==null?0:(iK=Y0.twoColumnWatchNextResults)==null?0:iK.secondaryResults);P7&&!Ej&&(dw=Z)}}Z=l[0];Y0=l[1];d&&l.length===1&&(Y0=Z,Z=void 0);z.JSC$23027_watchApi.provideRenderingData("PRIMARY_INFO",H);z.JSC$23027_watchApi.provideRenderingData("SECONDARY_INFO",y);z.JSC$23027_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
c);z.JSC$23027_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",v);z.JSC$23027_watchApi.provideRenderingData("CLARIFICATION",Z);z.JSC$23027_watchApi.provideRenderingData("RICH_METADATA",f);z.JSC$23027_watchApi.provideRenderingData("MERCH_SHELF",R);_.C("web_watch_merch_in_sd_when_ticket_shelf_present")&&z.JSC$23027_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",V);z.JSC$23027_watchApi.provideRenderingData("TICKET_SHELF",F);z.JSC$23027_watchApi.provideRenderingData("LIMITED_STATE",b);z.JSC$23027_watchApi.getRoot().is!==
"ytd-watch-grid"&&z.JSC$23027_watchApi.provideRenderingData("DONATION_SHELF",I);z.JSC$23027_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",dw);z.JSC$23027_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Y0);z.JSC$23027_watchApi.provideRenderingData("EXPANDABLE_METADATA",Y);if(z.swatcherooProvideAllDataOnScheduledJob){var a_,pu,lu,k0,E8,R_;H=M==null?void 0:(a_=M.contents)==null?void 0:(pu=a_.twoColumnWatchNextResults)==null?void 0:(lu=pu.secondaryResults)==null?void 0:(k0=lu.secondaryResults)==
null?void 0:(E8=k0.results)==null?void 0:(R_=E8[0])==null?void 0:R_.richGridRenderer;z.JSC$23027_watchApi.provideRenderingData("RICH_GRID_RENDERER",H)}};
_.Bkv.prototype.hasCompanionAds=function(z){var l,I;return(I=z==null?void 0:(l=z.adPlacements)==null?void 0:l.some(function(b){var v,M,x,g;return(b==null?void 0:(v=b.adPlacementRenderer)==null?void 0:(M=v.renderer)==null?void 0:M.actionCompanionAdRenderer)||(b==null?void 0:(x=b.adPlacementRenderer)==null?void 0:(g=x.renderer)==null?void 0:g.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var ok=function(z){if(!_.C("swaterdoo_ps_wn_handle_ks")){z.swatcherooProvideAllDataOnScheduledJob||tcT(z,3E3);var l=z.JSC$23027_watchApi.getPlayerResponse(),I,b,v,M,x,g=(I=z.JSC$23027_watchApi.getWatchNextResponse())==null?void 0:(b=I.contents)==null?void 0:(v=b.twoColumnWatchNextResults)==null?void 0:(M=v.secondaryResults)==null?void 0:(x=M.secondaryResults)==null?void 0:x.offerModule;l=z.hasCompanionAds(l);var G,u;I=(g==null?void 0:(G=g.tvfilmOfferModuleRenderer)==null?void 0:G.clientShouldSuppressIfCompanionAdDisplayed)||
(g==null?void 0:(u=g.unlimitedOfferModuleRenderer)==null?void 0:u.suppressIfCompanionAds);G=l&&I;z.JSC$23027_watchApi.getRoot().is==="ytd-watch-grid"&&z.JSC$23027_watchApi.provideRenderingData("OFFER_MODULE",G?void 0:g)}},tcT=function(z,l){_.C("swatcheroo_pbs_load_grid")&&(z.provideRichGridJobId&&_.ow.cancelJob(z.provideRichGridJobId),z.provideRichGridJobId=_.fI(_.ow,function(){z.provideRichGridJobId=0;
var I,b,v,M,x,g,G,u=(I=z.JSC$23027_watchApi.getWatchNextResponse())==null?void 0:(b=I.contents)==null?void 0:(v=b.twoColumnWatchNextResults)==null?void 0:(M=v.secondaryResults)==null?void 0:(x=M.secondaryResults)==null?void 0:(g=x.results)==null?void 0:(G=g[0])==null?void 0:G.richGridRenderer;u&&z.JSC$23027_watchApi.provideRenderingData("RICH_GRID_RENDERER",u)},l))},KZv=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23027_watchApi.playerApi,2);l=b.yieldResult;I=function(){z.onPlaybackStart()};
l.addEventListener("onPlaybackStartExternal",I);z.addOnDisposeCallback(function(){l.removeEventListener("onPlaybackStartExternal",I)});
_.qe(b)})};
_.Bkv.prototype.onPlaybackStart=function(){tcT(this)};_.qIv=function(z){_.Q9.call(this);var l=this;this.JSC$23040_watchApi=z;z.playerApi.then(function(I){l.player=I});
this.gestures=new _.QxZ(this.JSC$23040_watchApi.getRoot(),z.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.XXr(_.vF().getState())&&_.rY(_.vF().getState())<=0)if(_.AN(_.vF().getState())){var I;(I=l.player)==null||I.toggleFullscreen()}else _.Gb(l.JSC$23040_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
XVa(this)};
_.m(_.qIv,_.Q9);var XVa=function(z){var l=_.Wf(_.vF(),_.AN,function(I){z.onFullscreenChanged(I)});
z.addOnDisposeCallback(l);l=_.Wf(_.vF(),_.rY,function(I){z.gestures&&(I>0?z.gestures.detach():z.gestures.attach())});
z.addOnDisposeCallback(l)};
_.qIv.prototype.onFullscreenChanged=function(z){this.gestures&&this.gestures.update(z)};_.FZa=function(z){_.Q9.call(this);var l=this;this.JSC$23043_watchApi=z;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(z.subscribeToActiveChanged(function(I){l.onActiveChanged(I)}));
iGR(this)};
_.m(_.FZa,_.Q9);var Q3a=function(z){if(_.C("swatcheroo_page_dispose_all_watch_data"))z.pageDisposalDataTypes=Object.values(nzT).filter(function(I){return I!=="PLAYLIST"});
else if(_.C("swatcheroo_page_dispose_rich_grid")){var l;(l=z.pageDisposalDataTypes)==null||l.push("RICH_GRID_RENDERER")}},iGR=function(z){_.C("swatcheroo_enable_ghost_cards")&&(Q3a(z),z.JSC$23043_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ow.cancelJob(z.clearDataJobId);
z.clearDataJobId=0}),z.runPageDisposeJob=function(){var l=_.pG().resolve(_.OB).getDestinationPageType()==="watch";
z.clearDataJobId=_.fI(_.ow,z.runClearDataJob,l?0:_.OI("web_watch_delay_page_dispose_ms",1E4))},z.runClearDataJob=function(){YIa(z)},z.runOnYtNavigateAwayFinish=function(){z.clearDataJobId&&(_.ow.cancelJob(z.clearDataJobId),z.clearDataJobId=0,YIa(z))},document.addEventListener("yt-navigate-finish",z.runOnYtNavigateAwayFinish),z.JSC$23043_watchApi.addPageDisposeJob(z.runPageDisposeJob),z.addOnDisposeCallback(function(){z.JSC$23043_watchApi.removePageDisposeJob(z.runPageDisposeJob);
z.JSC$23043_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",z.runOnYtNavigateAwayFinish)}))},YIa=function(z){z.pageDisposalDataTypes.forEach(function(l){z.JSC$23043_watchApi.provideRenderingData(l,void 0)});
z.clearDataJobId=0};
_.FZa.prototype.onActiveChanged=function(z){z&&((z=document.querySelector("#watch-page-skeleton"))&&_.Bl(z),Tkv(this),document.body.removeAttribute("no-y-overflow"),_.rr("IS_SHELL_LOAD")&&_.Ets())};
var Tkv=function(z){_.O(function(l){if(l.nextAddress==1)return l.yield(z.JSC$23043_watchApi.playerApi,2);_.aF();_.qe(l)})};var cE0;cE0=_.C("kevlar_watch_while_counterfactual")?0:.25;_.PfR=function(z){_.Q9.call(this);this.JSC$23046_watchApi=z;this.JSC$23046_watchWhileEnabled=_.C("kevlar_watch_while_v2");this.pipEnabled=_.C("web_enable_pip_on_miniplayer");SIQ(this);dBr(this);osT(this)};
_.m(_.PfR,_.Q9);var SIQ=function(z){z.JSC$23046_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){hMZ(z)});
z.addOnDisposeCallback(function(){z.JSC$23046_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},dBr=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23046_watchApi.playerApi,2);l=b.yieldResult;I=function(){hMZ(z)};
l.addEventListener("onCollapseMiniplayer",I);z.addOnDisposeCallback(function(){l.removeEventListener("onCollapseMiniplayer",I)});
_.qe(b)})},osT=function(z){var l=z.JSC$23046_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&l&&z.JSC$23046_watchWhileEnabled&&(z.playerIntersectionObserver=new IntersectionObserver(function(I){z.handleIntersect(I)},{threshold:[cE0]}),z.playerIntersectionObserver.observe(l),z.addOnDisposeCallback(function(){var I;
(I=z.playerIntersectionObserver)==null||I.disconnect()}))},hMZ=function(z){var l,I,b;
_.O(function(v){if(v.nextAddress==1){l=_.pG().resolve(_.OB);I=l.data;b=_.s2(I.response,!1,I.playerResponse);_.wb().miniplayerButtonActivation=!0;if(z.pipEnabled)return _.wb().watchPipActivation=!0,v.jumpTo(2);_.pG().resolve(_.Af).collapse();return v.yield(_.wb().navigationFinishPromise,2)}if(v.nextAddress!=4)return _.wb().currentEndpoint=b.watchEndpoint||null,v.yield(_.pG().resolve(_.Af).activate(z.JSC$23046_watchApi.getElement("PLAYER"),b,I),4);_.wb().userActivation=!0;_.qe(v)})};
_.PfR.prototype.handleIntersect=function(z){s3D(this,z[z.length-1])};
var s3D=function(z,l){z.watchWhileJobId&&_.ow.cancelJob(z.watchWhileJobId);z.watchWhileJobId=_.ow.addLowPriorityJob(function(){var I,b;return _.O(function(v){if(v.nextAddress==1)return z.watchWhileJobId=void 0,I=_.pG().resolve(_.Af),l.intersectionRatio>cE0?I.isMiniplayerActive()?v.yield(I.deactivate(),0):v.jumpTo(0):(b=!I.isMiniplayerActive())?v.yield(rE7(z),5):v.jumpTo(4);v.nextAddress!=4&&(b=v.yieldResult);if(!b)return v.jumpTo(0);_.wb().watchWhileActivation=!0;return v.yield($BT(z),0)})},100)},
rE7=function(z){return _.O(function(l){return l.nextAddress==1?_.C("kevlar_watch_while_paused")?l.return(!0):l.yield(z.isPlayerPlaying(),2):l.return(l.yieldResult)})};
_.PfR.prototype.isPlayerPlaying=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$23046_watchApi.playerApi,2);l=I.yieldResult;return I.return(l.getPlayerStateObject().isPlaying)})};
var $BT=function(z){var l,I;return _.O(function(b){l=_.pG().resolve(_.OB).data;I=_.s2(l.response,!1,l.playerResponse);_.wb().currentEndpoint=I.watchEndpoint||null;return b.yield(_.pG().resolve(_.Af).activate(z.JSC$23046_watchApi.getElement("PLAYER"),I,l),0)})};_.AEZ=function(z){_.Q9.call(this);this.JSC$23050_watchApi=z;eM0(this);wVQ(this)};
_.m(_.AEZ,_.Q9);var wVQ=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23050_watchApi.playerApi,2);l=b.yieldResult;I=function(v){var M;v.sessionData&&v.sessionData.itct&&(M=v.sessionData.itct);var x=v.watchEndpoint;if(x&&v.sessionData&&v.sessionData.autonav)x=_.Zvt(x,M);else{var g;x=_.pc(v.videoId,(g=v.listId)!=null?g:void 0,M)}M={endpoint:x};v.sessionData&&(M.tempData=v.sessionData);z.JSC$23050_watchApi.dispatchEvent("yt-navigate",M)};
l.addEventListener("onPlayVideo",I);z.addOnDisposeCallback(function(){l.removeEventListener("onPlayVideo",I)});
_.qe(b)})},eM0=function(z){var l=function(I){z.onYtNavigate(I)};
z.JSC$23050_watchApi.getRoot().addEventListener("yt-navigate",l);z.addOnDisposeCallback(function(){z.JSC$23050_watchApi.getRoot().removeEventListener("yt-navigate",l)})};
_.AEZ.prototype.onYtNavigate=function(z){var l=this,I,b,v,M,x,g,G,u,Z;return _.O(function(H){if(H.nextAddress==1){if(!((I=z.detail)==null?0:(b=I.endpoint)==null?0:b.watchEndpoint))return H.return();v=z.detail.endpoint.watchEndpoint;M=l.JSC$23050_watchApi.getWatchNextResponse();g=_.k((x=M)==null?void 0:x.currentVideoEndpoint,_.zb);if(!g)return H.return();if(v.videoId!==g.videoId||v.playlistId&&v.playlistId!==g.playlistId||typeof v.startTimeSeconds!=="number")return H.jumpTo(0);z.stopPropagation();
(G=_.C("kevlar_watch_while_v2")&&!_.C("kevlar_watch_while_counterfactual"))&&_.pG().resolve(_.Af).isMiniplayerActive()||l.JSC$23050_watchApi.scrollWatchTo(0,!0);return H.yield(l.JSC$23050_watchApi.playerApi,3)}u=H.yieldResult;Z=v.startTimeSeconds;u.seekTo(Z,void 0,void 0,void 0,84);u.wakeUpControls();Z<u.getDuration()&&u.playVideo();_.qe(H)})};_.nsT=function(z){_.Q9.call(this);var l=this;this.JSC$23053_watchApi=z;var I=this.JSC$23053_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WZZ(l)});
this.addOnDisposeCallback(function(){l.JSC$23053_watchApi.unsubscribeByKey(I)});
WZZ(this);_.C("enable_ai_companion")&&(z=this.JSC$23053_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.JX0(_.pG().resolve(_.vD),z,"WATCH")};
_.m(_.nsT,_.Q9);var WZZ=function(z){var l=z.JSC$23053_watchApi.getWatchNextResponse();if(l){var I,b=[].concat(_.ht((I=l==null?void 0:l.engagementPanels)!=null?I:[]));b.unshift.apply(b,_.ht(LZT(l)));z.JSC$23053_watchApi.provideRenderingData("ENGAGEMENT_PANELS",b)}},UBT=function(z){var l,I,b,v=(l=z.engagementPanels)==null?void 0:(I=l.find(function(f){var R;
return((R=f.engagementPanelSectionListRenderer)==null?void 0:R.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(b=I.engagementPanelSectionListRenderer.content)==null?void 0:b.structuredDescriptionContentRenderer,M;
if(_.k(v==null?void 0:(M=v.items)==null?void 0:M.find(function(f){return!!_.k(f,NHu)}),NHu))return!0;
var x,g,G,u;if(z=(((x=z.contents)==null?void 0:(g=x.twoColumnWatchNextResults)==null?void 0:(G=g.results)==null?void 0:(u=G.results)==null?void 0:u.contents)||[]).find(function(f){return f.videoPrimaryInfoRenderer})){var Z,H,y;
return(((Z=z.videoPrimaryInfoRenderer)==null?void 0:(H=Z.videoActions)==null?void 0:(y=H.menuRenderer)==null?void 0:y.flexibleItems)||[]).some(function(f){f=_.k(f,_.m1M);if(!f)return!1;var R,F;f=(R=f.topLevelButton)==null?void 0:(F=R.buttonViewModel)==null?void 0:F.onTap;if(!f)return!1;R=_.Wh(f);if(!R)return!1;var Y;return((Y=_.k(R,_.SK))==null?void 0:Y.panelIdentifier)==="PAyouchat"})}return!1},LZT=function(z){var l=[];
if(!_.C("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,b,v,M=(I=z.engagementPanels)==null?void 0:(b=I.find(function(g){var G;return((G=g.engagementPanelSectionListRenderer)==null?void 0:G.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(v=b.engagementPanelSectionListRenderer.content)==null?void 0:v.structuredDescriptionContentRenderer,x;
_.k(M==null?void 0:(x=M.items)==null?void 0:x.find(function(g){return!!_.k(g,eZD)}),eZD)&&(I=_.cBp("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l.push(I))}UBT(z)&&(z=_.cBp("PAyouchat"),z.engagementPanelSectionListRenderer.targetId="PAyouchat",z.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l.push(z));
return l};_.Vca=function(z){_.Q9.call(this);this.JSC$23056_watchApi=z;aQ7(this)};
_.m(_.Vca,_.Q9);var aQ7=function(z){z.JSC$23056_watchApi.registerActionHandler("yt-loop-command",function(l){j30(z,l)});
z.JSC$23056_watchApi.registerActionHandler("yt-repeat-chapter-command",function(l){JET(z,l)});
z.addOnDisposeCallback(function(){z.JSC$23056_watchApi.unregisterActionHandler("yt-loop-command");z.JSC$23056_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},j30=function(z,l){var I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23056_watchApi.playerApi,2);I=b.yieldResult;_.k(l,ATQ).loop?(I.setLoopRange({startTimeMs:Number(_.k(l,ATQ).startTimeMs),endTimeMs:Number(_.k(l,ATQ).endTimeMs),postId:_.k(l,ATQ).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.qe(b)})},JET=function(z,l){var I,b;
_.O(function(v){if(v.nextAddress==1)return v.yield(z.JSC$23056_watchApi.playerApi,2);I=v.yieldResult;b=_.k(l,aa8).repeat;b==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.k(l,aa8).startTimeMs),endTimeMs:Number(_.k(l,aa8).endTimeMs),type:"repeatChapter"}),I.playVideo()):b==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.qe(v)})};_.lrR=function(z){_.Q9.call(this);this.JSC$23061_watchApi=z;znD(this)};
_.m(_.lrR,_.Q9);var znD=function(z){z.JSC$23061_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(l){IrT(z,l)});
z.addOnDisposeCallback(function(){z.JSC$23061_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},IrT=function(z,l){var I,b,v,M,x,g,G,u,Z,H,y;
_.O(function(f){if(f.nextAddress==1)return f.yield(z.JSC$23061_watchApi.playerApi,2);I=f.yieldResult;if(M=(v=(b=_.k(l,VA7))==null?void 0:b.highlightedMenuItemKey)!=null?v:"")(g=(x=I).highlightSettingsMenuItem)==null||g.call(x,M);if(Z=(u=(G=_.k(l,VA7))==null?void 0:G.openMenuItemKey)!=null?u:"")(y=(H=I).openSettingsMenuItem)==null||y.call(H,Z);_.qe(f)})};var bpZ=_.Hg("/youtube/app/watch/player_state","playerStateEntity");_.M8v=function(z){_.Q9.call(this);this.JSC$23064_watchApi=z;v8Q(this)};
_.m(_.M8v,_.Q9);var pdv=function(z){switch(z){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"}},v8Q=function(z){var l,I;
_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23064_watchApi.playerApi,2);l=b.yieldResult;I=function(v){z.onPlayerStateChange(v)};
l.addEventListener("onStateChange",I);z.addOnDisposeCallback(function(){l.removeEventListener("onStateChange",I)});
_.qe(b)})};
_.M8v.prototype.onPlayerStateChange=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(l.JSC$23064_watchApi.playerApi,2);I=v.yieldResult;b=I.getVideoData().video_id;_.M8().dispatch(_.cU("playerStateEntity",bpZ,{key:bpZ,playerState:pdv(z),videoId:b}));_.qe(v)})};_.xWZ=function(z){_.Q9.call(this);var l=this;this.JSC$23068_watchApi=z;this.enableExternalPlaylistPanelInPlayer=_.C("delhi_web_player_use_external_playlist_panel");_.pG().resolve(_.NG).setPlayer(this.JSC$23068_watchApi.getElement("PLAYER"));z=this.JSC$23068_watchApi.subscribeToActiveChanged(function(I){l.onActiveChanged(I)});
this.addOnDisposeCallback(z);DWT(this)};
_.m(_.xWZ,_.Q9);var DWT=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return z.enableExternalPlaylistPanelInPlayer?b.yield(z.JSC$23068_watchApi.playerApi,2):b.return();l=b.yieldResult;I=function(){if(z.playlistPanelElement)z.playlistPanelElement.onToggleExpanded()};
l.addEventListener("onToggleExternalPlaylistPanel",I);z.addOnDisposeCallback(function(){l.removeEventListener("onToggleExternalPlaylistPanel",I)});
_.qe(b)})};
_.xWZ.prototype.onActiveChanged=function(z){var l=this,I=_.pG().resolve(_.NG),b=function(){OpZ(l)};
z?(this.playlistPanelElement=this.JSC$23068_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(this.playlistPanelElement),I.addEventListener("yt-playlist-data-updated",b),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",b)}),OpZ(this)):_.nP(Error("Po")):(I.removeEventListener("yt-playlist-data-updated",b),I.cancelVideoSkip())};
var OpZ=function(z){var l=_.pG().resolve(_.NG);z.JSC$23068_watchApi.provideRenderingData("PLAYLIST",l.getPlaylistData())};_.hh=function(z){_.Q9.call(this);var l=this;this.JSC$23071_watchApi=z;this.onPageScroll=function(){l.scrollThrottle.fire();l.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.zD(this.onThrottledScroll,200,this);_.kN(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.zD(this.onMastheadThrottledScroll,50,this);_.kN(this,this.mastheadScrollThrottle);this.animation=new _.fx(function(I){l.JSC$23071_watchApi.getRoot().setScrollTop(I)});
z=_.Wf(_.vF(),_.AN,function(){l.onFullscreenChanged()});
this.addOnDisposeCallback(z);g8A(this);G6R(this);this.onThrottledScroll()};
_.m(_.hh,_.Q9);
_.hh.prototype.onFullscreenChanged=function(){var z=this,l=this.JSC$23071_watchApi.getRoot();!this.pageScrollElement&&l.pageScrollElement?(this.pageScrollElement=l.pageScrollElement,l.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){z.pageScrollElement&&z.pageScrollElement.removeEventListener("scroll",z.onPageScroll)})):this.pageScrollElement&&!l.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var g8A=function(z){window.addEventListener("scroll",z.onPageScroll);z.addOnDisposeCallback(function(){window.removeEventListener("scroll",z.onPageScroll)})},G6R=function(z){z.JSC$23071_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(l){a:{var I;
if(I=z.JSC$23071_watchApi.getRoot().contains(l)&&!z.animation.isAnimating()){I=l.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var b,v,M=(l==null?void 0:(b=l.parentElement)==null?void 0:(v=b.parentElement)==null?void 0:v.id)==="fixed-secondary";I=!(I&&M)}if(I){if(_.C("kevlar_watch_scroll_manager_absolute_offset_killswitch"))b=l.offsetTop;else for(b=0,v=l;v!==null;)b+=v.offsetTop,b-=v.scrollTop,v=v.offsetParent;v=b;b=v-24;l=v+l.offsetHeight+24;v=z.JSC$23071_watchApi.getRoot().getPageScrollingElement();
I=z.JSC$23071_watchApi.getRoot().getScrollTop();M=I+v.clientHeight-56;if(b<I+56)l=b-56;else if(l>M)l-=v.clientHeight;else break a;z.scrollWatchTo(Math.max(0,l),!0)}}});
z.addOnDisposeCallback(function(){z.JSC$23071_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.hh.prototype.onThrottledScroll=function(){var z=_.vF(),l=z.dispatch,I=this.JSC$23071_watchApi.getRoot().getScrollTop();l.call(z,_.GZ({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
_.hh.prototype.onMastheadThrottledScroll=function(){this.JSC$23071_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23071_watchApi.getRoot().getScrollTop())};
_.hh.prototype.scrollWatchTo=function(z,l){(l===void 0?0:l)?this.animation.start(this.JSC$23071_watchApi.getRoot().getScrollTop(),Math.max(0,z),500):this.JSC$23071_watchApi.getRoot().setScrollTop(z)};_.uhr=function(z){_.Q9.call(this);var l=this;this.JSC$23074_watchApi=z;var I=this.JSC$23074_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Ni7(l)}),b=this.JSC$23074_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){E8T(l)});
this.addOnDisposeCallback(function(){l.JSC$23074_watchApi.unsubscribeByKey(I);l.JSC$23074_watchApi.unsubscribeByKey(b)});
Ni7(this);E8T(this)};
_.m(_.uhr,_.Q9);
var Ni7=function(z){var l,I,b,v=(b=(l=z.JSC$23074_watchApi.getPlayerResponse())==null?void 0:(I=l.videoDetails)==null?void 0:I.title)!=null?b:"";z.JSC$23074_watchApi.dispatchEvent("yt-update-title",v)},E8T=function(z){var l,I,b,v,M,x,g,G=(g=((x=(l=z.JSC$23074_watchApi.getWatchNextResponse())==null?void 0:(I=l.contents)==null?void 0:(b=I.twoColumnWatchNextResults)==null?void 0:(v=b.results)==null?void 0:(M=v.results)==null?void 0:M.contents)!=null?x:[]).find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?
void 0:g.videoPrimaryInfoRenderer;
(l=_.ID(G==null?void 0:G.title))&&z.JSC$23074_watchApi.dispatchEvent("yt-update-title",l)};_.HpT=function(z){_.Q9.call(this);this.JSC$23077_watchApi=z;ZpD(this)};
_.m(_.HpT,_.Q9);var ZpD=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$23077_watchApi.playerApi,2);l=b.yieldResult;I=function(){z.onYpcContentRequest()};
l.addEventListener("onYpcContentRequest",I);z.addOnDisposeCallback(function(){l.removeEventListener("onYpcContentRequest",I)});
_.qe(b)})};
_.HpT.prototype.onYpcContentRequest=function(){var z,l,I,b,v,M=(z=this.JSC$23077_watchApi.getWatchNextResponse())==null?void 0:(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.secondaryResults)==null?void 0:(v=b.secondaryResults)==null?void 0:v.offerModule,x,g,G,u;z=(u=(G=(g=(x=M==null?void 0:M.episodeOfferModuleRenderer)!=null?x:M==null?void 0:M.movieOfferModuleRenderer)!=null?g:M==null?void 0:M.unlimitedOfferModuleRenderer)!=null?G:M==null?void 0:M.liveOfferModuleRenderer)!=
null?u:M==null?void 0:M.tvfilmOfferModuleRenderer;var Z,H,y;M=(y=M==null?void 0:(Z=M.tvfilmOfferModuleRenderer)==null?void 0:(H=Z.actionButtons)==null?void 0:H.length)!=null?y:0;H=Math.max(M-1,0);var f,R,F;Z=(F=z==null?void 0:(f=z.offerButton)==null?void 0:f.buttonRenderer)!=null?F:z==null?void 0:(R=z.actionButtons)==null?void 0:R[H].buttonRenderer;var Y,c;(f=(c=(Y=Z==null?void 0:Z.navigationEndpoint)!=null?Y:Z==null?void 0:Z.serviceEndpoint)!=null?c:Z==null?void 0:Z.command)&&_.KE.instance.resolveCommand(f)};
}catch(e){_._DumpException(e)}
try{
var wPF,r8l,h4s;_.sRW=function(){var z=_.h7.clone(PMs),l;return(new _.yK(function(I,b){z.onSuccess=function(v){_.Uut(v)?I(new h4s(v)):b(new _.P5("Request failed, status="+_.NB(v),"net.badstatus",v))};
z.onError=function(v){b(new _.P5("Unknown request error","net.unknown",v))};
z.onTimeout=function(v){b(new _.P5("Request timed out","net.timeout",v))};
l=_.fG("//googleads.g.doubleclick.net/pagead/id",z)})).thenCatch(function(I){if(I instanceof _.nj){var b;
(b=l)==null||b.abort()}return _.Ph(I)})};
_.$r1=function(z){a:{var l="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(l="EMBEDDED_PLAYER_MODE_PFL");var I=z.raw_embedded_player_response;if(!I&&(z=z.embedded_player_response))try{I=JSON.parse(z)}catch(v){break a}if(I)b:for(var b in r8l)if(r8l[b]==I.embeddedPlayerMode){l=r8l[b];break b}}return l==="EMBEDDED_PLAYER_MODE_PFL"};
_.e48=function(){if(_.C("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.B7k())return Error("uf");var z=_.sZ("PLAYER_VARS",{});if(_.h7.get(z,"privembed",!1)=="1")return Error("vf");if(_.$r1(z))return Error("wf")};
wPF=function(z){switch(z){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:_.Ap(z,"unknown result type")}};
_.A8W=function(z,l,I){l=_.FW7[l];I={detected:z===0,source:l.nd0,detectionResult:wPF(z),contentCpn:I};_.cW("biscottiBasedDetection",I);_.xOp.increment(l.nd0,z);l.zHz!==void 0&&_.hr("CATSTAT",_.q37(z,l))};
_.h1=function(z,l){var I={};I.key=z;I.value=l;return _.Oy7().then(function(b){return new Promise(function(v,M){try{var x=b.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);x.onsuccess=function(){v()};
x.onerror=function(){M()}}catch(g){M(g)}})})};
_.nO1=function(){var z=_.OI("user_engagement_experiments_rate_limit_ms"),l=WGy.get("last-user-engagement-exp-trigger-timestamp");return!l||(0,_.Dr)()>=l+z?(WGy.set("last-user-engagement-exp-trigger-timestamp",(0,_.Dr)()),!0):!1};
_.sT=function(z,l,I,b,v){l=l===void 0?null:l;I=I===void 0?null:I;b=b===void 0?null:b;v=v===void 0?null:v;z={youThereEventType:z};I&&(z.lactThresholdMs=I.lactThresholdMs,z.mediaPosSec=I.promptDelaySec,z.lactServerRequestMs=I.lactServerRequestMs,z.triggerReason=I.triggerReason);v!=null&&(z.renderingMediaPosSec=Math.round(v));l||(l=_.sU());l&&(z.clientScreenNonce=l);b&&(z.clientPlaybackNonce=b);_.cW("youThere",z)};
r8l={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"};h4s=function(z){this.xhr=z};
_.P5=function(z,l,I){_.I1.call(this,z+", errorCode="+l);this.errorCode=l;this.xhr=I;this.name="PromiseAjaxError"};
_.m(_.P5,_.I1);var PMs={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var WGy=new _.$8("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.oOK=function(z){return _.GZ({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:z})};
}catch(e){_._DumpException(e)}
try{
var et,enT,AWr,W5a,n8R,L57,ar8,MX7,pWZ,DAa,UWr,wda,zqv,JWZ,g78;_.$Wa=function(){var z=window.location.hash;z.charAt(0)==="#"&&(z=z.charAt(1)==="!"?z.substring(2):z.substring(1));return _.aY(z)};
et=function(z,l,I){var b;return _.O(function(v){if(v.nextAddress==1)return v.yield(l(),2);b=v.yieldResult;I(b,z);_.qe(v)})};
enT=function(){return _.O(function(z){return z.nextAddress==1?z.yield((_.e48()!==void 0?_.Ph(Error("xf")):_.sRW()).then(function(){return 1},function(l){if(l.message==="Biscotti id is disabled")return 3;
_.PW("Failed fetching bid");return 0}),2):z.return(z.yieldResult)})};
AWr=function(){var z=_.xW("bi1lbWJlZC1wbGF5ZXIjY3VuMWd4YmxlbHZjeXQtaGF2ZQ=="),l=_.xW("Z29uMTE0NG1pZnJhbWUjODB3ZA==");return document.querySelector(l+wda+z)?0:1};
W5a=function(){return _.ue1(_.kT)};
n8R=function(){return _.ZfY()===0?0:_.HfH()};
L57=function(){return _.RFQ(_.dQ7([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
ar8=function(){return _.pE1(UWr)};
_.V87=function(z){_.O(function(l){switch(l.nextAddress){case 1:return l.yield(et("b.f_",enT,z),2);case 2:return l.yield(et("j.s_",_.vjY,z),3);case 3:return l.yield(et("r.s_",_.lWu,z),4);case 4:return l.yield(et("e.h_",ar8,z),5);case 5:if(!_.C("ab_det_sc_inj")){l.jumpTo(6);break}return l.yield(et("s.i_",_.NUx,z),6);case 6:if(_.C("ab_deg_unex_thr")){l.jumpTo(8);break}return l.yield(et("a.o_",_.gjS,z),8);case 8:if(_.C("ks_get_o_pp")){l.jumpTo(10);break}return l.yield(et("g.o_",_.Ofu,z),10);case 10:if(_.C("ks_det_gpbl")){l.jumpTo(12);
break}return l.yield(et("p.i_",_.xdt,z),12);case 12:return l.yield(et("f.i_",_.wLx,z),14);case 14:return l.yield(et("a.b_",_.JoS,z),15);case 15:return l.yield(et("p.m_",_.nY1,z),16);case 16:if(!_.C("ab_det_el_h_v2")){l.jumpTo(17);break}return l.yield(et("n.h_",L57,z),17);case 17:return l.yield(et("o.p_",W5a,z),19);case 19:return l.yield(et("e.i_",AWr,z),20);case 20:if(_.C("ab_det_apm"))return l.yield(et("o.a_",n8R,z),0);l.jumpTo(0)}})};
_.jwR=function(z,l){z={videoId:z};l&&(z.playlistId=l);return z};
_.lxR=function(){if(_.B7k()){var z=_.sZ("PLAYER_VARS",{});if(_.h7.get(z,"privembed",!1)!="1"&&!_.$r1(z)){var l=function(){JWZ=!0;"google_ad_status"in window?_.hr("DCLKSTAT",1):_.hr("DCLKSTAT",2)};
try{_.nQ(_.yGC,l)}catch(I){}zqv.push(_.ow.addLowPriorityJob(function(){if(!(JWZ||"google_ad_status"in window)){try{_.yvQ(_.yGC.toString(),l)}catch(I){}JWZ=!0;_.hr("DCLKSTAT",3)}},5E3))}}};
_.IxR=function(z,l,I){I=I===void 0?!1:I;var b=Math.max(z.width,_.uP0);if(_.C("kevlar_watch_feed_big_thumbs")&&z.width>=1550-_.fX()&&z.height>=800)b-=_.kgT;else if(z.width>=_.n_){var v=_.Z48+_.H4D+_.Wq;_.C("kevlar_watch_feed_big_thumbs")&&(v=_.CtR);b-=v}else b-=_.Z48;b=Math.min(b,_.ytr);v=240;I&&(v=380);l<.5624||(!_.C("kevlar_watch_flexy_disable_small_window_sizing")&&(z.height<630&&z.width>=657||z.height>=630&&z.width>=_.n_&&z.width<1327)?v=360:!_.C("kevlar_watch_flexy_disable_large_window_sizing")&&
z.height>=630&&z.width>=1327&&(v=480));var M=Math.min(b*l,z.height-(56+_.EdT+_.f17));M=Math.max(M,v);l<1?b=M/l:z.width>=_.n_&&(b=_.IxR(z,.5625,I).width);return new _.X5(Math.round(b),Math.round(M))};
_.b2T=function(z){var l=0;z.indexOf("h")!=-1&&(z=z.split("h"),l=z[0]*60*60,z=z[1]);z.indexOf("m")!=-1&&(z=z.split("m"),l=z[0]*60+l,z=z[1]);z.indexOf("s")!=-1?(z=z.split("s"),l=z[0]*1+l):l=z*1+l;return l};
_.v7A=function(){_.OI("service_worker_push_logged_out_prompt_watches")!=-1&&_.$a("WatchCount").then(function(z){z>=100||_.h1("WatchCount",z+1)})};
MX7=function(z){var l=z.externalVideoId||"";return l?z.isShortsEligible?"https://www.youtube.com/shorts/"+l:"https://www.youtube.com/watch?v="+l:""};
pWZ=function(z){var l=[];z.viewCount&&l.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:z.viewCount});z.likeCount&&l.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:z.likeCount});return l};
DAa=function(z){var l,I,b={"@context":"https://schema.org","@type":"VideoObject",description:_.ID(z.description),duration:"PT"+(z.lengthSeconds||"0")+"S",embedUrl:z.embed?z.embed.iframeUrl:"",name:_.ID(z.title),thumbnailUrl:((l=z.thumbnail)==null?void 0:(I=l.thumbnails)==null?void 0:I.map(function(Z){return Z&&Z.url||""}))||[],
uploadDate:z.publishDate};_.C("mweb_video_schema_id_killswitch")||(b["@id"]=MX7(z));l=pWZ(z);l.length&&(b.interactionStatistic=l);z.category&&(b.genre=z.category);z.ownerChannelName&&(b.author=z.ownerChannelName);z.liveBroadcastDetails&&(b.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:z.liveBroadcastDetails.startTimestamp,endDate:z.liveBroadcastDetails.endTimestamp}]);if(z.learningResource){z=z.learningResource;b["@type"]=["VideoObject","LearningResource"];var v;if((v=z.learningResourceType)==
null?0:v.length)b.learningResourceType=z.learningResourceType[0];var M;if((M=z.educationalAlignment)==null?0:M.length)b.educationalAlignment={"@type":"AlignmentObject",targetName:z.educationalAlignment[0]};var x;if((x=z.educationalLevel)==null?0:x.length){v=z.educationalLevel[0];var g;if((g=z.educationalLevelCountry)==null?0:g.length)v+=" ("+z.educationalLevelCountry+")";b.educationalLevel=v}var G,u;if(((G=z.learningResourceType)==null?0:G.length)&&z.learningResourceType[0]==="Problem walkthrough"&&
((u=z.problemDescriptions)==null?0:u.length))for(b.hasPart=[],g=_.D(z.problemDescriptions),G=g.next();!G.done;G=g.next())v=G.value,G=v.problemDescriptionText,u=v.startOffset,v=v.url,G&&u!==void 0&&v&&b.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:G,text:G,startOffset:u,url:v})}return b};
_.xAT=function(z){return _.GZ({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:z}})};
UWr=[[["MnNwZmQ4d3ByaW1hcnkjZnY2cDk=",null,null],[null,["c3VsdHMtcmVuZGVyZXIjZDVqdzFvaWc3ZmI0eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJl","Nm9tc3R5bGUtc2NvcGUjOXIwcnlhOHkw"],null],["aGExbWFzdGhlYWQtYWQjeWp3Mmpsa2tr",["LWdyaWQtcmVuZGVyZXIjdXZveWk1azJmZGxheXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjeTE4eGlkMjg5Mnh0eXRkLXJpY2g=","bzZxc3R5bGUtc2NvcGUjYnN6ejVhbW1o"],null],[null,["cHJvbW8tcmVuZGVyZXIjaWtsM3NkbHd0aHByeXRkLWJhbm5lci0=","bW1sc3R5bGUtc2NvcGUjaGdlbzNmN3lv"],null],[null,["LXNsb3QtcmVuZGVyZXIjdnF0dXBxeDQ2c2ZieXRkLWFk"],
null]],[["OWw4ZXBsYXllci1hZHMjaWQzM3BzaHc=",null,null]],[["Y3JpcHRpb24taW5uZXIjZWhxY3ZrbXU4aXRuZGVz",null,null],[null,null,"LXNoZWxmLXJlbmRlcmVyI2Q1OWxjbWZ6ZWMzeXRkLW1lcmNo"],["eDBnd2dteDg2N21haW4jNDM=",["c2hlbGYtcmVuZGVyZXIjanptam1zeDlvaWZ3eXRkLW1lcmNoLQ=="],null]]];wda="#";zqv=[];JWZ=!1;_.O2D=["engagement-panel-ads"];g78=new _.Z0("updateSentimentBarStateCommand");_.GuQ=new _.Z0("showSurveyCommand");_.w$=new _.Z0("changeMarkersVisibilityCommand");var E7u,uLR,fxr,yKu,H20,Ah;_.NE0=function(z,l){this.playerProvider_=z;this.actionSenderElement_=l;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.NE0.prototype.reset=function(){E7u(this);this.isUserPredictedAbsent_=!1};
E7u=function(z,l){!z.youThereData_||z.showWarningJob_||l!==void 0&&l||(_.sT("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.sU(),z.youThereData_,z.clientPlaybackNonce_),_.SX());_.ow.cancelJob(z.showWarningJob_);z.showWarningJob_=0;_.ow.cancelJob(z.showBlockingWarningJob_);z.showBlockingWarningJob_=0;_.ow.cancelJob(z.pausePlaybackJob_);z.pausePlaybackJob_=0;z.youThereData_=null;z.clientPlaybackNonce_=void 0;z.inYouThereFlow_=!1};
_.Z2v=function(z,l){var I,b,v;_.O(function(M){if(M.nextAddress==1)return z.reset(),M.yield(z.playerProvider_().getPlayerPromise(),2);I=M.yieldResult;z.clientPlaybackNonce_=I.getVideoData().cpn;z.youThereData_=l.configData.youThereData;if(!z.youThereData_)return M.return();if(z.youThereData_.triggerReason&&z.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.nO1())return _.sT("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.sU(),z.youThereData_,z.clientPlaybackNonce_),M.return();b=z.youThereData_.promptDelaySec;
v=I.getCurrentTime();z.showWarningJob_=_.ow.addLowPriorityJob(function(){return _.O(function(x){z.showWarningJob_=0;return x.yield(uLR(z),0)})},Math.max(b-v,0)*1E3);
_.qe(M)})};
uLR=function(z){var l,I,b,v,M,x;return _.O(function(g){if(g.nextAddress==1)return g.yield(z.playerProvider_().getPlayerPromise(),2);if(g.nextAddress!=3)return l=g.yieldResult,I=l.getCurrentTime(),g.yield(H20(z),3);b=g.yieldResult;if(!b||!z.youThereData_)return g.return();if(_.C("check_user_lact_at_prompt_shown_time_on_web")&&(v=parseInt(z.youThereData_.lactThresholdMs,10),_.p2()<v))return _.sT("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.sU(),z.youThereData_,z.clientPlaybackNonce_),g.return();if(z.youThereData_.playbackPauseDelayMs<=
0)return yKu(z),g.return();!_.C("external_fullscreen")&&(M=_.pM())&&(z.ignoreFullscreenExitUserActivity_=!0,_.ow.addLowPriorityJob(function(){z.ignoreFullscreenExitUserActivity_=!1},2E3),_.DE(M));
z.youThereData_.showToastWarningPrompt&&(Ah(z,z.youThereData_.showWarningActions),z.inYouThereFlow_=!0,_.sT("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.sU(),z.youThereData_,z.clientPlaybackNonce_,I),_.sT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.sU(),z.youThereData_,z.clientPlaybackNonce_,I));x=0;z.youThereData_.blockingPromptDelayMs&&(x=z.youThereData_.blockingPromptDelayMs);z.showBlockingWarningJob_=_.ow.addLowPriorityJob(function(){return _.O(function(G){z.showBlockingWarningJob_=0;return G.yield(fxr(z),
0)})},x);
_.qe(g)})};
fxr=function(z){var l,I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield(H20(z),2);l=v.yieldResult;if(!z.youThereData_)return v.return();l&&(z.youThereData_.showBlockingWarningAction&&(_.sT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.sU(),z.youThereData_,z.clientPlaybackNonce_),(I=_.k(z.youThereData_.showBlockingWarningAction,_.yi))?Ah(z,I.commands):Ah(z,[z.youThereData_.showBlockingWarningAction]),z.inYouThereFlow_=!0),b=z.youThereData_.playbackPauseDelayMs,z.pausePlaybackJob_=
_.ow.addLowPriorityJob(function(){return _.O(function(M){z.pausePlaybackJob_=0;return M.yield(yKu(z),0)})},b));
_.qe(v)})};
yKu=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(H20(z),2);l=I.yieldResult;if(!z.youThereData_)return I.return();l&&(_.sT("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.sU(),z.youThereData_,z.clientPlaybackNonce_),Ah(z,z.youThereData_.showPausedActions),z.inYouThereFlow_=!0);_.qe(I)})};
_.NE0.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var z=_.k(this.youThereData_.userActiveDuringFlowAction,_.yi);z?Ah(this,z.commands):Ah(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.sT("YOU_THERE_EVENT_TYPE_LACT_RESET",_.sU(),this.youThereData_,this.clientPlaybackNonce_),_.SX());E7u(this,!0)}_.C_a(this,!1)};
_.ku8=function(z){_.sT("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.sU(),z.youThereData_,z.clientPlaybackNonce_)};
H20=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(z.playerProvider_().getPlayerPromise(),2);l=b.yieldResult;I=l.getPlayerState();return b.return(I==-1||I==1||I==3)})};
_.C_a=function(z,l){var I;_.O(function(b){if(b.nextAddress==1){if(z.isUserPredictedAbsent_==l)return b.jumpTo(0);z.isUserPredictedAbsent_=l;return b.yield(z.playerProvider_().getPlayerPromise(),3)}I=b.yieldResult;I.setUserEngagement(l);l&&_.sT("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.sU(),z.youThereData_,z.clientPlaybackNonce_);_.qe(b)})};
Ah=function(z,l){if(_.C("handle_service_request_actions")||_.C("kevlar_youthere_service_endpoint_actions_killswitch"))_.ZE(z.actionSenderElement_,l,z.actionSenderElement_);else{l=_.D(l);for(var I=l.next();!I.done;I=l.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.uJ(z.actionSenderElement_,[I]):_.ZE(z.actionSenderElement_,[I],z.actionSenderElement_)}};var RqR;var mA7;var WI=function(){var z=_.q.apply(this,arguments)||this;z.systemIcons=_.C("kevlar_system_icons");z.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return z};
_.m(WI,_.q);WI.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var z=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(z=this.data.percentIfLiked||0,this.activated=!0):(z=this.data.percentIfIndifferent||0,this.activated=!1);_.Hy(this.hostElement).querySelector("#like-bar").style.width=z+"%"}};
WI.prototype.handleUpdateSentimentBarStateCommand=function(z){this.data&&this.set("data.likeStatus",_.k(z,g78).likeStatus)};
WI.prototype.observeLikeStatus=WI.prototype.observeLikeStatus;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],WI.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],WI.prototype,"activated",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],WI.prototype,"systemIcons",void 0);_.e([_.By("data.likeStatus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WI.prototype,"observeLikeStatus",null);_.e([_.S({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],WI);
_.r(WI,"ytd-sentiment-bar-renderer",function(){if(mA7!==void 0)return mA7;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return mA7=z},{mode:1});var Kg8;var n$=function(){var z=_.q.apply(this,arguments)||this;z.small=!0;return z};
_.m(n$,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],n$.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],n$.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],n$.prototype,"small",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],n$);
_.r(n$,"ytd-video-view-count-renderer",function(){if(Kg8!==void 0)return Kg8;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Kg8=z},{mode:_.yP("kevlar_poly_si_batch_j080")?1:2});var L$=function(){var z=_.q.apply(this,arguments)||this;z.infoFormattedStrings=[];z.wrapVideoActions=_.C("kevar_watch_wrap_video_actions");z.hideSentimentBar=_.C("kevlar_watch_hide_sentiment_bar");z.actionMap={};return z};
_.m(L$,_.q);_.p=L$.prototype;_.p.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.C("web_modern_buttons"),forceIconButton:!_.C("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.p.dataChanged=function(){_.C("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.p.computeInfoFormattedStrings=function(z){if(!z)return[];var l=[];z.dateText&&l.push(z.dateText);z.stationName&&l.push(z.stationName);z.rating&&l.push(z.rating);z.startEndTimeTemplate&&z.startTimeUtcMillis&&z.endTimeUtcMillis&&l.push(_.lc(_.Y8R(_.ID(z.startEndTimeTemplate),Number(z.startTimeUtcMillis),Number(z.endTimeUtcMillis))));z.upNextProgramText&&l.push(z.upNextProgramText);return l};
_.p.scheduleInitialUpdatedMetadataRequest=function(){var z,l=(z=this.data)==null?void 0:z.updatedMetadataEndpoint;if(l){var I;z=Number((I=_.k(l,_.z50))==null?void 0:I.initialDelayMs);I=isNaN(z)?250:z;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.p.setSentimentBarWidth=function(){var z=this;_.IR(this,function(){var l=_.Hy(z.hostElement).querySelector("ytd-menu-renderer");if(l){l=l.topLevelButtons;for(var I=0,b=0;b<l.length;b++){var v=l[b],M=z.get("toggleButtonSupportedData.toggleButtonIdData.id",v.data);if(M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||M==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=v.clientWidth+8;else break}I&&(z.sentiment.style.width=I-8+" px")}})};
_.p.fetchUpdatedMetadata=function(z){var l;z&&(l={continuation:z});var I;(z=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.pG().resolve(_.DQ).resolveCommand(z,{form:Object.assign({},l,{element:this.hostElement})})};
_.p.onYtServiceRequestSent=function(z,l){l.endpoint&&_.k(l.endpoint,_.Wt)&&(this.hasUpdateSentimentBarStateCommands()&&!_.C("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.k(l.endpoint,_.Wt).status),this.setSentimentBarWidth())};
_.p.hasUpdateSentimentBarStateCommands=function(){var z,l,I,b,v=(b=(z=this.data)==null?void 0:(l=z.videoActions)==null?void 0:(I=l.menuRenderer)==null?void 0:I.topLevelButtons)!=null?b:[];z=_.D(v);for(l=z.next();!l.done;l=z.next()){l=l.value;v=b=I=void 0;var M=(I=l.toggleButtonRenderer)==null?void 0:(b=I.toggleButtonSupportedData)==null?void 0:(v=b.toggleButtonIdData)==null?void 0:v.id;if(M==="TOGGLE_BUTTON_ID_TYPE_LIKE"||M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){b=I=void 0;l=(b=_.k((I=l.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.yi))==null?void 0:b.commands;if(!l)break;l=_.D(l);for(I=l.next();!I.done;I=l.next())if(_.k(I.value,g78))return!0}}return!1};
_.p.onYtServiceRequestCompleted=function(z,l){var I;(z=(I=l.data)==null?void 0:I.loggingDirectives)&&_.WKY(_.iY(),z);this.get("continuation.timedContinuationData",l.data)&&this.data&&this.data.updatedMetadataEndpoint&&(l=l.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,l.continuation),l.timeoutMs))};
_.p.computeHasDateText=function(z){return!!z&&!!z.dateText};
_.vP.Object.defineProperties(L$.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return!((b=(z=this.data)==null?void 0:(l=z.videoActions)==null?void 0:(I=l.menuRenderer)==null?void 0:I.flexibleItems)==null||!b.length)}}});
L$.prototype.onYtServiceRequestCompleted=L$.prototype.onYtServiceRequestCompleted;L$.prototype.onYtServiceRequestSent=L$.prototype.onYtServiceRequestSent;L$.prototype.dataChanged=L$.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],L$.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.qw.YtTaskEmitterBehavior),_.w("design:type",Object)],L$.prototype,"ytTaskEmitterBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],L$.prototype,"data",void 0);_.e([_.X({computed:"computeInfoFormattedStrings(data)"}),_.w("design:type",Array)],L$.prototype,"infoFormattedStrings",void 0);
_.e([_.X({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],L$.prototype,"hasDateText",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],L$.prototype,"wrapVideoActions",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],L$.prototype,"hideSentimentBar",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],L$.prototype,"flexMenuEnabled",null);
_.e([_.qX("#sentiment"),_.w("design:type",Object)],L$.prototype,"sentiment",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],L$.prototype,"dataChanged",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],L$.prototype,"onYtServiceRequestSent",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],L$.prototype,"onYtServiceRequestCompleted",null);
_.r(L$,"ytd-video-primary-info-renderer",function(){if(RqR===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);RqR=z}z=RqR;return z},{mode:1});var tXA;var UJ=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return z};
_.m(UJ,_.q);_.p=UJ.prototype;_.p.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"}}}};
_.p.dataChanged=function(){var z;this.descriptionToggled=!((z=this.data)==null||!z.defaultExpanded);var l;this.collapsed=this.descriptionAlwaysCollapsed||!((l=this.data)==null?0:l.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.kU(110509);this.showLessClientVe=_.kU(110510);z=_.sU();l=_.h8();z&&l&&_.UK(z,l,[this.showMoreClientVe,this.showLessClientVe])};
_.p.onYtExpanderMoreTapped=function(){var z,l=(z=this.data)==null?void 0:z.showMoreCommand;l&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(l);(z=_.sU())&&this.showMoreClientVe&&_.JH(z,this.showMoreClientVe)};
_.p.onYtExpanderLessTapped=function(){var z=_.sU();z&&this.showLessClientVe&&_.JH(z,this.showLessClientVe);var l;(z=(l=this.data)==null?void 0:l.showLessCommand)&&this.componentBehavior.resolveCommand(z)};
_.p.handleUpdateDateTextAction=function(z){this.data&&this.data.dateText&&this.set("data.dateText",_.k(z,_.DeT).dateText)};
_.p.handleUpdateDescriptionAction=function(z){if(z=_.k(z,_.zs4))z.isEmpty||!z.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.$C(z.description)):this.set("data.description",z.description)};
_.p.onYtChangeEngagementPanelVisibilityAction=function(z){if(_.C("web_structured_description_show_more")||_.C("web_engagement_panel_open_description")){var l,I=(l=_.k(z,_.DR_))==null?void 0:l.targetId,b;z=((b=_.k(z,_.DR_))==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&z&&(this.descriptionToggled=!0)}};
_.p.updateCollapsedFromBinding=function(z){this.collapsed=z.detail.value};
_.p.updateDescriptionToggledFromBinding=function(z){this.descriptionToggled=z.detail.value};
_.p.updateCanCollapseFromBinding=function(z){this.canCollapse=z.detail.value};
_.vP.Object.defineProperties(UJ.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.data)==null?void 0:(l=z.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer;return!!I&&!!I.rows&&I.rows.length>I.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.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}}});
UJ.prototype.onYtExpanderLessTapped=UJ.prototype.onYtExpanderLessTapped;UJ.prototype.onYtExpanderMoreTapped=UJ.prototype.onYtExpanderMoreTapped;UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],UJ.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],UJ.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],UJ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],UJ.prototype,"collapsed",void 0);_.e([_.X(),_.w("design:type",Boolean)],UJ.prototype,"descriptionToggled",void 0);
_.e([_.X(),_.w("design:type",Boolean)],UJ.prototype,"canCollapse",void 0);_.e([_.X(),_.w("design:type",Object)],UJ.prototype,"subscribeButtonData",void 0);_.e([_.X(),_.w("design:type",Number)],UJ.prototype,"descriptionCollapsedHeight",void 0);_.e([_.X(),_.w("design:type",Object)],UJ.prototype,"structuredDescriptionContentRenderer",void 0);_.e([_.X({value:function(){return _.C("web_watch_description_always_collapsed")}}),
_.w("design:type",Boolean)],UJ.prototype,"descriptionAlwaysCollapsed",void 0);_.e([_.qX("#description"),_.w("design:type",HTMLDivElement)],UJ.prototype,"description",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UJ.prototype,"dataChanged",null);_.e([_.tP("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UJ.prototype,"onYtExpanderMoreTapped",null);
_.e([_.tP("yt-expander-less-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UJ.prototype,"onYtExpanderLessTapped",null);_.e([_.B("data.metadataRowContainer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UJ.prototype,"metadataCollapsible",null);_.e([_.B("data","structuredDescriptionContentRenderer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UJ.prototype,"hasInlineStructuredDescription",null);
_.e([_.B("data.attributedDescription"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UJ.prototype,"hasAttributedDescription",null);_.e([_.B("hasInlineStructuredDescription","collapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UJ.prototype,"loadStructuredDescription",null);_.e([_.B("data","structuredDescriptionContentRenderer","collapsed"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UJ.prototype,"showInlineStructuredDescription",null);
_.e([_.B("data","hasInlineStructuredDescription","metadataCollapsible"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UJ.prototype,"descriptionAlwaysCollapsible",null);
_.r(UJ,"ytd-video-secondary-info-renderer",function(){if(tXA===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);tXA=z}z=tXA;return z},{mode:2});var BET;var ak=function(){return _.q.apply(this,arguments)||this};
_.m(ak,_.q);ak.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:_.C("web_modern_buttons"),forceIconButton:!_.C("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ak.prototype.activate=function(z){z.appendTo(this.player);z.getPlayerPromise().then(function(l){l.setMinimized(!0)});
this.active=!0};
ak.prototype.deactivate=function(){var z=this.player.firstElementChild;z.getPlayerPromise().then(function(l){l.setMinimized(!1)});
this.active=!1;return z};
ak.prototype.onScrollUpTap=function(){var z=_.pG().resolve(_.OB).getCurrentPage();z&&z.setScrollTop(0)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ak.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ak.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ak.prototype,"active",void 0);
_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.w("design:type",Boolean)],ak.prototype,"darkLaunch",void 0);_.e([_.qX("#player"),_.w("design:type",HTMLDivElement)],ak.prototype,"player",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],ak);
_.r(ak,"ytd-miniplayer-bar-renderer",function(){if(BET!==void 0)return BET;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return BET=z},{mode:1});_.uO(_.P(function(z){var l=_.VK("script");_.Te(function(){var I;if(I=JSON)I=DAa(z.data()),I=_.bt(JSON.stringify(I).replace(/</g,"\\u003C"));var b=z.data(),v=_.ID(b.title).trim().length===0,M=!b.publishDate||b.publishDate.trim().length===0,x,g,G,u,Z=!((x=b.thumbnail)==null?0:(g=x.thumbnails)==null?0:g.length)||!((G=b.thumbnail)==null?0:G.thumbnails[0].url)||((u=b.thumbnail)==null?void 0:u.thumbnails[0].url.trim().length)===0;l.value&&I&&!(v||M||Z)&&_.v0(l.value,I)},"Vy9K7b");
return _.N("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.N("script",{el:l,type:"application/ld+json"}))},"ll"),"player-microformat-renderer",{props:{data:_.GH}});
}catch(e){_._DumpException(e)}
try{
var fru,CRT,RnT;_.yWZ=function(z){return z.watch.watchWindowSize};
fru=function(z,l){var I=document.querySelector(z);I?l(I):setTimeout(function(){fru(z,l)},1E3)};
CRT=function(z,l,I,b){if(z.isLockupToWatchTransitionEnabled){if(l){var v={};v=(v["watch-next-appears"]="player-watch-next-loaded",v);v["lockup-to-watch"]=z.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";z.viewTransitionCoordinator.registerElement(l,v)}I&&(l={},z.viewTransitionCoordinator.registerElement(I,(l["lockup-to-watch"]="below-lockup-to-watch",l["watch-next-appears"]="below-watch-next-loaded",l)));b&&(I={},z.viewTransitionCoordinator.registerElement(b,
(I["watch-next-appears"]="secondary-watch-next-loaded",I)))}};
_.k6v=function(z){return _.GZ({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:z}})};
RnT=new _.Z0("webWatchNextResponseExtensionData");var K5A=function(z){_.Q9.call(this);var l=this;this.JSC$23081_watchApi=z;this.observer=null;var I=this.JSC$23081_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mWR(l)});
this.addOnDisposeCallback(function(){l.JSC$23081_watchApi.unsubscribeByKey(I);l.observer&&(l.observer.disconnect(),l.observer=null)});
mWR(this)};
_.m(K5A,_.Q9);
var mWR=function(z){var l,I,b,v;_.O(function(M){if(M.nextAddress==1){z.observer&&(z.observer.disconnect(),z.observer=null);l=z.JSC$23081_watchApi.getWatchNextResponse();if(!l)return M.return();I=_.k(l,RnT);return(b=I)!=null&&b.enableCreatorChatbot?M.yield((0,_.rQx)("NSzT5"),3):M.jumpTo(0)}v=_.bM4;v();fru("ytd-watch-metadata",function(x){z.observer=new MutationObserver(function(){var g,G;(g=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(G=g.closest("yt-button-view-model.ytd-menu-renderer"))==
null||G.remove()});
z.observer.observe(x,{childList:!0,subtree:!0})});
_.qe(M)})};var Bi0=function(z){_.Q9.call(this);this.JSC$23085_watchApi=z;t8r(this)};
_.m(Bi0,_.Q9);var t8r=function(z){_.O(function(l){if(l.nextAddress==1)return l.yield(XdR(z),2);q5a(z);_.qe(l)})},XdR=function(z){var l,I,b,v;
return _.O(function(M){if(M.nextAddress==1)return M.yield(z.JSC$23085_watchApi.playerApi,2);l=M.yieldResult;z.JSC$23085_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){ip0(z)});
I=z.JSC$23085_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){q5a(z)});
b=function(x){z.onCueRangeEnter(x)};
l.addEventListener("onCueRangeEnter",b);v=function(x){z.onCueRangeExit(x)};
l.addEventListener("onCueRangeExit",v);z.addOnDisposeCallback(function(){z.JSC$23085_watchApi.unsubscribeByKey(I);l.removeEventListener("onCueRangeEnter",b);l.removeEventListener("onCueRangeExit",v)});
_.qe(M)})},F5T=function(z){var l,I,b,v,M,x,g,G,u;
return(M=(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.results)==null?void 0:(v=b.results)==null?void 0:v.contents)==null?void 0:(x=M.find(function(Z){var H,y,f;return(H=Z.itemSectionRenderer)==null?void 0:(y=H.contents)==null?void 0:(f=y[0])==null?void 0:f.shoppingTimelyShelfViewModel}))==null?void 0:(g=x.itemSectionRenderer)==null?void 0:(G=g.contents)==null?void 0:(u=G[0])==null?void 0:u.shoppingTimelyShelfViewModel},q5a=function(z){var l;
_.O(function(I){if(I.nextAddress==1)return(l=z.JSC$23085_watchApi.getWatchNextResponse())?I.yield(ip0(z),2):I.return();z.shoppingTimelyShelfViewModel=F5T(l);QwZ(z);Y5Q(z);_.qe(I)})},QwZ=function(z){var l,I=(l=z.shoppingTimelyShelfViewModel)==null?void 0:l.offerIdToVariants;
I&&(l=I.filter(function(b){return b.key&&b.value}).map(function(b){return[b.key,
b.value]}),z.variantsMap=new Map(l))},Y5Q=function(z){var l,I,b,v,M,x;
_.O(function(g){if(g.nextAddress==1)return(I=(l=z.shoppingTimelyShelfViewModel)==null?void 0:l.cueRanges)?g.yield(z.JSC$23085_watchApi.playerApi,2):g.return();b=g.yieldResult;z.cueRanges=I;v=_.D(I);for(M=v.next();!M.done;M=v.next())x=M.value,x.startTime!==void 0&&x.endTime!==void 0&&x.id!==void 0&&b.addCueRange("shopping_timely_shelf"+x.id,TiR(x.startTime),TiR(x.endTime));_.qe(g)})},TiR=function(z){return Number(z.seconds||0)+(z.nanos||0)/1E9};
Bi0.prototype.onCueRangeEnter=function(z){if(z.startsWith("shopping_timely_shelf")){var l=z.substring(21),I,b;z=(I=this.variantsMap)==null?void 0:(b=I.get(l))==null?void 0:b.shelf;if(_.C("web_enable_shopping_timely_shelf_client_overwrite")){var v,M,x,g,G;I=z==null?void 0:(v=z.shoppingTimelyShelfContentViewModel)==null?void 0:(M=v.button)==null?void 0:(x=M[1])==null?void 0:(g=x.buttonViewModel)==null?void 0:(G=g.onTap)==null?void 0:G.innertubeCommand;var u,Z;if(I==null?0:(u=I.menuEndpoint)==null?0:
(Z=u.menu)==null?0:Z.menuRenderer)I.openPopupAction=I.menuEndpoint,I.openPopupAction.popup=I.openPopupAction.menu,I.openPopupAction.popup.menuPopupRenderer=I.openPopupAction.popup.menuRenderer,I.openPopupAction.popupType="DROPDOWN",delete I.menuEndpoint,delete I.openPopupAction.menu,delete I.openPopupAction.popup.menuRenderer}z&&this.JSC$23085_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",z)}};
Bi0.prototype.onCueRangeExit=function(z){z.startsWith("shopping_timely_shelf")&&this.JSC$23085_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var ip0=function(z){var l,I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return x.yield(z.JSC$23085_watchApi.playerApi,2);l=x.yieldResult;if(z.cueRanges)for(I=_.D(z.cueRanges),b=I.next();!b.done;b=I.next())v=b.value,v.id&&(M="shopping_timely_shelf"+v.id,l.removeCueRange(M));z.JSC$23085_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});z.shoppingTimelyShelfViewModel=void 0;z.cueRanges=void 0;z.variantsMap=void 0;_.qe(x)})};var PRT=function(z){_.Q9.call(this);var l=this;this.JSC$23092_watchApi=z;z=_.Wf(_.vF(),_.T8t,function(){cWR(l)});
this.addOnDisposeCallback(z);z=_.Wf(_.vF(),_.yWZ,function(){cWR(l)});
this.addOnDisposeCallback(z);S5R(this);dWZ(this);o88()};
_.m(PRT,_.Q9);var S5R=function(z){var l=function(b){_.vF().dispatch(_.XQ8(b.matches))},I=window.matchMedia("(max-width: "+(999+_.fX())+"px)");
I.addListener(l);z.addOnDisposeCallback(function(){I.removeListener(l)});
l(I)},dWZ=function(z){z.JSC$23092_watchApi.registerActionHandler("yt-window-resized",function(){o88()});
z.addOnDisposeCallback(function(){z.JSC$23092_watchApi.unregisterActionHandler("yt-window-resized")})},o88=function(){var z=_.ic();
_.vF().dispatch(_.GZ({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:z.width,height:z.height}}}))},cWR=function(z){var l;
_.O(function(I){if(I.nextAddress==1)return I.yield(z.JSC$23092_watchApi.playerApi,2);l=I.yieldResult;l.setSize(NaN,NaN);_.qe(I)})};var hnA=function(z){_.Q9.call(this);var l=_.pG().resolve(_.Lg);CRT(l,z.getElement("PLAYER_CONTAINER"),z.getElement("BELOW_THE_PLAYER"),z.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var I=z.getElement("PLAYER_CONTAINER"),b=z.getElement("BELOW_THE_PLAYER"),v=z.getElement("SECONDARY");l.isLockupToWatchTransitionEnabled&&(I&&_.LY(l.viewTransitionCoordinator,I),b&&_.LY(l.viewTransitionCoordinator,b),v&&_.LY(l.viewTransitionCoordinator,v))})};
_.m(hnA,_.Q9);_.sJ=function(z){_.$3.call(this);var l=this;this.rootElement=z;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return l.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){l.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.m(_.sJ,_.$3);_.p=_.sJ.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(z){return this.rootElement.getElement(z)};
_.p.setPlayerResponse=function(z){this.playerResponse=z;this.publish("PLAYER_RESPONSE_UPDATED",z)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(z){this.watchNextResponse===z?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=z,this.publish("WATCH_NEXT_RESPONSE_UPDATED",z))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(z,l){var I=this;if(_.C("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.n2(_.WW.getInstance(),(b[z]=l,b),this.getRoot())}else this.actionHandlers.has(z)||(this.actionHandlers.set(z,[]),b={},_.n2(_.WW.getInstance(),(b[z]=function(){var v=_.AT.apply(0,arguments);return(I.actionHandlers.get(z)||[]).map(function(M){return M.apply(null,_.ht(v))})},b),this.getRoot())),this.actionHandlers.get(z).push(l)};
_.p.unregisterActionHandler=function(z){if(_.C("web_watch_controller_reg_multiple_handlers_killswitch")){var l={};_.UN(_.WW.getInstance(),(l[z]=!0,l),this.getRoot())}else(l=this.actionHandlers.get(z))?(l.pop(),l.length===0&&(l={},_.UN(_.WW.getInstance(),(l[z]=!0,l),this.getRoot()),this.actionHandlers.delete(z))):_.PW(new _.qB("Attempted to unregister an action handler which is not registered.",z))};
_.p.addPageDisposeJob=function(z){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.mp$(this.rootElement.pageDisposeJobs,z)};
_.p.removePageDisposeJob=function(z){this.rootElement.pageDisposeJobs&&_.$5(this.rootElement.pageDisposeJobs,z)};
_.p.dispatchEvent=function(z,l){_.gC(this.rootElement,z,l)};
_.p.provideRenderingData=function(z,l){this.rootElement.provideRenderingData(z,l)};
_.p.scrollWatchTo=function(z,l){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(z,l)};
_.p.focusOnPlayer=function(){var z=this.getElement("PLAYER");_.IR(z,function(){if(z&&z.firstElementChild){var l=z.querySelector(".html5-video-player");l&&(_.i0(_.pG().resolve(_.TH)),l.focus())}else _.PW(Error("Qo"))})};
_.p.subscribeToActiveChanged=function(z,l){l=l===void 0?!0:l;var I=_.Wf(_.vF(),_.XXr,function(b){z(b)});
l&&z(_.XXr(_.vF().getState()));return I};
_.p.isActive=function(){return _.XXr(_.vF().getState())};
_.p.onAttached=function(){var z=_.C("external_fullscreen");_.C("use_unified_flag_accessor")&&(z=_.pG().resolve(_.FXS).retriever.getFlag(_.f_u));(z||_.rr("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var swZ=function(z){return z.getRoot().is==="ytd-watch-flexy"||z.getRoot().is==="ytd-watch-grid"},r$=function(z){return z.getRoot().is==="ytd-watch-fixie"};
_.sJ.prototype.initPersistentModules=function(){if(r$(this)||swZ(this)&&_.C("kevlar_watch_flexy_theater_manager")){var z=new _.$y7(this);_.kN(this,z)}z=new _.FZa(this);_.kN(this,z);z=new _.cI(this);_.kN(this,z);z=new _.Bkv(this);_.kN(this,z);z=new _.M8v(this);_.kN(this,z);z=new _.St(this);_.kN(this,z);if(r$(this)||swZ(this)&&_.C("kevlar_watch_flexy_playlist_manager"))z=new _.xWZ(this),_.kN(this,z);_.C("web_thumbnail_to_watch_transition")&&(z=new hnA(this),_.kN(this,z))};
_.sJ.prototype.initOrDisposeActiveModules=function(z){z?(this.watchScrollManager=new _.hh(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.AEZ(this)),_.C("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Bi0(this)),this.activeModules.push(new _.wb7(this)),r$(this)&&this.activeModules.push(new PRT(this)),this.activeModules.push(new _.uhr(this)),this.activeModules.push(new _.PfR(this)),(r$(this)||_.C("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.UMv(this)),this.activeModules.push(new _.Vca(this)),(r$(this)||_.C("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.HpT(this)),(r$(this)||_.C("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.vsR(this)),_.C("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.OG8(this),this.activeModules.push(this.watchCinematicManager)),_.C("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.lrR(this)),_.C("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.qIv(this)),z=_.C("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.C("kevlar_watch_flexy_comments_manager")&&!z&&this.activeModules.push(new _.ko0(this)),_.C("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.DyT(this)),this.activeModules.push(new _.aJv(this)),this.activeModules.push(new _.nsT(this)),_.C("web_enable_timely_actions")&&this.activeModules.push(new _.zMR(this)),_.C("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.myZ(this)),_.C("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.EPu(this)),_.C("web_fullscreen_components")&&this.activeModules.push(new _.JX7(this)),_.C("web_player_rtr_ctrls")&&this.activeModules.push(new _.tmZ(this)),_.C("enable_creator_chatbot")&&this.activeModules.push(new K5A(this))):(_.Dv(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.sJ.prototype.disposeInternal=function(){_.$3.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vP.Object.defineProperties(_.sJ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var ZW0,v1,HWl,yI4,CnK,kQ8,f2s,RgW;ZW0=function(){var z=_.qu();z.info||(z.info={});return z.info};
v1=function(z){return Math.round(_.YB()+z)};
HWl=function(){var z;if(_.C("csi_use_performance_navigation_timing")){var l,I,b,v=_.Qi==null?void 0:(z=_.Qi.getEntriesByType)==null?void 0:(l=z.call(_.Qi,"navigation"))==null?void 0:(I=l[0])==null?void 0:(b=I.toJSON)==null?void 0:b.call(I);v?(v.requestStart=v1(v.requestStart),v.responseEnd=v1(v.responseEnd),v.redirectStart=v1(v.redirectStart),v.redirectEnd=v1(v.redirectEnd),v.domainLookupEnd=v1(v.domainLookupEnd),v.connectStart=v1(v.connectStart),v.connectEnd=v1(v.connectEnd),v.responseStart=v1(v.responseStart),
v.secureConnectionStart=v1(v.secureConnectionStart),v.domainLookupStart=v1(v.domainLookupStart),v.isPerformanceNavigationTiming=!0,z=v):z=_.Qi.timing}else z=_.C("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Qi.timing)):_.Qi.timing;return z};
yI4=function(){if(_.Qi.getEntriesByType){var z=_.Qi.getEntriesByType("paint");if(z=_.Sx(z,function(I){return I.name==="first-paint"}))return v1(z.startTime)}var l;
_.C("csi_use_performance_navigation_timing")?l=_.Qi.getEntriesByType("first-paint")[0].startTime:l=_.Qi.timing.msFirstPaint;return l?Math.max(0,l):0};
CnK=function(){var z=window.location.protocol,l=_.Qi.getEntriesByType("resource");l=_.E9(l,function(I){return I.name.indexOf(z+"//fonts.gstatic.com/s/")===0});
(l=f2s(l,function(I,b){return b.duration>I.duration?b:I}))&&l.startTime>0&&l.responseEnd>0&&(_.Tb("wffs",v1(l.startTime)),_.Tb("wffe",v1(l.responseEnd)))};
kQ8=function(z,l){z=document.querySelector(z);if(!z)return!1;var I="",b=z.nodeName;b==="SCRIPT"?(I=z.src,I||(I=z.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):b==="LINK"&&(I=z.href);_.lt(document)&&z.setAttribute("nonce",_.lt(document));return I?(z=_.Qi.getEntriesByName(I))&&z[0]&&(z=z[0],I=_.YB(),_.Tb("rsf_"+l,I+Math.round(z.fetchStart)),_.Tb("rse_"+l,I+Math.round(z.responseEnd)),z.transferSize!==void 0&&z.transferSize===0)?!0:!1:!1};
_.MP=function(z,l){_.em(function(){_.FG("").info.actionType=z;l&&_.hr("TIMING_AFT_KEYS",l);_.hr("TIMING_ACTION",z);var I=_.HRf(_.sZ("TIMING_INFO",{}));Object.keys(I).length>0&&_.cu(I);I={isNavigation:!0,actionType:_.bRY(_.sZ("TIMING_ACTION"))};var b=_.sZ("PREVIOUS_ACTION");b&&(I.previousAction=_.bRY(b));if(b=_.sZ("CLIENT_PROTOCOL"))I.httpProtocol=b;if(b=_.sZ("CLIENT_TRANSPORT"))I.transportProtocol=b;(b=_.sU())&&b!=="UNDEFINED_CSN"&&(I.clientScreenNonce=b);b=_.ZRH();if(b===1||b===-1)I.isVisible=!0;
b=_.Ul1().loadType==="cold";var v=ZW0();b||(b=v.yt_lt==="cold");if(b){I.loadType="cold";b=ZW0();v=HWl();var M=_.YB(),x=_.sZ("CSI_START_TIMESTAMP_MILLIS",0);x>0&&!_.C("embeds_web_enable_csi_start_override_killswitch")&&(M=x);M&&(_.Tb("srt",v.responseStart),b.prerender!==1&&_.xYk(M));b=yI4();b>0&&_.Tb("fpt",b);b=HWl();b.isPerformanceNavigationTiming&&_.cu({performanceNavigationTiming:!0},void 0);_.Tb("nreqs",b.requestStart,void 0);_.Tb("nress",b.responseStart,void 0);_.Tb("nrese",b.responseEnd,void 0);
b.redirectEnd-b.redirectStart>0&&(_.Tb("nrs",b.redirectStart,void 0),_.Tb("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(_.Tb("ndnss",b.domainLookupStart,void 0),_.Tb("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(_.Tb("ntcps",b.connectStart,void 0),_.Tb("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=_.YB()&&b.connectEnd-b.secureConnectionStart>0&&(_.Tb("nstcps",b.secureConnectionStart,void 0),_.Tb("ntcpe",b.connectEnd,void 0));_.Qi&&"getEntriesByType"in
_.Qi&&CnK();b=[];if(document.querySelector&&_.Qi&&_.Qi.getEntriesByName)for(var g in RgW)RgW.hasOwnProperty(g)&&(v=RgW[g],kQ8(g,v)&&b.push(v));if(b.length>0)for(I.resourceInfo=[],g=_.D(b),b=g.next();!b.done;b=g.next())I.resourceInfo.push({resourceCache:b.value})}_.cu(I);I=_.iJ();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);g=I.preLoggedGelInfos;I=_.VHH();b=void 0;for(v=0;v<g.length;v++)if(M=g[v],M.loadType){b=M.loadType;break}if(_.Ul1().loadType==="cold"&&(I.loadType==="cold"||b==="cold")){b=_.ajQ();
v=_.iJ();v=v.gelTicks?v.gelTicks:v.gelTicks={};for(var G in b)if(!(G in v))if(typeof b[G]==="number")_.Tb(G,_.S_(G));else if(_.C("log_repeated_ytcsi_ticks"))for(M=_.D(b[G]),x=M.next();!x.done;x=M.next())x=x.value,_.Tb(G.slice(1),x);G={};b=!1;g=_.D(g);for(v=g.next();!v.done;v=g.next())b=v.value,_.wm(I,b),_.wm(G,b),b=!0;b&&_.cu(G)}_.kr7(!0);G=_.sZ("TIMING_ACTION");_.W8("ytglobal.timingready_")&&G&&_.Fj$()&&_.CXt()&&_.Eb5()})()};
f2s=function(z,l){return Array.prototype.reduce.call(z,l,{duration:0})};
RgW={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var m68={};m68.YtVisibilityRootBehavior=[_.zYp.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.p0(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.sZ("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var z=_.sZ("INNERTUBE_CLIENT_NAME")!=="WEB";_.C("kevlar_use_vimio_behavior")&&z&&_.JnA()}}];_.pF={};_.pF.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(z){z.detail.contextProvider=this;z.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
m68.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.b1();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(z){var l=this;this.pageCount+=1;_.C("kevlar_use_vimio_behavior")&&(_.sZ("INNERTUBE_CLIENT_NAME")==="WEB"?_.ow.addJob(function(){l.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(z)},
loadPage_:function(z){this.data=z},
ytPageBehaviorActiveObserver_:function(z){var l=this;_.C("kevlar_use_vimio_behavior")&&(z?_.sZ("INNERTUBE_CLIENT_NAME")==="WEB"?_.ow.addJob(function(){l.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(z){if(!this.setScrollTopJobId_){var l=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){l.setScrollTopJobId_=0;var I=_.pG().resolve(_.MB(_.TH));I&&_.i0(I);this.getPageScrollingElement().scrollTop=z}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.sz(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var udX;var bb=function(){var z=_.q.apply(this,arguments)||this;z.playerListenerConfig=null;z.actionMap={"yt-show-watch-page-survey":"openSurvey"};return z};
_.m(bb,_.q);_.p=bb.prototype;_.p.dataChanged=function(){var z=this,l=_.GS();l&&l.getPlayerPromise().then(function(b){z.maybeRemovePlayerListeners(b)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(l,I):this.openSurvey())};
_.p.triggerWatchPageSurvey=function(z,l){var I=this,b,v,M,x,g,G,u,Z,H;return _.O(function(y){if(y.nextAddress==1)return z?y.yield(z.getPlayerPromise(),2):y.return();I.player=y.yieldResult;if(!I.player)return y.return();b={};v=_.D(l);for(M=v.next();!M.done;M=v.next())x=M.value,g=_.D(I.createEventListenerPair(x)),G=g.next().value,u=g.next().value,Z=G,H=u,Z&&H&&(b[Z]=H,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,Z,H));I.playerListenerConfig=b;_.qe(y)})};
_.p.createEventListenerPair=function(z){var l=z.playbackEventTrigger;return l?this.handlePlaybackTrigger(l):(z=z.watchTimeTrigger)?this.handleWatchTimeTrigger(z):[void 0,void 0]};
_.p.handleWatchTimeTrigger=function(z){var l=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=z.videoWatchFraction,b=z.watchTimeSec;return b&&I?["onVideoProgress",function(){l.player&&l.isWatchTimeConditionMet(l.player,I,b)&&l.showSurvey()}]:[void 0,
void 0]};
_.p.isWatchTimeConditionMet=function(z,l,I){var b=z.getProgressState(),v=b.current-this.lastKnownPlaybackPosition;v<5&&(this.accumulatedMediaTime+=v);this.lastKnownPlaybackPosition=b.current;b=Math.round(this.accumulatedMediaTime/b.duration*1E3)/1E3;return z.getPresentingPlayerType&&z.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||b>l)};
_.p.handlePlaybackTrigger=function(z){var l=this;z=z.playbackEvent;if(z==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var b=function(v){v===0&&l.showSurvey()}}else z==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",b=function(v){l.player&&l.player.getPresentingPlayerType&&l.player.getPresentingPlayerType()===1&&v&&l.showSurvey()}):z==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",b=this.showSurvey);
return[I,b]};
_.p.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.p.openSurvey=function(){var z=this,l=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.oOK(!!l));_.ow.addJob(function(){z.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:l}})},0,0)};
_.p.maybeRemovePlayerListeners=function(z){if(this.playerListenerConfig){for(var l=_.D(Object.keys(this.playerListenerConfig)),I=l.next();!I.done;I=l.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(z,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
bb.prototype.dataChanged=bb.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],bb.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],bb.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],bb.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bb.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],bb.prototype,"playerListenerConfig",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],bb.prototype,"lastKnownPlaybackPosition",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],bb.prototype,"accumulatedMediaTime",void 0);_.e([_.X(),_.w("design:type",Object)],bb.prototype,"player",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bb.prototype,"dataChanged",null);_.e([_.S({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],bb);
_.r(bb,"ytd-survey-trigger-renderer",function(){if(udX!==void 0)return udX;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return udX=z},{mode:1});
}catch(e){_._DumpException(e)}
try{
var xKa=new _.Z0("promotedSparklesWebRenderer");var OlZ=new _.Z0("relatedChipCommand");var gSv;var Gcu;var cq=function(){return _.q.apply(this,arguments)||this};
_.m(cq,_.q);cq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cq.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],cq);
_.r(cq,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Gcu!==void 0)return Gcu;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Gcu=z},{mode:1});var N4r;var ESR;var uqD;var SP=function(){return _.q.apply(this,arguments)||this};
_.m(SP,_.q);SP.prototype.ready=function(){this.initializeDefs()};
SP.prototype.initializeDefs=function(){var z=this.meta.byKey("yt-icons"),l=_.Hy(z).querySelector("#star"),I=_.Hy(z).querySelector("#star_half");z=_.Hy(z).querySelector("#star_border");l&&this.defs.appendChild(l.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));z&&this.defs.appendChild(z.cloneNode(!0))};
SP.prototype.percentChanged=function(){for(var z=this.rating;z.firstChild;)z.removeChild(z.firstChild);var l=Math.round(this.percent/10);z=Math.floor(l/2);l%=2;var I=5-z-l;this.appendStars("star",z,0);this.appendStars("star_half",l,z);this.appendStars("star_border",I,z+l)};
SP.prototype.appendStars=function(z,l,I){for(var b=0;b<l;b++){var v=(18+this.spacing)*(b+I),M=document.createElementNS("http://www.w3.org/2000/svg","use");_.Jr8(M,"#"+z);M.setAttribute("x",""+v);M.setAttribute("y","0");this.rating.appendChild(M)}};
SP.prototype.percentChanged=SP.prototype.percentChanged;_.e([_.qX("#defs"),_.w("design:type",HTMLElement)],SP.prototype,"defs",void 0);_.e([_.qX("#rating"),_.w("design:type",HTMLElement)],SP.prototype,"rating",void 0);_.e([_.X(),_.w("design:type",Number)],SP.prototype,"percent",void 0);_.e([_.X({value:6}),_.w("design:type",Number)],SP.prototype,"spacing",void 0);_.e([_.X({value:_.$4.create("iron-meta",{type:"iconset"})}),_.w("design:type",_.Wo)],SP.prototype,"meta",void 0);
_.e([_.By("percent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],SP.prototype,"percentChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-ratings"})],SP);
_.r(SP,"ytd-ratings",function(){if(uqD!==void 0)return uqD;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uqD=z},{mode:1});var ZlT=function(){return _.q.apply(this,arguments)||this};
_.m(ZlT,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ZlT.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ZlT.prototype,"data",void 0);_.e([_.S({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],ZlT);
_.r(ZlT,"ytd-offer-review-renderer",function(){if(ESR!==void 0)return ESR;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ESR=z},{mode:1});var dY=function(){var z=_.q.apply(this,arguments)||this;z.badges=[{textBadge:{label:_.lc("CC")}}];return z};
_.m(dY,_.q);_.p=dY.prototype;_.p.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.p.dataChanged=function(){var z=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(z&&z.commandMetadata&&_.k(z.commandMetadata,_.nw)&&_.k(z.commandMetadata,_.nw).fireAutomatically)_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}});else{var l;z&&((l=_.k(z,_.nw))==null?0:l.fireAutomatically)&&_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})}};
_.p.isEmptyContent=function(z){return this.isStorefrontEntryPointEmpty(z)&&this.shouldHideOfferModule(z)};
_.p.isStorefrontEntryPointEmpty=function(z){return!z||!z.storefrontEntryPoint};
_.p.shouldHideOfferModule=function(z){return!!z.hideVideoDetails};
_.p.isOfferModuleNavigationInactive=function(z){return!z.navigationEndpoint&&!z.serviceEndpoint};
_.p.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
dY.prototype.dataChanged=dY.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dY.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.w("design:type",Boolean)],dY.prototype,"hidden",void 0);
_.e([_.X(),_.w("design:type",Object)],dY.prototype,"badges",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dY.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],dY);
_.r(dY,"ytd-movie-offer-module-renderer",function(){if(N4r!==void 0)return N4r;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return N4r=z},{mode:1});var Hlu;var yy8=function(){return _.q.apply(this,arguments)||this};
_.m(yy8,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],yy8.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yy8.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],yy8);
_.r(yy8,"ytd-media-masthead-renderer",function(){if(Hlu!==void 0)return Hlu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Hlu=z},{mode:1});var fFZ;_.uO(_.tvp,"course-metadata-view-model",{props:{data:_.GH,isOverlay:_.GH}});var ob=function(){var z=_.q.apply(this,arguments)||this;z.isMetadataVisible=!1;z.modernPanels=_.C("kevlar_watch_modern_panels");z.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return z};
_.m(ob,_.q);_.p=ob.prototype;
_.p.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"}}}}};
_.p.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.p.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.p.expanderChanged=function(){var z;if((z=this.data)==null?0:z.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.p.isExpandButtonToggled=function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.expandMetadataButton,_.uS))==null?void 0:l.isToggled};
_.p.onVisibilityButtonClick=function(){var z;if((z=this.data)==null?0:z.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.p.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
ob.prototype.expanderChanged=ob.prototype.expanderChanged;ob.prototype.dataChanged=ob.prototype.dataChanged;ob.prototype.descriptionChanged=ob.prototype.descriptionChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t([_.wl.YtActionHandlerBehavior]),_.w("design:type",Object)],ob.prototype,"actionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],ob.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],ob.prototype,"isMetadataVisible",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ob.prototype,"modernPanels",void 0);_.e([_.qX("#expander"),_.w("design:type",Object)],ob.prototype,"expander",void 0);_.e([_.By("data.description"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ob.prototype,"descriptionChanged",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ob.prototype,"dataChanged",null);_.e([_.By("isMetadataVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ob.prototype,"expanderChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],ob);
_.r(ob,"ytd-tvfilm-offer-module-renderer",function(){if(fFZ!==void 0)return fFZ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return fFZ=z},{mode:2});var CKA;var Pq=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return z};
_.m(Pq,_.q);Pq.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Pq.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Pq.prototype.onThumbnailTap=function(z){this.data&&this.data.serviceEndpoint&&(_.pG().resolve(_.DQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),z.stopPropagation())};
Pq.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Pq.prototype.dataChanged=Pq.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Pq.prototype,"rendererBehaviors",void 0);_.e([_.t([_.wl.YtActionHandlerBehavior]),_.w("design:type",Object)],Pq.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Pq.prototype,"data",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Pq.prototype,"dataChanged",null);_.e([_.S({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Pq);
_.r(Pq,"ytd-unlimited-offer-module-renderer",function(){if(CKA!==void 0)return CKA;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return CKA=z},{mode:1});var kcr;var R1Q;var hD=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return z};
_.m(hD,_.q);hD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
hD.prototype.handleRelatedChipCommand=function(z){z=_.k(z,OlZ);var l=z.contents;l?_.EK(this.hostElement,"yt-item-section-replace-action",[l,z.targetSectionIdentifier]):_.EK(this.hostElement,"yt-item-section-continuation-action",[z.continuationData,z.targetSectionIdentifier])};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],hD.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],hD.prototype,"data",void 0);_.e([_.Wy({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],hD);
_.r(hD,"yt-related-chip-cloud-renderer",function(){if(R1Q===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;kcr===void 0&&(kcr=document.createElement("template"));var b=kcr;I.call(l,b.content.cloneNode(!0),z.content.firstChild);R1Q=z}z=R1Q;return z},{mode:2});var sG=function(){var z=_.q.apply(this,arguments)||this;z.isTwoColumns=!0;z.hideOfferModules=!1;z.watchFeedBigThumbs=_.C("kevlar_watch_feed_big_thumbs");z.watchFeedBigThumbsOnLockup=_.C("web_watch_next_big_thumbs");z.watchNextGridHideChips=_.C("kevlar_watch_grid_hide_chips");z.eligibleToSwitchToGrid=_.C("web_watch_eligible_to_switch_to_grid");z.disableShortsShelfHeightOverride=_.C("web_shorts_wn_shelf_ratio_tuning");z.isWatchNextGrid=!1;z.reuseComponents=!_.C("kevlar_watch_grid");z.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return z};
_.m(sG,_.q);_.p=sG.prototype;
_.p.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:!_.C("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}}};
_.p.getItemsPath=function(){return"data.results"};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.p.created=function(){this.ytLazyListBehavior.initialCount=1};
_.p.ready=function(){_.R8(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.p.resultsChanged=function(){if(this.data&&this.data.results){for(var z=this.data.results,l=null,I=null,b=0;b<z.length;b++)z[b].relatedChipCloudRenderer?l=z[b].relatedChipCloudRenderer:z[b].itemSectionRenderer&&(I=z[b].itemSectionRenderer);if(l&&I)for(this.set("data.continuations",[]),z=_.k(l.content,_.BbA).chips,l=0;l<z.length;l++)if(b=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",z[l]),b.loadCached||!b.contents){b.contents=I.contents;break}}};
_.p.dataChanged=function(){var z=this,l;if((l=this.data)!=null&&l.results&&this.hasAllowedInstreamAd(this.playerData)){if(l=this.data.results.filter(function(g){return!!g.promotedSparklesWebRenderer})){for(var I=0;I<l.length;I++){var b=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",l[I]);
if(b)for(var v=0;v<b.length;v++)b[v]&&b[v].baseUrl&&_.np(b[v].baseUrl)}this.set("data.results",this.data.results.filter(function(g){return!g.promotedSparklesWebRenderer}))}if(l=this.data.results.filter(function(g){return!!z.getSparklesAd(g)})){l=_.D(l);
for(v=l.next();!v.done;v=l.next())if(b=I=void 0,v=(I=this.getSparklesAd(v.value))==null?void 0:(b=I.errorCommand)==null?void 0:b.loggingUrls)for(I=_.D(v),b=I.next();!b.done;b=I.next())(b=b.value)&&b.baseUrl&&_.np(b.baseUrl);var M,x;this.set("data.results",(M=this.data)==null?void 0:(x=M.results)==null?void 0:x.filter(function(g){return!g.adSlotRenderer}))}}};
_.p.getSparklesAd=function(z){var l,I;z=_.k((l=z.adSlotRenderer)==null?void 0:(I=l.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.Miz);return _.k(z==null?void 0:z.renderingContent,xKa)};
_.p.hasAllowedInstreamAd=function(z){z=this.get("adPlacements",z)||[];for(var l=0;l<z.length;l++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",z[l]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.p.computeHideUnlimitedOfferModule=function(z,l){return z&&z.offerModule&&l&&z.offerModule.unlimitedOfferModuleRenderer&&z.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(l)?!0:!1};
_.p.hideUnlimitedOfferModuleChanged=function(){var z=_.Hy(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");z&&(z.hidden=this.hideUnlimitedOfferModule)};
_.p.updateLockupContainerTypes=function(z){if(this.eligibleToSwitchToGrid){var l;(l=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||l.forEach(function(I){I.containerType=z})}};
_.p.computeHideTvfilmOfferModule=function(z,l){var I,b;return!!((z==null?0:(I=z.offerModule)==null?0:(b=I.tvfilmOfferModuleRenderer)==null?0:b.clientShouldSuppressIfCompanionAdDisplayed)&&l&&this.hasCompanionAds(l))};
_.p.hideTvfilmOfferModuleChanged=function(){var z=_.Hy(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");z&&(z.hidden=this.hideTvfilmOfferModule)};
_.p.hasCompanionAds=function(z){z=this.get("adPlacements",z)||[];for(var l=0;l<z.length;l++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",z[l]))return!0;var I=void 0,b=void 0,v=void 0;if(!_.C("web_watch_top_banner_companion_check_killswitch")&&((I=z[l])==null?0:(b=I.adPlacementRenderer)==null?0:(v=b.renderer)==null?0:v.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.p.hasSuppressedResults=function(z){return z==null?!0:z.filter(function(l){return!l.continuationItemRenderer&&!l.compactPromotedVideoRenderer&&!l.promotedSparklesWebRenderer}).length===0};
_.p.computeShowButton=function(z,l){return this.isWatchNextGrid?z:z||this.hasSuppressedResults(l)};
_.p.showButtonChanged=function(){if(this.isWatchNextGrid){var z=_.Hy(this.hostElement).querySelector("ytd-rich-grid-renderer");z&&this.showButton!==null&&(z.continuationShowButton=this.showButton)}else{z=_.Hy(this.hostElement).querySelector("yt-next-continuation");var l=_.Hy(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.Hy(this.hostElement).querySelector("ytd-item-section-renderer");z&&(z.showButton=this.showButton);l&&(l.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.p.continuationTap=function(z){var l;if(((l=this.data)==null?void 0:l.continuations)!=null&&z.target.tagName==="TP-YT-PAPER-BUTTON")for(z=this.data.continuations,l=0;l<z.length;l++)z[l].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(z[l].nextContinuationData||{})};
_.p.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("shown-items-changed",this.shownItems))};
_.vP.Object.defineProperties(sG.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 z;return!((z=this.shownItems)==null||!z.some(function(l){return!!l.lockupViewModel||l.compactVideoRenderer}))}}});
sG.prototype.shownItemsChangedForBinding=sG.prototype.shownItemsChangedForBinding;sG.prototype.showButtonChanged=sG.prototype.showButtonChanged;sG.prototype.hideTvfilmOfferModuleChanged=sG.prototype.hideTvfilmOfferModuleChanged;sG.prototype.updateLockupContainerTypes=sG.prototype.updateLockupContainerTypes;sG.prototype.hideUnlimitedOfferModuleChanged=sG.prototype.hideUnlimitedOfferModuleChanged;sG.prototype.dataChanged=sG.prototype.dataChanged;sG.prototype.resultsChanged=sG.prototype.resultsChanged;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],sG.prototype,"ytLazyListBehavior",void 0);_.e([_.t(_.kH.YtNextContinuationBehavior),_.w("design:type",Object)],sG.prototype,"ytNextContinuationBehavior",void 0);
_.e([_.t(_.C6),_.w("design:type",Object)],sG.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],sG.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sG.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],sG.prototype,"playerData",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],sG.prototype,"autoFill",void 0);_.e([_.X({value:60}),_.w("design:type",Number)],sG.prototype,"targetFramerate",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sG.prototype,"isTwoColumns",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sG.prototype,"hideOfferModules",void 0);_.e([_.X(),_.w("design:type",Object)],sG.prototype,"shownItems",void 0);_.e([_.X({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.w("design:type",Boolean)],sG.prototype,"hideUnlimitedOfferModule",void 0);
_.e([_.X({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.w("design:type",Boolean)],sG.prototype,"hideTvfilmOfferModule",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sG.prototype,"watchFeedBigThumbs",void 0);_.e([_.X(),_.w("design:type",Object)],sG.prototype,"watchFeedBigThumbsOnLockup",void 0);_.e([_.X(),_.w("design:type",Object)],sG.prototype,"watchNextGridHideChips",void 0);_.e([_.X(),_.w("design:type",Object)],sG.prototype,"eligibleToSwitchToGrid",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sG.prototype,"disableShortsShelfHeightOverride",void 0);_.e([_.X({selector:_.Wr,reflectToAttribute:!0}),_.w("design:type",Object)],sG.prototype,"isGridViewEnabled",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sG.prototype,"showMoreButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sG.prototype,"isWatchNextGrid",void 0);
_.e([_.X({computed:"computeShowButton(showMoreButton, data.results)"}),_.w("design:type",Boolean)],sG.prototype,"showButton",void 0);_.e([_.YE("data.results.*"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sG.prototype,"resultsChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sG.prototype,"dataChanged",null);
_.e([_.By("hideUnlimitedOfferModule"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sG.prototype,"hideUnlimitedOfferModuleChanged",null);_.e([_.B("isGridViewEnabled","containsLockups","data"),_.X({reflectToAttribute:!0}),_.w("design:type",Number),_.w("design:paramtypes",[])],sG.prototype,"lockupContainerType",null);
_.e([_.By("lockupContainerType","data"),_.w("design:type",Function),_.w("design:paramtypes",[Number]),_.w("design:returntype")],sG.prototype,"updateLockupContainerTypes",null);_.e([_.By("hideTvfilmOfferModule"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sG.prototype,"hideTvfilmOfferModuleChanged",null);_.e([_.By("showButton"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sG.prototype,"showButtonChanged",null);
_.e([_.By("shownItems"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sG.prototype,"shownItemsChangedForBinding",null);_.e([_.B("shownItems"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],sG.prototype,"containsLockups",null);
_.r(sG,"ytd-watch-next-secondary-results-renderer",function(){if(gSv===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);gSv=z}z=gSv;return z},{mode:1});
}catch(e){_._DumpException(e)}
try{
var vtC=new _.Z0("replaceFeedContentAction");var MQ8;var pa1;var Ug=function(){return _.q.apply(this,arguments)||this};
_.m(Ug,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ug.prototype,"data",void 0);_.e([_.S({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Ug);
_.r(Ug,"ytd-sub-feed-option-renderer",function(){if(pa1!==void 0)return pa1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return pa1=z},{mode:1});var D6K;var aI=function(){return _.q.apply(this,arguments)||this};
_.m(aI,_.q);aI.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],aI.prototype,"ytRendererStamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],aI.prototype,"data",void 0);_.e([_.S({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],aI);
_.r(aI,"ytd-sub-feed-selector-renderer",function(){if(D6K!==void 0)return D6K;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return D6K=z},{mode:1});var Vm=function(){return _.q.apply(this,arguments)||this};
_.m(Vm,_.q);
Vm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vm.prototype,"data",void 0);_.e([_.S({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Vm);
_.r(Vm,"ytd-browse-feed-actions-renderer",function(){if(MQ8!==void 0)return MQ8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return MQ8=z},{mode:1});var x68;var OWl;var jB=function(){return _.q.apply(this,arguments)||this};
_.m(jB,_.q);jB.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jB.prototype,"data",void 0);_.e([_.S({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],jB);
_.r(jB,"ytd-mini-channel-renderer",function(){if(OWl!==void 0)return OWl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return OWl=z},{mode:1});var gts;var Js=function(){return _.q.apply(this,arguments)||this};
_.m(Js,_.q);Js.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Js.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Js);
_.r(Js,"ytd-vertical-channel-section-renderer",function(){if(gts!==void 0)return gts;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return gts=z},{mode:1});var zj=function(){return _.q.apply(this,arguments)||this};
_.m(zj,_.q);zj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zj.prototype,"data",void 0);_.e([_.S({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],zj);
_.r(zj,"ytd-browse-secondary-contents-renderer",function(){if(x68!==void 0)return x68;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return x68=z},{mode:1});var GQc;var lb=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};z.notActive=!1;z.isConstrainedList=!1;return z};
_.m(lb,_.q);_.p=lb.prototype;
_.p.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(z){var l;return(z==null?void 0:(l=z.webComponentHint)==null?void 0:l.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.p.getPath=function(z,l){var I="data.tabs.#"+l+".";z.tabs[l].tabRenderer?I+="tabRenderer.":z.tabs[l].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.p.computeDisplayedContent=function(z){this.unlinkPaths("content");if(z&&z.tabs)for(var l=z.tabs.length,I=0;I<l;I++){var b=z.tabs[I].tabRenderer||z.tabs[I].expandableTabRenderer;if(b.selected&&b.content)return this.linkPaths("content",this.getPath(z,I)),b.content}return null};
_.p.computeHasSecondaryColumnData=function(z){return!!z&&!!z.secondaryContents};
_.p.onRetrieveLocation=function(z,l){l.locationRetrieved(l.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);z.stopPropagation()};
_.p.onYtServiceRequestSent=function(z,l){_.C("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(l)};
_.p.onYtServiceRequestCompleted=function(z,l){_.C("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(l)};
_.p.onReplaceFeedContentAction=function(z){if(!_.C("replace_feed_content_action_killswitch")&&!this.notActive){var l;(z=(l=_.k(z,vtC))==null?void 0:l.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(z)}};
_.p.handleServiceRequestActions=function(z){if(z=z.actions){z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;var I=void 0;((I=_.k(l,vtC))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.k(l,vtC).items)}}};
lb.prototype.onYtServiceRequestCompleted=lb.prototype.onYtServiceRequestCompleted;lb.prototype.onYtServiceRequestSent=lb.prototype.onYtServiceRequestSent;lb.prototype.onRetrieveLocation=lb.prototype.onRetrieveLocation;_.e([_.t(_.u0),_.w("design:type",Object)],lb.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],lb.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lb.prototype,"data",void 0);_.e([_.X({computed:"computeDisplayedContent(data)"}),_.w("design:type",Object)],lb.prototype,"content",void 0);
_.e([_.X({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],lb.prototype,"hasSecondaryColumnData",void 0);_.e([_.X({value:function(){return window.outerHeight>1024?3:2}}),
_.w("design:type",Number)],lb.prototype,"initialCount",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],lb.prototype,"pageSubtype",void 0);_.e([_.qX("ytd-section-list-renderer"),_.w("design:type",Object)],lb.prototype,"listRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],lb.prototype,"notActive",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],lb.prototype,"isConstrainedList",void 0);
_.e([_.X(),_.w("design:type",String)],lb.prototype,"responsiveSizing",void 0);_.e([_.tP("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],lb.prototype,"onRetrieveLocation",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],lb.prototype,"onYtServiceRequestSent",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],lb.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],lb);
_.r(lb,"ytd-two-column-browse-results-renderer",function(){if(GQc!==void 0)return GQc;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return GQc=z},{mode:2});
}catch(e){_._DumpException(e)}
try{
var XWR=function(z){if((z==null?void 0:z.value)===void 0||z==null||!z.unit)return"initial";a:{switch(z.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var l="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":l="%";break a}l=void 0}return l?""+z.value+l:"initial"},qNQ=new _.Z0("shoppingContentLineItemViewModel");var i2r=_.P(function(z){var l=_.xC(z,{}).data;return _.N("yt-shopping-content-line-item-view-model",{class:_.m9("ytShoppingContentLineItemViewModelHost")},_.N(_.Rf,{text:function(){var I;return(I=l().text)==null?void 0:I.attributedString}}))},"ml");var FgT=_.P(function(z){z=_.xC(z,{});var l=z.data,I={};return _.N("yt-shopping-content-line-view-model",{class:_.m9("ytShoppingContentLineViewModelHost",z.className,(I.ytShoppingContentLineViewModelTruncateText=function(){return!l().wrapContent},I)),
style:_.XV({"--shopping-content-line-gap":function(){return l().itemGap?l().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return l().lineHeight?l().lineHeight+"px":void 0}})},_.N(_.qy,{each:function(){return(l().items||[]).map(function(b){return _.k(b,qNQ)}).filter(function(b){return!!b})}},function(b){return _.N(i2r,{data:b})}))},"nl");_.uO(_.P(function(z){var l=_.xC(z,{}).data,I=function(){var b;return((b=l().image)==null?void 0:b.height)||40};
return _.N("yt-shopping-timely-shelf-content-view-model",{el:_.xl(_.AR(function(){var b;return(b=l())==null?void 0:b.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.m9("ytShoppingTimelyShelfContentViewModelHost"),style:_.XV({"--shopping-timely-shelf-content-padding-top":function(){var b;return XWR((b=l().padding)==null?void 0:b.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var b;return XWR((b=l().padding)==null?void 0:b.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var b;return XWR((b=l().padding)==null?void 0:b.start)},
"--shopping-timely-shelf-content-padding-end":function(){var b;return XWR((b=l().padding)==null?void 0:b.end)},
"--yt-shopping-timely-shelf-background-color":function(){return l().backgroundColor!==void 0?_.aD(l().backgroundColor):"initial"}})},_.N(_.E,{cond:function(){var b;
return(b=l().image)==null?void 0:b.image},
then:function(b){return _.N(_.pK,{preserveHeight:!0,preserveWidth:!0,height:I,data:b,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz}),_.N("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.N(_.TS,{data:function(){return l().line1}},{shoppingContentLineViewModel:function(b){return _.N(FgT,{data:b.data})}}),_.N(_.TS,{data:function(){return l().line2}},{shoppingContentLineViewModel:function(b){return _.N(FgT,
{data:b.data})}})),_.N("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.N(_.qy,{each:function(){var b;
return(b=l().button)!=null?b:[]}},function(b){return _.N(_.TS,{data:function(){return b}},{buttonViewModel:_.h4})})))},"ol"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.mB}});_.QyA={};
_.QyA.YtdWatchBehavior=[_.U.YtRendererBehavior,_.RJ.YtPlayerListenerBehavior,_.Y$.YtRendererstamperBehavior,_.wl.YtActionHandlerBehavior,_.pF.YtPageBehavior,_.eD.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 _.rr("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.C("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 _.rr("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 _.C("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.C("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 _.OI("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.OI("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.C("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.C("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.C("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("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 _.C("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.C("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.C("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("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 _.C("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("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 _.C("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var z={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:_.Rz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Rz(["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"||_.C("swa_prov_panels_ks")?z.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(z.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},z.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return z},
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 z=this;this.watchController=void 0;this.pageDisposeJobs=[function(){z.showMetadataPlaceholder_()},
function(){_.C("web_watch_dont_clear_comments")||z.clearComments_()},
function(){z.clearPlayerAds_()},
function(){z.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.C("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.C("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.NE0(function(){return _.g5(z)},this.hostElement);
this.pageDisposeJobs.push(function(){z.youThereManager_.reset()});
_.C("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){z.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.iX;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;_.C("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));_.C("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.KJ(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(z){z&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:z}),z.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(z){_.C("kevlar_watch_flexy_theater_manager")&&(this.theater=z,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(z){!_.C("kevlar_watch_while_v2")&&!_.C("web_watch_pip")||z||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(z){this.active!==void 0&&(this.fullscreen=z,_.C("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(z){this.active!==void 0&&(_.gC(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.C("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(z>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(z){this.initCsi_();this.updatePageData_(z)},
updatePageData_:function(z){var l=this;if(z)if(this.data===z){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=z;this.playlist&&_.om({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sK("nw");this.loading=!1;_.qA(_.ow,function(){l.initDclkstatus_();var b,v=((b=l.player)==null?void 0:b.getVideoData().cpn)||"";_.V87(function(M,x){_.A8W(M,x,v)})})},
onPageLoadWithSameData_:function(){_.C("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 z=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!z);this.set("loadingData.playlistLoading",z&&z!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),z=this.watchNextSkeletonEl_.firstElementChild;z;)z.classList.remove("hidden"),z=z.nextElementSibling;if(_.C("kevlar_watch_frame0_loading_state")){var l,I,b;z=(l=this.loadingData)==null?void 0:(I=l.endpoint)==null?void 0:(b=I.watchEndpoint)==null?void 0:b.videoId;var v;z&&(v="https://i.ytimg.com/vi/"+z+"/frame0.jpg");_.Hy(this.hostElement).querySelector("#player").style.backgroundImage=v?"url("+v+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var z=_.Hy(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&z&&(z.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var l,I;(I=(l=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(l);var b,v;(v=(b=this.watchMetadata).resize)==null||v.call(b)}_.C("kevlar_watch_frame0_loading_state")&&(_.Hy(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(z){var l=_.Hy(this.hostElement).querySelector(z);l?_.xB(l,!1):_.PW(new _.qB("Overscroll monitor not found for component: ",z))},
removeSplitScrollMouseTrap:function(z){var l=_.Hy(this.hostElement).querySelector(z);l?_.OK(l):_.PW(new _.qB("Disposal component for  overscroll monitoring not found: ",z))},
onLoadingChanged_:function(z){z?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.C("web_thumbnail_to_watch_transition")&&!_.J7K||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.C("web_thumbnail_to_watch_transition")&&!_.J7K||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(z){var l=this;z?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ow.addLowPriorityJob(function(){l.onWindowResized_(_.ic(!0))})},
updateTheaterModeState_:function(z){if(!_.C("kevlar_watch_flexy_theater_manager")){z=z||this.fullWindowMode_;if(this.theater!==void 0||z)this.theater=z;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();z&&_.QCZ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var z=this.fullBleedPlayer?_.Hy(this.hostElement).querySelector("#player-full-bleed-container"):_.Hy(this.hostElement).querySelector("#player-container-inner");var l=this.getPlayerContainer(),I=_.C("kevlar_watch_while_v2")||_.C("web_watch_pip");l.parentElement!==z&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.g5(this).appendTo(z,l))},
updateErrorScreenLocation:function(){var z=_.Hy(this.hostElement).querySelector("#error-screen"),l=this.fullBleedPlayer?_.Hy(this.hostElement).querySelector("#player-full-bleed-container"):_.Hy(this.hostElement).querySelector("#player");z.parentElement!==l&&l.appendChild(z)},
deactivateMiniplayerAndResetPlayer:function(){var z=this;return _.O(function(l){if(l.nextAddress==1)return l.yield(_.pG().resolve(_.Af).deactivate(),2);z.updatePlayerLocation();_.qe(l)})},
updateCinematicsLocation:function(){var z=this.getElement("CINEMATICS");if(z){var l=this.getCinematicsLocationContainer();z.parentElement!==l&&l.appendChild(z)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Hy(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Hy(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(z,l,I){var b=document.documentElement.hasAttribute("dark"),v=b&&_.C("web_cinematic_theater_mode"),M=b&&_.C("web_cinematic_fullscreen");b=!b&&this.cinematicLightTheme;return I||z&&v||l&&M||(l||z)&&b},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var z=this,l;(l=this.watchController)==null||l.setWatchNextResponse(this.data);_.C("kevlar_watch_flexy_comments_manager")||this.initComments_();_.C("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.pG().resolve(_.NG).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.C("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ow.addLowPriorityJob(function(){_.EK(z.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.C("web_watch_start_chat_in_theater_mode")){var I,b,v;if((I=this.data)==null?0:(b=I.contents)==null?0:(v=b.twoColumnWatchNextResults)==null?0:v.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,x;((M=this.data)==null?0:(x=M.contents)==null?0:x.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(z){var l;(l=this.watchController)==null||l.setPlayerResponse(this.playerData);z&&z.playabilityStatus&&(l=this.isVideoPlayable_(z.playabilityStatus,this.getPlayerOverlays_(this.data)),z=this.isLiveStreamOffline_(z.playabilityStatus),l&&!z||_.IR(this,function(){_.sK("pbu")}));
this.setPlayerAds_();_.EK(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(z,l){if((_.C("kevlar_watch_while_v2")||_.C("web_watch_pip"))&&this.playerData&&l)return this.playerData.videoDetails},
watchPageActiveChanged_:function(z){_.vF().dispatch(_.k6v(this.active));z?this.activate_():this.deactivate_()},
attached:function(){var z=this;this.watchController=new _.sJ(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);_.C("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var l=_.g5(this);_.C("kevlar_disable_prepare_player")||
l.preparePlayer();_.C("kevlar_watch_flexy_playlist_manager")||_.pG().resolve(_.NG).setPlayer(l);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();l={"--ytd-watch-flexy-scrollbar-width":_.fX()+"px"};this.is==="ytd-watch-grid"&&(l["--ytd-watch-flexy-sidebar-width"]=_.H4D+"px",l["--ytd-watch-grid-horizontal-page-margins"]=_.Wq+"px",l["--ytd-watch-grid-columns-top-margins"]=_.EdT+"px",l["--ytd-watch-grid-min-player-height-medium"]="360px");!_.OI("kv_pl_mx_sz_ks")&&
_.OI("kevlar_watch_max_player_width")&&(l["--ytd-watch-flexy-max-player-width-wide-screen"]=_.ytr+"px");_.OI("kevlar_watch_flexy_metadata_height")&&(l["--ytd-watch-flexy-space-below-player"]=_.f17+"px");this.safeUpdateStyles(l);_.C("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.QxZ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return z.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Hy(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var z=_.fX(),l=_.n_+z,I=l;this.fixedPanels&&(l+=_.H4D);var b=657+z;z=1327+z;_.Hy(this.hostElement).querySelector("#two-column-query").query="(min-width: "+l+"px)";_.Hy(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(l+"px) and (max-width: ")+(z+"px)");_.Hy(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(z+"px)");
_.Hy(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var z=_.Hy(this.hostElement).querySelector("#miniplayer-bar").firstChild,l=this.squeezeback&&!_.C("web_watch_squeezeback_player_size_killswitch");return z&&z.active||this.theater||_.C("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||l||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.X5(NaN,NaN):_.IxR(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.IxR(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.p0(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var z=this;this.onWindowResized_(_.ic());_.C("browse_skeleton_removal_on_watch_killswitch")||_.rr("IS_SHELL_LOAD")&&_.Ets();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var l=_.g5(this);l.addEventListener("yt-player-updated",_.KJ(this,this.onPlayerUpdated_));l.getPlayerPromise().then(function(I){z.playerApiReady_(I)});
_.C("kevlar_watch_flexy_playlist_manager")||(l=_.pG().resolve(_.NG),_.C("kevlar_watch_observe_playlist_navigations_killswitch")&&l.addEventListener("yt-navigate",_.KJ(this,this.onYtNavigate_)),l.setPlaylistComponent(_.Hy(this.hostElement).querySelector("#playlist")),l.addEventListener("yt-playlist-data-updated",_.KJ(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ow.addLowPriorityJob(function(){_.gC(z.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.g5(this).removeEventListener("yt-player-updated",_.KJ(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.C("kevlar_watch_flexy_playlist_manager")){var z=_.pG().resolve(_.NG);_.C("kevlar_watch_observe_playlist_navigations_killswitch")&&z.removeEventListener("yt-navigate",_.KJ(this,this.onYtNavigate_));
z.cancelVideoSkip();z.removeEventListener("yt-playlist-data-updated",_.KJ(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.gC(this.hostElement,"yt-autonav-pause-player",!1);z=_.pM();_.C("kevlar_exit_fullscreen_leaving_watch")&&z&&_.DE(z)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(z){this.player&&this.player.updateVideoData({rvs:z.rvs})},
getPageContents:function(z){return z&&z.contents&&z.contents.twoColumnWatchNextResults&&z.contents.twoColumnWatchNextResults.results&&z.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(z){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z)},
onRetrieveLocation_:function(z,l){l.hasComments?l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):l.locationRetrieved("/related_ajax",void 0);z.stopPropagation()},
onSubscriptionChanged_:function(z,l){this.player&&(l?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.MP("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Hy(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Hy(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(z){this.player=z;this.setPlayerState(z.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.C("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.C("kevlar_unified_player")||_.C("kevlar_player_new_bootstrap_adoption"))&&_.aF()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(z,l){l=l===void 0?!0:l;_.pM()&&_.C("external_fullscreen")&&_.DE(document.documentElement);this.theaterRequested_=z;l&&_.KG("wide",z?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Gb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.gC(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(z){_.hK(z,typeof this.player),this.player&&_.hK(z,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var z;((z=this.player)==null?0:z.isFullscreen())?this.player.toggleFullscreen():_.Gb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(z,l){return this.loading?l:!!Object.keys(z).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(z){if(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next())l=l.value,l.youThereRenderer&&_.Z2v(this.youThereManager_,l.youThereRenderer)}},
setPlaylistData_:function(z){return z||{}},
userEngagementConfigDataChanged_:function(z){if(z)if(z.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var l=this.youThereManager_;_.p2()<z.lowEngagementThresholdMs||_.C_a(l,!0)}else z.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Gb(this.hostElement,"yt-autonav-pause-user-engagement",[z])},
isPlayerUnavailable_:function(z,l,I){return!!z&&!this.isVideoPlayable_(z,I)&&!l},
getPlayerOverlays_:function(z){return(z==null?void 0:z.playerOverlays)||null},
isVideoPlayable_:function(z,l){if(!z)return!1;var I=z.status==="OK"||z.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",z)||this.get("errorScreen.ypcTrailerRenderer",z);z=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",z);var v;l=l==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.gatedActionsOverlayRenderer;return!!I||!!b||!!z||!!l},
hasWatchNextResponseErrorRenderer:function(z){var l=this.getPageContents(z),I,b,v,M,x;return!(z==null?0:(I=z.contents)==null?0:(b=I.twoColumnWatchNextResults)==null?0:b.secondaryResults)&&!!((v=l[0])==null?0:(M=v.itemSectionRenderer)==null?0:(x=M.contents[0])==null?0:x.backgroundPromoRenderer)},
isLiveStreamOffline_:function(z){return z?z.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(z,l,I){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l),v=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];v=_.C("web_no_skip_video_on_verification_checks")?(z==null?void 0:z.status)&&v.includes(z.status):z&&z.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",z);M==void 0&&(M=!0);!I||this.isVideoPlayable_(z,this.getPlayerOverlays_(l))||
b||v||!M||_.pG().resolve(_.NG).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.v7A()},
onPlayerFeedbackStartRequest_:function(z){_.Gb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:z}])},
onPlayerFeedbackArticleRequest_:function(z){_.Gb(this.hostElement,"yt-help-dialog-requested",[z])},
onPlayerYpcContentRequest_:function(){var z,l,I,b,v,M,x,g,G=((z=this.data)==null?NaN:(l=z.contents)==null?NaN:(I=l.twoColumnWatchNextResults)==null?NaN:(b=I.secondaryResults)==null?NaN:(v=b.secondaryResults)==null?NaN:(M=v.offerModule)==null?NaN:(x=M.tvfilmOfferModuleRenderer)==null?NaN:(g=x.actionButtons)==null?NaN:g.length)-1;z=[".offerButton.buttonRenderer.",".actionButtons."+(G>=0?G:0)+".buttonRenderer."];l=_.D(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=l.next();!I.done;I=l.next())for(I=I.value,b=_.D(z),v=b.next();!v.done;v=b.next())if(v="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+v.value,v=this.get(v+"navigationEndpoint",this.data)||this.get(v+"serviceEndpoint",this.data)||this.get(v+"command",this.data)){_.tx(v,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(z){_.gC(this.hostElement,"yt-autonav-pause-player",z)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(z){z()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(z){switch(z){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(z){switch(z){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.gC(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(z)},
setPlayerState:function(z){_.vF().dispatch(_.H6n(z))},
onPlayerSubscribe_:function(z){_.Gb(this.hostElement,"yt-player-subscribe",[z])},
onPlayerUnsubscribe_:function(z){_.Gb(this.hostElement,"yt-player-unsubscribe",[z])},
onPlayerAdYtShowToast_:function(z){_.Gb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:z.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(z){if(z)return z},
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(z){return!_.C("web_watch_move_summary_to_sd")&&!!z},
computeWatchMetadataRefresh:function(){return _.C("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.C("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var z,l,I,b;this.watchNextSecondaryResults=(z=this.data)==null?void 0:(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.secondaryResults)==null?void 0:b.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.C("swatcheroo_pbs_load_grid")&&!_.C("swatcheroo_provide_all_data_on_scheduled_job")){_.ow.cancelJob(this.setRichGridJobId_);var z,l,I,b,v,M,x;this.setRichGridRendererData((z=this.data)==null?void 0:(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.secondaryResults)==null?void 0:(v=b.secondaryResults)==null?void 0:(M=v.results)==null?void 0:(x=M[0])==null?
void 0:x.richGridRenderer)}},
setRichGridRendererData:function(z){this.richGridRendererData=z},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var z,l=(z=this.data)==null?void 0:z.engagementPanels;if(l==null?0:l.length){z=null;l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;if(((b=I.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){z=I;break}}var v,M,x;z=(v=z)==null?void 0:(M=v.engagementPanelSectionListRenderer)==null?void 0:(x=M.content)==null?void 0:x.structuredDescriptionContentRenderer;if(z==null?0:z.items){v=
[];M=_.D(z.items);for(x=M.next();!x.done;x=M.next()){x=x.value;if(!_.C("sd_horizontal_list_show_nav_killswitch")){var g=b=I=l=z=void 0,G=void 0,u=(z=x.horizontalCardListRenderer)==null?void 0:(l=z.header)==null?void 0:(I=l.richListHeaderRenderer)==null?void 0:(b=I.navigationButton)==null?void 0:(g=b.buttonRenderer)==null?void 0:(G=g.command)==null?void 0:G.commandExecutorCommand;u&&u.commands&&(u.commands=u.commands.filter(function(Z){return!_.k(Z,_.T0A)}))}(!x.expandableVideoDescriptionBodyRenderer&&
!x.videoDescriptionHeaderRenderer||_.C("web_delhi_colorful_sd"))&&v.push(x)}return{items:v}}}},
constructWarning_:function(z){return{text:_.lc(z),type:"WARNING"}},
isPlaShelfEnabled_:function(z){if((this.get("adPlacements",z)||[]).length)return!0;z=this.get("playerAds",z)||[];return!(!z.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",z[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var z=this;_.gC(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var l=this.getScrollTop()>0;this.gestures_&&(l?this.gestures_.detach():this.gestures_.attach());l!==this.showFullerscreenEdu_&&_.C("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=l,_.g5(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(z.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.gC(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var z=this;this.commentsReady=!1;_.ow.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.qA(_.ow,function(){z.setComments_()},1E3)},
setComments_:function(){if(!_.C("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sK("cmi");_.ow.cancelJob(this.setCommentsJobId_);var z=this.getPageContents(this.data);if(z&&z.length){z=_.D(z);for(var l=z.next();!l.done;l=z.next())if(l=l.value,this.get("itemSectionRenderer.sectionIdentifier",l)==="comment-item-section"){this.comments=l.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.gC(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.C("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.C("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sK("cmc")},
doRemoveComments_:function(){this.comments={};_.C("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ow.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ow.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(z,l){var I=_.k(l.endpoint,_.zb);I&&(!(l=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==l.videoId||I.playlistId&&I.playlistId!==l.playlistId||I.index!==void 0&&I.index!==l.index||typeof I.startTimeSeconds!=="number"||(z.stopPropagation(),this.setScrollTop(0),_.g5(this).getPlayerPromise().then(function(b){var v=I.startTimeSeconds;b.seekTo(v);b.wakeUpControls();v<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var z=_.$Wa();"t"in z&&(z=_.b2T(z.t),this.player.seekTo(z,!0))},
updateTitleFromWatchNext:function(z){z=this.getPageContents(z);var l,I;(z=_.ID(z==null?void 0:(l=z[0])==null?void 0:(I=l.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.gC(this.hostElement,"yt-update-title",z)},
updateTitle_:function(z){z=this.get("videoDetails.title",z)||"";_.gC(this.hostElement,"yt-update-title",z)},
syncWithRemoteVideo_:function(z,l,I){if(this.active&&this.player){var b=this.player.getVideoData();if(b.video_id===I&&(I=b.list,_.C("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),b.video_id!==z||I!=l)){var v;_.C("kevlar_player_watch_endpoint_navigation")?v=_.Zvt(_.jwR(z,l)):v=this.buildWatchEndpoint_(z,l);_.gC(this.hostElement,"yt-navigate",{endpoint:v,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(z,l,I){return _.pc(z,l,I)},
initDclkstatus_:function(){_.lxR()},
attachWatchPageSkeleton_:function(){var z=document.querySelector("#watch-page-skeleton");if(z){var l=z.querySelector("#primary-info"),I=z.querySelector("#secondary-info"),b=z.querySelector("#related");l&&_.Hy(this.hostElement).querySelector("#info-skeleton").appendChild(l);I&&_.Hy(this.hostElement).querySelector("#meta-skeleton").appendChild(I);b&&(_.Hy(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.Bl(z)}},
handlePlayerUpdated_:function(){_.g5(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(z,l){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof l!=="undefined"){var I=this.watchNextSkeletonEl_.children,b=z&&z.indexSplices.length?z.indexSplices[0].index:0;z=Math.min(this.watchNextShownItems.length,I.length);l||(b=0,z=I.length);for(l=b;l<z;l++)I[l].classList.add("hidden")}},
onPlayerFullscreenChange_:function(z){_.C("external_fullscreen")||_.Gb(this.hostElement,"yt-player-fullscreen",[z.fullscreen])},
onFullscreenChange_:function(z){this.fullscreen=z;this.gestures_&&this.gestures_.update(this.fullscreen);var l=_.g5(this);l.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.pM())});
this.updateFullBleedElementLocations();z&&(l.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(z,l){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!l},
computeIsDonationShelfCollapsed_:function(z){return z},
computeShouldShowMerchShelf:function(z,l){return l&&!!z},
computeResponseHasComments:function(z){var l,I,b,v,M;return!!(z==null?0:(l=z.contents)==null?0:(I=l.twoColumnWatchNextResults)==null?0:(b=I.results)==null?0:(v=b.results)==null?0:(M=v.contents)==null?0:M.some(function(x){var g;return(x==null?void 0:(g=x.itemSectionRenderer)==null?void 0:g.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(z,l,I,b){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&b?!1:!!z&&!!Object.keys(z).length&&!l},
identity:_.df,onWindowResized_:function(z){this.windowSize_=z;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(z){var l=this;z&&z.type!=="dataloaded"&&z.type!=="dataupdated"||_.g5(this).getPlayerPromise().then(function(I){var b=I.getPlayerState();b!==5&&b!==0&&(I=1/I.getVideoAspectRatio(),l.videoHeightToWidthRatio_!==I&&(l.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(z){var l=this,I=_.C("kevlar_watch_while_v2")||_.C("web_watch_pip"),b=function(){if(l.watchMetadata){var v,M;(M=(v=l.watchMetadata).resize)==null||M.call(v)}_.g5(l).getPlayerPromise().then(function(x){if(_.C("kevlar_set_internal_player_size")){if(!I||!l.isMiniplayerActive()){var g=l.calculateCurrentPlayerSize_();x.setInternalSize(g.width,g.height)}}else x.setSize(NaN,NaN);_.C("kevlar_watch_while")&&l.updateWatchWhileScrollThreshold_()})};
z?b():_.fI(_.ow,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(z){this.set("data.survey",z.detail)},
onYtShowSurveyCommand_:function(z){this.set("data.survey",_.k(z,_.GuQ).survey)},
onDownloadedVideoDeleted:function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1){if(!l.active||(I=l.playerData)==null||!I.offlineState||l.videoId!==z)return v.return();(b=l.player)==null||b.stopVideo();_.wb().navigatingAwayFromWatchDeletedVideo=!0;_.tx(_.N91,l.hostElement);return v.yield(_.wb().navigationFinishPromise,2)}_.wb().navigatingAwayFromWatchDeletedVideo=!1;_.qe(v)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var z;this.theater?z=_.rx(.5625*this.windowSize_.width,480,this.windowSize_.height-185):z=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==z&&(this.watchWhileScrollThreshold_=z,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var z=_.Hy(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&z){var l=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!z.active&&l&&I>=this.watchWhileScrollThreshold_?(z.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):z.active&&(!l||I<this.watchWhileScrollThreshold_&&!_.pM())&&(z.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var z=_.Hy(this.hostElement).querySelector("#secondary-inner");if(z){var l=_.Hy(this.hostElement).querySelector("#below"),I=_.Hy(this.hostElement).querySelector("#secondary"),b=_.Hy(this.hostElement).querySelector("#comments");b&&I&&l&&(this.defaultTwoColumnLayout?(z.appendChild(b),I.appendChild(z)):(l.appendChild(b),_.wY(l,z)))}}},
isTwoColumnsChanged_:function(z,l){if(z!==!0||l!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(z=_.Hy(this.hostElement).querySelector("#secondary-inner"))){l=_.Hy(this.hostElement).querySelector("#below");var I=_.Hy(this.hostElement).querySelector("#secondary"),b=_.Hy(this.hostElement).querySelector("#comments");b&&I&&l&&(this.isTwoColumns_?(z.appendChild(b),I.appendChild(z)):(l.appendChild(b),_.wY(l,z)))}}else{z=!_.C("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);l=_.Hy(this.hostElement).querySelector("#panels");var v=_.Hy(this.hostElement).querySelector("#alerts");I=_.Hy(this.hostElement).querySelector("#playlist");b=_.Hy(this.hostElement).querySelector("#related");var M=_.Hy(this.hostElement).querySelector("#donation-shelf"),x=_.Hy(this.hostElement).querySelector("#comments");this.isTwoColumns_?(v=_.Hy(this.hostElement).querySelector("#secondary-inner"),z&&(v.appendChild(l),v.appendChild(I)),v.appendChild(M),
v.appendChild(b)):(z&&(_.A5(l,v),_.A5(I,v)),_.A5(M,v),x&&_.A5(b,x));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.C("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.C("web_watch_enable_fs_squeezeback_panels")&&_.C("web_watch_theater_chat")){var z=_.Hy(this.hostElement).querySelector("#chat-container"),l=this.theater&&!this.fullscreen||_.C("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&l?(l=_.Hy(this.hostElement).querySelector("#columns"),(z==null?void 0:z.parentElement)!==l&&l.append(z),this.fixedPanels=!0):(this.fixedPanels=
!1,l=_.Hy(this.hostElement).querySelector("#playlist"),z&&l?_.Wc(z,l):_.PW(new _.qB("Missing element when updating chat location",{"chatContainer defined":!!z,"playlist defined":!!l})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(z,l){return _.C("sw_metadata_vis_toggle_ks")?!0:!!z||!!l},
computeForceDarkPanelTheme:function(z){return _.C("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&z:!1},
safeUpdateStyles:function(z){try{_.R8(this.hostElement,z)}catch(l){_.PW(l)}},
videoHeightToWidthRatioChanged_:function(z,l){l&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(z){this.videoHeightToWidthRatio_=1/z},
computeIsVerticalVideo_:function(z){return z>=1},
computeIsFourThreeToSixteenNineVideo_:function(z){return z<=.7501&&z>=.5624},
computeIsExtraWideVideo_:function(z){return z<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.g5(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.g5(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ku8(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(z){var l=_.rD(z)||0;_.sr(z,l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var z=_.rD("yt-fullerscreen-edu-button-click-count")||0,l=_.rD("yt-fullerscreen-edu-button-shown-count")||0,I=_.OI("external_fullscreen_button_shown_threshold"),b=z>=_.OI("external_fullscreen_button_click_threshold")||l>=I;_.g5(this).getPlayerPromise().then(function(v){v.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(z,l){return l},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.pG().resolve(_.NG).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var z=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ow.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ow.addLowPriorityJob(function(){z.fullHeightPanelPositionUpdateJobId=0;var l=_.Hy(z.hostElement).querySelector("#secondary"),I=_.Hy(z.hostElement).querySelector("#fixed-secondary");l=l.getBoundingClientRect();var b=l.width;z.swatcherooSqueezeback&&
(b+=_.Wq);if(z.swatcherooSqueezeback){var v=_.Hy(z.hostElement).querySelector("#squeezeback-constraining-container");v.style.width=b+"px";v.style.flex="0 0 "+b+"px"}I.style.width=b+"px";I.style.left=l.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var z=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ow.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ow.addLowPriorityJob(function(){z.panelMaxHeightUpdateJob_=0;var l;!z.isTwoColumns_||z.theater||z.fullscreen?l=460:l=z.calculateNormalPlayerSize_().height;var I=l+"px";_.C("live_chat_taller_height")&&!z.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.C("live_chat_medium_height")&&!z.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.C("live_chat_scaled_height")&&!z.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");z.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":l+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":l+"px","--ytd-watch-flexy-comments-panel-max-height":l+"px","--ytd-comments-engagement-panel-content-height":l+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(z){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",z)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZE(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(z){var l=_.Hy(this.hostElement).querySelector("#engagement-panel-scrim");z?l.addEventListener("tap",_.KJ(this,this.onEngagementPanelScrimClick_)):l.removeEventListener("tap",_.KJ(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(z){if(this.hostElement.contains(z)&&!this.scrollToAnimation_.isAnimating()){var l=z.offsetTop-24;z=z.offsetTop+z.offsetHeight+24;var I=this.getPageScrollingElement(),b=this.getScrollTop(),v=b+I.clientHeight-56;if(l<b+56)l-=56;else if(z>v)l=z-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtSignalActionScrollToComments:function(){var z=this.hostElement.querySelector("#comments");if(z&&!this.scrollToAnimation_.isAnimating()){z=z.offsetTop-56-24;if(_.C("kevlar_comment_teaser_scroll_to_midpoint")&&(z-=_.il().height/3,z<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtEngagementPanelVisibleChanged:function(z,l,I){if(this.active&&this.trackEngagementPanelVisibility&&!_.O2D.includes(I)){if(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.EK(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var b=_.pG().resolve(_.lL);this.visiblePanelIdentifiers_.forEach(function(v){v!==I&&b.hidePanel(v)})}this.visiblePanelIdentifiers_.add(I)}l!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(z){return z?"":"watch-active-metadata"},
computeNewMetadataClass:function(z){return z?"watch-active-metadata":""},
computeIsSingleColumn:function(z,l){return l&&!z},
computeFullBleedPlayer:function(z,l,I){return _.C("external_fullscreen")&&z||l||I},
computeDefaultLayout:function(z){return!z},
computeDefaultTwoColumnLayout:function(z,l){return!z&&l},
updatePanelsLocation:function(){if(_.C("web_watch_enable_fs_squeezeback_panels")){var z=_.Hy(this.hostElement).querySelector("#below"),l=_.Hy(this.hostElement).querySelector("#panels"),I=_.Hy(this.hostElement).querySelector("#playlist"),b=_.Hy(this.hostElement).querySelector("#chat-container"),v=_.Hy(this.hostElement).querySelector("#panels-full-bleed-container"),M=_.Hy(this.hostElement).querySelector("#secondary-inner");if(z&&l&&I&&b&&v&&M){var x=this.fullscreen||this.theater&&this.iMaxTheaterMode,
g=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;x?(v.appendChild(l),v.appendChild(b),v.appendChild(I)):this.isTwoColumns_?(g?(z=_.Hy(this.hostElement).querySelector("#columns"),(b==null?void 0:b.parentElement)!==z&&z.append(b),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.wY(M,b),_.wY(M,l),_.wY(M,I)):(z.appendChild(l),z.appendChild(b),z.appendChild(I))}}},
swatcherooUpdatePanelsLocation:function(z,l,I,b,v,M){if(this.is==="ytd-watch-grid"){l=z&&!l;this.swatcherooSplitScroll&&(l?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.Hy(this.hostElement).querySelector("#panels");var x=_.Hy(this.hostElement).querySelector("#playlist"),g=_.Hy(this.hostElement).querySelector("#fixed-secondary"),G=_.Hy(this.hostElement).querySelector("#fixed-below"),
u=_.Hy(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),Z=_.Hy(this.hostElement).querySelector("#chat-container");M&&(z?g.appendChild(I):G.appendChild(I));v?z?g.appendChild(Z):G.appendChild(Z):_.Wc(Z,u);b?z?g.appendChild(x):G.appendChild(x):_.Wc(x,u);this.swatcherooSplitScroll&&(z=_.Hy(this.hostElement).querySelector("#secondary"),b=_.Hy(this.hostElement).querySelector("#columns"),v=_.Hy(this.hostElement).querySelector("#fixed-columns-secondary"),l?
v.appendChild(z):b.appendChild(z))}},
computeMetadataSkinnyMode:function(z,l,I){return this.is!=="ytd-watch-grid"?!1:z?I:l},
computeWatchWhilePanelsActive:function(z,l){return z||l},
computeNoBorderOnChat:function(z){return _.C("web_watch_theater_chat_no_border")&&z},
computeLiveChatPresentAndExpanded:function(z,l){return z&&!l},
computePanelExpanded:function(z,l,I){return z||l||I},
computeSqueezeback:function(z,l,I,b){if(_.C("web_watch_enable_fs_squeezeback_panels")){var v=this.iMaxTheaterMode&&this.theater;return(z||l||I)&&(b||v)}},
computeSwatcherooSqueezeback:function(z,l,I){return this.is!=="ytd-watch-grid"||_.C("ww_squeezeback_killswitch")?!1:z&&l&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(z){_.g5(this).getPlayerPromise().then(function(l){var I;(I=l.changeMarkerVisibility)==null||I.call(l,_.k(z,_.w$).isVisible||!1,_.k(z,_.w$).entityKeys||[],_.k(z,_.w$).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(z){this.liveChatCollapsed=z.detail;_.vF().dispatch(_.xAT(z.detail));if(!this.liveChatCollapsed&&this.squeezeback){var l=_.pG().resolve(_.lL);this.visiblePanelIdentifiers_.forEach(function(I){l.hidePanel(I)})}},
onSetPlaylistCollapsed:function(z){_.C("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!z)},
provideRenderingData:function(z,l){switch(z){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=l;break;case "PRIMARY_INFO":_.C("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=l);this.videoPrimaryInfoRendererValue=l==null?void 0:l.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.C("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=l);this.videoSecondaryInfoRendererValue=l==null?void 0:l.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
l;break;case "CLARIFICATION":this.clarifyBoxValue=l;break;case "LIVE_CHAT":this.conversationBar=l;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=l;break;case "PLAYLIST":this.externalPlaylistData_=l!=null?l:{};break;case "MERCH_SHELF":this.merchShelfValue=l==null?void 0:l.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=l;break;case "TICKET_SHELF":this.ticket=l;break;case "OFFER_MODULE":this.offerModule=l;break;case "LIMITED_STATE":this.limitedStateValue=
l;break;case "DONATION_SHELF":this.donation=l;break;case "ALERTS":this.alertsValue=l;break;case "COMMENTS":this.comments=l;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=l;break;case "ENGAGEMENT_PANELS":this.engagementPanels=l;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=l;break;case "RICH_GRID_RENDERER":this.richGridRendererData=l;break;case "EXPANDABLE_METADATA":this.expandableMetadata=l;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
l;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=l}},
toggleCinematicsActive:function(z){this.cinematicsActive=z},
isMiniplayerActive:function(){return _.pG().resolve(_.Af).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Ur8;_.LGF=function(z){if(!(0,_.OWu)(z))throw Error("K``"+String(z));};
_.aV1=function(z){return z.findIndex(function(l){return Ur8.indexOf(l.tagName)>-1})>-1};
_.VnK=function(){var z=_.pG().resolve(_.nq);_.VZG(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(z.isFullscreenEnabled()?_.DE(document.documentElement):_.T7k(document.documentElement))};
Ur8=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.eh=new Map;_.eh.set(32,59972);_.eh.set(27,50765);_.eh.set(70,60102);_.eh.set(76,60221);_.eh.set(77,60222);_.eh.set(74,60223);_.eh.set(84,60224);_.eh.set(38,61941);_.eh.set(40,61942);_.eh.set(73,62521);_.eh.set(67,62522);_.eh.set(80,63390);_.eh.set(78,63397);_.eh.set(75,59972);_.eh.set(188,63385);_.eh.set(190,63384);_.eh.set(36,63387);
_.eh.set(35,63386);_.eh.set(37,63388);_.eh.set(39,63389);_.eh.set(79,63423);_.eh.set(87,63424);_.eh.set(107,63426);_.eh.set(109,63425);_.eh.set(65,63428);_.eh.set(83,63430);_.eh.set(68,63429);_.eh.set(221,63431);_.eh.set(219,63432);_.eh.set(97,63439);_.eh.set(98,63440);_.eh.set(99,63441);_.eh.set(100,63442);_.eh.set(101,63443);_.eh.set(102,63444);_.eh.set(103,63445);_.eh.set(104,63446);_.eh.set(105,63447);_.w6=new Map;_.w6.set(80,63390);_.w6.set(78,63397);_.w6.set(188,63400);_.w6.set(190,63401);
_.w6.set(191,60765);_.w6.set(13,247917);_.A1=new Map;_.W5=new Map;
}catch(e){_._DumpException(e)}
try{
var iP0,YZF,Tr8,crq;_.tm1=function(z){return z.ui.guideIsVisibleButNotPersistent};
_.Brq=function(z){return z.ui.tabGesturesIsActive};
_.X8S=function(){var z=_.gk("service_worker_scope");try{return navigator.serviceWorker.getRegistration(z)}catch(l){return Promise.reject(l)}};
_.qZl=function(z){return!(!z||!z.pushManager)};
iP0=function(){return _.X8S().then(_.qZl).catch(function(){return!1})};
_.FFK=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?iP0():Promise.resolve(!1)};
_.QY1=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
YZF=function(){var z,l,I;return _.O(function(b){switch(b.nextAddress){case 1:return b.yield(_.JM.getInstance(),2);case 2:z=b.yieldResult;if(!z){l=void 0;b.jumpTo(3);break}return b.yield(z.get("lmqf"),4);case 4:l=b.yieldResult;case 3:switch((I=l)||(I="SD"),I){case "HD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Tr8=function(z){var l,I,b;return _.O(function(v){if(v.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.C("disable_av1_setting")){var M=window.localStorage["yt-player-av1-pref"];M=M==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":M==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else M="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(l=z===M)return v.jumpTo(2);b=I=z;return v.yield(YZF(),3)}v.nextAddress!=2&&(l=b===v.yieldResult);return v.return(l)})};var SZ8;var dyK=_.wB.IronButtonState,oPs=(0,_.r7)(HTMLElement);
_.hP({_template:function(){if(SZ8!==void 0)return SZ8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;crq===void 0&&(crq=document.createElement("template"));var b=crq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return SZ8=z},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[dyK,_.$b,_.Ai,_.LR],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(z){var l=(0,_.Ks)(this);l.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:z});l.shadowRoot.appendChild(z);return oPs.prototype._attachDom.call(this,z)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var z=this.contentElement;z&&z.selectedItem&&this._setSelectedItem(z.selectedItem)},
get contentElement(){for(var z=_.YO(this.$.content).getDistributedNodes(),l=0,I=z.length;l<I;l++)if(z[l].nodeType===Node.ELEMENT_NODE)return z[l]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(z){this._setSelectedItem(z.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(z){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z)===this&&this.open()},
_selectedItemChanged:function(z){var l="";z?l=z.label||z.getAttribute("label")||z.textContent.trim():l="";this.value=l;this._setSelectedItemLabel(l)},
_computeMenuVerticalOffset:function(z,l){return l?l:z?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var z=this.opened?"true":"false",l=this.contentElement;l&&l.setAttribute("aria-expanded",z)}});_.Ya=new _.Z0("navigateAction");var Ps1=new _.Z0("formRenderer");var TU=function(){var z=_.F6.apply(this,arguments)||this;z.showInput=!1;return z};
_.m(TU,_.F6);_.p=TU.prototype;_.p.detached=function(){this.showInput&&window.removeEventListener("click",_.KJ(this,this.closeOnOutsideClick_))};
_.p.stopPropagation_=function(z){this.showInput&&z.stopPropagation()};
_.p.closeOnOutsideClick_=function(z){this.closeOnOutsideClickCondition(z)&&(this.showInput=!1,window.removeEventListener("click",_.KJ(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.p.closeOnOutsideClickCondition=function(){return!0};
_.p.closeOnOutsideClickHandler=function(){};
_.p.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.KJ(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.p.openOnClickHandler=function(){};
_.p.showInputChanged=function(){};
_.p.setShowInput=function(z){this.showInput=z};
TU.prototype.setShowInput=TU.prototype.setShowInput;TU.prototype.showInputChanged=TU.prototype.showInputChanged;TU.prototype.openOnClickHandler=TU.prototype.openOnClickHandler;TU.prototype.openOnClick_=TU.prototype.openOnClick_;TU.prototype.closeOnOutsideClickHandler=TU.prototype.closeOnOutsideClickHandler;TU.prototype.closeOnOutsideClickCondition=TU.prototype.closeOnOutsideClickCondition;TU.prototype.closeOnOutsideClick_=TU.prototype.closeOnOutsideClick_;TU.prototype.stopPropagation_=TU.prototype.stopPropagation_;
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TU.prototype,"showInput",void 0);_.e([_.tP("click"),_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],TU.prototype,"stopPropagation_",null);_.e([_.By("showInput"),_.w("design:type",Function),_.w("design:paramtypes",[Boolean]),_.w("design:returntype")],TU.prototype,"showInputChanged",null);_.e([_.Q5()],TU);_.hbs=[TU.prototype];var sYW;var rrX;var cj=function(){return _.q.apply(this,arguments)||this};
_.m(cj,_.q);_.p=cj.prototype;_.p.computePreselectedOption=function(z,l){return l===this.itemSelected_?z:void 0};
_.p.dataChanged_=function(){var z=this;this.preselectedSubreason=this.itemSelected_=-1;var l;(l=this.data)!=null&&l.key&&_.IR(this,function(){var I,b=Number((I=z.data)==null?void 0:I.key);!Number.isNaN(b)&&(z.itemSelected_=b,I=(I=(z.data.items||[])[b])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(z.preselectedSubreason=I)})};
_.p.isSubReasonHidden_=function(z,l){return z!=l};
_.p.onTopItemSelected_=function(z,l){for(var I=_.Hy(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),b=0,v=I.length;b<v;b++)I[b].select(0);_.Gb(this.hostElement,"yt-report-form-update",[l.item.value]);z.stopPropagation()};
_.p.onItemSelected_=function(z,l){_.Gb(this.hostElement,"yt-report-form-update",[l.item.value]);z.stopPropagation()};
_.p.getItem_=function(z){return z.serviceItem?z.serviceItem:z.navigationItem?z.navigationItem:z.optionSelectableItemRenderer?z.optionSelectableItemRenderer:null};
_.p.computeText_=function(z){return(z=this.getItem_(z))?this.ytRendererBehavior.getSimpleString(z.text):null};
_.p.validate=function(){return this.itemSelected_!==-1};
_.p.computeAriaLabel_=function(z){var l=_.ID(z.text);(z=z.accessibility&&z.accessibility.accessibilityData&&z.accessibility.accessibilityData.label)&&(l+=". "+z);return l};
_.p.computeItemSelected_=function(z){return z};
_.p.preventSelection_=function(z){z.stopPropagation();this.tooltipTapped=!0};
_.p.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.p.updateItemSelectedFromBinding=function(z){this.itemSelected_=z.detail.value};
_.p.save=function(){var z;this.validate()&&(z=this.data)!=null&&z.items&&(z=this.data.items[this.itemSelected_],z!=null&&z.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(z.optionSelectableItemRenderer.submitEndpoint)||_.uJ(this.hostElement,[z.optionSelectableItemRenderer.submitEndpoint])))};
cj.prototype.onPaperRippleTransitionEnd_=cj.prototype.onPaperRippleTransitionEnd_;cj.prototype.dataChanged_=cj.prototype.dataChanged_;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],cj.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cj.prototype,"data",void 0);_.e([_.X({value:-1}),_.w("design:type",Number)],cj.prototype,"itemSelected_",void 0);
_.e([_.X({computed:"computeItemSelected_(itemSelected_)"}),_.w("design:type",Number)],cj.prototype,"value",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],cj.prototype,"restoreFocusOnClose",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],cj.prototype,"tooltipTapped",void 0);_.e([_.X({value:-1}),_.w("design:type",Number)],cj.prototype,"preselectedSubreason",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cj.prototype,"dataChanged_",null);_.e([_.tP("transitionend"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cj.prototype,"onPaperRippleTransitionEnd_",null);_.e([_.Wy({is:"yt-options-renderer",disableElementRegistration:!0})],cj);
_.r(cj,"yt-options-renderer",function(){if(rrX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;sYW===void 0&&(sYW=document.createElement("template"));var b=sYW;I.call(l,b.content.cloneNode(!0),z.content.firstChild);rrX=z}z=rrX;return z},{mode:2});var $y0;var eb4;var w8C;var Arc;var WF0;var nPW;var SV=function(){return _.q.apply(this,arguments)||this};
_.m(SV,_.q);SV.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
SV.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
SV.prototype.onTap=function(z){if(this.hostElement.classList.contains("selected")||_.Gb(this.hostElement,"yt-share-panel-can-select-contact-action")[0])z&&z.detail&&(z.detail.x||z.detail.y)&&_.Hy(this.hostElement).querySelector("#target").blur(),(z=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),z={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:z?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Gb(this.hostElement,"yt-share-panel-select-contact-action",[z])};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.e([_.X({observer:"onDataChanged"}),_.w("design:type",Object)],SV.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.w("design:type",String)],SV.prototype,"componentTitle",void 0);_.e([_.qX("#thumbnail"),_.w("design:type",Object)],SV.prototype,"thumbnail",void 0);_.e([_.Wy({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],SV);
_.r(SV,"yt-enrolled-contact-renderer",function(){if(nPW===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;WF0===void 0&&(WF0=document.createElement("template"));var b=WF0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);nPW=z}z=nPW;return z},{mode:2});var LFK;var Uyc;var du=function(){return _.q.apply(this,arguments)||this};
_.m(du,_.q);du.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
du.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
du.prototype.onTap=function(z){if(this.hostElement.classList.contains("selected")||_.Gb(this.hostElement,"yt-share-panel-can-select-contact-action")[0])z&&z.detail&&(z.detail.x||z.detail.y)&&_.Hy(this.hostElement).querySelector("#target").blur(),(z=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),z={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:z?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Gb(this.hostElement,"yt-share-panel-select-contact-action",[z])};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.e([_.X({observer:"onDataChanged"}),_.w("design:type",Object)],du.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.w("design:type",String)],du.prototype,"componentTitle",void 0);_.e([_.qX("#thumbnail"),_.w("design:type",Object)],du.prototype,"thumbnail",void 0);_.e([_.Wy({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],du);
_.r(du,"yt-suggested-contact-renderer",function(){if(Uyc===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;LFK===void 0&&(LFK=document.createElement("template"));var b=LFK;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Uyc=z}z=Uyc;return z},{mode:2});var oz=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-share-panel-reset-action":"onReset"};return z};
_.m(oz,_.q);oz.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"}}}}}};
oz.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Gb(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
oz.prototype.onReset=function(){for(var z=_.Hy(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),l=z.length-1;l>=0;l--)z[l].classList.toggle("selected")};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],oz.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({observer:"onDataChanged"}),_.w("design:type",Object)],oz.prototype,"data",void 0);
_.e([_.Wy({is:"yt-contact-section-renderer",disableElementRegistration:!0})],oz);
_.r(oz,"yt-contact-section-renderer",function(){if(Arc===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;w8C===void 0&&(w8C=document.createElement("template"));var b=w8C;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Arc=z}z=Arc;return z},{mode:2});var Pj=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return z};
_.m(Pj,_.q);_.p=Pj.prototype;_.p.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"}}}};
_.p.onYtRefreshFormCommand=function(z){var l;(z=_.k((l=_.k(z,_.yJA))==null?void 0:l.formRenderer,Ps1))&&this.set("data",z)};
_.p.reset=function(){var z=_.Hy(this.hostElement).querySelector("#fields").children;z=_.D(z);for(var l=z.next();!l.done;l=z.next())l=l.value,l.reset&&l.reset()};
_.p.getForm=function(){var z={},l=_.Hy(this.hostElement).querySelector("#fields").children;l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;if(!I.validate())return null;z[I.data.key]=I.value}return z};
_.p.submitFormFields=function(){if(this.fields)for(var z=_.D(this.fields),l=z.next();!l.done;l=z.next())l=l.value,l.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?l.save():l.nodeName==="YT-OPTIONS-RENDERER"&&l.save()};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Pj.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Pj.prototype,"data",void 0);_.e([_.i5("#fields > *"),_.w("design:type",Array)],Pj.prototype,"fields",void 0);
_.e([_.Wy({is:"yt-form-renderer",disableElementRegistration:!0})],Pj);
_.r(Pj,"yt-form-renderer",function(){if(eb4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;$y0===void 0&&($y0=document.createElement("template"));var b=$y0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);eb4=z}z=eb4;return z},{mode:2});var aJ8;var hj=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return z};
_.m(hj,_.q);hj.prototype.onCheckboxChange=function(z){this.data&&(z=(this.checked=_.pJ(z).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})};
hj.prototype.handleUpdateCheckboxCommand=function(z){(z=_.k(z,_.ShM))&&this.data&&this.data.id===z.id&&(this.set("data.disabled",z.disabled),this.set("data.title",z.title))};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],hj.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],hj.prototype,"checked",void 0);_.e([_.S({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],hj);
_.r(hj,"ytd-settings-checkbox-renderer",function(){if(aJ8!==void 0)return aJ8;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return aJ8=z},{mode:1});var Vml;var s1=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return z};
_.m(s1,_.q);s1.prototype.dataChanged=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return z.radio.removeAttribute("checked"),!z.data||!z.data.id||z.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.QY1()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(l=z.data&&z.data.id)?I.yield(Tr8(z.data.id),4):I.jumpTo(3):(z.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(l=I.yieldResult);l&&_.Gb(z.hostElement,"yt-select-settings-radio-option",[z.data.id]);_.qe(I)})};
s1.prototype.onButtonChanged=function(z){_.pJ(z).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Gb(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
s1.prototype.onSelectOption=function(z){this.data&&this.data.id&&(this.data.id===z?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
s1.prototype.dataChanged=s1.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],s1.prototype,"ytActionHandlerBehavior",void 0);_.e([_.qX("#radio"),_.w("design:type",Object)],s1.prototype,"radio",void 0);_.e([_.X(),_.w("design:type",Object)],s1.prototype,"data",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],s1.prototype,"dataChanged",null);_.e([_.S({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],s1);
_.r(s1,"ytd-settings-radio-option-renderer",function(){if(Vml!==void 0)return Vml;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Vml=z},{mode:1});var jYF;var ru=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return z};
_.m(ru,_.q);
ru.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"}}}};
ru.prototype.handleUpdateTextCommand=function(z){(z=_.k(z,_.dRu))&&this.data&&this.data.id===z.id&&this.set("data",z)};
ru.prototype.handleUpdateConnectedAppRendererCommand=function(z){if(_.k(z,_.hNn)&&this.data){var l,I;if(z=(l=_.k(z,_.hNn))==null?void 0:(I=l.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=z}};
ru.prototype.computeConnectedAppStyle=function(z){return z.style?z.style.toLowerCase().replace(/_/g,"-"):""};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ru.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.w("design:type",String)],ru.prototype,"connectedAppStyle",void 0);_.e([_.S({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ru);
_.r(ru,"ytd-connected-app-renderer",function(){if(jYF!==void 0)return jYF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return jYF=z},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Pl("iuT5Oc");

_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("L3n37");
var P_T=function(z){return z.watch.isLearningJourneyActive},hqr=_.kU(115994),sy0=_.kU(115993),rK0=function(z,l,I){var b=this;
var v=I.dragDownAction;this.layer=0;this.JSC$23161_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.JSC$23161_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var M=_.iY();_.Pf(M,hqr,this.layer);_.Pf(M,sy0,this.layer);this.dragDownAction=function(){v();_.JN(M,{visualElement:b.fullscreen?hqr:sy0})};
this.gesture=new _.P$(z,l,this.JSC$23161_watchConfig,"pandown");this.attach()};
rK0.prototype.attach=function(){this.gesture.attach()};
rK0.prototype.detach=function(){this.gesture.detach()};
rK0.prototype.update=function(z){this.fullscreen=z;this.gesture.config=z?this.JSC$23161_watchFullScreenConfig:this.JSC$23161_watchConfig};var $AD=function(z){_.$3.call(this);var l=this;this.rootElement=z;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return l.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){l.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.m($AD,_.$3);_.p=$AD.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(z){return this.rootElement.getElement(z)};
_.p.setPlayerResponse=function(z){this.playerResponse=z;this.publish("PLAYER_RESPONSE_UPDATED",z)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(z){this.watchNextResponse===z?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=z,this.publish("WATCH_NEXT_RESPONSE_UPDATED",z))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(z,l){var I=this;if(_.C("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.n2(_.WW.getInstance(),(b[z]=l,b),this.getRoot())}else this.actionHandlers.has(z)||(this.actionHandlers.set(z,[]),b={},_.n2(_.WW.getInstance(),(b[z]=function(){var v=_.AT.apply(0,arguments);return(I.actionHandlers.get(z)||[]).map(function(M){return M.apply(null,_.ht(v))})},b),this.getRoot())),this.actionHandlers.get(z).push(l)};
_.p.unregisterActionHandler=function(z){if(_.C("web_watch_controller_reg_multiple_handlers_killswitch")){var l={};_.UN(_.WW.getInstance(),(l[z]=!0,l),this.getRoot())}else(l=this.actionHandlers.get(z))?(l.pop(),l.length===0&&(l={},_.UN(_.WW.getInstance(),(l[z]=!0,l),this.getRoot()),this.actionHandlers.delete(z))):_.PW(new _.qB("Attempted to unregister an action handler which is not registered.",z))};
_.p.addPageDisposeJob=function(z){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.mp$(this.rootElement.pageDisposeJobs,z)};
_.p.removePageDisposeJob=function(z){this.rootElement.pageDisposeJobs&&_.$5(this.rootElement.pageDisposeJobs,z)};
_.p.dispatchEvent=function(z,l){_.gC(this.rootElement,z,l)};
_.p.provideRenderingData=function(z,l){this.rootElement.provideRenderingData(z,l)};
_.p.scrollWatchTo=function(z,l){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(z,l)};
_.p.focusOnPlayer=function(){var z=this.getElement("PLAYER");_.IR(z,function(){if(z&&z.firstElementChild){var l=z.querySelector(".html5-video-player");l&&(_.i0(_.pG().resolve(_.TH)),l.focus())}else _.PW(Error("Qo"))})};
var eqa=function(z){var l=!!z.rootElement.theater,I=!!z.rootElement.fullscreen,b;(b=z.watchCinematicManager)==null||_.ZGQ(b,I,l)};
_.p=$AD.prototype;_.p.subscribeToActiveChanged=function(z,l){l=l===void 0?!0:l;var I=_.Wf(_.vF(),P_T,function(b){z(b)});
l&&z(P_T(_.vF().getState()));return I};
_.p.isActive=function(){return P_T(_.vF().getState())};
_.p.onAttached=function(){var z=_.C("external_fullscreen");_.C("use_unified_flag_accessor")&&(z=_.pG().resolve(_.FXS).retriever.getFlag(_.f_u));(z||_.rr("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.p.initPersistentModules=function(){if(_.C("kevlar_watch_flexy_theater_manager")){var z=new _.$y7(this);_.kN(this,z)}z=new _.FZa(this);_.kN(this,z);z=new _.cI(this);_.kN(this,z);z=new _.Bkv(this);_.kN(this,z);z=new _.M8v(this);_.kN(this,z);z=new _.St(this);_.kN(this,z);_.C("kevlar_watch_flexy_playlist_manager")&&(z=new _.xWZ(this),_.kN(this,z))};
_.p.initOrDisposeActiveModules=function(z){z?(this.watchScrollManager=new _.hh(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.AEZ(this)),this.activeModules.push(new _.wb7(this)),this.activeModules.push(new _.uhr(this)),this.activeModules.push(new _.PfR(this)),_.C("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.UMv(this)),this.activeModules.push(new _.Vca(this)),_.C("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.HpT(this)),
_.C("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.vsR(this)),_.C("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.OG8(this),this.activeModules.push(this.watchCinematicManager),eqa(this)),_.C("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.lrR(this)),_.C("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qIv(this)),z=_.C("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.C("kevlar_watch_flexy_comments_manager")&&
!z&&this.activeModules.push(new _.ko0(this)),_.C("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.DyT(this)),this.activeModules.push(new _.aJv(this)),this.activeModules.push(new _.nsT(this)),_.C("web_enable_timely_actions")&&this.activeModules.push(new _.zMR(this)),_.C("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.myZ(this)),_.C("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.EPu(this)),_.C("web_fullscreen_components")&&
this.activeModules.push(new _.JX7(this)),_.C("web_player_rtr_ctrls")&&this.activeModules.push(new _.tmZ(this))):(_.Dv(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.p.disposeInternal=function(){_.$3.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vP.Object.defineProperties($AD.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var wWR={},AK0=["learning-journey-engagement-panel","PAlearning_chat"];
wWR.YtdLearningJourneyWatchBehavior=[_.U.YtRendererBehavior,_.RJ.YtPlayerListenerBehavior,_.Y$.YtRendererstamperBehavior,_.wl.YtActionHandlerBehavior,_.pF.YtPageBehavior,_.eD.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 _.rr("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.C("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 _.rr("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 _.C("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.C("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 _.OI("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.OI("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.C("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.C("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("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 _.C("web_watch_rounded_player_large")||_.C("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 _.C("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.C("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("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 _.C("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.C("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:_.Rz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Rz(["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 z=this;this.watchController=void 0;this.pageDisposeJobs=[function(){z.showMetadataPlaceholder_()},
function(){_.C("web_watch_dont_clear_comments")||z.clearComments_()},
function(){z.clearPlayerAds_()},
function(){z.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.C("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.C("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.NE0(function(){return _.g5(z)},this.hostElement);
this.pageDisposeJobs.push(function(){z.youThereManager_.reset()});
_.C("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){z.resetFullerscreenEduButtonForNewPlayback_()}));
_.C("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.iX;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;_.C("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.C("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));_.C("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.KJ(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(z){z&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:z}),z.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(z){_.C("kevlar_watch_flexy_theater_manager")&&(this.theater=z,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.C("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(z){!_.C("kevlar_watch_while_v2")&&!_.C("web_watch_pip")||z||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(z){this.active!==void 0&&(this.fullscreen=z,_.C("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(z){this.active!==void 0&&(_.gC(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.C("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(z>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(z){this.initCsi_();this.updatePageData_(z)},
updatePageData_:function(z){var l=this;if(z)if(this.data===z){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=z;this.playlist&&_.om({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sK("nw");this.loading=!1;_.qA(_.ow,function(){l.initDclkstatus_();var b,v=((b=l.player)==null?void 0:b.getVideoData().cpn)||"";_.V87(function(M,x){_.A8W(M,x,v)})})},
onPageLoadWithSameData_:function(){_.C("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 z=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!z);this.set("loadingData.playlistLoading",z&&z!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),z=this.watchNextSkeletonEl_.firstElementChild;z;)z.classList.remove("hidden"),z=z.nextElementSibling;var l,I,b;z=(l=this.loadingData)==null?void 0:(I=l.endpoint)==null?void 0:(b=I.watchEndpoint)==null?void 0:b.videoId;var v;z&&(v="https://i.ytimg.com/vi/"+z+"/frame0.jpg");_.Hy(this.hostElement).querySelector("#player").style.backgroundImage=v?"url("+v+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var z=_.Hy(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&z&&(z.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var l,I;(I=(l=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(l);var b,v;(v=(b=this.watchMetadata).resize)==null||v.call(b)}_.Hy(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(z){var l=_.Hy(this.hostElement).querySelector(z);l?_.xB(l,!1):_.PW(new _.qB("Overscroll monitor not found for component: ",z))},
removeSplitScrollMouseTrap:function(z){var l=_.Hy(this.hostElement).querySelector(z);l?_.OK(l):_.PW(new _.qB("Disposal component for  overscroll monitoring not found: ",z))},
onLoadingChanged_:function(z){z?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(z){var l=this;z?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ow.addLowPriorityJob(function(){l.onWindowResized_(_.ic(!0))})},
updateTheaterModeState_:function(z){if(!_.C("kevlar_watch_flexy_theater_manager")){z=z||this.fullWindowMode_;if(this.theater!==void 0||z)this.theater=z;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();z&&_.QCZ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var z=this.theater;_.C("external_fullscreen")&&this.fullscreen&&(z=!0);z=z?_.Hy(this.hostElement).querySelector("#player-full-bleed-container"):_.Hy(this.hostElement).querySelector("#player-container-inner");var l=this.getPlayerContainer(),I=_.C("kevlar_watch_while_v2")||_.C("web_watch_pip");l.parentElement!==z&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.g5(this).appendTo(z,l),z.appendChild(_.Hy(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var z=this;return _.O(function(l){if(l.nextAddress==1)return l.yield(_.pG().resolve(_.Af).deactivate(),2);z.updatePlayerLocation();_.qe(l)})},
updateCinematicsLocation:function(){var z=this.getElement("CINEMATICS");if(z){var l=this.getCinematicsLocationContainer();z.parentElement!==l&&l.appendChild(z);var I;(I=this.watchController)==null||eqa(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Hy(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Hy(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(z,l){var I=document.documentElement.hasAttribute("dark"),b=I&&_.C("web_cinematic_theater_mode"),v=I&&_.C("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return z&&b||l&&v||(l||z)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var z;(z=this.watchController)==null||z.setWatchNextResponse(this.data);_.C("kevlar_watch_flexy_comments_manager")||this.initComments_();_.C("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.pG().resolve(_.NG).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.C("web_watch_start_chat_in_theater_mode")){var l,
I,b;if((l=this.data)==null?0:(I=l.contents)==null?0:(b=I.twoColumnWatchNextResults)==null?0:b.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var v,M;((v=this.data)==null?0:(M=v.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(z){var l;(l=this.watchController)==null||l.setPlayerResponse(this.playerData);z&&z.playabilityStatus&&(l=this.isVideoPlayable_(z.playabilityStatus,this.getPlayerOverlays_(this.data)),z=this.isLiveStreamOffline_(z.playabilityStatus),l&&!z||_.IR(this,function(){_.sK("pbu")}));
this.setPlayerAds_();_.EK(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(z){_.vF().dispatch(_.GZ({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));z?this.activate_():this.deactivate_()},
attached:function(){var z=this;this.watchController=new $AD(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.C("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var l=_.g5(this);_.C("kevlar_disable_prepare_player")||l.preparePlayer();_.C("kevlar_watch_flexy_playlist_manager")||_.pG().resolve(_.NG).setPlayer(l);this.updatePageMediaQueries();l={"--ytd-watch-flexy-scrollbar-width":_.fX()+
"px"};!_.OI("kv_pl_mx_sz_ks")&&_.OI("kevlar_watch_max_player_width")&&(l["--ytd-watch-flexy-max-player-width-wide-screen"]=_.ytr+"px");_.OI("kevlar_watch_flexy_metadata_height")&&(l["--ytd-watch-flexy-space-below-player"]=_.f17+"px");this.safeUpdateStyles(l);_.C("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new rK0(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return z.onPlayerTouchPanDown_()}}));
_.C("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Hy(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var z=_.fX(),l=_.n_+z,I=l;this.fixedPanels&&(l+=_.H4D);var b=657+z;z=1327+z;_.Hy(this.hostElement).querySelector("#two-column-query").query="(min-width: "+l+"px)";_.Hy(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(l+"px) and (max-width: ")+(z+"px)");_.Hy(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(z+"px)");
_.Hy(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var z=_.Hy(this.hostElement).querySelector("#miniplayer-bar").firstChild;return z&&z.active||this.theater||_.C("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.X5(NaN,NaN):_.IxR(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.IxR(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.p0(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var z=this;this.onWindowResized_(_.ic());_.C("browse_skeleton_removal_on_watch_killswitch")||_.rr("IS_SHELL_LOAD")&&_.Ets();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var l=_.g5(this);l.addEventListener("yt-player-updated",_.KJ(this,this.onPlayerUpdated_));l.getPlayerPromise().then(function(I){z.playerApiReady_(I)});
_.C("kevlar_watch_flexy_playlist_manager")||(l=_.pG().resolve(_.NG),_.C("kevlar_watch_observe_playlist_navigations_killswitch")&&l.addEventListener("yt-navigate",_.KJ(this,this.onYtNavigate_)),l.setPlaylistComponent(_.Hy(this.hostElement).querySelector("#playlist")),l.addEventListener("yt-playlist-data-updated",_.KJ(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ow.addLowPriorityJob(function(){_.gC(z.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.g5(this).removeEventListener("yt-player-updated",_.KJ(this,this.onPlayerUpdated_));if(!_.C("kevlar_watch_flexy_playlist_manager")){var z=_.pG().resolve(_.NG);_.C("kevlar_watch_observe_playlist_navigations_killswitch")&&z.removeEventListener("yt-navigate",_.KJ(this,this.onYtNavigate_));z.cancelVideoSkip();z.removeEventListener("yt-playlist-data-updated",_.KJ(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.C("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.gC(this.hostElement,"yt-autonav-pause-player",!1);z=_.pM();_.C("kevlar_exit_fullscreen_leaving_watch")&&z&&_.DE(z)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(z){this.player&&this.player.updateVideoData({rvs:z.rvs})},
getPageContents:function(z){return z&&z.contents&&z.contents.twoColumnWatchNextResults&&z.contents.twoColumnWatchNextResults.results&&z.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(z){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z)},
onRetrieveLocation_:function(z,l){l.hasComments?l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):l.locationRetrieved("/related_ajax",void 0);z.stopPropagation()},
onSubscriptionChanged_:function(z,l){this.player&&(l?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.MP("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Hy(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Hy(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(z){this.player=z;this.setPlayerState(z.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.C("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.C("kevlar_unified_player")||_.C("kevlar_player_new_bootstrap_adoption"))&&_.aF()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(z,l){l=l===void 0?!0:l;_.pM()&&_.C("external_fullscreen")&&_.DE(document.documentElement);this.theaterRequested_=z;l&&_.KG("wide",z?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.C("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Gb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.gC(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(z){_.hK(z,typeof this.player),this.player&&_.hK(z,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var z;((z=this.player)==null?0:z.isFullscreen())?this.player.toggleFullscreen():_.Gb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(z,l){return this.loading?l:!!Object.keys(z).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(z){if(z){z=_.D(z);for(var l=z.next();!l.done;l=z.next())l=l.value,l.youThereRenderer&&_.Z2v(this.youThereManager_,l.youThereRenderer)}},
setPlaylistData_:function(z){return z||{}},
userEngagementConfigDataChanged_:function(z){if(z)if(z.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var l=this.youThereManager_;_.p2()<z.lowEngagementThresholdMs||_.C_a(l,!0)}else z.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Gb(this.hostElement,"yt-autonav-pause-user-engagement",[z])},
isPlayerUnavailable_:function(z,l,I){return!!z&&!this.isVideoPlayable_(z,I)&&!l},
getPlayerOverlays_:function(z){return(z==null?void 0:z.playerOverlays)||null},
isVideoPlayable_:function(z,l){if(!z)return!1;var I=z.status==="OK"||z.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",z)||this.get("errorScreen.ypcTrailerRenderer",z);z=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",z);var v;l=l==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.gatedActionsOverlayRenderer;return!!I||!!b||!!z||!!l},
hasWatchNextResponseErrorRenderer:function(z){var l=this.getPageContents(z),I,b,v,M,x;return!(z==null?0:(I=z.contents)==null?0:(b=I.twoColumnWatchNextResults)==null?0:b.secondaryResults)&&!!((v=l[0])==null?0:(M=v.itemSectionRenderer)==null?0:(x=M.contents[0])==null?0:x.backgroundPromoRenderer)},
isLiveStreamOffline_:function(z){return z?z.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(z,l,I){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l),v=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];v=_.C("web_no_skip_video_on_verification_checks")?(z==null?void 0:z.status)&&v.includes(z.status):z&&z.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",z);M==void 0&&(M=!0);!I||this.isVideoPlayable_(z,this.getPlayerOverlays_(l))||
b||v||!M||_.pG().resolve(_.NG).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.v7A()},
onPlayerFeedbackStartRequest_:function(z){_.Gb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:z}])},
onPlayerFeedbackArticleRequest_:function(z){_.Gb(this.hostElement,"yt-help-dialog-requested",[z])},
onPlayerYpcContentRequest_:function(){var z,l,I,b,v,M,x,g,G=((z=this.data)==null?NaN:(l=z.contents)==null?NaN:(I=l.twoColumnWatchNextResults)==null?NaN:(b=I.secondaryResults)==null?NaN:(v=b.secondaryResults)==null?NaN:(M=v.offerModule)==null?NaN:(x=M.tvfilmOfferModuleRenderer)==null?NaN:(g=x.actionButtons)==null?NaN:g.length)-1;z=[".offerButton.buttonRenderer.",".actionButtons."+(G>=0?G:0)+".buttonRenderer."];l=_.D(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=l.next();!I.done;I=l.next())for(I=I.value,b=_.D(z),v=b.next();!v.done;v=b.next())if(v="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+v.value,v=this.get(v+"navigationEndpoint",this.data)||this.get(v+"serviceEndpoint",this.data)||this.get(v+"command",this.data)){_.tx(v,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(z){_.gC(this.hostElement,"yt-autonav-pause-player",z)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(z){z()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(z){switch(z){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(z){switch(z){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.gC(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(z)},
setPlayerState:function(z){_.vF().dispatch(_.H6n(z))},
onPlayerSubscribe_:function(z){_.Gb(this.hostElement,"yt-player-subscribe",[z])},
onPlayerUnsubscribe_:function(z){_.Gb(this.hostElement,"yt-player-unsubscribe",[z])},
onPlayerAdYtShowToast_:function(z){_.Gb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:z.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(z){if(z)return z},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(z){return!_.C("web_watch_move_summary_to_sd")&&!!z},
computeWatchMetadataRefresh:function(){return _.C("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var z,l,I,b;this.watchNextSecondaryResults=(z=this.data)==null?void 0:(l=z.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(b=I.secondaryResults)==null?void 0:b.secondaryResults}},
setRichGridRendererData:function(z){this.richGridRendererData=z},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var z,l=(z=this.data)==null?void 0:z.engagementPanels;if(l==null?0:l.length){z=null;l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;if(((b=I.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){z=I;break}}var v,M,x;z=(v=z)==null?void 0:(M=v.engagementPanelSectionListRenderer)==null?void 0:(x=M.content)==null?void 0:x.structuredDescriptionContentRenderer;if(z==null?0:z.items){v=
[];M=_.D(z.items);for(x=M.next();!x.done;x=M.next()){x=x.value;if(!_.C("sd_horizontal_list_show_nav_killswitch")){var g=b=I=l=z=void 0,G=void 0,u=(z=x.horizontalCardListRenderer)==null?void 0:(l=z.header)==null?void 0:(I=l.richListHeaderRenderer)==null?void 0:(b=I.navigationButton)==null?void 0:(g=b.buttonRenderer)==null?void 0:(G=g.command)==null?void 0:G.commandExecutorCommand;u&&u.commands&&(u.commands=u.commands.filter(function(Z){return!_.k(Z,_.T0A)}))}x.expandableVideoDescriptionBodyRenderer||
x.videoDescriptionHeaderRenderer||v.push(x)}return{items:v}}}},
constructWarning_:function(z){return{text:_.lc(z),type:"WARNING"}},
isPlaShelfEnabled_:function(z){if((this.get("adPlacements",z)||[]).length)return!0;z=this.get("playerAds",z)||[];return!(!z.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",z[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var z=this;_.gC(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var l=this.getScrollTop()>0;this.gestures_&&(l?this.gestures_.detach():this.gestures_.attach());l!==this.showFullerscreenEdu_&&_.C("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=l,_.g5(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(z.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.gC(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var z=this;this.commentsReady=!1;_.ow.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.qA(_.ow,function(){z.setComments_()},1E3)},
setComments_:function(){if(!_.C("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sK("cmi");_.ow.cancelJob(this.setCommentsJobId_);var z=this.getPageContents(this.data);if(z&&z.length){z=_.D(z);for(var l=z.next();!l.done;l=z.next())if(l=l.value,this.get("itemSectionRenderer.sectionIdentifier",l)==="comment-item-section"){this.comments=l.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.gC(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.C("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.C("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sK("cmc")},
doRemoveComments_:function(){this.comments={};_.C("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ow.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ow.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(z,l){var I=_.k(l.endpoint,_.zb);I&&(!(l=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==l.videoId||I.playlistId&&I.playlistId!==l.playlistId||I.index!==void 0&&I.index!==l.index||typeof I.startTimeSeconds!=="number"||(z.stopPropagation(),this.setScrollTop(0),_.g5(this).getPlayerPromise().then(function(b){var v=I.startTimeSeconds;b.seekTo(v);b.wakeUpControls();v<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var z=_.$Wa();"t"in z&&(z=_.b2T(z.t),this.player.seekTo(z,!0))},
updateTitleFromWatchNext:function(z){z=this.getPageContents(z);var l,I;(z=_.ID(z==null?void 0:(l=z[0])==null?void 0:(I=l.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.gC(this.hostElement,"yt-update-title",z)},
updateTitle_:function(z){z=this.get("videoDetails.title",z)||"";_.gC(this.hostElement,"yt-update-title",z)},
syncWithRemoteVideo_:function(z,l,I){if(this.active&&this.player){var b=this.player.getVideoData();if(b.video_id===I&&(I=b.list,_.C("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),b.video_id!==z||I!=l)){var v;_.C("kevlar_player_watch_endpoint_navigation")?v=_.Zvt(_.jwR(z,l)):v=this.buildWatchEndpoint_(z,l);_.gC(this.hostElement,"yt-navigate",{endpoint:v,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(z,l,I){return _.pc(z,l,I)},
initDclkstatus_:function(){_.lxR()},
attachWatchPageSkeleton_:function(){var z=document.querySelector("#watch-page-skeleton");if(z){var l=z.querySelector("#primary-info"),I=z.querySelector("#secondary-info"),b=z.querySelector("#related");l&&_.Hy(this.hostElement).querySelector("#info-skeleton").appendChild(l);I&&_.Hy(this.hostElement).querySelector("#meta-skeleton").appendChild(I);b&&(_.Hy(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.Bl(z)}},
handlePlayerUpdated_:function(){_.g5(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(z,l){if(this.watchNextSkeletonEl_&&typeof l!=="undefined"){var I=this.watchNextSkeletonEl_.children,b=z&&z.indexSplices.length?z.indexSplices[0].index:0;z=Math.min(this.watchNextShownItems.length,I.length);l||(b=0,z=I.length);for(l=b;l<z;l++)I[l].classList.add("hidden")}},
onPlayerFullscreenChange_:function(z){_.C("external_fullscreen")||_.Gb(this.hostElement,"yt-player-fullscreen",[z.fullscreen])},
onFullscreenChange_:function(z){this.fullscreen=z;this.gestures_&&this.gestures_.update(this.fullscreen);var l=_.g5(this);l.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.pM())});
this.updateFullBleedElementLocations();z&&(l.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(z,l){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!l},
computeIsDonationShelfCollapsed_:function(z){return z},
computeShouldShowMerchShelf:function(z,l){return l&&!!z},
computeResponseHasComments:function(z){var l,I,b,v,M;return!!(z==null?0:(l=z.contents)==null?0:(I=l.twoColumnWatchNextResults)==null?0:(b=I.results)==null?0:(v=b.results)==null?0:(M=v.contents)==null?0:M.some(function(x){var g;return(x==null?void 0:(g=x.itemSectionRenderer)==null?void 0:g.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(z,l){this.responseHasComments=this.computeResponseHasComments(this.data);return!!z&&!!Object.keys(z).length&&!l},
identity:_.df,onWindowResized_:function(z){this.windowSize_=z;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.C("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.C("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(z){var l=this;z&&z.type!=="dataloaded"&&z.type!=="dataupdated"||_.g5(this).getPlayerPromise().then(function(I){var b=I.getPlayerState();b!==5&&b!==0&&(I=1/I.getVideoAspectRatio(),l.videoHeightToWidthRatio_!==I&&(l.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(z){var l=this,I=_.C("kevlar_watch_while_v2")||_.C("web_watch_pip"),b=function(){if(l.watchMetadata){var v,M;(M=(v=l.watchMetadata).resize)==null||M.call(v)}_.g5(l).getPlayerPromise().then(function(x){if(_.C("kevlar_set_internal_player_size")){if(!I||!l.isMiniplayerActive()){var g=l.calculateCurrentPlayerSize_();x.setInternalSize(g.width,g.height)}}else x.setSize(NaN,NaN);_.C("kevlar_watch_while")&&l.updateWatchWhileScrollThreshold_()})};
z?b():_.fI(_.ow,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(z){this.set("data.survey",z.detail)},
onYtShowSurveyCommand_:function(z){this.set("data.survey",_.k(z,_.GuQ).survey)},
onDownloadedVideoDeleted:function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1){if(!l.active||(I=l.playerData)==null||!I.offlineState||l.videoId!==z)return v.return();(b=l.player)==null||b.stopVideo();_.wb().navigatingAwayFromWatchDeletedVideo=!0;_.tx(_.N91,l.hostElement);return v.yield(_.wb().navigationFinishPromise,2)}_.wb().navigatingAwayFromWatchDeletedVideo=!1;_.qe(v)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var z;this.theater?z=_.rx(.5625*this.windowSize_.width,480,this.windowSize_.height-185):z=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==z&&(this.watchWhileScrollThreshold_=z,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var z=_.Hy(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&z){var l=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!z.active&&l&&I>=this.watchWhileScrollThreshold_?(z.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):z.active&&(!l||I<this.watchWhileScrollThreshold_&&!_.pM())&&(z.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(z,l){if(z!==!0||l!==void 0){z=!_.C("live_chat_over_engagement_panels");l=_.Hy(this.hostElement).querySelector("#chat-container");var I=_.Hy(this.hostElement).querySelector("#plj-sidebar"),b=_.Hy(this.hostElement).querySelector("#panels"),v=_.Hy(this.hostElement).querySelector("#plj-panels"),M=_.Hy(this.hostElement).querySelector("#plj-playlist"),x=_.Hy(this.hostElement).querySelector("#alerts"),g=_.Hy(this.hostElement).querySelector("#playlist"),G=_.Hy(this.hostElement).querySelector("#related"),
u=_.Hy(this.hostElement).querySelector("#donation-shelf"),Z=_.Hy(this.hostElement).querySelector("#comments");this.isTwoColumns_?(x=_.Hy(this.hostElement).querySelector("#secondary-inner"),x.appendChild(I),I.appendChild(M),M.appendChild(g),I.appendChild(v),z&&x.appendChild(b),_.C("web_watch_theater_chat")||x.appendChild(l),z||x.appendChild(b),x.appendChild(u),x.appendChild(G)):(z&&_.A5(b,x),_.A5(g,x),_.C("web_watch_theater_chat")||_.A5(l,x),z||_.A5(b,x),_.A5(u,x),Z&&(v&&_.A5(v,Z),_.A5(G,Z)));_.C("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.C("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.C("web_watch_theater_chat")){var z=_.Hy(this.hostElement).querySelector("#chat-container"),l=this.theater&&!this.fullscreen||_.C("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&l?_.C("web_watch_theater_chat_beside_player")?(l=_.Hy(this.hostElement).querySelector("#panels-full-bleed-container"),(z==null?void 0:z.parentElement)!==l&&l.append(z),this.panelsBesidePlayer=!0):_.C("web_watch_theater_fixed_chat")&&
(l=_.Hy(this.hostElement).querySelector("#columns"),(z==null?void 0:z.parentElement)!==l&&l.append(z),this.fixedPanels=!0):(_.C("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.C("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),l=_.Hy(this.hostElement).querySelector("#playlist"),z&&l?_.Wc(z,l):_.PW(new _.qB("Missing element when updating chat location",{"chatContainer defined":!!z,"playlist defined":!!l})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(z,l){return _.C("sw_metadata_vis_toggle_ks")?!0:!!z||!!l},
computeForceDarkPanelTheme:function(z){return _.C("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&z:!1},
safeUpdateStyles:function(z){try{_.R8(this.hostElement,z)}catch(l){_.PW(l)}},
videoHeightToWidthRatioChanged_:function(z,l){l&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.C("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(z){this.videoHeightToWidthRatio_=1/z},
computeIsVerticalVideo_:function(z){return z>=1},
computeIsFourThreeToSixteenNineVideo_:function(z){return z<=.7501&&z>=.5624},
computeIsExtraWideVideo_:function(z){return z<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.g5(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.g5(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ku8(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(z){var l=_.rD(z)||0;_.sr(z,l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var z=_.rD("yt-fullerscreen-edu-button-click-count")||0,l=_.rD("yt-fullerscreen-edu-button-shown-count")||0,I=_.OI("external_fullscreen_button_shown_threshold"),b=z>=_.OI("external_fullscreen_button_click_threshold")||l>=I;_.g5(this).getPlayerPromise().then(function(v){v.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(z,l){return l},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.pG().resolve(_.NG).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var z=this;this.panelMaxHeightUpdateJob_&&_.ow.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ow.addLowPriorityJob(function(){z.panelMaxHeightUpdateJob_=0;var l;!z.isTwoColumns_||z.theater||z.fullscreen?l=460:l=z.calculateNormalPlayerSize_().height;var I=l+"px";_.C("live_chat_taller_height")&&!z.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.C("live_chat_medium_height")&&
!z.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.C("live_chat_scaled_height")&&!z.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");z.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":l+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":l+"px","--ytd-watch-flexy-comments-panel-max-height":l+"px","--ytd-comments-engagement-panel-content-height":l+"px"})})},
onYtShowEngagementPanelScrimAction_:function(z){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",z)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ZE(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(z){var l=_.Hy(this.hostElement).querySelector("#engagement-panel-scrim");z?l.addEventListener("tap",_.KJ(this,this.onEngagementPanelScrimClick_)):l.removeEventListener("tap",_.KJ(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(z){if(this.hostElement.contains(z)&&!this.scrollToAnimation_.isAnimating()){var l=z.offsetTop-24;z=z.offsetTop+z.offsetHeight+24;var I=this.getPageScrollingElement(),b=this.getScrollTop(),v=b+I.clientHeight-56;if(l<b+56)l-=56;else if(z>v)l=z-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtSignalActionScrollToComments:function(){var z=this.hostElement.querySelector("#comments");if(z&&!this.scrollToAnimation_.isAnimating()){z=z.offsetTop-56-24;if(_.C("kevlar_comment_teaser_scroll_to_midpoint")&&(z-=_.il().height/3,z<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtEngagementPanelVisibleChanged:function(z,l,I){this.active&&this.trackEngagementPanelVisibility&&!_.O2D.includes(I)&&(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(I),l!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(z){return z?"":"watch-active-metadata"},
computeNewMetadataClass:function(z){return z?"watch-active-metadata":""},
computeFullBleedPlayer:function(z,l){return z||l},
computeDefaultLayout:function(z){return!z},
computeDefaultTwoColumnLayout:function(z,l){return!z&&l},
computeWatchWhilePanelsActive:function(z,l){return z||l},
computeNoBorderOnChat:function(z){return _.C("web_watch_theater_chat_no_border")&&z},
computeLiveChatPresentAndExpanded:function(z,l){return z&&!l},
computePanelExpanded:function(z,l,I){return z||l||I},
onChangeMarkersVisibility:function(z){_.g5(this).getPlayerPromise().then(function(l){var I;(I=l.changeMarkerVisibility)==null||I.call(l,_.k(z,_.w$).isVisible||!1,_.k(z,_.w$).entityKeys||[],_.k(z,_.w$).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(z){this.liveChatCollapsed=z.detail;_.vF().dispatch(_.xAT(z.detail))},
provideRenderingData:function(z,l){switch(z){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=l;break;case "PRIMARY_INFO":_.C("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=l);this.videoPrimaryInfoRendererValue=l==null?void 0:l.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.C("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=l);this.videoSecondaryInfoRendererValue=l==null?void 0:l.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
l;break;case "CLARIFICATION":this.clarifyBoxValue=l;break;case "LIVE_CHAT":this.conversationBar=l;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=l;break;case "PLAYLIST":this.externalPlaylistData_=l!=null?l:{};break;case "MERCH_SHELF":this.merchShelfValue=l==null?void 0:l.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=l;break;case "OFFER_MODULE":this.offerModule=l;break;case "LIMITED_STATE":this.limitedStateValue=l;break;case "DONATION_SHELF":this.donation=l;break;
case "ALERTS":this.alertsValue=l;break;case "COMMENTS":this.comments=l;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=l;break;case "ENGAGEMENT_PANELS":this.engagementPanels=l;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=l;break;case "RICH_GRID_RENDERER":this.richGridRendererData=l;break;case "EXPANDABLE_METADATA":this.expandableMetadata=l;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=l}},
toggleCinematicsActive:function(z){this.cinematicsActive=z},
isMiniplayerActive:function(){return _.pG().resolve(_.Af).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(z){return AK0.map(function(l){return z.find(function(I){var b;return(I==null?void 0:(b=I.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===l})}).filter(function(l){return l!==void 0})},
getNonLearningJourneyEngagementPanels:function(z){return z.filter(function(l){var I;return!AK0.includes((l==null?void 0:(I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})}}];var WgR;var Jh=function(){var z=_.q.apply(this,arguments)||this;z.flexy=!0;z.learningJourney=!0;z.roundedInfoPanel=!0;z.viewTransitionEnabled=_.C("enable_player_resize_transition");z.smallerChatMinHeight=_.C("live_chat_smaller_min_height");z.cinematicTheaterMode=_.C("web_cinematic_theater_mode");z.transparentTheaterMode=_.C("web_transparent_theater_mode");z.cinematicFullscreen=_.C("web_cinematic_fullscreen");z.useLargerMaxPlayerValue=_.C("kevlar_flexy_use_larger_player_value");z.cinematicFullscreenV2=_.C("web_cinematic_fullscreen_v2");
z.isDarkTheme=document.documentElement.hasAttribute("dark");z.theaterLargerPlayer=_.C("web_watch_theater_larger_player");z.defaultCollapsePlaylist=_.C("web_watch_default_collapse_playlist");z.enableCanvasLayout=_.C("web_enable_canvas_on_learning_journey");return z};
_.m(Jh,_.q);_.p=Jh.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.p.ready=function(){var z=this,l=function(){z.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(z){_.C("web_watch_update_narrow_width_killswitch")||_.vF().dispatch(_.XQ8(!z.detail.value));this.ytdWatchBehavior.isTwoColumns_=z.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(z){this.ytdWatchBehavior.flexySmallWindow_=z.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(z){this.ytdWatchBehavior.flexyLargeWindow_=z.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(z){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=z.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(z){this.ytdWatchBehavior.watchNextCanShowMore=z.detail.value};
_.p.updateShownItemsFromBinding=function(z){z.detail.path?this.set(z.detail.path,z.detail.value):this.ytdWatchBehavior.watchNextShownItems=z.detail.value};
_.p.getElement=function(z){switch(z){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23170_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23170_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vP.Object.defineProperties(Jh.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 z;if((z=this.data)==null||!z.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(z=_.k(this.data.pageVisualEffects[l],_.Ii))return l=void 0,(l=z.config)==null?void 0:l.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.learningJourneyEngagementPanels)==null?void 0:z.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var z,l=(z=this.learningJourneyEngagementPanels)==null?void 0:z.find(function(y){var f;return(y==null?void 0:(f=y.engagementPanelSectionListRenderer)==null?void 0:f.panelIdentifier)==="learning-journey-engagement-panel"});
if(l){var I,b,v,M,x,g,G,u,Z;if(z=(u=((G=(x=((M=l==null?void 0:(I=l.engagementPanelSectionListRenderer)==null?void 0:(b=I.content)==null?void 0:(v=b.sectionListRenderer)==null?void 0:v.contents)!=null?M:[])[0])==null?void 0:(g=x.itemSectionRenderer)==null?void 0:g.contents)!=null?G:[])[0])==null?void 0:(Z=u.accordionViewModel)==null?void 0:Z.onTitleTap){var H=_.Wh(z);if(H)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.KE.instance.resolveCommand(H)}}}}}}});
_.vP.Object.defineProperties(Jh,{template:{configurable:!0,enumerable:!0,get:function(){if(WgR===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);WgR=z}z=WgR;return z}}});
Jh.prototype.updateMiniplayerIsActiveValue=Jh.prototype.updateMiniplayerIsActiveValue;Jh.prototype.updateScrollTopValue=Jh.prototype.updateScrollTopValue;Jh.prototype.updateFullscreenValue=Jh.prototype.updateFullscreenValue;Jh.prototype.updateTheaterValue=Jh.prototype.updateTheaterValue;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Jh.prototype,"ytComponentBehavior",void 0);
_.e([_.t(wWR.YtdLearningJourneyWatchBehavior),_.w("design:type",Object)],Jh.prototype,"ytdWatchBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Jh.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Jh.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Jh.prototype,"playerData",void 0);_.e([_.X(),_.w("design:type",Object)],Jh.prototype,"browseData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"flexy",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"learningJourney",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"roundedInfoPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"viewTransitionEnabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"smallerChatMinHeight",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"cinematicTheaterMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"transparentTheaterMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"cinematicFullscreen",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"useLargerMaxPlayerValue",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"cinematicFullscreenV2",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"isDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Jh.prototype,"theaterLargerPlayer",void 0);_.e([_.X(),_.w("design:type",Object)],Jh.prototype,"defaultCollapsePlaylist",void 0);_.e([_.X(),_.w("design:type",Object)],Jh.prototype,"enableCanvasLayout",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("playerData","browseData","enableCanvasLayout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Jh.prototype,"showBrowseResponse",null);_.e([_.X({reflectToAttribute:!0}),_.B("playerData","enableCanvasLayout"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Jh.prototype,"showWatchResponse",null);_.e([_.X({selector:_.wo}),_.w("design:type",Object)],Jh.prototype,"theaterValue",void 0);
_.e([_.X({selector:_.AN}),_.w("design:type",Object)],Jh.prototype,"fullscreenValue",void 0);_.e([_.X({selector:_.rY}),_.w("design:type",Object)],Jh.prototype,"scrollTopValue",void 0);_.e([_.X({selector:_.rg}),_.w("design:type",Object)],Jh.prototype,"miniplayerIsActiveValue",void 0);_.e([_.qX("#ytd-plj-player"),_.w("design:type",HTMLElement)],Jh.prototype,"ytdPlayer",void 0);_.e([_.qX("#playlist"),_.w("design:type",HTMLElement)],Jh.prototype,"JSC$23170_ytdPlaylistPanelRenderer",void 0);
_.e([_.r6("ytd-comments"),_.w("design:type",HTMLElement)],Jh.prototype,"ytdComments",void 0);_.e([_.qX("#primary"),_.w("design:type",HTMLElement)],Jh.prototype,"primary",void 0);_.e([_.qX("#secondary"),_.w("design:type",HTMLElement)],Jh.prototype,"secondary",void 0);_.e([_.qX("#player-container"),_.w("design:type",HTMLElement)],Jh.prototype,"playerContainer",void 0);_.e([_.qX("#cinematics"),_.w("design:type",HTMLElement)],Jh.prototype,"JSC$23170_cinematics",void 0);
_.e([_.By("theaterValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jh.prototype,"updateTheaterValue",null);_.e([_.By("fullscreenValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jh.prototype,"updateFullscreenValue",null);_.e([_.By("scrollTopValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jh.prototype,"updateScrollTopValue",null);
_.e([_.By("miniplayerIsActiveValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Jh.prototype,"updateMiniplayerIsActiveValue",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jh.prototype,"cinematicLightTheme",null);_.e([_.X({reflectToAttribute:!0}),_.B("learningJourneyEngagementPanels"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jh.prototype,"hasLearningJourneyPanels",null);
_.e([_.B("learningJourneyEngagementPanels"),_.w("design:type",Object),_.w("design:paramtypes",[])],Jh.prototype,"backButtonData",null);_.e([_.S({is:"ytd-watch-learning-journey"})],Jh);_.P2.registerService(_.Ne5,Jh);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("Tm0L3c");
var TER;var cKZ;var SN8=function(){return _.q.apply(this,arguments)||this};
_.m(SN8,_.q);_.e([_.S({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],SN8);
_.r(SN8,"ytd-ghost-comments-renderer",function(){if(cKZ===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);cKZ=z}z=cKZ;return z},{mode:1});var dAr;var o7r=function(){return _.q.apply(this,arguments)||this};
_.m(o7r,_.q);_.e([_.S({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],o7r);
_.r(o7r,"ytd-ghost-watch-metadata-renderer",function(){if(dAr===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);dAr=z}z=dAr;return z},{mode:1});var jt=function(){var z=_.q.apply(this,arguments)||this;z.ghostGridRenderer={rows:6};z.roundedInfoPanel=!0;z.hideOfferModules=!0;z.smallerChatMinHeight=_.C("live_chat_smaller_min_height");z.cinematicTheaterMode=_.C("web_cinematic_theater_mode");z.transparentTheaterMode=_.C("web_transparent_theater_mode");z.darkerPanels=_.C("web_watch_darker_panels");z.cinematicFullscreen=_.C("web_cinematic_fullscreen");z.cinematicFullscreenV2=_.C("web_cinematic_fullscreen_v2");z.isDarkTheme=document.documentElement.hasAttribute("dark");
return z};
_.m(jt,_.q);_.p=jt.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.p.ready=function(){var z=this,l=function(){z.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(z){this.ytdWatchBehavior.isTwoColumns_=z.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(z){this.ytdWatchBehavior.flexySmallWindow_=z.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(z){this.ytdWatchBehavior.flexyLargeWindow_=z.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(z){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=z.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(z){this.ytdWatchBehavior.watchNextCanShowMore=z.detail.value};
_.p.updateShownItemsFromBinding=function(z){_.C("swatcheroo_direct_use_rich_grid")||(z.detail.path?this.set(z.detail.path,z.detail.value):this.ytdWatchBehavior.watchNextShownItems=z.detail.value)};
_.p.getElement=function(z){switch(z){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23158_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23158_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vP.Object.defineProperties(jt.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(z=_.k(this.data.pageVisualEffects[l],_.Ii))return l=void 0,(l=z.config)==null?void 0:l.enableInLightTheme;return!1}}});
jt.prototype.updateMiniplayerIsActiveValue=jt.prototype.updateMiniplayerIsActiveValue;jt.prototype.updateScrollTopValue=jt.prototype.updateScrollTopValue;jt.prototype.updateFullscreenValue=jt.prototype.updateFullscreenValue;jt.prototype.updateTheaterValue=jt.prototype.updateTheaterValue;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],jt.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.QyA.YtdWatchBehavior),_.w("design:type",Object)],jt.prototype,"ytdWatchBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],jt.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jt.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],jt.prototype,"ghostGridRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],jt.prototype,"playerData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"roundedInfoPanel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"hideOfferModules",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"smallerChatMinHeight",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"cinematicTheaterMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"transparentTheaterMode",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"darkerPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"cinematicFullscreen",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"cinematicFullscreenV2",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],jt.prototype,"isDarkTheme",void 0);_.e([_.X({selector:_.wo}),_.w("design:type",Object)],jt.prototype,"theaterValue",void 0);
_.e([_.X({selector:_.AN}),_.w("design:type",Object)],jt.prototype,"fullscreenValue",void 0);_.e([_.X({selector:_.rY}),_.w("design:type",Object)],jt.prototype,"scrollTopValue",void 0);_.e([_.X({selector:_.rg}),_.w("design:type",Object)],jt.prototype,"miniplayerIsActiveValue",void 0);_.e([_.qX("#ytd-player"),_.w("design:type",HTMLElement)],jt.prototype,"ytdPlayer",void 0);_.e([_.qX("#playlist"),_.w("design:type",HTMLElement)],jt.prototype,"JSC$23158_ytdPlaylistPanelRenderer",void 0);
_.e([_.qX("#ytd-comments"),_.w("design:type",HTMLElement)],jt.prototype,"ytdComments",void 0);_.e([_.qX("#primary"),_.w("design:type",HTMLElement)],jt.prototype,"primary",void 0);_.e([_.qX("#secondary"),_.w("design:type",HTMLElement)],jt.prototype,"secondary",void 0);_.e([_.qX("#player-container"),_.w("design:type",HTMLElement)],jt.prototype,"playerContainer",void 0);_.e([_.qX("#cinematics"),_.w("design:type",HTMLElement)],jt.prototype,"JSC$23158_cinematics",void 0);
_.e([_.By("theaterValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jt.prototype,"updateTheaterValue",null);_.e([_.By("fullscreenValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jt.prototype,"updateFullscreenValue",null);_.e([_.By("scrollTopValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jt.prototype,"updateScrollTopValue",null);
_.e([_.By("miniplayerIsActiveValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jt.prototype,"updateMiniplayerIsActiveValue",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],jt.prototype,"cinematicLightTheme",null);
_.r(jt,"ytd-watch-grid",function(){if(TER===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);TER=z}z=TER;return z},{mode:2});_.P2.registerService(_.GjS,jt);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("CF909");
var YNQ;var V_=function(){var z=_.q.apply(this,arguments)||this;z.flexy=!0;z.roundedInfoPanel=!0;z.viewTransitionEnabled=_.C("enable_player_resize_transition");z.smallerChatMinHeight=_.C("live_chat_smaller_min_height");z.cinematicTheaterMode=_.C("web_cinematic_theater_mode");z.transparentTheaterMode=_.C("web_transparent_theater_mode");z.cinematicFullscreen=_.C("web_cinematic_fullscreen");z.useLargerMaxPlayerValue=_.C("kevlar_flexy_use_larger_player_value");z.isDarkTheme=document.documentElement.hasAttribute("dark");
z.defaultCollapsePlaylist=_.C("web_watch_default_collapse_playlist");z.retroModeReduxValue=!1;z.persistentPanelVisibleValue=!1;return z};
_.m(V_,_.q);_.p=V_.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateRetroModeReduxValue=function(){_.C("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.p.updatePersistentPanelVisibleValue=function(){_.C("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.p.ready=function(){var z=this,l=function(){z.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(z){_.C("web_watch_update_narrow_width_killswitch")||_.vF().dispatch(_.XQ8(!z.detail.value));this.ytdWatchBehavior.isTwoColumns_=z.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(z){this.ytdWatchBehavior.flexySmallWindow_=z.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(z){this.ytdWatchBehavior.flexyLargeWindow_=z.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(z){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=z.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(z){this.ytdWatchBehavior.watchNextCanShowMore=z.detail.value};
_.p.updateShownItemsFromBinding=function(z){z.detail.path?this.set(z.detail.path,z.detail.value):this.ytdWatchBehavior.watchNextShownItems=z.detail.value};
_.p.getElement=function(z){switch(z){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23153_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23153_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}};
_.vP.Object.defineProperties(V_.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(z=_.k(this.data.pageVisualEffects[l],_.Ii))return l=void 0,(l=z.config)==null?void 0:l.enableInLightTheme;return!1}}});
_.vP.Object.defineProperties(V_,{template:{configurable:!0,enumerable:!0,get:function(){if(YNQ===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);YNQ=z}z=YNQ;return z}}});
V_.prototype.updatePersistentPanelVisibleValue=V_.prototype.updatePersistentPanelVisibleValue;V_.prototype.updateRetroModeReduxValue=V_.prototype.updateRetroModeReduxValue;V_.prototype.updateScrollTopValue=V_.prototype.updateScrollTopValue;V_.prototype.updateFullscreenValue=V_.prototype.updateFullscreenValue;V_.prototype.updateTheaterValue=V_.prototype.updateTheaterValue;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],V_.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.QyA.YtdWatchBehavior),_.w("design:type",Object)],V_.prototype,"ytdWatchBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],V_.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],V_.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],V_.prototype,"playerData",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"flexy",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"roundedInfoPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"viewTransitionEnabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"smallerChatMinHeight",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"cinematicTheaterMode",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"transparentTheaterMode",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"cinematicFullscreen",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"useLargerMaxPlayerValue",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],V_.prototype,"isDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],V_.prototype,"defaultCollapsePlaylist",void 0);
_.e([_.X({selector:_.wo}),_.w("design:type",Object)],V_.prototype,"theaterValue",void 0);_.e([_.X({selector:_.AN}),_.w("design:type",Object)],V_.prototype,"fullscreenValue",void 0);_.e([_.X({selector:_.rY}),_.w("design:type",Object)],V_.prototype,"scrollTopValue",void 0);_.e([_.X({selector:_.rg}),_.w("design:type",Object)],V_.prototype,"miniplayerIsActive",void 0);_.e([_.X({selector:function(z){return z.watch.isWatchRetroMode}}),
_.w("design:type",Object)],V_.prototype,"retroModeReduxValue",void 0);_.e([_.X({selector:_.JR.persistentPanelVisibleSelector}),_.w("design:type",Object)],V_.prototype,"persistentPanelVisibleValue",void 0);_.e([_.r6("ytd-player"),_.w("design:type",HTMLElement)],V_.prototype,"ytdPlayer",void 0);_.e([_.qX("#playlist"),_.w("design:type",HTMLElement)],V_.prototype,"JSC$23153_ytdPlaylistPanelRenderer",void 0);_.e([_.r6("ytd-comments"),_.w("design:type",HTMLElement)],V_.prototype,"ytdComments",void 0);
_.e([_.qX("#primary"),_.w("design:type",HTMLElement)],V_.prototype,"primary",void 0);_.e([_.qX("#secondary"),_.w("design:type",HTMLElement)],V_.prototype,"secondary",void 0);_.e([_.qX("#player-container"),_.w("design:type",HTMLElement)],V_.prototype,"playerContainer",void 0);_.e([_.qX("#below"),_.w("design:type",HTMLElement)],V_.prototype,"below",void 0);_.e([_.qX("#cinematics"),_.w("design:type",HTMLElement)],V_.prototype,"JSC$23153_cinematics",void 0);
_.e([_.qX("#persistent-panel-container"),_.w("design:type",HTMLElement)],V_.prototype,"persistentPanelContainer",void 0);_.e([_.By("theaterValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V_.prototype,"updateTheaterValue",null);_.e([_.By("fullscreenValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V_.prototype,"updateFullscreenValue",null);
_.e([_.By("scrollTopValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V_.prototype,"updateScrollTopValue",null);_.e([_.By("retroModeReduxValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V_.prototype,"updateRetroModeReduxValue",null);_.e([_.By("persistentPanelVisibleValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],V_.prototype,"updatePersistentPanelVisibleValue",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],V_.prototype,"cinematicLightTheme",null);_.e([_.S({is:"ytd-watch-flexy"})],V_);_.P2.registerService(_.giu,V_);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("nmfa2d");
var rW7;var $L=function(){var z=_.q.apply(this,arguments)||this;z.hidden=!1;z.errorScreen=null;z.playlistData={};return z};
_.m($L,_.q);_.p=$L.prototype;_.p.getPlayer=function(){return this.ytdPlayer};
_.p.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:_.Rz(["aa","eocs"])}}};
_.p.onActiveChanged=function(){_.vF().dispatch(_.k6v(this.ytPageBehavior.active))};
_.p.playerDataChanged=function(){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData)};
_.p.dataChanged=function(){var z;(z=this.watchController)==null||z.setWatchNextResponse(this.data)};
_.p.sizeChanged=function(){var z,l;(l=(z=this.metadata).resize)==null||l.call(z)};
_.p.attached=function(){this.watchController=new _.sJ(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.p.detached=function(){_.p0(this.watchController);this.watchController=void 0};
_.p.getPlayerContainer=function(){return this.playerContainer};
_.p.getElement=function(z){switch(z){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.p.provideRenderingData=function(z,l){switch(z){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=l;break;case "ERROR_SCREEN":this.errorScreen=l!=null?l:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=l;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=l;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=l;break;case "RICH_METADATA":this.richMetadataRowContainer=l;break;case "CLARIFICATION":this.clarificationData=l;break;case "PLAYLIST":this.playlistData=
l!=null?l:{};break;case "MERCH_SHELF":this.merchShelf=l;break;case "TICKET_SHELF":this.ticketShelf=l;break;case "LIMITED_STATE":this.limitedState=l;break;case "DONATION_SHELF":this.donationShelf=l;break;case "ALERTS":this.alerts=l}};
_.vP.Object.defineProperties($L.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return!this.hidden&&!!((z=this.data)==null?0:(l=z.contents)==null?0:(I=l.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
$L.prototype.sizeChanged=$L.prototype.sizeChanged;$L.prototype.dataChanged=$L.prototype.dataChanged;$L.prototype.playerDataChanged=$L.prototype.playerDataChanged;$L.prototype.onActiveChanged=$L.prototype.onActiveChanged;_.e([_.t(_.pF.YtPageBehavior),_.w("design:type",Object)],$L.prototype,"ytPageBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],$L.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],$L.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"playerData",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$L.prototype,"hidden",void 0);_.e([_.qX("#ytd-player"),_.w("design:type",HTMLElement)],$L.prototype,"ytdPlayer",void 0);_.e([_.qX("#player-container"),_.w("design:type",HTMLElement)],$L.prototype,"playerContainer",void 0);_.e([_.qX("#metadata"),_.w("design:type",Object)],$L.prototype,"metadata",void 0);_.e([_.qX("#playlist"),_.w("design:type",HTMLElement)],$L.prototype,"playlistPanel",void 0);
_.e([_.X({selector:_.ilT,reflectToAttribute:!0}),_.w("design:type",Object)],$L.prototype,"fixie",void 0);_.e([_.X({selector:_.q8u,reflectToAttribute:!0}),_.w("design:type",Object)],$L.prototype,"singleColumn",void 0);_.e([_.X({selector:function(z){return _.wo(z)&&!_.AN(z)},
reflectToAttribute:!0}),_.w("design:type",Object)],$L.prototype,"theater",void 0);_.e([_.X({selector:_.AN,reflectToAttribute:!0}),_.w("design:type",Object)],$L.prototype,"fullscreen",void 0);_.e([_.X({selector:_.yWZ}),_.w("design:type",Object)],$L.prototype,"windowSize",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"singleColumnContents",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"errorScreen",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"playlistData",void 0);
_.e([_.X(),_.w("design:type",Object)],$L.prototype,"videoPrimaryInfoRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"videoSecondaryInfoRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"richMetadataRowContainer",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"clarificationData",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"commentsEntryPointHeaderRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"ticketShelf",void 0);
_.e([_.X(),_.w("design:type",Object)],$L.prototype,"merchShelf",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"donationShelf",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"limitedState",void 0);_.e([_.X(),_.w("design:type",Object)],$L.prototype,"alerts",void 0);_.e([_.B("playlistData"),_.w("design:type",Object),_.w("design:paramtypes",[])],$L.prototype,"hasPlaylistData",null);
_.e([_.B("data","hidden"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],$L.prototype,"hasChat",null);_.e([_.By("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$L.prototype,"onActiveChanged",null);_.e([_.By("playerData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$L.prototype,"playerDataChanged",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$L.prototype,"dataChanged",null);_.e([_.By("windowSize","singleColumn"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$L.prototype,"sizeChanged",null);
_.r($L,"ytd-watch-fixie",function(){if(rW7===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);rW7=z}z=rW7;return z},{mode:1});_.P2.registerService(_.OF1,$L);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("xwEKAe");
var Hn0=function(z){return _.zu(z)?z.getAttribute("jsname")==="coFSxe":!1},ypT=function(z,l){l.id||(l.id="ow"+_.UY(l));
z.setAttribute("jsowner",l.id);z.__owner=l;var I=_.A7(l,Hn0);I&&(_.TE0.has(I)||_.TE0.set(I,[]),_.TE0.get(I).push(z));(I=_.YN_.get(l))||_.YN_.set(l,I=[]);I.includes(z)||I.push(z);l.setAttribute("__IS_OWNER",!0)},f4R=function(){var z=_.Xd5(1);
z=_.vb(z,_.Ti5);if(!(_.Bif(z)||z[_.pu$]&&!z.__hasBeenSet))return z.value},Cuv=function(z){var l=_.Bu();
if(l.getFlag(202))l=l.getFlag(201);else{var I;l=(z==null?void 0:(I=z.config)==null?void 0:I.settingOnByDefault)!==void 0?z.config.settingOnByDefault:!_.C("web_shorts_cinematics_disabled_by_default")}return l},k_T=function(z){var l=_.Bu();
_.XG(0,201,z);_.XG(0,202,!0);l.save()},RIZ=function(z){return(z=_.opx(z))?_.hju(z):0},mzT=function(z){return z.shorts.isSmallScreenSqueezeback},KAZ=function(z){return z.shorts.isPlaybackStarted},X_7=function(z){var l=_.Xd5(2),I=new Set;
_.cb(function(){return void I.forEach(function(b){return void b()})});
return function(b){var v=_.bE(l);try{var M=tMr(Bwu(z),b);I.add(M);return function(){M();I.delete(M)}}finally{_.bE(v)}}},qjr=function(z){var l=z.children;
var I=z.root;_.c8(function(){var b=X_7(I)(l);_.cb(b)});
return document.createTextNode("")},tMr=function(z,l){var I=inv(z);
(z=f4R())&&ypT(I,z);l=_.D(_.Fn7(l,!0));z=l.next().value;var b=l.next().value;l=_.D(z);for(z=l.next();!z.done;z=l.next())I.appendChild(z.value);return function(){b();I.remove()}},Bwu=function(z){if(typeof z==="string")return z=document.querySelector(z),_.LGF(z),z;
if(_.gr(z)&&z.nodeType===Node.ELEMENT_NODE)return z;if(!z.__value&&!z.__optional){var l=_.xup.USE_ELEMENT_NOT_ASSIGNED(z.__expectedTagName);z.__hasErrored=!0;throw l;}return z.value},inv=function(z){var l=document.createElementNS(z.namespaceURI,z.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return z.appendChild(l)},FAv=function(z,l,I,b){z=l-z;
I=b-I;return Math.sqrt(z*z+I*I)},Q_a=function(z,l){z&&_.pG().resolve(_.DQ).resolveCommand(z,{forceClickLogging:!0,
form:{element:l}})},YjQ=function(z,l,I,b){z=l-z;
I=b-I;return Math.sqrt(z*z+I*I)},TwZ=function(z,l){z&&_.pG().resolve(_.DQ).resolveCommand(z,{forceClickLogging:!0,
form:{element:l}})},cpD=function(){return _.pG().resolve(_.nq).dismissedIndices},SjA=function(z,l){var I,b,v,M,x,g,G,u,Z;
return _.O(function(H){if(H.nextAddress==1){I=_.pG().resolve(_.j_W);M=(b=I)==null?void 0:(v=b.reelWatchEndpointMap)==null?void 0:v.reelWatchSequence;g=(x=z.innertubeTransportService)!=null?x:_.pG().resolve(_.AY);if(!M)return H.jumpTo(2);G=M();return(u=G.JSC$13114_getRequest(l,{}))?H.yield(_.Gv(g,u.innerTubeRequest,u.input,l.clickTrackingParams,u.config),4):H.jumpTo(2)}return H.nextAddress!=2?(Z=H.yieldResult,H.return(Z)):H.return(void 0)})},dzT=function(z){return _.GZ({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:z}})},o0T=function(z){return _.GZ({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:z}})},Puu=function(z){return _.GZ({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:z}})};var tD=function(z,l){if(z instanceof tD)this.array_=z.array_;else{var I;if(I=_.wf(z))a:{for(var b=I=0;b<z.length;b++){if(!_.wf(z[b])||I>0&&z[b].length!=I){I=!1;break a}for(var v=0;v<z[b].length;v++)if(typeof z[b][v]!=="number"){I=!1;break a}I==0&&(I=z[b].length)}I=I!=0}if(I)this.array_=_.ex(z);else if(z instanceof _.X5)this.array_=hI8(z.height,z.width);else if(typeof z==="number"&&typeof l==="number"&&z>0&&l>0)this.array_=hI8(z,l);else throw Error("Do");}this.size_=new _.X5(this.array_[0].length,
this.array_.length)},s_R=function(z,l,I){for(var b=0;b<z.getSize().height;b++)for(var v=0;v<z.getSize().width;v++)l.call(I,z.array_[b][v],b,v,z)},rpD=function(z,l){var I=new tD(z.getSize());
s_R(z,function(b,v,M){I.array_[v][M]=l.call(void 0,b,v,M,z)});
return I},hI8=function(z,l){for(var I=[],b=0;b<z;b++){I[b]=[];
for(var v=0;v<l;v++)I[b][v]=0}return I};
tD.prototype.add=function(z){if(!_.eQR(this.size_,z.getSize()))throw Error("Eo");return rpD(this,function(l,I,b){return l+z.array_[I][b]})};
tD.prototype.equals=function(z,l){if(this.size_.width!=z.size_.width||this.size_.height!=z.size_.height)return!1;l=l||0;for(var I=0;I<this.size_.height;I++)for(var b=0;b<this.size_.width;b++)if(!_.$p8(this.array_[I][b],z.array_[I][b],l))return!1;return!0};
tD.prototype.getSize=function(){return this.size_};
var Bq=function(z,l,I){return l>=0&&l<z.size_.height&&I>=0&&I<z.size_.width?z.array_[l][I]:null};
tD.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var $zR=function(z,l,I,b){if(!(l>=0&&l<z.size_.height&&I>=0&&I<z.size_.width))throw Error("Fo`"+l+"`"+I+"`"+z.size_.height+"`"+z.size_.width);z.array_[l][I]=b};
tD.prototype.multiply=function(z){if(z instanceof tD){if(this.size_.width!=z.getSize().height)throw Error("Go");return eID(this,z)}if(typeof z==="number")return w_Z(this,z);throw Error("Ho");};
var eID=function(z,l){var I=new tD(z.size_.height,l.getSize().width);s_R(I,function(b,v,M){for(var x=b=0;x<this.size_.width;x++)b+=Bq(this,v,x)*Bq(l,x,M);$zR(I,v,M,b)},z);
return I},w_Z=function(z,l){return rpD(z,function(I){return I*l})};var ApR=new _.Z0("inlineSurveyRenderer");var WAT=new _.Z0("interstitialViewModel");var n08=new _.Z0("reelNavigateCommand");var LAQ=new _.Z0("reelNonVideoContentDismissalCommand");var Uz8=new _.Z0("showReelsCommentsOverlayCommand");var a4R=new _.Z0("shortsSuggestedActionViewModel");var VM8=new _.Z0("videoInteractionPopUpRenderer");var j_A;var JpA;var z1D;var X_=function(){var z=_.q.apply(this,arguments)||this;z.ctaVisualElement=null;z.currentCsn=null;return z};
_.m(X_,_.q);_.p=X_.prototype;_.p.onDataChanged=function(){this.maybeLogShows()};
_.p.computeButtonShape=function(){var z=this;if(this.data)return{buttonText:_.ID(this.data.text),state:"active",onTap:function(){z.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.p.maybeCreateCtaVe=function(){var z;if((z=this.data)!=null&&z.badgeInteractionLogging){var l;if(z=(l=this.data.badgeInteractionLogging)==null?void 0:l.trackingParams)this.ctaVisualElement=_.ch(z)}};
_.p.maybeLogClicks=function(){this.currentCsn=_.sU(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.JH(this.currentCsn,this.ctaVisualElement)};
_.p.maybeLogShows=function(){this.currentCsn=_.sU(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Vi(this.currentCsn,[this.ctaVisualElement])};
_.p.onTap=function(){var z;if((z=this.data)!=null&&z.onClickCommand){var l;this.ytComponentBehavior.resolveCommand((l=this.data)==null?void 0:l.onClickCommand);this.maybeLogClicks()}};
X_.prototype.onDataChanged=X_.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],X_.prototype,"ytComponentBehavior",void 0);_.e([_.X({}),_.w("design:type",Object)],X_.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X_.prototype,"onDataChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],X_);
_.r(X_,"ytd-shopping-overlay-badge-renderer",function(){if(z1D!==void 0)return z1D;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return z1D=z},{mode:1});_.uO(_.UZC,"reel-sound-metadata-view-model",{props:{data:_.GH,overlayDensity:_.GH}});_.uO(_.U4K,"player-disclosure-view-model",{props:{data:_.mB}});_.uO(_.tR_,"pivot-button-view-model",{props:{data:_.GH,className:_.GH}});_.uO(_.Btz,"reel-action-bar-view-model",{props:{data:_.mB,buttonShapeOverrideables:_.mB}});_.uO(_.P(function(z){function l(){var Gk,uH,Xt,R1,H7=(uH=_.k((Gk=V())==null?void 0:Gk.command,_.rL))==null?void 0:(Xt=uH.item)==null?void 0:(R1=Xt.notificationTextRenderer)==null?void 0:R1.successResponseText;if(H7)_.Gb(b.value,"yt-open-popup-action",[_.pr(H7),b.value]);else if(A())Q_a(A(),R.value);else{var P7;Q_a((P7=V())==null?void 0:P7.command,R.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=z.data;var b=_.VK("yt-player-overlay-video-interactions");z=_.D(_.Z_("0px",void 0,"O3ow6c"));var v=z.next().value,M=z.next().value;z=_.D(_.Z_("0px",void 0,"V0TSYd"));var x=z.next().value,g=z.next().value;z=_.D(_.Z_(0,void 0,"ipRdDf"));var G=z.next().value,u=z.next().value;z=_.D(_.Z_(0,void 0,"ztYEKb"));var Z=z.next().value,H=z.next().value,y=function(){var Gk;if(((Gk=_.mE())==null?void 0:Gk.getPlayerState())!==-1){b.value.style.display="inherit";var uH;(uH=_.mE())==null||uH.removeEventListener("onStateChange",
y)}f()},f=function(){var Gk=document.querySelector("video");
if(Gk){u(Gk.getBoundingClientRect().width);H(Gk.getBoundingClientRect().height);var uH;M((Gk==null?void 0:(uH=Gk.style)==null?void 0:uH.left)||"0px");var Xt;g((Gk==null?void 0:(Xt=Gk.style)==null?void 0:Xt.top)||"0px")}};
_.Te(function(){var Gk,uH,Xt;if(((Gk=_.mE())==null?void 0:Gk.getPlayerState())===-1&&Math.round(((Xt=(uH=_.mE())==null?void 0:uH.getVideoAspectRatio())!=null?Xt:0)*100)!==Math.round(G()/Z()*100)){b.value.style.display="none";var R1,H7;H(G()/((H7=(R1=_.mE())==null?void 0:R1.getVideoAspectRatio())!=null?H7:1))}},"ikzYW");
_.c8(function(){var Gk;(Gk=_.mE())==null||Gk.addEventListener("onStateChange",y);window.addEventListener("resize",f);f();var uH,Xt,R1;if((R1=(uH=I())==null?void 0:(Xt=uH.regions)==null?void 0:Xt[0])==null||!R1.transformationMatrix)throw Error("Lo");var H7;if((H7=I())==null?0:H7.trackingParams){var P7;_.iY().graftServerVe((P7=I().trackingParams)!=null?P7:"")}_.cb(function(){var o1;(o1=_.mE())==null||o1.removeEventListener("onStateChange",y);window.removeEventListener("resize",f)})});
var R=_.VK("svg"),F=_.D(_.Z_(!1,void 0,"Thzfnf"));z=F.next().value;var Y=F.next().value,c=_.D(_.Z_(!1,void 0,"nsniPd"));F=c.next().value;var d=c.next().value,V=function(){var Gk;return _.k((Gk=I())==null?void 0:Gk.popUp,VM8)},A=function(){var Gk;
return(Gk=I())==null?void 0:Gk.command},W=function(){return _.k(A(),_.S9)!==void 0};
c=_.KK(function(){l();return!1});
var L={},lH={};return _.N("yt-player-overlay-video-interactions",{el:b},_.N("svg",{"on:mouseover":_.KK(function(){W()&&Y(!0);d(!0);return!1}),
"on:mouseout":_.KK(function(){Y(!1);d(!1);return!1}),
"on:keydown":_.KK(function(Gk){Gk.key==="Enter"&&l();return!1}),
"on:focus":_.KK(function(){W()&&Y(!0);return!1}),
"on:blur":_.KK(function(){W()&&Y(!1);return!1}),
el:R,tabindex:0,"aria-label":function(){var Gk;return(Gk=I())==null?void 0:Gk.a11yString},
id:"player-overlay-video-interaction-svg",class:_.m9("ytPlayerOverlayVideoInteractionsInteractionsSvg",(L.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=z,L),(lH.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=F,lH)),role:"button",style:function(){var Gk,uH,Xt,R1=(Xt=(Gk=I())==null?void 0:(uH=Gk.regions)==null?void 0:uH[0].transformationMatrix)!=null?Xt:[];Gk=G();uH=Z();Xt=[];for(var H7=0,P7=-1;H7<R1.length;H7++)H7%3===0&&(P7++,Xt[P7]=[]),Xt[P7].push(R1[H7]);R1=new tD(Xt);Xt=new tD([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);Xt=R1.multiply(Xt);R1=new tD([[0,0],[0,0],[0,0],[0,0]]);for(H7=0;H7<Xt.getSize().width;H7++){P7=Bq(Xt,0,H7);var o1=Bq(Xt,1,H7);if(P7===null||o1===null)throw Error("Ko`"+(H7+1).toString());$zR(R1,H7,0,P7*Gk);$zR(R1,H7,1,o1*uH)}Gk=Bq(R1,0,0);H7=Bq(R1,1,0);uH=Bq(R1,0,1);P7=Bq(R1,1,1);if(Gk===null||H7===null||uH===null||P7===null)throw Error("Io");Xt=FAv(Gk,H7,uH,P7);o1=Bq(R1,3,0);R1=Bq(R1,3,1);if(o1===null||R1===null)throw Error("Jo");R1=FAv(Gk,o1,uH,R1);P7=(Number((P7*-1).toFixed(2))-
Number((uH*-1).toFixed(2)))/(Number(H7.toFixed(2))-Number(Gk.toFixed(2)));o1=Math.atan(P7)*180/Math.PI;H7=P7===Number.POSITIVE_INFINITY?-90:P7===Number.NEGATIVE_INFINITY?90:Object.is(P7,-0)?180:P7===0?0:P7>0?o1*-1:Gk<H7?o1*-1:Math.abs(o1)+180;return"left:calc("+Gk+"px + "+v()+"); top:calc("+(uH+"px + "+x()+"); width:")+(Xt+"px; height:")+(R1+"px; transform:rotate(")+(H7+"deg);")},
"on:click":c}))},"xk"),"yt-player-overlay-video-interactions",{props:{data:_.mB}});_.uO(_.zeK,"yt-reel-metapanel-view-model",{props:{data:_.mB,overlayDensity:_.mB}});var lFR=_.P(function(z){var l=z.children;var I=z.region;z=_.D(_.Z_(void 0,void 0,"MsSyte"));var b=z.next().value,v=z.next().value;z=_.D(_.Z_("0px",void 0,"U9Yihd"));var M=z.next().value,x=z.next().value;z=_.D(_.Z_("0px",void 0,"UO1H6d"));var g=z.next().value,G=z.next().value;z=_.D(_.Z_(0,void 0,"sMVTKb"));var u=z.next().value,Z=z.next().value;z=_.D(_.Z_(0,void 0,"kZZV8b"));var H=z.next().value,y=z.next().value,f=function(){var V=b();if(V){var A;if(((A=_.mE())==null?void 0:A.getPlayerState())!==-1){V.style.display=
"inherit";var W;(W=_.mE())==null||W.removeEventListener("onStateChange",f)}F()}},R=function(){var V=document.querySelectorAll("video");
return Array.from(V).find(function(A){var W;return A==null?void 0:(W=A.style)==null?void 0:W.width})},F=function(){var V=R();
if(V){Z(V.getBoundingClientRect().width);y(V.getBoundingClientRect().height);var A;x((V==null?void 0:(A=V.style)==null?void 0:A.left)||"0px");var W;G((V==null?void 0:(W=V.style)==null?void 0:W.top)||"0px")}};
_.Te(function(){var V=b();if(V){var A,W,L;if(((A=_.mE())==null?void 0:A.getPlayerState())===-1&&Math.round(((L=(W=_.mE())==null?void 0:W.getVideoAspectRatio())!=null?L:0)*100)!==Math.round(u()/H()*100)){V.style.display="none";var lH,Gk;y(u()/((Gk=(lH=_.mE())==null?void 0:lH.getVideoAspectRatio())!=null?Gk:1))}}},"jJLfwe");
var Y=function(){F()},c;
_.c8(function(){F();var V;if(!(I==null?0:(V=I())==null?0:V.transformationMatrix))throw Error("Lo");var A;(A=_.mE())==null||A.addEventListener("onStateChange",f);if(window.ResizeObserver){if(V=R())c=new ResizeObserver(Y),c.observe(V)}else window.addEventListener("resize",F);_.cb(function(){var W;(W=_.mE())==null||W.removeEventListener("onStateChange",f);c?c.disconnect():window.removeEventListener("resize",F)})});
var d=function(){var V,A,W=(A=I==null?void 0:(V=I())==null?void 0:V.transformationMatrix)!=null?A:[];V=u();A=H();for(var L=[],lH=0,Gk=-1;lH<W.length;lH++)lH%3===0&&(Gk++,L[Gk]=[]),L[Gk].push(W[lH]);W=new tD(L);L=new tD([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);L=W.multiply(L);W=new tD([[0,0],[0,0],[0,0],[0,0]]);for(lH=0;lH<L.getSize().width;lH++){Gk=Bq(L,0,lH);var uH=Bq(L,1,lH);if(Gk===null||uH===null)throw Error("Ko`"+(lH+1).toString());$zR(W,lH,0,Gk*V);$zR(W,lH,1,uH*A)}V=Bq(W,0,0);lH=Bq(W,1,0);A=Bq(W,0,
1);Gk=Bq(W,1,1);if(V===null||lH===null||A===null||Gk===null)throw Error("Io");L=YjQ(V,lH,A,Gk);uH=Bq(W,3,0);W=Bq(W,3,1);if(uH===null||W===null)throw Error("Jo");W=YjQ(V,uH,A,W);Gk=(Number((Gk*-1).toFixed(2))-Number((A*-1).toFixed(2)))/(Number(lH.toFixed(2))-Number(V.toFixed(2)));uH=Math.atan(Gk)*180/Math.PI;lH=Gk===Number.POSITIVE_INFINITY?-90:Gk===Number.NEGATIVE_INFINITY?90:Object.is(Gk,-0)?180:Gk===0?0:Gk>0?uH*-1:V<lH?uH*-1:Math.abs(uH)+180;return"left:calc("+V+"px + "+M()+"); top:calc("+(A+"px + "+
g()+"); width:")+(L+"px; height:")+(W+"px; transform:rotate(")+(lH+"deg);")};
return _.N(qjr,{root:"#sticker-layer"},function(){return _.N("yt-overlay-sticker",{el:_.xl(v),style:d,class:"ytOverlayStickerHost"},l)})},"yk");var IFv=_.P(function(z){function l(){var f,R,F,Y,c=(R=_.k((f=G())==null?void 0:f.command,_.rL))==null?void 0:(F=R.item)==null?void 0:(Y=F.notificationTextRenderer)==null?void 0:Y.successResponseText;if(c)_.Gb(b.value,"yt-open-popup-action",[_.pr(c),b.value]);else if(u())TwZ(u(),b.value);else{var d;TwZ((d=G())==null?void 0:d.command,b.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=z.data;var b=_.VK("svg"),v=_.D(_.Z_(!1,void 0,"i4BL1"));z=v.next().value;var M=v.next().value,x=_.D(_.Z_(!1,void 0,"FzRJKd"));v=x.next().value;var g=x.next().value,G=function(){var f;return _.k((f=I())==null?void 0:f.popUp,VM8)},u=function(){var f;
return(f=I())==null?void 0:f.command},Z=function(){return _.k(u(),_.S9)!==void 0};
x=_.KK(function(){l();return!1});
var H={},y={};return _.N("svg",{"on:mouseover":_.KK(function(){Z()&&M(!0);g(!0);return!1}),
"on:mouseout":_.KK(function(){M(!1);g(!1);return!1}),
"on:keydown":_.KK(function(f){f.key==="Enter"&&l();return!1}),
"on:focus":_.KK(function(){Z()&&M(!0);return!1}),
"on:blur":_.KK(function(){Z()&&M(!1);return!1}),
el:b,tabindex:0,"aria-label":function(){var f;return(f=I())==null?void 0:f.a11yString},
id:"player-overlay-video-interaction-svg",class:_.m9("ytPlayerOverlayInteractionInteractionsSvg",(H.ytPlayerOverlayInteractionInteractionsSvgHover=z,H),(y.ytPlayerOverlayInteractionInteractionsSvgHideOutline=v,y)),role:"button","on:click":x})},"Ak");_.uO(_.P(function(z){var l=z.data;_.c8(function(){var I;if((I=l())==null?0:I.trackingParams){var b;_.iY().graftServerVe((b=l().trackingParams)!=null?b:"")}});
return _.N("yt-player-overlay-interaction",null,_.N(lFR,{region:function(){var I,b;return(I=l())==null?void 0:(b=I.regions)==null?void 0:b[0]}},_.N(IFv,Object.assign({},z))))},"zk"),"yt-player-overlay-interaction",{props:{data:_.mB}});var q7=function(){var z=_.q.apply(this,arguments)||this;z.showScrubber=!1;z.isWatchWhileMode=!1;z.enableAnchoredPanel=_.C("desktop_shorts_v2_anchored_panel");z.enableNewStickers=_.C("use_shorts_sticker_overlay_web");z.anchoredPanelActive=!1;z.enableLivingroomLayout=_.C("reels_enable_livingroom_layout");z.enablePlayerMetadataContainer=_.C("reels_web_enable_metadata_container");z.enableSqueezebackPanels=_.C("web_shorts_enable_squeezeback_panels");z.useAspectRatio=_.C("web_use_aspect_ratio");z.isSqueezebackActive=
!1;z.smallScreenSqueezeback=!1;z.isPlayerStarted=!1;z.overlayDensity=0;z.extractOverlay=!1;z.extractActionBar=!1;z.isOverlay=!1;z.isImmersive=!1;z.isImmersiveHorizontal=!1;z.isFullscreen=!1;z.onWindowResized=function(){var l;z.set("isImmersive",((l=window.getComputedStyle(z.hostElement))==null?void 0:l.getPropertyValue("--immersive-mode-on"))==="1");z.set("isImmersiveHorizontal",z.isImmersive&&z.enableLivingroomLayout&&!z.isWatchWhileMode)};
return z};
_.m(q7,_.q);_.p=q7.prototype;_.p.updateIsOverlay=function(z){this.isOverlay=z.detail.value};
_.p.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.p.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.p.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.p.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.p.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.p.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.p.ready=function(){(_.C("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"))&&(!_.C("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.gk("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.gk("reels_action_justified_content")||"flex-start")};
_.p.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.p.setFakeLoadingButtons=function(){_.C("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.mY("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.mY("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.mY("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.mY("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.mY("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()};
_.p.setEmptyOverlayMetadata=function(){_.C("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}))};
_.vP.Object.defineProperties(q7.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.infoPanel)}}});
q7.prototype.onIsActiveChanged=q7.prototype.onIsActiveChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],q7.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],q7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],q7.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],q7.prototype,"isActive",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],q7.prototype,"hidden",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],q7.prototype,"useShortsIcon",void 0);_.e([_.X({value:"left"}),_.w("design:type",String)],q7.prototype,"buttonTooltipPosition",void 0);
_.e([_.X({value:_.C("reels_enable_livingroom_layout")?"top":"left"}),_.w("design:type",String)],q7.prototype,"likeButtonTooltipPosition",void 0);_.e([_.X({value:"none"}),_.w("design:type",String)],q7.prototype,"textTransform",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"showScrubber",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"isWatchWhileMode",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.infoPanel"),_.w("design:type",Object),_.w("design:paramtypes",[])],q7.prototype,"hasInfoPanel",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"enableAnchoredPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"enableNewStickers",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"anchoredPanelActive",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"enableLivingroomLayout",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],q7.prototype,"enablePlayerMetadataContainer",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"enableSqueezebackPanels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"useAspectRatio",void 0);
_.e([_.X({selector:_.Zaf,reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"isSqueezebackActive",void 0);_.e([_.X({selector:mzT,reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"smallScreenSqueezeback",void 0);_.e([_.X({selector:KAZ}),_.w("design:type",Object)],q7.prototype,"isPlayerStarted",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"overlayDensity",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"extractOverlay",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"extractActionBar",void 0);_.e([_.X(),_.w("design:type",Object)],q7.prototype,"isOverlay",void 0);_.e([_.X(),_.w("design:type",Object)],q7.prototype,"isImmersive",void 0);_.e([_.X(),_.w("design:type",Object)],q7.prototype,"isImmersiveHorizontal",void 0);
_.e([_.X({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.w("design:type",Boolean)],q7.prototype,"isShortsImmersive",void 0);_.e([_.X({computed:"computeButtonOverride(extractActionBar)"}),_.w("design:type",Object)],q7.prototype,"buttonOverride",void 0);_.e([_.X({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.w("design:type",Object)],q7.prototype,"actionBarButtonOverride",void 0);
_.e([_.X({selector:_.u7,reflectToAttribute:!0}),_.w("design:type",Object)],q7.prototype,"isFullscreen",void 0);_.e([_.By("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],q7.prototype,"onIsActiveChanged",null);_.e([_.S({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],q7);
_.r(q7,"ytd-reel-player-overlay-renderer",function(){if(JpA!==void 0)return JpA;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!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 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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return JpA=z},{mode:1});var blQ;var iN=function(){var z=_.q.apply(this,arguments)||this;z.videoDuration=0;z.playedTime=0;z.isActive=!1;z.JSC$22350_playerEvents=new Map;return z};
_.m(iN,_.q);_.p=iN.prototype;_.p.created=function(){this.JSC$22350_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22350_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.p.attached=function(){this.getPlayerAndInitializeListeners()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22350_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.KJ(this,this.onPageChanged))};
_.p.getPlayerAndInitializeListeners=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return l=_.GS(),l?I.yield(l.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.KJ(z,z.onPageChanged)),I.jumpTo(0));z.player=I.yieldResult;z.initializePlayerListeners();_.qe(I)})};
_.p.onPageChanged=function(z){var l=this;return _.O(function(I){if(I.nextAddress==1)return z.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.Nv().getPlayerPromise(),2);l.player=I.yieldResult;l.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.KJ(l,l.onPageChanged));_.qe(I)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22350_playerEvents)};
_.p.onVideoDataChange=function(z){var l=this;return _.O(function(I){if(!l.player||z.type!=="newdata")return I.return();l.videoDuration=_.C("web_shorts_use_progress_state_for_gapless")?l.player.getProgressState(z.playertype).seekableEnd:l.player.getDuration(z.playertype);l.playedTime=0;_.qe(I)})};
_.p.onVideoProgress=function(z){var l=this,I,b;return _.O(function(v){if(!l.player)return v.return();I=l.player.getPresentingPlayerType();b=l.player.getPlayerState();l.videoDuration=_.C("web_shorts_use_progress_state_for_gapless")?l.player.getProgressState(I).seekableEnd:l.player.getDuration(I);l.playedTime=b===0?l.videoDuration:z;_.qe(v)})};
_.p.getPercentPlayed=function(z,l){return z?_.rx(l/z,0,1):0};
_.vP.Object.defineProperties(iN.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 z="";return z=this.videoDuration&&this.playedTime?z+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):z+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],iN.prototype,"componentBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],iN.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iN.prototype,"player",void 0);_.e([_.X(),_.w("design:type",Object)],iN.prototype,"videoDuration",void 0);_.e([_.X(),_.w("design:type",Object)],iN.prototype,"playedTime",void 0);_.e([_.X(),_.w("design:type",Object)],iN.prototype,"isActive",void 0);
_.e([_.B("videoDuration","playedTime"),_.w("design:type",Number),_.w("design:paramtypes",[])],iN.prototype,"percentPlayed",null);_.e([_.B("videoDuration","playedTime"),_.w("design:type",Object),_.w("design:paramtypes",[])],iN.prototype,"percentPlayedStyle",null);_.e([_.B("videoDuration","isActive"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],iN.prototype,"hideProgressBar",null);
_.r(iN,"ytd-progress-bar-line",function(){if(blQ===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);blQ=z}z=blQ;return z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var vSD;_.uO(_.KF4,"ytm-closed-captioning-button",{props:{captionIconType:_.mB,onClick:_.GH,ariaLabel:_.mB,ariaPressed:_.mB,isOverlay:_.GH,isModern:_.GH}});_.uO(_.Lsq,"desktop-shorts-volume-controls",{props:{orientation:_.mB}});var F_=function(){var z=_.q.apply(this,arguments)||this;z.playerState=null;z.isMuted=!1;z.shortsModernControlsEnabled=_.C("web_shorts_modern_controls");z.volumeControlsOrientationState=_.C("web_shorts_modern_controls")?"vertical_down":"horizontal_right";z.isOverlay=!0;z.captionIconType=-1;z.ariaLabel="";z.overlayDensity=0;z.extractActionBar=!0;z.JSC$22353_playerEvents=new Map;z.onClosedCaptionsButtonClick=function(){z.player&&_.tj(z.player)&&(z.player.toggleSubtitles(),z.updateCaptionIconType())};
return z};
_.m(F_,_.q);_.p=F_.prototype;_.p.created=function(){this.JSC$22353_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22353_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22353_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.p.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.kU(28662);this.playPauseButtonClientVE=_.kU(36842);this.fullscreenButtonToggleOffClientVE=_.kU(222256);this.fullscreenButtonToggleOnClientVE=_.kU(222257);var z=_.sU(),l=_.h8();z&&l&&(_.C("combine_ve_grafts")?(_.oc(_.iY(),this.muteButtonClientVE,l),_.oc(_.iY(),this.playPauseButtonClientVE,l)):_.UK(z,l,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22353_playerEvents),this.player=null)};
_.p.updateCaptionIconType=function(){var z=-1,l=void 0,I=_.mY("CLOSED_CAPTIONS_DISABLED");this.player&&_.tj(this.player)&&(_.G3C(this.player)?(l=!0,I=_.mY("CLOSED_CAPTIONS_ON"),z=1):(l=!1,I=_.mY("CLOSED_CAPTIONS_OFF"),z=0));this.captionIconType=z;this.ariaPressedState=l;this.ariaLabel=I};
_.p.getPlayerAndInitializeListeners=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return l=_.GS(),l?I.yield(l.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.KJ(z,z.onPageChanged)),I.jumpTo(0));z.player=I.yieldResult;z.initializePlayerListeners();_.qe(I)})};
_.p.onPageChanged=function(z){var l=this;return _.O(function(I){if(I.nextAddress==1)return z.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.Nv().getPlayerPromise(),2);l.player=I.yieldResult;l.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.KJ(l,l.onPageChanged));_.qe(I)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22353_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.p.onPlayerStateChange=function(z){this.playerState=z};
_.p.onPlayerVolumeChange=function(z){this.isMuted=z.muted};
_.p.onPlayPauseButtonClick=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(_.Nv().getPlayerPromise(),2);l=b.yieldResult;(I=_.sU())&&z.playPauseButtonClientVE&&_.JH(I,z.playPauseButtonClientVE);l.getPlayerState()!==1?l.playVideo():l.pauseVideo();_.qe(b)})};
_.p.computePlayPauseIcon=function(z){return z===2||z===-1||z===5?_.C("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.C("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.C("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.p.computeFullscreenLabel=function(z){return z?_.mY("FULLSCREEN_EXIT_LABEL"):_.mY("FULLSCREEN_ENTER_LABEL")};
_.p.computePlayPauseLabel=function(z){return z===1||z===3?_.mY("PLAYER_LABEL_PAUSE"):_.mY("PLAYER_LABEL_PLAY")};
_.p.onMuteButtonClick=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(_.Nv().getPlayerPromise(),2);l=b.yieldResult;(I=_.sU())&&z.muteButtonClientVE&&_.JH(I,z.muteButtonClientVE);l.isMuted()?l.unMute(!0):l.mute(!0);_.qe(b)})};
_.p.computeMuteIcon=function(z){return z?"miniplayer:volume-off":"miniplayer:volume-up"};
_.p.computeMuteLabel=function(z){return z?_.mY("PLAYER_LABEL_UNMUTE"):_.mY("PLAYER_LABEL_MUTE")};
_.p.onFullscreenButtonClick=function(){var z=_.sU();z&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.JH(z,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.JH(z,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.VnK()};
_.vP.Object.defineProperties(F_.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var z=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(){z.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.C("web_shorts_modern_controls")?"player_full_exit_alt":_.C("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.C("web_shorts_modern_controls")?"player_full_enter_alt":_.C("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],F_.prototype,"componentBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],F_.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],F_.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"player",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"playerState",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"isMuted",void 0);
_.e([_.X({computed:"computePlayPauseIcon(playerState)"}),_.w("design:type",String)],F_.prototype,"playPauseIcon",void 0);_.e([_.X({computed:"computeMuteIcon(isMuted)"}),_.w("design:type",String)],F_.prototype,"muteIcon",void 0);_.e([_.X({selector:_.u7}),_.w("design:type",Boolean)],F_.prototype,"isFullscreen",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],F_.prototype,"shortsModernControlsEnabled",void 0);
_.e([_.X(),_.w("design:type",Object)],F_.prototype,"volumeControlsOrientationState",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"isOverlay",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"captionIconType",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"ariaLabel",void 0);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"ariaPressedState",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],F_.prototype,"overlayDensity",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],F_.prototype,"extractActionBar",void 0);_.e([_.B("playerState"),_.w("design:type",Object),_.w("design:paramtypes",[])],F_.prototype,"playPauseButtonData",null);_.e([_.B("isFullscreen"),_.w("design:type",Object),_.w("design:paramtypes",[])],F_.prototype,"fullscreenButtonData",null);_.e([_.X(),_.w("design:type",Object)],F_.prototype,"onClosedCaptionsButtonClick",void 0);
_.e([_.B("isFullscreen"),_.w("design:type",String),_.w("design:paramtypes",[])],F_.prototype,"fullscreenIcon",null);
_.r(F_,"ytd-shorts-player-controls",function(){if(vSD===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);vSD=z}z=vSD;return z},{mode:1});var MWv;_.uO(_.GkK,"yt-interstitial-view-model",{props:{data:_.mB}});var pX0=_.P(function(z){var l=z.data;return _.N("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.N("h1",{class:"reelWatchBreakViewModelHostTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N("h2",{class:"reelWatchBreakViewModelHostBody"},_.N(_.Rf,{text:function(){return l().body},
isOverlay:!0})),_.N(_.TS,{data:function(){return l().buttons}},{buttonViewModel:function(I,b){return _.N("div",{class:function(){return b()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.N(_.h4,{data:I.data}))}}))},"Bk");
pX0.idomCompat=!0;_.uO(pX0,"reel-watch-break-view-model",{props:{data:_.mB}});var QT=function(){return _.q.apply(this,arguments)||this};
_.m(QT,_.q);QT.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}}};
_.vP.Object.defineProperties(QT.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var z;return!!_.k((z=this.data)==null?void 0:z.renderer,ApR)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var z;return!!_.k((z=this.data)==null?void 0:z.renderer,WAT)}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],QT.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],QT.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],QT.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.renderer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],QT.prototype,"isSurvey",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.renderer"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],QT.prototype,"isInterstitialViewModel",null);_.e([_.S({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],QT);
_.r(QT,"ytd-reel-non-video-content-renderer",function(){if(MWv!==void 0)return MWv;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return MWv=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var DKR;_.uO(_.nNS,"desktop-shorts-player-controls",{});var Yc=function(){var z=_.q.apply(this,arguments)||this;z.isPlayerPaused=!1;z.isPlayerStarted=!1;z.showPlayerControls=!1;z.showScrubber=!1;z.autoHideJobId=0;z.modern=_.C("web_button_rework");z.overlayType=_.gk("web_shorts_expanded_overlay_type");z.panelData=void 0;z.isWatchWhileMode=!1;z.hasError=!1;z.panelShowDelayMs=1;z.scrubberComponent={};z.isFullscreen=!1;z.shouldHideOverlay=!1;z.enableAnchoredPanel=_.C("desktop_shorts_v2_anchored_panel");z.enablePersistentAnchoredPanel=_.C("desktop_shorts_v2_persistent_anchored_panel");
z.hideWatchWhilePanel=_.C("web_shorts_hide_watch_while_panel");z.useAspectRatio=_.C("web_use_aspect_ratio");z.isPersistentPanelActive=!1;z.anchoredPanelActive=!1;z.isShortsPipActive=!1;z.smallScreenSqueezeback=!1;z.enableFlexibleOverlay=_.C("web_enable_flexible_overlay");z.overlayDensity=0;z.extractOverlay=!1;z.extractActionBar=!1;z.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
z.onWindowResized=function(){_.z4(z,"calculateOverlayDensity",function(){z.calculateOverlayDensity()},100)};
return z};
_.m(Yc,_.q);_.p=Yc.prototype;_.p.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.p.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.p.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var z=_.pG().resolve(_.lL);this.isWatchWhileMode&&(_.C("web_enable_shorts_new_carousel")?_.ow.addJob(function(){z.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):z.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.p.handleShowReelsCommentsOverlayCommand=function(z){z=_.k(z,Uz8);this.isActive&&(z==null?0:z.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))};
_.p.updateEngagementPanelVisibility=function(z,l){z&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:l?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:z}})};
_.p.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.p.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.pG().resolve(_.nq).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.p.handleWatchWhilePanelScrimClick=function(){var z=_.pG().resolve(_.lL);this.activeWatchWhilePanel&&(z.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.p.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.p.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:_.C("web_enable_shorts_new_carousel")?0:void 0}}};
_.p.handlePlayerClick=function(z){var l=this,I,b;if((b=(I=window).matchMedia)!=null&&b.call(I,"(any-pointer: coarse)").matches||!z)this.showPlayerControls=!0,_.ow.cancelJob(this.autoHideJobId),this.autoHideJobId=_.qA(_.ow,function(){l.showPlayerControls=!1},4E3)};
_.p.isFirstReel=function(){return this.index===0};
_.p.handleMouseenter=function(){_.ow.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.p.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.p.handleScrubberEnter=function(){this.showScrubber=!0};
_.p.handleScrubberLeave=function(){this.showScrubber=!1};
_.p.maybeLogNonDefaultAspectRatio=function(){var z;(z=this.data)!=null&&z.thumbnail&&this.isActive&&.5625!==RIZ(this.data.thumbnail)&&_.aOS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.p.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var z=document.querySelector("#shorts-container");if(z){var l=!1,I,b=this.playerContainer.offsetWidth;z=z.offsetWidth/2-b/2;z>=368?(z=1,l=I=!0):z>=72?(z=0,I=!0):(z=2,I=!1);b>=600?z=1:window.innerWidth<=599&&(z=2,I=l=!1);this.isPersistentPanelActive&&(z=0,l=!1);this.extractActionBar=I;_.C("web_enable_flexible_overlay")&&(this.overlayDensity=z,this.extractOverlay=l);var v;(v=this.onOverlayDensityChanged)==
null||v.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.p.onOverlayDensityChange=function(){var z;(z=this.onOverlayDensityChanged)==null||z.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(z=_.Hy(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))z.set("overlayDensity",this.overlayDensity),z.set("extractOverlay",this.extractOverlay),z.set("extractActionBar",this.extractActionBar);if(z=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))z.overlayDensity=this.overlayDensity,z.extractOverlay=
this.extractOverlay,z.extractActionBar=this.extractActionBar};
_.p.isVideoContent=function(z){_.pG().resolve(_.nq);return!!_.k(z,_.FN)};
_.p.isNonVideoContent=function(z){_.pG().resolve(_.nq);return!!_.k(z,_.pt)};
_.p.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.vP.Object.defineProperties(Yc.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var z,l;return _.C("web_enable_format_first")||((z=this.data)==null?void 0:z.adsOverlay)&&_.C("web_enable_format_first_ads_only")||((l=this.data)==null?void 0:l.reelPlayerOverlayRenderer)&&_.C("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.C("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var z;return!this.isActive||!this.isPlayerStarted||(z=this.data)!=null&&z.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var z;if(((z=this.data)==null?0:z.command)&&this.isVideoContent(this.data.command)){var l,I;if(((l=this.data)==null?0:l.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var b,v;if(((b=this.data)==null?0:b.reelPlayerOverlayRenderer)&&Object.keys((v=this.data)==null?void 0:v.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Yc.prototype.onOverlayDensityChange=Yc.prototype.onOverlayDensityChange;Yc.prototype.calculateOverlayDensity=Yc.prototype.calculateOverlayDensity;Yc.prototype.maybeLogNonDefaultAspectRatio=Yc.prototype.maybeLogNonDefaultAspectRatio;Yc.prototype.onEngagementPanelsChanged=Yc.prototype.onEngagementPanelsChanged;Yc.prototype.onScrubberDataChange=Yc.prototype.onScrubberDataChange;Yc.prototype.updateShouldHideOverlay=Yc.prototype.updateShouldHideOverlay;
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Yc.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Yc.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],Yc.prototype,"index",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Yc.prototype,"isActive",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Yc.prototype,"isHiddenInDom",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"isPlayerPaused",void 0);_.e([_.X({selector:KAZ}),_.w("design:type",Object)],Yc.prototype,"isPlayerStarted",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"showPlayerControls",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"showScrubber",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"autoHideJobId",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"overlayType",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Yc.prototype,"ytdReduxBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Yc.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"watchWhileEngagementPanels",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"panelData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"isWatchWhileMode",void 0);_.e([_.X(),_.w("design:type",String)],Yc.prototype,"activeWatchWhilePanel",void 0);
_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"hasError",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"panelShowDelayMs",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"scrubberComponent",void 0);_.e([_.X({selector:_.u7,reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"isFullscreen",void 0);_.e([_.X(),_.w("design:type",Object)],Yc.prototype,"shouldHideOverlay",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"enableAnchoredPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"enablePersistentAnchoredPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"hideWatchWhilePanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"useAspectRatio",void 0);
_.e([_.X({selector:_.Zaf,reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"isPersistentPanelActive",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"anchoredPanelActive",void 0);_.e([_.X({selector:_.Z6,reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"isShortsPipActive",void 0);_.e([_.X({selector:mzT,reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"smallScreenSqueezeback",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yc.prototype,"enableFormatFirst",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"enableFlexibleOverlay",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"overlayDensity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"extractOverlay",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yc.prototype,"extractActionBar",void 0);_.e([_.X(),_.w("design:type",Function)],Yc.prototype,"onOverlayDensityChanged",void 0);_.e([_.X(),_.B("isActive","hasError","isPlayerStarted"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yc.prototype,"shouldRenderPlayerElements",null);_.e([_.X(),_.B("isActive","isWatchWhileMode"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yc.prototype,"watchWhileOrPersistentActive",null);
_.e([_.By("isActive","hasError","showingExpandedOverlay"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yc.prototype,"updateShouldHideOverlay",null);_.e([_.X({reflectToAttribute:!0}),_.B("isActive","isPlayerStarted","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yc.prototype,"shouldRenderScrubber",null);
_.e([_.By("shouldRenderScrubber"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yc.prototype,"onScrubberDataChange",null);_.e([_.B("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.w("design:type",Object),_.w("design:paramtypes",[])],Yc.prototype,"overlayComponent",null);_.e([_.By("watchWhileEngagementPanels"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yc.prototype,"onEngagementPanelsChanged",null);
_.e([_.qX("#player-container"),_.w("design:type",HTMLElement)],Yc.prototype,"playerContainer",void 0);_.e([_.qX("#cinematic-container"),_.w("design:type",HTMLElement)],Yc.prototype,"cinematicContainer",void 0);_.e([_.By("isPersistentPanelActive","data.thumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yc.prototype,"maybeLogNonDefaultAspectRatio",null);
_.e([_.By("isPersistentPanelActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yc.prototype,"calculateOverlayDensity",null);_.e([_.By("overlayDensity","extractOverlay","extractActionBar"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yc.prototype,"onOverlayDensityChange",null);_.e([_.S({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Yc);
_.r(Yc,"ytd-reel-video-renderer",function(){if(DKR!==void 0)return DKR;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" extract-action-bar="[[extractActionBar]]" 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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return DKR=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var TG=function(){var z=_.q.apply(this,arguments)||this;z.isPreviousPageShorts=!1;z.index=0;z.delayedActiveIndex=0;z.playablePreviousIndex=null;z.isPlayerPaused=!1;z.isPlayerStarted=!1;z.intersectionObserverThreshold=.6;z.fitToVisibleBounds=!1;z.pageSubtype="shorts";z.enablePreviousContinuation=_.C("shorts_in_playlists_web");z.shortsPipEnabled=_.C("web_shorts_pip");z.isDark=document.documentElement.hasAttribute("dark");z.shortsViewTransitions=_.C("web_shorts_view_transitions");z.isFullscreen=!1;z.isShortsPipActive=
!1;z.buttonOverride={iconPosition:"icon-only",size:"XL"};z.anchoredPanelActive=!1;z.isActive=!1;z.smallScreenPersistentPanel=!1;z.isPersistentPanelActive=!1;z.smallScreenSqueezeBack=!1;z.enableScrollIntoViewCenter=_.C("web_scroll_into_view_center");z.formatFirst=_.C("web_enable_format_first")||_.C("web_enable_format_first_ads_only")||_.C("web_enable_format_first_organic_only");z.enableFlexibleOverlay=_.C("web_enable_flexible_overlay");z.extractOverlay=!1;z.useAspectRatio=_.C("web_use_aspect_ratio");
z.sequenceRefactor=_.C("web_enable_shorts_sequence_refactor");z.isShortsInitialized=!1;z.hidePreviousButtonImmediately=!1;z.showPreviousButtonImmediately=!1;z.endOfNextContinuation=!1;z.currentPlayerIndex=0;z.nextReelVe=_.kU(56921);z.prevReelVe=_.kU(56922);z.loopToggleOffVe=_.kU(198013);z.loopToggleOnVe=_.kU(198014);z.ambientModeToggleVe=_.kU(227860);z.reelPlayerPausedStateRendererVe=_.kU(141313);z.storedPlaybackSpeed=null;z.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"};z.onOverlayDensityChanged=function(l,I,b,v){l=z.getActiveReelVideo(l);z.extractOverlay=!!b;l==null||l.setAttribute("overlay-density",String(I));b===void 0||l!=null&&l.toggleAttribute("extract-overlay",b);v===void 0||l!=null&&l.toggleAttribute("extract-action-bar",v)};
return z};
_.m(TG,_.q);_.p=TG.prototype;_.p.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.p.deflateInactivePreviousSlides=function(){var z=_.OI("web_shorts_deflate_inactive_slides_aggressive_distance");if(z>0&&this.shortsProcessedSequence&&this.activeIndex){z=this.activeIndex-z;for(var l=0;l<=z;l++){var I=void 0;((I=this.shortsProcessedSequence[l].reelPlayerOverlayRenderer)==null?0:I.metapanel)&&this.set("shortsProcessedSequence."+l+".reelPlayerOverlayRenderer",{});I=void 0;((I=this.shortsProcessedSequence[l].adsOverlay)==null?0:I.adSlotMetadata)&&this.set("shortsProcessedSequence."+
l+".adsOverlay",{})}}};
_.p.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.p.onResize=function(){var z=_.vF(),l=z.dispatch,I=this.calculateIsSmallWidth();l.call(z,_.GZ({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.p.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.C("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.p.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var z=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,l=z,I=0;z<250&&(l=z+this.shortsInnerContainer.clientWidth,I=24);_.R8(this.hostElement,{"--ytd-shorts-header-width":l+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.p.isFirstShorts=function(z){return z?this.index===-z.length:this.index===0};
_.p.isActiveReel=function(z,l,I){I&&(l=this.calculatePrevIndex(l,I));return z===l};
_.p.onFullscreenChange=function(){if(_.C("web_fullscreen_shorts")){var z;(z=this.getActiveReelVideo(this.activeIndex))==null||z.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.pG().resolve(_.Af).close(!0)}};
_.p.engagementPanelsChanged=function(){var z;this.watchWhileEngagementPanels=(z=this.data)==null?void 0:z.engagementPanels};
_.p.unregisterPanels=function(){var z=_.pG().resolve(_.lL);if(this.watchWhileEngagementPanels)for(var l=_.D(this.watchWhileEngagementPanels),I=l.next();!I.done;I=l.next()){var b=I.value,v=void 0,M=void 0;I=(v=b.engagementPanelSectionListRenderer)==null?void 0:(M=v.identifier)==null?void 0:M.tag;b=this.getPanelContentIdentifier(b.engagementPanelSectionListRenderer);z&&(I&&z.panelMap.delete(I),b&&_.C("web_shorts_panel_caching_bugfix")&&(v=I=void 0,(v=(I=z).unregisterPanelContent)==null||v.call(I,b)))}};
_.p.isVideoContent=function(z){return this.isVideoContentCommand(z==null?void 0:z.command)};
_.p.getActiveReelVideo=function(z){return _.Hy(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+z+'"]')};
_.p.calculatePrevIndex=function(z,l){return l?z-((l==null?void 0:l.length)||0):-1};
_.p.onKeydown=function(z){var l=_.MX(z)||[];if(!_.aV1(l))if(z.code==="ArrowUp")z.preventDefault(),this.handlePrevButtonClick();else if(z.code==="ArrowDown")z.preventDefault(),this.handleNextButtonClick();else if(z.code==="KeyM")this.toggleMuteUnmuteVideo();else if(z.code==="KeyK"||z.code==="Space")this.togglePlayPauseVideo();else if((z.code==="KeyA"||z.code==="ArrowLeft")&&_.C("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((z.code==="KeyD"||z.code===
"ArrowRight")&&_.C("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var b;(b=this.player)==null||b.seekBy(5)}};
_.p.onServiceRequestCompleted=function(z,l){z=l.data;z.continuationEndpoint&&z.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:z.entries,continuationEndpoint:z.continuationEndpoint}}):z.prevContinuationEndpoint&&z.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:z.prevEntries,prevContinuationEndpoint:z.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.p.handleEngagementPanelVisibilityChanged=function(z,l){var I=_.pG().resolve(_.lL);if(z&&I){var b=this.getPanelIdentifier(z);if(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==b){I.hidePanel(this.activePanel);var v;this.activePanel=((v=z.identifier)==null?void 0:v.tag)||z.panelIdentifier}else this.isPersistentPanelActive=!0,_.vF().dispatch(dzT(!0)),this.anchoredPanelActive=!0,this.activePanel=b;else l==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
b&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.vF().dispatch(dzT(!1)))}};
_.p.handlePanelScrimClick=function(){var z=_.pG().resolve(_.lL);this.activePanel&&(z.hidePanel(this.activePanel),_.vF().dispatch(dzT(!1)))};
_.p.getShortsLoopSetting=function(){var z,l,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return _.C("kevlar_shorts_auto_advance")?M.yield(_.JM.getInstance(),2):M.return(!0);case 2:return(z=M.yieldResult)?M.yield(z.get("sfvles"),3):M.return(!0);case 3:return I=(l=M.yieldResult)!=null?l:!1,M.yield(z.get("sfvle"),4);case 4:return v=(b=M.yieldResult)!=null?b:!0,I?M.return(v):M.return(!0)}})};
_.p.handleSignalActionToggleLoopShortsOff=function(){var z=this,l,I,b;return _.O(function(v){switch(v.nextAddress){case 1:if(!z.player)return v.return();z.player.setLoopVideo(!1);l=_.iY();_.hM(l,z.loopToggleOffVe);return v.yield(_.JM.getInstance(),2);case 2:return(I=v.yieldResult)?v.yield(I.set("sfvle",!1),3):v.return();case 3:return v.yield(I.set("sfvles",!0),4);case 4:b=_.Bu(),_.XG(0,203,!1),_.XG(0,204,!0),b.save(),_.qe(v)}})};
_.p.handleSignalActionToggleLoopShortsOn=function(){var z=this,l,I,b;return _.O(function(v){switch(v.nextAddress){case 1:if(!z.player)return v.return();z.player.setLoopVideo(!0);l=_.iY();_.hM(l,z.loopToggleOnVe);return v.yield(_.JM.getInstance(),2);case 2:return(I=v.yieldResult)?v.yield(I.set("sfvle",!0),3):v.return();case 3:return v.yield(I.set("sfvles",!0),4);case 4:b=_.Bu(),_.XG(0,203,!0),_.XG(0,204,!0),b.save(),_.qe(v)}})};
_.p.handleSignalActionToggleCinematicShortsOn=function(){k_T(!0);var z;(z=this.JSC$22377_cinematicController)==null||_.E0r(z,!0);_.hM(_.iY(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.p.handleSignalActionToggleCinematicShortsOff=function(){k_T(!1);var z;(z=this.JSC$22377_cinematicController)==null||_.E0r(z,!1);_.hM(_.iY(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.p.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.p.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.p.unhideCurrentOverlay=function(){if(this.overlayContainer){var z=this.overlayContainer.querySelector("#experiment-overlay");z&&_.ow.addLowPriorityJob(function(){z.style.display="unset"},100)}};
_.p.getCurrentShort=function(){if(this.currentEndpoint){var z=this.currentEndpoint;if(this.isNonVideoContentCommand(z)){var l=_.k(z,_.pt);return{reelNonVideoContentRenderer:_.k(l==null?void 0:l.renderer,_.uTp),command:z}}if(this.data){var I;l=(I=_.k(this.currentEndpoint,_.FN))==null?void 0:I.thumbnail;var b;I=(b=this.data.overlay)==null?void 0:b.reelPlayerOverlayRenderer;_.pG().resolve(_.nq);z=this.data;var v,M;b=(v=z.overlay)==null?void 0:(M=v.shortsAdsRenderer)==null?void 0:M.adSlots;if(b!==void 0)b.length===
0?(_.l7("Shorts ads returned no ad slots."),z=void 0):(b.length>1&&_.l7("Shorts ads has more than one ad slots."),z=_.k(b[0],_.Dg_));else{var x,g;z=_.k((x=z.overlay)==null?void 0:(g=x.shortsAdsRenderer)==null?void 0:g.overlay,_.Dg_)}x=z;z=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.k(this.currentEndpoint,_.FN),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:I,thumbnail:l,command:z,adsOverlay:x}}}};
_.p.created=function(){var z=this;this.scrollToVideoThrottle=new _.zD(function(l){var I;(I=z.getActiveReelVideo(l))==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:z.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.zD(function(l){var I;(I=z.getActiveReelVideo(l))==null||I.scrollIntoView({behavior:"auto",block:"nearest",inline:z.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.p.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.p.attached=function(){var z=this;_.pG().resolve(_.nq).registerRootElement(this);this.pageScrollElement=_.Hy(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.KJ(this,this.processResetAction));_.C("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var l=z.getActiveReelVideo(z.activeIndex);z.maybeCreateIntersectionObserver();l==null||l.scrollIntoView({behavior:"instant",
block:"nearest",inline:z.enableScrollIntoViewCenter?"center":"start"});z.shortsContainer.style.overflowY="scroll"}))};
_.p.updateReelWatchSequenceResponse=function(){var z=this,l;_.C("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((l=_.k(this.currentEndpoint,_.FN))==null?0:l.sequenceParams)&&!this.reelWatchSequenceResponse&&(l=_.pG().resolve(_.nq))&&SjA(l,this.currentEndpoint).then(function(I){I&&(z.reelWatchSequenceResponse=I,_.ow.addLowPriorityJob(function(){z.maybeCreateIntersectionObserver(!0)}))})};
_.p.calculateSqueezebackPanelSize=function(){var z=this,l=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ow.addLowPriorityJob(function(){l<360?_.vF().dispatch(o0T(!0)):(z.hostElement.style.setProperty("--anchored-panel-width",Math.min(l,480)+"px"),_.vF().dispatch(o0T(!1)))})};
_.p.detached=function(){var z=_.pG().resolve(_.nq);z.rootElement=void 0;var l;(l=z.unsubscribeFromStore)==null||l.call(z);z.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.KJ(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.p.onResizeFinished=function(z,l){var I=this,b=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.ow.addLowPriorityJob(function(){l()},100)});
b.observe(z);return b};
_.p.resetDocumentScrollTop=function(){var z,l;if((z=document)==null?0:(l=z.scrollingElement)==null?0:l.scrollTop)document.scrollingElement.scrollTop=0};
_.p.loadPage_=function(z){var l=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),z){var I;!_.C("web_enable_delay_shorts_sequence_call")&&((I=_.k(this.currentEndpoint,_.FN))==null?0:I.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=z;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){l.isPlayerStarted&&(l.handleOnPlaybackCommand(),l.afterPlayerStarted=function(){})};
this.registerPanel(z)}};
_.p.afterPlayerStarted=function(){};
_.p.handleOnPlaybackCommand=function(){if(_.C("web_shorts_comment_stickers")&&this.isPlayerStarted){var z,l=(z=_.k(this.currentEndpoint,_.FN))==null?void 0:z.onPlaybackCommand;l&&this.ytComponentBehavior.resolveCommand(l)}};
_.p.maybeCreateIntersectionObserver=function(z){var l=this;z=z===void 0?!1:z;var I=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==I||z){this.intersectionObserverThreshold=I;z={rootMargin:"0px",threshold:I};var b;(b=this.intersectionObserver)==null||b.disconnect();this.intersectionObserver=new IntersectionObserver(function(v){v=_.D(v);for(var M=v.next();!M.done;M=v.next())if(M=M.value,M.intersectionRatio>I){M=Number(M.target.id);if(isNaN(M))break;
if(M===l.index)break;_.Xok();l.loadVideo(M);_.$B("r_vtc")}},z);
this.observeShorts()}};
_.p.observeShorts=function(){var z=[].concat(_.ht(_.Hy(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));z=_.D(z);for(var l=z.next();!l.done;l=z.next()){l=l.value;var I=void 0;(I=this.intersectionObserver)==null||I.observe(l)}};
_.p.initCsi=function(){_.MP("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var z={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},l,I;if((l=this.playerData)==null?0:(I=l.cacheMetadata)==null?0:I.isCacheHit)z.isCacheHit=!0;var b;if(l=(b=_.k(this.currentEndpoint,_.FN))==null?void 0:
b.prefetchTaskId)z.prefetchInfo={taskId:l};_.om(z)};
_.p.isAd=function(){var z,l;return!!((z=_.k(this.currentEndpoint,_.FN))==null?0:(l=z.adClientParams)==null?0:l.isAd)};
_.p.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.p.getPlayerContainer=function(){var z;return(z=_.Hy(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:z.playerContainer};
_.p.onPlayerStateChange=function(z){var l=this;this.isPlayerPaused=z===2;z!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?z===1&&this.index===0&&(this.isPlayerStarted||_.vF().dispatch(Puu(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.vF().dispatch(Puu(!0)));this.player&&!this.player.getLoopVideo()&&_.ow.addLowPriorityJob(function(){l.getShortsLoopSetting().then(function(I){var b;(b=l.player)==null||b.setLoopVideo(I)})});
this.isPlayerPaused&&_.C("web_shorts_paused_state_logging")&&_.Vi(_.sU(),[this.reelPlayerPausedStateRendererVe])};
_.p.isInBackground=function(){var z=window.document.visibilityState;return!(!z||z==="visible")};
_.p.isShortPlayable=function(){if(_.C("kevlar_playable_short_killswitch"))return!0;var z;return(z=this.playerData)!=null&&z.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.p.setNormalPlaybackSpeed=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(z.getPlayer().getPlayerPromise(),2);l=b.yieldResult;I=l.getPlaybackRate();I!==1&&(z.storedPlaybackSpeed=I,l.setPlaybackRate(1));_.qe(b)})};
_.p.restorePlaybackSpeed=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1)return z.storedPlaybackSpeed===null?I.jumpTo(0):I.yield(z.getPlayer().getPlayerPromise(),3);l=I.yieldResult;l.setPlaybackRate(z.storedPlaybackSpeed);z.storedPlaybackSpeed=null;_.qe(I)})};
_.p.playerDataChanged=function(){var z=this,l,I,b,v,M,x,g,G,u;return _.O(function(Z){if(Z.nextAddress==1){l=z.getPlayer();(I=z.intersectionObserver)==null||I.disconnect();if(z.playerData){if(((b=z.playerData.videoDetails)==null?void 0:b.videoId)!==((v=l.getPlayer())==null?void 0:v.getVideoData().video_id)){M={};if(x=_.k(z.currentEndpoint,_.FN))M.watch_endpoint=x,x.endTimeSeconds&&(M.end=x.endTimeSeconds);l.loadVideoWithPlayerResponse(z.playerData,M)}}else return Z.return();return z.player?Z.jumpTo(2):
Z.yield(l.getPlayerPromise(),3)}Z.nextAddress!=2&&(z.player=Z.yieldResult,z.JSC$22377_playerStateChangeListener=z.onPlayerStateChange.bind(z),z.player.addEventListener("onStateChange",z.JSC$22377_playerStateChangeListener),_.C("kevlar_client_enable_shorts_player_bootstrap")&&_.aF(),z.scrollToVideoThrottle.fire(z.index),z.movePlayerToVideo(z.index),_.ow.addLowPriorityJob(function(){z.getShortsLoopSetting().then(function(H){var y;(y=z.player)==null||y.setLoopVideo(H)})}),_.p6I.resolve(z.player),z.player.syncVolume(),
z.getPlayer().focusOnPlayer());
_.ow.addLowPriorityJob(function(){z.observeShorts()},100);
g=z.player.getPlayerState(z.player.getPresentingPlayerType());g!==1||z.isPlayerStarted||_.vF().dispatch(Puu(!0));z.updateBackNavContainerWidth();G=_.k(z.currentEndpoint,_.FN);((u=G)==null?0:u.startTimeSeconds)&&z.player.seekTo(G.startTimeSeconds);if(z.JSC$22377_cinematicController||z.cinematicsInitializeJobId)return Z.return();z.cinematicsInitializeJobId=_.ow.addLowPriorityJob(function(){z.initCinematicController();z.cinematicsInitializeJobId=void 0});
_.qe(Z)})};
_.p.onShortUndoDismiss=function(){var z=this,l=cpD().pop();l!==void 0&&(_.IR(this,function(){z.showCardWithIndex(l)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.p.onShortsDismiss=function(z){if(z=z.detail.reelDismissalActionRenderer)(z=_.k(z.onDismissalCompletionRenderer,_.w70))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:z}}}),this.scrollAndDismissCard()};
_.p.processReelNonVideoContentDismissalCommand=function(z){var l=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);z=_.k(z,LAQ);this.activeDimissalTimeout=setTimeout(function(){l.scrollAndDismissCard()},Number(z==null?void 0:z.delayMs))};
_.p.scrollAndDismissCard=function(){var z=this,l=this.index;cpD().push(l);_.IR(this,function(){var I=z.getPlayableNextIndex();I!==null&&(I=z.getActiveReelVideo(I),z.hideCardWithIndex(l),I==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:z.enableScrollIntoViewCenter?"center":"start"}))})};
_.p.hideCardWithIndex=function(z){if(z=this.getActiveReelVideo(z))z.hidden=!0};
_.p.showCardWithIndex=function(z){if(z=this.getActiveReelVideo(z))z.hidden=!1};
_.p.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.p.activeChanged=function(z){_.vF().dispatch(_.GZ({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:z}}));if(z)document.addEventListener("keydown",_.KJ(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var l;(l=this.player)==null||l.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.KJ(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.p.graftClientVisualElements=function(){if(this.data){var z=_.iY();_.b5n(z,_.Hu({response:this.reelWatchSequenceResponse}));_.oc(z,this.nextReelVe);_.oc(z,this.prevReelVe);_.C("kevlar_shorts_auto_advance")&&(_.oc(z,this.loopToggleOffVe),_.oc(z,this.loopToggleOnVe));_.oc(z,this.ambientModeToggleVe);_.Vi(_.sU(),[this.nextReelVe,this.prevReelVe]);_.C("web_shorts_paused_state_logging")&&_.oc(z,this.reelPlayerPausedStateRendererVe)}};
_.p.graftNvcRenderer=function(){var z,l,I,b,v=this.index<0?(z=this.shortsProcessedPrevSequence)==null?void 0:(l=z[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:l.command:(I=this.shortsProcessedSequence)==null?void 0:(b=I[this.index])==null?void 0:b.command;if(v&&this.isNonVideoContentCommand(v)){z=_.k(v,_.pt);var M,x;(z=(M=_.k(z==null?void 0:z.renderer,_.uTp))==null?void 0:(x=M.loggingDirectives)==null?void 0:x.trackingParams)&&_.iY().graftServerVe(z)}};
_.p.setActiveIndex=function(){_.pG().resolve(_.nq).setActiveIndex(this.index)};
_.p.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.p.lazyUpdateMiniplayerData=function(){var z=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ow.addLowPriorityJob(function(){z.updateMiniplayerData();z.updateMiniplayerDataJobId=void 0}))};
_.p.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ow.cancelJob(this.updateMiniplayerDataJobId)};
_.p.updateMiniplayerData=function(){var z,l,I,b=_.pG().resolve(_.Af),v={shortsData:this.getCurrentShort(),previousButtonDisabled:!((z=this.prevButtonData)==null||!z.isDisabled),nextButtonDisabled:!((l=this.nextButtonData)==null||!l.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.Hj(b,v)};
_.p.resetPlayerLocation=function(){var z=this.getPlayer();this.initialPlayerContainer&&z.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.p.movePlayerToVideo=function(z,l){var I=this;l=l===void 0?!0:l;var b=this.getActiveReelVideo(z),v=this.getPlayer();if(b){this.overlayContainer?b.appendChild(this.overlayContainer):(this.overlayContainer=_.Hy(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,b.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||v.appendTo(this.overlayContainer.playerContainer,void 0,!0));var M;(M=this.player)==null||M.setSize(NaN,NaN);this.isActive||_.qA(_.ow,function(){I.isActive=
!0});
v.style.visibility="visible";_.C("reels_web_disable_rtr_tick")||_.C("reels_web_use_pbs_first_shorts")&&z===0||_.sK("r_tr");this.currentPlayerIndex=z;b.appendChild(this.errorScreenContainer);var x;(x=this.JSC$22377_cinematicController)==null||_.ZnZ(x)}else l?_.ow.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.OI("web_shorts_error_logging_threshold")&&_.oy(new _.qB("Trying to movePlayerToVideo with undefined container.",{firstAttempt:l,
index:z}))};
_.p.enableFormatFirst=function(z){return _.C("web_enable_format_first")||z.adsOverlay&&_.C("web_enable_format_first_ads_only")||z.reelPlayerOverlayRenderer&&_.C("web_enable_format_first_organic_only")};
_.p.getAspectRatio=function(z){if(this.enableFormatFirst(z))return(z==null?0:z.thumbnail)&&RIZ(z.thumbnail)?"--ytd-shorts-player-ratio: "+RIZ(z.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.p.getBackgroundImage=function(z){return(z=this.getBackgroundImageUrl(z))?'background-image:url("'+z+'");':"background-color:black;"};
_.p.getBackgroundImageUrl=function(z){if(z!=null&&z.thumbnail)return _.Hr(z.thumbnail.thumbnails)};
_.p.onPersistentPanelActiveChanged=function(){var z=this.getCurrentShort();if(z&&this.enableFormatFirst(z)&&(z==null?0:z.thumbnail)&&RIZ(z.thumbnail)!==.5625){var l;(l=this.player)==null||l.setSize(NaN,NaN)}};
_.p.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.p.moveCinematicsToVideo=function(){var z=_.Hy(this.hostElement).querySelector("ytd-reel-video-renderer");(z==null?0:z.cinematicContainer)&&z.cinematicContainer!==this.shortsCinematicContainer.parentElement&&z.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.p.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.p.updatePrevButtonData=function(){var z=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(z){var l;this.prevButtonData=z=Object.assign({},z,{accessibility:{label:_.mY("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:z.isDisabled||this.index===-(((l=this.shortsProcessedPrevSequence)==null?void 0:l.length)||0),tooltip:this.isUpArrowHidden?"":_.mY("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=z=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.p.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.p.updateNextButtonData=function(){var z=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(z){var l;this.nextButtonData=z=Object.assign({},z,{accessibility:{label:_.mY("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:z.isDisabled||this.index===((l=this.shortsProcessedSequence)==null?void 0:l.length),tooltip:_.mY("NEXT_VIDEO_LABEL")||""})}};
_.p.getPlayablePreviousIndex=function(){for(var z,l=this.index-1;l>=-(((z=this.prevShortsSequence)==null?void 0:z.length)||0);l--)if(!cpD().includes(l))return l;return null};
_.p.getIndexInSequence=function(z,l){return z.findIndex(function(I){var b;return((b=_.k(I.command,_.FN))==null?void 0:b.videoId)===l})};
_.p.handlePrevButtonClick=function(z){var l=this,I,b;return _.O(function(v){I=l.getPlayablePreviousIndex();if(I===null)return v.return();l.gestureType=((b=z)==null?void 0:b.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(l.hidePreviousButtonImmediately=!0);if(l.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){l.transitionToVideoThrottle.fire(I)}),v.return();
l.scrollToVideoThrottle.fire(I);_.qe(v)})};
_.p.getPlayableNextIndex=function(){for(var z,l=this.index+1;l<(((z=this.shortsProcessedSequence)==null?void 0:z.length)||0);l++)if(!cpD().includes(l))return l;return null};
_.p.handleNextButtonClick=function(z,l){var I=this,b,v;return _.O(function(M){b=I.getPlayableNextIndex();if(b===null)return M.return();b===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((v=z)==null?void 0:v.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";l&&(I.gestureType=l);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.transitionToVideoThrottle.fire(b)}),M.return();
I.scrollToVideoThrottle.fire(b);_.qe(M)})};
_.p.handleReelNavigateCommand=function(z,l,I){(z=_.k(z,n08))&&l&&z.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.p.loadVideo=function(z,l){l=l===void 0?!1:l;if(z!==this.currentPlayerIndex){_.vF().dispatch(Puu(!1));if(this.isAd()&&!l){var I;(I=this.player)==null||I.notifyShortsAdSwipeEvent()}if((l=this.JSC$22377_cinematicController)!=null){var b;(b=l.currentCinematicEffect)==null||b.pause()}if((b=this.JSC$22377_cinematicController)!=null){var v;(v=b.currentCinematicEffect)==null||v.clear()}b=z>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(b));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var M,x,g,G;v=z<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(x=M[this.shortsProcessedPrevSequence.length+z])==null?void 0:x.command:(g=this.shortsProcessedSequence)==null?void 0:(G=g[z])==null?void 0:G.command;this.index=z;this.gestureType||(this.gestureType=b?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
v&&this.isVideoContentCommand(v)&&(this.ytComponentBehavior.resolveCommand(v,{form:{createScreenConfig:{clickedVisualElement:b?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(v&&this.isNonVideoContentCommand(v)){this.currentEndpoint=v;this.data=void 0;M=_.iY();x=_.k(v,_.pt);var u,Z;(x=(u=_.k(x==null?void 0:x.renderer,_.uTp))==null?void 0:(Z=u.screenLoggingData)==null?void 0:Z.screenVeType)&&_.db(M,x);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(u=this.getActiveReelVideo(z))&&u.appendChild(this.overlayContainer)}var H,y;if(((H=this.reelWatchSequenceResponse)==null?0:H.continuationEndpoint)&&((y=this.reelWatchSequenceResponse)==null?0:y.entries)&&z===this.reelWatchSequenceResponse.entries.length-1){var f,R;H={contentPlaybackContext:_.TN({},(R=_.k((f=this.currentEndpoint)==null?void 0:f.commandMetadata,_.kB))==null?void 0:R.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:H})}var F,Y,c;((F=this.reelWatchSequenceResponse)==null?0:F.prevContinuationEndpoint)&&z===-(((Y=this.reelWatchSequenceResponse)==null?void 0:(c=Y.prevEntries)==null?void 0:c.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.p.setMiniplayerPreview=function(z){z=(z===void 0?0:z)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var l,I,b=_.pG().resolve(_.Af),v={shortsData:void 0,shortsPreviewThumbnail:z?(l=this.shortsProcessedSequence)==null?void 0:(I=l[z])==null?void 0:I.thumbnail:void 0};_.Hj(b,v)};
_.p.updateTitle=function(z){var l,I;z=(z==null?0:z.adSlots)?"":(I=z==null?void 0:(l=z.videoDetails)==null?void 0:l.title)!=null?I:"";_.gC(this.hostElement,"yt-update-title",z)};
_.p.registerPanel=function(z){var l=_.pG().resolve(_.lL);if(l){z=_.D(z.engagementPanels||[]);for(var I=z.next();!I.done;I=z.next()){I=I.value;var b=this.getPanelContentIdentifier(I.engagementPanelSectionListRenderer),v=void 0,M=void 0;(M=(v=l).registerPanelContent)==null||M.call(v,b,I)}}};
_.p.getPanelIdentifier=function(z){var l;return(z==null?void 0:(l=z.identifier)==null?void 0:l.tag)||(z==null?void 0:z.panelIdentifier)||(z==null?void 0:z.targetId)};
_.p.getPanelContentIdentifier=function(z){var l;return(z==null?void 0:z.targetId)||(z==null?void 0:z.panelIdentifier)||(z==null?void 0:(l=z.identifier)==null?void 0:l.tag)};
_.p.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.vF().dispatch(Puu(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.vF().dispatch(dzT(!1));var z=_.pG().resolve(_.nq);z.dismissedIndices=[];z.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.pG().resolve(_.Af).close(!0)};
_.p.processAppendReelWatchSequenceContinuationEntriesAction=function(z){var l=this,I;(I=this.intersectionObserver)==null||I.disconnect();z=z.appendReelWatchSequenceContinuationEntriesAction;if(z==null?0:z.entries){var b;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ht(((b=this.reelWatchSequenceResponse)==null?void 0:b.entries)||[]),_.ht(z.entries)),continuationEndpoint:z.continuationEndpoint})}else if(z==null?0:z.prevEntries){var v;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ht(((v=this.reelWatchSequenceResponse)==null?void 0:v.prevEntries)||[]),_.ht(z.prevEntries)),prevContinuationEndpoint:z.prevContinuationEndpoint});_.ow.addLowPriorityJob(function(){l.movePlayerToVideo(l.index);var M;(M=l.getActiveReelVideo(l.index))==null||M.scrollIntoView({block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.ow.addLowPriorityJob(function(){l.observeShorts()},100)};
_.p.processWatchSequence=function(z){var l=this;return z.map(function(I){I=I.command;if(l.isVideoContentCommand(I)){var b=_.k(I,_.FN);return{reelPlayerOverlayRenderer:_.k(b==null?void 0:b.overlay,_.Zt_),thumbnail:b.thumbnail,command:I}}return l.isNonVideoContentCommand(I)?(b=_.k(I,_.pt),{reelNonVideoContentRenderer:_.k(b==null?void 0:b.renderer,_.uTp),command:I}):{command:I}})};
_.p.calculateIntersectionObserverThreshold=function(){var z=_.Hy(this.hostElement).querySelector("ytd-reel-video-renderer"),l=1;(z==null?0:z.offsetHeight)&&(z==null?0:z.offsetWidth)&&(l=Math.min(z.offsetHeight,this.shortsContainer.offsetHeight)/z.offsetHeight*(Math.min(z.offsetWidth,this.shortsContainer.offsetWidth)/z.offsetWidth));return Math.round(l*.6*10)/10};
_.p.isVideoContentCommand=function(z){_.pG().resolve(_.nq);return!!_.k(z,_.FN)};
_.p.isNonVideoContentCommand=function(z){_.pG().resolve(_.nq);return!!_.k(z,_.pt)};
_.p.initCinematicController=function(){var z=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22377_cinematicController=new _.K_(this.shortsCinematicContainer,this.player);var l,I=_.k((l=this.data)==null?void 0:l.background,_.Ii);_.uAD(this.JSC$22377_cinematicController,I);_.E0r(this.JSC$22377_cinematicController,Cuv(I));_.NwR(this.JSC$22377_cinematicController);_.ow.addLowPriorityJob(function(){z.moveCinematicsToVideo()})}};
_.p.handleMiniplayerNavigateShorts=function(z){z==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():z==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.p.handleSignalActionToggleShortsPictureInPicture=function(){if(_.pG().resolve(_.Af).pictureInPictureSupported()){var z=_.pG().resolve(_.nq);if(_.C("web_shorts_pip")){var l=_.pG().resolve(_.Af);z.isShortsPipActive()?l.deactivate():l.isMiniplayerActive()||(_.wb().shortsPipActivation=!0,_.vzK(l))}}else(z=this.player)==null||z.togglePictureInPicture()};
_.vP.Object.defineProperties(TG.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.reelWatchSequenceResponse)!=null&&z.prevEntries)return this.processWatchSequence([].concat(_.ht(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.C("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.ht(this.prevShortsSequence));var z=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!z)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var l=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.ht(this.prevShortsSequence.slice(0,l)),[z],_.ht(this.prevShortsSequence.slice(l+1)))}l=this.index+this.shortsProcessedPrevSequence.length;z.thumbnail=this.shortsProcessedPrevSequence[l].thumbnail;return[].concat(_.ht(this.shortsProcessedPrevSequence.slice(0,l)),[z],_.ht(this.shortsProcessedPrevSequence.slice(l+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.reelWatchSequenceResponse)!=null&&z.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var z=this;if(_.C("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var l;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((l=this.shortsProcessedSequence)==null?void 0:l.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var I,b=_.k((I=this.firstShortsData)==null?void 0:I.command,_.FN);if(b==null||!b.videoId)return this.shortsProcessedSequence;
b=this.getIndexInSequence(this.shortsSequence,b.videoId);if(b!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=b,_.ow.addLowPriorityJob(function(){z.transitionToVideoThrottle.fire(z.index);z.movePlayerToVideo(z.index)}));
return[].concat(_.ht(this.shortsSequence))}return[this.firstShortsData].concat(_.ht(this.shortsSequence))}}else if(this.data||this.shortsSequence){I=this.getCurrentShort();if(!I||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[I];if(I==null||!I.reelNonVideoContentRenderer)if(l=this.getIndexInSequence(this.shortsSequence,_.k(this.currentEndpoint,_.FN).videoId),this.index===0&&l!==-1)return this.currentPlayerIndex=this.index=l,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.ht(this.shortsSequence.slice(0,this.index)),[I],_.ht(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){I.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var v,M,x;l=((v=_.k((b=this.shortsProcessedSequence[0])==null?void 0:b.command,_.FN))==null?void 0:v.videoId)===((x=_.k((M=this.shortsSequence[0])==null?void 0:M.command,_.FN))==null?void 0:x.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.ht(this.shortsProcessedSequence.slice(0,
this.index)),[I],_.ht(this.shortsSequence.slice(l)))}return[I].concat(_.ht(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var z=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;z&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(z)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var z,l;return this.index===((z=this.reelWatchSequenceResponse)==null?void 0:(l=z.entries)==null?void 0:l.length)}var I;return!((I=this.reelWatchSequenceResponse)==null?0:I.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var z;(z=this.delayedActiveIndexUpdateDebouncer)==null||z.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return this.isShortPlayable()||((l=_.k((z=this.data)==null?void 0:z.watchStatus,_.ta_))==null?void 0:(I=l.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var z=this,l=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||l)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||l)){l=!1;this.activePanel="shorts-comments-panel";var b;I=_.D(((b=this.data)==null?void 0:b.engagementPanels)||[]);for(b=I.next();!b.done;b=I.next())if(this.getPanelIdentifier(b.value.engagementPanelSectionListRenderer)===this.activePanel){l=!0;break}if(this.isPersistentPanelActive){var v=
_.pG().resolve(_.lL);_.qA(_.ow,function(){v.showPanel(z.activePanel,void 0,void 0,void 0,null)},100)}var M;
b=[].concat(_.ht(Object.values(((M=this.data)==null?void 0:M.engagementPanels)||{})));if(_.C("enable_preview_panel_for_shorts_search_suggested_action")){var x,g,G,u,Z;((u=_.k((x=this.data)==null?void 0:(g=x.overlay)==null?void 0:(G=g.reelPlayerOverlayRenderer)==null?void 0:G.metapanel,_.Emu))==null?void 0:(Z=u.metadataItems)==null?void 0:Z.find(function(H){var y,f;return((y=_.k(H,a4R))==null?void 0:(f=y.icon)==null?void 0:f.iconType)==="SEARCH"}))!==void 0&&b.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}M=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);x=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return M===void 0&&x===void 0||(M==null?0:M.isDisabled)||(x==null?void 0:x.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!l?(l=b==null?void 0:b.findIndex(function(H){var y,
f;return((y=H.engagementPanelSectionListRenderer)==null?void 0:(f=y.identifier)==null?void 0:f.tag)==="shorts-comments-panel"}),l===-1||l===void 0||b!=null&&b.splice(l,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.mY("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.mY("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:_.mY("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.mY("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(_.ht(Object.values(b||
{})))):b}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.shortsProcessedSequence)==null?void 0:z[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var z=this,l,I,b;if((l=this.playerData)==null?0:(I=l.playabilityStatus)==null?0:(b=I.errorScreen)==null?0:b.playerInterstitialRenderer)return _.ow.addLowPriorityJob(function(){z.movePlayerToVideo(z.index)}),this.playerData.playabilityStatus.errorScreen;
var v,M;return((v=this.data)==null?void 0:v.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((M=this.data)==null?0:M.watchStatus)&&_.k(this.data.watchStatus,_.Uxu)?(_.ow.addLowPriorityJob(function(){z.movePlayerToVideo(z.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.vP.Object.defineProperties(TG,{template:{configurable:!0,enumerable:!0,get:function(){if(j_A===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <template is="dom-if" if="[[sequenceRefactor]]" class="style-scope ytd-shorts">\n              <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n            </template>\n            <template is="dom-if" if="[[!sequenceRefactor]]" class="style-scope ytd-shorts">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </template>\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          <template is="dom-if" if="[[sequenceRefactor]]" class="style-scope ytd-shorts">\n            <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n          </template>\n          <template is="dom-if" if="[[!sequenceRefactor]]" class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </template>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);j_A=z}z=j_A;return z}}});
TG.prototype.onNextButtonDataChange=TG.prototype.onNextButtonDataChange;TG.prototype.onPrevButtonDataChange=TG.prototype.onPrevButtonDataChange;TG.prototype.onPersistentPanelActiveChanged=TG.prototype.onPersistentPanelActiveChanged;TG.prototype.lazyUpdateMiniplayerData=TG.prototype.lazyUpdateMiniplayerData;TG.prototype.onShortsPipActiveChanged=TG.prototype.onShortsPipActiveChanged;TG.prototype.setActiveIndex=TG.prototype.setActiveIndex;TG.prototype.graftNvcRenderer=TG.prototype.graftNvcRenderer;
TG.prototype.graftClientVisualElements=TG.prototype.graftClientVisualElements;TG.prototype.onActiveChanged=TG.prototype.onActiveChanged;TG.prototype.onShortsDismiss=TG.prototype.onShortsDismiss;TG.prototype.onShortUndoDismiss=TG.prototype.onShortUndoDismiss;TG.prototype.playerDataChanged=TG.prototype.playerDataChanged;TG.prototype.afterPlayerStarted=TG.prototype.afterPlayerStarted;TG.prototype.updateReelWatchSequenceResponse=TG.prototype.updateReelWatchSequenceResponse;
TG.prototype.unhideCurrentOverlay=TG.prototype.unhideCurrentOverlay;TG.prototype.onServiceRequestCompleted=TG.prototype.onServiceRequestCompleted;TG.prototype.engagementPanelsChanged=TG.prototype.engagementPanelsChanged;TG.prototype.onFullscreenChange=TG.prototype.onFullscreenChange;TG.prototype.onResize=TG.prototype.onResize;TG.prototype.setFirstShortsData=TG.prototype.setFirstShortsData;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],TG.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.pF.YtPageBehavior),_.w("design:type",Object)],TG.prototype,"ytPageBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],TG.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],TG.prototype,"ironResizableBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],TG.prototype,"ytdDismissibleItemBehavior",void 0);
_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],TG.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],TG.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"playerData",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"reelWatchSequenceResponse",void 0);
_.e([_.X(),_.w("design:type",Object)],TG.prototype,"cachedReelWatchSequenceResponse",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"cachedSequenceParams",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"cachedSequenceProvider",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"currentEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"nextButtonData",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"prevButtonData",void 0);
_.e([_.X(),_.w("design:type",Object)],TG.prototype,"isPreviousPageShorts",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"index",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"delayedActiveIndex",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"playablePreviousIndex",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"player",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"isPlayerPaused",void 0);
_.e([_.X({selector:KAZ}),_.w("design:type",Object)],TG.prototype,"isPlayerStarted",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"intersectionObserver",void 0);_.e([_.X(),_.w("design:type",Number)],TG.prototype,"cinematicsInitializeJobId",void 0);_.e([_.X(),_.w("design:type",Number)],TG.prototype,"updateMiniplayerDataJobId",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"fitToVisibleBounds",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"pageSubtype",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],TG.prototype,"enablePreviousContinuation",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"shortsPipEnabled",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"isDark",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"shortsViewTransitions",void 0);
_.e([_.X({selector:_.u7,reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"isFullscreen",void 0);_.e([_.X({selector:_.Z6,reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"isShortsPipActive",void 0);_.e([_.qX("#shorts-inner-container"),_.w("design:type",HTMLElement)],TG.prototype,"shortsInnerContainer",void 0);_.e([_.qX("#back-nav-button ytd-button-renderer"),_.w("design:type",_.ir)],TG.prototype,"backNavButton",void 0);
_.e([_.qX("#shorts-container"),_.w("design:type",HTMLElement)],TG.prototype,"shortsContainer",void 0);_.e([_.r6("error-screen"),_.w("design:type",HTMLElement)],TG.prototype,"errorScreenContainer",void 0);_.e([_.r6("player"),_.w("design:type",Object)],TG.prototype,"playerElement",void 0);_.e([_.r6("shorts-cinematic-container"),_.w("design:type",HTMLElement)],TG.prototype,"shortsCinematicContainer",void 0);
_.e([_.r6("initial-player-container"),_.w("design:type",HTMLElement)],TG.prototype,"initialPlayerContainer",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"buttonOverride",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"anchoredPanelActive",void 0);_.e([_.X(),_.w("design:type",String)],TG.prototype,"activePanel",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"isActive",void 0);
_.e([_.X({selector:mzT,reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"smallScreenPersistentPanel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"isPersistentPanelActive",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"smallScreenSqueezeBack",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"enableScrollIntoViewCenter",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"formatFirst",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"enableFlexibleOverlay",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"extractOverlay",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"useAspectRatio",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],TG.prototype,"sequenceRefactor",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"panelContainer",void 0);
_.e([_.X(),_.w("design:type",Object)],TG.prototype,"overlayContainer",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"isShortsInitialized",void 0);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"firstShortsData",void 0);_.e([_.B("reelWatchSequenceResponse"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"prevShortsSequence",null);
_.e([_.B("data","prevShortsSequence"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"shortsProcessedPrevSequence",null);_.e([_.B("reelWatchSequenceResponse"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"shortsSequence",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"setFirstShortsData",null);
_.e([_.B("data","shortsSequence","firstShortsData"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"shortsProcessedSequence",null);_.e([_.X({reflectToAttribute:!0}),_.B("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],TG.prototype,"isUpArrowHidden",null);
_.e([_.X({reflectToAttribute:!0}),_.B("reelWatchSequenceResponse","index","endOfNextContinuation"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],TG.prototype,"isDownArrowHidden",null);_.e([_.X(),_.B("index"),_.w("design:type",Number),_.w("design:paramtypes",[])],TG.prototype,"activeIndex",null);_.e([_.B("isShortPlayable","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],TG.prototype,"shouldRenderOfflineContent",null);
_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onResize",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"anchoredEngagementPanels",null);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"watchWhileEngagementPanels",void 0);_.e([_.By("isFullscreen"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onFullscreenChange",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"engagementPanelsChanged",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],TG.prototype,"onServiceRequestCompleted",null);_.e([_.B("data","shortsSequence","index"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"activeReel",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"unhideCurrentOverlay",null);_.e([_.By("currentEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"updateReelWatchSequenceResponse",null);_.e([_.By("isPlayerStarted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"afterPlayerStarted",null);
_.e([_.B("playerData","reelWatchSequenceResponse","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],TG.prototype,"errorScreen",null);_.e([_.B("errorScreen"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],TG.prototype,"hasError",null);_.e([_.By("playerData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],TG.prototype,"playerDataChanged",null);
_.e([_.tP("yt-dismissible-item-undo-feedback"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onShortUndoDismiss",null);_.e([_.tP("yt-disable-lockup-interaction"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],TG.prototype,"onShortsDismiss",null);_.e([_.YE("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onActiveChanged",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"graftClientVisualElements",null);_.e([_.By("currentPlayerIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"graftNvcRenderer",null);_.e([_.By("index"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"setActiveIndex",null);
_.e([_.By("isShortsPipActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onShortsPipActiveChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"lazyUpdateMiniplayerData",null);_.e([_.X(),_.w("design:type",Object)],TG.prototype,"onOverlayDensityChanged",void 0);
_.e([_.By("isPersistentPanelActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onPersistentPanelActiveChanged",null);_.e([_.By("index","data","isUpArrowHidden"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onPrevButtonDataChange",null);_.e([_.By("index","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TG.prototype,"onNextButtonDataChange",null);
_.e([_.S({is:"ytd-shorts"})],TG);_.P2.registerService(_.xP5,TG);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("JzFVk");
var E5A;var utR;var bN=function(){return _.q.apply(this,arguments)||this};
_.m(bN,_.q);bN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
bN.prototype.computeBlueBottomLink=function(z){return z};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bN.prototype,"data",void 0);_.e([_.X({computed:"computeIcon_(data.bottomIcon)"}),_.w("design:type",String)],bN.prototype,"bottomIcon",void 0);
_.e([_.X({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.w("design:type",Boolean)],bN.prototype,"enableBlueBottomLink",void 0);_.e([_.S({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],bN);
_.r(bN,"ytd-web-answer-renderer",function(){if(utR!==void 0)return utR;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return utR=z},{mode:_.yP("kevlar_poly_si_batch_j035")?1:2});var ZuD;var vq=function(){var z=_.q.apply(this,arguments)||this;z.hasChipBar=!1;return z};
_.m(vq,_.q);vq.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}}};
vq.prototype.computeHasChipBar=function(z){return!(z==null||!z.chipBar)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],vq.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.w("design:type",Object)],vq.prototype,"hasChipBar",void 0);_.e([_.S({is:"ytd-search-header-renderer",disableElementRegistration:!0})],vq);
_.r(vq,"ytd-search-header-renderer",function(){if(ZuD!==void 0)return ZuD;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ZuD=z},{mode:1});var HuT;var M7=function(){return _.q.apply(this,arguments)||this};
_.m(M7,_.q);M7.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],M7.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-page-continuation"})],M7);
_.r(M7,"ytd-page-continuation",function(){if(HuT!==void 0)return HuT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return HuT=z},{mode:1});var yGu;var fSa;var CHr;var kkv=function(){return _.q.apply(this,arguments)||this};
_.m(kkv,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kkv.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kkv.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],kkv);
_.r(kkv,"ytd-watch-card-one-vs-one-event",function(){if(CHr!==void 0)return CHr;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return CHr=z},{mode:1});var RQA=function(){return _.q.apply(this,arguments)||this};
_.m(RQA,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],RQA.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],RQA.prototype,"data",void 0);_.e([_.S({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],RQA);
_.r(RQA,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(fSa!==void 0)return fSa;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return fSa=z},{mode:1});var mpR;var KQR=function(){return _.q.apply(this,arguments)||this};
_.m(KQR,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KQR.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],KQR.prototype,"data",void 0);_.e([_.S({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],KQR);
_.r(KQR,"ytd-banner-and-box-hero-image-renderer",function(){if(mpR!==void 0)return mpR;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return mpR=z},{mode:1});var txR;var p_=function(){var z=_.q.apply(this,arguments)||this;z.modern=_.C("web_modern_buttons");return z};
_.m(p_,_.q);p_.prototype.computeIcon=function(){var z,l,I=(z=this.data)==null?void 0:(l=z.icon)==null?void 0:l.iconType;if(I)return _.Re(I)};
p_.prototype.computeButtonShape=function(){var z;return{buttonText:_.ID((z=this.data)==null?void 0:z.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.vP.Object.defineProperties(p_.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],p_.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],p_.prototype,"modern",void 0);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.B("data.style"),_.w("design:type",Object),_.w("design:paramtypes",[])],p_.prototype,"buttonColor",null);
_.e([_.S({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],p_);
_.r(p_,"ytd-call-to-action-button-renderer",function(){if(txR!==void 0)return txR;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return txR=z},{mode:1});var BfR;var D5=function(){return _.q.apply(this,arguments)||this};
_.m(D5,_.q);D5.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Hy(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.ZY(this.data.leftThumbnail.thumbnails,216)+")")};
D5.prototype.onLeftThumbnailChanged=D5.prototype.onLeftThumbnailChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],D5.prototype,"data",void 0);_.e([_.By("data.leftThumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],D5.prototype,"onLeftThumbnailChanged",null);_.e([_.S({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],D5);
_.r(D5,"ytd-collage-hero-image-renderer",function(){if(BfR!==void 0)return BfR;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return BfR=z},{mode:1});var X77;var xc=function(){return _.q.apply(this,arguments)||this};
_.m(xc,_.q);xc.prototype.computeStyle=function(z){return z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xc.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.w("design:type",String)],xc.prototype,"componentStyle",void 0);_.e([_.S({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],xc);
_.r(xc,"ytd-single-hero-image-renderer",function(){if(X77!==void 0)return X77;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return X77=z},{mode:1});var qY7;var OG=function(){return _.q.apply(this,arguments)||this};
_.m(OG,_.q);_.p=OG.prototype;
_.p.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:_.C("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.p.computeSubtitle=function(z){if(this.data){var l;if(this.data.upcomingEventData){z=_.ID(z.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(l=_.lc(_.PU(z,I)))}else l=z.subtitle;return l}};
_.p.onHeroTap=function(z){z.preventDefault();var l=this.data&&this.data.navigationEndpoint;!l||!_.DX(_.MX(z),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.DX(_.MX(z),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.C("kevlar_watchcard_hero_video_renderer_killswitch")?_.gC(this.hostElement,"yt-navigate",{navigationEndpoint:l}):this.ytComponentBehavior.resolveCommand(l))};
_.p.computeHeroTabIndex=function(z){return z&&z.simpleText?-1:0};
_.p.computeHeroRole=function(z){return z&&z.simpleText?"":"link"};
_.p.computeIsReminderButtonPresent=function(z){return!(!z||!z.reminderButton)};
_.p.computeHideBottomItems=function(z){return!(this.computeIsReminderButtonPresent(z)||z.subtitle)};
_.p.dataChanged=function(){var z=this.get("data.buttons.buttonRenderer.serviceEndpoint"),l;((l=_.k(z==null?void 0:z.commandMetadata,_.nw))==null?0:l.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(z)};
OG.prototype.dataChanged=OG.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],OG.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],OG.prototype,"data",void 0);
_.e([_.X({computed:"computeSubtitle(data)"}),_.w("design:type",String)],OG.prototype,"subtitle",void 0);_.e([_.X({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],OG.prototype,"isReminderButtonPresent",void 0);_.e([_.X({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],OG.prototype,"hideBottomItems",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OG.prototype,"dataChanged",null);_.e([_.S({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],OG);
_.r(OG,"ytd-watch-card-hero-video-renderer",function(){if(qY7!==void 0)return qY7;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return qY7=z},{mode:1});var iuT;var gY=function(){return _.q.apply(this,arguments)||this};
_.m(gY,_.q);_.p=gY.prototype;_.p.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"}}}};
_.p.computeTitleBadges=function(z){return z?[z]:[]};
_.p.computeHeaderStyle=function(z){return z?z.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.p.computeAvatarAriaLabel=function(z){if(z){var l,I,b,v;return(v=(l=z.avatar)==null?void 0:(I=l.accessibility)==null?void 0:(b=I.accessibilityData)==null?void 0:b.label)!=null?v:_.ID(z==null?void 0:z.title)}};
_.p.computeAvatarHeight=function(z){return z==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.p.computeBadgeRowClass=function(z){return(z==null?0:z[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gY.prototype,"data",void 0);_.e([_.X({computed:"computeTitleBadges(data.titleBadge)"}),_.w("design:type",Array)],gY.prototype,"titleBadges",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.w("design:type",String)],gY.prototype,"headerStyle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.w("design:type",String)],gY.prototype,"badgeRowClass",void 0);_.e([_.S({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],gY);
_.r(gY,"ytd-watch-card-rich-header-renderer",function(){if(iuT!==void 0)return iuT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return iuT=z},{mode:1});var FQT;var Q1v;var GG=function(){return _.q.apply(this,arguments)||this};
_.m(GG,_.q);GG.prototype.onMetadataTap=function(z){var l=this.data&&this.data.navigationEndpoint;l&&!_.DX(_.MX(z),this.hostElement,["A".toString()])&&_.gC(this.hostElement,"yt-navigate",{endpoint:l})};
_.vP.Object.defineProperties(GG.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 z;if(this.data.upcomingEventData){var l=_.ID(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(z=_.lc(_.PU(l,I)))}else z=this.data.subtitle;return z}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],GG.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data.style"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],GG.prototype,"isCondensed",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],GG.prototype,"subtitle",null);
_.e([_.S({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],GG);
_.r(GG,"ytd-watch-card-compact-video-renderer",function(){if(Q1v!==void 0)return Q1v;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Q1v=z},{mode:1});var YY0;var Tfu=function(){return _.q.apply(this,arguments)||this};
_.m(Tfu,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Tfu.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Tfu.prototype,"data",void 0);_.e([_.S({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Tfu);
_.r(Tfu,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(YY0!==void 0)return YY0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YY0=z},{mode:1});var N7=function(){return _.q.apply(this,arguments)||this};
_.m(N7,_.q);N7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],N7.prototype,"ytRendererStamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],N7.prototype,"data",void 0);_.e([_.S({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],N7);
_.r(N7,"ytd-vertical-watch-card-list-renderer",function(){if(FQT!==void 0)return FQT;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return FQT=z},{mode:1});var cGZ;var EG=function(){var z=_.q.apply(this,arguments)||this;z.ariaExpanded="false";return z};
_.m(EG,_.q);_.p=EG.prototype;_.p.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.p.dataChanged=function(){var z;this.currentSeasonIndex=((z=this.data)==null?void 0:z.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.p.computeEpisodesInfo=function(z,l,I){if(z!==void 0&&l.length===z.length)return z[I]};
_.p.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.p.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.p.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.p.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.p.getUppercaseSimpleString=function(z){return this.ytRendererBehavior.getSimpleString(z).toUpperCase()};
_.p.updateCurrentSeasonIndexFromBinding=function(z){this.currentSeasonIndex=z.detail.value};
EG.prototype.onIronOverlayClosed=EG.prototype.onIronOverlayClosed;EG.prototype.currentSeasonIndexChanged=EG.prototype.currentSeasonIndexChanged;EG.prototype.dataChanged=EG.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EG.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",String)],EG.prototype,"label",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],EG.prototype,"currentSeasonIndex",void 0);_.e([_.X({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.w("design:type",Object)],EG.prototype,"episodesInfo",void 0);_.e([_.X({value:"false"}),_.w("design:type",Object)],EG.prototype,"ariaExpanded",void 0);_.e([_.qX("#lists"),_.w("design:type",Object)],EG.prototype,"lists",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EG.prototype,"dataChanged",null);_.e([_.YE("currentSeasonIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EG.prototype,"currentSeasonIndexChanged",null);_.e([_.tP("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],EG.prototype,"onIronOverlayClosed",null);
_.e([_.S({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],EG);
_.r(EG,"ytd-watch-card-section-dropdown-renderer",function(){if(cGZ!==void 0)return cGZ;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return cGZ=z},{mode:1});var SYv;var uN=function(){var z=_.q.apply(this,arguments)||this;z.isSearch=!1;return z};
_.m(uN,_.q);uN.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uN.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],uN.prototype,"isSearch",void 0);_.e([_.S({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],uN);
_.r(uN,"ytd-watch-card-section-sequence-renderer",function(){if(SYv!==void 0)return SYv;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return SYv=z},{mode:1});var dpR=_.P(function(z){return _.N("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.N(_.TS,{data:function(){return z.data().ctaButton}},{buttonViewModel:_.h4}),_.N(_.Rf,{text:function(){return z.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"vk");
dpR.idomCompat=!0;_.uO(dpR,"ytd-button-banner-view-model",{props:{data:_.mB}});var Z5=function(){var z=_.q.apply(this,arguments)||this;z.isSearch=!1;return z};
_.m(Z5,_.q);
Z5.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Z5.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],Z5.prototype,"rounded",void 0);_.e([_.X(),_.w("design:type",Object)],Z5.prototype,"isSearch",void 0);
_.e([_.S({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Z5);
_.r(Z5,"ytd-universal-watch-card-renderer",function(){if(yGu!==void 0)return yGu;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yGu=z},{mode:1});var o5v;_.uO(_.P(function(z){var l=z.data;var I;z=!((I=_.pG().resolve(_.MB(_.I2)))==null||!I());I={};return _.N("overview-message-view-model",{class:_.m9("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=z,I.ytwOverviewMessageViewModelLightBackground=!z,I))},_.N(_.E,{cond:function(){return l().primaryImage},
then:function(b){return _.N(_.pK,{data:b,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.N(_.E,{cond:function(){return l().primaryText},
then:function(){return _.N("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.N(_.Rf,{text:function(){return l().primaryText}}))}}),_.N(_.E,{cond:function(){return l().secondaryText},
then:function(){return _.N("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.N(_.Rf,{text:function(){return l().secondaryText}}))}}))},"wk"),"overview-message-view-model",{props:{data:_.mB}});_.uO(_.Skn,"ytd-overview-answer-view-model",{props:{data:_.mB}});var Hq=function(){return _.q.apply(this,arguments)||this};
_.m(Hq,_.q);Hq.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"}}}};
Hq.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],Hq.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Hq.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],Hq.prototype,"isSearch",void 0);
_.e([_.S({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Hq);
_.r(Hq,"ytd-secondary-search-container-renderer",function(){if(o5v!==void 0)return o5v;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return o5v=z},{mode:1});var PHR;var yT=function(){var z=_.q.apply(this,arguments)||this;z.renderSecondarySearchContainer=!1;z.isSearch=!1;return z};
_.m(yT,_.q);_.p=yT.prototype;_.p.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"}}}};
_.p.created=function(){var z=this;this.boundStampSecondarySearchContainerIfFits=function(){z.stampSecondarySearchContainerIfFits()};
_.hr("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.p.computeIsSearchFrictionPage=function(z){var l,I,b,v,M;z=z==null?void 0:(l=z.primaryContents)==null?void 0:(I=l.sectionListRenderer)==null?void 0:(b=I.contents)==null?void 0:(v=b[0])==null?void 0:(M=v.itemSectionRenderer)==null?void 0:M.contents;if(!z)return!1;l=_.D(z);for(I=l.next();!I.done;I=l.next())if(b=void 0,(b=I.value)==null?0:b.searchFrictionViewModel)return!0;return!1};
_.p.computeShowSecondaryColumn=function(z,l){return!!(l&&l.secondaryContents&&z)};
_.p.activeChanged=function(){var z=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.KJ(this,this.debounceStampSecondarySearchContainerIfFits)),_.JP(function(){z.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.KJ(this,this.debounceStampSecondarySearchContainerIfFits))};
_.p.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.p.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.p.debounceStampSecondarySearchContainerIfFits=function(){_.z4(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.p.onRetrieveLocation=function(z,l){l.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);z.stopPropagation()};
_.p.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
yT.prototype.dataChanged=yT.prototype.dataChanged;yT.prototype.onRetrieveLocation=yT.prototype.onRetrieveLocation;yT.prototype.persistentGuideChanged=yT.prototype.persistentGuideChanged;yT.prototype.activeChanged=yT.prototype.activeChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],yT.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],yT.prototype,"ironResizableBehavior",void 0);_.e([_.X(),_.w("design:type",Boolean)],yT.prototype,"active",void 0);_.e([_.X(),_.w("design:type",Object)],yT.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.C("enable_desktop_search_bigger_thumbs")}}),
_.w("design:type",Boolean)],yT.prototype,"useBiggerThumbs",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.gk("desktop_search_bigger_thumbs_style")}}),
_.w("design:type",String)],yT.prototype,"biggerThumbsStyle",void 0);_.e([_.X(),_.w("design:type",Object)],yT.prototype,"renderSecondarySearchContainer",void 0);_.e([_.X({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.w("design:type",Boolean)],yT.prototype,"showSecondaryColumn",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.w("design:type",Boolean)],yT.prototype,"isSearchFrictionPage",void 0);
_.e([_.X(),_.w("design:type",Object)],yT.prototype,"isSearch",void 0);_.e([_.By("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yT.prototype,"activeChanged",null);_.e([_.By("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yT.prototype,"persistentGuideChanged",null);
_.e([_.tP("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],yT.prototype,"onRetrieveLocation",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yT.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],yT);
_.r(yT,"ytd-two-column-search-results-renderer",function(){if(PHR!==void 0)return PHR;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PHR=z},{mode:1});var f_=function(){var z=_.q.apply(this,arguments)||this;z.hasSearchHeader=!1;z.hasSecondaryContent=!1;z.hasBiggerThumbs=_.C("enable_desktop_search_bigger_thumbs");z.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return z};
_.m(f_,_.q);_.p=f_.prototype;_.p.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:_.Rz(["aa","eocs"])}}};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.loadPage_=function(z){this.initCsi();z&&(this.data=z,_.hr("REFINEMENTS_TUPLE",["FromSearchResponse",z.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.JW(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.p.initCsi=function(){_.MP("results",["ol","cpt"])};
_.p.updateTitle=function(){var z=_.n0(window.location.href,"q");z||(z=_.n0(window.location.href,"search_query"));_.gC(this.hostElement,"yt-update-title",z||"")};
_.p.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.p.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.C("web_srp_data_changed_terminate_imp_killswitch")||_.Gb(this.hostElement,"yt-terminate-video-preview-action")};
_.p.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.p.computeHasSearchHeader=function(z){var l;z=z==null?void 0:(l=z.header)==null?void 0:l.searchHeaderRenderer;return!!z&&(!!z.searchFilterButton||!!z.chipBar)};
_.p.computeHasSecondaryContent=function(z){var l,I;return!!(z==null?0:(l=z.contents)==null?0:(I=l.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.vP.Object.defineProperties(f_,{template:{configurable:!0,enumerable:!0,get:function(){if(E5A===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);E5A=z}z=E5A;return z}}});
f_.prototype.onReloadContinuationFinish=f_.prototype.onReloadContinuationFinish;f_.prototype.dataChanged=f_.prototype.dataChanged;_.e([_.t(_.pF.YtPageBehavior),_.w("design:type",Object)],f_.prototype,"ytPageBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],f_.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],f_.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],f_.prototype,"data",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],f_.prototype,"monitorScroll",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f_.prototype,"hasSearchHeader",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f_.prototype,"hasSecondaryContent",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],f_.prototype,"hasBiggerThumbs",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f_.prototype,"dataChanged",null);
_.e([_.tP("yt-reload-continuation-finish"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],f_.prototype,"onReloadContinuationFinish",null);_.e([_.S({is:"ytd-search"})],f_);_.P2.registerService(_.DPS,f_);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("h8y2qb");
var Kcq=function(z){if(z=_.opx(z)){var l;(l=z.sources)!=null&&l[0]?(l=_.hju(z),l=l<1?"VERTICAL":l>1?"HORIZONTAL":"SQUARE"):l=void 0;return l}},Dn=function(z){_.hJ.call(this,"upload");
this.opts.query=z},BRK=function(z,l){return _.N(tQy,{data:z,
onYtNavigate:l})},Xa0=function(z,l){return _.Cc(z.entities,"pageHeaderEntity",l)},iW0=function(z,l){return z.map(function(I){if(I.tabRenderer)return qOK(I.tabRenderer);
if(I.expandableTabRenderer&&l){var b=I.expandableTabRenderer;return{customTabRenderable:function(){return l(b)}}}return{}})},qOK=function(z){return{identifier:z.tabIdentifier,
aTagConfig:_.LE({innertubeCommand:z.endpoint,forceNewState:!0}),title:z.title,selected:z.selected,disabled:z.unselectable,icon:z.icon}},Fcc=function(z){return _.GZ({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:z})},QMW=function(z){if(!_.EB(document,"gtm-noscript")){var l=document.createElement("noscript");
l.id="gtm-noscript";l.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+z+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(l)}};_.Gs(Dn,_.hJ);Dn.prototype.JSC$10074_setLabel=function(z){Dn.superClass_.JSC$10074_setLabel.call(this,z);return this};
Dn.prototype.addUploadMetadata=function(z,l){Dn.superClass_.addUploadMetadata.call(this,z,l);return this};var YOK=function(z){if(z!=="youtubebanner"&&z!=="youtube-channel-banner")throw Error("zo");Dn.call(this,z)};
_.m(YOK,Dn);YOK.prototype.JSC$10074_setLabel=function(z){Dn.prototype.JSC$10074_setLabel.call(this,z);return this};
YOK.prototype.addUploadMetadata=function(z,l){Dn.prototype.addUploadMetadata.call(this,z,l);return this};var TRl=[_.ap,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(z){_.YO(z).path[0]!==this&&(this.resetLayout(),z.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var z=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Xb(this._layoutDebouncer,_.oe,z);_.ql(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var z=this;requestAnimationFrame(function(){z.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(z){this.resizerShouldNotify(z)&&this._notifyDescendant(z)},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 cIs=[_.WEz,{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(z,l){var I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[z];if(!I)throw new ReferenceError(this._getUndefinedMsg(z));z=this._boundEffect(I,l||{});z.setUp();return z},
_effectsChanged:function(z,l,I){this._tearDownEffects();z&&I&&(z.split(" ").forEach(function(b){var v;b!==""&&((v=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[b])?this._effects.push(this._boundEffect(v,l[b])):console.warn(this._getUndefinedMsg(b)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(z,l){l=l||{};var I=parseFloat(l.startsAt||0),b=parseFloat(l.endsAt||1),v=b-I,M=function(){};
b=I===0&&b===1?z.run:function(x,g){z.run.call(this,Math.max(0,(x-I)/v),g)};
return{setUp:z.setUp?z.setUp.bind(this,l):M,run:z.run?b.bind(this):M,tearDown:z.tearDown?z.tearDown.bind(this):M}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(z){z.setUp()!==!1&&this._effectsRunFn.push(z.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(z){z.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(z,l){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(z,l)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var z=this._clampedScrollTop;this._updateScrollState(z);this.threshold>0&&this._setThresholdTriggered(z>=this.threshold)}},
_getDOMRef:function(z){console.warn("_getDOMRef","`"+z+"` is undefined")},
_getUndefinedMsg:function(z){return"Scroll effect `"+z+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+z+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ao`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(z){var l={};z=parseFloat(z.scalar);l.background=this._getDOMRef("background");l.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");l.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");l.deltaBg=l.backgroundFrontLayer.offsetHeight-l.background.offsetHeight;l.deltaBg===0?(isNaN(z)&&(z=.8),l.deltaBg=(this._dHeight||0)*z):(isNaN(z)&&(z=
1),l.deltaBg*=z);this._fxParallaxBackground=l},
run:function(z){var l=this._fxParallaxBackground;this.transform("translate3d(0px, "+l.deltaBg*Math.min(1,z)+"px, 0px)",l.backgroundFrontLayer);l.backgroundRearLayer&&this.transform("translate3d(0px, "+l.deltaBg*Math.min(1,z)+"px, 0px)",l.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var SOS;var d64;var otl=function(){};
_.p=otl.prototype;_.p._scrollTargetChanged=function(){};
_.p.scroll=function(){};
_.p._isValidScrollTarget=function(){};
_.p._toggleScrollListener=function(){};
_.p.toggleScrollListener=function(){};
_.p.createEffect=function(){};
_.p._effectsChanged=function(){};
_.p._layoutIfDirty=function(){};
_.p._boundEffect=function(){};
_.p._setUpEffect=function(){};
_.p._tearDownEffects=function(){};
_.p._runEffects=function(){};
_.p._scrollHandler=function(){};
_.p._scrollStateChanged=function(){};
_.p._getUndefinedMsg=function(){};
_.p.notifyResize=function(){};
_.p.assignParentResizable=function(){};
_.p.stopResizeNotificationsFor=function(){};
_.p._subscribeIronResize=function(){};
_.p._unsubscribeIronResize=function(){};
_.p.resizerShouldNotify=function(){};
_.p._onDescendantIronResize=function(){};
_.p._fireResize=function(){};
_.p._onIronRequestResizeNotifications=function(){};
_.p._parentResizableChanged=function(){};
_.p._notifyDescendant=function(){};
_.p._requestResizeNotifications=function(){};
_.p._findParent=function(){};
_.p._appResetLayoutHandler=function(){};
_.p.resetLayout=function(){};
_.p._notifyLayoutChanged=function(){};
_.p._notifyDescendantResize=function(){};
_.p._setThresholdTriggered=function(){};
otl=_.hP({_template:function(){if(d64!==void 0)return d64;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;SOS===void 0&&(SOS=document.createElement("template"));var b=SOS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return d64=z},
is:"tp-yt-app-header",behaviors:[cIs,TRl],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 z=_.YO(this.$.slot).getDistributedNodes(),l=0,I;I=z[l];l++)if(I.nodeType===Node.ELEMENT_NODE)if(I.hasAttribute("sticky")){this._stickyElRef=I;break}else this._stickyElRef||(this._stickyElRef=I);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var z=this._clampedScrollTop,l=this._height===0||z===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;l||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();l?this._updateScrollState(z,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(z,l){if(this._height!==0){var I=0,b=this._top;var v=this._maxHeaderTop;var M=z-this._lastScrollTop,x=Math.abs(M),g=z>this._lastScrollTop,G=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?b+M:z,0,v));z>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&x<100){if(G-this._initTimestamp>300||this._wasScrollingDown!==g)this._initScrollTop=z,this._initTimestamp=G;z>=v&&
(Math.abs(this._initScrollTop-z)>30||x>10?(g&&z>=v?I=v:!g&&z>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-b)/(M/(G-this._lastTimestamp)),0,300)+"ms"):I=this._top)}v=this._dHeight===0?z>0?1:0:I/this._dHeight;l||(this._lastScrollTop=z,this._top=I,this._wasScrollingDown=g,this._lastTimestamp=G);if(l||v!==this._progress||b!==I||z===0)this._progress=v,this._runEffects(v,I),this._transformHeader(I)}},
_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(z){this.translate3d(0,-z+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&z>=this._stickyElTop?Math.min(z,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(z,l,I){return Math.min(I,Math.max(l,z))},
_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),_.YO(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(z){switch(z){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.YO(this).querySelector("[main-title]");case "condensedTitle":return _.YO(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var PnF;var hg0;_.hP({_template:function(){if(hg0!==void 0)return hg0;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;PnF===void 0&&(PnF=document.createElement("template"));var b=PnF;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return hg0=z},
is:"tp-yt-app-header-layout",behaviors:[TRl],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.YO(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var z=this.header;if(this.isAttached&&z){this.$.wrapper.classList.remove("initializing");z.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)z.style.left=
"",z.style.right="";else{var l=this.getBoundingClientRect(),I=document.documentElement.clientWidth-l.right;z.style.left=l.left+"px";z.style.right=I+"px"}l=this.$.contentContainer.style;I=z.offsetHeight;z.fixed&&!z.condenses&&this.hasScrollingRegion?(l.marginTop=I+"px",l.paddingTop=""):(l.paddingTop=I+"px",l.marginTop="")}}});var sMS=new _.Z0("alertCommand");var rIF=new _.Z0("manageLabsStateCommand");var $6q=new _.Z0("inlineFormRenderer");var egF=new _.Z0("playlistSidebarPrimaryInfoRenderer");var wa0=new _.Z0("productDetailsThumbnailRenderer"),AI1=new _.Z0("productDetailsVariantRenderer"),Wc4=new _.Z0("productDetailsVariantOptionRenderer"),ntS=new _.Z0("productDetailsOffersContainerRenderer"),Lcl=new _.Z0("productDetailsOfferRenderer");var U6C=new _.Z0("shoppingFlaggingRenderer");var a2S=new _.Z0("playlistBylineRenderer");var VQX=new _.Z0("insertChannelTabCommand");var xi=function(){return _.F6.apply(this,arguments)||this};
_.m(xi,_.F6);_.p=xi.prototype;_.p.activeChanged=function(){if(this.active){var z=_.Hy(this.hostElement).querySelector("#header");z&&_.gC(z,"iron-resize");window.addEventListener("scroll",_.KJ(this,this.onScroll))}else window.removeEventListener("scroll",_.KJ(this,this.onScroll)),_.gC(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.p.guideVisibleChanged=function(){var z=_.Hy(this.hostElement).querySelector("#header");z&&_.gC(z,"iron-resize")};
_.p.onScroll=function(){var z=this;_.z4(this,"onScroll",function(){var l=_.Hy(z.hostElement).querySelector("#header");l&&l.polymerController&&(l=l.polymerController.getScrollState().progress===1?"standard":"seamed",_.gC(z.hostElement,"yt-request-panel-mode-change",{mode:l}))},10)};
_.p.tabsChanged=function(){if(this.tabs){for(var z=null,l=0,I=this.tabs.length;l<I;++l){var b=this.tabs[l].tabRenderer;if(b&&b.selected){z=l;break}}this.selected=z}};
_.p.onTabsActivate=function(z){_.gC(this.hostElement,"yt-navigate",{endpoint:this.tabs[z.detail.selected].tabRenderer.endpoint})};
xi.prototype.tabsChanged=xi.prototype.tabsChanged;xi.prototype.guideVisibleChanged=xi.prototype.guideVisibleChanged;xi.prototype.activeChanged=xi.prototype.activeChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],xi.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.X(),_.w("design:type",Array)],xi.prototype,"tabs",void 0);
_.e([_.X(),_.w("design:type",Object)],xi.prototype,"selected",void 0);_.e([_.X(),_.w("design:type",Boolean)],xi.prototype,"active",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],xi.prototype,"disableHeaderFluidWidth",void 0);_.e([_.By("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xi.prototype,"activeChanged",null);
_.e([_.By("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xi.prototype,"guideVisibleChanged",null);_.e([_.By("tabs"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xi.prototype,"tabsChanged",null);_.e([_.Q5()],xi);var jMq=[_.U.YtRendererBehavior,_.HE.YtdGuideStateAwareBehavior,xi.prototype];var JIc=2/3,z_l=_.kU(130749),lMW=function(z,l){var I=this;this.element=z;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){I.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:JIc,moveAction:function(b){I.moveAction(b)},
triggerAction:function(){I.element.isReloading=!0;_.JN(_.iY(),{visualElement:z_l});_.KE.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.Pf(_.iY(),z_l,this.layer);this.gesture=new _.P$(z,l,this.refreshConfig,"pan-down");this.attach()};
_.p=lMW.prototype;_.p.attach=function(){this.gesture.attach()};
_.p.detach=function(){this.gesture.detach()};
_.p.reset=function(){this.element.close()};
_.p.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.p.moveAction=function(z){this.element.rotation=z*360};var IMS=_.kU(130750),Ok=function(z,l,I,b,v){var M=this;this.element=z;this.parent=I;this.channelHeader=b;this.ytdReduxDispatch=v;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){M.tabsStartAtInPx=M.channelHeader.clientHeight-48;var x;(x=M.selectedTab)!=null&&x.title&&(x=_.pG().resolve(_.MB(_.OB)))&&(x=x.getCurrentPage(),M.lastVisitedTabScrollPosition=x.getScrollTop(),M.previousTab&&
((M.lastVisitedTabScrollPosition===void 0?0:M.lastVisitedTabScrollPosition<M.channelHeader.clientHeight-48)?M.scrollPositionForTabs.has(M.selectedTab.title)&&M.scrollPositionForTabs.delete(M.selectedTab.title):M.scrollPositionForTabs.set(M.selectedTab.title,x.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:b$C(),triggerAction:function(){M.navigate(M.previousTab)},
moveAction:function(x,g){M.moveAction(x,g)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-b$C(),triggerAction:function(){M.navigate(M.nextTab)},
moveAction:function(x,g){M.moveAction(x,g)}}}};
_.Pf(_.iY(),IMS,this.layer);this.gesture=new _.P$(z,l,this.tabConfig);this.attach()};
Ok.prototype.attach=function(){this.gesture.attach()};
Ok.prototype.detach=function(){this.gesture.detach()};
Ok.prototype.tabsChanged=function(z){if(z){var l=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;z=_.D(z);for(var I=z.next();!I.done;I=z.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var b=void 0;if((b=I)==null?0:b.selected)this.previousTab=l,this.selectedTab=I;l=I}l=this.gesture;z=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
l.config=z;this.scrollPositionNeedsUpdate=!0}};
Ok.prototype.moveAction=function(z,l){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;l==="right"&&this.previousTab?_.Jq_(_.UD.instance,this.previousTab.endpoint,{},""):l==="left"&&this.nextTab&&_.Jq_(_.UD.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}I=this.tabsElement._pos;l==="right"&&(z*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*z)};
var b$C=function(){var z,l;return(l=(z=_.pG().resolve(_.OB).getCurrentPage())==null?void 0:z.clientWidth)!=null?l:0};
Ok.prototype.navigate=function(z){this.element.data=void 0;if(z=z==null?void 0:z.endpoint)this.ytdReduxDispatch(Fcc(!0)),_.JN(_.iY(),{visualElement:IMS}),_.KE.instance.resolveCommand({navigateAction:{endpoint:z}},{form:{element:this.element}})};var vL0;var MtF;var ge=function(){return _.q.apply(this,arguments)||this};
_.m(ge,_.q);ge.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ge.prototype,"data",void 0);_.e([_.S({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ge);
_.r(ge,"ytd-labs-edit-renderer",function(){if(MtF!==void 0)return MtF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return MtF=z},{mode:1});var pIS;var Gj=function(){var z=_.q.apply(this,arguments)||this;z.dark=!1;z.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";z.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(Gj,_.q);Gj.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Gj.prototype.ready=function(){var z=document.documentElement.hasAttribute("dark");this.setBackgroundImage(z);this.dark=z};
Gj.prototype.onDarkModeToggledAction=function(z){this.setBackgroundImage(z);this.dark=z};
Gj.prototype.setBackgroundImage=function(z){_.R8(this.hostElement,{"--yt-labs-header-background":"url("+(z?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Gj.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Gj.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Gj.prototype,"dark",void 0);
_.e([_.S({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Gj);
_.r(Gj,"ytd-labs-header-renderer",function(){if(pIS!==void 0)return pIS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return pIS=z},{mode:1});var D2X;var NP=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return z};
_.m(NP,_.q);NP.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"}}}}}};
NP.prototype.onYtToggleButton=function(z){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",z.detail.toggled)};
NP.prototype.onManageLabsState=function(z){if(z=_.k(z,rIF))z.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?z.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&z.labsItemId===this.data.labsItemId&&(z.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Gb(this.hostElement,"yt-check-labs-opted-in-state").some(function(l){return l})&&this.data.confirmationDialogCommand?_.ZE(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.pG().resolve(_.DQ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&z.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.pG().resolve(_.DQ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
NP.prototype.onCheckLabsOptedInState=function(){var z=this.get("data.primaryButton.toggleButtonRenderer");return z?z.isToggled:!1};
_.vP.Object.defineProperties(NP.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
NP.prototype.onYtToggleButton=NP.prototype.onYtToggleButton;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],NP.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],NP.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],NP.prototype,"itemStyle",null);_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],NP.prototype,"onYtToggleButton",null);_.e([_.S({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],NP);
_.r(NP,"ytd-labs-item-renderer",function(){if(D2X!==void 0)return D2X;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return D2X=z},{mode:1});var x28;var O$K;var gLX=function(){return _.q.apply(this,arguments)||this};
_.m(gLX,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gLX.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gLX.prototype,"data",void 0);_.e([_.S({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],gLX);
_.r(gLX,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(O$K!==void 0)return O$K;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return O$K=z},{mode:1});var Gll;var Ek=function(){return _.q.apply(this,arguments)||this};
_.m(Ek,_.q);Ek.prototype.observeSuperchatChip=function(){if(this.data){var z={"--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)};_.R8(this.hostElement,z)}};
Ek.prototype.colorFromDecimal=function(z){return _.aD(Number(z||0))};
Ek.prototype.observeSuperchatChip=Ek.prototype.observeSuperchatChip;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ek.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ek.prototype,"observeSuperchatChip",null);_.e([_.S({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Ek);
_.r(Ek,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Gll!==void 0)return Gll;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Gll=z},{mode:1});var ub=function(){return _.q.apply(this,arguments)||this};
_.m(ub,_.q);ub.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"}}}};
_.vP.Object.defineProperties(ub.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Nd),_.w("design:type",Object)],ub.prototype,"ytdDismissibleItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ub.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ub.prototype,"hideMessageBlock",null);
_.e([_.S({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],ub);
_.r(ub,"ytd-live-chat-history-entry-renderer",function(){if(x28!==void 0)return x28;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return x28=z},{mode:1});var N$8;var ELq=function(){return _.q.apply(this,arguments)||this};
_.m(ELq,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ELq.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ELq.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],ELq);
_.r(ELq,"ytd-channel-options-renderer",function(){if(N$8!==void 0)return N$8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return N$8=z},{mode:1});var unW;var Zn=function(){return _.q.apply(this,arguments)||this};
_.m(Zn,_.q);Zn.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Zn.prototype,"data",void 0);_.e([_.S({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Zn);
_.r(Zn,"ytd-settings-email-item-renderer",function(){if(unW!==void 0)return unW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return unW=z},{mode:1});var Z$y;var H1=function(){return _.q.apply(this,arguments)||this};
_.m(H1,_.q);H1.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"}}}};
H1.prototype.getExpansionIcon=function(z){return z?"COLLAPSE":"EXPAND"};
H1.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.vP.Object.defineProperties(H1.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],H1.prototype,"data",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],H1.prototype,"expanded",void 0);_.e([_.B("expanded"),_.w("design:type",String),_.w("design:paramtypes",[])],H1.prototype,"emailListExpanded",null);
_.e([_.qX("#options"),_.w("design:type",Object)],H1.prototype,"options",void 0);_.e([_.S({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],H1);
_.r(H1,"ytd-settings-email-list-renderer",function(){if(Z$y!==void 0)return Z$y;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Z$y=z},{mode:1});var H$q;var yr=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return z};
_.m(yr,_.q);yr.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"}}}};
yr.prototype.handleSignalActionSubmitForm=function(){var z,l=(z=this.formRenderer)==null?void 0:z.getForm();l&&this.data.serviceEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},l,{element:this.hostElement})})};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],yr.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yr.prototype,"data",void 0);_.e([_.qX("yt-form-renderer"),_.w("design:type",Object)],yr.prototype,"formRenderer",void 0);
_.e([_.S({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],yr);
_.r(yr,"ytd-settings-gaia-link-renderer",function(){if(H$q!==void 0)return H$q;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return H$q=z},{mode:1});var yhy;var fF=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return z};
_.m(fF,_.q);fF.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.QY1()&&this.set("data.hidden",!1)};
fF.prototype.onSwitchReady=function(){var z=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.C("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.FFK().then(function(l){l&&(Notification.permission==="default"?z.set("data.hidden",!1):Notification.permission==="granted"&&_.$a("NotificationsDisabled").then(function(I){I||_.Gb(z.hostElement,"yt-toggle-settings-switch",[z.data.id,!I]);z.set("data.hidden",!1)}).catch(function(){}))})})};
fF.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}}}}};
fF.prototype.handleUpdateOptionsCommand=function(z){(z=_.k(z,_.oZA))&&this.data&&this.data.id===z.id&&(this.set("data.hidden",z.hidden),z.text!==void 0&&this.set("data.text",z.text),z.clearOptions&&this.set("data.options",[]))};
fF.prototype.onSwitchReady=fF.prototype.onSwitchReady;fF.prototype.dataChanged=fF.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],fF.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fF.prototype,"data",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fF.prototype,"dataChanged",null);_.e([_.tP("yt-settings-switch-ready"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fF.prototype,"onSwitchReady",null);_.e([_.S({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],fF);
_.r(fF,"ytd-settings-options-renderer",function(){if(yhy!==void 0)return yhy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yhy=z},{mode:1});var fMF;var CF=function(){return _.q.apply(this,arguments)||this};
_.m(CF,_.q);CF.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
CF.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
CF.prototype.onYtExpanderMoreTapped=CF.prototype.onYtExpanderMoreTapped;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],CF.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],CF.prototype,"data",void 0);
_.e([_.tP("yt-expander-more-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CF.prototype,"onYtExpanderMoreTapped",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],CF);
_.r(CF,"ytd-product-details-description-renderer",function(){if(fMF!==void 0)return fMF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return fMF=z},{mode:1});var CyX;var ki=function(){var z=_.q.apply(this,arguments)||this;z.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";z.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";z.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";z.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return z};
_.m(ki,_.q);ki.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vP.Object.defineProperties(ki.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:(l=z.offerData)==null?void 0:l.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?void 0:z.purchaseButtonRenderers)!==void 0&&((l=this.data)==null?void 0:l.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.formattedFromMerchantText)&&(!((l=this.data)==null||!l.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ki.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ki.prototype,"data",void 0);
_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ki.prototype,"shippingIcon",void 0);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ki.prototype,"shippingAddressIcon",void 0);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ki.prototype,"googleGuaranteeIcon",void 0);
_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?String:void 0}),_.w("design:type",Object)],ki.prototype,"returnPolicyIcon",void 0);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ki.prototype,"showAdditionalFees",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ki.prototype,"showMultiPurchaseButtons",null);
_.e([_.B("data","showMultiPurchaseButtons"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ki.prototype,"showPurchaseData",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ki);
_.r(ki,"ytd-product-details-hero-offer-renderer",function(){if(CyX!==void 0)return CyX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return CyX=z},{mode:1});var klc;var R_1;var Ri=function(){return _.q.apply(this,arguments)||this};
_.m(Ri,_.q);_.p=Ri.prototype;_.p.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.p.onKeyDown=function(z){z=z.keyCode;z!==13&&z!==32||this.handleSelection()};
_.p.onMouseEnterImage=function(){var z;((z=this.data)==null?void 0:z.thumbnailDetails)!==void 0&&_.EK(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.p.onMouseLeaveImage=function(){_.EK(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.p.handleSelection=function(){this.data&&_.gC(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.vP.Object.defineProperties(Ri.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.isSelected)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ri.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],Ri.prototype,"isSelected",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Ri);
_.r(Ri,"ytd-product-details-thumbnail-renderer",function(){if(R_1!==void 0)return R_1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return R_1=z},{mode:1});var me=function(){var z=_.q.apply(this,arguments)||this;var l={};z.actionMap=(l["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",l["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",l);z.selectedThumbnailIndex=0;z.selectItem=function(I){I.target.onKeyDown(I)};
return z};
_.m(me,_.q);_.p=me.prototype;_.p.handlePreviewImageSelect=function(z){this.hoverThumbnail=z};
_.p.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.p.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.p.onThumbnailSelected=function(z,l){this.selectedThumbnailIndex=l};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.p.updateOffset=function(){var z=_.Hy(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-z));this.ytdHorizontalListBehavior.reposition_()};
_.vP.Object.defineProperties(me.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null?0:z.imageRenderer){var l,I;return((l=this.data)==null?void 0:(I=l.imageRenderer)==null?void 0:I.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var z;if((z=this.data)==null?0:z.imageRenderer){var l;return(l=_.k(this.data.imageRenderer[this.selectedThumbnailIndex],wa0))==null?void 0:l.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var z=this,l,I,b,v=(b=(l=this.data)==null?void 0:(I=l.imageRenderer)==null?void 0:I.map(function(M,x){return{productDetailsThumbnailRenderer:Object.assign({},_.k(M,wa0),{index:x,isSelected:x===z.selectedThumbnailIndex})}}))!=null?b:[];
return Object.assign({},this.data,{imageRenderer:v})}}});
me.prototype.updateOffset=me.prototype.updateOffset;me.prototype.dataChanged=me.prototype.dataChanged;me.prototype.onThumbnailSelected=me.prototype.onThumbnailSelected;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Tq.YtdHorizontalListBehavior),_.w("design:type",Object)],me.prototype,"ytdHorizontalListBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],me.prototype,"componentBehavior",void 0);_.e([_.t([_.wl.YtActionHandlerBehavior]),_.w("design:type",Object)],me.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],me.prototype,"data",void 0);_.e([_.X({value:"$.items.children"}),_.w("design:type",String)],me.prototype,"itemsPath",void 0);_.e([_.X({value:3}),_.w("design:type",Number)],me.prototype,"initialCount",void 0);
_.e([_.qX("#items"),_.w("design:type",Object)],me.prototype,"items",void 0);_.e([_.X(),_.w("design:type",Object)],me.prototype,"selectedThumbnailIndex",void 0);_.e([_.X(),_.w("design:type",Object)],me.prototype,"hoverThumbnail",void 0);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],me.prototype,"showThumbnails",null);
_.e([_.tP("ytd-product-details-thumbnail-renderer-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Number]),_.w("design:returntype")],me.prototype,"onThumbnailSelected",null);_.e([_.B("data","selectedThumbnailIndex","hoverThumbnail"),_.w("design:type",Object),_.w("design:paramtypes",[])],me.prototype,"thumbnailDetails",null);_.e([_.B("data","selectedThumbnailIndex"),_.w("design:type",Object),_.w("design:paramtypes",[])],me.prototype,"populatedData",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],me.prototype,"dataChanged",null);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],me.prototype,"updateOffset",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],me);
_.r(me,"ytd-product-details-image-carousel-renderer",function(){if(klc!==void 0)return klc;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return klc=z},{mode:_.yP("kevlar_poly_si_batch_j079")?1:2});var m2K;var KF=function(){return _.q.apply(this,arguments)||this};
_.m(KF,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],KF.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],KF.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],KF);
_.r(KF,"ytd-product-details-offer-renderer",function(){if(m2K!==void 0)return m2K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return m2K=z},{mode:1});var KCF;var tF=function(){var z=_.q.apply(this,arguments)||this;z.isOffersHidden=!0;return z};
_.m(tF,_.q);tF.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var z,l=_.k((z=this.data)==null?void 0:z.viewOffersButton,_.xm);l&&this.ytRendererBehavior.logExplicitClick(l)};
tF.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.vP.Object.defineProperties(tF.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b;return(I=_.k((z=this.data)==null?void 0:(l=z.offers)==null?void 0:l[0],Lcl))==null?void 0:(b=I.offerData)==null?void 0:b.vendorLogoUrl}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],tF.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],tF.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],tF.prototype,"isOffersHidden",void 0);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],tF.prototype,"firstOfferVendorLogoUrl",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],tF);
_.r(tF,"ytd-product-details-offers-container-renderer",function(){if(KCF!==void 0)return KCF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return KCF=z},{mode:1});var tt8;var B$K;var B1=function(){return _.q.apply(this,arguments)||this};
_.m(B1,_.q);B1.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
B1.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.EK(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
B1.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.EK(this,"ytd-product-details-variant-image-unselect")};
_.vP.Object.defineProperties(B1.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 z;return((z=this.data)==null?void 0:z.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?void 0:z.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var z;if(((z=this.data)==null?void 0:z.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var z,l;return this.isUnavailable?(z=this.data)==null?void 0:z.variantOptionUnavailableAccessibilityLabel:(l=this.data)==null?void 0:l.variantOptionAccessibilityLabel}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],B1.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],B1.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],B1.prototype,"displayType",void 0);
_.e([_.B("displayType","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"isImageButton",null);_.e([_.B("displayType","data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"isPillButton",null);_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"isActive",null);
_.e([_.B("data"),_.X({reflectToAttribute:!0}),_.w("design:type",Boolean),_.w("design:paramtypes",[])],B1.prototype,"isUnavailable",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],B1.prototype,"thumbnailDetails",null);_.e([_.B("isUnavailable","data"),_.w("design:type",Object),_.w("design:paramtypes",[])],B1.prototype,"accessibilityLabel",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],B1);
_.r(B1,"ytd-product-details-variant-option-renderer",function(){if(B$K!==void 0)return B$K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return B$K=z},{mode:1});var XIX;var Xp=function(){var z=_.q.apply(this,arguments)||this;z.variantsExpanded=!1;z.hideShowMoreLessVariantButton=!0;z.initialized=!1;z.computeVariantsDebouncer=null;z.computeVariants=function(l){l=l===void 0?!1:l;z.variantsExpanded||z.showOptions()||!l||(z.variantsExpanded=!0);if(z.variantsExpanded){l=_.D(z.items.children);for(var I=l.next();!I.done;I=l.next())I.value.hidden=!1}z.initialized=!0};
return z};
_.m(Xp,_.q);_.p=Xp.prototype;_.p.ready=function(){var z=this;setTimeout(function(){z.computeVariants(!0)})};
_.p.showOptions=function(){for(var z=_.D(this.items.children),l=z.next();!l.done;l=z.next())l.value.hidden=!0;var I=this.container.getBoundingClientRect().width,b=0,v=z=0;l=!1;for(var M=_.D(this.items.children),x=M.next();!x.done;x=M.next()){x=x.value;x.hidden=!1;var g=x.getBoundingClientRect().width;if(b+g<I)b+=g;else if(++v<2)b=g;else break;z+=1;x.hasAttribute("is-active")&&(l=!0)}for(I=z;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=z===this.items.children.length;
return l};
_.p.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Xb(this.computeVariantsDebouncer,_.ug.after(100),this.computeVariants)};
_.p.onShowMoreLessVariantsButtonClick=function(){var z;(z=this.data)!=null&&z.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.p.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.vP.Object.defineProperties(Xp.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.data)==null?void 0:(l=z.variantOptionRenderers)==null?void 0:l.find(function(M){return _.k(M,Wc4).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),b,v;
return(v=(b=_.k(I,Wc4))==null?void 0:b.name)!=null?v:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.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"}}}});
Xp.prototype.debouncedComputeVariants=Xp.prototype.debouncedComputeVariants;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Xp.prototype,"componentBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],Xp.prototype,"ironResizableBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Xp.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Xp.prototype,"variantsExpanded",void 0);_.e([_.X(),_.w("design:type",Object)],Xp.prototype,"hideShowMoreLessVariantButton",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Xp.prototype,"initialized",void 0);_.e([_.qX("#items"),_.w("design:type",HTMLDivElement)],Xp.prototype,"items",void 0);_.e([_.qX("#container"),_.w("design:type",HTMLDivElement)],Xp.prototype,"container",void 0);
_.e([_.qX("#more-variants-button"),_.w("design:type",HTMLElement)],Xp.prototype,"moreVariantsButton",void 0);_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],Xp.prototype,"selectedOptionName",null);_.e([_.By("data","variantsExpanded"),_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Xp.prototype,"debouncedComputeVariants",null);
_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],Xp.prototype,"displayType",null);_.e([_.B("displayType"),_.w("design:type",Object),_.w("design:paramtypes",[])],Xp.prototype,"variantItemsClassname",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Xp);
_.r(Xp,"ytd-product-details-variant-renderer",function(){if(XIX!==void 0)return XIX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return XIX=z},{mode:1});var qP=function(){return _.q.apply(this,arguments)||this};
_.m(qP,_.q);
qP.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"}}}};
_.vP.Object.defineProperties(qP.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(l=_.k((z=this.data)==null?void 0:z.offersContainerRenderer,ntS))==null?void 0:l.offers;return I!==void 0&&(I==null?void 0:I.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 z,l,I;return((I=(z=this.data)==null?void 0:(l=z.variants)==null?void 0:l.map(function(b){var v,M;b=(M=(v=_.k(b,AI1))==null?void 0:v.variantOptionRenderers)==null?void 0:M.find(function(g){var G;return((G=_.k(g,Wc4))==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var x;return(x=_.k(b,Wc4))==null?void 0:x.name}).filter(function(b){return typeof b==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var z,l,I,b=(l=_.k((z=this.data)==null?void 0:z.shoppingFlaggingRenderer,U6C))==null?void 0:(I=l.reportButton)==null?void 0:I.buttonRenderer;if(b)return{text:b.text,command:b.command,icon:{iconType:"FLAG"},accessibilityData:b.accessibilityData,trackingParams:b.trackingParams,loggingDirectives:b.loggingDirectives}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],qP.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qP.prototype,"data",void 0);_.e([_.qX("#image-carousel-renderer"),_.w("design:type",Object)],qP.prototype,"imageCarouselRenderer",void 0);
_.e([_.qX("#hero-offer-renderer"),_.w("design:type",Object)],qP.prototype,"productDetailsHeroOfferRenderer",void 0);_.e([_.qX("#variants"),_.w("design:type",Object)],qP.prototype,"productDetailsVariantRenderer",void 0);_.e([_.qX("#offers"),_.w("design:type",Object)],qP.prototype,"productDetailsOffersContainerRenderer",void 0);_.e([_.qX("#description-renderer"),_.w("design:type",Object)],qP.prototype,"productDetailsDescriptionRenderer",void 0);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qP.prototype,"showPurchaseData",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qP.prototype,"showHeroOfferRenderer",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qP.prototype,"showBrandText",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qP.prototype,"showOffers",null);
_.e([_.B("showOffers","showPurchaseData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qP.prototype,"showBuySeparator",null);_.e([_.B("showOffers","showPurchaseData"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],qP.prototype,"showBuyCard",null);_.e([_.B("data"),_.w("design:type",String),_.w("design:paramtypes",[])],qP.prototype,"selectedVariantsText",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],qP.prototype,"shoppingReportingButtonData",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],qP);
_.r(qP,"ytd-product-details-renderer",function(){if(tt8!==void 0)return tt8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tt8=z},{mode:1});var qJS;var i$0;var FCK;var ib=function(){return _.q.apply(this,arguments)||this};
_.m(ib,_.q);ib.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vP.Object.defineProperties(ib.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ib.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],ib.prototype,"formattedAmount",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ib.prototype,"ariaLabel",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.style"),_.w("design:type",String),_.w("design:paramtypes",[])],ib.prototype,"vcBalanceWidgetStyle",null);_.e([_.Wy({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],ib);
_.r(ib,"yt-vc-balance-renderer",function(){if(FCK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;i$0===void 0&&(i$0=document.createElement("template"));var b=i$0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);FCK=z}z=FCK;return z},{mode:2});_.sW("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Fp=function(){return _.q.apply(this,arguments)||this};
_.m(Fp,_.q);_.vP.Object.defineProperties(Fp.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Fp.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Fp.prototype,"data",void 0);_.e([_.X({selectorArgs:["data.vcBalanceEntityKey"],selector:function(z,l){return _.Cc(z.entities,"vcBalanceEntity",l)}}),
_.w("design:type",Object)],Fp.prototype,"vcBalanceEntity",void 0);_.e([_.B("vcBalanceEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],Fp.prototype,"formattedAmount",null);_.e([_.B("vcBalanceEntity"),_.w("design:type",String),_.w("design:paramtypes",[])],Fp.prototype,"vcBalanceAriaLabel",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Fp);
_.r(Fp,"ytd-vc-balance-renderer",function(){if(qJS!==void 0)return qJS;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return qJS=z},{mode:1});var Qkc;var Qr=function(){var z=_.q.apply(this,arguments)||this;z.rotation=0;z.isReloading=!1;return z};
_.m(Qr,_.q);Qr.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Qr.prototype.reset=function(){this.hostElement.style.opacity=""};
Qr.prototype.close=function(){var z=this;return _.O(function(l){if(l.nextAddress==1)return l.yield(z.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);z.hostElement.style.opacity="0";_.qe(l)})};
Qr.prototype.rotationChanged=Qr.prototype.rotationChanged;_.e([_.X(),_.w("design:type",Object)],Qr.prototype,"rotation",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Qr.prototype,"isReloading",void 0);_.e([_.qX("#icon"),_.w("design:type",HTMLElement)],Qr.prototype,"icon",void 0);_.e([_.By("rotation"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qr.prototype,"rotationChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-refresh"})],Qr);
_.r(Qr,"ytd-refresh",function(){if(Qkc!==void 0)return Qkc;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Qkc=z},{mode:1});var YJc;var Yi=function(){return _.q.apply(this,arguments)||this};
_.m(Yi,_.q);Yi.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"}}}};
Yi.prototype.dataChanged=function(){if(this.data){var z=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var l=_.ZY(this.data.banner.thumbnails,this.hostElement.clientWidth);l&&(l.indexOf("//")===0&&(l="https:"+l),this.hasBannerArt=!0,_.R8(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+l+")"}))}this.hasBannerArt!==z&&_.Hy(this.hostElement).querySelector("#header").fire("iron-resize")}};
Yi.prototype.updateSelectedFromBinding=function(z){this.selected=z.detail.value};
Yi.prototype.dataChanged=Yi.prototype.dataChanged;_.e([_.t(jMq),_.w("design:type",Object)],Yi.prototype,"ytdTabbedHeaderBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.u0),_.w("design:type",Object)],Yi.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Yi.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Yi.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yi.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],Yi.prototype,"selected",void 0);_.e([_.X(),_.w("design:type",Boolean)],Yi.prototype,"active",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Yi.prototype,"hasBannerArt",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yi.prototype,"dataChanged",null);_.e([_.S({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Yi);
_.r(Yi,"ytd-interactive-tabbed-header-renderer",function(){if(YJc!==void 0)return YJc;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YJc=z},{mode:1});var T$c;var Tj=function(){return _.q.apply(this,arguments)||this};
_.m(Tj,_.q);Tj.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Tj.prototype.computeActionsAlignment=function(z){return(z==null?void 0:z.actionsAlignment)||""};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Tj.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.w("design:type",String)],Tj.prototype,"actionsAlignment",void 0);_.e([_.S({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Tj);
_.r(Tj,"ytd-page-footer-renderer",function(){if(T$c!==void 0)return T$c;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return T$c=z},{mode:1});var chy;var SJX;var c1=function(){var z=_.q.apply(this,arguments)||this;z.isEditing=!1;z.useSlot=!1;z.isMultiline=!1;return z};
_.m(c1,_.q);_.p=c1.prototype;_.p.onKeydown=function(z){if(z.keyCode===13&&!this.isMultiline)this.onSave();else if(z.keyCode===27)this.onCancel()};
_.p.computeComponentStyle=function(z){return(z==null?0:z.style)?z.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.p.computeisMultiline=function(z){if(this.multilineOverride!==void 0)return this.multilineOverride;var l,I;return!!(z==null?0:(l=z.formField)==null?0:(I=l.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.p.computeTextDisplayed=function(z,l){if(z)return z;if(l)return l};
_.p.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.p.onSave=function(){if(this.textForm.validate()){this.textForm.save();var z=this.textForm.value;if(z)this.set("data.textDisplayed",_.lc(z));else{var l;((l=this.data)==null?0:l.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.kY("inline-form-changed",this.data));this.isEditing=!1}};
_.p.onCancel=function(){var z=_.ID(this.data.textDisplayed);z===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(z);this.isEditing=!1};
c1.prototype.onKeydown=c1.prototype.onKeydown;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],c1.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],c1.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],c1.prototype,"isEditing",void 0);_.e([_.X(),_.w("design:type",Object)],c1.prototype,"useSlot",void 0);_.e([_.X(),_.w("design:type",Boolean)],c1.prototype,"multilineOverride",void 0);_.e([_.X(),_.w("design:type",Boolean)],c1.prototype,"enableOverlayTheme",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.w("design:type",String)],c1.prototype,"componentStyle",void 0);
_.e([_.X({computed:"computeisMultiline(data)"}),_.w("design:type",Object)],c1.prototype,"isMultiline",void 0);_.e([_.qX("#text-form"),_.w("design:type",Object)],c1.prototype,"textForm",void 0);_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],c1.prototype,"onKeydown",null);_.e([_.S({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],c1);
_.r(c1,"ytd-inline-form-renderer",function(){if(SJX!==void 0)return SJX;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return SJX=z},{mode:1});var d2q;var Sv=function(){var z=_.q.apply(this,arguments)||this;z.previousSelectValue=void 0;z.selectedItemMessage=void 0;return z};
_.m(Sv,_.q);Sv.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Sv.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var z,l,I,b,v=(z=this.data)==null?void 0:(l=z.dropdown)==null?void 0:(I=l.dropdownRenderer)==null?void 0:(b=I.entries)==null?void 0:b.map(function(g){return g.privacyDropdownItemRenderer});
z=_.D(v!=null?v:[]);for(l=z.next();!l.done;l=z.next())if((l=l.value)&&l.int32Value===this.selectedValue){this.selectedItemMessage=l.itemMessage;break}}else this.selectedItemMessage=void 0;var M;(M=this.onValueChanged)==null||M.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var x;(x=this.data)!=null&&x.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Sv.prototype.onValueChangedForSelectedValue=function(z){this.selectedValue=z.detail.value};
Sv.prototype.selectedValueChanged=Sv.prototype.selectedValueChanged;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],Sv.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Sv.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Sv.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],Sv.prototype,"theme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Number)],Sv.prototype,"selectedValue",void 0);_.e([_.X(),_.w("design:type",Function)],Sv.prototype,"onValueChanged",void 0);
_.e([_.YE("selectedValue"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Sv.prototype,"selectedValueChanged",null);_.e([_.S({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Sv);
_.r(Sv,"ytd-dropdown-form-field-renderer",function(){if(d2q!==void 0)return d2q;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return d2q=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var oLC;var de=function(){return _.q.apply(this,arguments)||this};
_.m(de,_.q);_.vP.Object.defineProperties(de.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var z=[],l=_.D(this.data||[]),I=l.next();!I.done;I=l.next())(I=_.k(I.value,a2S))&&z.push(I);return z}}});
_.e([_.X(),_.w("design:type",Array)],de.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],de.prototype,"byline",null);_.e([_.S({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],de);
_.r(de,"ytd-playlist-byline-renderer",function(){if(oLC!==void 0)return oLC;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return oLC=z},{mode:1});var PyC;var oi=function(){var z=_.q.apply(this,arguments)||this;z.rtlBullet=_.C("web_playlist_stats_rtl_bullet_icon_killswitch");z.modern=_.C("web_modern_buttons");z.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return z};
_.m(oi,_.q);_.p=oi.prototype;_.p.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"}}}}};
_.p.attached=function(){};
_.p.computeIsCustomThumbnail=function(z){return z?!!z.playlistCustomThumbnailRenderer:!1};
_.p.onYtNavigate=function(z,l){if(l&&l.actions&&l.actions.indexOf("shuffle")>-1){z=_.pG().resolve(_.NG);var I=l.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);l.tempData=I;z.isShuffleNextPlaylist=!0}};
_.p.onUpdatePlaylistAction=function(z){var l;z=(l=_.k(z,_.NTn))==null?void 0:l.updatedRenderer;if(l=_.k(z,egF))this.data=l};
_.p.computeStyleType=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(z){return z==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.p.computeHideThumbnailAria=function(z){if(z==null?0:z.thumbnailOverlays)for(var l=0;l<z.thumbnailOverlays.length;l++){var I=void 0;if((I=z.thumbnailOverlays[l])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
oi.prototype.onYtNavigate=oi.prototype.onYtNavigate;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],oi.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],oi.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],oi.prototype,"rtlBullet",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.w("design:type",String)],oi.prototype,"styleType",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.w("design:type",Number)],oi.prototype,"thumbnailWidth",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],oi.prototype,"modern",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.w("design:type",Boolean)],oi.prototype,"isCustomThumbnail",void 0);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Object]),_.w("design:returntype")],oi.prototype,"onYtNavigate",null);_.e([_.S({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],oi);
_.r(oi,"ytd-playlist-sidebar-primary-info-renderer",function(){if(PyC!==void 0)return PyC;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PyC=z},{mode:1});var h_K;var P1=function(){return _.q.apply(this,arguments)||this};
_.m(P1,_.q);P1.prototype.computeOwnerVisibility=function(z){return!(!z.videoOwner&&!z.button)};
P1.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],P1.prototype,"data",void 0);_.e([_.S({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],P1);
_.r(P1,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(h_K!==void 0)return h_K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return h_K=z},{mode:1});var sk8;var hF=function(){var z=_.q.apply(this,arguments)||this;z.expanded=!1;z.isCompact=!1;return z};
_.m(hF,_.q);_.p=hF.prototype;_.p.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.p.dataChanged=function(){this.data&&_.p4(_.Hy(this.text),_.eIn(_.WA_,_.ID(this.data.text||null)))};
_.p.computeAutoScrollEnabled=function(z,l){return z&&!l};
_.p.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.p.toggleOnTap=function(){this.expanded=!this.expanded};
hF.prototype.expandedChanged=hF.prototype.expandedChanged;hF.prototype.dataChanged=hF.prototype.dataChanged;_.e([_.t(_.Qb8),_.w("design:type",Object)],hF.prototype,"ytdAutoScrollBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],hF.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],hF.prototype,"expanded",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],hF.prototype,"isCompact",void 0);_.e([_.X({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.w("design:type",Boolean)],hF.prototype,"autoScrollEnabled",void 0);_.e([_.qX("#text"),_.w("design:type",Object)],hF.prototype,"text",void 0);_.e([_.qX("#expander-icon"),_.w("design:type",Object)],hF.prototype,"expanderIcon",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hF.prototype,"dataChanged",null);_.e([_.By("expanded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],hF.prototype,"expandedChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],hF);
_.r(hF,"ytd-channel-legal-info-renderer",function(){if(sk8!==void 0)return sk8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sk8=z},{mode:1});var rh1;var $2y=_.mY("DOWNLOAD",{},"Download"),e_8=_.mY("DOWNLOADING",{},"Downloading"),wIF=_.mY("DOWNLOADED",{},"Downloaded"),sk=function(){var z=_.q.apply(this,arguments)||this;z.downloadProgress=0;z.isDownloadComplete=!1;z.transferState="TRANSFER_STATE_UNKNOWN";return z};
_.m(sk,_.q);_.p=sk.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var z;(z=this.data)!=null&&z.tooltip||(z=_.Am(_.vF().getState(),this.playlistId),this.updateButtonState(z))};
_.p.computePlaylistId=function(z){return z};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(z){if(this.data&&(this.data.tooltip!==e_8||!_.ii(z))){this.isDownloadComplete=!1;switch(z){case "TRANSFER_STATE_UNKNOWN":z=$2y;var l="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":z=wIF;l="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":z=e_8;l="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:z=$2y,l="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var b=Object.assign({},this.data);b.tooltip=z;b.accessibilityData={accessibilityData:{label:z}};b.icon={iconType:l};b.size="SIZE_DEFAULT";_.k(b.command,_.i1)&&(_.k(b.command,_.i1).action=I);this.set("data",b)}};
_.p.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var z="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?z="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?z="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?z="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?z="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?z="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(z="OFFLINE_PIN",this.isDownloadComplete=!0);var l;z!==((l=this.data.icon)==null?void 0:l.iconType)&&(l=Object.assign({},this.data),l.tooltip=e_8,l.accessibilityData={accessibilityData:{label:e_8}},l.icon={iconType:z},_.k(l.command,_.i1)&&(_.k(l.command,_.i1).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",l))}};
sk.prototype.updateProgress=sk.prototype.updateProgress;sk.prototype.onTransferStateChanged=sk.prototype.onTransferStateChanged;sk.prototype.dataChanged=sk.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],sk.prototype,"ytdReduxBehavior",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sk.prototype,"forceIconButton",void 0);
_.e([_.X({value:!0}),_.w("design:type",Boolean)],sk.prototype,"forceIconOnly",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sk.prototype,"overrides",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sk.prototype,"buttonTooltipPosition",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sk.prototype,"styleActionButton",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sk.prototype,"disableTextTransform",void 0);
_.e([_.X({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.w("design:type",String)],sk.prototype,"playlistId",void 0);_.e([_.X(),_.w("design:type",Object)],sk.prototype,"data",void 0);_.e([_.X({selector:_.fLQ,selectorArgs:["playlistId"]}),_.w("design:type",Object)],sk.prototype,"downloadProgress",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sk.prototype,"isDownloadComplete",void 0);
_.e([_.X({selector:_.Am,selectorArgs:["playlistId"]}),_.w("design:type",String)],sk.prototype,"transferState",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],sk.prototype,"showTooltips",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],sk.prototype,"sendCommandWhenDisabled",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],sk.prototype,"disabled",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sk.prototype,"dataChanged",null);_.e([_.YE("transferState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sk.prototype,"onTransferStateChanged",null);_.e([_.YE("downloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sk.prototype,"updateProgress",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],sk);
_.r(sk,"ytd-download-playlist-button-renderer",function(){if(rh1!==void 0)return rh1;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return rh1=z},{mode:1});var Ahs;_.uO(_.amw,"thumbnail-overlay-button-view-model",{props:{data:_.mB,lockupExperiments:_.mB}});var re=function(){var z=_.q.apply(this,arguments)||this;z.isSquare=!1;z.isVertical=!1;return z};
_.m(re,_.q);re.prototype.computeIsSquare=function(z){return z!=null&&z.thumbnail?Kcq(z.thumbnail)==="SQUARE":!1};
re.prototype.computeIsVertical=function(z){return z!=null&&z.thumbnail?Kcq(z.thumbnail)==="VERTICAL":!1};
re.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.w("design:type",Object)],re.prototype,"isSquare",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.w("design:type",Object)],re.prototype,"isVertical",void 0);
_.e([_.X(),_.w("design:type",Object)],re.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],re);
_.r(re,"ytd-hero-playlist-thumbnail-renderer",function(){if(Ahs!==void 0)return Ahs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ahs=z},{mode:1});var $i=function(){var z=_.q.apply(this,arguments)||this;z.isDarkTheme=!1;z.isUltraWide=!1;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return z};
_.m($i,_.q);_.p=$i.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.pG();var z;(z=_.pG().resolve(_.MB(_.Pz)))!=null&&(z.headerElement=this.hostElement)};
_.p.detached=function(){var z;(z=_.pG().resolve(_.MB(_.Pz)))!=null&&(z.headerElement=void 0)};
_.p.onUpdateHeader=function(z){(z=z.detail)&&this.set("data",z)};
_.p.computeTextDisplayed=function(z){if(z)return z.textDisplayed?z.textDisplayed:z.placeholder};
_.p.gradientColorToLinearGradientStop=function(z){var l=this.isDarkTheme?z.darkThemeColor:z.lightThemeColor;return l?_.aD(l)+" "+((z==null?void 0:z.startLocation)||0)*100+"%":"transparent"};
_.p.onWindowResize=function(){var z;((z=this.data)==null?0:z.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.p.onIronResize=function(z){this.isUltraWide=!z.detail.value};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.onUpdatePlaylistName=function(z){var l=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},z.detail.value));_.IR(this,function(){var I;(I=l.editableTitle)==null||I.resize()})};
_.p.onUpdatePlaylistDescription=function(z){var l=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},z.detail.value));_.IR(this,function(){var I;(I=l.editableDescriptionInlineExpander)==null||I.resize()})};
_.p.getCinematicData=function(z){return _.k(z==null?void 0:z.cinematicContainer,_.Ii)};
_.vP.Object.defineProperties($i.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 z,l=(z=this.getCinematicData(this.data))==null?void 0:z.config;return(z=this.isDarkTheme?l==null?void 0:l.darkThemeBackgroundColor:l==null?void 0:l.lightThemeBackgroundColor)?"background-color:"+_.Ur(z)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var z;return _.k((z=this.data)==null?void 0:z.descriptionForm,$6q)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var z=this,l,I,b;return"background:linear-gradient(to bottom, "+(((b=(l=this.getCinematicData(this.data))==null?void 0:(I=l.gradientColorConfig)==null?void 0:I.map(function(v){return z.gradientColorToLinearGradientStop(v)}))==null?void 0:b.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var z;return _.ID((z=this.data)==null?void 0:z.descriptionTapText)}}});
$i.prototype.onUpdateHeader=$i.prototype.onUpdateHeader;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],$i.prototype,"actionHandlerBehavior",void 0);_.e([_.qX("#description-inline-expander"),_.w("design:type",Object)],$i.prototype,"descriptionInlineExpander",void 0);
_.e([_.qX("#editable-description-inline-expander"),_.w("design:type",Object)],$i.prototype,"editableDescriptionInlineExpander",void 0);_.e([_.X(),_.w("design:type",Object)],$i.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],$i.prototype,"isUltraWide",void 0);_.e([_.qX("#editable-title-display"),_.w("design:type",Object)],$i.prototype,"editableTitle",void 0);_.e([_.B("isUltraWide"),_.w("design:type",Object),_.w("design:paramtypes",[])],$i.prototype,"maxDescriptionLines",null);
_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$i.prototype,"noCinematicData",null);_.e([_.tP("yt-new-playlist-header"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],$i.prototype,"onUpdateHeader",null);_.e([_.B("data","isDarkTheme"),_.w("design:type",Object),_.w("design:paramtypes",[])],$i.prototype,"backgroundStyle",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$i.prototype,"descriptionFormData",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$i.prototype,"getDropdownTheme",null);_.e([_.B("data","isDarkTheme"),_.w("design:type",String),_.w("design:paramtypes",[])],$i.prototype,"gradientStyle",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$i.prototype,"descriptionTapText",null);
_.e([_.S({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],$i);
_.r($i,"ytd-playlist-header-renderer",function(){if(chy!==void 0)return chy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return chy=z},{mode:_.yP("kevlar_poly_si_batch_j078")?1:2});var WCF;var nLy;var ev=function(){return _.q.apply(this,arguments)||this};
_.m(ev,_.q);ev.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ev.prototype,"data",void 0);_.e([_.S({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ev);
_.r(ev,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(nLy!==void 0)return nLy;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return nLy=z},{mode:1});var we=function(){return _.q.apply(this,arguments)||this};
_.m(we,_.q);
we.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}}}}};
we.prototype.computeUsePremiumShowStyle=function(z){if(!z||!z.items)return!1;for(var l=0;l<z.items.length;l++)if(_.k(z.items[l],egF)){var I=void 0;return((I=_.k(z.items[l],egF))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],we.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.w("design:type",Boolean)],we.prototype,"usePremiumShowStyle",void 0);
_.e([_.S({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],we);
_.r(we,"ytd-playlist-sidebar-renderer",function(){if(WCF!==void 0)return WCF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return WCF=z},{mode:1});var LC8;var U2K;var aMW=function(z,l,I,b,v,M,x,g){this.minWidth=z;this.minHeight=l;this.recommendedWidth=I;this.recommendedHeight=b;this.JSC$22159_maxFileSize=v;this.title=M;this.bannerGalleryTitle=x;this.channelId=g;this.picker_=null;z=_.zG7("yt-banner");l=z.addView;I=(new YOK("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$22159_maxFileSize;b=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=b;l.call(z,I);z.addView(new _.$Z);l=z.addView;I=new _.$Z;
I.opts.type="ytbanner";l.call(z,I.JSC$10074_setLabel(this.bannerGalleryTitle));l=z.setTitle(this.title).setSize(1E3);l.urlParamMap_.set("thumbs","orig");I=this.minWidth;b=this.minHeight;if(isNaN(I)||isNaN(b))throw Error("gb`"+I+"`"+b);l.urlParamMap_.set("minSize",I+"x"+b);l.urlParamMap_.set("cropMode","ytcb");this.builder_=z};
aMW.prototype.open=function(){var z=this;return new _.yK(function(l,I){_.Q34(z.builder_,function(b){b.action=="picked"?l(b):b.action=="cancel"&&I(Error("Bo"))});
z.picker_&&z.picker_.dispose();z.picker_=z.builder_.build();z.picker_.setVisible(!0)})};
aMW.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var VtK=function(z){this.channelId=z};
VtK.prototype.upload=function(z){var l="";z.viewToken&&(l=z.viewToken[2].type);var I=z.docs[0];z=I.crop;l={channel_id:this.channelId,fife_url:I.thumbnails[0].url,photo_id:I.id,is_gallery_image:l=="ytbanner"};z&&(l.crop_top=z.top,l.crop_right=z.right,l.crop_bottom=z.bottom,l.crop_left=z.left);return _.qRf("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:l})};var AF=function(){var z=_.q.apply(this,arguments)||this;z.ariaLabel=null;return z};
_.m(AF,_.q);_.p=AF.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.detached=function(){this.picker&&this.picker.dispose()};
_.p.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.p.computeAriaLabel=function(z){return z};
_.p.onTap=function(){var z=this,l;if((l=this.data)==null||!l.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new aMW(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 I;(I=this.picker)==null||I.open().then(function(b){z.handleBannerPicked(b)},function(){})}};
_.p.handleBannerPicked=function(z){var l=this;this.uploader||(this.uploader=new VtK(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(z).then(function(I){l.handleBannerUploadSucceeded(I)},function(I){l.handleBannerUploadFailed(I)})};
_.p.handleBannerUploadSucceeded=function(z){z&&z.errors?this.handleBannerUploadFailed(z):(_.gC(this.hostElement,"yt-banner-updated",z),this.message=null)};
_.p.handleBannerUploadFailed=function(z){this.message=z&&z.errors&&z.errors.length?z.errors[0]:null};
AF.prototype.dataChanged=AF.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],AF.prototype,"componentBehavior",void 0);_.e([_.t(_.jF),_.w("design:type",Object)],AF.prototype,"ironButtonState",void 0);_.e([_.X(),_.w("design:type",Object)],AF.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.w("design:type",Object)],AF.prototype,"ariaLabel",void 0);
_.e([_.X(),_.w("design:type",Object)],AF.prototype,"message",void 0);_.e([_.X(),_.w("design:type",Object)],AF.prototype,"picker",void 0);_.e([_.X(),_.w("design:type",Object)],AF.prototype,"uploader",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],AF.prototype,"dataChanged",null);_.e([_.S({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],AF);
_.r(AF,"ytd-channel-banner-editor-renderer",function(){if(U2K!==void 0)return U2K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return U2K=z},{mode:1});var jkq;var Jh4=_.zs(["#"]),W1=function(){return _.q.apply(this,arguments)||this};
_.m(W1,_.q);W1.prototype.computeHrefWithDefault=function(z){return this.ytComponentBehavior.computeHref_(z,!0)||_.l15(Jh4)};
W1.prototype.dataChanged=function(){var z=this.data;z&&z.targetId&&_.ZgI(_.jC(),z.targetId,this.moreIcon)};
W1.prototype.dataChanged=W1.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],W1.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],W1.prototype,"data",void 0);_.e([_.qX("#more-icon"),_.w("design:type",Object)],W1.prototype,"moreIcon",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],W1.prototype,"dataChanged",null);
_.e([_.S({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],W1);
_.r(W1,"ytd-channel-tagline-renderer",function(){if(jkq!==void 0)return jkq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return jkq=z},{mode:1});var zQ7;var nF=function(){return _.q.apply(this,arguments)||this};
_.m(nF,_.q);_.p=nF.prototype;_.p.ready=function(){var z=this;_.Hy(this.hostElement).querySelector("#form").addEventListener("submit",function(l){z.onSubmit(l)})};
_.p.onDataChanged=function(){var z;((z=this.data)==null?0:z.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.p.onIconButtonKeydown=function(z){z.keyCode===13&&this.iconButton.click()};
_.p.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.p.openOnClickHandler=function(){this.input.focus()};
_.p.onSubmit=function(z){z.preventDefault();return!1};
_.p.submitOnEnterKeyUp=function(z){var l;if(z.keyCode===13&&((l=this.data)==null?0:l.expandedText)){z=this.data.endpoint;l=_.h7.unsafeClone(z);var I;((I=_.k(l==null?void 0:l.commandMetadata,_.kB))==null?0:I.url)?(_.k(l.commandMetadata,_.kB).url=_.rE(_.k(l.commandMetadata,_.kB).url,"query",this.data.expandedText),_.k(l,_.BF)&&(_.k(l,_.BF).query=this.data.expandedText),_.gC(this.hostElement,"yt-navigate",{endpoint:l,tempData:{disableCache:!0}})):(I=new _.qB("Error: Trying to navigate to an endpoint without url",
z),_.dE(I))}};
_.p.updateDataExpandedTextFromBinding=function(z){this.set("data.expandedText",z.detail.value)};
_.vP.Object.defineProperties(nF.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
nF.prototype.onDataChanged=nF.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.hbs),_.w("design:type",Object)],nF.prototype,"ytdExpandableInputBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nF.prototype,"data",void 0);_.e([_.qX("#input"),_.w("design:type",Object)],nF.prototype,"input",void 0);_.e([_.qX("#icon-button"),_.w("design:type",HTMLElement)],nF.prototype,"iconButton",void 0);
_.e([_.X(),_.w("design:type",String),_.w("design:paramtypes",[])],nF.prototype,"searchIcon",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nF.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],nF);
var tQy=_.Hh()(nF,"ytd-expandable-tab-renderer",function(){if(zQ7===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);zQ7=z}z=zQ7;return z},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var lST;var LF=function(){var z=_.q.apply(this,arguments)||this;z.avatarSize=80;z.ariaLabel=_.mY("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return z};
_.m(LF,_.q);LF.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
LF.prototype.computeHref=function(z){var l;return((l=_.k(z,_.AK))==null?0:l.url)?this.componentBehavior.computeHref_(z):null};
LF.prototype.onTap=function(){var z,l;(z=this.data)==null||!z.editAvatarServiceEndpoint||((l=_.k(this.data.editAvatarServiceEndpoint,_.AK))==null?0:l.url)||_.pG().resolve(_.DQ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.e([_.t(_.jF),_.w("design:type",Object)],LF.prototype,"ironButtonState",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],LF.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LF.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],LF.prototype,"avatarSize",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],LF.prototype,"ariaLabel",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],LF);
_.r(LF,"ytd-channel-avatar-editor",function(){if(lST!==void 0)return lST;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return lST=z},{mode:1});var ISR=_.P(function(z){var l=z.data;var I=z.noPadding;var b=z.enableBanner;var v=z.cinematicContainerTopbarOffset;var M=z.allowCinematicContainerOverflow;var x=z.displayAsSidebar;z=z.className;_.Te(function(){l().tagManagerId&&(_.If(l().tagManagerId,_.sZ("GL")),QMW(l().tagManagerId))},"vUc8md");
var g=_.F1(Xa0,function(){return l().pageHeaderEntityKey});
return _.N("yt-page-header-renderer",{class:_.m9("pageHeaderRendererHost",z)},_.N(_.TS,{data:function(){var G;return((G=g())==null?0:G.header)?g().header:(x==null?0:x())&&l().sidebarContent?l().sidebarContent:l().content}},{pageHeaderViewModel:function(G){return _.N(_.iFM,{data:G.data,
noPadding:I,enableBanner:b,cinematicContainerTopbarOffset:v,allowCinematicContainerOverflow:M,displayAsSidebar:function(){return(x==null?void 0:x())&&l().enableSidebarView}})}}))},"tk");
ISR.idomCompat=!0;_.uO(ISR,"yt-page-header-renderer",{props:{data:_.mB,noPadding:_.mB,enableBanner:_.mB,cinematicContainerTopbarOffset:_.mB,allowCinematicContainerOverflow:_.mB,displayAsSidebar:_.mB,className:_.mB}});_.uO(_.ZN,"yt-image-banner-view-model",{props:{data:_.mB,isPositionRelative:_.mB}});_.uO(_.We4,"yt-tab-group-shape",{props:{shape:_.mB}});var Uk=function(){var z=_.q.apply(this,arguments)||this;z.expandableCustomTabRenderable=function(l){return BRK(l,function(){return void z.onSearchNavigate()})};
z.isRichGrid=!1;z.isConstrainedList=!1;z.richGridMiniMode=!1;z.richGridStyle="RICH_GRID_STYLE_UNKNOWN";z.isRichGridShorts=!1;z.responsiveSizing="COMPACT";z.disableGridStateAware=!1;z.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return z};
_.m(Uk,_.q);_.p=Uk.prototype;_.p.computeHeaderDisabled=function(z,l){return l||!z||this.tabsHidden};
_.p.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.p.computeIsRichGridShorts=function(z){return z==="RICH_GRID_STYLE_SHORTS_GRID"||z==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.p.computeImageBannerViewModel=function(){var z,l;return _.k((l=_.k((z=this.data)==null?void 0:z.content,_.Phu))==null?void 0:l.banner,_.Qf4)};
_.p.computeHasCinematicContainer=function(){var z,l;return!((l=_.k((z=this.data)==null?void 0:z.content,_.Phu))==null||!l.background)};
_.p.handleHeaderResize=function(){var z=_.Hy(this.hostElement).querySelector("#header");z&&_.gC(z,"iron-resize")};
_.p.handleInsertTabCommand=function(z){var l=_.k(z,VQX);l&&(l.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===l.tabIdentifier})||this.splice("tabs",l.tabIndex||-1,0,l.tab))};
_.p.handleRefreshChannelTabAction=function(z){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===z&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.p.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.R8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.p.observerRichGridSlimItemsPerRow=function(){_.R8(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.p.updateCssVars=function(){this.richGridItemsPerRow&&_.R8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.OI("rich_grid_max_item_width",500))+16)-16+"px"})};
_.p.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.R8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.p.onDataChanged=function(){this.handleHeaderResize()};
_.p.onWindowResize=function(){this.handleHeaderResize()};
_.p.onFocusedChanged=function(z){(z=_.pJ(z))&&z.is==="tp-yt-paper-tab"&&z.hasRipple()&&(z.getRipple().holdDown=!z.pointerDown&&z.focused)};
_.p.updateSelectedFromBinding=function(z){this.ytdTabbedHeaderBehavior.selected=z.detail.value};
_.p.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.vP.Object.defineProperties(Uk.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iW0(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.imageBannerViewModel)==null?void 0:z.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Uk.prototype.onDataChanged=Uk.prototype.onDataChanged;Uk.prototype.updateCssVarsForResponsiveGrid=Uk.prototype.updateCssVarsForResponsiveGrid;Uk.prototype.updateCssVars=Uk.prototype.updateCssVars;Uk.prototype.observerRichGridSlimItemsPerRow=Uk.prototype.observerRichGridSlimItemsPerRow;Uk.prototype.observerRichGridItemsPerRow=Uk.prototype.observerRichGridItemsPerRow;_.e([_.t(_.u0),_.w("design:type",Object)],Uk.prototype,"ytdGridStateAwareBehavior",void 0);
_.e([_.t(jMq),_.w("design:type",Object)],Uk.prototype,"ytdTabbedHeaderBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Uk.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Uk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],Uk.prototype,"ytdReduxBehavior",void 0);_.e([_.qX("#tabs"),_.w("design:type",Object)],Uk.prototype,"tabsElement",void 0);_.e([_.X(),_.w("design:type",Array)],Uk.prototype,"tabs",void 0);_.e([_.X(),_.w("design:type",Object)],Uk.prototype,"expandableCustomTabRenderable",void 0);_.e([_.B("tabs.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],Uk.prototype,"tabGroupShape",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Uk.prototype,"isRichGrid",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Uk.prototype,"isConstrainedList",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Object)],Uk.prototype,"richGridMiniMode",void 0);_.e([_.X({selector:function(z){return z.ui.richGridStyle}}),
_.w("design:type",Object)],Uk.prototype,"richGridStyle",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.w("design:type",Object)],Uk.prototype,"isRichGridShorts",void 0);_.e([_.X({selector:_.sp}),_.w("design:type",Number)],Uk.prototype,"richGridItemsPerRow",void 0);_.e([_.X({selector:function(z){return z.ui.richGridContainerWidth}}),
_.w("design:type",Number)],Uk.prototype,"richGridContainerWidth",void 0);_.e([_.X({selector:_.vT7}),_.w("design:type",Number)],Uk.prototype,"richGridSlimItemsPerRow",void 0);_.e([_.X(),_.w("design:type",Object)],Uk.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Uk.prototype,"responsiveSizing",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Uk.prototype,"disableGridStateAware",void 0);
_.e([_.X({computed:"computeImageBannerViewModel(data)"}),_.w("design:type",Object)],Uk.prototype,"imageBannerViewModel",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.w("design:type",Boolean)],Uk.prototype,"hasCinematicContainer",void 0);_.e([_.X({selector:_.tm1,reflectToAttribute:!0}),_.w("design:type",Boolean)],Uk.prototype,"guideIsVisibleButNotPersistent",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("imageBannerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],Uk.prototype,"hasBanner",null);_.e([_.X({reflectToAttribute:!0}),_.B("imageBannerViewModel"),_.w("design:type",Object),_.w("design:paramtypes",[])],Uk.prototype,"hasInsetBanner",null);_.e([_.X({computed:"computeTabsHidden(tabs)",value:!0}),_.w("design:type",Boolean)],Uk.prototype,"tabsHidden",void 0);
_.e([_.By("richGridItemsPerRow","isRichGrid"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uk.prototype,"observerRichGridItemsPerRow",null);_.e([_.By("richGridSlimItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uk.prototype,"observerRichGridSlimItemsPerRow",null);
_.e([_.By("richGridItemsPerRow","richGridMiniMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uk.prototype,"updateCssVars",null);_.e([_.By("richGridContainerWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uk.prototype,"updateCssVarsForResponsiveGrid",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Uk.prototype,"onDataChanged",null);
_.e([_.S({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Uk);
_.r(Uk,"ytd-tabbed-page-header",function(){if(LC8!==void 0)return LC8;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return LC8=z},{mode:1});var buR;var ai=function(){return _.q.apply(this,arguments)||this};
_.m(ai,_.q);ai.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.R8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.vP.Object.defineProperties(ai.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var z,l;return this.componentBehavior.computeIcon_(((l=_.k((z=this.data)==null?void 0:z.badge,_.L3u))==null?void 0:l.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.badge,_.L3u))==null?void 0:l.label}}});
ai.prototype.observerRichGridItemsPerRow=ai.prototype.observerRichGridItemsPerRow;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ai.prototype,"componentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],ai.prototype,"ytdReduxBehavior",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.hm}),_.w("design:type",Boolean)],ai.prototype,"richGridMiniMode",void 0);
_.e([_.X({selector:_.sp}),_.w("design:type",Number)],ai.prototype,"richGridItemsPerRow",void 0);_.e([_.X(),_.w("design:type",Object)],ai.prototype,"data",void 0);_.e([_.By("richGridItemsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ai.prototype,"observerRichGridItemsPerRow",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ai.prototype,"badgeIconName",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ai.prototype,"badgeLabel",null);_.e([_.S({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],ai);
_.r(ai,"ytd-member-hub-profile-renderer",function(){if(buR!==void 0)return buR;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return buR=z},{mode:1});var v5Z;var Vr=function(){return _.q.apply(this,arguments)||this};
_.m(Vr,_.q);Vr.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Vr.prototype,"data",void 0);_.e([_.S({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Vr);
_.r(Vr,"ytd-settings-sidebar-renderer",function(){if(v5Z!==void 0)return v5Z;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return v5Z=z},{mode:1});var Mx7;var jv=function(){var z=_.q.apply(this,arguments)||this;z.expandableCustomTabRenderable=function(l){return BRK(l,function(){return void z.onSearchNavigate()})};
return z};
_.m(jv,_.q);jv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
jv.prototype.onSearchNavigate=function(){this.selected=void 0};
jv.prototype.onTabsChange=function(){var z,l=(z=this.tabs)==null?void 0:z.findIndex(function(I){var b;return I==null?void 0:(b=I.tabRenderer)==null?void 0:b.selected});
l!==void 0&&(this.selected=l)};
jv.prototype.onTabsActive=function(z){if(this.tabs!==void 0){var l,I;(z=(l=this.tabs[z.detail.selected])==null?void 0:(I=l.tabRenderer)==null?void 0:I.endpoint)&&_.gC(this.hostElement,"yt-navigate",{endpoint:z})}};
_.vP.Object.defineProperties(jv.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iW0(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
jv.prototype.onTabsChange=jv.prototype.onTabsChange;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.u0),_.w("design:type",Object)],jv.prototype,"ytdGridStateAwareBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],jv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],jv.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Array)],jv.prototype,"tabs",void 0);_.e([_.X(),_.w("design:type",Number)],jv.prototype,"selected",void 0);_.e([_.B("tabs.*"),_.w("design:type",Object),_.w("design:paramtypes",[])],jv.prototype,"tabGroupShape",null);_.e([_.X(),_.w("design:type",Object)],jv.prototype,"expandableCustomTabRenderable",void 0);
_.e([_.B("tabs"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jv.prototype,"tabsEnabled",null);_.e([_.YE("tabs"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jv.prototype,"onTabsChange",null);_.e([_.S({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],jv);
_.r(jv,"ytd-topic-channel-details-renderer",function(){if(Mx7!==void 0)return Mx7;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Mx7=z},{mode:1});var p7R;var JF=function(){var z=_.q.apply(this,arguments)||this;z.disableGridStateAware=!1;return z};
_.m(JF,_.q);JF.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]]"}}}}}};
JF.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
JF.prototype.updateCssVars=function(){_.R8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.OI("rich_grid_max_item_width",500))+16)-16+"px"})};
JF.prototype.updateCssVars=JF.prototype.updateCssVars;JF.prototype.activeChanged=JF.prototype.activeChanged;_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],JF.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],JF.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],JF.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Array)],JF.prototype,"tabs",void 0);_.e([_.X(),_.w("design:type",Boolean)],JF.prototype,"active",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],JF.prototype,"disableGridStateAware",void 0);
_.e([_.X({selector:_.sp}),_.w("design:type",Number)],JF.prototype,"richGridItemsPerRow",void 0);_.e([_.X({selector:_.hm}),_.w("design:type",Boolean)],JF.prototype,"richGridMiniMode",void 0);_.e([_.qX("ytd-carousel-item-renderer"),_.w("design:type",Object)],JF.prototype,"carousel",void 0);_.e([_.By("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JF.prototype,"activeChanged",null);
_.e([_.By("richGridItemsPerRow","richGridMiniMode"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JF.prototype,"updateCssVars",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],JF);
_.r(JF,"ytd-carousel-header-renderer",function(){if(p7R!==void 0)return p7R;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return p7R=z},{mode:1});var DpT;var xpv=_.zs(["https://www.google-analytics.com/analytics.js"]),zG=function(){var z=_.q.apply(this,arguments)||this;z.scriptAnalyticsAdded=!1;return z};
_.m(zG,_.q);zG.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var z,l=(z=this.data)==null?void 0:z.tagManagerId;l&&(_.If(l,_.sZ("GL")),QMW(l))};
zG.prototype.sendGoogleAnalyticsPageview=function(z){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.AT.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var l=window.ga;l("set","page",window.location.pathname);l.l=+new Date;l("set","forceSSL",!0);l("create",z,"'auto'");l("send","pageview")};
zG.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var z=_.tA("SCRIPT");z.name="ga-analytics";var l=_.HR(xpv);_.Me(z,l);z.async=!0;_.Hy(this.hostElement).appendChild(z)};
zG.prototype.dataChanged=zG.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],zG.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zG.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],zG);
_.r(zG,"ytd-channel-metadata-renderer",function(){if(DpT!==void 0)return DpT;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return DpT=z},{mode:1});var Ou0;var g5r;var lN=function(){var z=_.q.apply(this,arguments)||this;z.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"]);z.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"]);z.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return z};
_.m(lN,_.q);_.p=lN.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.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_]]"}}}}}};
_.p.onUpdateElementsPerRowAction=function(z){z&&this.elementsPerRow!==z&&(this.elementsPerRow=z)};
_.p.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.p.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.p.computeAlertStyle_=function(z){return z};
_.p.observerElementsPerRow=function(){this.elementsPerRow&&_.R8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.p.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.p.requestElementsPerRow=function(){_.gC(this.hostElement,"yt-request-elements-per-row")};
lN.prototype.onIsVisibleChanged_=lN.prototype.onIsVisibleChanged_;lN.prototype.observerElementsPerRow=lN.prototype.observerElementsPerRow;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],lN.prototype,"actionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],lN.prototype,"data",void 0);_.e([_.X({value:6,reflectToAttribute:!0}),_.w("design:type",Number)],lN.prototype,"elementsPerRow",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],lN.prototype,"wrapButtons",void 0);_.e([_.X({value:_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.w("design:type",Boolean)],lN.prototype,"isMusic",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.w("design:type",String)],lN.prototype,"alertStyle",void 0);_.e([_.X({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.w("design:type",Function)],lN.prototype,"dismissBoundButtonTap_",void 0);_.e([_.X({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.w("design:type",Function)],lN.prototype,"acceptBoundButtonTap_",void 0);_.e([_.By("elementsPerRow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lN.prototype,"observerElementsPerRow",null);_.e([_.By("data.isVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lN.prototype,"onIsVisibleChanged_",null);_.e([_.Wy({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],lN);
_.r(lN,"yt-alert-with-actions-renderer",function(){if(g5r===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Ou0===void 0&&(Ou0=document.createElement("template"));var b=Ou0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);g5r=z}z=g5r;return z},{mode:2});_.uO(_.P(function(z){function l(y){var f={};return _.N(_.Rf,{text:y,className:_.m9("ytPersonalGreetingViewModelHeadline",(f.ytPersonalGreetingViewModelHeadlineSmall=function(){return g()===48},f))})}
function I(y,f){return _.N("span",{el:y,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},l(f))}
var b=_.xl(_.AR(function(){var y;return(y=z.data())==null?void 0:y.rendererContext},void 0,void 0,void 0,!0)),v=_.VK("span"),M=_.VK("span"),x=function(){return z.data().canvasPromoData},g=function(){var y;
return(y=z.data().bannerHeight)!=null?y:56},G=_.bLQ(b,{throttleMs:100}),u=_.bLQ(v,{throttleMs:100}),Z=_.bLQ(M,{throttleMs:100}),H=function(){return u.width()-G.width()>1};
return _.N("yt-personal-greeting-view-model",{el:b,"aria-hidden":H,class:_.m9(z.className,"ytPersonalGreetingViewModelHost"),style:_.XV({height:(0,_.DN)(function(){return H()?0:g()})})},_.N(_.E,{cond:function(){return z.data().avatar&&!(Z.width()+(z.data().avatar?48:0)-G.width()>1)},
then:function(){return _.N(_.TS,{data:function(){return z.data().avatar}},{decoratedAvatarViewModel:function(y){return _.N(_.xQ,{data:y.data,
className:_.m9("ytPersonalGreetingViewModelAvatar")})}})}}),_.N("h1",null,l(function(){var y;
return(x==null?void 0:(y=x())==null?void 0:y.headline)||(Z.width()+(z.data().avatar?48:0)-G.width()>1?z.data().shorterGreeting:z.data().greeting)})),I(M,function(){return z.data().greeting}),I(v,function(){return z.data().shorterGreeting}))},"uk"),"yt-personal-greeting-view-model",{props:{data:_.mB,
className:_.mB}});var Ib=function(){var z=_.q.apply(this,arguments)||this;z.hidden=!1;z.isConstrainedList=!1;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.responsiveSizing="COMPACT";z.attachedPlayers=_.C("kevlar_channel_trailer_multi_attach")?[]:void 0;z.player=null;z.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return z};
_.m(Ib,_.q);_.p=Ib.prototype;
_.p.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}}}}};
_.p.created=function(){var z=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){z.disposeMastheadAd()}]};
_.p.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new lMW(this.refresh,this.contents))};
_.p.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.p.activeChanged=function(){var z=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=z)};
_.p.tabsChanged=function(){var z=this,l,I;if(this.pageSubtype==="channels"||_.C("kevlar_tab_gestures_for_tabbed_header_data")&&((l=this.data)==null?0:(I=l.header)==null?0:I.carouselHeaderRenderer))this.tabGestures=new Ok(this.contents,this.contents,this.hostElement,this.header,function(x){z.ytdReduxBehavior.dispatch(x)});
var b,v,M;l=(b=this.data)==null?void 0:(v=b.contents)==null?void 0:(M=v.twoColumnBrowseResultsRenderer)==null?void 0:M.tabs;this.tabGestures&&this.tabGestures.tabsChanged(l)};
_.p.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.p.engagementPanelsChanged=function(){var z=_.pG().resolve(_.lL);if(z){if(this.engagementPanels)for(var l=_.D(this.engagementPanels),I=l.next();!I.done;I=l.next()){var b=void 0;(I=(b=I.value.identifier)==null?void 0:b.tag)&&z.panelMap.delete(I)}this.engagementPanels=[];var v;l=_.D(((v=this.data)==null?void 0:v.panels)||[]);for(v=l.next();!v.done;v=l.next()){v=_.k(v.value,_.K4y);var M=I=void 0,x=void 0,g=void 0;if(b=((I=v)==null?void 0:I.targetId)||((M=v)==null?void 0:M.panelIdentifier)||((x=v)==
null?void 0:(g=x.identifier)==null?void 0:g.tag))M=I=void 0,(M=(I=z).registerPanelContent)==null||M.call(I,b,{engagementPanelSectionListRenderer:v}),this.engagementPanels.push(v)}}};
_.p.onStampFinished=function(){var z=this;_.IR(this,function(){if(z.tabGestures){var l=z.tabGestures;if(l.scrollPositionNeedsUpdate){var I=_.pG().resolve(_.MB(_.OB)),b;if((b=l.selectedTab)!=null&&b.title&&I&&(b=I.getCurrentPage())){if(l.scrollPositionForTabs.has(l.selectedTab.title)){var v,M;I=(M=(v=I.getCurrentPage())==null?void 0:v.clientHeight)!=null?M:0;v=l.scrollPositionForTabs.get(l.selectedTab.title);b.setScrollTop(v);I>v+100&&(l.scrollPositionNeedsUpdate=!1)}else b.setScrollTop(Math.min(l.lastVisitedTabScrollPosition!==
void 0?l.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,l.tabsStartAtInPx)),l.scrollPositionNeedsUpdate=!1;l.ytdReduxDispatch(Fcc(!1))}}}})};
_.p.loadPage_=function(z){this.initCsi();z&&(this.data=z);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.p.getTitle=function(z){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",z))return this.get("microformat.microformatDataRenderer.title",z);if(this.get("header.feedTabbedHeaderRenderer.title",z))return _.ID(this.get("header.feedTabbedHeaderRenderer.title",z));if(this.get("header.interactiveTabbedHeaderRenderer.title",z))return this.get("header.interactiveTabbedHeaderRenderer.title",z);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
z))return _.ID(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",z));var l,I;return(z==null?0:(l=z.header)==null?0:(I=l.pageHeaderRenderer)==null?0:I.pageTitle)?z.header.pageHeaderRenderer.pageTitle:""};
_.p.updateTitle=function(z){_.gC(this.hostElement,"yt-update-title",this.getTitle(z))};
_.p.initCsi=function(){_.MP(this.pageSubtype||"browse",["ol","cpt"])};
_.p.getPlayer=function(){if(_.C("kevlar_channel_trailer_multi_attach")){for(var z=_.D(this.attachedPlayers),l=z.next();!l.done;l=z.next())if(l=l.value,l.isConnected||_.Wl(this.hostElement,l))return l;return null}return this.player};
_.p.getPlayerContainer=function(){return null};
_.p.onPlayerAttached=function(z,l){_.C("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(l):this.player=l};
_.p.onPlayerDetached=function(z,l){_.C("kevlar_channel_trailer_multi_attach")?(z=this.attachedPlayers.indexOf(l),z<0||this.attachedPlayers.splice(z,1)):this.player=null};
_.p.getServiceTrackingParams=function(){var z,l;return((z=this.data)==null?void 0:(l=z.responseContext)==null?void 0:l.serviceTrackingParams)||[]};
_.p.setMastheadAd=function(z){z&&z.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=z&&z.mastheadAd};
_.p.dataChanged=function(){var z=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Ets();_.IR(this,function(){_.EK(z.hostElement,"ytd-update-grid-state-action")})};
_.p.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.p.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var z=this.data.alerts;return z&&z.find(function(l){return!!l.alertWithActionsRenderer})}};
_.p.computeGreetingData=function(){if(this.data&&this.data.alerts){var z=this.data.alerts;return z&&z.find(function(l){return!!l.personalGreetingViewModel})}};
_.p.computeHasMemberHubProfileRenderer=function(z){var l;return!!(z==null?0:(l=z.header)==null?0:l.memberHubProfileRenderer)};
_.p.handleAlertCommand=function(z){this.get("alertCommand.alert.alertWithActionsRenderer",z)&&(z=_.k(z,sMS),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",z.alert))};
_.p.handleYtPlaylistDeletionRedirect=function(z){z=this.get("playlistDeletionRedirectCommand.redirectEndpoint",z);_.gC(this.hostElement,"yt-navigate",{endpoint:z})};
_.p.computeFluidWidth=function(z,l,I){if(l==="mini_app"||I)return!0;var b,v,M;z=z==null?void 0:(b=z.contents)==null?void 0:(v=b.twoColumnBrowseResultsRenderer)==null?void 0:(M=v.tabs)==null?void 0:M.find(function(G){var u;return G==null?void 0:(u=G.tabRenderer)==null?void 0:u.selected});
if(!z)return!1;var x,g;return!!((x=z.tabRenderer)==null?0:(g=x.content)==null?0:g.richGridRenderer)&&!["channel","channels","playables"].includes(l)};
_.p.computeHeaderFluidWidth=function(z){return z==="hashtag-landing-page"};
_.p.computeHasSidebar=function(z){var l;return!!(z.sidebar||((l=z.header)==null?0:l.playlistHeaderRenderer))};
_.p.computeHasPageHeaderSidebar=function(z){var l,I;return!!((l=z.header)==null?0:(I=l.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.p.computeUseUnifiedShowPageLayout=function(z){if(!z||this.pageSubtype!=="show"||!z.sidebar||!z.sidebar.playlistSidebarRenderer)return!1;z=z.sidebar.playlistSidebarRenderer;if(!z.items)return!1;for(var l=0;l<z.items.length;l++)if(_.k(z.items[l],egF)){var I=void 0;return((I=_.k(z.items[l],egF))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.p.computeIsConstrainedList=function(z){return _.C("web_enable_constrained_list_subscriptions_channels")&&z==="subscriptions-channels"};
_.p.computeResponsiveSizing=function(z){return z==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.vP.Object.defineProperties(Ib.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l;return((z=this.data)==null?0:(l=z.header)==null?0:l.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var z,l;if(!((z=this.data)==null?0:(l=z.sidebar)==null?0:l.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.vP.Object.defineProperties(Ib,{template:{configurable:!0,enumerable:!0,get:function(){if(vL0===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);vL0=z}z=vL0;return z}}});
Ib.prototype.dataChanged=Ib.prototype.dataChanged;Ib.prototype.onPlayerDetached=Ib.prototype.onPlayerDetached;Ib.prototype.onPlayerAttached=Ib.prototype.onPlayerAttached;Ib.prototype.onStampFinished=Ib.prototype.onStampFinished;Ib.prototype.engagementPanelsChanged=Ib.prototype.engagementPanelsChanged;Ib.prototype.scrollAtTopChanged=Ib.prototype.scrollAtTopChanged;Ib.prototype.tabsChanged=Ib.prototype.tabsChanged;Ib.prototype.activeChanged=Ib.prototype.activeChanged;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Ib.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],Ib.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Ib.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.pF.YtPageBehavior),_.w("design:type",Object)],Ib.prototype,"ytPageBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],Ib.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Ib.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ib.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ib.prototype,"hidden",void 0);
_.e([_.X(),_.w("design:type",Object)],Ib.prototype,"mastheadAdData",void 0);_.e([_.X({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.w("design:type",Object)],Ib.prototype,"alertBannerData",void 0);_.e([_.X({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.w("design:type",Object)],Ib.prototype,"greetingData",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],Ib.prototype,"pageSubtype",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.w("design:type",Boolean)],Ib.prototype,"hasMemberHubProfileRenderer",void 0);_.e([_.X({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Ib.prototype,"hasSidebar",void 0);_.e([_.X({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Ib.prototype,"hasPageHeaderSidebar",void 0);
_.e([_.X({reflectToAttribute:!0,value:!0}),_.w("design:type",Boolean)],Ib.prototype,"roundedContainer",void 0);_.e([_.X({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],Ib.prototype,"useUnifiedShowPageLayout",void 0);_.e([_.X({computed:"computeIsConstrainedList(pageSubtype)"}),_.w("design:type",Object)],Ib.prototype,"isConstrainedList",void 0);
_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ib.prototype,"usePlaylistHeaderRenderer",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],Ib.prototype,"useOldPlaylistSidebarRenderer",null);_.e([_.X({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.w("design:type",Boolean)],Ib.prototype,"fluidWidth",void 0);_.e([_.X({selector:function(z){return z.ui.scrollAtTop}}),
_.w("design:type",Boolean)],Ib.prototype,"scrollAtTop",void 0);_.e([_.X({selector:_.Brq}),_.w("design:type",Boolean)],Ib.prototype,"tabGesturesIsActive",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Ib.prototype,"darkerDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.w("design:type",Boolean)],Ib.prototype,"disableHeaderFluidWidth",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.w("design:type",String)],Ib.prototype,"responsiveSizing",void 0);_.e([_.qX("ytd-two-column-browse-results-renderer"),_.w("design:type",HTMLElement)],Ib.prototype,"contents",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],Ib.prototype,"header",void 0);_.e([_.qX("ytd-refresh"),_.w("design:type",Object)],Ib.prototype,"refresh",void 0);
_.e([_.By("active"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ib.prototype,"activeChanged",null);_.e([_.By("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ib.prototype,"tabsChanged",null);_.e([_.By("scrollAtTop"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ib.prototype,"scrollAtTopChanged",null);
_.e([_.X(),_.w("design:type",Object)],Ib.prototype,"engagementPanels",void 0);_.e([_.By("data.panels"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ib.prototype,"engagementPanelsChanged",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ib.prototype,"onStampFinished",null);
_.e([_.tP("yt-player-attached"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Element]),_.w("design:returntype")],Ib.prototype,"onPlayerAttached",null);_.e([_.tP("yt-player-detached"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Element]),_.w("design:returntype")],Ib.prototype,"onPlayerDetached",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ib.prototype,"dataChanged",null);
_.e([_.S({is:"ytd-browse"})],Ib);_.P2.registerService(_.p1p,Ib);
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("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 jh,uGc,ZMs,HMl,yH4,fE0,CJy,kbl,Rcy,muC,KYK,t_q,Xus,qK8,FYC,Qm1,YKs,cHs,SKC,duK,oB4,J1,hcc,zt,smK,rHy,$uq,ecs,wuK,WYq,LYS,AH0,BCF,Uuq,aE8,V_S,jmq,JH4,zvS,lpS,IpC,bc0,MS1,pgC,xFK,gwW,Ng8,Ewc,us0,Hcl,fpy,Cic,kZs,RvX,mF4,KM8,tSS,Bg4,Xgq,qpC,ic4,FM8,Qh8,Yp8,Tgy,cmc,Sps,dFs,ows,hv4,shX,rm1,$FS,evl,wg1,Aml,WMX,nw4,LM8,UFq,apK,VSq,jh1,JmK,zWF,lkS,IkS,br1,vWF,MbW,pFy,DoS,xo0,OrK,Ot,gWl,GNq,ND0,uNc,Zr0,Hrs,yYF,fk8,Ccq,kNs,KaS,TDF,oWS,Pc4,eW8,wFX,$ol,sDy,LaK,Vbq,bJs,hWc,JYc,UoK,Zl,Mg1,xXC,G98,OJS,gE8,Nc1,
HJX,u60,yPs,fP1,ZJK,EEX,C54,CS,ku,BcF,XyW,Rd,qxq,iJC,F2X,dX1,oEy,mk,KS,hH0,P5K,s84,rPq,$XF,eHq,ta,Bv,Xy,VgK,j8S,JP1,iw,vC0,zKc,bEF,MZF,lfS,D8S,IfW,gCy,x8s,OE4,Fy,NZy,G40,HEs,k4S,cv,SL,ffW,m8l,CYy,RK8,od,ha,st,rF,whW,cx1,nC8,Lhl,U8X,afl,jeK,iEC,FhK,wF,Yis,$u,eL,TZs,VZy,AxW,QeK,Wv,prW,xt1,OKl,DtC,IYy,GHl,uV4,Vv,Ut,ad,yNW,lYq,Ja,Ely,bKX,NoC,MOK,zSS,vl4,COs,kH4,RSC,K94,Bol,XrC,qWW,iKW,Q2y,F9W,Toy,cNc,dtF,ol8,hSF,s28,rNK,$t1,eSs,wr0,ANC,nlF,W9X,L9K,Ut1,IZ,aYK,VO4,b3,j2X,JNK,zyF,lX4,IXF,bY4,vUF,M9c,Dvy,
vO,xvW,OYs,N5C,u14,ZYC,yRF,HYK,fXS,C1X,kSs,mvs,KEq,t9q,B50,XU0,qBy,iYX,FEX,Q00,YBK,T5s,cRc,P1K,hyy,dvK,oUs,SBS,s04,eys,rRy,$vF,WEK,wU1,AR1,nU8,LE4,UvS,aXC,j0K,JRF,zLX,I6X,bj4,M20,Da4,Ojy,GDc,EM1,Zjq,yQF,C71,maW,Knl,t2q,XtW,BnS,ijC,FnX,QF8,YcF,pB,TnK,cQq,Scl,AQy,nM8,LnK,jF1,JQF,zVK,lql,bIW,Iqs,v10,MKs,pJc,DNF,xNl,gF,OIs,G7,gMK,g1F,GYF,GZK,NxK,E1s,uIq,ZIX,HI0,yfl;
jh=function(z){if(!z)return"browse";var l=z.page,I=z.url,b,v,M,x=(b=z.response)==null?void 0:(v=b.responseContext)==null?void 0:(M=v.webResponseContextExtensionData)==null?void 0:M.pageTheme;if(x)l=x.toLowerCase().replace(/_/g,"-");else if(l!=="watch"&&l!=="learning_journey_watch"){var g,G;if((l==="browse"||l==="settings")&&((g=z.response)==null?0:(G=g.sidebar)==null?0:G.settingsSidebarRenderer))l="WEB_PAGE_TYPE_SETTINGS";else{var u,Z;l==="browse"&&((u=z.response)==null?0:(Z=u.metadata)==null?0:Z.channelMetadataRenderer)?
l="channel":I&&(l=_.ma(I)||l)}}return l};
uGc=function(){var z=_.W8("yt.aba.att");return z?z:_.Pp.instance!==void 0?_.Pp.instance.tDf.bind(_.Pp.instance):null};
ZMs=function(z,l){var I;return _.O(function(b){return(I=uGc())?b.return(I(z,l,6E4)):b.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
HMl=function(z,l,I,b,v){l=l===void 0?[]:l;v=v?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:v}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.xw(z),dialogMessages:l.map(function(M){return _.xw(M)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xw(I),serviceEndpoint:v}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.xw(b)}}}}}};
yH4=function(z){var l=!!_.ya().queueProxy;var I,b,v;z=z==null?void 0:(I=z.response)==null?void 0:(b=I.currentVideoEndpoint)==null?void 0:(v=b.watchEndpoint)==null?void 0:v.playlistId;return!(!l&&!z)};
fE0=function(z,l){var I=_.wb();if(yH4(z)&&!_.C("web_watch_disable_playlist_auto_miniplayer"))return I.playlistWatchPageActivation=!0;switch(jh(l)){case "yts-products":return I.productDetailsPageActivation=!0;case "mini_app":return I.miniAppPageActivation=!0;case "playables":return I.playablesDestPageActivation=!0;default:return!1}};
CJy=function(z,l,I){for(var b=typeof z==="string"?z.split(""):z,v=z.length-1;v>=0;--v)v in b&&l.call(I,b[v],v,z)};
kbl=function(z,l){l=_.kkY(z,l);l>=0&&_.KQ5(z,l)};
Rcy=function(z){return Array.prototype.concat.apply([],arguments)};
muC=function(z){var l=0;l=l===void 0?0:l;if(!_.Jp(z))throw _.I_("uint64");var I=typeof z;switch(l){case 512:switch(I){case "string":return _.qjt(z);case "bigint":return String((0,_.HX)(64,z));default:return _.Bw1(z)}case 1024:switch(I){case "string":return _.inY(z);case "bigint":return _.SM((0,_.HX)(64,z));default:return _.X_Q(z)}case 0:switch(I){case "string":return _.qjt(z);case "bigint":return _.SM((0,_.HX)(64,z));default:return _.tMt(z)}default:return _.Ap(l,"Unknown format requested type for int64")}};
KYK=function(z){z!=null&&(z=z.JSC$8820_value_||"",z=typeof z==="string"?z:new Uint8Array(z));return z};
t_q=function(z,l){if(/-[a-z]/.test(l))return null;if(_.DZ_&&z.dataset){if(_.Gkp()&&!(l in z.dataset))return null;z=z.dataset[l];return z===void 0?null:z}return z.getAttribute("data-"+_.KQ(l))};
Xus=function(){var z=BCF;_.W8("yt.ads.biscotti.getId_")||_.vd("yt.ads.biscotti.getId_",z)};
qK8=function(z){_.vd("yt.ads.biscotti.lastId_",z)};
FYC=function(){var z={};for(_.cV=new iMK(z.handleError===void 0?_.oy:z.handleError,z.logEvent===void 0?_.cW:z.logEvent);_.Sc.length>0;)switch(z=_.Sc.shift(),z.type){case "ERROR":_.cV.logError(z.payload);break;case "EVENT":_.cV.logEvent(z.eventType,z.payload)}};
Qm1=function(z,l,I){return _.jhQ(function(b){return I?b.userIdentifier!==void 0&&!z.includes(b.userIdentifier)&&I.includes(b.publicName):b.userIdentifier!==void 0&&!z.includes(b.userIdentifier)},l)};
YKs=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return l=_.BV("YtIdbMeta hasAnyMeta other"),b.yield(_.jhQ(function(v){return v.userIdentifier!==void 0&&v.userIdentifier!==l},z),2);
I=b.yieldResult;return b.return(I.length>0)})};
cHs=function(z,l){TC4||(TC4=_.ow.addLowPriorityJob(function(){var I,b,v,M,x;return _.O(function(g){switch(g.nextAddress){case 1:return g.yield(_.MW(),2);case 2:I=g.yieldResult;if(!I)return g.return();b=!0;_.RL(g,3);return g.yield(Qm1(z,I,l),5);case 5:v=g.yieldResult;if(!v.length){b=!1;g.jumpTo(6);break}M=v[0];return g.yield(_.VI(M.actualName),7);case 7:return g.yield(_.z6(M.actualName,I),6);case 6:_.a3(g,4);break;case 3:x=_.XP(g),_.dk(x),b=!1;case 4:_.ow.cancelJob(TC4),TC4=0,b&&cHs(z,l),_.qe(g)}})}))};
SKC=function(){var z;return _.O(function(l){return l.nextAddress==1?l.yield(_.MW(),2):(z=l.yieldResult)?l.return(YKs(z)):l.return(!1)})};
duK=function(z){var l=100;l=l===void 0?500:l;var I,b,v,M,x,g;return _.O(function(G){return G.nextAddress==1?(I=_.sZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[I,(0,_.Dr)()-2592E6],v=[I,(0,_.Dr)()],M=IDBKeyRange.bound(b,v),G.yield(_.tZQ(z),2)):G.nextAddress!=3?(x=G.yieldResult,g=[],G.yield(_.JE(x,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(u){g.length=0;return _.x8(u.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:M,direction:"prev"},function(Z){if(Z.getValue()&&g.length<
l)return g.push(Z.getValue()),Z.delete().then(function(){return Z.continue()})})}),3)):G.return(g)})};
oB4=function(){var z;return _.O(function(l){if(l.nextAddress==1)return l.yield(_.MW(),2);z=l.yieldResult;if(!z||!_.Xm()&&!_.C("nwl_init_require_datasync_id_killswitch")||!_.whx())return l.jumpTo(0);_.Wh7=!0;_.Axx.isNwlInitialized=_.Wh7;return l.yield(_.KGn().awaitInitialization(),0)})};
J1=function(z,l){_.xtQ[z]=!0;var I=_.Dx();I&&I.publish.apply(I,arguments);_.xtQ[z]=!1};
hcc=function(){if(_.s8f()&&!PJ1){var z=function(I){I=I.data;if(I.op==="serializedGelBatch"){var b=_.OY$.get(I.key);b&&(_.GSY(I.serializedBatch,b.client,b.resolve,b.networklessOptions,b.isIsolated,b.useVSSEndpoint,b.dangerousLogToVisitorSession,b.requestsOutstanding),_.OY$.delete(I.key))}},l=_.hHQ();
l&&(l.addEventListener("message",z),l.onerror=function(){_.OY$.clear()});
PJ1=!0}};
zt=function(){this.relativeTimeStart_=_.gG()};
smK=function(z,l){z!=null&&this.append.apply(this,arguments)};
rHy=function(){return _.A8("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
$uq=function(z,l,I){I=I===void 0?!1:I;var b,v,M,x,g;return _.O(function(G){switch(G.nextAddress){case 1:_.KG("SOCS",z,34128E3,"youtube.com",!0);if(_.CO)return v=fetch(l,{method:"POST",mode:_.V0(l),credentials:_.aR(l),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),M=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.V0("/upgrade_visitor_cookie?eom=1"),credentials:_.aR("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),G.yield(Promise.all([v,M]).then(function(u){return u[1]}),5);
fetch(l,{method:"POST",mode:_.V0(l),credentials:_.aR(l),cache:"no-store",headers:{"Content-Type":"text/plain"}});return G.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.V0("/upgrade_visitor_cookie?eom=1"),credentials:_.aR("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:b=G.yieldResult;G.jumpTo(3);break;case 5:b=x=G.yieldResult;case 3:if(!b.ok)throw Error("sf");return G.yield(b.text(),7);case 7:g=G.yieldResult,
!g.includes('"state_switch":true')&&!I||g.includes("skip_reload_for_test")||window.location.reload(),_.qe(G)}})};
ecs=function(z){return _.O(function(l){return l.nextAddress==1?l.yield($uq(z.socsCookie,z.savePreferenceUrl,!0),2):l.return()})};
wuK=function(z){return _.O(function(l){return l.nextAddress==1?l.yield($uq(z.socsCookie,z.savePreferenceUrl),2):l.return()})};
WYq=function(z){z=z.xhr.responseText;if(!_.DS(z,")]}'"))throw new lw;z=JSON.parse(z.substr(4));if((z.type||1)>1)throw new lw;z=z.id;qK8(z);Id=_.Ct(z);AH0(18E5,2);return z};
LYS=function(z,l){l=new nBC(l);qK8("");Id=_.UQz(l);z>0&&AH0(12E4,z-1);throw l;};
AH0=function(z,l){_.EI(function(){_.sRW().then(WYq,function(I){return LYS(l,I)}).thenCatch(_.Tn)},z)};
BCF=function(){var z=_.e48();if(z!==void 0)return _.Ph(z);Id||(Id=_.sRW().then(WYq).thenCatch(function(l){return LYS(2,l)}));
return Id};
Uuq=function(){var z=document;return _.Sx(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(l){return"on"+l.toLowerCase()in z})};
aE8=function(z){z.addEventListener("click",function(l){var I=l.target;I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.zg(window,I,"_blank"),l.preventDefault(),l.stopImmediatePropagation())})};
V_S=function(z){var l,I,b,v=(b=(I=((l=z.mainDownloadsListEntity)!=null?l:{})[_.aZH])==null?void 0:I.refresh)!=null?b:"",M;z=(M=z.refresh)==null?void 0:M[v];v=z!=null?z:{};return(v==null?0:v.refreshTime)?Number(v==null?void 0:v.refreshTime):0};
jmq=function(z,l){var I=_.cg(z);return l.every(function(b){var v;b=b==null?void 0:(v=b.playbackDataEntity)==null?void 0:v.key;if(!b)return!1;v=_.Hg(_.Ep(b).entityId,"mainVideoEntity");return!!I[v]})};
JH4=function(z){z=_.QA(z.entities);return _.gm5(z).length};
zvS=function(z,l){if(l){var I;z=(I=_.Cc(z.entities,"downloadQualityPickerEntity",l))!=null?I:void 0}else z=void 0;return z};
lpS=function(z){var l=document.getElementsByTagName("ytd-enforcement-message-view-model");l.length===0||getComputedStyle(l[0]).display==="none"?z(0,"p.h_"):z(1,"p.h_")};
IpC=function(){bw=0;var z=[_.ic(!0)];vv&&_.EK(vv,"yt-window-resized",z)};
bc0=function(){bw||(bw=_.ow.addLowPriorityJob(IpC,200))};
MS1=function(){MI=0;vw1=_.xK4(document);var z=[vw1];vv&&_.EK(vv,"yt-window-scrolled",z)};
pgC=function(){MI||(MI=_.ow.addLowPriorityJob(MS1,200))};
xFK=function(z){z=z===void 0?null:z;DFK.push(_.b_(window,"resize",bc0));DFK.push(_.b_(window,"scroll",pgC));z&&(vv=z)};
gwW=function(){var z={isWide:_.mZ.get("wide","0")==="1"},l=_.Bu();if(l=l.getFlag(165)||l.getFlag(174))z.theme=_.Sb(!0);if(_.LW5()){var I=_.cF()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";z.systemTheme=I}!l&&_.C("parent_tools_enable_app_settings")&&_.V7(window.location.href).theme!==void 0&&(z.theme=_.Sb());if((l=pS)?!_.h7.equals(l,z):z)l={currentValue:z},Occ&&(l.timeSinceLastSnapshotSecs=Math.round(((0,_.Dr)()-Occ)/1E3)),pS&&(l.previousValue=pS),_.cW("appSettingsCaptured",l),pS=z,Occ=
(0,_.Dr)()};
Ng8=function(){var z=_.hY.getLocalStorage();z&&GZK(z,z.mechanism.__iterator__(!0))};
Ewc=function(z){_.O(function(l){if(l.nextAddress==1)return l.yield(z.delete("yt-appshell-assets"),2);_.qe(l)})};
us0=function(z){return _.jc((0,_.tzn)(),z)};
Hcl=function(){var z;_.O(function(l){return l.nextAddress==1?l.yield(Dl.getInstance(),2):(z=l.yieldResult)?l.yield(Zc4(z),0):l.jumpTo(0)})};
fpy=function(){var z;_.O(function(l){return l.nextAddress==1?l.yield(xu.getInstance(),2):(z=l.yieldResult)?l.yield(ymK(z),0):l.jumpTo(0)})};
Cic=function(z){Ewc(z);Hcl();fpy()};
kZs=function(z){var l,I;return _.O(function(b){if(b.nextAddress==1)return b.yield(_.Hyx(z),2);if(l=b.yieldResult){var v;a:{if(l.headers&&(v=l.headers.get("date"))&&(v=Date.parse(v),!isNaN(v))){v=Math.round((0,_.Dr)()-v);break a}v=-1}I=v;if(I>-1)return b.return(I)}return b.return(-1)})};
RvX=function(){var z=_.v7.caches,l=_.rr("IS_SHELL_LOAD"),I,b;_.O(function(v){if(v.nextAddress==1)return I=-1,l?v.yield(kZs(z),3):(b=_.YB(),I=Math.round((0,_.Dr)()-b),v.jumpTo(2));v.nextAddress!=2&&(I=v.yieldResult);I>=0&&I<2147483648&&_.om({appInstallDataAgeMs:I});_.qe(v)})};
mF4=function(z){var l=_.UA(_.v7.location.href),I={};"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(b){var v=l.JSC$10032_queryData_.getValues(b);if(v==null?0:v.length)I[b]=v});
return _.y6(z,new Map(Object.entries(I)))};
KM8=function(z){z=z.match(/(.*)::.*::.*/);if(z!==null)return z[1]};
tSS=function(z){if(_.Ss7()){var l=Object.keys(window.localStorage);l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=KM8(I);b===void 0||z.includes(b)||self.localStorage.removeItem(I)}}};
Bg4=function(){if(!_.Ss7())return!1;var z=_.BV(),l=Object.keys(window.localStorage);l=_.D(l);for(var I=l.next();!I.done;I=l.next())if(I=KM8(I.value),I!==void 0&&I!==z)return!0;return!1};
Xgq=function(z){return _.h1("NotificationsDisabled",z)};
qpC=function(){return Notification.permission!="granted"?Promise.resolve():_.X8S().then(function(z){return z?z.pushManager.getSubscription().then(function(l){if(l)return Promise.resolve();l={userVisibleOnly:!0,applicationServerKey:_.jx("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return z.pushManager.subscribe(l).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
ic4=function(z){return _.X8S().then(function(l){if(!l||!l.active)return Promise.reject(new _.qB("serviceworker.postMessage",z,l));try{return l.active.postMessage(z),Promise.resolve()}catch(I){return Promise.reject(I)}})};
FM8=function(){ic4({type:"notifications_register",data:_.sZ("ID_TOKEN")})};
Qh8=function(){if(!_.rr("LOGGED_IN"))return Promise.resolve(!1);var z=_.gk("service_worker_push_force_notification_prompt_tag");return z?_.$a("PromptTags").then(function(l){if(!l)return!0;var I=[];try{I=JSON.parse(l)}catch(b){return!1}return I&&I.indexOf(z)==-1}):Promise.resolve(!1)};
Yp8=function(){var z=_.OI("service_worker_push_prompt_delay_microseconds");return z?_.$a("PromptTime").then(function(l){return Promise.resolve(Date.now()-z>(l||0))}):Promise.resolve(!0)};
Tgy=function(){var z=_.OI("service_worker_push_logged_out_prompt_watches");return z==-1?Promise.resolve(!1):_.$a("WatchCount").then(function(l){return l>=z})};
cmc=function(){var z=_.EB(document,"yt-push-prompt-modal-bg");z&&_.Bl(z)};
Sps=function(){return _.OI("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.$a("PromptCount").then(function(z){z||(z=0);return Promise.resolve(z<_.OI("service_worker_push_prompt_cap"))})};
dFs=function(z){return _.rr("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.rr("LOGGED_IN")&&(z===void 0?0:z)?Qh8().then(function(l){if(l)return!0;l=[Sps(),Yp8()];_.rr("LOGGED_IN")||l.push(Tgy());return Promise.all(l).then(function(I){return I.every(function(b){return b})})}):Promise.resolve(!1)};
ows=function(){_.$a("PromptCount").then(function(z){return _.h1("PromptCount",z+1)}).then(function(){return _.h1("PromptTime",Date.now())}).then(function(){var z=_.gk("service_worker_push_force_notification_prompt_tag");
if(z)return _.$a("PromptTags").then(function(l){var I=[];if(l)try{I=JSON.parse(l)}catch(b){return!1}I||(I=[]);I.push(z);return _.h1("PromptTags",JSON.stringify(I))})})};
hv4=function(){PiF||cmc()};
shX=function(z){z.style.zIndex=2147483648;z.style.pointerEvents="auto";z.style.backgroundColor="rgba(0, 0, 0, 0.6)";z.style.width="100%";z.style.height="100vh";z.style.position="absolute";z.style.top="0";z.style.left="0";z.style.border="none"};
rm1=function(){var z=_.EB(document,"yt-push-prompt-modal-bg");PiF=_.C("service_worker_push_prompt_modal_ignore_click");z?shX(z):(z=_.ry("div",{id:"yt-push-prompt-modal-bg"}),shX(z),document.body.appendChild(z),_.vlf(document,"click",hv4))};
$FS=function(){var z=arguments;_.C("service_worker_push_prompt_modal_enable")&&rm1();return Notification.requestPermission().then(function(l){cmc();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(l=="granted")return qpC().then(function(){Xgq(!1);FM8();return Promise.resolve(!0)});
l=="denied"&&FM8();return Promise.resolve(!1)}).catch(function(){cmc();
return Promise.reject.apply(Promise,_.ht(z))})};
evl=function(z){z=z===void 0?!1:z;var l=_.J$x().client;if(l&&l.browserVersion){var I=l.browserVersion,b=l.browserName=="CHROME"&&_.y$(I,"50.0.0")<0;l=l.browserName=="OPERA"&&_.y$(I,"42.0.0")<0;if(b||l)return Promise.resolve()}return _.FFK().then(function(v){if(!v)return Promise.resolve();v=qpC().then(function(){return ic4({type:"notifications_check_registration",data:_.sZ("ID_TOKEN")})});
return Notification.permission!="default"?v.catch(function(){}):v.then(function(){return dFs(z)}).then(function(M){if(M)return ows(),$FS().then(function(){})}).catch(function(){})})};
wg1=function(z){return _.qZl(z)?evl():Promise.resolve()};
Aml=function(z){var l=z.installing||z.waiting;return z.active||!l?Promise.resolve(z):new Promise(function(I){var b=function(v){v=v.target;if(v.state==="activated"||v.state==="redundant")l.removeEventListener("statechange",b),I(z)};
l.addEventListener("statechange",b)})};
WMX=function(){var z=new _.v4H("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Zq(z,{mainAppWeb:_.l5()});var l=_.$_I;_.C("service_worker_forward_exp_params")&&(l=mF4(l));try{var I=_.zBu(l).catch(function(){_.HJ(z,"FAILURE");return new Promise(function(){})});
_.C("service_worker_push_enabled")&&I.then(function(b){_.HJ(z,"SUCCESS");return b}).then(Aml).then(wg1)}catch(b){if(_.HJ(z,"FAILURE"),b.name!=="SecurityError")throw b;
}};
nw4=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&WMX()};
LM8=function(z,l){var I={};l&&(I.serializedYpcFamilyCreateLoggingParams=l);_.cW(z,I);_.SX()};
UFq=function(z,l){var I={};I.serializedYpcRefundFlowLoggingParams=l;z&&(I.eventType=z);_.cW("ypcRefundFlowEvent",I);_.SX()};
apK=function(z){z&&_.Izk("transactionFlowSucceeded",z)};
VSq=function(z){z&&_.ka("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",z,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
jh1=function(z){var l,I,b,v,M,x,g;_.O(function(G){if(G.nextAddress==1)return G.yield(_.Syf(),2);if(G.nextAddress!=3){if(!G.yieldResult)return G.return(!1);l=[];return G.yield(_.kl.keys(),3)}I=G.yieldResult;b=_.D(I);for(v=b.next();!v.done;v=b.next())M=v.value,x=_.TJk(M),g=x.datasyncId,!g||z.includes(g)||l.push(_.kl.delete(M));return G.return(Promise.all(l).then(function(u){return u.some(function(Z){return Z})}))})};
JmK=function(){var z,l,I,b,v,M,x;return _.O(function(g){if(g.nextAddress==1)return g.yield(_.Syf(),2);if(g.nextAddress!=3){if(!g.yieldResult)return g.return(!1);z=_.BV("cache contains other");return g.yield(_.kl.keys(),3)}l=g.yieldResult;I=_.D(l);for(b=I.next();!b.done;b=I.next())if(v=b.value,M=_.TJk(v),(x=M.datasyncId)&&x!==z)return g.return(!0);return g.return(!1)})};
zWF=function(){var z=_.pG().resolve(_.MB(_.PxA));return z?z.getCurrentTime():0};
lkS=function(){var z,l,I,b,v,M,x,g,G,u,Z,H,y,f;return _.O(function(R){switch(R.nextAddress){case 1:z={},l=_.cc7(),I=_.D(Object.entries(l)),b=I.next();case 4:if(b.done){R.jumpTo(3);break}v=b.value;M=_.D(v);x=M.next().value;g=M.next().value;G=x;u=g;if(!u){R.jumpTo(5);break}return R.yield(u(),8);case 8:z[G]=R.yieldResult;case 5:b=I.next();R.jumpTo(4);break;case 2:Z=_.D(void 0),H=Z.next();case 9:if(H.done){R.jumpTo(3);break}y=H.value;f=l[y];if(!f){R.jumpTo(10);break}return R.yield(f(),13);case 13:z[y]=
R.yieldResult;case 10:H=Z.next();R.jumpTo(9);break;case 3:return R.return(z)}})};
IkS=function(){var z;_.O(function(l){if(l.nextAddress==1)return l.yield(lkS(),2);z=l.yieldResult;return l.yield(navigator.clipboard.writeText(JSON.stringify(z,null,2)),0)})};
br1=function(z,l){return _.Cc(z.entities,"superThanksSelectedTierEntity",l)};
vWF=function(z,l){return{popup:{searchSuggestionReportDialog:{searchQuery:z,title:_.mY("SBOX_INAPPROPRIATE_TITLE"),suggestions:l,categoryLabel:_.mY("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.mY("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.mY("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.mY("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.mY("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.mY("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.mY("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.mY("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.mY("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.mY("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
MbW=function(z){var l,I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V;return _.O(function(A){switch(A.nextAddress){case 1:return A.yield(_.mM(),2);case 2:return(l=A.yieldResult)?A.yield(_.kPf(l),3):A.return();case 3:I=A.yieldResult;if(!I)return A.return();v=((b=I.offlineVideos)==null?void 0:b.length)||0;x=((M=I.offlinePlaylists)==null?void 0:M.length)||0;if(v===0&&x===0)return A.return();g=0;if(I.offlineVideos)for(G=_.D(I.offlineVideos),u=G.next();!u.done;u=G.next())Z=u.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
Z.videoState&&(g+=1);z.offline_videos_count=v.toString();_.C("kevlar_log_offline_current_network_type_ks")||(z.offline_current_network_type=(H=_.Xgt())!=null?H:"CONN_INVALID");_.C("kevlar_log_updated_time_for_smart_downloads")&&(y=_.vF().getState().entities,f=_.Pg(y),R=V_S(y),z.offline_smart_downloads_last_sync_time_ms=f.toString(),z.offline_smart_downloads_next_sync_time_ms=R.toString());z.offline_videos_playable=g.toString();z.offline_playlists_count=x.toString();I.offlineVideos&&(F=I.offlineVideos.reduce(function(W,
L){L.downloadedBytes&&(W+=Number(L.downloadedBytes));return W},0).toString())&&(z.offline_used_disk_space_bytes=F);
if(!((Y=navigator)==null?0:(c=Y.storage)==null?0:c.estimate)){A.jumpTo(4);break}return A.yield(navigator.storage.estimate(),5);case 5:d=A.yieldResult,z.offline_free_disk_space_bytes=(((V=d)==null?void 0:V.quota)||0).toString();case 4:z.offline_client_state=JSON.stringify(I),_.qe(A)}})};
pFy=function(z){z=_.D(z);for(var l=z.next(),I={};!l.done;I={setter$jscomp$5:void 0},l=z.next()){var b=l.value;l=b.params;b=b.service;l&&b&&(I.setter$jscomp$5=_.ctX[b],I.setter$jscomp$5&&l.forEach(function(v){return function(M){var x=M.key;M=M.value;x&&M&&(0,v.setter$jscomp$5)(x,M)}}(I)))}};
DoS=function(z){z=z.match(/(.*)::.*::.*/);if(z!==null)return z[1]};
xo0=function(z){if(_.TVt()){var l=Object.keys(window.sessionStorage);l=_.D(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=DoS(I);b===void 0||z.includes(b)||self.sessionStorage.removeItem(I)}}};
OrK=function(){if(!_.TVt())return!1;var z=_.BV(),l=Object.keys(window.sessionStorage);l=_.D(l);for(var I=l.next();!I.done;I=l.next())if(I=DoS(I.value),I!==void 0&&I!==z)return!0;return!1};
Ot=function(z,l,I){(_.C("desktop_keyboard_shortcut_usage_log")||I&&_.C("web_shorts_keyboard_shortcut_usage_log"))&&(l?_.w6.get(z):_.eh.get(z))&&(z=l?_.W5.get(z):_.A1.get(z))&&_.JH(_.sU(),z)};
gWl=function(z,l){return z.findIndex(function(I){return I.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(l.keyCode):!1};
GNq=function(){var z,l;return typeof CSS!=="undefined"&&((l=(z=CSS).supports)==null?void 0:l.call(z,"selector(:has(*))"))};
ND0=function(z){return z.visibility!=="hidden"&&z.display!=="none"};
uNc=function(z){if(GNq()||z.tagName!=="DETAILS"?!z.matches(EWX):z.querySelector("summary")!==null)return-1;z=z.getAttribute("tabindex")||"0";return Number(z)};
Zr0=function(z){return z.some(function(l){return uNc(l)>0})};
Hrs=function(z){if(z.textContent)return!0;if(z instanceof HTMLInputElement){if(!z.labels)return!1;z=_.D(z.labels);for(var l=z.next();!l.done;l=z.next())if(l.value.textContent)return!0}return!1};
yYF=function(z){return z.sort(function(l,I){return uNc(I)-uNc(l)})};
fk8=function(z){z=Array.from(z.querySelectorAll(EWX)).filter(function(l){return(ND0(l.style)?ND0(window.getComputedStyle(l)):!1)&&Hrs(l)});
return Zr0(z)?yYF(z):z};
Ccq=function(z){z=fk8(z);z.length>0&&z[0].focus()};
kNs=function(z,l){l.stack&&(z.stack+="\n"+l.stack);return z};
KaS=function(z){var l=gF(z,"Content-Type");if(!l)return null;l=l.toLowerCase();if(l.startsWith("application/json"))return l.startsWith("application/json+protobuf")?new RW4:new _.Bo;if(l.startsWith("application/x-protobuf")){z=gF(z,"Content-Transfer-Encoding");if(!z)return new Gt;if(z.toLowerCase()=="base64")return new moC}return null};
TDF=function(z,l,I,b){var v=new tbX(function(g,G){return BDs.has(G)?g.sentinel==="gal"&&g.event!==void 0:!1},function(g){g.event?(g=XFl(g.event),g=!g||qr8(b,g)?!0:_.Xl(z.lastEvent,NI,2,Et)?!_.Xl(g,uw,1,Et)&&!_.Xl(g,NI,2,Et):!_.Xl(g,uw,1,Et)&&!_.Xl(g,NI,3,Et)):g=!0;
return g});
I=_.y6(z.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",irW(I)]]));if(z.nestedOrigins!==void 0)for(var M=_.D(z.nestedOrigins),x=M.next();!x.done;x=M.next())I=_.y6(I,new Map([["origin",x.value]]));return Fa1(v,I,l).then(function(g){g=QD0(g.event);if(_.Xl(g,uw,1,Et)){var G,u=(G=_.rG(g,uw,1,Et))==null?void 0:_.Px(G,2);u&&b.JSC$19389_logErrorEvent(Yr4(u));G=_.rG(g,uw,1,Et);_.Px(G,2)===4?(g=_.rG(g,uw,1,Et),g={statusCode:11,statusMessage:_.oX(g,
3)}):(g=_.rG(g,uw,1,Et),g={statusCode:12,statusMessage:_.oX(g,3)});return g}_.Xl(g,NI,3,Et)?(g=_.rG(g,NI,3,Et),g={statusCode:1,consentLanguageKeys:_.oX(g,2)}):g={statusCode:1};return g}).catch(function(g){return g.errorCode!==void 0?{statusCode:g.errorCode,
statusMessage:g.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
oWS=function(z){var l={};if(z===void 0||z===null)return l;z.getToken()!==void 0&&cYK(z.getToken())&&cYK(z.getToken()).length>0&&(l.scopes=new Set(cYK(z.getToken())));z.getToken()!==void 0&&Sr0(z.getToken())&&Sr0(z.getToken()).length>0&&(l.capabilities=new Set(Sr0(z.getToken())));_.oX(z,3)!==void 0&&(l.consistencyKey=_.oX(z,3));z.getName()!==void 0&&z.getName()!==""&&(l.linkName=z.getName());_.Bx(z,doc,4)&&(z=_.gi(z,doc,4),z=Object.assign({},_.oX(z,1)&&{userId:_.oX(z,1)},_.oX(z,2)&&{displayName:_.oX(z,
2)},_.oX(z,3)&&{email:_.oX(z,3)},_.oX(z,5)&&{username:_.oX(z,5)},_.oX(z,4)&&{profilePicture:_.oX(z,4)}),l.profile=z);return l};
Pc4=function(z,l){var I=z.flowParams,b;return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:z.currentFlow,googleScopesString:l,linkingSessionSerialized:z.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:z.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(b=I.partnerConfigMinReadTimestamp)==null?void 0:b.serialize()}};
eW8=function(z){var l=z.googleScopes!==void 0?Array.from(z.googleScopes).join(","):"";hWc(Pc4(z,l));l=sDy(z);return l===null?Promise.resolve(rY4):l.start().then(function(I){var b,v=(b=I.link)==null?void 0:b.consistencyKey;return I.statusCode===1&&z.googleScopes!==void 0&&z.googleScopes.size>0&&v!==void 0?(b=z.flowParams,$ol(b.serviceId,b.sessionId,z.googleScopes,v,b.galService,z.config,I)):I})};
wFX=function(z){var l=sDy(z);return l===null?Promise.resolve(Zl({statusCode:7,statusMessage:"Failed to create flow object"},z.callerState)):l.complete().then(function(I){var b,v=(b=I.link)==null?void 0:b.consistencyKey;return I.statusCode===1&&z.googleScopes!==void 0&&z.googleScopes.size>0&&v!==void 0?(b=z.flowParams,$ol(b.serviceId,b.sessionId,z.googleScopes,v,b.galService,z.config,I)):Zl(I,z.callerState)},function(I){return Zl({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},z.callerState)})};
$ol=function(z,l,I,b,v,M,x){return AYK(v,{serviceId:z,sessionId:l,googleScopes:I,consistencyKey:b}).then(function(){return x},function(g){return v.deleteLink({serviceId:z,
sessionId:l,accountLinkingEntryPoint:M.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+g.message}},function(G){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+G.message}})})};
sDy=function(z){switch(z.currentFlow){case 1:var l=z.flowParams;z=_.gi(z.session,Wa8,1);return Hv.createOAuthFlow(l,z);case 2:case 3:return l=z.flowParams,z=_.gi(z.session,nWS,6),yv.createStreamlinedFlow(l,z);default:return null}};
LaK=function(z,l){z===2&&(z=3);var I=0;fS.indexOf(z)!==-1&&(I=fS.indexOf(z)+1);for(z=I;z<fS.length;z++)if(l.has(fS[z]))return fS[z]};
Vbq=function(z){var l=z.serviceId;var I=z.sessionId;var b=z.config;var v=z.galService;var M=z.capabilities;var x=z.scopes;var g=z.loginHint;var G=z.callerState;var u=z.consentLanguageKeys;var Z=z.linkName;var H=z.dynamicUrlParameters;var y=z.partnerConfigMinReadTimestamp;z=b.dataUsageNoticeConfig?b.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return v.startLinkingSession({serviceId:l,sessionId:I,capabilities:M,scopes:x,loginHint:g,callerState:G,supportedFlows:UoK(b.supportedFlows),completionUrl:b.completionUrl,
accountLinkingEntryPoint:b.accountLinkingEntryPoint,consentLanguageKeys:u,dataUsageNoticeConfig:z,linkName:Z,dynamicUrlParameters:H,partnerConfigMinReadTimestamp:y}).then(function(f){return new ak4(l,I,b,v,f,void 0,G,u,H,y)})};
bJs=function(z,l,I){var b=(new jDS).getSession(z);if(b===null)return Promise.resolve({statusCode:2});JYc(z);var v=zHy(b.linkingSessionSerialized),M=b.googleScopesString!==""&&b.googleScopesString!==void 0?new Set(b.googleScopesString.split(",")):void 0,x=b.partnerConfigMinReadTimestampSerialized?lPC(b.partnerConfigMinReadTimestampSerialized):void 0;return IPS(new ak4(z,b.sessionId,l,I,v,M,b.callerState,b.consentLanguageKeys,b.dynamicUrlParameters,x),b.currentFlow,b.consentLanguageKeys)};
hWc=function(z){var l=new jDS;l.storage!==null&&l.storage.set("SAVED_SESSION",z)};
JYc=function(z){var l=new jDS;if(l.storage!==null){var I=l.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===z&&l.storage.remove("SAVED_SESSION")}};
UoK=function(z){var l=new Set;z=_.D(z);for(var I=z.next();!I.done;I=z.next())I=I.value,I!==1&&vEq.has(I)&&l.add(vEq.get(I));return l};
Zl=function(z,l){l!==void 0&&(z.callerState=l);return z};
Mg1=function(z){switch(z){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
xXC=function(z){return new pyl(z,new DXS(z))};
G98=function(z,l){l=l===void 0?!1:l;var I=document.createElement("div");z&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=l?"rgba(138,180,248,.24)":"#e8f0fe";I.style.height="4px";I.style.overflow="hidden";I.style.position="absolute";I.style.top="0";I.style.width="100%";I.style.zIndex="1500";I.setAttribute("aria-label","Loading");I.setAttribute("aria-live","polite");z=document.createElement("style");z.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  }";
I.appendChild(z);z=OJS();z.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";z.style.left="-145.166611%";var b=gE8(l);b.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";z.appendChild(b);I.appendChild(z);z=OJS();z.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";z.style.left="-54.888891%";l=gE8(l);l.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
z.appendChild(l);I.appendChild(z);return I};
OJS=function(){var z=document.createElement("div");z.style.height="100%";z.style.position="absolute";z.style.transformOrigin="top left";z.style.width="100%";return z};
gE8=function(z){var l=document.createElement("span");l.style.borderTop=z?"4px solid #669df6":"4px solid #4285f4";l.style.display="inline-block";l.style.position="absolute";l.style.width="100%";return l};
Nc1=function(z){return z==null?void 0:_.ZDI(z).valueOf()};
HJX=function(z){var l=document.body,I=!1,b=function(){I||(I=!0,EEX(v,M),setTimeout(function(){l.removeChild(M);l.removeChild(v)},150))},v=u60(z,getComputedStyle(l).direction==="rtl",b),M=ZJK(b);
EEX(v,M);l.appendChild(M);l.appendChild(v);window.requestAnimationFrame(function(){M.style.opacity="1";v.style.opacity="1";v.style.transform="translate(-50%, -50%) scale(1)";v.children[0].focus()})};
u60=function(z,l,I){var b=document.createElement("div");b.style.position="fixed";b.style.alignItems="center";b.style.backgroundColor=z?"rgb(32, 33, 36)":"white";b.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";b.style.display="flex";b.style.flexDirection="column";b.style.justifyContent="center";b.style.left="50%";b.style.top="50%";b.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";b.style.zIndex="2002";document.body.clientWidth>=
660?(b.style.borderRadius="8px",b.style.minHeight="220px",b.style.maxHeight="90%",b.style.maxWidth="90%",b.style.minWidth="540px"):(b.style.height="100%",b.style.width="100%");b.setAttribute("aria-label","Error");b.setAttribute("aria-modal","true");b.setAttribute("role","alertdialog");b.addEventListener("keydown",function(M){M.key==="Escape"&&I()});
l=yPs(z,l,I);b.appendChild(fP1(l));b.appendChild(l);var v=document.createElement("img");v.src=z?"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";v.style.height="72px";v.style.width="72px";v.style.color="#9aa0a6";v.setAttribute("alt","");b.appendChild(v);v=document.createElement("h1");v.textContent="Something went wrong.  Try again.";
v.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";v.style.lineHeight="24px";v.style.fontSize="16px";v.style.textAlign="center";v.style.letterSpacing="0.1px";v.style.color=z?"rgb(232,234,237)":"#3c4043";b.appendChild(v);b.appendChild(fP1(l));return b};
yPs=function(z,l,I){var b=document.createElement("button");b.style.backgroundColor="transparent";b.style.border="none";b.style.borderRadius="50%";b.style.cursor="pointer";b.style.outline="none";b.style.padding="12px";b.setAttribute("aria-label","Close dialog");b.style.position="absolute";b.style.top="0";l?b.style.right="0":b.style.left="0";b.addEventListener("focus",function(){b.style.backgroundColor=z?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
b.addEventListener("blur",function(){b.style.backgroundColor="transparent"});
b.addEventListener("mouseenter",function(){b.style.backgroundColor=z?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
b.addEventListener("mouseleave",function(){b.style.backgroundColor="transparent"});
b.addEventListener("click",I);b.addEventListener("keydown",function(v){v.key!=="Enter"&&v.key!=="Space"||I()});
l=document.createElement("img");l.src=z?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";l.style.display="block";l.style.height="24px";l.style.width="24px";l.setAttribute("alt","");b.appendChild(l);return b};
fP1=function(z){var l=document.createElement("div");l.setAttribute("tabindex","0");l.setAttribute("aria-hidden","true");l.addEventListener("focus",function(){return void z.focus()});
return l};
ZJK=function(z){var l=document.createElement("div");l.style.backgroundColor="rgba(32,33,36,0.6)";l.style.bottom="0";l.style.left="0";l.style.position="fixed";l.style.right="0";l.style.top="0";l.style.transition=" opacity 150 ms linear";l.style.zIndex="2001";l.addEventListener("click",z);return l};
EEX=function(z,l){l.style.opacity="0";z.style.opacity="0";z.style.transform="translate(-50%, -50%) scale(0.8)"};
C54=function(z,l){z.sandbox&&z.sandbox.add&&(z.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),z.sandbox.add("allow-downloads"));z.src=l};
CS=function(z){k9y.call(this,z)};
ku=function(z,l){l=l===void 0?!1:l;this.parsedImageUrl_=null;z instanceof RHy||(mXc==void 0&&(mXc=new K2W),z=mXc.parse(z.toString(),l));z=this.parsedImageUrl_=z;z.JSC$19601_parsedOptions_==void 0&&((l=z.getOptions())||(l=""),z.JSC$19601_parsedOptions_=(new tgq).parse(l));k9y.call(this,z.JSC$19601_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;z=this.parsedImageUrl_;l=z.uri_.JSC$10032_port_;this.JSC$19603_domain_=z.uri_.JSC$10032_domain_+(l?":"+l:"");this.JSC$19603_query_=
this.parsedImageUrl_.uri_.JSC$10032_queryData_.toString()};
BcF=function(z){this.mode=4;this.data=z;this.parsedData=[];z=0;for(var l=this.data.length;z<l;z++){var I=[],b=this.data.charCodeAt(z);b>65536?(I[0]=240|(b&1835008)>>>18,I[1]=128|(b&258048)>>>12,I[2]=128|(b&4032)>>>6,I[3]=128|b&63):b>2048?(I[0]=224|(b&61440)>>>12,I[1]=128|(b&4032)>>>6,I[2]=128|b&63):b>128?(I[0]=192|(b&1984)>>>6,I[1]=128|b&63):I[0]=b;this.parsedData.push(I)}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))};
XyW=function(z){this.typeNumber=0;this.errorCorrectLevel=z===void 0?2:z;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Rd=function(z,l){if(z.length==void 0)throw Error("Hk`"+z.length+"`"+l);for(var I=0;I<z.length&&z[I]==0;)I++;this.num=Array(z.length-I+l);for(l=0;l<z.length-I;l++)this.num[l]=z[l+I]};
qxq=function(z,l){this.totalCount=z;this.dataCount=l};
iJC=function(){this.buffer=[];this.length=0};
F2X=function(){var z=!1;if(_.Zuu()){z=_.Cu();var l="";_.fSS()?(l=/Windows (?:NT|Phone) ([0-9.]+)/,l=(z=l.exec(z))?z[1]:"0.0"):_.Y5()?(l=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,l=(z=l.exec(z))&&z[1].replace(/_/g,".")):_.yG1()?(l=/Mac OS X ([0-9_.]+)/,l=(z=l.exec(z))?z[1].replace(/_/g,"."):"10"):_.EY(_.Cu(),"KaiOS")?(l=/(?:KaiOS)\/(\S+)/i,l=(z=l.exec(z))&&z[1]):_.Zuu()?(l=/Android\s+([^\);]+)(\)|;)/,l=(z=l.exec(z))&&z[1]):_.CHt()&&(l=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,l=(z=l.exec(z))&&z[1]);z=
l||""}return z};
dX1=function(z,l){this.JSC$19626__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(l)for(var I in l)this.JSC$19626__htOption[I]=l[I];this.JSC$19626__htOption.useSVG&&(Q8K=Yx4);this.JSC$19626__android=F2X();this.JSC$19626__el=z;this._oQRCode=null;this._oDrawing=new Q8K(this.JSC$19626__el,this.JSC$19626__htOption);this.JSC$19626__htOption.text&&(z=this.JSC$19626__htOption.text,this._oQRCode=new XyW(this.JSC$19626__htOption.correctLevel),Tcy(this._oQRCode,
z),l=this._oQRCode,cPc(l,!1,SxK(l)),this.JSC$19626__el.title=z,this._oDrawing.draw(this._oQRCode),this.makeImage())};
oEy=function(z,l,I,b,v){z.save();var M=new Path2D;M.roundRect(l,I,b*7,b*7,b*2);M.roundRect(l+b,I+b,b*5,b*5,b*1.3);M.roundRect(l+2*b,I+2*b,b*3,b*3,b);z.clip(M,"evenodd");z.fillStyle=v;z.fillRect(0,0,z.canvas.width,z.canvas.height);z.restore()};
mk=function(z,l){if(typeof z!=="function")throw Error("Kk");return _.v7.setTimeout(function(){z()},l)};
KS=function(){};
hH0=function(z,l,I,b,v){(new KS).debug("TestLoadImageWithRetries: "+v);if(b==0)I(!1);else{var M=v||0;b--;P5K(z,l,function(x){x?I(!0):_.v7.setTimeout(function(){hH0(z,l,I,b,M)},M)})}};
P5K=function(z,l,I){var b=new KS;b.debug("TestLoadImage: loading "+z);var v=new Image;v.onload=function(){try{b.debug("TestLoadImage: loaded"),s84(v),I(!0)}catch(M){}};
v.onerror=function(){try{b.debug("TestLoadImage: error"),s84(v),I(!1)}catch(M){}};
v.onabort=function(){try{b.debug("TestLoadImage: abort"),s84(v),I(!1)}catch(M){}};
v.ontimeout=function(){try{b.debug("TestLoadImage: timeout"),s84(v),I(!1)}catch(M){}};
_.v7.setTimeout(function(){if(v.ontimeout)v.ontimeout()},l);
v.src=z};
s84=function(z){z.onload=null;z.onerror=null;z.onabort=null;z.ontimeout=null};
rPq=function(){this.front_=[];this.back_=[]};
$XF=function(z,l){this.action=z;this.params=l||{}};
eHq=function(z,l){_.Q9.call(this);this.delay_=new _.Tz(this.JSC$19752_onTick_,0,this);_.kN(this,this.delay_);this.JSC$19750_interval_=5E3;this.nextTickTime_=0;if(typeof z==="function")l&&(z=(0,_.YN)(z,l));else if(z&&typeof z.handleEvent==="function")z=(0,_.YN)(z.handleEvent,z);else throw Error("ya");this.JSC$19752_listener_=z};
ta=function(z,l,I,b,v,M,x,g,G,u,Z,H,y,f){I=I===void 0?!1:I;b=b===void 0?function(){return""}:b;
v=v===void 0?!1:v;M=M===void 0?!1:M;x=x===void 0?!1:x;g=g===void 0?function(){return _.Hu({})}:g;
G=G===void 0?!1:G;Z=Z===void 0?!1:Z;H=H===void 0?!1:H;y=y===void 0?!1:y;f=f===void 0?!1:f;this.JSC$19753_pathPrefix_=z;this.defaultQueryParams_=l;this.pubsub_=new _.ks;this.reconnectTimer_=new eHq(this.safeReconnect_,this);this.JSC$19753_channel_=null;this.JSC$19753_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19753_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$19753_getXsrfToken_=b;this.useAsyncBrowserChannelHandler_=M;this.getAuthorizationHeader_=
g;this.getAuthorizationHeaderSync_=u;this.enableCachedUpdateAuthorizationHeader_=x;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Hu();this.enableLoungeTokenRefresh_=v;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=G;this.disableMdxAuthForNonPlaybackMessages_=Z;this.disableMdxAuthForAdMessages_=H;this.enableMdxAuthForConnectionOnly_=y;this.disableMdxAuthForShortsMessages_=f;this.JSC$19753_channelOpenedCounter=new wyq;this.JSC$19753_channelClosedCounter=new APS;this.channelMessageSentCounter=
new W28;this.JSC$19753_channelMessageReceivedCounter=new nE8;this.JSC$19753_channelErrorCounter=new L21;this.pendingMapsOnClosedCounter=new UXX;this.undeliveredMapsOnClosedCounter=new aPy};
Bv=function(z){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;z=z||document.location.href;var l=Number(_.zo(z)[4]||null)||"";l&&(this.port=":"+l);this.domain=_.lf(z)||"";z=_.Cu();z.search("MSIE")>=0&&_.y$(z.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Xy=function(z){z=z||{};this.name=z.name||"";this.id=z.id||z.screenId||"";this.token=z.token||z.loungeToken||"";this.uuid=z.uuid||z.dialId||"";this.idType=z.screenIdType||"normal"};
VgK=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(z){var l=Math.random()*16|0;return(z=="x"?l:l&3|8).toString(16)})};
j8S=function(z){return _.s7(z,function(l){return{key:l.id,name:l.name}})};
JP1=function(z,l){return _.Sx(z,function(I){return I||l?!I!=!l?!1:I.id==l.id:!0})};
iw=function(z,l){return _.Sx(z,function(I){return qI(I,l)})};
vC0=function(){var z=zKc(),l=lfS();if(IfW()){var I=z,b=_.iuk(I,l);b<0&&_.Bf5(I,-(b+1),0,l)}z=bEF(z);if(z.length==0)try{_.mFf("remote_sid")}catch(v){}else try{_.KG("remote_sid",z.join(","),-1)}catch(v){}};
zKc=function(){var z=_.rD("yt-remote-connected-devices")||[];z.sort(_.qYQ);return z};
bEF=function(z){if(z.length==0)return[];var l=z[0].indexOf("#"),I=l==-1?z[0]:z[0].substring(0,l);return _.s7(z,function(b,v){return v==0?b:b.substring(I.length)})};
MZF=function(z){_.sr("yt-remote-connected-devices",z,86400)};
lfS=function(){if(phl)return phl;var z=_.rD("yt-remote-device-id");z||(z=VgK(),_.sr("yt-remote-device-id",z,31536E3));for(var l=zKc(),I=1,b=z;_.rf(l,b);)I++,b=z+"#"+I;return phl=b};
D8S=function(){return _.rD("yt-remote-session-browser-channel")};
IfW=function(){return _.rD("yt-remote-session-screen-id")};
gCy=function(z){z.length>5&&(z=z.slice(z.length-5));var l=_.s7(x8s(),function(b){return b.loungeToken}),I=_.s7(z,function(b){return b.loungeToken});
_.YsQ(I,function(b){return!_.rf(l,b)})&&OE4();
_.sr("yt-remote-local-screens",z,31536E3)};
x8s=function(){return _.rD("yt-remote-local-screens")||[]};
OE4=function(){_.sr("yt-remote-lounge-token-expiration",!0,86400)};
Fy=function(z){z||(_.$W("yt-remote-session-screen-id"),_.$W("yt-remote-session-video-id"));vC0();z=zKc();_.$5(z,lfS());MZF(z)};
NZy=function(){G40();return Qv?!!Qv.get("yt-remote-use-staging-server"):!1};
G40=function(){if(!Qv){var z=_.YpY();z&&(Qv=new _.Fm(z))}};
HEs=function(z,l,I,b,v){I=I===void 0?function(){return""}:I;
var M=function(){return new ta(Yu(z,"/bc"),l,!1,I,b)};
return _.C("enable_mdx_web_channel_desktop")?new ECK(function(){return new uaW(Yu(z,"/wc"),l,I)}):new ZEF(M,v)};
k4S=function(){var z=yxq;ffW();Tt.push(z);CYy()};
cv=function(z,l){ffW();var I=RK8(z,String(l));Tt.length==0?m8l(I):(CYy(),_.UZ(Tt,function(b){b(I)}))};
SL=function(z){cv("CP",z)};
ffW=function(){Tt||(Tt=_.W8("yt.mdx.remote.debug.handlers_")||[],_.vd("yt.mdx.remote.debug.handlers_",Tt))};
m8l=function(z){var l=(dF+1)%50;dF=l;KhS[l]=z;tZ1||(tZ1=l==49)};
CYy=function(){var z=Tt;if(KhS[0]){var l=tZ1?dF:-1,I={};do I={record$jscomp$15:void 0},l=(l+1)%50,I.record$jscomp$15=KhS[l],_.UZ(z,function(b){return function(v){v(b.record$jscomp$15)}}(I));
while(l!=dF);KhS=Array(50);dF=-1;tZ1=!1}};
RK8=function(z,l){var I=(Date.now()-BZq)/1E3;I.toFixed&&(I=I.toFixed(3));var b=[];b.push("[",I+"s","] ");b.push("[","yt.mdx.remote","] ");b.push(z+": "+l,"\n");return b.join("")};
od=function(z){_.$3.call(this);this.JSC$19777_logName_=z;this.screens=[]};
ha=function(z){od.call(this,"LocalScreenService");this.JSC$19784_http_=z;this.loungeTokenRefreshTimer_=NaN;Pv(this);this.info("Initializing with "+Xh0(this.screens))};
st=function(z,l){l=l===void 0?!1:l;od.call(this,"ScreenService");this.JSC$19790_http_=z;this.disableAutomaticScreenCache_=l;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};qiK(this)};
rF=function(z,l,I){_.$3.call(this);this.JSC$19794_logName_=I;this.JSC$19794_screenService_=z;this.receiver_=l;this.screen_=null};
whW=function(z,l,I){I.disableCastApi?$u("Cannot initialize because disabled by Mdx config."):iEC()?FhK(z,I)&&(QeK(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Yis(l):(window.__onGCastApiAvailable=function(b,v){b?Yis(l):(eL("Failed to load cast API: "+v),TZs(!1),QeK(!1),_.$W("yt-remote-cast-available"),_.$W("yt-remote-cast-receiver"),cx1(),l(!1))},I.loadCastApiSetupScript?_.nQ(Siq):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
d8y()>=60&&oCS():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?PYW():d8y()>=89?hK4():(seF(),rxS($8K.map(eK1))))):$u("Cannot initialize because not running Chrome")};
cx1=function(){$u("dispose");var z=wF();z&&z.dispose();_.vd("yt.mdx.remote.cloudview.instance_",null);AxW(!1);_.OKu(WhX);WhX.length=0};
nC8=function(){return!!_.rD("yt-remote-cast-installed")};
Lhl=function(){var z=_.rD("yt-remote-cast-receiver");return z?z.friendlyName:null};
U8X=function(){$u("clearCurrentReceiver");_.$W("yt-remote-cast-receiver")};
afl=function(){return nC8()?wF()?wF().getCastSession():(eL("getCastSelector: Cast is not initialized."),null):(eL("getCastSelector: Cast API is not installed!"),null)};
jeK=function(z,l){VZy()?wF().setConnectedScreenStatus(z,l):eL("setConnectedScreenStatus called before ready.")};
iEC=function(){var z=_.Cu().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.kx||z};
FhK=function(z,l){var I=!1;wF()||(z=new Aa(z,l),z.subscribe("yt-remote-cast2-availability-change",function(b){_.sr("yt-remote-cast-available",b);J1("yt-remote-cast2-availability-change",b)}),z.subscribe("yt-remote-cast2-receiver-selected",function(b){$u("onReceiverSelected: "+b.friendlyName);
_.sr("yt-remote-cast-receiver",b);J1("yt-remote-cast2-receiver-selected",b)}),z.subscribe("yt-remote-cast2-receiver-resumed",function(b){$u("onReceiverResumed: "+b.friendlyName);
_.sr("yt-remote-cast-receiver",b);J1("yt-remote-cast2-receiver-resumed",b)}),z.subscribe("yt-remote-cast2-session-change",function(b){$u("onSessionChange: "+Jxc(b));
b||_.$W("yt-remote-cast-receiver");J1("yt-remote-cast2-session-change",b)}),_.vd("yt.mdx.remote.cloudview.instance_",z),I=!0);
$u("cloudview.createSingleton_: "+I);return I};
wF=function(){return _.W8("yt.mdx.remote.cloudview.instance_")};
Yis=function(z){TZs(!0);QeK(!1);wF().init(!1,function(l){l?(AxW(!0),_.glt("yt-remote-cast2-api-ready")):(eL("Failed to initialize cast API."),TZs(!1),_.$W("yt-remote-cast-available"),_.$W("yt-remote-cast-receiver"),cx1());z(l)})};
$u=function(z){cv("cloudview",z)};
eL=function(z){cv("cloudview",z)};
TZs=function(z){$u("setCastInstalled_ "+z);_.sr("yt-remote-cast-installed",z)};
VZy=function(){return!!_.W8("yt.mdx.remote.cloudview.apiReady_")};
AxW=function(z){$u("setApiReady_ "+z);_.vd("yt.mdx.remote.cloudview.apiReady_",z)};
QeK=function(z){_.vd("yt.mdx.remote.cloudview.initializing_",z)};
Wv=function(z){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(z)};
prW=function(z){G40();if(!Qv||!Qv.get("yt-remote-disable-remote-module-for-dev")){z=_.sZ("MDX_CONFIG")||z;Ng8();vC0();nS||(nS=new Bv(z?z.loungeApiHost:void 0),NZy()&&(nS.basePath="/api/loungedev"));LS||(LS=_.W8("yt.mdx.remote.deferredProxies_")||[],_.vd("yt.mdx.remote.deferredProxies_",LS));zSS();var l=Ut();if(!l){var I=new st(nS,z?z.disableAutomaticScreenCache||!1:!1);_.vd("yt.mdx.remote.screenService_",I);l=Ut();var b={};z&&(b={appId:z.appId,disableDial:z.disableDial,theme:z.theme,loadCastApiSetupScript:z.loadCastApiSetupScript,
disableCastApi:z.disableCastApi,enableDialLoungeToken:z.enableDialLoungeToken,enableCastLoungeToken:z.enableCastLoungeToken,forceMirroring:z.forceMirroring});_.vd("yt.mdx.remote.enableConnectWithInitialState_",z?z.enableConnectWithInitialState||!1:!1);whW(I,function(M){M?ad()&&jeK(ad(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){J1("yt-remote-receiver-availability-change")})},b)}if(z&&!_.W8("yt.mdx.remote.initialized_")){_.vd("yt.mdx.remote.initialized_",!0);
Vv("Initializing: "+(0,_.wO)(z));jL.push(_.Gu("yt-remote-cast2-api-ready",function(){J1("yt-remote-api-ready")}));
jL.push(_.Gu("yt-remote-cast2-availability-change",function(){J1("yt-remote-receiver-availability-change")}));
jL.push(_.Gu("yt-remote-cast2-receiver-selected",function(){lYq();J1("yt-remote-auto-connect","cast-selector-receiver")}));
jL.push(_.Gu("yt-remote-cast2-receiver-resumed",function(){J1("yt-remote-receiver-resumed","cast-selector-receiver")}));
jL.push(_.Gu("yt-remote-cast2-session-change",IYy));jL.push(_.Gu("yt-remote-connection-change",function(M){M?jeK(ad(),"YouTube TV"):bKX()||(jeK(null,null),U8X())}));
jL.push(_.Gu("yt-remote-cast2-session-failed",function(){J1("yt-remote-connection-failed")}));
b=vl4();z.isAuto&&(b.id+="#dial");var v=z.capabilities||[];v.length>0&&(b.capabilities=v);b.name=z.device;b.app=z.app;(z=z.theme)&&(b.theme=z);Vv(" -- with channel params: "+(0,_.wO)(b));b?(_.sr("yt-remote-session-app",b.app),_.sr("yt-remote-session-name",b.name)):(_.$W("yt-remote-session-app"),_.$W("yt-remote-session-name"));_.vd("yt.mdx.remote.channelParams_",b);l.start();ad()||MOK()}}};
xt1=function(){var z=Ut().instance_.$_gos();var l=DtC();l&&Ja()&&(JP1(z,l)||z.push(l));return j8S(z)};
OKl=function(){var z=xt1(),l=DtC();l||(l=bKX());return _.Sx(z,function(I){return l&&qI(l,I.key)?!0:!1})};
DtC=function(){var z=ad();if(!z)return null;var l=Ut().getScreens();return iw(l,z)};
IYy=function(z){Vv("remote.onCastSessionChange_: "+Jxc(z));if(z){var l=DtC();if(l&&l.id==z.id){if(jeK(l.id,"YouTube TV"),z.idType=="shortLived"&&(z=z.token))glq&&(glq.token=z),(l=Ja())&&l.setLoungeToken(z)}else l&&GHl(),NoC(z,1)}else Ja()&&GHl()};
GHl=function(){VZy()?wF().stopSession():eL("stopSession called before API ready.");var z=Ja();z&&(z.disconnect(1),Ely(null))};
uV4=function(){var z=Ja();return z&&z.getProxyState()!=3?new z7(Ja(),void 0):null};
Vv=function(z){cv("remote",z)};
Ut=function(){if(!ZKX){var z=_.W8("yt.mdx.remote.screenService_");ZKX=z?new HKy(z):null}return ZKX};
ad=function(){return _.W8("yt.mdx.remote.currentScreenId_")};
yNW=function(z){_.vd("yt.mdx.remote.currentScreenId_",z)};
lYq=function(){_.vd("yt.mdx.remote.connectData_",null)};
Ja=function(){return _.W8("yt.mdx.remote.connection_")};
Ely=function(z){var l=Ja();lYq();z||yNW("");_.vd("yt.mdx.remote.connection_",z);LS&&(_.UZ(LS,function(I){I(z)}),LS.length=0);
l&&!z?J1("yt-remote-connection-change",!1):!l&&z&&J1("yt-remote-connection-change",!0)};
bKX=function(){var z=IfW();if(!z)return null;var l=Ut();if(!l)return null;l=l.getScreens();return iw(l,z)};
NoC=function(z,l){fYq?glq=z:(yNW(z.id),z=new l3(nS,z,vl4(),_.W8("yt.mdx.remote.enableConnectWithInitialState_")||!1),z.connect(l,_.W8("yt.mdx.remote.connectData_")),z.subscribe("beforeDisconnect",function(I){J1("yt-remote-before-disconnect",I)}),z.subscribe("beforeDispose",function(){Ja()&&Ely(null)}),z.subscribe("browserChannelAuthError",function(){var I=DtC();
I&&I.idType=="shortLived"&&(VZy()?wF().handleBrowserChannelAuthError():eL("refreshLoungeToken called before API ready."))}),Ely(z))};
MOK=function(){var z=bKX();z?(Vv("Resume connection to: "+Jxc(z)),NoC(z,0)):(Fy(),U8X(),Vv("Skipping connecting because no session screen found."))};
zSS=function(){var z=vl4();if(_.h7.isEmpty(z)){z=lfS();var l=_.rD("yt-remote-session-name")||"",I=_.rD("yt-remote-session-app")||"";z={device:"REMOTE_CONTROL",id:z,name:l,app:I,mdxVersion:3};z.authuser=String(_.sZ("SESSION_INDEX","0"));(l=_.sZ("DELEGATED_SESSION_ID"))&&(z.pageId=String(l));_.vd("yt.mdx.remote.channelParams_",z)}};
vl4=function(){return _.W8("yt.mdx.remote.channelParams_")||{}};
COs=function(){var z,l;return _.O(function(I){if(I.nextAddress==1)return(_.nCY()||_.C("use_new_nwl"))&&_.eKQ().isNetworkAvailable()?I.yield(_.MW(),2):I.return();if(I.nextAddress!=3)return(z=I.yieldResult)?I.yield(duK(z),3):I.return();l=I.yieldResult;if(!l.length)return I.return();l.forEach(function(b){var v={timestamp:b.timestamp};b=b.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:b.appShellAssetLoadReport,options:v}:b.clientError?{payloadName:"clientError",payload:b.clientError,
options:v}:void 0;b&&_.cW(b.payloadName,b.payload,b.options)});
l.length===100&&_.ow.addLowPriorityJob(COs);_.qe(I)})};
kH4=function(z){if(z.playerResponse){if(z=z.playerResponse,z.messages&&z.messages.length>0&&(z=z.messages.find(function(l){return!(!l||!l.mealbarPromoRenderer)}))&&z.mealbarPromoRenderer)return z.mealbarPromoRenderer}else if(z.response&&(z=z.response)&&z.overlay&&z.overlay.mealbarPromoRenderer)return z.overlay.mealbarPromoRenderer};
RSC=function(z){if(z.response){var l=z.response;if(l&&l.overlay&&l.overlay.tooltipRenderer)return l.overlay.tooltipRenderer}if(z.playerResponse&&(z=z.playerResponse,z.messages&&z.messages.length>0&&(z=z.messages.find(function(I){return!(!I||!I.tooltipRenderer)}))&&z.tooltipRenderer))return z.tooltipRenderer};
K94=function(z){if(!mtK&&(z=z||_.sZ("ZWIEBACK_PING_URLS"))&&z.length){mtK=!0;for(var l=0;l<z.length;l++)_.np(z[l])}};
Bol=function(z){if(_.h7.get(_.sZ("PLAYER_VARS",{}),"privembed",!1)!="1"){z&&Xus();try{tOX().then(function(){},function(){}),_.EI(Bol,18E5)}catch(l){_.$P(l)}}};
XrC=function(){var z=_.Bu(),l=z.getFlag(119),I=window.devicePixelRatio>1;document.body&&_.vH(document.body,"exp-invert-logo")&&(I&&!_.vH(document.body,"inverted-hdpi")?_.DY(document.body,"inverted-hdpi"):!I&&_.vH(document.body,"inverted-hdpi")&&_.Mt(document.body,"inverted-hdpi"));l!=I&&(_.XG(0,119,I),z.save())};
qWW=function(z){return z.filter(function(l){return"ypcGetCartEndpoint"in l||"ypcFixInstrumentEndpoint"in l})};
iKW=function(z){return z.filter(function(l){return!_.k(l,_.co_)})};
Q2y=function(z,l){var I,b,v,M,x,g,G;_.O(function(u){switch(u.nextAddress){case 1:I=_.PF.getInstance();b=_.KE.instance;v=_.zS.instance;if(!v)return F9W(z,b,l),u.return();_.RL(u,2);z.onLoadingCommand&&b.resolveCommand(z.onLoadingCommand);return u.yield(I.getCurrentPositionFromGeolocation(),4);case 4:M=u.yieldResult;if(!z.resolveLocationCommand){u.jumpTo(5);break}x=I.createLocationInfo(M);return u.yield(_.I0(v,z.resolveLocationCommand,{locationInfo:x}),6);case 6:g=u.yieldResult;if(!g||"error"in g&&g.error||
g.errorMetadata)return F9W(z,b,l),u.return();var Z;if(g==null?0:(Z=g.onResponseReceivedActions)==null?0:Z.length){Z=_.D(g.onResponseReceivedActions);for(var H=Z.next();!H.done;H=Z.next())b.resolveCommand(H.value)}(_.k(z.onSuccessCommand,_.zb)||_.k(z.onSuccessCommand,_.BF))&&_.gC(l.hostElement,"yt-navigate",{endpoint:z.onSuccessCommand,reload:!0});case 5:_.a3(u,0);break;case 2:G=_.XP(u);if(G instanceof GeolocationPositionError&&G.code===GeolocationPositionError.PERMISSION_DENIED)return z.onDeniedCommand&&
b.resolveCommand(z.onDeniedCommand),u.return();F9W(z,b,l);_.qe(u)}})};
F9W=function(z,l,I){z.onFailureCommand&&(l.resolveCommand(z.onFailureCommand),_.Gb(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
Toy=function(z,l){var I=_.k(z,_.EZu);if(I&&l){z=I.videoIds||[I.videoId];var b;l=(b=_.gC(l,"yt-lockup-requested",{videoIds:z}).detail)==null?void 0:b.returnValue;var v;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?v=l?l:z.map(function(M){return{videoId:M,navigationEndpoint:I.videoCommand}}):l&&(v=l);
v&&(b=v.map(function(M){var x=Object,g=x.assign;var G=M.navigationEndpoint;if(!_.k(G,_.FN)){var u=_.k(G,_.zb);if(u){if(delete u.index,delete u.playlistId,u=_.k(G==null?void 0:G.commandMetadata,_.kB),u==null?0:u.url){var Z=u.url;Z=_.Mu(Z,"list");Z=_.Mu(Z,"index");u.url=Z}}else G=void 0}return g.call(x,{},M,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:G})}),YWC(b,I))}};
cNc=function(z){var l=_.ya();if(z=_.k(z,_.uEj))z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&l.clearQueue(),z.closeMiniplayer&&_.pG().resolve(_.Af).close(!0)};
dtF=function(z){SWq(_.ya(),z)};
ol8=function(z){var l;(z=(l=_.k(z,_.Gp_))==null?void 0:l.setVideoIds)&&z.forEach(function(I){_.nHu(_.ya(),I)})};
hSF=function(z){POl(_.ya(),z)};
s28=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(z){return!1}};
rNK=function(z){var l=["h","m","s"],I=_.ex(l);I.reverse();var b={};z=(z.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(x){var g=(x.match(/[hms]/)||[""])[0];return g?(b[g]=parseInt(x.match(/\d+/)[0],10),!1):!0});
for(z.reverse();z.length&&I.length;){var v=I.shift();v in b||(b[v]=parseInt(z.shift(),10))}if(z.length||b.s>59||b.m>59||b.h>9)return null;var M="";l.forEach(function(x){b[x]&&(M+=""+b[x]+x)});
return M||null};
$t1=function(z,l){var I=_.oAn(l,{},z,!0);return new Promise(function(b,v){I.listenOnce("n",function(){v(Error("vl`"+I.JSC$29476_getErrorDescription()))});
I.listenOnce("l",function(){var M=I.getResponseCode();if(M!==200)v(Error("wl`"+l+"`"+z.type+"`"+z.size+"`"+M));else try{b(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(x){v(x)}});
I.run()})};
eSs=function(z){return z.substring(z.indexOf(":")+1,z.indexOf(";"))};
wr0=function(z){return new Promise(function(l,I){var b=new FileReader;b.onloadend=function(){try{var v=new Uint8Array(b.result);v.length<8&&I(void 0);var M=v.subarray(0,8);v="";for(var x=0;x<M.length;x++)v+=("0"+M[x].toString(16)).substr(-2);v.startsWith("ffd8ff")?l("image/jpeg"):v.startsWith("47494638")?l("image/gif"):v.startsWith("89504e470d0a1a0a")?l("image/png"):v.startsWith("424d")?l("image/bmp"):l(void 0)}catch(g){I(g)}};
b.onerror=I;b.readAsArrayBuffer(z)})};
ANC=function(z){return new Promise(function(l,I){var b=new Image;b.crossOrigin="anonymous";b.onload=function(){var v=document.createElement("canvas");v.width=b.naturalWidth;v.height=b.naturalHeight;var M=v.getContext("2d");if(!M)throw Error("xl");M.drawImage(b,0,0);M=eSs(z);v.toBlob(function(x){x?l(x):I()},M)};
b.src=z})};
nlF=function(z,l){var I;if(((I=_.k(z,_.FN))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var b;_.gC((b=l.hostElement)!=null?b:l,"yt-shorts-reset");_.UOp(_.pG().resolve(_.nq),z).then(function(M){W9X(M,l,z)})}else{var v;
_.uJ((v=l.hostElement)!=null?v:l,[z]).then(function(M){M&&W9X(M.data,l,z)})}};
W9X=function(z,l,I){if(z){var b=_.k(z.replacementEndpoint,_.FN);if(b){z.sequenceContinuation&&(b.sequenceParams=z.sequenceContinuation);var v;_.gC((v=l.hostElement)!=null?v:l,"yt-navigate",{endpoint:z.replacementEndpoint})}else if((z==null?void 0:z.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(z==null?0:z.watchStatus)&&_.k(z.watchStatus,_.Uxu)){var M;_.gC((M=l.hostElement)!=null?M:l,"yt-navigate",{endpoint:I})}}};
L9K=function(z){var l=_.pG().resolve(_.G$),I=_.JR.currentPageTypeSelector(l.getState())||"";l=_.JR.currentPageSubTypeSelector(l.getState())||"";I=I==="ytd-browse"&&l==="home";return _.C("web_guide_entry_enable_cache_for_non_home_pages")?(z=(z==null?void 0:z.navigationEndpoint)&&_.Kr(z.navigationEndpoint)==="home",{disableCache:I&&z}):{disableCache:I}};
Ut1=function(z){if(!z)return!1;try{if(z.host&&z.host.tagName==="YT-FORMATTED-STRING"&&z.host.id==="contenteditable-textarea"||z.nodeType===Node.ELEMENT_NODE&&z.tagName==="YTD-COMMENT-INPUT")return!0}catch(l){return!1}return Ut1(z.parentNode)};
IZ=function(z){return z?z.tagName==="A"&&z.href&&z.classList.contains("yt-simple-endpoint"):!1};
aYK=function(z){return z?z.tagName==="IMG"&&z.classList.contains("emoji"):!1};
VO4=function(z,l,I){if(!z)return null;var b=IZ(z);if(b&&I)return l=z.pathname.substring(z.pathname.indexOf("/channel/")+9),document.createTextNode("@"+l);if(b&&!I)return document.createTextNode("");if(aYK(z))return I=z.alt,z=z.dataset.emojiId,!z&&l&&(l=_.yb(l,I))&&l.isCustomEmoji&&(z=l.emojiId),z?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+z+">"):document.createTextNode(I);b=z.cloneNode(!1);for(var v=0;v<z.childNodes.length;++v){var M=VO4(z.childNodes[v],l,I);M&&b.appendChild(M)}return b};
b3=function(z){return z?IZ(z)?z:b3(z.lastChild):null};
j2X=function(z){return z?IZ(z)?z:j2X(z.firstChild):null};
JNK=function(z){if(!z)return null;for(var l=z.previousSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.previousSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.previousSibling;else break;(l=b3(l))?z=l:z=(z=z.parentNode)?b3(z.previousElementSibling):null;return z};
zyF=function(z){if(!z)return null;for(var l=z.nextSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.nextSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.nextSibling;else break;return(l=j2X(l))?l:zyF(z.parentNode)};
lX4=function(z){var l=_.Cj(),I=l.JSC$11349_getStartNode();if(!Ut1(I.parentNode))return null;l=l.JSC$11349_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var b=_.A7(I,IZ);if(b){if(z&&l===0||!z&&l===I.length)return b}else{if(z&&l===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.kM(I.nextElementSibling,"display")==="block"?null:j2X(I.nextElementSibling);if(!z&&l===0)return I?b3(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(z){if(0<=l&&l<I.childNodes.length)return j2X(I.childNodes[l])}else if(0<
l&&l<=I.childNodes.length)return b3(I.childNodes[l-1]);return null};
IXF=function(z,l,I){if(!z)return null;if(z.nodeType===Node.TEXT_NODE)if(I){var b=JNK(z);if(b&&!/^\s+\S/.test(z.wholeText.substr(0,l)))return b}else if((b=zyF(z))&&!/\S\s+/.test(z.wholeText.substr(l,z.wholeText.length)))return b;return z.nodeType===Node.ELEMENT_NODE?I?JNK(z.childNodes[l]):zyF(z.childNodes[l]):IXF(z.parentNode,l,I)};
bY4=function(z){if(z.hasChildNodes())switch(z.tagName){case "DIV":case "A":case "SPAN":var l="";for(z=z.firstChild;z;z=z.nextSibling)l+=bY4(z);return l;default:return""}else switch(z.nodeType){case 3:return z.textContent;default:return""}};
vUF=function(z){switch(z){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"}};
M9c=function(z){return z.map(function(l){return{settingsRadioOptionRenderer:{title:_.gg(l.name),asideText:_.gg(l.approximateSize),id:vUF(l.format)}}})};
Dvy=function(z){if(z&&z.length!==0)return z.filter(pUs()).map(function(l){return{settingsRadioOptionRenderer:{title:l.name,asideText:l.approximateSize,id:vUF(l.formatType)}}})};
vO=function(z){if(z)return z.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
xvW=function(z,l){z=new Set(z!=null?z:[]);if(z.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(z.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(z.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(z.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(z.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(l)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
OYs=function(z){var l=z.indexOf("(");return l!==-1?z.substring(l+1,z.length-1):z};
_.GS8=function(z,l,I,b,v){I||(I=gU4);var M;(M=_.k(I.commandMetadata,_.kB))!=null&&M.url||(I=Error("Cl`"+JSON.stringify(I)),_.dE(I),I=gU4);I=_.h7.unsafeClone(I);M=_.rE(_.k(I.commandMetadata,_.kB).url,"search_query",z);_.n0(location.href,"sv")==="1"&&(_.k(I,_.XN).params="EgOAAgE%3D",M=_.rE(M,"sv","1"));_.k(I,_.XN)&&(_.k(I,_.XN).query=z);M=M.replace(/%20/g,"+");_.k(I.commandMetadata,_.kB).url=M;v=_.C("desktop_enable_entity_suggest")?{entityMid:v}:{};_.pG().resolve(_.DQ).resolveCommand(I,{form:{tempData:Object.assign({},
{gs_l:l,oq:b!=null?b:z},v)}})};
N5C=function(z){switch(z){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
u14=function(z,l,I,b,v,M){var x=_.h7.clone(EU0);x.locale=_.sZ("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;x.report={description:v||"<empty>"};v=_.sZ("SBOX_SETTINGS",{});l=l.join(",");var g=Date.now();z={choice_cc:b,choice_id_cc:I,choices_sc:l,gl:v.REQUEST_DOMAIN,hl:v.REQUEST_LANGUAGE,query:z,time:g};M&&(z.choice_additional_comment_cc=M);_.e3w(x,z)};
ZYC=function(z){var l=new Map;l.set("authuser",_.sZ("SESSION_INDEX","0"));return _.y6(z,l)};
yRF=function(z){var l;return _.O(function(I){switch(I.nextAddress){case 1:if(!z||!HYK(z))return I.return(null);l=null;switch(_.sZ("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":l=z.getPlayer()}I.jumpTo(3);break;case 2:return I.yield(z.getPlayerPromise(),4);case 4:l=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(l)}})};
HYK=function(z){return["ytd-player","ytmusic-player"].includes(String(z.tagName||"").toLowerCase())};
fXS=function(z){z=Math.round(z);return z%2?z-1:z};
C1X=function(z){z=Math.round(z);return z%2===0?z-1:z};
kSs=function(z){var l,I,b;if(z=(l=z.createPlaylistDialogFormSchema)==null?void 0:(I=l.fieldSchemas)==null?void 0:(b=I.title)==null?void 0:b.validationSchema)for(l=[z.syncStep,z.asyncStep].filter(function(v){return v!==void 0}),l=_.D(l),I=l.next();!I.done;I=l.next()){I=I.value.rules;
if(!I)break;I=_.D(I);for(I=I.next();!I.done;I=I.next())return _.k(I.value,_.nsc)}};
mvs=function(z){var l,I,b;if(z=(l=z.createPlaylistDialogFormSchema)==null?void 0:(I=l.fieldSchemas)==null?void 0:(b=I.visibility)==null?void 0:b.validationSchema)for(l=[z.syncStep,z.asyncStep].filter(function(v){return v!==void 0}),l=_.D(l),I=l.next();!I.done;I=l.next()){I=I.value.rules;
if(!I)break;I=_.D(I);for(b=I.next();!b.done;b=I.next())if(b=_.k(b.value,Ryy))return l=void 0,(l=b.translations)==null?void 0:l.visibilityNotValidErrorMessage}};
KEq=function(){var z,l;return(l=(z=_.pG().resolve(_.MB(_.I2)))==null?void 0:z())!=null?l:!1};
t9q=function(z){var l=21;if(!z)return l;l+=z.headerTitle?27:0;l+=z.headerTitle&&z.hasHeaderActionHeader?4:0;return l+=z.headerTitle&&z.headerSubtitle?16:0};
B50=function(z){var l=0;if(!z)return l;l+=z.hasFooterPrimaryButton||z.hasFooterSecondaryButton?48:0;l+=z.footerTrailingLabel||z.footerLeadingLabel?30:0;return l+=z.hasFooterPrimaryButton||z.hasFooterSecondaryButton||!z.footerTrailingLabel&&!z.footerLeadingLabel?0:12};
XU0=function(z){var l=new _.ks,I=z;return{subscribe:function(b){l.subscribe("changed",b)},
dispatch:function(b,v){var M=I;b==="Touch Start"?I=Object.assign({},M,{isAnimating:!1,initialY:v.event.touches[0].clientY}):b==="Touch Move"?(b=Math.min(v.fullContentWrapperHeight,v.contentHeightMap[v.contentWrapperId]+t9q(v.header)-B50(v.footer)),I=Object.assign({},M,{currentY:Math.max(v.contentScrollable?-1*(M.initialY-24):0,v.event.touches[0].clientY-M.initialY),maxHeightForContentWrapper:Math.min(b,Math.max(0,(M.isFullScreen?b:v.contentWrapperHeight)-M.currentY))})):I=b==="Snap To Full Screen"?
Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:v.maxHeight}):b==="Snap To Neutral Position"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:v.maxHeight}):b==="Close Sheet"?Object.assign({},M,{isAnimating:!0,currentY:v.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:v.maxHeight}):M;l.publish("changed",I)}}};
qBy=function(z){return _.KK(function(l){z(l);return!1})};
iYX=function(){_.pG().resolve(_.In).closeSheet()};
FEX=function(z){var l,I,b,v,M,x,g,G,u,Z,H;return{headerTitle:(l=z.headerTitle)==null?void 0:l.call(z),headerSubtitle:(I=z.headerSubtitle)==null?void 0:I.call(z),headerActionHeader:z.headerActionHeader,footerPrimaryButton:z.footerPrimaryButton,footerSecondaryButton:z.footerSecondaryButton,footerButtonType:(b=z.footerButtonType)==null?void 0:b.call(z),footerLeadingLabel:(v=z.footerLeadingLabel)==null?void 0:v.call(z),footerTrailingLabel:(M=z.footerTrailingLabel)==null?void 0:M.call(z),shouldShowIcons:(x=
z.shouldShowIcons)==null?void 0:x.call(z),skipContentClick:(g=z.skipContentClick)==null?void 0:g.call(z),additionalClassName:(G=z.additionalClassName)==null?void 0:G.call(z),onClosedCallback:z.onClosedCallback,focusOnClose:(u=z.focusOnClose)==null?void 0:u.call(z),isDisabled:(Z=z.isDisabled)==null?void 0:Z.call(z),disabledCommand:(H=z.disabledCommand)==null?void 0:H.call(z),headerFn:z.headerFn,contentFn:z.contentFn,footerFn:z.footerFn,hasHeaderFn:z.hasHeaderFn(),hasContentFn:z.hasContentFn(),hasFooterFn:z.hasFooterFn(),
hasFooterPrimaryButton:z.hasFooterPrimaryButton(),hasFooterSecondaryButton:z.hasFooterSecondaryButton(),hasHeaderActionHeader:z.hasHeaderActionHeader()}};
Q00=function(z){switch(z){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""}};
YBK=function(z){switch(z){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""}};
T5s=function(z){switch(z){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""}};
cRc=function(z,l,I){l.forEach(function(b){_.sE(_.pG().resolve(_.br),b)});
_.Gb(z,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])};
P1K=function(z,l,I,b){var v=_.k(I,_.ZZ).commandLifeCycleConfig;v&&v.onStartCommand&&_.ZE(z,[v.onStartCommand],l);_.Lj(l);var M=_.zS.instance;M&&_.l1(M,I)?_.I0(M,I,b).then(function(x){if(!x||(x==null?0:x.error))return x=_.k(I,_.ZZ).serializedTransactionFlowLoggingParams,_.Uc(l),_.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",x));_.Uc(l);return{data:x}}).then(function(x){_.Uc(l);
SBS(x.data);var g=x.data.command;g&&_.ZE(z,[g],l);g=dvK(I,x.data);if(!g){var G=x.data;x=!1;if(G&&G.command&&_.k(G.command,_.yi)){var u;G=((u=_.k(G.command,_.yi))==null?void 0:u.commands)||[];for(u=0;u<G.length;u++)if(_.k(G[u],_.HeM)){x=!0;break}}x||_.bh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!g&&v&&v.onSuccessCommand?_.ZE(z,[v.onSuccessCommand],l):g&&v&&v.onFailureCommand&&_.ZE(z,[v.onFailureCommand],l)},function(){_.Uc(l);
v&&v.onFailureCommand&&_.ZE(z,[v.onFailureCommand],l);oUs(I)}):_.dE(Error("Ol"),"ERROR")};
hyy=function(z,l,I){var b=[l];I&&b.push(I);return _.uJ(z,b).then(function(v){var M=_.k(l,_.ZZ).serializedTransactionFlowLoggingParams,x=v.data,g=dvK(l,x);g?v=_.Ph(new MJ(g,M)):SBS(x);return v},function(){var v=_.k(l,_.ZZ).serializedTransactionFlowLoggingParams;
oUs(l);return _.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",v))})};
dvK=function(z,l){z=_.k(z,_.ZZ).serializedTransactionFlowLoggingParams;var I=null;switch(l.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":I="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":I="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":I="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}I?_.b5(I,z):apK(z);return I};
oUs=function(z){_.b5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.k(z,_.ZZ).serializedTransactionFlowLoggingParams)};
SBS=function(z){if(z.trackingParams){var l=_.sU(),I=_.h8();l&&I&&_.LM(l,I,_.ch(z.trackingParams))}};
s04=function(z,l,I){var b=_.zS.instance,v=_.UD5(_.sZ("YPC_MB_URL")),M=(new _.neQ).init(),x=_.LoQ(),g=_.k(I,_.NIu).languageCode;g===void 0?_.dE(Error("Li"),"ERROR"):_.sb([M,v]).then(function(){var G={ctk:payments.business.integration.ClientTokenFactory.createClientToken(g,x)};b&&_.l1(b,I)?_.I0(b,I,G).then(function(u){return{data:u}}).then(function(u){_.gC(l,"yt-service-request-completed",u);
u.code!=="ERROR"&&(u=u.data.command)&&_.ZE(z,[u],l)}):_.dE(Error("Ol"),"ERROR")})};
eys=function(z,l,I,b){var v=_.zS.instance;v&&_.l1(v,I)?_.I0(v,I,b).then(function(M){return{data:M}}).then(function(M){rRy(z,l,I,M)},function(){$vF(I)}):(v=_.pG().resolve(_.MB(_.wD)))&&v.requestDataForServiceEndpoint(I,b).then(function(M){rRy(z,l,I,M)},function(){$vF(I)})};
rRy=function(z,l,I,b){_.gC(l,"yt-service-request-completed",b);if(b.code&&b.code=="ERROR")$vF(I);else{(b=b.data.commands)&&_.ZE(z,b,l);var v;(z=(v=_.k(I,_.f$w))==null?void 0:v.serializedYpcPauseFlowLoggingParams)&&z&&_.ka("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",z)}};
$vF=function(z){var l;(z=(l=_.k(z,_.f$w))==null?void 0:l.serializedYpcPauseFlowLoggingParams)&&z&&_.ka("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",z,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
WEK=function(z,l,I){var b=_.zS.instance;b&&_.l1(b,I)?_.I0(b,I).then(function(v){return{data:v}}).then(function(v){wU1(z,l,I,v)},function(){AR1(I)}):(b=_.pG().resolve(_.MB(_.wD)))&&b.requestDataForServiceEndpoint(I).then(function(v){wU1(z,l,I,v)},function(){AR1(I)})};
wU1=function(z,l,I,b){_.gC(l,"yt-service-request-completed",b);b.code&&b.code=="ERROR"?AR1(I):((b=b.data.commands)&&_.ZE(z,b,l),(z=_.k(I,_.Cr_).serializedYpcResumeFlowLoggingParams)&&z&&_.ka("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",z))};
AR1=function(z){(z=_.k(z,_.Cr_).serializedYpcResumeFlowLoggingParams)&&z&&_.ka("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",z,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
nU8=function(z){z=z===void 0?{}:z;_.pG().resolve(_.v5K).showFeedbackDialog(z.customProductData,z.feedbackContent,z.onFeedbackSubmitted,z.bucket)};
LE4=function(z){z=z===void 0?{}:z;_.pG().resolve(_.v5K).showHelpDialog(z.helpContext,z.articleId,z.productData)};
UvS=function(){LE4()};
aXC=function(){nU8()};
j0K=function(z,l,I){var b,v,M,x,g,G,u;return _.O(function(Z){switch(Z.nextAddress){case 1:b=_.k(z,V9y);if((v=b)==null?0:v.productId){G={productId:b.productId,bucket:b.bucket,enableAnonymousFeedback:(g=b.enableAnonymousFeedback)!=null?g:!0,allowNonLoggedInFeedback:!0};u={feedbackChoice:I.feedbackChoice};if(!_.C("web_collect_offline_state")){Z.jumpTo(8);break}_.RL(Z,9);return Z.yield(MbW(u),11)}x={bucket:(M=b)==null?void 0:M.bucket};if(!_.C("web_collect_offline_state")){Z.jumpTo(4);break}x.customProductData=
{};_.RL(Z,5);return Z.yield(MbW(x.customProductData),7);case 7:_.a3(Z,4);break;case 5:_.XP(Z);case 4:nU8(x);Z.jumpTo(0);break;case 11:_.a3(Z,8);break;case 9:_.XP(Z);case 8:_.SRu(u),_.cuH("GFEEDBACK",u),b.productId==="5295751"&&(u.client_attestation=Number(_.sZ("CATSTAT",0))),b.productId==="5295751"&&(u.client_time=Date.now()/1E3/3600),b.productId==="5295751"&&(u.original_playback_id=_.vyI||""),_.e3w(G,u),_.qe(Z)}})};
JRF=function(z){if(z=_.k(z,_.adS)){var l={bucket:z.bucketIdentifier};z.additionalDatas&&(l.customProductData={},z.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)l.customProductData[I.key]=I.value}));
nU8(l)}};
zLX=function(z){var l=_.WW.getInstance();var I=_.mY("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var b=_.mY("DELETE",void 0,"Delete"),v=_.mY("CANCEL",void 0,"Cancel");I=HMl(I,void 0,b,v,{signal:"DELETE_ALL_DOWNLOADS"});_.Jg(l,[{openPopupAction:I}],z)};
I6X=function(){return _.O(function(z){return z.nextAddress==1?z.yield(_.pG().resolve(_.Ac),2):z.yield(l6C(),0)})};
bj4=function(z){var l,I;return _.O(function(b){return b.nextAddress==1?(I=(l=_.k(z,_.eX))==null?void 0:l.targetId)?b.yield(_.pG().resolve(_.Ac),3):b.jumpTo(0):b.yield(_.pG().resolve(_.wv).deleteVideo(I),0)})};
M20=function(z){var l,I;return _.O(function(b){return b.nextAddress==1?(I=(l=_.k(z,_.eX))==null?void 0:l.targetId)?b.yield(_.pG().resolve(_.Ac),3):b.jumpTo(0):b.yield(vM0(_.pG().resolve(_.wv),I),0)})};
Da4=function(z){var l,I;return _.O(function(b){return(I=(l=_.k(z,_.eX))==null?void 0:l.targetId)?b.yield(ptS(I),0):b.jumpTo(0)})};
Ojy=function(){_.C("kevlar_woffle_refresh_dl_load_killswitch")||xay()};
GDc=function(){_.C("kevlar_woffle")&&_.oD.instance&&gMK()};
EM1=function(z){var l;if((l=_.k(z,_.qv))==null||!l.videoId)return!1;Nny(_.pG().resolve(_.wv),_.k(z,_.qv),z.clickTrackingParams);return!0};
Zjq=function(z){var l;if((l=_.k(z,_.i1))==null||!l.playlistId)return!1;uoX(_.pG().resolve(_.wv),_.k(z,_.i1),z.clickTrackingParams);return!0};
yQF=function(z){var l=_.k(z,_.ILz);(l==null?void 0:l.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(l==null?void 0:l.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||Hjy(_.pG().resolve(_.wv),_.k(z,_.ILz))};
C71=function(z){z=_.k(z,_.TLj);var l;(z==null?0:(l=z.actions)==null?0:l.length)&&f6q(z)};
maW=function(z){var l,I;return _.O(function(b){l=_.k(z,kDK);return(I=l)!=null&&I.localWatchHistoryCommandType?b.yield(RLl(l),0):b.return()})};
Knl=function(z){setTimeout(function(){requestAnimationFrame(z)},80)};
t2q=function(z){return Object.entries(z).map(function(l){return l.join(":")}).join(";")};
XtW=function(z){var l,I,b;_.O(function(v){if(v.nextAddress==1)return v.yield(BnS(),2);l=v.yieldResult;I=_.KE.instance;switch(l){case "granted":b=z.getLocationCommand;break;case "denied":b=z.openDeniedDialogAction;break;case "prompt":b=z.openCollectionDialogAction;break;default:b=z.openCollectionDialogAction}b&&I.resolveCommand(b);_.qe(v)})};
BnS=function(){var z,l;return _.O(function(I){if(I.nextAddress==1)return z="prompt",navigator.permissions?I.yield(navigator.permissions.query({name:"geolocation"}),3):I.jumpTo(2);I.nextAddress!=2&&(l=I.yieldResult,z=l.state);return I.return(z)})};
ijC=function(){_.O(function(z){return z.yield(_.qcW(),0)})};
FnX=function(){var z,l,I;return _.O(function(b){if(b.nextAddress==1)return z=_.pG().resolve(_.AY),z?b.yield(_.I0(z,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.PW(Error("Rl")),b.return(void 0));if(l=b.yieldResult){if(l.errorMetadata)return _.PW(Error("Sl`"+l.errorMetadata.status+"`"+l.error)),b.return(void 0);I=l.datasyncIds;_.DzF=I.length;return b.return(I)}_.PW(Error("Tl"));return b.return(void 0)})};
QF8=function(){FnX().then(function(z){z&&(cHs(z),jh1(z),tSS(z),xo0(z))})};
YcF=function(z){_.ow.addLowPriorityJob(function(){var l,I,b,v,M;return _.O(function(x){switch(x.nextAddress){case 1:if(_.C("ytidb_clear_optimizations_killswitch")){x.jumpTo(2);break}l=_.BV("clear");if(l.startsWith("V")&&l.endsWith("||")){var g=[l];cHs(g);jh1(g);tSS(g);xo0(g);return x.return()}I=Bg4();b=OrK();return x.yield(JmK(),3);case 3:return v=x.yieldResult,x.yield(SKC(),4);case 4:if(M=x.yieldResult,!(I||b||v||M))return x.return();case 2:z.isNetworkAvailable()?QF8():z.listenOnce("publicytnetworkstatus-online",
QF8),_.qe(x)}})})};
pB=function(z){z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.lc(z)}}}};_.KE.instance&&_.KE.instance.resolveCommand(z)};
TnK=function(z){if(z){var l=_.iY();_.db(l,3854,void 0,{layer:0,parentLayer:4});switch(z){case 1:var I=238708;break;case 2:I=238715;break;case 3:I=238710;break;case 6:I=238709}I&&(z=_.q8(l,{veType:I}))&&_.hM(l,z)}};
cQq=function(z){if(z){var l=_.iY();_.db(l,3854,void 0,{layer:0,parentLayer:4});switch(z){case 1:var I=238714;break;case 2:I=238711;break;case 8:I=238709;break;case 7:I=238713;break;case 3:case 4:case 5:I=238712}I&&(z=_.q8(l,{veType:I}))&&_.hM(l,z)}};
Scl=function(z){switch(z.latencyType){case 0:_.hH("consent_primitive_flow");_.sK("cpit",z.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.sK("cpist",z.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.sK("cprtif",z.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.sK("cprtli",z.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.sK("cprt",z.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.sK("cpdt",z.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.sK("cpjct",z.timestampEpochMillis,"consent_primitive_flow")}};
AQy=function(z,l){var I,b,v,M,x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A,W;return _.O(function(L){switch(L.nextAddress){case 1:_.RL(L,2);(b=(I=_.k(z,dal))==null?void 0:I.serializedConsentRequest)||(b=(v=_.k(z,oMq))==null?void 0:v.serializedConsentRequest);b&&(M=P78(_.jx(b)));if(M===void 0)return L.return();x=hLX(M);x.latencyCallback=Scl;l&&sF1(x,function(){l.then(function(lH){lH.pauseVideo();(new rQW).increment()})});
return((g=_.k(z,dal))==null?void 0:g.consentAction)==="CONSENT_ACTION_PREWARM"||((G=_.k(z,oMq))==null?void 0:G.consentAction)==="CONSENT_ACTION_PREWARM"?L.yield($a4(x),5):L.yield(eLq(x),6);case 6:u=L.yieldResult;Z=_.Fl(u,Dm);if(Z===1){if(((H=_.rG(u,x_,1,Dm))==null?void 0:_.Px(H,1))===1||((y=_.rG(u,x_,1,Dm))==null?void 0:_.Px(y,1))===2||((f=_.rG(u,x_,1,Dm))==null?void 0:_.Px(f,1))===3)_.k(z,oMq)?pB(_.mY("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
pB(_.mY("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));TnK((R=_.rG(u,x_,1,Dm))==null?void 0:_.Px(R,1),_.OA(u,wtc,3,_.g1()))}else Z===2?(((F=Oo(u))==null?void 0:_.Px(F,1))===5?_.k(z,oMq)?pB(_.mY("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):pB(_.mY("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((Y=Oo(u))==null?void 0:_.Px(Y,1))===1||((c=Oo(u))==null?void 0:_.Px(c,1))===4?pB(_.mY("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((d=Oo(u))==null?void 0:_.Px(d,1))===7&&((V=M)==null?void 0:(A=_.gi(V,gM,4))==null?void 0:_.Px(A,4))!==1&&pB(_.mY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),cQq((W=Oo(u))==null?void 0:_.Px(W,1))):pB(_.mY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));L.jumpTo(5);break;case 5:_.a3(L,0);break;case 2:_.XP(L),pB(_.mY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.qe(L)}})};
nM8=function(){if(!Wn8.has("Worker")){Wn8.set("Worker",!0);var z={api:"BROWSER_API_WEB_WORKER"};z.available="Worker"in window?!0:!1;_.cW("apiTest",z)}};
LnK=function(z){return typeof z==="undefined"?"-1":String(Math.ceil(z/1048576))};
jF1=function(z,l){Uaq(new a68(_.k(l,V2K).addToken,_.k(l,V2K).commonToken)).then(function(){_.gC(z,"yt-invoke-instrument-manager-action-completed")},function(I){_.gC(z,"yt-invoke-instrument-manager-action-error",I)})};
JQF=function(){var z,l;return(l=(z=window).matchMedia)==null?void 0:l.call(z,"(prefers-reduced-motion: reduce)").matches};
zVK=function(z){var l=_.pG().resolve(_.MB(_.Lg));if(l&&l.isAnyTransitionEnabled){var I={};l.viewTransitionCoordinator.registerElement(z,(I.slide="miniplayer-page-transition",I["lockup-to-watch"]="miniplayer-page-transition",I["learning-journey"]="miniplayer-page-transition",I))}};
lql=function(z,l,I){return{horizontalAlignment:z.x+I.width/2<l.width/2?"west":"east",verticalAlignment:z.y+I.height/2<l.height/2?"north":"south"}};
bIW=function(z,l,I,b,v){v=v===void 0?new _.rs(0,0):v;z=Iqs(z,l,I,b);return new _.rs(z.x+v.x,z.y+v.y)};
Iqs=function(z,l,I,b){return new _.rs(z==="west"?16:I.width-b.width-16,l==="north"?16:I.height-b.height-16)};
v10=function(z,l){var I=0;z&&(I+=76);l&&(I+=285);return I};
MKs=function(z){return _.Wx(z)};
pJc=function(z){var l=1;z=z.split(":");for(var I=[];l>0&&z.length;)I.push(z.shift()),l--;z.length&&I.push(z.join(":"));return I};
DNF=function(z){var l=new _.tz;return _.$x(l,11,z)};
xNl=function(z){var l={};z=z.getAllResponseHeaders().split("\r\n");for(var I=0;I<z.length;I++)if(!_.gf(z[I])){var b=pJc(z[I]),v=b[0];b=b[1];if(typeof b==="string"){b=b.trim();var M=l[v]||[];l[v]=M;M.push(b)}}return _.h7.map(l,function(x){return x.join(", ")})};
gF=function(z,l){return z.JSC$9797_xhr_?z.JSC$9797_xhr_.getResponseHeader(l):null};
OIs=function(z,l){if(z.isDisposed())throw Error("Ea");z.kd.e5("n");var I=_.Ld(z.kd,function(){return z.uUi([l.jy,l.loM,l.hZc,l.xCn])},"n");
z.kd.s4A(I.length);z.kd.sL();return I};
G7=function(z,l,I){Array.isArray(I)||(I=[String(I)]);_.EP_(z.JSC$10032_queryData_,l,I);return z};
gMK=function(){var z=_.oD.instance;_.O(function(l){return z.deferredInstallPrompt?l.yield(z.deferredInstallPrompt.prompt(),0):l.jumpTo(0)})};
g1F=function(z,l,I){if(_.wf(z))_.UZ(z,l,I);else for(z=_.mhj(z);;){var b=z.next();if(b.done)break;l.call(I,b.value,void 0,z)}};
GYF=function(z,l){var I=[];g1F(l,function(b){try{var v=_.EU.prototype.getWrapper.call(this,b,!0)}catch(M){if(M=="Storage: Invalid value was encountered")return;throw M;}v===void 0?I.push(b):_.RtA(v)&&I.push(b)},z);
return I};
GZK=function(z,l){GYF(z,l).forEach(function(I){_.EU.prototype.remove.call(this,I)},z)};
NxK=function(z){var l=_.O4;l._minimumZ=Math.max(l._minimumZ,z)};
E1s=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];uIq=function(z,l){_.p0(z.vm);z.vm=l};
ZIX=function(z,l,I,b){z.setState(5);var v=!!z.b9W&&E1s.includes(_.lf(z.b9W)||"");try{var M=new _.Ub({program:l,globalName:I,oWW:{disable:!_.C("att_web_record_metrics")||!_.C("att_skip_metrics_for_cookieless_domains_ks")&&v,gV:"aGIf"}});M.cCN.then(function(){z.setState(6);b&&b(l)});
uIq(z,M)}catch(x){z.setState(7),x instanceof Error&&_.PW(x)}};
HI0=function(z,l,I,b,v,M){var x=x===void 0?"trayride":x;I?(z.setState(2),_.nQ(_.cl(I),function(){if(window[x])ZIX(z,b,x,v);else{z.setState(3);var g=_.fjt(I),G=document.getElementById(g);G&&(_.No1(g),G.parentNode.removeChild(G));_.PW(new _.qB("BL:ULB",I))}},M)):l?(M=_.tA("SCRIPT"),l instanceof _.IL?_.v0(M,l):M.textContent=l,M.nonce=_.lt(document),document.head.appendChild(M),document.head.removeChild(M),window[x]?ZIX(z,b,x,v):(z.setState(4),_.PW(new _.qB("BL:ULBJ")))):_.PW(new _.qB("BL:ULV"))};
yfl=function(){this.state=1;this.vm=null;this.b9W=void 0};
_.p=yfl.prototype;_.p.initialize=function(z,l,I,b){this.b9W=b;if(z.program){var v;b=(v=z.interpreterUrl)!=null?v:null;if(z.interpreterSafeScript)v=_.Sxp(z.interpreterSafeScript);else{var M;v=(M=z.interpreterScript)!=null?M:null}z.interpreterSafeUrl&&(b=_.Pd(z.interpreterSafeUrl).toString());HI0(this,v,b,z.program,l,I)}else _.PW(Error("qf"))};
_.p.isInitialized=function(){return!!this.vm};
_.p.getState=function(){return this.state};
_.p.isLoading=function(){return this.state===2};
_.p.invoke=function(z){z=z===void 0?{}:z;var l;this.vm?l=OIs(this.vm,{jy:z}):l=null;return l};
_.p.dispose=function(){uIq(this,null);this.setState(8)};
_.p.setState=function(z){this.state=z};
var fq8=function(z,l){return z.vm.snapshot(l)},C9K=function(z,l){var I=_.OI("botguard_async_snapshot_timeout_ms",3E3);
l=l===void 0?{}:l;I=I===void 0?3E3:I;return z.vm?new Promise(function(b,v){var M=!1,x=_.ow.addJob(function(){M=!0;v(Error("rf"))},1,I);
z.vm?fq8(z,{jy:l}).then(function(g){_.ow.cancelJob(x);M||b(g)}).catch(function(g){_.ow.cancelJob(x);
M||v(g)}):(_.ow.cancelJob(x),b(null))}):Promise.resolve(null)},kYs=["att/log"],gU4;
gU4={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var RV0={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},mN4=function(z,l){return _.Bg(z,{mode:"readwrite",enableRetries:!0},function(I){return _.Ukf(I,l,"settingEntity")})},KOX=function(z,l,I){return _.Bg(z,{mode:"readonly",
enableRetries:!0},function(b){return _.$b_(b,l,I)})},tK1=function(z){if(!z.storage)return!1;
a:{if(z.storage){try{var l=z.storage.get("TLPQtimestamp")}catch(I){}z=Number(l);if(!isNaN(z))break a}z=void 0}return z?Date.now()-z<864E5:!1},BxW=function(z){if(z.storage){try{var l=z.storage.get("TLPQindex")}catch(I){}z=Number(l);
if(!isNaN(z))return z}},XJy=function(z,l){z.queueProxy&&l.forEach(function(I){if(I.videoId&&I.trackingParams&&z.queueProxy instanceof _.OD){var b=_.sU();
z.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.ch(I.trackingParams).getAsJson(),enqueueingCsn:b?b:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Dr)()).toString()})}})},q2C=function(z){var l=_.mOn(z);
l!=z.currentSnapState_&&(z.currentSnapState_=l,z.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},NJ=function(z){this.JSC$13167_networkManager_=z;
this.partCallbacks_=[]};
NJ.prototype.getCacheKeyForEndpoint=function(z){return _.sJt(z,!1)};
NJ.prototype.onPartsCallback_=function(z){this.partCallbacks_.forEach(function(l){z&&l(z)})};
var Eo=function(z,l,I){NJ.call(this,z);this.player_=l;this.autoplayData_=I};
_.m(Eo,NJ);Eo.prototype.getCacheKeyForEndpoint=function(z){return _.sJt(z,!!this.autoplayData_)};
Eo.prototype.getTempData=function(z,l){l=l.timeBeforeNextVideo;z={itct:z.clickTrackingParams,lact:_.p2(),pbis:l,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(z.autonav=1);return z};
Eo.prototype.getXhrParams=function(z){return Object.assign({pbj:"prefetch"},z)};
Eo.prototype.getParams=function(z){z={frags:z.fragmentsRequested.join(",")};_.C("kevlar_droppable_prefetchable_requests")&&(z.prefetch=1);return z};
var iIl=function(z){z.playerEvents_.forEach(function(l){z.player.removeEventListener(l.eventName,l.callback)});
z.playerEvents_.length=0},u3=function(z,l,I){this.player=z;
this.JSC$13177_taskManager=l;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
u3.prototype.start=function(){var z=this;this.completionResolver_=_.b1();_.rO(this.completionResolver_.promise,function(){iIl(z);z.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var FOl=function(z,l,I){z.player.addEventListener(l,I);z.playerEvents_.push({eventName:l,callback:I})},QUX={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Y20={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Txl=function(z,l,I){u3.call(this,z,l,I);this.cueId_="playbackTrigger-"+Math.random()};
_.m(Txl,u3);
Txl.prototype.prepareTrigger=function(z){var l=this,I=this.player.getDuration(),b=this.player.getVideoData(),v=b.isLive&&b.hasProgressBarBoundaries;if(v&&b.progressBarEndPositionUtcTimeMillis){var M=b.progressBarEndPositionUtcTimeMillis/1E3;isNaN(M)||(I=M)}var x=0;this.prefetchDelay>=0?v?b.progressBarStartPositionUtcTimeMillis&&(b=b.progressBarStartPositionUtcTimeMillis/1E3,isNaN(b)||(x=b+this.prefetchDelay)):x=this.prefetchDelay:x=I+this.prefetchDelay;v?this.player.addUtcCueRange(this.cueId_,x,I):
this.player.addCueRange(this.cueId_,x,I);_.rO(z.promise,function(){l.player.removeCueRange(l.cueId_)});
FOl(this,"onCueRangeEnter",function(g){g==l.cueId_&&z.resolve(I-x)})};
var cfC=function(z,l){z.fragmentConfiguration_[l].requiredKeys.every(function(I){return!!z.prefetchedData_[I]})&&(z.validatedFragments_.push(l),l=z.missingFragments_.indexOf(l),l!==-1&&z.missingFragments_.splice(l,1))},S2c=function(z){z.prefetchedFragments_.forEach(function(l){cfC(z,l)})},dNq=function(z,l,I){this.pageFragments_=z;
this.prefetchedFragments_=l;this.fragmentConfiguration_=Y20;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;S2c(this)},o1s=function(){},P9W=function(z){this.JSC$13191_playlistManager_=z};
_.m(P9W,o1s);P9W.prototype.getPrefetchEndpoint=function(){return this.JSC$13191_playlistManager_.getAutoplayEndpoint()};
var hVC=function(z){this.autonavEndpoints_=z};
_.m(hVC,o1s);hVC.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var sU0=function(z,l,I,b,v){this.autonavEndpoints=z;this.foregroundTrigger=l;this.backgroundTrigger=I;this.pageType=b;this.isInPlaylist=v},rfK=function(z,l){if(z.webPrefetchData&&z.webPrefetchData.navigationEndpoints&&z.webPrefetchData.navigationEndpoints.length){z=z.webPrefetchData.navigationEndpoints;
var I=_.k(z[0],_.zb);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var b=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=b.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<l.videoDuration?I:void 0;b=b.countdownUiRelativeSecondsPrefetchCondition;b=typeof b!=="number"||_.C("prefetch_job_config_cleanup_ks")&&l.inPlaylist?void 0:b;if(typeof b==="number")return new sU0(z,l.makeUpNextTrigger(b),l.makePlaybackTrigger(b),
"watch",l.inPlaylist);if(typeof I==="number")return new sU0(z,l.makePlaybackTrigger(I),null,"watch",l.inPlaylist)}}},$Ns=function(z){return z.prefetchJobConfig_.backgroundTrigger?_.em(_.ZRH)()==0?z.prefetchJobConfig_.backgroundTrigger:z.prefetchJobConfig_.foregroundTrigger:z.prefetchJobConfig_.foregroundTrigger},eVW=function(z){_.dO(document,"visibilitychange",z.onVisibilityChange_,!1,z)},Zm=function(z){NJ.call(this,z)};
_.m(Zm,NJ);Zm.prototype.getCacheKeyForEndpoint=function(z){return NJ.prototype.getCacheKeyForEndpoint.call(this,z)};
Zm.prototype.getTempData=function(){return{}};
Zm.prototype.getXhrParams=function(z){return z};
Zm.prototype.getParams=function(){return{}};
var wJK=function(z,l,I){var b=z.prefetchDelay*1E3;if(Math.abs(b)>l)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var v=b,M=l-b;b<0&&(v=l+b,M=Math.abs(b));var x=z.JSC$13177_taskManager.addJob(function(){I.resolve(M/1E3)},10,v);
I.promise.thenCatch(function(){z.JSC$13177_taskManager.cancelJob(x)})}},Af0=function(z,l,I){u3.call(this,z,l,I)};
_.m(Af0,u3);Af0.prototype.prepareTrigger=function(z){var l=this;FOl(this,"onAutonavCoundownStarted",function(I){wJK(l,I,z)})};
var WO1=function(z){z.pendingPrefetchJob_&&(z.pendingPrefetchJob_.cancel(),z.pendingPrefetchJob_=null)},n1X=function(z,l,I){if(!z.triggeredTargets.has(l)){var b=_.uvI(z,l);
b.action=I;_.NNj(z,l,b)}},LOW=function(z){_.zj4();
_.iR7("cpt")&&_.PW(Error("qh"));_.v7.requestAnimationFrame(function(){_.v7.setTimeout(function(){_.sK("cpt");var l=_.e_("vpl"),I=_.e_("cpt");l&&I&&_.sK("ol",Math.max(l,I))})});
try{_.sK("fr_s"),z()}catch(l){_.dE(l)}_.v7.requestAnimationFrame(function(){_.sK("bcp")})},UNq=function(z,l){z.serviceEndpointHandlers.push(l)},aqS=function(z,l){l=z.pendingPages_.indexOf(l);
l>-1&&z.pendingPages_.splice(l,1)},VK4=function(z,l){var I=_.Kz_.indexOf(l);
I>-1&&_.Kz_.splice(I,1);z.targetPage_==l?(z.abort(),_.Bvn(z)):aqS(z,l)},jUW=function(z,l,I,b){l={challenge:l};
I&&(l.webResponse=I);return _.Gv(z.innertubeTransportService,l,_.Mo(kYs),b)},Jfc=function(z,l,I){if(!l.challenge)throw Error("ti");
if(l.botguardData&&l.botguardData.program){var b=new yfl;b.initialize(l.botguardData,function(){C9K(b,{atr_challenge:l.challenge}).then(function(v){if(!v)throw Error("ui");return jUW(z,l.challenge,v,I)}).catch(function(v){_.PW(v);
return jUW(z,l.challenge,void 0,I)})},void 0)}else jUW(z,l.challenge,void 0,I)},zhy=function(z,l,I){var b={};
l.ids&&(b.ids=[].concat(_.ht(l.ids)));l.engagementType&&(b.engagementType=l.engagementType);return _.Gv(z.innertubeTransportService,b,_.Mo(_.vjj),I).then(function(v){if(!v)throw new _.qB("GetAttestationChallenge returned falsy");Jfc(z,v,I)}).thenCatch(function(v){_.dE(v)})},lsl=function(z,l,I){return new _.yK(function(b,v){var M;
return _.O(function(x){if(x.nextAddress==1){var g=x.yield,G=l.engagementType,u=l.ids,Z={};u=_.D(u!=null?u:[]);for(var H=u.next();!H.done;H=u.next())H=H.value,H.encryptedVideoId?Z.encryptedVideoId=H.encryptedVideoId:H.externalChannelId?Z.externalChannelId=H.externalChannelId:H.commentId?Z.commentId=H.commentId:H.externalOwnerId?Z.externalOwnerId=H.externalOwnerId:H.artistId?Z.artistId=H.artistId:H.playlistId?Z.playlistId=H.playlistId:H.externalPostId?Z.externalPostId=H.externalPostId:H.shareId&&(Z.shareId=
H.shareId);return g.call(x,ZMs(G,Z),2)}M=x.yieldResult;if(!M.challenge)return _.PW(Error("vi")),zhy(z,l,I).then(b,v),x.return();g=M;G={challenge:g.challenge};G.webResponse=g.webResponse;G.engagementType=l.engagementType;G.ids=l.ids;_.Gv(z.innertubeTransportService,G,_.Mo(kYs),I).then(b,v);_.qe(x)})})},POl=function(z,l){var I,b,v,M;
_.O(function(x){if(x.nextAddress==1){I=_.k(l,_.HmA);if(!(I&&I.listId&&z.response&&z.response.playingVideoId)||z.listId!==I.listId)return x.return();z.index===void 0&&(z.index=0);return x.yield(_.tp_(z.JSC$12924_playlistNetworkManager,I.listId,z.index,z.response.playingVideoId),2)}b=x.yieldResult;if(!b)return x.return();v=b.playlistId;M=b.playlistPanelRenderer;z.setPlaylistData(v,M,b.autoplayRenderer);_.qe(x)})},Is4=function(z,l,I){var b=z.getParams(I),v=_.wUQ(l,b),M=z.getTempData(l,I);
M.endpoint=JSON.stringify(l);_.C("enable_unknown_lact_fix_on_html5")&&(_.pG().resolve(_.TH),M.lact=_.p2());var x={headers:{"X-YouTube-STS":_.sZ("STS"),"x-youtube-csoc":1}};_.vu(v,M);return new _.yK(function(g,G){var u=z.getXhrParams(b),Z;_.C("kevlar_cache_on_ttl_player")&&(Z=_.UD.instance);Z&&_.Aq4(Z,l)?_.Jq_(Z,l,M,window.location.href).then(function(H){H?g(H):G()},G):_.CF_(z.JSC$13167_networkManager_,l,u,z.onPartsCallback_.bind(z),x).then(function(H){H?g(H):G()},G)})},bOC=function(z,l){z.triggerPromise_=
l.start();
z.triggerPromise_.then(function(I){var b=z.prefetchEndpointProvider_.getPrefetchEndpoint();if(b){var v=QUX[z.prefetchJobConfig_.pageType].prefetchedFragments;z.prefetchRequestPromise_=Is4(z.JSC$13203_networkPrefetchRequest_,b,{fragmentsRequested:v,timeBeforeNextVideo:I});z.prefetchResponseCacheKey_=z.JSC$13203_networkPrefetchRequest_.getCacheKeyForEndpoint(b);eVW(z);z.prefetchRequestPromise_.then(function(M){z.storePrefetchedDataCallback_(z.prefetchResponseCacheKey_,M);if(_.C("web_prefetch_preload_video")&&
v.length===1&&v[0]==="pl"&&M&&!M.playerAds&&!M.adPlacements){var x=_.k(b,_.FN),g=x!=null,G={raw_player_response:M,watch_endpoint:x};(M=_.pG().resolve(g?_.DnI:_.HU))&&b&&M.then(function(u){g&&_.C("web_queue_preload_video")?(G.prefer_gapless=!0,u.queueNextVideo(G)):u.preloadVideoByPlayerVars(G)})}})}})},HO=function(z,l,I,b){this.prefetchEndpointProvider_=z;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=l;this.prefetchJobConfig_=I;this.JSC$13203_networkPrefetchRequest_=b;this.prefetchResponseCacheKey_=null};
HO.prototype.enqueue=function(){this.triggerPromise_||(bOC(this,$Ns(this)),_.dZ(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
HO.prototype.resolve=function(){this.cancel()};
HO.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.");eVW(this)};
HO.prototype.onVisibilityChange_=function(){var z=this;_.em(_.ZRH)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){z.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||bOC(this,$Ns(this))};
var vxK=function(z,l,I,b,v){l&&(l==null?0:l.videoId)&&I&&I.entries&&_.C("kevlar_enable_shorts_prefetch_in_sequence")&&(WO1(z),l=I.entries.map(function(M){var x;return(x=_.k(M.command,_.FN))==null?void 0:x.videoId}).indexOf(l.videoId),I=I.entries[l+1],I!=null&&I.command&&!_.k(I==null?void 0:I.command,_.pt)&&(b=new sU0([I.command],new Txl(b,_.ow,1),null,"shorts",!1),z.pendingPrefetchJob_=new HO(new hVC(b.autonavEndpoints),function(){return!1},b,new Zm(v)),z.pendingPrefetchJob_.enqueue()))},MyK=function(z,
l,I,b,v,M){var x=_.Bf.getInstance();
if(!_.C("block_all_player_prefetch_requests")){WO1(z);var g=!!I.getPlaylistId(),G=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((x.getState()==2||g||G)&&(!I.getVideoData().isLive||G)){x={inPlaylist:g,videoDuration:I.getDuration(),makeUpNextTrigger:function(Z){return new Af0(I,_.ow,Z)},
makePlaybackTrigger:function(Z){return new Txl(I,_.ow,Z)}};
var u=rfK(l,x);u&&(z.pendingPrefetchJob_=new HO(u.isInPlaylist?new P9W(v):new hVC(u.autonavEndpoints),function(Z,H){H=new dNq(QUX[u.pageType].pageFragments,QUX[u.pageType].prefetchedFragments,H);return _.bgz(H)?(z.prefetchCache_.set(Z,H),!0):!1},u,new Eo(b,I,M,v)),z.pendingPrefetchJob_.enqueue())}}},pxK=function(){var z=_.ya();
z.signals.parkOrScheduleJob(function(){var l=z.storage;if(l.storage)if(tK1(l)){var I=l.getPlaylistId();l=BxW(l);I=!!I&&l!==void 0}else l.clear(),I=!1;else I=!1;if(I){I=z.pageManager.isOnWatch();a:{var b=z.storage;if(b.storage&&tK1(b)&&(l=b.getPlaylistId(),b=BxW(b),l&&b!==void 0)){I={recoverPlaylistCommand:{listId:l,index:b,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.Jg(z.JSC$12924_actionRouter,[I],null)}},0,"ma")},D5W=function(z,l,I,b,v,M){var x=
_.kU(7111);
_.oc(z.JSC$18321_screenManager,x,M?_.ch(M):void 0);_.hM(z.JSC$18321_screenManager,x,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:b,offlineId:l,offlineabilityFormatType:I,isDefaultFormatType:v==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:v}})},x54=function(z,l,I,b,v){var M,x,g,G,u;
return _.O(function(Z){if(Z.nextAddress==1)return Z.yield(z.JSC$18321_playerApiPromise,2);M=Z.yieldResult;D5W(z,l,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",b,v);if(g=_.UbA[z.entityTypeMap.listEntityType])u={},x=(u[g]={maximumDownloadQuality:(G=I)!=null?G:void 0},u);return Z.yield(M.queueOfflineAction(l,z.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",x),0)})},OOl=function(z,l){var I,b,v,M;
return _.O(function(x){if(x.nextAddress==1)return x.yield(z.JSC$18321_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3){I=x.yieldResult;if(!I)return _.PW(new _.qB("PES is undefined")),x.return();b=_.Hg(l,"downloadStatusEntity");return x.yield(KOX(I,b,"downloadStatusEntity"),3)}v=x.yieldResult;return x.return((M=v)==null?void 0:M.downloadState)})},gxl=function(z,l,I,b,v){var M,x,g,G,u,Z;
return _.O(function(H){switch(H.nextAddress){case 1:return H.yield(z.JSC$18321_playerApiPromise,2);case 2:M=H.yieldResult;D5W(z,l,I,"OFFLINE_OBJECT_TYPE_VIDEO",b,v);if(g=_.UbA[z.entityTypeMap.singleEntityType])u={},x=(u[g]={maximumDownloadQuality:(G=I)!=null?G:void 0},u);return H.yield(OOl(z,l),3);case 3:Z=H.yieldResult;if(Z!=="DOWNLOAD_STATE_USER_DELETED"){H.jumpTo(4);break}return H.yield(z.deleteVideo(l),4);case 4:return H.yield(M.queueOfflineAction(l,z.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
x),0)}})},GsW=function(z,l,I,b,v){return _.O(function(M){return M.nextAddress==1?M.yield(z.deleteVideo(l,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):M.yield(gxl(z,l,I,b,v),0)})},NG8=function(z,l,I){var b,v;
return _.O(function(M){if(M.nextAddress==1)return M.yield(z.JSC$18321_playerApiPromise,2);b=M.yieldResult;v=_.Hg(l,"mainVideoDownloadStateEntity");return M.yield(b.updateDownloadState(v,I),0)})},ptS=function(z){var l=_.pG().resolve(_.wv);
return _.O(function(I){if(I.nextAddress==1)return l.previousDownloadStateForVideo[z]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&l.previousDownloadStateForVideo[z]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):I.yield(l.resumeVideoDownload(z),2);if(I.nextAddress!=4)return I.yield(NG8(l,z,l.previousDownloadStateForVideo[z]),4);delete l.previousDownloadStateForVideo[z];_.qe(I)})},vM0=function(z,l){var I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$18321_playerApiPromise,2);I=b.yieldResult;return b.yield(I.queueOfflineAction(l,z.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},l6C=function(){var z=_.pG().resolve(_.wv),l,I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$18321_playerApiPromise,2);if(b.nextAddress!=3)return l=b.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},b.yield(l.queueOfflineAction("!*$_ALL_ENTITIES_!*$",z.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var v=z.JSC$18321_commandHandler,M=v.resolveCommand,x=_.mY("DELETING_ALL",void 0,"Downloads are being deleted");M.call(v,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.xw(x)}},
popupType:"TOAST"}});_.qe(b)})},Exy=function(z,l){var I,b,v,M,x,g;
return _.O(function(G){if(G.nextAddress==1)return G.yield(z.JSC$18321_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3)return I=G.yieldResult,I?G.yield(KOX(I,_.SS,"downloadsPageViewConfigurationEntity"),3):(_.PW(new _.qB("PES is undefined")),G.return());v=(b=G.yieldResult)!=null?b:{};g=(x=(M=v)==null?void 0:M.downloadsUpsellBannerVisibility)!=null?x:{};return g.visibleWithConnection?G.yield(l.refreshAllStaleEntities(0),0):G.jumpTo(0)})},ulC=function(z){var l,I;
return _.O(function(b){if(b.nextAddress==1)return b.yield(z.JSC$18321_prefStorage,2);l=b.yieldResult;return b.return((I=l)==null?void 0:I.get("sdois"))})},ZOF=function(z){var l,I,b,v,M,x;
return _.O(function(g){if(g.nextAddress==1)return g.yield(z.JSC$18321_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){l=g.yieldResult;if(!l)return _.PW(new _.qB("PES is undefined")),g.return();I=_.Hg("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return g.yield(KOX(l,I,"settingEntity"),3)}b=g.yieldResult;return g.return((x=(v=b)==null?void 0:(M=v.settingOptionValue)==null?void 0:M.boolValue)!=null?x:!1)})},HO4=function(z,l){var I,b,v,M;
return _.O(function(x){switch(x.nextAddress){case 1:return((I=l)==null?void 0:I.formatType)===void 0?x.return():x.yield(z.JSC$18321_prefStorage,2);case 2:b=x.yieldResult;if(b===void 0)return x.return();if(((v=l)==null?void 0:v.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return x.yield(b.set("lmqf",l.formatType),8);if(((M=l)==null?void 0:M.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){x.jumpTo(0);break}return x.yield(b.set("lmqf",l.formatType),6);case 6:return x.yield(b.set("lmqflst",
Math.floor((0,_.Dr)())),0);case 8:return x.yield(b.remove("lmqflst"),0)}})},yOX=function(z){var l,I;
return _.O(function(b){switch(b.nextAddress){case 1:return b.yield(z.JSC$18321_prefStorage,2);case 2:l=b.yieldResult;if(!l){b.jumpTo(3);break}return b.yield(l.get("lmqflst"),4);case 4:if(I=b.yieldResult,I!==void 0)return b.return(I);case 3:return b.return(0)}})},fs8=function(z){var l,I;
return _.O(function(b){switch(b.nextAddress){case 1:return b.yield(z.JSC$18321_prefStorage,2);case 2:l=b.yieldResult;if(l===void 0){b.jumpTo(3);break}return b.yield(l.get("lmqf"),4);case 4:if(I=b.yieldResult,I!==void 0)return b.return(I);case 3:return b.return("SD")}})},uoX=function(z,l,I){var b,v,M,x,g,G,u,Z;
_.O(function(H){switch(H.nextAddress){case 1:return H.yield(HO4(z,(b=l)==null?void 0:b.actionParams),2);case 2:v=l.playlistId;if(!v)return H.return();if(l.action==="ACTION_ADD")return((x=l.actionParams)==null?0:x.formatType)?H.yield(x54(z,v,l.actionParams.formatType,(Z=l.actionParams)==null?void 0:Z.settingsAction,I),0):H.yield(z.offlineWebClientEligibility,14);if(l.action==="ACTION_REMOVE_WITH_PROMPT"){var y=z.JSC$18321_commandHandler,f=y.resolveCommand,R=_.sZ("INNERTUBE_CLIENT_NAME");var F=R===
"WEB_REMIX"?_.mY("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.mY("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Y=R==="WEB_REMIX"?[_.mY("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];R=R==="WEB_REMIX"?_.mY("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.mY("DELETE",void 0,"Delete");var c=_.mY("CANCEL",void 0,"Cancel");F=HMl(F,Y,R,c,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:v});f.call(y,{openPopupAction:F});return H.return()}if(l.action===
"ACTION_REMOVE")return H.yield(vM0(z,v),0);if(l.action!=="ACTION_SYNC"){H.jumpTo(0);break}return H.yield(z.JSC$18321_playerApiPromise,9);case 9:return M=H.yieldResult,H.yield(M.queueOfflineAction(v,z.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return g=H.yieldResult,H.yield(fs8(z),15);case 15:return G=H.yieldResult,H.yield(yOX(z),16);case 16:u=H.yieldResult,l.onAddCommand&&z.JSC$18321_commandHandler.resolveCommand(l.onAddCommand,{form:{preferredFormatType:G,
offlineWebClientEligibility:g,lastOfflineQualitySettingsSavedMs:u.toString()}}),H.jumpTo(0)}})},Nny=function(z,l,I){var b,v,M,x,g,G,u,Z,H,y,f,R,F,Y;
_.O(function(c){switch(c.nextAddress){case 1:return c.yield(HO4(z,(b=l)==null?void 0:b.actionParams),2);case 2:v=l.videoId;if(!v)return c.return();if(l.action==="ACTION_REMOVE_WITH_PROMPT"){var d=z.JSC$18321_commandHandler,V=d.resolveCommand,A=_.sZ("INNERTUBE_CLIENT_NAME");var W=A==="WEB_REMIX"?_.mY("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.mY("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=A==="WEB_REMIX"?[_.mY("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];A=A==="WEB_REMIX"?_.mY("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.mY("DELETE",void 0,"Delete");var lH=_.mY("CANCEL",void 0,"Cancel");W=HMl(W,L,A,lH,{signal:"DELETE_DOWNLOAD",targetId:v});V.call(d,{openPopupAction:W});return c.return()}if(l.action==="ACTION_ADD")return((y=l.actionParams)==null?0:y.formatType)?c.yield(gxl(z,v,l.actionParams.formatType,(Y=l.actionParams)==null?void 0:Y.settingsAction,I),0):c.yield(z.offlineWebClientEligibility,23);if(l.action==="ACTION_RETRY")return c.yield(fs8(z),
19);if(l.action==="ACTION_PAUSE")return c.yield(z.pauseVideoDownload(v),0);if(l.action==="ACTION_RESUME")return c.yield(z.resumeVideoDownload(v),0);if(l.action!=="ACTION_REMOVE"){c.jumpTo(0);break}return c.yield(OOl(z,v),13);case 13:return M=c.yieldResult,z.previousDownloadStateForVideo[v]=(x=M)!=null?x:"DOWNLOAD_STATE_UNKNOWN",c.yield(NG8(z,v,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(z.previousDownloadStateForVideo[v]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&z.previousDownloadStateForVideo[v]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){c.jumpTo(15);break}return c.yield(z.pauseVideoDownload(v),15);case 15:d=_.mY("DELETED_VIDEO",void 0,"Video deleted from downloads.");V=_.mY("UNDO_ACTION",void 0,"Undo");W=_.mY("CLOSE",void 0,"Close");g={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.xw(d),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.xw(V),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:v}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:d+" "+V}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:v}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:W}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};z.JSC$18321_commandHandler.resolveCommand(g);
c.jumpTo(0);break;case 19:G=c.yieldResult;G==="UNKNOWN_FORMAT_TYPE"&&(G="SD");u="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((Z=l.actionParams)==null?0:Z.formatType)G=l.actionParams.formatType,u=(H=l.actionParams)==null?void 0:H.settingsAction;return c.yield(GsW(z,v,G,u,I),20);case 20:return c.return();case 23:return f=c.yieldResult,c.yield(fs8(z),24);case 24:return R=c.yieldResult,c.yield(yOX(z),25);case 25:F=c.yieldResult,l.onAddCommand&&z.JSC$18321_commandHandler.resolveCommand(l.onAddCommand,
{form:{preferredFormatType:R,offlineWebClientEligibility:f,lastOfflineQualitySettingsSavedMs:F.toString()}}),c.jumpTo(0)}})},CIX=function(z,l){var I,b,v,M,x,g,G;
return _.O(function(u){if(u.nextAddress==1)return u.yield(z.JSC$18321_persistentStorePromiseAccessor(),2);I=u.yieldResult;if(!I)return _.PW(new _.qB("PES is undefined")),u.return();if((b=l)==null||!b.settingItemId)return u.return();v=l;M=v.settingItemId;x=v.boolValue;g=_.Hg(M,"settingEntity");G={key:g,settingOptionValue:{boolValue:x}};return u.yield(mN4(I,G),0)})},ksK=function(z,l){var I,b,v,M,x,g,G;
return _.O(function(u){switch(u.nextAddress){case 1:return u.yield(z.JSC$18321_prefStorage,2);case 2:return I=u.yieldResult,b=_.Bu(),u.yield(z.JSC$18321_persistentStorePromiseAccessor(),3);case 3:return v=u.yieldResult,I?v?u.yield(I.get("sdois"),4):(_.PW(new _.qB("PES is undefined")),u.return()):(_.PW(new _.qB("prefStorage is undefined")),u.return());case 4:M=u.yieldResult;g=(x=l)==null?void 0:x.boolValue;g===void 0||_.C("kevlar_set_sd_enabled_flag_killswitch")||_.XG(0,197,!0);M===void 0&&g===void 0&&
(g=!1);if(g===void 0){u.jumpTo(0);break}return u.yield(I.set("sdois",g),6);case 6:return _.C("kevlar_set_sd_enabled_flag_killswitch")||(_.XG(0,196,g),b.save()),G={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:g},u.yield(CIX(z,G),0)}})},Rh1=function(z,l,I){var b,v,M,x,g;
return _.O(function(G){switch(G.nextAddress){case 1:return G.yield(ulC(z),2);case 2:return b=G.yieldResult,G.yield(ksK(z,I),3);case 3:return G.yield(ulC(z),4);case 4:return v=G.yieldResult,M=v!==b,G.yield(ZOF(z),5);case 5:x=G.yieldResult&&!_.C("kevlar_modern_downloads_page");if((g=!v&&!x)||M)return G.yield(l.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);G.jumpTo(0)}})},xay=function(){var z=_.pG().resolve(_.wv),
l;
_.O(function(I){switch(I.nextAddress){case 1:return I.yield(z.JSC$18321_playerApiPromise,2);case 2:l=I.yieldResult;if(!_.C("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return I.yield(l.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return I.yield(l.refreshAllStaleEntities(),5);case 5:return I.yield(Rh1(z,l),6);case 6:if(_.C("enable_download_pep_for_premium_countries_web"))return I.yield(Exy(z,l),0);I.jumpTo(0)}})},Hjy=function(z,l){var I,b;
_.O(function(v){switch(v.nextAddress){case 1:return v.yield(z.JSC$18321_playerApiPromise,2);case 2:I=v.yieldResult;switch((b=l)==null?void 0:b.settingItemId){case "SMART_DOWNLOADS_ENABLED":return v.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return v.jumpTo(4)}v.jumpTo(0);break;case 3:return v.yield(Rh1(z,I,l),6);case 6:v.jumpTo(0);break;case 4:return v.yield(CIX(z,l),7);case 7:v.jumpTo(0)}})},m5s=function(z,l){var I,b,v;
return _.O(function(M){if(M.nextAddress==1)return M.yield(z.JSC$18321_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){I=M.yieldResult;if(!I)return _.PW(new _.qB("PES is undefined")),M.return(!1);if(!l)return M.return(!1);b=_.Hg(l,"mainVideoEntity");return M.yield(KOX(I,b,"mainVideoEntity"),3)}v=M.yieldResult;return M.return(v!==void 0)})},f6q=function(z){var l=_.pG().resolve(_.wv),I,b,v,M,x,g,G,u,Z,H,y;
_.O(function(f){switch(f.nextAddress){case 1:return f.yield(l.JSC$18321_playerApiPromise,2);case 2:I=f.yieldResult;v=(b=z)==null?void 0:b.actions;if(!v)return f.return();M=_.D(v);x=M.next();case 3:if(x.done){f.jumpTo(0);break}g=x.value;u=G=void 0;if(!(((G=g)==null?0:G.entityKey)&&((u=g)==null?0:u.actionType))){f.jumpTo(4);break}Z=_.Ep(g.entityKey);H=Z.entityId;y=Z.entityType;return f.yield(I.queueOfflineAction(H,y,g.actionType),4);case 4:x=M.next(),f.jumpTo(3)}})},KxW=function(z,l){var I,b,v,M,x;
return _.O(function(g){if(g.nextAddress==1)return g.yield(z.JSC$18321_prefStorage,2);if(g.nextAddress!=3)return(I=g.yieldResult)?g.yield(I.get("psi"),3):g.return();b=g.yieldResult;x={isPaused:l,lastSyncTimestamp:(M=(v=b)==null?void 0:v.lastSyncTimestamp)!=null?M:"0"};return g.yield(I.set("psi",x),0)})},RLl=function(z){var l=_.pG().resolve(_.wv),I,b,v,M,x,g,G,u;
return _.O(function(Z){switch(Z.nextAddress){case 1:return Z.yield(l.JSC$18321_playerApiPromise,2);case 2:I=Z.yieldResult;v=((b=z)==null?void 0:b.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((g=z)==null?void 0:g.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":M="!*$_ALL_ENTITIES_!*$";x="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return Z.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return Z.jumpTo(4)}Z.jumpTo(5);break;case 3:return Z.yield(KxW(l,v),6);case 6:Z.jumpTo(5);break;case 4:return Z.yield(m5s(l,(G=z)==null?void 0:G.videoId),7);case 7:Z.yieldResult&&(M=(u=z)==null?void 0:u.videoId,x="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");Z.jumpTo(5);break;case 5:if(M&&x)return Z.yield(I.queueOfflineAction(M,"videoPlaybackPositionEntity",x),0);Z.jumpTo(0)}})},tyS=function(z,l){var I;
l!==1||((I=z.currentPersistentToast)==null?0:I.isOpened())?z.openToast():z.currentPersistentToast=void 0},BG1=function(z,l){var I;
return(I=z.transitionTasksMap.get(l))!=null?I:[]},Xxl=function(z,l){var I=[];
z.elementTasksMap.forEach(function(b){(b=b.get(l))&&I.push(b)});
return I},q9F=function(z,l,I,b,v){v=v===void 0?{}:v;
var M=l.defaultViewTransitionOptions;return Object.assign({},M,v,{beforeTransition:function(){b.forEach(function(u){u.beforeTransition()});
var x;(x=M.beforeTransition)==null||x.call(M);var g,G;(G=(g=v).beforeTransition)==null||G.call(g);I.forEach(function(u){u.beforeTransition()})},
afterTransition:function(){b.forEach(function(u){u.afterTransition()});
var x;(x=M.afterTransition)==null||x.call(M);var g,G;(G=(g=v).afterTransition)==null||G.call(g);I.forEach(function(u){u.afterTransition()})},
ignoredErrors:z.config.ignoredErrors})},iOF=function(z,l,I){z.transitionTasksMap.has(l)?z.transitionTasksMap.get(l).push(I):(z=new _.qB("Transition task registered for unknown transition type",l),_.dE(z))},FxF=function(z,l,I){if(z.transitionTasksMap.has(l)){var b=z.transitionTasksMap.get(l).filter(function(v){return v!==I});
z.transitionTasksMap.set(l,b)}},QX0=function(z,l){var I=BG1(z,l);
I=_.D(I);for(var b=I.next();!b.done;b=I.next())b=b.value,b.runOnce&&FxF(z,l,b);z.elementTasksMap.forEach(function(v,M){v.forEach(function(x,g){x.runOnce&&l===g&&(v.delete(g),v.size===0&&z.elementTasksMap.delete(M))})})},Y90=function(z,l,I){var b,v,M,x,g,G,u,Z,H;
_.O(function(y){if(y.nextAddress==1){if(z.config.disableAllTransitions)return y.return(l());if((b=I)==null||!b.transitionType)return y.return(_.jjK(l,Object.assign({},(v=I)==null?void 0:v.viewTransitionOptions,{ignoredErrors:z.config.ignoredErrors})));M=I;x=M.transitionType;g=M.viewTransitionOptions;G=z.config.transitionConfigs.get(x);if(!G)return y.return(l());u=BG1(z,x);Z=Xxl(z,x);H=_.jjK(l,q9F(z,G,u,Z,g));return y.yield(H,2)}QX0(z,x);_.qe(y)})},TGq=function(){var z,l,I,b;
return _.O(function(v){if(v.nextAddress==1)return z=navigator,(l=z.storage)!=null&&l.persisted?v.yield((I=z.storage)==null?void 0:I.persisted(),2):v.return("PERSISTED_STATE_NOT_SUPPORTED");b=v.yieldResult;return v.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},cO8=function(){var z,l,I,b;
return _.O(function(v){if(v.nextAddress==1)return z=navigator,(l=z.storage)!=null&&l.persist?v.yield((I=z.storage)==null?void 0:I.persist(),2):v.return("PERSISTED_STATE_NOT_SUPPORTED");b=v.yieldResult;return v.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},S9c=function(){var z,l;
return _.O(function(I){switch(I.nextAddress){case 1:return z="PERSISTED_STATE_NOT_SUPPORTED",_.RL(I,2),I.yield(TGq(),4);case 4:z=I.yieldResult;if(z!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return I.yield(cO8(),6);case 6:z=I.yieldResult;case 5:_.a3(I,3);break;case 2:l=_.XP(I),l instanceof Error&&_.dE(l);case 3:return _.cW("persistentStorageStateChecked",{persistedState:z}),I.return(z)}})},d58=function(z,l){var I=[],b=!1;
l=_.D(l);for(var v=l.next();!v.done;v=l.next()){v=z.moduleRegistry[v.value];var M=void 0,x=void 0;((M=v)==null?0:M.isFetching)&&((x=v)==null?0:x.resolver)?(I.push(v.resolver.promise),b=!0):(v=new _.yX,v.resolve(void 0),I.push(v.promise))}return b?Promise.all(I):void 0},oxq=function(z,l,I){if(z.isAnyTransitionEnabled){var b={beforeTransition:function(){I(!0);
l.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){l.style.viewTransitionName&&(l.style.viewTransitionName="",I(!1))}};
iOF(z.viewTransitionCoordinator,"slide",b);iOF(z.viewTransitionCoordinator,"lockup-to-watch",b);iOF(z.viewTransitionCoordinator,"watch-next-appears",b);iOF(z.viewTransitionCoordinator,"learning-journey",b)}},PIC=function(z,l){z.isBrowseTransitionEnabled?Y90(z.viewTransitionCoordinator,l,{transitionType:"slide"}):(l(),Promise.resolve())},hhc=function(z,l){z.isLockupToWatchTransitionEnabled?Y90(z.viewTransitionCoordinator,l,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){z.registeredLockupThumbnail=void 0;z.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(l(),Promise.resolve())},sX8=function(z,l){z.isLockupToWatchTransitionEnabled?Y90(z.viewTransitionCoordinator,l,{transitionType:"watch-next-appears"}):(l(),Promise.resolve())},rOq=function(z,l){z.isLearningJourneyTransitionEnabled?Y90(z.viewTransitionCoordinator,l,{transitionType:"learning-journey"}):(l(),Promise.resolve())},$54=function(z,l,I){if(z.isInitialized()){var b=
jh(I),v=b==="watch";
b=b==="shorts";var M=jh(l)==="watch";if(v)M||(z.backgroundPageData=l),z.watchPipMode&&M||z.deactivate(I.endpoint);else if(b){if(jh(l)!=="shorts"){var x;(x=z.getPlayerElement())==null||x.pause()}}else M&&!z.watchPipMode&&(fE0(l,I)?(z.watchWhileMode&&_.OoC(z,!1),_.boq(z,l)):z.isMiniplayerActive()&&z.watchWhileMode&&z.deactivate());M&&_.GeS(z);z.shortsPipMode&&!b&&(window.focus(),z.deactivate());if(z.pictureInPictureEnabled())if(b&&z.shortsPipEnabled||v&&z.watchPipEnabled)_.iCf(z.handleMediaSessionPipActivation);
else if(!z.isMiniplayerActive()&&(z.shortsPipEnabled||z.watchPipEnabled)&&window.documentPictureInPicture&&_.iH()&&_.ut5("Chromium")>=120){z=_.qQ$().mediaSession;try{z.setActionHandler("enterpictureinpicture",null)}catch(g){}}}},ehK=function(z,l){var I,b;
_.O(function(v){if(v.nextAddress==1){if(!z||!z.navigationEndpoint)return v.return();_.wb().lockupActivation=!0;var M;l?M=_.lc(_.mY("QUEUE",void 0,"Queue")):M=z.longBylineText;b=(I=M)&&z.title?{miniplayerTitle:z.title,miniplayerSubtitle:I,playlistData:null}:void 0;return v.yield(_.uBp(_.pG().resolve(_.Af),z.navigationEndpoint,!0,b),2)}_.wb().userActivation=!0;_.qe(v)})},SWq=function(z,l){var I,b,v,M,x,g;
_.O(function(G){if(G.nextAddress==1){I=_.k(l,_.ZmA);if(!I||!I.listId)return G.return();z.index=I.index||z.index||0;b=z.response&&z.response.playingVideoId||void 0;return G.yield(_.tp_(z.JSC$12924_playlistNetworkManager,I.listId,z.index,b),2)}v=G.yieldResult;if(!v)return G.return();M=v.playlistId;x=v.playlistPanelRenderer;!z.queueProxy&&M&&x&&M.startsWith("TLPQ")&&(z.queueProxy=new _.OD(z.JSC$12924_playlistNetworkManager,M,z.setPlaylistData.bind(z),z.clearQueue.bind(z),_.QVt(x),z.storage));if(I.openMiniplayer&&
(g=_.YMH(x))&&!z.pageManager.isOnWatch()){var u=g,Z=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";z.isMiniplayerActive()?z.openToast(u):ehK(u,Z)}z.setPlaylistData(M,x,v.autoplayRenderer);_.qe(G)})},YWC=function(z,l){var I=_.ya();
I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.ht(z));if((l.videoId||l.videoIds)&&I.index!==void 0&&l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var b=[];if(I.response){var v=_.pG().resolve(_.Af).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.pageManager.isOnWatch()||v)b=_.QVt(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&!l.openMiniplayer?b.push(I.response.playingVideoId):
v&&I.response.playingVideoId&&l.openMiniplayer&&b.push(I.response.playingVideoId)}I.queueProxy=new _.OD(I.JSC$12924_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),b,I.storage);I.queueProxy.JSC$12870_setCurrentIndex(I.index)}I.queueProxy.addVideos(l.videoIds||[l.videoId],l)}XJy(I,z);I.response&&_.fq(I,_.Cq(I,I.response.autoplayRenderer));I.pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(z[0]):(z=z[0],l=l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",I.isMiniplayerActive()?
I.openToast(z):ehK(z,l))},wxX=function(z){var l=_.Vu(z);
if(l=="object"||l=="array"){if(typeof z.clone==="function")return z.clone();if(typeof Map!=="undefined"&&z instanceof Map)return new Map(z);if(typeof Set!=="undefined"&&z instanceof Set)return new Set(z);l=l=="array"?[]:{};for(var I in z)l[I]=wxX(z[I]);return l}return z},fB=function(z,l){return _.G_f(_.tO(z,l,void 0,_.KO))},CB=function(z,l){return _.MK(_.tO(z,l,void 0,_.KO))},k_=function(z,l){return _.Twp(_.tO(z,l,void 0,_.KO))},RZ=function(z,l){return _.tO(z,l,void 0,_.KO,_.nn)},AO1=_.g0(function(z,
l,I){if(z.nextWireType_!==0)return!1;
_.GT(l,I,_.AO(z.decoder_,_.Onu));return!0},_.Za,_.aX),Wxq=_.g0(function(z,l,I,b){if(z.nextWireType_!==0)return!1;
_.iI(l,I,b,_.AO(z.decoder_,_.Onu));return!0},_.Za,_.aX),nxK=_.g0(function(z,l,I){if(z.nextWireType_!==1)return!1;
var b=z.decoder_;z=_.nO(b);b=_.nO(b);z=_.sj(z,b);_.GT(l,I,z);return!0},_.Qu$,_.jMt),LxK=_.g0(function(z,l,I){if(z.nextWireType_!==5)return!1;
_.GT(l,I,_.nO(z.decoder_));return!0},function(z,l,I){l=_.uAu(l);
l!=null&&(_.NZ(z,I,5),_.Ev(z.encoder_,l))},_.U61),U5X=_.g0(function(z,l,I){if(z.nextWireType_!==2)return!1;
z=_.SO5(z);_.GT(l,I,z===_.qz()?void 0:z);return!0},_.dZS,_.lMx),asX=_.K7p(function(z,l,I){if(z.nextWireType_!==0&&z.nextWireType_!==2)return!1;
l=_.l8(l,l[_.D4]|0,I);z.nextWireType_==2?_.d6f(z,MKs,l):l.push(_.Wx(z.decoder_));return!0},function(z,l,I){l=_.mZk(_.MK,l,!0);
if(l!=null&&l.length){I=_.egS(z,I);for(var b=0;b<l.length;b++)_.qv1(z.encoder_,l[b]);_.waQ(z,I)}},_.IM5),VyW=_.g0(function(z,l,I,b){if(z.nextWireType_!==0)return!1;
_.iI(l,I,b,_.Wx(z.decoder_));return!0},_.P8Y,_.IM5),jXC=function(z){return z.previousElementSibling!==void 0?z.previousElementSibling:_.Zlp(z.previousSibling,!1)},JO8=function(z,l){var I=[];
for(l=l||0;l<z.length;l+=2)_.vRj(z[l],z[l+1],I);return I.join("&")},z3l=function(z,l){var I=arguments.length==2?JO8(arguments[1],0):JO8(arguments,1);
return _.bD_(z,I)},lPC=_.kR(_.rn),lb0=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(lb0,_.Da);lb0.prototype.getTypeName=function(){return _.oX(this,1).split("/").pop()};
lb0.prototype.getValue=function(){var z=_.tO(this,2);if(Array.isArray(z)||z instanceof _.Da)throw Error("W");return _.q5(this,2)};
var wyq=function(){var z=_.Er();this.JSC$9918_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.uW("channel_type"))};
wyq.prototype.increment=function(z){this.JSC$9918_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",z)};
var APS=function(){var z=_.Er();this.JSC$9921_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.uW("channel_type"))};
APS.prototype.increment=function(z){this.JSC$9921_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",z)};
var nE8=function(){var z=_.Er();this.JSC$9924_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.uW("channel_type"))};
nE8.prototype.increment=function(z){this.JSC$9924_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",z)};
var W28=function(){var z=_.Er();this.JSC$9927_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
W28.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var L21=function(){var z=_.Er();this.JSC$9930_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.uW("channel_type"),_.uW("error_type"))};
L21.prototype.increment=function(z,l){this.JSC$9930_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",z,l)};
var UXX=function(){var z=_.Er();this.JSC$9933_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
UXX.prototype.increment=function(){this.JSC$9933_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var aPy=function(){var z=_.Er();this.JSC$9936_streamzService=z;z.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
aPy.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var rQW=function(){var z=_.Er();this.JSC$9942_streamzService=z;z.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
rQW.prototype.increment=function(){this.JSC$9942_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Ibl=function(z){return z.getCount&&typeof z.getCount=="function"?z.getCount():_.wf(z)||typeof z==="string"?z.length:_.h7.getCount(z)},bNW=function(z,l){if(typeof z.every=="function")return z.every(l,void 0);
if(_.wf(z)||typeof z==="string")return Array.prototype.every.call(z,l,void 0);for(var I=_.vPu(z),b=_.Eh(z),v=b.length,M=0;M<v;M++)if(!l.call(void 0,b[M],I&&I[M],z))return!1;return!0},vAs=function(z,l,I,b){var v=new _.lJ(null);
z&&_.uC(v,z);l&&_.Z9(v,l);I&&_.HH(v,I);b&&_.y4(v,b);return v},M1c=function(){var z=_.ec&&_.y$(_.fr_,10)>=0,l;
if(l=_.$7p)l=_.y$(_.yWI,10)>=0;var I=_.kx&&_.y$(_.fr_,85)>=0;return _.Hx||z||l||I},pc4=function(z){var l=_.PK0(z);
return l&&M1c()?-z.scrollLeft:l&&_.AA(z,"overflowX")!="visible"?z.scrollWidth-z.clientWidth-z.scrollLeft:z.scrollLeft},DiK=function(z,l){l=Math.max(l,0);
_.PK0(z)?M1c()?z.scrollLeft=-l:z.scrollLeft=z.scrollWidth-l-z.clientWidth:z.scrollLeft=l},TC4=0,PJ1=!1;
zt.prototype.set=function(z){this.relativeTimeStart_=z};
zt.prototype.reset=function(){this.set(_.gG())};
zt.prototype.get=function(){return this.relativeTimeStart_};
var xi1=null,ONW=function(){xi1||(xi1=new zt)},gAK=function(){xi1||(xi1=new zt)};
_.Gs(gAK,ONW);_.p=smK.prototype;_.p.JSC$11358_buffer_="";_.p.set=function(z){this.JSC$11358_buffer_=""+z};
_.p.append=function(z,l,I){this.JSC$11358_buffer_+=String(z);if(l!=null)for(var b=1;b<arguments.length;b++)this.JSC$11358_buffer_+=arguments[b];return this};
_.p.clear=function(){this.JSC$11358_buffer_=""};
_.p.getLength=function(){return this.JSC$11358_buffer_.length};
_.p.toString=function(){return this.JSC$11358_buffer_};
var Gn8=!1,nBC=function(z){_.I1.call(this,z.message||z.description||z.name);this.isMissing=z instanceof lw;this.isTimeout=z instanceof _.P5&&z.errorCode=="net.timeout";this.isCanceled=z instanceof _.nj};
_.m(nBC,_.I1);nBC.prototype.name="BiscottiError";var lw=function(){_.I1.call(this,"Biscotti ID is missing from server")};
_.m(lw,_.I1);lw.prototype.name="BiscottiMissingError";var Id=null,tOX=function(){try{var z=_.W8("yt.ads.biscotti.getId_");return z?z():BCF()}catch(l){return _.Ph(l)}},NyF=function(z,l){return _.GZ({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:z,command:l}})},EAC=function(z){return _.GZ({type:"SET_GUIDE_IS_EXPANDED",
payload:z})},uzK=function(z){return _.GZ({type:"SET_ONLINE_STATUS",
payload:z})},ZNW=function(z,l){return _.GZ({type:"SET_TRANSCRIPTION_STATE",
payload:{high:z,low:l}})},HNX=function(z){return _.GZ({type:"SET_OVERLAY_STATE",
payload:z})},y5l=0,fb8=function(z,l,I){var b=this;
this.priority=l;this.delay=I;this.jobId=0;this.completionCallback=_.Tn;this.wrappedJob=function(){z();b.completionCallback()};
this.id=++y5l};
fb8.prototype.enqueue=function(z){this.completionCallback=z;this.jobId=_.ow.addJob(this.wrappedJob,this.priority,this.delay)};
var mD=function(){_.kI.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.m(mD,_.kI);mD.prototype.addJob=function(z,l,I){z=new fb8(z,l,I);this.taskIdToTask.set(z.id,z);this.isActive?C2F(this,z):this.suspendedTasks.add(z);return z.id};
var C2F=function(z,l){z.scheduledTasks.add(l);l.enqueue(function(){z.scheduledTasks.delete(l)})};
mD.prototype.cancelJob=function(z){(z=this.taskIdToTask.get(z))&&(this.scheduledTasks.delete(z)?_.ow.cancelJob(z.jobId):this.suspendedTasks.delete(z))};
mD.prototype.pause=function(){var z=this;this.isActive=!1;this.scheduledTasks.forEach(function(l){_.ow.cancelJob(l.jobId);z.suspendedTasks.add(l)});
this.scheduledTasks.clear()};
mD.prototype.start=function(){var z=this;this.isActive=!0;this.suspendedTasks.forEach(function(l){C2F(z,l)});
this.suspendedTasks.clear()};
mD.prototype.reset=function(){this.scheduledTasks.forEach(function(z){_.ow.cancelJob(z.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var KB=function(z,l){this.JSC$13050_networkService_=z;this.pageRequestPromise=l};
KB.prototype.fetchData=function(z){kn4(this,this.JSC$13050_networkService_.fetchData(z))};
KB.prototype.postData=function(z,l){kn4(this,this.JSC$13050_networkService_.postData(z,l))};
KB.prototype.requestDataForServiceEndpoint=function(z,l){kn4(this,this.JSC$13050_networkService_.requestDataForServiceEndpoint(z,l))};
var kn4=function(z,l){l.then(z.pageRequestPromise.onSuccess,z.pageRequestPromise.onFailure,z.pageRequestPromise)};
KB.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var t2=function(z){this.buildNetworkRequest_=z;this.pendingRequests_=new Set};
t2.prototype.reset=function(){this.pendingRequests_.forEach(function(z){z.cancel()});
this.pendingRequests_.clear()};
t2.prototype.fetchData=function(z){var l=R3c(this);l.fetchData(z);return l.pageRequestPromise};
t2.prototype.postData=function(z,l){var I=R3c(this);I.postData(z,l);return I.pageRequestPromise};
t2.prototype.requestDataForServiceEndpoint=function(z,l){var I=R3c(this);I.requestDataForServiceEndpoint(z,l);return I.pageRequestPromise};
var R3c=function(z){var l=z.buildNetworkRequest_();z.pendingRequests_.add(l);var I=function(){z.pendingRequests_.delete(l)};
l.pageRequestPromise.then(I,I);return l},miF=function(z){var l=new mD;
this.JSC$13057_networkService_=z;this.JSC$13057_taskManager_=l;this.JSC$13057_networkManager_=new t2(this.networkRequestFactory_.bind(this))};
_.p=miF.prototype;_.p.networkRequestFactory_=function(){return new KB(this.JSC$13057_networkService_,new _.SC(this.JSC$13057_taskManager_))};
_.p.reset=function(){this.JSC$13057_taskManager_.reset();this.JSC$13057_networkManager_.reset()};
_.p.start=function(){this.JSC$13057_taskManager_.start()};
_.p.pause=function(){this.JSC$13057_taskManager_.pause()};
_.p.getTaskManager=function(){return this.JSC$13057_taskManager_};
_.p.getNetworkManager=function(){return this.JSC$13057_networkManager_};
var vw1=null,DFK=[],bw=0,MI=0,vv=null,KTK=!1,pS=null,Occ=void 0,xu=function(z){this.token=z};
xu.getInstance=function(){var z;return _.O(function(l){if(l.nextAddress==1)return l.yield(_.MW(),2);z=l.yieldResult;if(!z)return l.return();xu.instance||(xu.instance=new xu(z));return l.return(xu.instance)})};
var ymK=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(us0(z.token),2);l=I.yieldResult;return I.return(l.clear("resource-manifest-assets"))})},Dl=function(z){this.token=z};
Dl.getInstance=function(){var z;return _.O(function(l){if(l.nextAddress==1)return l.yield(_.MW(),2);z=l.yieldResult;if(!z)return l.return();Dl.instance||(Dl.instance=new Dl(z));return l.return(Dl.instance)})};
var Zc4=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(us0(z.token),2);l=I.yieldResult;return I.yield(l.clear("auth"),0)})},PiF=!1,t1W=function(z){_.I1.call(this,z)};
_.m(t1W,_.uWw);var Byy="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(" ");GNq()&&Byy.push("details:not(:has(summary))");var EWX=Byy.join(",");var d8y=function(){var z=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return z?parseInt(z[1],10):0},Xc1=function(z){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+z)!=-1||document.currentScript.src.indexOf("&"+z)!=-1)},qzq=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},rxS=function(z){z.length?iNK(z.shift(),function(){rxS(z)}):PYW()},eK1=function(z){return"chrome-extension://"+z+"/cast_sender.js"},iNK=function(z,
l,I){var b=document.createElement("script");
b.onerror=l;I&&(b.onload=I);_.Me(b,_.cl(z));(document.head||document.documentElement).appendChild(b)},FTl=function(){var z=d8y(),l=[];
if(z>1){var I=z-1;l.push("//www.gstatic.com/eureka/clank/"+z+"/cast_sender.js");l.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return l},PYW=function(){var z=qzq();
z&&z(!1,"No cast extension found")},seF=function(){if(Qq1){var z=2,l=qzq(),I=function(){z--;
z==0&&l&&l(!0)};
window.__onGCastApiAvailable=I;iNK("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",PYW,I)}},oCS=function(){seF();
var z=FTl();z.push("//www.gstatic.com/eureka/clank/cast_sender.js");rxS(z)},hK4=function(){seF();
var z=FTl();z.push.apply(z,_.ht($8K.map(eK1)));z.push("//www.gstatic.com/eureka/clank/cast_sender.js");rxS(z)},Qq1=Xc1("loadCastFramework")||Xc1("loadCastApplicationFramework"),$8K=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var YzK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(YzK,_.Da);var Ty8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Ty8,_.Da);var c5X=function(){var z=new Ty8;return _.ey(z,1,3)};var BO=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(BO,_.Da);var doc=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(doc,_.Da);var Sz1=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Sz1,_.Da);Sz1.prototype.getToken=function(){return _.oX(this,1)};
Sz1.prototype.setToken=function(z){return _.j2(this,1,z)};
var cYK=function(z){return _.aC(z,3,_.m0,_.g1())},Sr0=function(z){return _.aC(z,6,_.m0,_.g1())};var XK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(XK,_.Da);XK.prototype.getToken=function(){return _.gi(this,Sz1,2)};
XK.prototype.setToken=function(z){return _.tT(this,2,z)};
XK.prototype.getName=function(){return _.oX(this,6)};
var diW=_.kR(XK);var oAl=function(z,l,I){this.requestMessage=z;this.methodDescriptor=l;this.metadata=I};
oAl.prototype.getMetadata=function(){return this.metadata};var P2l=function(z,l){l=l===void 0?{}:l;this.responseMessage=z;this.metadata=l;this.status=null};
P2l.prototype.getMetadata=function(){return this.metadata};
P2l.prototype.getStatus=function(){return this.status};var qJ=function(z,l,I,b,v){this.name=z;this.methodType="unary";this.requestType=l;this.responseType=I;this.requestSerializeFn=b;this.responseDeserializeFn=v},h3s=function(z,l,I){I=I===void 0?{}:I;
return new oAl(l,z,I)};
qJ.prototype.getName=function(){return this.name};var i3=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(i3,_.Da);i3.prototype.getHeader=function(){return _.gi(this,BO,1)};
i3.prototype.setHeader=function(z){return _.tT(this,1,z)};
i3.prototype.hasHeader=function(){return _.Bx(this,BO,1)};var sqW=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(sqW,_.Da);var r5K=new qJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",i3,sqW,function(z){return z.serialize()},_.kR(sqW));var FK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(FK,_.Da);FK.prototype.getHeader=function(){return _.gi(this,BO,1)};
FK.prototype.setHeader=function(z){return _.tT(this,1,z)};
FK.prototype.hasHeader=function(){return _.Bx(this,BO,1)};var $iK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m($iK,_.Da);var e34=new qJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",FK,$iK,function(z){return z.serialize()},_.kR($iK));var Qt=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Qt,_.Da);Qt.prototype.getHeader=function(){return _.gi(this,BO,1)};
Qt.prototype.setHeader=function(z){return _.tT(this,1,z)};
Qt.prototype.hasHeader=function(){return _.Bx(this,BO,1)};var wcC=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(wcC,_.Da);wcC.prototype.getLink=function(){return _.gi(this,XK,1)};var A5K=new qJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Qt,wcC,function(z){return z.serialize()},_.kR(wcC));var Y_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Y_,_.Da);Y_.prototype.getHeader=function(){return _.gi(this,BO,1)};
Y_.prototype.setHeader=function(z){return _.tT(this,1,z)};
Y_.prototype.hasHeader=function(){return _.Bx(this,BO,1)};var WTq=new qJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Y_,XK,function(z){return z.serialize()},diW);var nAK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(nAK,_.Da);var LTc=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(LTc,_.Da);LTc.prototype.getUrl=function(){return _.oX(this,2)};
LTc.prototype.setUrl=function(z){return _.j2(this,2,z)};var Ui8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Ui8,_.Da);var ab0=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(ab0,_.Da);var V1W=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(V1W,_.Da);var nWS=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(nWS,_.Da);var Wa8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(Wa8,_.Da);var jqX=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(jqX,_.Da);var zHy=_.kR(jqX);var J5c=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(J5c,_.Da);var zoW=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(zoW,_.Da);_.p=zoW.prototype;_.p.getHeader=function(){return _.gi(this,BO,1)};
_.p.setHeader=function(z){return _.tT(this,1,z)};
_.p.hasHeader=function(){return _.Bx(this,BO,1)};
_.p.getCompletionUrl=function(){return _.oX(this,6)};
_.p.getDeviceId=function(){return _.oX(this,11)};var lIc=new qJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",zoW,jqX,function(z){return z.serialize()},zHy);var IIc=new Set(["SAPISIDHASH","APISIDHASH"]);var bds=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(bds,_.Da);bds.prototype.getMessage=function(){return _.oX(this,2)};
var v9S=_.kR(bds);var T7=function(z,l){this.xhrNodeReadableStream_=z.nodeReadableStream;this.grpcResponseDeserializeFn_=l;this.JSC$19316_xhr_=z.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19316_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&MiK(this)},GLl=function(z,l){var I=new pnK;
_.dZ(z.JSC$19316_xhr_,"complete",function(){if(z.JSC$19316_xhr_.isSuccess()){var b=z.JSC$19316_xhr_.getResponseText();var v;if(v=l)v=z.JSC$19316_xhr_,v.JSC$9797_xhr_&&v.isComplete()?(v=v.JSC$9797_xhr_.getResponseHeader("Content-Type"),v=v===null?void 0:v):v=void 0,v=v==="text/plain";if(v){if(!atob)throw Error("ak");b=atob(b)}try{var M=z.grpcResponseDeserializeFn_(b)}catch(g){cO(z,kNs(new _.ei(13,"Error when deserializing response data; error: "+g+(", response: "+b)),I));return}b=_.JrY(z.JSC$19316_xhr_.getStatus());
DgC(z,xgX(z));b==0?OdF(z,M):cO(z,kNs(new _.ei(b,"Xhr succeeded but the status code is not 200"),I))}else{b=z.JSC$19316_xhr_.getResponseText();M=xgX(z);if(b){var x=g9y(z,b);b=x.code;v=x.details;x=x.metadata}else b=2,v="Rpc failed due to xhr error. uri: "+String(z.JSC$19316_xhr_.JSC$9797_lastUri_)+", error code: "+z.JSC$19316_xhr_.JSC$9797_lastErrorCode_+", error: "+z.JSC$19316_xhr_.getLastError(),x=M;DgC(z,M);cO(z,kNs(new _.ei(b,v,x),I))}})},MiK=function(z){z.xhrNodeReadableStream_.on("data",function(l){if("1"in
l){var I=l["1"];
try{var b=z.grpcResponseDeserializeFn_(I)}catch(v){cO(z,new _.ei(13,"Error when deserializing response data; error: "+v+(", response: "+I)))}b&&OdF(z,b)}if("2"in l)for(l=g9y(z,l["2"]),I=0;I<z.onStatusCallbacks_.length;I++)z.onStatusCallbacks_[I](l)});
z.xhrNodeReadableStream_.on("end",function(){DgC(z,xgX(z));for(var l=0;l<z.onEndCallbacks_.length;l++)z.onEndCallbacks_[l]()});
z.xhrNodeReadableStream_.on("error",function(){if(z.JSC$19316_onErrorCallbacks_.length!=0){var l=z.JSC$19316_xhr_.JSC$9797_lastErrorCode_;l!==0||z.JSC$19316_xhr_.isSuccess()||(l=6);var I=-1;switch(l){case 0:var b=2;break;case 7:b=10;break;case 8:b=4;break;case 6:I=z.JSC$19316_xhr_.getStatus();b=_.JrY(I);break;default:b=14}DgC(z,xgX(z));l=_.djw(l)+", error: "+z.JSC$19316_xhr_.getLastError();I!=-1&&(l+=", http status code: "+I);cO(z,new _.ei(b,l))}})},xgX=function(z){var l={},I=xNl(z.JSC$19316_xhr_);
Object.keys(I).forEach(function(b){l[b]=I[b]});
return l},g9y=function(z,l){var I=2,b={};
try{var v=v9S(l);I=_.Gz(v,1);var M=v.getMessage();_.OA(v,lb0,3,_.g1()).length&&(b["grpc-web-status-details-bin"]=l)}catch(x){z.JSC$19316_xhr_&&z.JSC$19316_xhr_.getStatus()===404?(I=5,M="Not Found: "+String(z.JSC$19316_xhr_.JSC$9797_lastUri_)):(I=14,M="Unable to parse RpcStatus: "+x)}return{code:I,details:M,metadata:b}};
T7.prototype.on=function(z,l){z=="data"?this.onDataCallbacks_.push(l):z=="metadata"?this.onMetadataCallbacks_.push(l):z=="status"?this.onStatusCallbacks_.push(l):z=="end"?this.onEndCallbacks_.push(l):z=="error"&&this.JSC$19316_onErrorCallbacks_.push(l);return this};
var SJ=function(z,l){l=z.indexOf(l);l>-1&&z.splice(l,1)};
T7.prototype.removeListener=function(z,l){z=="data"?SJ(this.onDataCallbacks_,l):z=="metadata"?SJ(this.onMetadataCallbacks_,l):z=="status"?SJ(this.onStatusCallbacks_,l):z=="end"?SJ(this.onEndCallbacks_,l):z=="error"&&SJ(this.JSC$19316_onErrorCallbacks_,l);return this};
T7.prototype.cancel=function(){this.JSC$19316_xhr_.abort()};
var OdF=function(z,l){for(var I=0;I<z.onDataCallbacks_.length;I++)z.onDataCallbacks_[I](l)},DgC=function(z,l){for(var I=0;I<z.onMetadataCallbacks_.length;I++)z.onMetadataCallbacks_[I](l)},cO=function(z,l){for(var I=0;I<z.JSC$19316_onErrorCallbacks_.length;I++)z.JSC$19316_onErrorCallbacks_[I](l)};
T7.prototype.cancel=T7.prototype.cancel;T7.prototype.removeListener=T7.prototype.removeListener;T7.prototype.on=T7.prototype.on;var pnK=function(){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.m(pnK,Error);var dM=function(z){this.JSC$19325_worker_=z.worker||null;this.JSC$19325_streamBinaryChunks_=z.streamBinaryChunks||!1;this.JSC$19325_credentialsMode_=void 0};
_.Gs(dM,_.lQt);dM.prototype.createInstance=function(){var z=new oZ(this.JSC$19325_worker_,this.JSC$19325_streamBinaryChunks_);this.JSC$19325_credentialsMode_&&z.setCredentialsMode(this.JSC$19325_credentialsMode_);return z};
dM.prototype.setCredentialsMode=function(z){this.JSC$19325_credentialsMode_=z};
var oZ=function(z,l){_.oW.call(this);this.JSC$19329_worker_=z;this.JSC$19329_streamBinaryChunks_=l;this.JSC$19329_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19329_responseHeaders_=null;this.JSC$19329_method_="GET";this.JSC$19329_url_="";this.inProgress_=!1;this.JSC$19329_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Gs(oZ,_.oW);oZ.prototype.open=function(z,l){if(this.readyState!=0)throw this.abort(),Error("bk");this.JSC$19329_method_=z;this.JSC$19329_url_=l;this.readyState=1;PO(this)};
oZ.prototype.send=function(z){if(this.readyState!=1)throw this.abort(),Error("ck");if(this.abortController_.signal.aborted)throw this.abort(),Error("dk");this.inProgress_=!0;var l={headers:this.requestHeaders_,method:this.JSC$19329_method_,credentials:this.JSC$19329_credentialsMode_,cache:void 0,signal:this.abortController_.signal};z&&(l.body=z);(this.JSC$19329_worker_||_.v7).fetch(new Request(this.JSC$19329_url_,l)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
oZ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,h2(this));this.readyState=0};
oZ.prototype.handleResponse_=function(z){if(this.inProgress_&&(this.fetchResponse_=z,this.JSC$19329_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19329_responseHeaders_=z.headers,this.readyState=2,PO(this)),this.inProgress_&&(this.readyState=3,PO(this),this.inProgress_)))if(this.responseType==="arraybuffer")z.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.v7.ReadableStream!==
"undefined"&&"body"in z){this.currentReader_=z.body.getReader();if(this.JSC$19329_streamBinaryChunks_){if(this.responseType)throw Error("ek");this.response=[]}else this.response=this.responseText="",this.JSC$19329_textDecoder_=new TextDecoder;NOS(this)}else z.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var NOS=function(z){z.currentReader_.read().then(z.handleDataFromStream_.bind(z)).catch(z.handleSendFailure_.bind(z))};
oZ.prototype.handleDataFromStream_=function(z){if(this.inProgress_){if(this.JSC$19329_streamBinaryChunks_&&z.value)this.response.push(z.value);else if(!this.JSC$19329_streamBinaryChunks_){var l=z.value?z.value:new Uint8Array(0);if(l=this.JSC$19329_textDecoder_.decode(l,{stream:!z.done}))this.response=this.responseText+=l}z.done?h2(this):PO(this);this.readyState==3&&NOS(this)}};
oZ.prototype.handleResponseText_=function(z){this.inProgress_&&(this.response=this.responseText=z,h2(this))};
oZ.prototype.handleResponseArrayBuffer_=function(z){this.inProgress_&&(this.response=z,h2(this))};
oZ.prototype.handleSendFailure_=function(){this.inProgress_&&h2(this)};
var h2=function(z){z.readyState=4;z.fetchResponse_=null;z.currentReader_=null;z.JSC$19329_textDecoder_=null;PO(z)};
oZ.prototype.setRequestHeader=function(z,l){this.requestHeaders_.append(z,l)};
oZ.prototype.getResponseHeader=function(z){return this.JSC$19329_responseHeaders_?this.JSC$19329_responseHeaders_.get(z.toLowerCase())||"":""};
oZ.prototype.getAllResponseHeaders=function(){if(!this.JSC$19329_responseHeaders_)return"";for(var z=[],l=this.JSC$19329_responseHeaders_.entries(),I=l.next();!I.done;)I=I.value,z.push(I[0]+": "+I[1]),I=l.next();return z.join("\r\n")};
oZ.prototype.setCredentialsMode=function(z){this.JSC$19329_credentialsMode_=z};
var PO=function(z){z.onreadystatechange&&z.onreadystatechange.call(z)};
Object.defineProperty(oZ.prototype,"withCredentials",{get:function(){return this.JSC$19329_credentialsMode_==="include"},
set:function(z){this.setCredentialsMode(z?"include":"same-origin")}});var E9c=function(z){var l="";_.h7.forEach(z,function(I,b){l+=b;l+=":";l+=I;l+="\r\n"});
return l},uSl=function(z,l,I){if(_.h7.isEmpty(I))return z;
I=E9c(I);if(typeof z==="string")return _.IW(z,_.LP(l),I);_.V9(z,l,I);return z};var Zd4=function(){this.isInputValid_=!0;this.JSC$19334_streamPos_=0;this.leftoverInput_=""};
Zd4.prototype.isInputValid=function(){return this.isInputValid_};
Zd4.prototype.decode=function(z){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("fk`"+this.JSC$19334_streamPos_+"`stream already broken`"+z);this.leftoverInput_+=z;z=Math.floor(this.leftoverInput_.length/4);if(z==0)return null;try{var l=_.aT5(this.leftoverInput_.slice(0,z*4))}catch(I){throw l=this.leftoverInput_,z=I.message,this.isInputValid_=!1,Error("fk`"+this.JSC$19334_streamPos_+"`"+z+"`"+l);}this.JSC$19334_streamPos_+=z*4;this.leftoverInput_=this.leftoverInput_.slice(z*4);return l};var Gt=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19337_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Gt.prototype.isInputValid=function(){return this.state_!=3};
var so=function(z,l,I,b){z.state_=3;z.errorMessage_="The stream is broken @"+z.JSC$19337_streamPos_+"/"+I+". Error: "+b+". With input:\n"+l;throw Error(z.errorMessage_);};
Gt.prototype.acceptsBinaryInput=function(){return!0};
Gt.prototype.parse=function(z){function l(G){G&128&&so(M,x,g,"invalid tag");(G&7)!=2&&so(M,x,g,"invalid wire type");M.tag_=G>>>3;M.tag_!=1&&M.tag_!=2&&M.tag_!=15&&so(M,x,g,"unexpected tag");M.state_=1;M.length_=0;M.countLengthBytes_=0}
function I(G){M.countLengthBytes_++;M.countLengthBytes_==5&&G&240&&so(M,x,g,"message length too long");M.length_|=(G&127)<<(M.countLengthBytes_-1)*7;G&128||(M.state_=2,M.countMessageBytes_=0,typeof Uint8Array!=="undefined"?M.messageBuffer_=new Uint8Array(M.length_):M.messageBuffer_=Array(M.length_),M.length_==0&&v())}
function b(G){M.messageBuffer_[M.countMessageBytes_++]=G;M.countMessageBytes_==M.length_&&v()}
function v(){if(M.tag_<15){var G={};G[M.tag_]=M.messageBuffer_;M.result_.push(G)}M.state_=0}
for(var M=this,x=z instanceof Array?z:new Uint8Array(z),g=0;g<x.length;){switch(M.state_){case 3:so(M,x,g,"stream already broken");break;case 0:l(x[g]);break;case 1:I(x[g]);break;case 2:b(x[g]);break;default:throw Error("gk`"+M.state_);}M.JSC$19337_streamPos_++;g++}z=M.result_;M.result_=[];return z.length>0?z:null};var moC=function(){this.errorMessage_=null;this.JSC$19340_streamPos_=0;this.base64Decoder_=new Zd4;this.pbParser_=new Gt};
moC.prototype.isInputValid=function(){return this.errorMessage_===null};
var HdK=function(z,l,I){z.errorMessage_="The stream is broken @"+z.JSC$19340_streamPos_+". Error: "+I+". With input:\n"+l;throw Error(z.errorMessage_);};
moC.prototype.acceptsBinaryInput=function(){return!1};
moC.prototype.parse=function(z){this.errorMessage_!==null&&HdK(this,z,"stream already broken");var l=null;try{var I=this.base64Decoder_.decode(z);l=I===null?null:this.pbParser_.parse(I)}catch(b){HdK(this,z,b.message)}this.JSC$19340_streamPos_+=z.length;return l};var RW4=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19343_streamPos_=0;this.result_=[];this.statusParsed_=!1};
RW4.prototype.isInputValid=function(){return this.errorMessage_===null};
RW4.prototype.acceptsBinaryInput=function(){return!1};
RW4.prototype.parse=function(z){function l(G){M.state_=6;M.errorMessage_="The stream is broken @"+M.JSC$19343_streamPos_+"/"+x+". Error: "+G+". With input:\n";throw Error(M.errorMessage_);}
function I(){M.jsonStreamParser_=new _.Bo({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function b(G){if(G)for(var u=0;u<G.length;u++){var Z={};Z[1]=G[u];M.result_.push(Z)}}
function v(G){if(G){(M.statusParsed_||G.length>1)&&l("extra status: "+G);M.statusParsed_=!0;var u={};u[2]=G[0];M.result_.push(u)}}
for(var M=this,x=0;x<z.length;){var g;if(g=M.state_!==2){a:{for(;x<z.length;){if(!_.ti(z[x])){g=!0;break a}x++;M.JSC$19343_streamPos_++}g=!1}g=!g}if(g)return null;switch(M.state_){case 6:l("stream already broken");break;case 0:z[x]==="["?(M.state_=1,x++,M.JSC$19343_streamPos_++):l("unexpected input token");break;case 1:z[x]==="["?(M.state_=2,I()):z[x]===","||z.slice(x,x+5)=="null,"?M.state_=3:z[x]==="]"?(M.state_=5,x++,M.JSC$19343_streamPos_++):l("unexpected input token");break;case 2:g=M.jsonStreamParser_.parse(z.substring(x));
b(g);M.jsonStreamParser_.done()?(M.state_=3,g=M.jsonStreamParser_.JSC$11485_buffer_,M.JSC$19343_streamPos_+=z.length-x-g.length,z=g,x=0):(M.JSC$19343_streamPos_+=z.length-x,x=z.length);break;case 3:z[x]===","||z.slice(x,x+5)=="null,"?(M.state_=4,I(),M.jsonStreamParser_.parse("["),x+=z[x]===","?1:5,M.JSC$19343_streamPos_++):z[x]==="]"&&(M.state_=5,x++,M.JSC$19343_streamPos_++);break;case 4:g=M.jsonStreamParser_.parse(z.substring(x));v(g);M.jsonStreamParser_.done()?(M.state_=5,g=M.jsonStreamParser_.JSC$11485_buffer_,
M.JSC$19343_streamPos_+=z.length-x-g.length,z=g,x=0):(M.JSC$19343_streamPos_+=z.length-x,x=z.length);break;case 5:l("extra input after stream end")}}return M.result_.length>0?(z=M.result_,M.result_=[],z):null};var yzc=function(z){this.JSC$19346_xhr_=z;this.JSC$19346_parser_=null;this.status_=this.JSC$19346_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19346_textDecoder_=null;this.JSC$19346_eventHandler_=new _.GR(this);this.JSC$19346_eventHandler_.listen(this.JSC$19346_xhr_,"readystatechange",this.JSC$19348_readyStateChangeHandler_)},rM=function(z,l){z.status_!=l&&(z.status_=l,z.statusHandler_&&z.statusHandler_())},$_=function(z){z.JSC$19346_eventHandler_.removeAll();
if(z.JSC$19346_xhr_){var l=z.JSC$19346_xhr_;z.JSC$19346_xhr_=null;l.abort();l.dispose()}};
yzc.prototype.getStatus=function(){return this.status_};
yzc.prototype.JSC$19348_readyStateChangeHandler_=function(z){z=z.target;try{if(z==this.JSC$19346_xhr_)a:{var l=_.Wn(this.JSC$19346_xhr_),I=this.JSC$19346_xhr_.JSC$9797_lastErrorCode_,b=this.JSC$19346_xhr_.getStatus(),v=this.JSC$19346_xhr_.getResponseText();z=[];if(this.JSC$19346_xhr_.getResponse()instanceof Array){var M=this.JSC$19346_xhr_.getResponse();M.length>0&&M[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,z=M)}if(!(l<3||l==3&&!v&&z.length==0))if(b=b==200||b==206,l==4&&(I==8?rM(this,
7):I==7?rM(this,8):b||rM(this,3)),this.JSC$19346_parser_||(this.JSC$19346_parser_=KaS(this.JSC$19346_xhr_),this.JSC$19346_parser_==null&&rM(this,5)),this.status_>2)$_(this);else{if(z.length>this.JSC$19346_pos_){var x=z.length;I=[];try{if(this.JSC$19346_parser_.acceptsBinaryInput())for(var g=0;g<x;g++){var G=this.JSC$19346_parser_.parse(Array.from(z[g]));G&&(I=I.concat(G))}else{G="";if(!this.JSC$19346_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("hk");this.JSC$19346_textDecoder_=new TextDecoder}for(g=
0;g<x;g++)G+=this.JSC$19346_textDecoder_.decode(z[g],{stream:l==4&&g==x-1});I=this.JSC$19346_parser_.parse(G)}z.splice(0,x);I&&this.dataHandler_(I)}catch(Z){rM(this,5);$_(this);break a}}else if(v.length>this.JSC$19346_pos_){g=v.slice(this.JSC$19346_pos_);this.JSC$19346_pos_=v.length;try{var u=this.JSC$19346_parser_.parse(g);u!=null&&this.dataHandler_&&this.dataHandler_(u)}catch(Z){rM(this,5);$_(this);break a}}l==4?(v.length!=0||this.hasStreamingResponseData_?rM(this,2):rM(this,4),$_(this)):rM(this,
1)}}}catch(Z){rM(this,6),$_(this)}};var fIl=function(z){z=this.xhrReader_=z;var l=(0,_.YN)(this.onData_,this);z.dataHandler_=l;z=this.xhrReader_;l=(0,_.YN)(this.onStatusChange_,this);z.statusHandler_=l;this.JSC$19350_callbackMap_={};this.callbackOnceMap_={}};
_.p=fIl.prototype;_.p.on=function(z,l){var I=this.JSC$19350_callbackMap_[z];I||(I=[],this.JSC$19350_callbackMap_[z]=I);I.push(l);return this};
_.p.addListener=function(z,l){this.on(z,l);return this};
_.p.removeListener=function(z,l){var I=this.JSC$19350_callbackMap_[z];I&&_.$5(I,l);(z=this.callbackOnceMap_[z])&&_.$5(z,l);return this};
_.p.once=function(z,l){var I=this.callbackOnceMap_[z];I||(I=[],this.callbackOnceMap_[z]=I);I.push(l);return this};
_.p.onData_=function(z){var l=this.JSC$19350_callbackMap_.data;l&&CT8(z,l);(l=this.callbackOnceMap_.data)&&CT8(z,l);this.callbackOnceMap_.data=[]};
var CT8=function(z,l){for(var I={},b=0;b<z.length;I={message$jscomp$1005:void 0},b++)I.message$jscomp$1005=z[b],l.forEach(function(v){return function(M){try{M(v.message$jscomp$1005)}catch(x){}}}(I))};
fIl.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:kLC(this,"readable");break;case 5:case 6:case 4:case 7:case 3:kLC(this,"error");break;case 8:kLC(this,"close");break;case 2:kLC(this,"end")}};
var kLC=function(z,l){var I=z.JSC$19350_callbackMap_[l];I&&I.forEach(function(b){try{b()}catch(v){}});
(I=z.callbackOnceMap_[l])&&I.forEach(function(b){b()});
z.callbackOnceMap_[l]=[]};var Ro0=function(){var z={format:"jspb"};z=z===void 0?{}:z;this.suppressCorsPreflight=z.suppressCorsPreflight||_.W8("suppressCorsPreflight",z)||!1;this.withCredentials=z.withCredentials||_.W8("withCredentials",z)||!1;this.streamInterceptors=z.streamInterceptors||[];this.unaryInterceptors=z.unaryInterceptors||[];this.workerScope=z.workerScope;this.chunkedServerStreaming=z.useFetchDownloadStreams||!1},ti0=function(z,l,I,b,v,M){M=M===void 0?{}:M;
var x=l.substring(0,l.length-v.name.length),g,G=(g=M)==null?void 0:g.signal;return mgq(function(u){return new Promise(function(Z,H){if(G==null?0:G.aborted){var y=new _.ei(1,"Aborted");y.cause=G.reason;H(y)}else{var f={},R=KJK(z,u,x);R.on("error",function(F){return void H(F)});
R.on("metadata",function(F){f=F});
R.on("data",function(F){var Y=f;Y=Y===void 0?{}:Y;Z(new P2l(F,Y))});
G&&G.addEventListener("abort",function(){R.cancel();var F=new _.ei(1,"Aborted");F.cause=G.reason;H(F)})}})},z.unaryInterceptors).call(z,h3s(v,I,b)).then(function(u){return u.responseMessage})},eJ=function(z,l,I,b,v,M){M=M===void 0?{}:M;
return ti0(z,l,I,b,v,M)};
Ro0.prototype.serverStreaming=function(z,l,I,b){var v=this,M=z.substring(0,z.length-b.name.length);return BO4(function(x){var g=x.methodDescriptor,G=x.getMetadata(),u=XnC(v,!1);G=qbC(v,G,u,M+g.getName());var Z=idl(u,g.responseDeserializeFn,!0);x=g.requestSerializeFn(x.requestMessage);u.send(G,"POST",x);return Z},this.streamInterceptors).call(this,h3s(b,l,I))};
var KJK=function(z,l,I){var b=l.methodDescriptor,v=l.getMetadata(),M=XnC(z,!0);z=qbC(z,v,M,I+b.getName());I=idl(M,b.responseDeserializeFn,!1);GLl(I,v["X-Goog-Encode-Response-If-Executable"]==="base64");l=b.requestSerializeFn(l.requestMessage);M.send(z,"POST",l);return I},XnC=function(z,l){l=z.chunkedServerStreaming&&!l;
return z.workerScope||l?new _.Az(new dM({worker:z.workerScope,streamBinaryChunks:l})):new _.Az},qbC=function(z,l,I,b){l["Content-Type"]="application/json+protobuf";
l["X-User-Agent"]="grpc-web-javascript/0.1";var v=l.Authorization;if(v&&IIc.has(v.split(" ")[0])||z.withCredentials)I.JSC$9797_withCredentials_=!0;if(z.suppressCorsPreflight)b=uSl(b,"$httpHeaders",l);else for(z=_.D(Object.keys(l)),v=z.next();!v.done;v=z.next())v=v.value,I.headers.set(v,l[v]);return b},idl=function(z,l,I){if(I){I=new yzc(z);
var b=new fIl(I)}return new T7({xhr:z,nodeReadableStream:b},l)},BO4=function(z,l){return l.reduce(function(I,b){return function(v){return b.intercept(v,I)}},z)},mgq=function(z,l){return l.reduce(function(I,b){return function(v){return b.intercept(v,I)}},z)};var FJ8=function(z){this.client_=new Ro0;this.hostname_=z==void 0?z:z.replace(/\/+$/,"")};
_.p=FJ8.prototype;_.p.JSC$19368_depositGoogleCredential=function(z,l,I){return eJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",z,l||{},e34,I)};
_.p.deleteLink=function(z,l,I){return eJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",z,l||{},r5K,I)};
_.p.JSC$19368_finishOAuth=function(z,l,I){return eJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",z,l||{},A5K,I)};
_.p.getLink=function(z,l,I){return eJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",z,l||{},WTq,I)};
_.p.startLinkingSession=function(z,l,I){return eJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",z,l||{},lIc,I)};var QW1=[0,_.b2,1,asX,[0,_.Db,[0,_.Mi,-1]],[0,U5X],[0,_.gy,-1]];var YbS=function(){this.storage=new Map},czK=function(z,l,I,b,v){if(!z.storage.has(l))return null;
z=_.D(z.storage.get(l));for(l=z.next();!l.done;l=z.next())if(l=l.value,!v||l.linkName===v)if(I&&l.scopes&&TO8(l.scopes,I)||b&&l.capabilities&&TO8(l.capabilities,b))return l;return null},SbF=function(z,l,I){if(!I)z.storage.delete(l);
else if(z.storage.has(l)){var b=z.storage.get(l).filter(function(v){return v.linkName!==I});
b.length>0?z.storage.set(l,b):z.storage.delete(l)}},TO8=function(z,l){l=_.D(l);
for(var I=l.next();!I.done;I=l.next())if(!z.has(I.value))return!1;return!0};var dg8=function(){var z=_.sZ("LINK_GAL_DOMAIN");this.alsDomain1p=_.sZ("LINK_GAL_DOMAIN");this.alsDomain3p=z;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},o9s=function(z,l){z.apiKey=l;
return z};
dg8.prototype.build=function(){var z={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("ik");z.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("jk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("kk");z.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(z.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)z.apiKey=
this.apiKey,z.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("lk");z.oauthToken=this.oauthToken;z.alsDomain=this.alsDomain3p}z.clientXd3=this.clientXd3;z.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(z.authUser=this.authUser);this.bucket!==void 0&&(z.bucket=this.bucket);this.completionUrl!==void 0&&(z.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(z.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(z.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(z.locale=this.locale);z.loggerType=this.loggerType;z.clientEnvironment=this.clientEnvironment;z.colorScheme=this.colorScheme;z.showCloseOption=this.showCloseOption;return z};var NI=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(NI,_.Da);var PTK=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(PTK,_.Da);var hoc=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(hoc,_.Da);var uw=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(uw,_.Da);var sWc=function(z){return _.Px(z,1)};var rz8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(rz8,_.Da);var QD0=_.kR(rz8),Et=[1,2,3,4,5];var XFl=function(z){try{return QD0(z)}catch(l){return null}},$gC=function(){},qr8=function(z,l){switch(_.Fl(l,Et)){case 4:return(l=_.rG(l,hoc,4,Et))&&z.logStateTransition(_.Px(l,1)),!0;
case 5:return(l=_.rG(l,PTK,5,Et))&&z.logInternalEvent(_.Px(l,1)),!0}return!1},Yr4=function(z){switch(z){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Ap(z)}};var tbX=function(z,l){var I=this;this.validator=z;this.messageListener=l;this.dismissCallback=function(){eoF(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19397_receiveMessage=function(b){b.type==="message"&&(b=b.event_,b!==null&&(new URL(I.iframe.src)).origin===b.origin&&I.validator(b.data,b.origin)&&!I.messageListener(b.data)&&(I.JSC$19397_resolveCb!==void 0&&I.JSC$19397_resolveCb(b.data),wnS(I)))}},Fa1=function(z,l,I){z.uiHandler!==void 0&&eoF(z,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(b,v){z.JSC$19397_resolveCb=b;z.JSC$19397_rejectCb=v;z.iframe=document.createElement("iframe");_.JT(z.iframe,l);z.uiHandler=I.displayContent(z.iframe,z.dismissCallback);_.dZ(window,"message",z.JSC$19397_receiveMessage,!1,z)})},eoF=function(z,l){z.JSC$19397_rejectCb!==void 0&&z.JSC$19397_rejectCb(l);
wnS(z)},wnS=function(z){z.uiHandler!==void 0&&z.uiHandler.hideContent();
_.dO(window,"message",z.JSC$19397_receiveMessage,!1,z);z.JSC$19397_resolveCb=void 0;z.JSC$19397_rejectCb=void 0;z.uiHandler=void 0;z.iframe=void 0};var Az0=function(z){if(z===2){var l;z=((l=window)==null?0:l.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return z},irW=function(z){z=Az0(z);
switch(z){case 0:return"light";case 1:return"dark";default:_.Ap(z)}};var BDs=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),WJ0=function(z,l){this.JSC$19409_linkingSession=z;this.noticeConfig=l;this.displayInfoMap=new Map;var I=new Map;if(_.Bx(this.JSC$19409_linkingSession,Ui8,7))for(z=_.gi(this.JSC$19409_linkingSession,Ui8,7),z=_.OA(z,LTc,1,_.g1()),z=_.D(z),l=z.next();!l.done;l=z.next())l=l.value,I.set(_.Px(l,1),_.ZG7(_.gi(l,_.lBf,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){l=this.noticeConfig.enabledDataUsageNoticeUis;z=l.has(0)?I.get(1):void 0;l=l.has(1)?I.get(2):void 0;I=z!==void 0&&l!==void 0?I.get(3):void 0;var b=this.noticeConfig.nestedOrigins;var v=new rz8;var M=new NI;v=_.Xr(v,2,Et,M);M=new rz8;var x=new NI;M=_.Xr(M,3,Et,x);x=[];z!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:z,lastEvent:v,nestedOrigins:b}]),x.push({trustedUrl:z,lastEvent:v,nestedOrigins:b}));l!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:l,lastEvent:M,nestedOrigins:b}]),x.push({trustedUrl:l,lastEvent:M,nestedOrigins:b}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:M,nestedOrigins:b}]):this.displayInfoMap.set(3,x)}};var n98=function(z){var l=new YbS;this.galService=z;this.galCache=l};
n98.prototype.getLink=function(z){var l=z.serviceId;var I=z.scopes;var b=z.capabilities;var v=z.linkName;var M=this,x;return _.O(function(g){if(b!==void 0&&I!==void 0)throw Error("mk");x=czK(M.galCache,l,I,b,v);return x!==null?g.return(x):g.return(M.galService.getLink({serviceId:l,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:b,linkName:v}).then(function(G){G=oWS(G);var u=M.galCache;u.storage.has(l)?u.storage.get(l).push(G):u.storage.set(l,[G]);return G}))})};
n98.prototype.deleteLink=function(z,l,I){var b=this;return _.O(function(v){SbF(b.galCache,z,I);return v.return(b.galService.deleteLink({serviceId:z,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:l,linkName:I}).then(function(){return!0}))})};var UgS=function(z,l){var I=this;this.validator=z;this.msgHandler=l;this.closedPopupTimeout=this.JSC$19431_rejectCb=this.JSC$19431_resolveCb=this.popup=null;this.JSC$19431_receiveMessage=function(b){if(b!==null&&(b=b.event_,b.source===I.popup)){var v=b.data;if(I.validator(v,b.origin)){var M;(M=I.msgHandler)!=null&&M.call(I,v)||(I.JSC$19431_resolveCb!==null&&I.JSC$19431_resolveCb(v),LJ1(I))}}}};
UgS.prototype.open=function(z,l){var I=this;this.popup!==null&&aIX(this);return new Promise(function(b,v){I.JSC$19431_resolveCb=b;I.JSC$19431_rejectCb=v;I.popup=_.zg(window,z,"",l);_.dZ(window,"message",I.JSC$19431_receiveMessage,!1,I);Vic(I)})};
var aIX=function(z,l){z.JSC$19431_rejectCb!==null&&z.JSC$19431_rejectCb(l);LJ1(z)},LJ1=function(z){z.closedPopupTimeout&&(z.closedPopupTimeout.cancel(),z.closedPopupTimeout=null);
z.popup&&z.popup.close();_.dO(window,"message",z.JSC$19431_receiveMessage,!1,z);z.popup=null;z.JSC$19431_resolveCb=null;z.JSC$19431_rejectCb=null},Vic=function(z){z.closedPopupTimeout=_.QxI(100).then(function(){z.popup?z.popup.closed?jW0(z):Vic(z):aIX(z,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},jW0=function(z){z.closedPopupTimeout=_.QxI(100).then(function(){aIX(z,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var JzC=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),zNc=function(z,l,I,b,v,M,x,g,G,u){var Z=this;this.serviceId=z;this.sessionId=l;this.galService=I;this.oauthDetails=b;this.galLogger=v;this.interactionMode=M;this.redirectServiceUrl=x;this.consentLanguageKeys=g;this.dynamicUrlParameters=G;this.partnerConfigMinReadTimestamp=u;this.started=!1;this.JSC$19437_dataValidator=function(H,
y){var f=JzC.has(y);f||Z.redirectServiceUrl===void 0||(f=Z.redirectServiceUrl===y);return f?H.sentinel==="gdi":!1}};
zNc.prototype.complete=function(){var z=this,l;return _.O(function(I){if(z.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));l=Hv.getRedirectStateFromUri();return l===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(l9K(z,l))})};
zNc.prototype.start=function(){var z=this,l;return _.O(function(I){if(z.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.oX(z.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(z.interactionMode===1)return Hv.setLocation(_.oX(z.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));z.started=!0;z.galLogger.logStateTransition(5);
l=Hv.getPostMessagePopup(z.JSC$19437_dataValidator);return I.return(l.open(_.oX(z.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(b){z.started=!1;var v=z.galLogger;if((b==null?void 0:b.error)!==void 0)throw v.logInternalEvent(59),Error("nk");if((b==null?void 0:b.redirect_state)===void 0)throw v.logInternalEvent(131),Error("ok");return l9K(z,b.redirect_state)}).catch(function(b){z.started=
!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var l9K=function(z,l){return _.O(function(I){return I.return(I9S(z.galService,{serviceId:z.serviceId,sessionId:z.sessionId,dynamicUrlParameters:z.dynamicUrlParameters,redirectState:l,consentLanguageKeys:z.consentLanguageKeys,partnerConfigMinReadTimestamp:z.partnerConfigMinReadTimestamp}).then(function(b){var v={statusCode:1,link:oWS(b.getLink())};KYK(_.q5(b,3))!==void 0&&(v.callerState=KYK(_.q5(b,3)));z.galLogger.logInternalEvent(134);return v}))})},Hv={getPostMessagePopup:function(z){return new UgS(z)},
getRedirectStateFromUri:function(){var z=_.UA(Hv.getLocation()).fragment_;return(new _.Rl(z)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(z){_.EdG(window.location,_.eA(z))},
createOAuthFlow:function(z,l){return new zNc(z.serviceId,z.sessionId,z.galService,l,z.galLogger,z.interactionMode,z.redirectServiceUrl,z.consentLanguageKeys,z.dynamicUrlParameters,z.partnerConfigMinReadTimestamp)}};var bmq=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(bmq,_.Da);var vZ1=_.kR(bmq);var M7l=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),pH4=function(z,l,I,b,v,M,x,g,G){var u=this;this.serviceId=z;this.sessionId=l;this.galService=I;this.gsiWebFlowDetails=b;this.colorScheme=v;this.showCloseOption=M;this.galLogger=x;this.interactionMode=g;this.redirectServiceUrl=G;this.started=!1;this.JSC$19449_dataValidator=function(Z,H){var y=M7l.has(H);y||u.redirectServiceUrl===
void 0||(y=u.redirectServiceUrl===H);return y?Z.sentinel==="gal":!1};
this.logEventProcessor=function(Z){return Z.result?(Z=XFl(Z.result))?qr8(u.galLogger,Z):!1:!1}};
pH4.prototype.complete=function(){var z=this,l,I;return _.O(function(b){if(z.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));l=yv.getRedirectStateFromUri();if(l===void 0)return z.galLogger.JSC$19389_logErrorEvent(131),b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=DRX(z,l),b.return(xR0(z,I))}catch(v){return b.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
pH4.prototype.start=function(){var z=this,l;return _.O(function(I){if(z.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.oX(z.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(z.interactionMode===1)return yv.setLocation(OmS(z,_.oX(z.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
z.started=!0;l=yv.getPostMessagePopup(z.JSC$19449_dataValidator,z.logEventProcessor);return I.return(l.open(OmS(z,_.oX(z.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(b){z.started=!1;if((b==null?void 0:b.result)===void 0)throw z.galLogger.JSC$19389_logErrorEvent(131),Error("ok");b=DRX(z,b.result);return xR0(z,b)}).catch(function(b){z.started=!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var OmS=function(z,l){z=["result_channel",z.interactionMode===1?"2":"1","color_scheme",irW(z.colorScheme),"show_close_option",z.showCloseOption];return z3l(l,z)},xR0=function(z,l){if(l!==null&&_.Bx(l,uw,2)){var I,b=l==null?void 0:(I=_.gi(l,uw,2))==null?void 0:_.Px(I,2);
b&&z.galLogger.JSC$19389_logErrorEvent(Yr4(b));return sWc(_.gi(l,uw,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 z.galService.getLink({serviceId:z.serviceId,sessionId:z.sessionId,consistencyKey:_.oX(l,1)}).then(function(v){v=oWS(v);z.galLogger.logInternalEvent(134);return{statusCode:1,link:v}})},DRX=function(z,l){l=vZ1(l);
if(!_.Bx(l,uw,2)&&_.oX(l,1)==="")throw z.galLogger.JSC$19389_logErrorEvent(5),Error("pk");return l},yv={getPostMessagePopup:function(z,l){return new UgS(z,l)},
getRedirectStateFromUri:function(){return _.aQ(_.UA(yv.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(z){_.EdG(window.location,_.eA(z))},
createStreamlinedFlow:function(z,l){return new pH4(z.serviceId,z.sessionId,z.galService,l,z.colorScheme,z.showCloseOption,z.galLogger,z.interactionMode,z.redirectServiceUrl)}};var jDS=function(){var z=_.TgG("GAL");this.storage=z?new _.Fm(z):null};
jDS.prototype.getSession=function(z){if(this.storage!==null)try{var l=this.storage.get("SAVED_SESSION");if(l===void 0)return null;if(l.serviceId===z)return l}catch(I){}return null};var wM=function(){};
_.m(wM,$gC);wM.prototype.logStateTransition=function(){};
wM.prototype.logInternalEvent=function(){};
wM.prototype.JSC$19389_logErrorEvent=function(){};var gZ4=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(gZ4,_.Da);gZ4.prototype.getCompletionUrl=function(){return _.oX(this,15)};var A2=function(z,l,I,b,v,M){this.serviceId=z;this.environment=l;this.sessionId=I;this.colorSchemeSelected=b;this.colorThemeDisplayed=v;this.JSC$19462_transport=M;this.currentState=1};
_.m(A2,$gC);A2.prototype.logStateTransition=function(z){var l=Gpc(this);l=_.G6(l,3,this.currentState);l=_.G6(l,1,z);this.currentState=z;z=DNF(1);this.dispatch(l,z)};
A2.prototype.logInternalEvent=function(z){z=DNF(z);this.dispatch(Gpc(this),z)};
A2.prototype.JSC$19389_logErrorEvent=function(z){var l=Gpc(this);l=_.G6(l,1,10);z=DNF(z);this.dispatch(l,z)};
var Gpc=function(z){var l=new gZ4;l=_.G6(l,1,z.currentState);l=_.Th(l,7,z.serviceId);var I,b;var v=((I=window)==null?0:(b=I.location)==null?0:b.href)?_.UA(window.location.href).JSC$10032_domain_:"NO_PACKAGE_NAME";I=_.Th(l,8,v);I=_.G6(I,6,z.environment);I=_.Th(I,5,"100");I=_.G6(I,11,z.colorSchemeSelected);return _.G6(I,12,z.colorThemeDisplayed)};
A2.prototype.dispatch=function(z,l){l===void 0&&(l=new _.tz);var I=l;z=z.serialize();I=_.Th(I,8,z);_.BW(I,12,this.sessionId);this.JSC$19462_transport.dispatch(l)};var NTl=function(z,l){this.loggerType=z;this.sessionIndex=l!=null?l:0},EZs;
NTl.prototype.create=function(z,l,I,b,v){switch(this.loggerType){case 0:return new wM;case 1:return EZs||(EZs=(new _.C0(555,this.sessionIndex.toString())).build()),new A2(z,l,I,b,v,EZs);default:_.Ap(this.loggerType,"unknown logger type")}};var fS=[6,2,3,1],vEq=new Map([[4,1],[1,6],[2,2],[3,3]]),rY4={statusCode:7,statusMessage:"Failed to create flow object"},ak4=function(z,l,I,b,v,M,x,g,G,u){this.serviceId=z;this.sessionId=l;this.config=I;this.galService=b;this.JSC$19469_linkingSession=v;this.googleScopes=M;this.callerState=x;this.consentLanguageKeys=g;this.dynamicUrlParameters=G;this.partnerConfigMinReadTimestamp=u;this.currentFlow=0;b=this.JSC$19469_linkingSession;v=new Set;_.Bx(b,Wa8,1)&&v.add(1);_.Bx(b,V1W,2)&&_.Bx(b,nWS,6)&&v.add(2);
_.Bx(b,ab0,3)&&_.Bx(b,nWS,6)&&v.add(3);_.Bx(b,nAK,4)&&v.add(6);this.supportedFlows=v;b=I.loggerType;v=I.clientEnvironment;a:{M=I.colorScheme;switch(M){case 0:M=1;break a;case 1:M=2;break a;case 2:M=3;break a;default:_.Ap(M)}M=void 0}a:{x=I.colorScheme;x=Az0(x);switch(x){case 0:x=1;break a;case 1:x=2;break a;default:_.Ap(x)}x=void 0}this.galLogger=(new NTl(b,I.authUser)).create(z,v,l,M,x)},Zmq=function(z){return new Promise(function(l){var I,b,v,M,x,g,G,u,Z,H;
return _.O(function(y){switch(y.nextAddress){case 1:I=LaK(z.currentFlow,z.supportedFlows),b=!1,v=new WJ0(z.JSC$19469_linkingSession,z.config.dataUsageNoticeConfig);case 2:if(I===void 0){y.jumpTo(4);break}_.RL(y,5);var f=v,R=I,F=void 0;b?R===1&&(F=f.displayInfoMap.get(2)):R===2||R===3?F=f.displayInfoMap.get(1):R===1&&(F=f.displayInfoMap.get(3));M=F?F:[];x=z.consentLanguageKeys;g=_.D(M);G=g.next();case 7:if(G.done)return z.currentFlow=I,y.yield(eW8(uE8(z,x)),11);u=G.value;return y.yield(TDF(u,z.config.dataUsageNoticeConfig.uiAdapter,
z.config.colorScheme,z.galLogger),10);case 10:Z=y.yieldResult;if(Z.statusCode!==1)return JYc(z.serviceId),z.currentFlow=0,l(Zl({statusCode:Z.statusCode,statusMessage:Z.statusMessage},z.callerState)),y.return();Z.consentLanguageKeys!==void 0&&(x=Z.consentLanguageKeys);G=g.next();y.jumpTo(7);break;case 11:H=y.yieldResult;if(H.statusCode!==10)return H.statusCode!==6&&(JYc(z.serviceId),z.currentFlow=0),H.statusCode!==1&&z.callerState!==void 0&&(H.callerState=z.callerState),l(H),y.return();_.a3(y,6);break;
case 5:_.XP(y);case 6:I=LaK(z.currentFlow,z.supportedFlows);b=!0;y.jumpTo(2);break;case 4:JYc(z.serviceId),z.currentFlow=0,l(Zl({statusCode:12,statusMessage:"Linking failed"},z.callerState)),_.qe(y)}})})},IPS=function(z,l,I){z.currentFlow=l;
return wFX(uE8(z,I)).then(function(b){return b.statusCode===10&&z.config.interactionMode===1&&LaK(z.currentFlow,z.supportedFlows)!==void 0?Zmq(z):b})},uE8=function(z,l){return{flowParams:{serviceId:z.serviceId,
sessionId:z.sessionId,galService:z.galService,galLogger:z.galLogger,interactionMode:z.config.interactionMode,redirectServiceUrl:z.config.redirectServiceUrl,colorScheme:z.config.colorScheme,consentLanguageKeys:l,dynamicUrlParameters:z.dynamicUrlParameters,showCloseOption:z.config.showCloseOption,partnerConfigMinReadTimestamp:z.partnerConfigMinReadTimestamp},currentFlow:z.currentFlow,config:z.config,session:z.JSC$19469_linkingSession,googleScopes:z.googleScopes,callerState:z.callerState}};var pyl=function(z,l){this.config=z;this.galService=l.getService();this.JSC$19482_galRepository=l.JSC$19500_galRepository};
pyl.prototype.getLink=function(z,l){return Hm0(this,z,l)};
var Hm0=function(z,l,I){return z.JSC$19482_galRepository.getLink({serviceId:l,scopes:void 0,capabilities:void 0,linkName:I}).then(function(b){return{statusCode:1,link:b}}).catch(function(b){return{statusCode:Mg1(b.code),
statusMessage:b.message}})};
pyl.prototype.deleteLink=function(z,l){return this.JSC$19482_galRepository.deleteLink(z,this.config.accountLinkingEntryPoint,l).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:Mg1(I.code),
statusMessage:I.message}})};
pyl.prototype.startLinkingSession=function(z){var l=z.serviceId;var I=z.sessionId;return Vbq({serviceId:l,sessionId:I!==void 0?I:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:z.loginHint,callerState:z.callerState,consentLanguageKeys:z.consentLanguageKeys,linkName:z.linkName,dynamicUrlParameters:z.dynamicUrlParameters,partnerConfigMinReadTimestamp:z.partnerConfigMinReadTimestamp})};var WO=function(z,l,I,b,v,M,x){this.apiKey=l;this.authUser=I;this.oauthToken=b;this.bucket=v;this.locale=M;this.galSdkEventHandler=x;if(b===void 0){if(l===void 0)throw Error("qk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new FJ8(z)};
WO.prototype.deleteLink=function(z){var l=z.serviceId;var I=z.sessionId;var b=z.accountLinkingEntryPoint;var v=z.linkName;var M=this,x;return _.O(function(g){var G=(new i3).setHeader(M.getHeader(I));var u=yJ0({serviceId:l,linkName:v});G=_.tT(G,2,u);x=_.ey(G,3,b);return g.return(M.makeRequest(M.galServiceClient.deleteLink,x,[1,3],[2,4]))})};
var I9S=function(z,l){var I=l.serviceId;var b=l.sessionId;var v=l.dynamicUrlParameters;var M=l.redirectState;var x=l.consentLanguageKeys;var g=l.partnerConfigMinReadTimestamp;var G;return _.O(function(u){var Z=(new Qt).setHeader(z.getHeader(b,v));Z=_.j2(Z,2,I);G=_.j2(Z,4,M);x!==void 0&&_.j2(G,5,x);g!==void 0&&_.tT(G,6,g);return u.return(z.makeRequest(z.galServiceClient.JSC$19368_finishOAuth,G,[1,3],[2,4]))})};
WO.prototype.getLink=function(z){var l=z.serviceId;var I=z.sessionId;var b=z.scopes;var v=z.capabilities;var M=z.consistencyKey;var x=z.linkName;var g=this,G;return _.O(function(u){var Z=(new Y_).setHeader(g.getHeader(I)),H=yJ0({serviceId:l,scopes:b,capabilities:v,linkName:x});G=_.tT(Z,2,H);M!==void 0&&(Z=c5X(),Z=_.j2(Z,2,M),_.tT(G,3,Z));return u.return(g.makeRequest(g.galServiceClient.getLink,G,[1,3],[2,4]))})};
var AYK=function(z,l){var I=l.serviceId;var b=l.sessionId;var v=l.googleScopes;var M=l.consistencyKey;var x;return _.O(function(g){var G=(new FK).setHeader(z.getHeader(b));G=_.j2(G,2,I);var u=Array.from(v.values());G=_.Jy(G,3,u,_.fl);u=c5X();u=_.j2(u,2,M);x=_.tT(G,4,u);return g.return(z.makeRequest(z.galServiceClient.JSC$19368_depositGoogleCredential,x,[1,3],[2,4]))})};
WO.prototype.startLinkingSession=function(z){var l=z.serviceId;var I=z.sessionId;var b=z.scopes;var v=z.capabilities;var M=z.loginHint;var x=z.supportedFlows;var g=z.completionUrl;var G=z.usePingPong;var u=z.twoWayLinking;var Z=z.accountLinkingEntryPoint;var H=z.callerState;var y=z.consentLanguageKeys;var f=z.googleScopes;var R=z.dataUsageNoticeConfig;var F=z.linkName;var Y=z.dynamicUrlParameters;var c=z.partnerConfigMinReadTimestamp;var d=this,V,A;return _.O(function(W){if(v!==void 0&&b!==void 0)throw Error("mk");
var L=(new zoW).setHeader(d.getHeader(I,Y));V=_.j2(L,2,l);F!==void 0&&_.j2(V,14,F);if(v!==void 0){L=V;var lH=Array.from(v.values());_.Jy(L,5,lH,_.fl)}else b!==void 0&&(L=V,lH=Array.from(b.values()),_.Jy(L,3,lH,_.fl));g!==void 0&&_.j2(V,6,g);G!==void 0&&_.dm(V,15,G);x!==void 0&&(L=V,lH=Array.from(x.values()),_.Jy(L,4,lH,_.zc));if(u!==void 0){if(u&&(!f||f.size===0))throw Error("rk");_.dm(V,8,u)}Z!==void 0&&_.ey(V,9,Z);M!==void 0&&_.j2(V,13,M);H!==void 0&&(L=V,lH=(new TextEncoder).encode(H),_.zT(L,12,
_.iu(lH,!1),_.qz()));y!==void 0&&_.j2(V,16,y);c!==void 0&&_.tT(V,18,c);if(R!==void 0&&R.size>0||f!==void 0&&f.size>0)A=new J5c,f!==void 0&&f.size>0&&(L=A,lH=Array.from(f.values()),_.Jy(L,1,lH,_.fl)),R!==void 0&&(R.has(0)&&_.oSt(A,2,_.zc,1,_.IC),R.has(1)&&_.oSt(A,2,_.zc,2,_.IC)),_.tT(V,17,A);return W.return(d.makeRequest(d.galServiceClient.startLinkingSession,V,[1],[2]))})};
WO.prototype.getMetadata=function(){var z=this,l,I;return _.O(function(b){l={};z.useFpa?(l["X-Goog-Api-Key"]=z.apiKey,l["X-Goog-AuthUser"]=z.authUser!==void 0?z.authUser.toString():"0",(I=_.vCQ([]))&&(l.Authorization=I)):l.Authorization="Bearer "+z.oauthToken;z.locale&&(l["accept-language"]=z.locale);return b.return(l)})};
WO.prototype.makeRequest=function(z,l,I,b){var v=this,M;return _.O(function(x){if(x.nextAddress==1)return x.yield(v.getMetadata(),2);M=x.yieldResult;f9y(v,I);return x.return(z.bind(v.galServiceClient)(l,M).finally(function(){f9y(v,b)}))})};
var f9y=function(z,l){z.galSdkEventHandler!==void 0&&l.forEach(function(I){z.galSdkEventHandler.onEvent(I)})};
WO.prototype.getHeader=function(z,l){var I=new BO;z=_.zT(I,2,_.vX(z),0);z=_.ey(z,5,3);l=_.Jy(z,8,l,_.fl);this.bucket!==void 0&&_.j2(l,1,this.bucket);return l};
var yJ0=function(z){var l=z.serviceId;var I=z.scopes;var b=z.capabilities;z=z.linkName;if(b!==void 0&&I!==void 0)throw Error("mk");var v=new YzK;l=_.j2(v,1,l);b!==void 0?(I=Array.from(b.values()),_.Jy(l,5,I,_.fl)):I!==void 0&&(I=Array.from(I.values()),_.Jy(l,3,I,_.fl));z!==void 0&&_.j2(l,6,z);return l};var DXS=function(z){this.galService=new WO(z.alsDomain,z.apiKey,z.authUser,z.oauthToken,z.bucket,z.locale,z.galSdkEventHandler);this.JSC$19500_galRepository=new n98(this.galService)};
DXS.prototype.getService=function(){return this.galService};var CC1=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(CC1,_.Da);var kpK=function(z){var l=new CC1;return _.G6(l,1,z)};
CC1.prototype.setErrorMessage=function(z){return _.Th(this,2,z)};var RNc=[0,_.Oz,_.vc,_.Oz];var nB=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(nB,_.Da);var mR4=[0,[1,2,3],_.xA,[0,AO1,LxK,-1],_.xA,[0,nxK,-1],_.pN];var K3W=[0,_.l2,1,_.Oz,_.vc,-1,1,_.H$t,_.jy,_.Oz,-1,mR4];var t70=[0,_.Oz,[0,_.H$t,_.jy,[0,_.vc]],_.Iq,[0,_.Oz,-1]];var gM=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(gM,_.Da);var BTl=[0,_.vc,_.Oz,-2,_.l2,_.Oz,_.l2,_.Oz,-2,1,_.Iq];var XH8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(XH8,_.Da);var qh0=[0,_.l2];var im4=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(im4,_.Da);var F3c=[0,_.Oz,t70,qh0,BTl,K3W];var P78=_.yR(im4,F3c);var Ql8=[0,QW1];var wtc=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(wtc,_.Da);var YhK=[0,[1,3],VyW,_.Oz,VyW];var x_=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(x_,_.Da);var TT4=[0,_.Oz];var cJX=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(cJX,_.Da);var Oo=function(z){return _.rG(z,CC1,2,Dm)},ShW=function(z){var l=new cJX;
return _.Xr(l,2,Dm,z)},Dm=[1,
2];var dRs=[0,Dm,_.xA,TT4,_.xA,RNc,_.Db,YhK,1,_.Oz,Ql8];var oZq=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(oZq,_.Da);var hNl=function(z){var l=new oZq;return _.Xr(l,3,PCS,z)},PCS=[2,
3];var LB=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(LB,_.Da);var slS=function(z,l){return _.tT(z,2,l)},rJc=function(z,l){return _.tT(z,8,l)},$Ry=function(z,l){return _.tT(z,3,l)};var eNl=[0,_.Oz,dRs,F3c,_.uT,[0,[5,6,7],[0,_.Oz,-2],[0,_.l2,_.Oz,_.vc],[0,mR4],[0,_.vc,_.Oz,-1,_.Eb,_.Oz],_.xA,[0,[0,_.l2],_.Oz,-1],_.xA,[0,[3,4],_.Oz,-1,_.xA,[0,[0,_.Oz,_.Iq]],_.xA,[0,[0,[0,[1,2],_.xA,[0],_.xA,[0]]]]],_.xA,[0,_.Oz]],_.uT,-1,[0,PCS,_.Oz,_.xA,TT4,_.xA,RNc,_.Db,YhK,[0,QW1]]];var wHC=_.yR(LB,eNl),AJy=_.fD(eNl);var W3X=function(){_.Q9.call(this)};
_.m(W3X,_.Q9);W3X.prototype.init=function(){};
new W3X;var nZq=_.zs(["data-"]),L3K=_.zs(["aria-"]),URX=_.zs(["aria-"]),Uo=function(z,l){this.isLatencyMeasurementExperiment=z===void 0?!1:z;this.enableDialogA11yFix=l===void 0?!1:l;this.JSC$19529_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Jyz(_.v7.location.href)},sF1=function(z,l){z.onConsentPrimitiveShownCallback=l},a94=function(z,l){return z.overriddenIframeLoadTimeout?z.overriddenIframeLoadTimeout:l!==void 0?l:5E3},$a4=function(z){if(z.prewarmPromise!==void 0)return z.prewarmPromise;
z.prewarmPromise=new Promise(function(l,I){aZ(z,1);V70(z,jll(z,!0),JJF(z));z.iframe?z.prewarmChannel||zJc(z,z.iframe,l):I(Error("sk"))});
z.prewarmPromise.finally(function(){z.prewarmPromise=void 0});
return z.prewarmPromise};
Uo.prototype.showPrimitive=function(){var z=this;if(this.consentPromise!==void 0)return this.consentPromise;var l=Date.now();l0q(this,l);this.consentPromise=new Promise(function(I,b){aZ(z,0,l);var v=z.isDarkTheme();z.isLatencyMeasurementExperiment||z.initialLoadingStrategy===1||z.initialLoadingStrategy===2||(z.loadingBar||(z.loadingBar=G98(getComputedStyle(document.body).direction==="rtl",v),z.loadingBar.style.position="fixed",z.loadingBar.style.zIndex="15000"),document.body.appendChild(z.loadingBar));
V70(z,jll(z),JJF(z));z.iframe?z.channel||I0W(z,z.iframe,I,b):(b9S(z),b(Error("sk")))});
this.consentPromise.finally(function(){z.consentPromise=void 0});
return this.consentPromise};
var I0W=function(z,l,I,b){var v,M;_.O(function(x){switch(x.nextAddress){case 1:aZ(z,3);v=!1;setTimeout(function(){if(!v){b9S(z);vIc(z);MG0(z);var g=kpK(7).setErrorMessage("Timeout connecting to iframe");I(rJc(slS(new LB,ShW(g)),hNl(g)))}},a94(z,pGF(z)));
if(!z.prewarmPromise){x.jumpTo(2);break}_.RL(x,3);return x.yield(z.prewarmPromise,5);case 5:_.a3(x,2);break;case 3:_.XP(x),M=kpK(4).setErrorMessage("Error while prewarming."),I(rJc(slS(new LB,ShW(M)),hNl(M)));case 2:z.prewarmChannel&&z.prewarmChannel.send(AJy($Ry(new LB,z.consentPrimitiveRequest))),z.channel=_.Ez({destination:z.JSC$19529_win,iframe:l,origin:Dx0(z),channelName:"cpw",onEstablished:function(){v=!0;b9S(z);z.isLatencyMeasurementExperiment||(z.JSC$19529_previousBodyOverflow=document.body.style.overflow,
z.JSC$19529_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,z.JSC$19529_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",z.enableDialogA11yFix&&window.addEventListener("blur",z.focusChangeListener));var g=z.iframe;g.style.bottom="0";g.style.position="fixed";g.style.right="0";g.style.border="none";g.style.left="0";g.style.top=
"0";g.style.zIndex="5000";g.style.pointerEvents="";g.style.visibility="";z.initialLoadingStrategy===2||z.initialLoadingStrategy===3?aZ(z,4):aZ(z,6);var G;(G=z.onConsentPrimitiveShownCallback)==null||G.call(z)},
onMessage:function(g){g=wHC(g.data);switch(_.Px(g,1)){case 1:vIc(z);var G=Nc1(_.gi(g,_.rn,7));G&&(z.initialLoadingStrategy!==2&&z.initialLoadingStrategy!==3||aZ(z,6,G),aZ(z,5,G));if(G=Nc1(_.gi(g,_.rn,6)))aZ(z,7,G),aZ(z,8);var u,Z;((u=_.gi(g,cJX,2))==null?void 0:_.Fl(u,Dm))!==0&&((Z=_.gi(g,oZq,8))==null?void 0:_.Fl(Z,PCS))!==0||b(Error("tk"));I(g);break;case 2:MG0(z)}}}),_.qe(x)}})},zJc=function(z,l,I){z.prewarmChannel=_.Ez({destination:z.JSC$19529_win,
iframe:l,origin:Dx0(z),channelName:"pwcp",onEstablished:function(){aZ(z,2);I()}})},Dx0=function(z){var l=_.YR(z.src).toString();
return l&&l.indexOf("://")<0&&l.indexOf("//")!==0?z.origin:_.Jyz(l)},jll=function(z,l){l=l===void 0?!1:l;
var I,b=new Map([["origin",z.origin],["hl",(I=xxs(z))!=null?I:null]]);l&&b.set("pw","1");l=_.D([["cpr",z.consentPrimitiveRequest.serialize()]]);for(I=l.next();!I.done;I=l.next()){var v=_.D(I.value);I=v.next().value;v=v.next().value;b.set(I,v)}z.isDarkTheme()&&b.set("color_scheme","dark");return _.y6(z.src,b)},b9S=function(z){z.isLatencyMeasurementExperiment||z.loadingBar&&document.body.removeChild(z.loadingBar)};
Uo.prototype.getSrc=function(){var z=_.lf(this.origin),l;var I=(l=_.gi(this.consentPrimitiveRequest,XH8,3))==null?void 0:_.Gz(l,1);l="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(z==null?0:z.endsWith("youtube.com"))?l="consent.youtube.com":(z=z==null?void 0:z.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(l="consent.google."+((z[1]?"co.":"")+encodeURIComponent(z[2])));return _.QR("https://"+l+"/signedin"+I+"/landing")};
var V70=function(z,l,I){z.iframe||(z.iframe=document.createElement("iframe"),z.iframe.style.width="100%",z.iframe.style.height="100%",I!==112496729&&(z.iframe.style.colorScheme="auto"),z.isLatencyMeasurementExperiment&&(z.iframe.style.display="none"),_.JT(z.iframe,l),z.iframe.setAttribute("jsname","C5o1O"),O9s(z.iframe),document.body.appendChild(z.iframe))},O9s=function(z){z.style.bottom="-200vh";
z.style.position="fixed";z.style.right="-200vw";z.style.border="";z.style.left="";z.style.top="";z.style.zIndex="";z.style.pointerEvents="none";z.style.visibility="hidden"},vIc=function(z){z.iframe&&(z.isLatencyMeasurementExperiment||(z.JSC$19529_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=z.JSC$19529_previousHtmlOverscroll),z.JSC$19529_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=z.JSC$19529_previousBodyOverscroll),z.JSC$19529_previousBodyOverflow!==
void 0&&(document.body.style.overflow=z.JSC$19529_previousBodyOverflow),z.enableDialogA11yFix&&gIS(z,!1)),O9s(z.iframe))};
Uo.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(gIS(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var gIS=function(z,l){var I,b,v=(I=z.iframe)==null?void 0:(b=I.parentElement)==null?void 0:b.children;if(v)for(I=0;I<v.length;I++)b=v[I],b!==z.iframe&&(l?(b.hasAttribute("aria-hidden")&&_.D1([_.Nj(nZq)],b,"data-old-aria-hidden",b.getAttribute("aria-hidden")),_.D1([_.Nj(L3K)],b,"aria-hidden","true")):(b.removeAttribute("aria-hidden"),b.hasAttribute("data-old-aria-hidden")&&(_.D1([_.Nj(URX)],b,"aria-hidden",b.getAttribute("data-old-aria-hidden")),b.removeAttribute("data-old-aria-hidden"))))},aZ=function(z,
l,I){var b;
(b=z.latencyCallback)==null||b.call(z,{latencyType:l,timestampEpochMillis:I!=null?I:Date.now()})};var GFC=function(z,l,I){Uo.call(this,l,I===void 0?!1:I);this.consentPrimitiveRequest=z;z=xxs(this);_.LGF(z);this.src=this.getSrc();var b;this.initialLoadingStrategy=(b=_.gi(this.consentPrimitiveRequest,gM,4))==null?void 0:_.Px(b,4)},Nps;
_.m(GFC,Uo);var hLX=function(z){var l=_.C("enable_primitive_dialog_aria_hide_siblings");z={request:z,enableDialogA11yFix:l===void 0?!1:l};Nps||(Nps=new GFC(z.request,z.isLatencyMeasurementExperiment||_.Px(z.request,1)===2,z.enableDialogA11yFix));return Nps},xxs=function(z){var l;
return(l=_.gi(z.consentPrimitiveRequest,gM,4))==null?void 0:_.oX(l,1)},l0q=function(z,l){if(!_.Bx(z.consentPrimitiveRequest,nB,5)){var I=z.consentPrimitiveRequest,b=new nB;
_.tT(I,5,b)}var v;if((v=_.gi(z.consentPrimitiveRequest,nB,5))==null||_.Q_S(_.tO(v,8))==null){var M;(M=_.gi(z.consentPrimitiveRequest,nB,5))!=null&&_.BW(M,8,l)}},JJF=function(z){var l;
return(l=_.gi(z.consentPrimitiveRequest,nB,5))==null?void 0:_.Gz(l,1)};
GFC.prototype.isDarkTheme=function(){var z;return((z=_.gi(this.consentPrimitiveRequest,gM,4))==null?void 0:_.Px(z,2))===2};
var pGF=function(z){var l;return((l=_.gi(z.consentPrimitiveRequest,gM,4))==null?void 0:_.Gz(l,5))||void 0},MG0=function(z){z.channel=void 0;
z.prewarmChannel=void 0;z.iframe&&(document.body.contains(z.iframe)&&document.body.removeChild(z.iframe),z.iframe=void 0);Nps=void 0},eLq=function(z){return Uo.prototype.showPrimitive.call(z).then(function(l){return _.gi(l,cJX,2)})};for(var Vt={},EI8=(Vt[64]="ma",Vt[73]="ogb",Vt[89]="cr",Vt[21]="test",Vt[0]="unkn",Vt[137]="con",Vt[155]="hl",Vt[78]="yt",Vt[171]="lp",Vt[172]="ap",Vt[177]="amo",Vt[178]="pqe",Vt[74]="gg",Vt[1]="gm",Vt[140]="am",Vt[193]="sc",Vt),u$4=_.D(Object.keys(EI8)),Z90=u$4.next();!Z90.done;Z90=u$4.next());var H9C=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(H9C,_.Da);var yg8=[0,[2,3,4],_.Oz,Wxq,VyW,_.pN];var f01=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(f01,_.Da);var Coy=_.yR(f01,[0,_.gy,_.vc,_.Oz,_.vc,_.Oz,yg8]);var kF8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(kF8,_.Da);kF8.prototype.getCommand=function(){return _.Px(this,1)};
var RJC=function(){var z=new kF8;return _.ey(z,1,0)};var mxs=_.fD([0,_.gy,_.vc,[0,_.Oz,_.vc,-1]]);var Kf1=new _.QL("s"),tGl=new _.QL("t"),Bpl=new _.QL("u"),XGW=new _.QL("v"),qX0=function(z,l,I){_.Y9.call(this,Kf1);this.mediaKey=z;this.photoUrl=l;this.photoSource=I};
_.m(qX0,_.Y9);var i9K=function(){_.Y9.call(this,tGl)};
_.m(i9K,_.Y9);var FfC=function(z){z=z===void 0?!1:z;_.Y9.call(this,Bpl);this.isError=z};
_.m(FfC,_.Y9);var Qrq=function(){_.Y9.call(this,XGW)};
_.m(Qrq,_.Y9);var YX1=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,dxK=function(z){if(typeof z=="string"){if(z.charAt(0)==".")return Tpc(z.substr(1));if(z.charAt(0)=="["){var l=YX1.exec(z);z=z.indexOf("=")==-1?void 0:l[3];return cgq(l[1],z)}return SX8(z)}return z},Tpc=function(z){return function(l){return l.getAttribute&&_.vH(l,z)}},cgq=function(z,l){return function(I){return l!==void 0?I.getAttribute&&I.getAttribute(z)==l:I.hasAttribute&&I.hasAttribute(z)}},SX8=function(z){z=z.toUpperCase();
return function(l){return(l=l.tagName)&&l.toUpperCase()==z}},oIK=function(){return!0};var jJ=function(z,l){this.JSC$19557_key_=z;this.JSC$19557_value_=l},J2=function(z){throw Error("uk`"+z.JSC$19557_key_);
},Poq=function(z,l){return new TypeError("vk`"+l+"`"+z.JSC$19557_key_+"`"+z.JSC$19557_value_+"`"+typeof z.JSC$19557_value_)};
jJ.prototype.string=function(z){return arguments.length==0?hJl(this):srS(this,z)};
var srS=function(z,l){var I;return(I=rgW(z))!=null?I:l},hJl=function(z){var l=rgW(z);
l===null&&J2(z);return l},rgW=function(z){var l=z.JSC$19557_value_;
if(l==null)return null;if(typeof l==="string")return l;throw Poq(z,"string");};
jJ.prototype.bool=function(z){if(arguments.length==0){var l=this.optionalBool();l===null&&J2(this)}else{var I;l=(I=this.optionalBool())!=null?I:z}return l};
jJ.prototype.optionalBool=function(){var z=this.JSC$19557_value_;if(z==null)return null;if(typeof z==="boolean")return z;if(typeof z==="string"){z=z.toLowerCase();if(z==="true"||z==="1")return!0;if(z==="false"||z==="0")return!1}throw Poq(this,"boolean");};
jJ.prototype.number=function(z){if(arguments.length==0){var l=$xq(this);l===null&&J2(this)}else l=eJq(this,z);return l};
var eJq=function(z,l){var I;return(I=$xq(z))!=null?I:l},$xq=function(z){var l=z.JSC$19557_value_;
if(l==null)return null;if(typeof l==="number")return l;if(typeof l==="string"){var I=Number(l);if(!isNaN(I)&&(I!==0||l.trim().length!==0))return I}throw Poq(z,"number");};
jJ.prototype.toString=function(){return hJl(this)};
jJ.prototype.enum=function(z,l){var I=!0,b=void 0,v;for(v in z){var M=z[v];I&&(I=!1,b=typeof M==="number"?eJq(this,l):srS(this,l));if(M==b)return b}JSON.stringify(z);return b};
jJ.prototype.array=function(z){if(arguments.length==0){var l=wGF(this);l===null&&J2(this);return l}l=wGF(this);return l==null?z:l};
var wGF=function(z){var l=z.JSC$19557_value_;if(l==null)return null;Array.isArray(l)||(typeof l!=="string"?l=[l]:(l=l.trim(),l=l==""?[]:l.split(",").map(function(I){return I.trim()})));
return AgC(z,l)},AgC=function(z,l){var I=z.JSC$19557_key_+"[";
return Array.from(l,function(b,v){return new jJ(I+v+"]",b)})};
jJ.prototype.object=function(z){var l=this.JSC$19557_value_;if(l==null)return z===void 0&&J2(this),z;if(typeof l==="object"&&l.constructor===Object){z={};var I=this.JSC$19557_key_+".",b;for(b in l)z[b]=new jJ(I+b,l[b]);return z}throw Poq(this,"object");};var zV=function(z){this.list_=Wf0(z)},Wf0=function(z){if(z instanceof zV)z=z.list_;
else if(z[0]instanceof zV){for(var l=new Set,I=0;I<z.length;I++)for(var b=_.D(z[I].list_),v=b.next();!v.done;v=b.next())l.add(v.value);z=l}return[].concat(_.ht(z))};
_.p=zV.prototype;_.p.each=function(z,l,I){((I===void 0?0:I)?CJy:_.UZ)(this.list_,z,l);return this};
_.p.size=function(){return this.list_.length};
_.p.isEmpty=function(){return this.list_.length===0};
_.p.get=function(z){return this.list_[z]||null};
_.p.el=function(){return this.list_[0]||null};
_.p.map=function(z,l){return _.s7(this.list_,z,l)};
_.p.equals=function(z){return this===z||_.a1(this.list_,z.list_)};
_.p.first=function(){return this.list_.length==0?null:new lk(this.list_[0])};
_.p.last=function(){return this.list_.length==0?null:new lk(this.list_[this.list_.length-1])};
_.p.find=function(z){var l=[];this.each(function(I){I=I.querySelectorAll(String(z));for(var b=0;b<I.length;b++)l.push(I[b])});
return new zV(l)};
_.p.parent=function(){var z=[];this.each(function(l){(l=l.parentElement||null)&&!_.rf(z,l)&&z.push(l)});
return new zV(z)};
_.p.children=function(){var z=[];this.each(function(l){l=_.nN(l);for(var I=0;I<l.length;I++)z.push(l[I])});
return new zV(z)};
_.p.filter=function(z){z=_.E9(this.list_,dxK(z));return new zV(z)};
_.p.closest=function(z){var l=[],I=dxK(z),b=function(v){return _.zu(v)&&I(v)};
this.each(function(v){(v=_.A7(v,b,!0))&&!_.rf(l,v)&&l.push(v)});
return new zV(l)};
_.p.next=function(z){return nIW(this,_.Hl_,z)};
_.p.prev=function(z){return nIW(this,jXC,z)};
var nIW=function(z,l,I){var b=[];var v=I?dxK(I):oIK;z.each(function(M){(M=l(M))&&v(M)&&b.push(M)});
return new zV(b)};
zV.prototype.setClass=function(z){return this.each(function(l){_.bC(l,z)})};
var LfK=function(z,l){return z.each(function(I){_.DY(I,l)})},Uxs=function(z,l){return z.each(function(I){_.Mt(I,l)})};
zV.prototype.toggleClass=function(z,l){return l===!0?LfK(this,z):l===!1?Uxs(this,z):this.each(function(I){_.vH(I,z)?_.Mt(I,z):_.DY(I,z)})};
zV.prototype.setText=function(z){return this.each(function(l){_.LN(l,z)})};
var a08=function(z){z.each(function(l){l.removeAttribute("aria-hidden")})};
zV.prototype.getStyle=function(z){if(this.list_.length>0){var l=this.list_[0],I=l.style[_.t8(z)];return typeof I!=="undefined"?I:l.style[_.F0I(l,z)]||""}};
zV.prototype.getData=function(z){if(this.list_.length===0)return new jJ(z,null);var l=t_q(this.list_[0],z);return new jJ(z,l)};
zV.prototype.focus=function(z){try{z?this.el().focus(z):this.el().focus()}catch(l){}return this};
zV.prototype.click=function(){var z=_.e6(this.el());if(z.createEvent){var l=z.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,z.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(l)}else z=z.createEventObject(),z.clientX=0,z.clientY=0,z.screenX=0,z.screenY=0,z.altKey=!1,z.ctrlKey=!1,z.shiftKey=!1,z.button=0,this.el().fireEvent("onclick",z)};
var IT=function(z,l,I,b){function v(g,G,u){var Z=G;G&&G.parentNode&&(Z=G.cloneNode(!0));g(Z,u)}
b=b===void 0?!1:b;if(z.list_.length==1){var M=z.list_[0],x=function(g){return l(g,M)};
I instanceof zV?I.each(x,void 0,b):Array.isArray(I)?(b?CJy:_.UZ)(I,x):x(I);return z}return z.each(function(g){I instanceof zV?I.each(function(G){v(l,G,g)}):Array.isArray(I)?_.UZ(I,function(G){v(l,G,g)}):v(l,I,g)})};
_.p=zV.prototype;_.p.append=function(z){return IT(this,function(l,I){l&&I.appendChild(l)},z)};
_.p.appendTo=function(z){(new zV([z])).append(this);return this};
_.p.remove=function(){return IT(this,function(z,l){_.Bl(l)},null)};
_.p.empty=function(){return IT(this,function(z,l){_.wy(l)},null)};
_.p.after=function(z,l){return IT(this,function(I,b){I&&_.Wc(I,b)},z,!(l===void 0||l))};
_.p.before=function(z){return IT(this,function(l,I){l&&_.A5(l,I)},z)};
_.p.replaceWith=function(z){return IT(this,function(l,I){l&&_.ESu(l,I)},z)};
_.p.toggle=function(z){return this.each(function(l){_.jN(l,z)})};
_.p.show=function(){return this.toggle(!0)};
_.p.hide=function(){return this.toggle(!1)};
_.p.trigger=function(z,l,I,b){return VGq(this,z,l,I,b)};
var VGq=function(z,l,I,b,v){return z.each(function(M){_.K5x(_.e6(M)).triggerWizEventInternal(M,l,I,b,v)})},lk=function(z,l){z instanceof zV&&(l=z.list_,z=null);
this.list_=Wf0(z!=null?[z]:l)};
_.Gs(lk,zV);_.p=lk.prototype;_.p.children=function(){return new zV(Array.prototype.slice.call(_.nN(this.list_[0])))};
_.p.each=function(z,l){z.call(l,this.list_[0],0);return this};
_.p.size=function(){return 1};
_.p.el=function(){return this.list_[0]};
_.p.first=function(){return this};var bk=function(z,l){l=l===void 0?window:l;this.hostId=z;this.JSC$19568_win=l;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19568_previousHtmlOverscroll=this.JSC$19568_previousBodyOverscroll=this.JSC$19568_previousBodyOverflow="";this.eventTarget=new _.oW;this.JSC$19568_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
zC8=function(z){var l=jrS(jrS(jrS(new Jg8(78),"po"),"hppp"),"hhc");
l.authUser=Number(_.sZ("SESSION_INDEX","0"));l.colorScheme=z;return l};
bk.prototype.getOrigin=function(){return this.origin?this.origin:_.HH(_.Z9(_.uC(new _.lJ,this.JSC$19568_win.location.protocol),this.JSC$19568_win.location.hostname),this.JSC$19568_win.location.port).toString()};
bk.prototype.getTargetOrigin=function(){return _.HH(_.Z9(_.uC(new _.lJ,this.scheme),this.domain),this.port)};
bk.prototype.preloadIframe=function(z){var l=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;C54(I,z);this.iframeLoadPromise=new Promise(function(b,v){var M=!1,x=function(g){g.stopPropagation();I.removeEventListener("error",x);I.removeEventListener("securitypolicyviolation",x);v(Error("wk",{cause:g}))};
I.addEventListener("error",x);I.addEventListener("securitypolicyviolation",x);setTimeout(function(){M||v(Error("xk"))},3E4);
ljq(l,I,function(){M=!0;I.removeEventListener("error",x);I.removeEventListener("securitypolicyviolation",x);b()})});
Ijy(this);z=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+z+"; display-capture "+z);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var MHX=function(z,l){var I,b;return _.O(function(v){if(v.nextAddress==1)return I=G98(getComputedStyle(z.parentElement).direction==="rtl"),z.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(z.elementToFocusAfterClose=document.activeElement),_.RL(v,2),v.yield(z.preloadIframe(l),4);if(v.nextAddress!=2){z.parentElement.removeChild(I);z.JSC$19568_previousBodyOverflow=z.parentElement.style.overflow;z.JSC$19568_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
z.JSC$19568_previousBodyOverscroll=z.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";z.parentElement.style.overscrollBehavior="contain";z.parentElement.style.overflow="hidden";var M=z.iframe;M.style.bottom="0";M.style.border="none";M.style.height="100%";M.style.left="0";M.style.position=z.iframePosition;M.style.right="0";M.style.top="0";M.style.width="100%";M.style.zIndex="2202";M.setAttribute("aria-hidden","false");M.setAttribute("aria-modal","true");
z.opened=!0;bky(z);return _.a3(v,0)}b=_.XP(v);z.parentElement.removeChild(I);HJX(z.isDarkTheme());v4K(z,!1);throw Error("yk",{cause:b});})},v4K=function(z,l){l=l===void 0?!0:l;
z.iframe!==void 0&&(pK4(z),document.documentElement.style.overscrollBehavior=z.JSC$19568_previousHtmlOverscroll,z.parentElement.style.overscrollBehavior=z.JSC$19568_previousBodyOverscroll,z.parentElement.style.overflow=z.JSC$19568_previousBodyOverflow,z.elementToFocusAfterClose!==void 0&&(z.elementToFocusAfterClose.focus(),z.elementToFocusAfterClose=void 0),l?Ijy(z):(z.parentElement.removeChild(z.iframe),z.iframe=void 0,z.iframeLoadPromise=void 0,z.mainChannel=void 0),z.opened=!1)},pK4=function(z){z.backgroundElementsAriaHiddenIsNull&&
(a08(z.backgroundElementsAriaHiddenIsNull),z.backgroundElementsAriaHiddenIsNull=void 0);
z.backgroundElementsAriaHiddenIsFalse&&(z.backgroundElementsAriaHiddenIsFalse.each(function(l){l.setAttribute("aria-hidden","false")}),z.backgroundElementsAriaHiddenIsFalse=void 0);
z.backgroundElementsWithoutInert&&(z.backgroundElementsWithoutInert.each(function(l){l.removeAttribute("inert")}),z.backgroundElementsWithoutInert=void 0)},bky=function(z){z.backgroundElementsAriaHiddenIsNull=(new lk(z.iframe.parentElement)).children().filter(function(l){return l.getAttribute("aria-hidden")===null&&l!==z.iframe});
z.backgroundElementsAriaHiddenIsNull.each(function(l){l.setAttribute("aria-hidden","true")});
z.backgroundElementsAriaHiddenIsFalse=(new lk(z.iframe.parentElement)).children().filter(function(l){return l.getAttribute("aria-hidden")==="false"&&l!==z.iframe});
z.backgroundElementsAriaHiddenIsFalse.each(function(l){l.setAttribute("aria-hidden","true")});
z.backgroundElementsWithoutInert=(new lk(z.iframe.parentElement)).children().filter(function(l){return!l.hasAttribute("inert")&&l!==z.iframe});
z.backgroundElementsWithoutInert.each(function(l){l.setAttribute("inert","true")})},Ijy=function(z){z=z.iframe;
z.style.bottom="-1000px";z.style.position="fixed";z.style.right="-1000px";z.style.border="";z.style.height="";z.style.left="";z.style.top="";z.style.width="";z.style.zIndex="";z.setAttribute("aria-hidden","true");z.setAttribute("aria-modal","false")};
bk.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Jg8=function(z,l){bk.call(this,EI8[z],l);this.options=[];this.style=""};
_.m(Jg8,bk);var DlW=function(z){z.style="youtube";return z},xl1=function(z,l){z.eventTarget.listen(Bpl,l);
return z},OkW=function(z,l){z.eventTarget.listen(Kf1,l);
return z},jrS=function(z,l){z.options.push(l);
return z},g4s=function(z){var l=[z.getOrigin()];
z.ancestorOrigins&&l.push.apply(l,_.ht(z.ancestorOrigins));var I=new _.lJ(z.JSC$19568_win.location.href),b=z.startUrl?z.startUrl:z.options.includes("po")?"profile-picture/art":"profile-picture";l=G7(_.y4(z.getTargetOrigin(),b),"origin",l);z.startUrl&&_.V9(l,"startPath",z.startUrl);z.authUser>0&&_.V9(l,"authuser",z.authUser);z.pageId!==void 0&&_.V9(l,"pageId",z.pageId);_.V9(l,"hostId",z.hostId);z.jsMode!==void 0&&_.V9(l,"jsmode",z.jsMode);z.rectangleRatio!==void 0&&_.V9(l,"rectangleRatio",z.rectangleRatio);
z.options.length>0&&_.V9(l,"opts",z.options.join(","));try{for(var v=_.D(["utm_source","utm_medium","utm_campaign","utm_content"]),M=v.next();!M.done;M=v.next()){var x=M.value;_.aQ(I,x)&&_.V9(l,x,_.aQ(I,x))}var g,G=(g=z.hl)!=null?g:_.aQ(I,"hl");G!==void 0&&_.V9(l,"hl",G)}catch(u){if(!(u instanceof URIError))throw u;}z.colorScheme&&_.V9(l,"theme",z.colorScheme);z.style&&_.V9(l,"style",z.style);return l},GCS=function(z,l){z.mainChannel=_.Ez({destination:z.JSC$19568_win,
iframe:l,origin:z.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=Coy(I.data);if(l===z.iframe)switch(_.Px(I,1)){case 1:z.eventTarget.dispatchEvent(new FfC);v4K(z);break;case 2:z.eventTarget.dispatchEvent(new qX0(_.oX(I,4),_.oX(I,2),_.Px(I,5),_.gi(I,H9C,6)));break;case 0:var b;z.eventTarget.dispatchEvent(new i9K(_.oX(I,2),(b=_.Px(I,3))!=null?b:0));break;case 3:z.eventTarget.dispatchEvent(new FfC(!0));v4K(z,!1);break;case 4:z.eventTarget.dispatchEvent(new Qrq)}}})},ljq=function(z,
l,I){_.Ez({destination:z.JSC$19568_win,
iframe:l,origin:_.HH(_.Z9(_.uC(new _.lJ,z.scheme),z.domain),z.port).toString(),channelName:"owi",onMessage:function(b){l===z.iframe&&(I!==void 0&&I(),GCS(z,l),z.opened&&z.mainChannel.send(mxs(RJC())),b.reply(),ljq(z,l))}})};
Jg8.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?bk.prototype.preloadIframe.call(this,g4s(this).toString()):this.iframeLoadPromise};
Jg8.prototype.openPicker=function(z){var l=this;return _.O(function(I){if(I.nextAddress==1)return l.startUrl=z?z:l.options.includes("po")?"profile-picture/art":"profile-picture",I.yield(MHX(l,g4s(l).toString()),2);if(l.mainChannel){var b=l.mainChannel,v=b.send;var M=RJC();M=_.Th(M,2,l.startUrl);v.call(b,mxs(M))}_.qe(I)})};var N70=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(N70,_.Da);_.p=N70.prototype;_.p.getSize=function(){return CB(this,1)};
_.p.setSize=function(z){return _.$x(this,1,z)};
_.p.getWidth=function(){return CB(this,12)};
_.p.getHeight=function(){return CB(this,13)};
_.p.setCenterCrop=function(z){return _.Zv(this,20,z)};
_.p.getHtml=function(){return _.cx(this,4)};
_.p.getToken=function(){return _.K0(this,24)};
_.p.setToken=function(z){return _.Th(this,24,z)};
_.p.getBackgroundColor=function(){return CB(this,87)};
_.p.hasBackgroundColor=function(){return _.MK(_.tO(this,87))!=null};
_.p.getStoryboardLevel=function(){return CB(this,109)};var vS=function(z){this.JSC$19576_value_=void 0;this.childNodes_={};if(z){var l=_.vPu(z);z=_.Eh(z);for(var I=0;I<l.length;I++)this.set(l[I],z[I])}};
vS.prototype.set=function(z,l){E4c(this,z,l,!1)};
vS.prototype.add=function(z,l){E4c(this,z,l,!0)};
var E4c=function(z,l,I,b){for(var v=0;v<l.length;v++){var M=l.charAt(v);z.childNodes_[M]||(z.childNodes_[M]=new vS);z=z.childNodes_[M]}if(b&&z.JSC$19576_value_!==void 0)throw Error("zk`"+l);z.JSC$19576_value_=I},uby=function(z,l){for(var I=0;I<l.length;I++)if(z=z.childNodes_[l.charAt(I)],!z)return;
return z};
vS.prototype.get=function(z){return(z=uby(this,z))?z.JSC$19576_value_:void 0};
vS.prototype.getValues=function(){var z=[];Zkc(this,z);return z};
var Zkc=function(z,l){z.JSC$19576_value_!==void 0&&l.push(z.JSC$19576_value_);for(var I in z.childNodes_)Zkc(z.childNodes_[I],l)};
vS.prototype.getKeys=function(z){var l=[];if(z){for(var I=this,b=0;b<z.length;b++){var v=z.charAt(b);if(!I.childNodes_[v])return[];I=I.childNodes_[v]}HkC(I,z,l)}else HkC(this,"",l);return l};
var HkC=function(z,l,I){z.JSC$19576_value_!==void 0&&I.push(l);for(var b in z.childNodes_)HkC(z.childNodes_[b],l+b,I)};
_.p=vS.prototype;_.p.containsKey=function(z){return this.get(z)!==void 0};
_.p.containsValue=function(z){if(this.JSC$19576_value_===z)return!0;for(var l in this.childNodes_)if(this.childNodes_[l].containsValue(z))return!0;return!1};
_.p.clear=function(){this.childNodes_={};this.JSC$19576_value_=void 0};
_.p.remove=function(z){for(var l=this,I=[],b=0;b<z.length;b++){var v=z.charAt(b);if(!l.childNodes_[v])throw Error("Ak`"+z);I.push([l,v]);l=l.childNodes_[v]}z=l.JSC$19576_value_;for(delete l.JSC$19576_value_;I.length>0;)if(b=I.pop(),l=b[0],b=b[1],l.childNodes_[b].isEmpty())delete l.childNodes_[b];else break;return z};
_.p.clone=function(){return new vS(this)};
_.p.getCount=function(){return Ibl(this.getValues())};
_.p.isEmpty=function(){return this.JSC$19576_value_===void 0&&_.h7.isEmpty(this.childNodes_)};var tgq=function(){if(!yv0){var z=yv0=new vS,l;for(l in fjq)z.add(l,fjq[l])}},yv0,ME=function(z,l){this.types=z;
this.setters=l},fjq={a:new ME([3,
0],[function(z,l){_.Zv(z,21,l)},
function(z,l){_.$x(z,56,l)}]),
al:new ME([3],[function(z,l){_.Zv(z,74,l)}]),
b:new ME([3,0],[function(z,l){_.Zv(z,23,l)},
function(z,l){_.$x(z,38,l)}]),
ba:new ME([0],[function(z,l){_.$x(z,85,l)}]),
bc:new ME([0],[function(z,l){_.$x(z,87,l)}]),
br:new ME([0],[function(z,l){_.$x(z,86,l)}]),
c:new ME([3,0],[function(z,l){_.Zv(z,2,l)},
function(z,l){_.$x(z,39,l)}]),
cc:new ME([3],[function(z,l){_.Zv(z,51,l)}]),
ci:new ME([3],[function(z,l){_.Zv(z,32,l)}]),
ckm:new ME([3],[function(z,l){_.Zv(z,104,l)}]),
cp:new ME([0],[function(z,l){_.$x(z,92,l)}]),
cr:new ME([3],[function(z,l){_.Zv(z,108,l)}]),
cv:new ME([0],[function(z,l){_.$x(z,94,l)}]),
d:new ME([3],[function(z,l){_.Zv(z,3,l)}]),
dc:new ME([5],[function(z,l){_.Th(z,99,l)}]),
df:new ME([3],[function(z,l){_.Zv(z,80,l)}]),
dv:new ME([3],[function(z,l){_.Zv(z,90,l)}]),
e:new ME([0],[function(z,l){_.$x(z,15,l)}]),
em:new ME([0],[function(z,l){_.$x(z,107,l)}]),
f:new ME([4],[function(z,l){_.Th(z,16,l)}]),
fg:new ME([3],[function(z,l){_.Zv(z,34,l)}]),
fh:new ME([3],[function(z,l){_.Zv(z,30,l)}]),
fm:new ME([3],[function(z,l){_.Zv(z,84,l)}]),
fo:new ME([2],[function(z,l){_.NW(z,79,_.W_(l))}]),
ft:new ME([3],[function(z,l){_.Zv(z,50,l)}]),
fv:new ME([3],[function(z,l){_.Zv(z,31,l)}]),
g:new ME([3],[function(z,l){_.Zv(z,14,l)}]),
gce:new ME([4],[function(z,l){_.Th(z,112,l)}]),
gd:new ME([3],[function(z,l){_.Zv(z,83,l)}]),
gm:new ME([3],[function(z,l){_.Zv(z,105,l)}]),
h:new ME([3,0],[function(z,l){_.Zv(z,4,l)},
function(z,l){_.$x(z,13,l)}]),
i:new ME([3],[function(z,l){_.Zv(z,22,l)}]),
ic:new ME([0],[function(z,l){_.$x(z,71,l)}]),
id:new ME([3],[function(z,l){_.Zv(z,70,l)}]),
il:new ME([3],[function(z,l){_.Zv(z,96,l)}]),
ip:new ME([3],[function(z,l){_.Zv(z,54,l)}]),
iv:new ME([0],[function(z,l){_.BW(z,75,l)}]),
j:new ME([1],[function(z,l){l=l==null?l:muC(l);_.NW(z,29,l)}]),
k:new ME([3,0],[function(z,l){_.Zv(z,17,l)},
function(z,l){_.$x(z,42,l)}]),
l:new ME([0],[function(z,l){_.$x(z,44,l)}]),
lf:new ME([3],[function(z,l){_.Zv(z,65,l)}]),
lo:new ME([3],[function(z,l){_.Zv(z,97,l)}]),
m:new ME([0],[function(z,l){_.$x(z,63,l)}]),
md:new ME([3],[function(z,l){_.Zv(z,91,l)}]),
mm:new ME([4],[function(z,l){_.Th(z,81,l)}]),
mo:new ME([3],[function(z,l){_.Zv(z,73,l)}]),
mp:new ME([0],[function(z,l){_.$x(z,115,l)}]),
mv:new ME([3],[function(z,l){_.Zv(z,66,l)}]),
n:new ME([3],[function(z,l){z.setCenterCrop(l)}]),
nc:new ME([3],[function(z,l){_.Zv(z,55,l)}]),
nd:new ME([3],[function(z,l){_.Zv(z,53,l)}]),
ng:new ME([3],[function(z,l){_.Zv(z,95,l)}]),
ngm:new ME([3],[function(z,l){_.Zv(z,106,l)}]),
no:new ME([3],[function(z,l){_.Zv(z,37,l)}]),
ns:new ME([3],[function(z,l){_.Zv(z,40,l)}]),
nt0:new ME([4],[function(z,l){_.Th(z,36,l)}]),
ntm:new ME([3],[function(z,l){_.Zv(z,114,l)}]),
nu:new ME([3],[function(z,l){_.Zv(z,46,l)}]),
nw:new ME([3],[function(z,l){_.Zv(z,48,l)}]),
o:new ME([1,3],[function(z,l){l=l==null?l:muC(l);_.NW(z,7,l)},
function(z,l){_.Zv(z,27,l)}]),
p:new ME([3,0],[function(z,l){_.Zv(z,19,l)},
function(z,l){_.$x(z,43,l)}]),
pa:new ME([3],[function(z,l){_.Zv(z,61,l)}]),
pc:new ME([0],[function(z,l){_.$x(z,88,l)}]),
pd:new ME([3],[function(z,l){_.Zv(z,60,l)}]),
pf:new ME([3],[function(z,l){_.Zv(z,67,l)}]),
pg:new ME([3],[function(z,l){_.Zv(z,72,l)}]),
pi:new ME([2],[function(z,l){_.NW(z,76,_.W_(l))}]),
pp:new ME([3],[function(z,l){_.Zv(z,52,l)}]),
pt:new ME([4],[function(z,l){_.Th(z,111,l)}]),
q:new ME([4],[function(z,l){_.Th(z,28,l)}]),
r:new ME([3,0],[function(z,l){_.Zv(z,6,l)},
function(z,l){_.$x(z,26,l)}]),
ra:new ME([3],[function(z,l){_.Zv(z,103,l)}]),
rf:new ME([3],[function(z,l){_.Zv(z,100,l)}]),
rg:new ME([3],[function(z,l){_.Zv(z,59,l)}]),
rh:new ME([3],[function(z,l){_.Zv(z,49,l)}]),
rj:new ME([3],[function(z,l){_.Zv(z,57,l)}]),
ro:new ME([2],[function(z,l){_.NW(z,78,_.W_(l))}]),
rp:new ME([3],[function(z,l){_.Zv(z,58,l)}]),
rw:new ME([3],[function(z,l){_.Zv(z,35,l)}]),
rwa:new ME([3],[function(z,l){_.Zv(z,64,l)}]),
rwu:new ME([3],[function(z,l){_.Zv(z,41,l)}]),
s:new ME([3,0],[function(z,l){_.Zv(z,33,l)},
function(z,l){z.setSize(l)}]),
sb:new ME([0],[function(z,l){_.$x(z,110,l)}]),
sc:new ME([0],[function(z,l){_.$x(z,89,l)}]),
sg:new ME([3],[function(z,l){_.Zv(z,82,l)}]),
sl:new ME([0],[function(z,l){_.$x(z,109,l)}]),
sm:new ME([3],[function(z,l){_.Zv(z,93,l)}]),
t:new ME([4],[function(z,l){z.setToken(l)}]),
tm:new ME([3],[function(z,l){_.Zv(z,113,l)}]),
u:new ME([3],[function(z,l){_.Zv(z,18,l)}]),
ut:new ME([3],[function(z,l){_.Zv(z,45,l)}]),
v:new ME([0],[function(z,l){_.$x(z,62,l)}]),
vb:new ME([0],[function(z,l){_.BW(z,68,l)}]),
vf:new ME([4],[function(z,l){_.Th(z,102,l)}]),
vl:new ME([0],[function(z,l){_.BW(z,69,l)}]),
vm:new ME([3],[function(z,l){_.Zv(z,98,l)}]),
w:new ME([0],[function(z,l){_.$x(z,12,l)}]),
x:new ME([0],[function(z,l){_.$x(z,9,l)}]),
y:new ME([0],[function(z,l){_.$x(z,10,l)}]),
ya:new ME([2],[function(z,l){_.NW(z,77,_.W_(l))}]),
z:new ME([0],[function(z,l){_.$x(z,11,l)}])};
tgq.prototype.parse=function(z){var l=new N70,I=new N70;if(z=="")z=!0;else{z=z.split("-");for(var b=!0,v=0;v<z.length;v++){var M=z[v];if(M.length==0)b=!1;else{var x=M,g=!1;var G=x;var u=x.charAt(0);u!=u.toLowerCase()&&(g=!0,G=x.charAt(0).toLowerCase()+x.substring(1));var Z=yv0;for(u=1;u<=G.length;++u){var H=Z,y=G.substring(0,u);if(y.length==0?H.isEmpty():!uby(H,y))break}G=u==1?null:(G=Z.get(G.substring(0,u-1)))?{option:x.substring(0,u-1),value:x.substring(u-1),signed:g,attributes:G}:null;if(G){x=
[];g=[];u=!1;for(Z=0;Z<G.attributes.types.length;Z++){H=G.attributes.types[Z];var f=G.value;y=v;if(G.signed&&H==1)for(var R=f.length;R<12&&y<z.length-1;)f+="-"+z[y+1],R=f.length,++y;else if(H==2)for(;y<z.length-1&&z[y+1].match(/^[\d\.]/);)f+="-"+z[y+1],++y;R=G.attributes.setters[Z];f=Cgl(this,H)(G.option,f,l,I,R);if(f===null){u=!0;v=y;break}else x.push(H),g.push(f)}if(!u)for(G=0;G<g.length;G++)Z=x[G],f=g[G],kCK(this,Z)(M,f);b=b&&u}else b=!1}}z=b}return new RCW(l,I,z)};
var pa=function(z,l,I,b,v,M){v(I,l);z=z.charAt(0);M=M(z==z.toUpperCase());v(b,M)};
_.p=tgq.prototype;_.p.parseAndSetIntOption_=function(z,l,I,b,v){if(l=="")return 0;isFinite(l)&&(l=String(l));l=typeof l==="string"?/^\s*-?0x/i.test(l)?parseInt(l,16):parseInt(l,10):NaN;if(isNaN(l))return 1;pa(z,l,I,b,v,Number);return null};
_.p.logIntParseError_=function(){};
_.p.parseAndSetFloatOption_=function(z,l,I,b,v){if(l=="")return 0;var M=Number(l);l=M==0&&_.gf(l)?NaN:M;if(isNaN(l))return 1;pa(z,l,I,b,v,Number);return null};
_.p.logFloatParseError_=function(){};
_.p.parseAndSetBoolOption_=function(z,l,I,b,v){if(l!="")return 2;pa(z,!0,I,b,v,Boolean);return null};
_.p.logBoolParseError_=function(){};
_.p.parseAndSetStringOption_=function(z,l,I,b,v){if(l=="")return 0;pa(z,l,I,b,v,function(M){return M?"1":""});
return null};
_.p.logStringParseError_=function(){};
_.p.parseAndSetUint64Base64Option_=function(z,l,I,b,v){if(l=="")return 0;pa(z,l,I,b,v,function(M){return M?1:0});
return null};
var Cgl=function(z,l){switch(l){case 0:return(0,_.YN)(z.parseAndSetIntOption_,z);case 2:return(0,_.YN)(z.parseAndSetFloatOption_,z);case 3:return(0,_.YN)(z.parseAndSetBoolOption_,z);case 4:return(0,_.YN)(z.parseAndSetStringOption_,z);case 1:return(0,_.YN)(z.parseAndSetUint64Base64Option_,z);default:return function(){}}},kCK=function(z,l){switch(l){case 0:return(0,_.YN)(z.logIntParseError_,z);
case 2:return(0,_.YN)(z.logFloatParseError_,z);case 3:return(0,_.YN)(z.logBoolParseError_,z);case 4:case 1:return(0,_.YN)(z.logStringParseError_,z);default:return function(){}}},RCW=function(z,l,I){this.valueProto_=z;
this.signatureFlagProto_=l;this.JSC$19588_valid_=I};
RCW.prototype.isValid=function(){return this.JSC$19588_valid_};var k9y=function(z){this.JSC$19589_parser_=null;this.JSC$19589_components_=[];this.JSC$19589_parsedOptions_=null;mlK(this,z)},K1W=function(z){z.JSC$19589_parser_==null&&(z.JSC$19589_parser_=new tgq);
return z.JSC$19589_parser_},mlK=function(z,l){z.JSC$19589_parsedOptions_=l?typeof l==="string"?K1W(z).parse(l):l:K1W(z).parse("")},DU=function(z,l){return z==l?!1:!0};
_.p=k9y.prototype;_.p.JSC$19591_setCrop=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,_.cx(I,2),_.cx(l.signatureFlagProto_,2))&&_.Zv(I,2,z);return this};
_.p.JSC$19591_setCircleCrop=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,fB(I,51),fB(l.signatureFlagProto_,51))&&_.Zv(I,51,z);return this};
_.p.JSC$19591_setImageCrop=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,fB(I,32),fB(l.signatureFlagProto_,32))&&_.Zv(I,32,z);return this};
_.p.JSC$19591_setHeight=function(z){var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,I.getHeight(),l.signatureFlagProto_.getHeight())&&_.$x(I,13,z);return this};
_.p.setCenterCrop=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,_.cx(I,20),_.cx(l.signatureFlagProto_,20))&&I.setCenterCrop(z);return this};
_.p.JSC$19591_setSmartCrop=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,_.cx(I,19),_.cx(l.signatureFlagProto_,19))&&_.Zv(I,19,z);return this};
_.p.JSC$19591_setPad=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,fB(I,60),fB(l.signatureFlagProto_,60))&&_.Zv(I,60,z);return this};
_.p.JSC$19591_setSmartCropUseFace=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,_.cx(I,67),_.cx(l.signatureFlagProto_,67))&&_.Zv(I,67,z);return this};
_.p.JSC$19591_setSmartCropNoClip=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,_.cx(I,52),_.cx(l.signatureFlagProto_,52))&&_.Zv(I,52,z);return this};
_.p.setSize=function(z){var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,I.getSize(),l.signatureFlagProto_.getSize())&&I.setSize(z);return this};
_.p.setToken=function(z){z=z||void 0;var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,I.getToken(),l.signatureFlagProto_.getToken())&&I.setToken(z);return this};
_.p.JSC$19591_setWidth=function(z){var l=this.JSC$19589_parsedOptions_,I=l.valueProto_;DU(z,I.getWidth(),l.signatureFlagProto_.getWidth())&&_.$x(I,12,z);return this};
_.p.clearOptions=function(){mlK(this,"");return this};
_.p.build=function(){this.JSC$19589_components_.length=0;var z=this.JSC$19589_parsedOptions_,l=z.valueProto_;z=z.signatureFlagProto_;xg(this,"s",l.getSize(),z.getSize());xg(this,"w",l.getWidth(),z.getWidth());OP(this,"c",_.cx(l,2),_.cx(z,2));OP(this,"d",_.cx(l,3),_.cx(z,3));xg(this,"h",l.getHeight(),z.getHeight());OP(this,"s",fB(l,33),fB(z,33));OP(this,"h",l.getHtml(),z.getHtml());OP(this,"p",_.cx(l,19),_.cx(z,19));OP(this,"pp",_.cx(l,52),_.cx(z,52));OP(this,"pf",_.cx(l,67),_.cx(z,67));OP(this,"n",
_.cx(l,20),_.cx(z,20));xg(this,"r",CB(l,26),CB(z,26));OP(this,"r",_.cx(l,6),_.cx(z,6));OP(this,"o",fB(l,27),fB(z,27));var I=_.Ts(l,7,_.KO);g_(this,"o",I,_.Ts(z,7,_.KO));I=_.Ts(l,29,_.KO);g_(this,"j",I,_.Ts(z,29,_.KO));xg(this,"x",CB(l,9),CB(z,9));xg(this,"y",CB(l,10),CB(z,10));xg(this,"z",CB(l,11),CB(z,11));OP(this,"g",_.cx(l,14),_.cx(z,14));xg(this,"e",CB(l,15),CB(z,15));g_(this,"f",_.K0(l,16),_.K0(z,16));OP(this,"k",fB(l,17),fB(z,17));OP(this,"u",fB(l,18),!0);OP(this,"ut",fB(l,45),!0);OP(this,"i",
fB(l,22),!0);OP(this,"a",fB(l,21),fB(z,21));OP(this,"b",_.cx(l,23),_.cx(z,23));xg(this,"b",CB(l,38),CB(z,38));xg(this,"c",CB(l,39),CB(z,39),16,8);g_(this,"q",_.K0(l,28),_.K0(z,28));OP(this,"fh",fB(l,30),fB(z,30));OP(this,"fv",fB(l,31),fB(z,31));OP(this,"fg",_.cx(l,34),_.cx(z,34));OP(this,"ci",fB(l,32),fB(z,32));g_(this,"t",l.getToken(),z.getToken());g_(this,"nt0",_.K0(l,36),_.K0(z,36));OP(this,"rw",_.cx(l,35),_.cx(z,35));OP(this,"rwu",_.cx(l,41),_.cx(z,41));OP(this,"rwa",_.cx(l,64),_.cx(z,64));OP(this,
"nw",_.cx(l,48),_.cx(z,48));OP(this,"rh",_.cx(l,49),_.cx(z,49));OP(this,"no",_.cx(l,37),_.cx(z,37));OP(this,"ns",fB(l,40),fB(z,40));xg(this,"k",CB(l,42),CB(z,42));xg(this,"p",CB(l,43),CB(z,43));xg(this,"l",CB(l,44),CB(z,44));xg(this,"v",CB(l,62),CB(z,62));OP(this,"nu",fB(l,46),fB(z,46));OP(this,"ft",fB(l,50),fB(z,50));OP(this,"cc",fB(l,51),fB(z,51));OP(this,"nd",fB(l,53),fB(z,53));OP(this,"ip",fB(l,54),fB(z,54));OP(this,"nc",fB(l,55),fB(z,55));xg(this,"a",CB(l,56),CB(z,56));OP(this,"rj",fB(l,57),
fB(z,57));OP(this,"rp",fB(l,58),fB(z,58));OP(this,"rg",fB(l,59),fB(z,59));OP(this,"pd",fB(l,60),fB(z,60));OP(this,"pa",fB(l,61),fB(z,61));xg(this,"m",CB(l,63),CB(z,63));xg(this,"vb",k_(l,68),k_(z,68));xg(this,"vl",k_(l,69),k_(z,69));OP(this,"lf",fB(l,65),fB(z,65));OP(this,"mv",fB(l,66),fB(z,66));OP(this,"id",fB(l,70),fB(z,70));xg(this,"ic",CB(l,71),!0);OP(this,"pg",_.cx(l,72),_.cx(z,72));OP(this,"mo",fB(l,73),fB(z,73));OP(this,"al",fB(l,74),fB(z,74));xg(this,"iv",k_(l,75),k_(z,75));xg(this,"pi",RZ(l,
76),RZ(z,76));xg(this,"ya",RZ(l,77),RZ(z,77));xg(this,"ro",RZ(l,78),RZ(z,78));xg(this,"fo",RZ(l,79),RZ(z,79));OP(this,"df",fB(l,80),fB(z,80));g_(this,"mm",_.K0(l,81),_.K0(z,81));OP(this,"sg",fB(l,82),fB(z,82));OP(this,"gd",fB(l,83),fB(z,83));OP(this,"fm",fB(l,84),fB(z,84));xg(this,"ba",CB(l,85),CB(z,85));xg(this,"br",CB(l,86),CB(z,86));xg(this,"bc",l.getBackgroundColor(),z.getBackgroundColor(),16,8);xg(this,"pc",CB(l,88),CB(z,88),16,8);xg(this,"sc",CB(l,89),CB(z,89),16,8);OP(this,"dv",fB(l,90),fB(z,
90));OP(this,"md",fB(l,91),fB(z,91));xg(this,"cp",CB(l,92),CB(z,92));OP(this,"sm",fB(l,93),fB(z,93));xg(this,"cv",CB(l,94),CB(z,94));OP(this,"ng",fB(l,95),fB(z,95));OP(this,"il",fB(l,96),fB(z,96));OP(this,"lo",fB(l,97),fB(z,97));OP(this,"vm",fB(l,98),fB(z,98));g_(this,"dc",_.K0(l,99),_.K0(z,99));OP(this,"rf",fB(l,100),fB(z,100));g_(this,"vf",_.K0(l,102),_.K0(z,102));OP(this,"ra",_.cx(l,103),_.cx(z,103));OP(this,"ckm",fB(l,104),fB(z,104));OP(this,"gm",fB(l,105),fB(z,105));OP(this,"ngm",fB(l,106),fB(z,
106));xg(this,"em",CB(l,107),CB(z,107));OP(this,"cr",fB(l,108),fB(z,108));xg(this,"sl",l.getStoryboardLevel(),z.getStoryboardLevel());xg(this,"sb",CB(l,110),CB(z,110));g_(this,"pt",_.K0(l,111),_.K0(z,111));g_(this,"gce",_.K0(l,112),_.K0(z,112));OP(this,"tm",fB(l,113),fB(z,113));OP(this,"ntm",fB(l,114),fB(z,114));xg(this,"mp",CB(l,115),CB(z,115));return this.JSC$19589_components_.join("-")};
var xg=function(z,l,I,b,v,M){if(I!=null){var x=v==void 0||v!=10&&v!=16?10:v;I=Number(I).toString(x);v=new smK;v.append(x==16?"0x":"");x=v.append;M==void 0?M="":(M-=I.length,M=M<=0?"":(0,_.JGu)("0",M));x.call(v,M);v.append(I);tHq(z,l,v.toString(),!!Number(b))}},OP=function(z,l,I,b){I&&tHq(z,l,"",!!b)},g_=function(z,l,I,b){I&&tHq(z,l,String(I),!!Number(b))},tHq=function(z,l,I,b){b&&(l=l.charAt(0).toUpperCase()+l.substring(1));
z.JSC$19589_components_.push(l+I)};_.Gs(CS,k9y);_.p=CS.prototype;_.p.JSC$19591_setCrop=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setCrop.call(this,z)};
_.p.JSC$19591_setHeight=function(z){z=z==null||z<0?void 0:z;z!=null&&this.setSize();return CS.superClass_.JSC$19591_setHeight.call(this,z)};
_.p.JSC$19591_setImageCrop=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setImageCrop.call(this,z)};
_.p.JSC$19591_setCircleCrop=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setCircleCrop.call(this,z)};
_.p.setSize=function(z){_.Lu(z)&&(z=Math.max(z.width,z.height));z=z==null||z<0?void 0:z;z!=null&&(this.JSC$19591_setWidth(),this.JSC$19591_setHeight());return CS.superClass_.setSize.call(this,z)};
_.p.JSC$19591_setSmartCrop=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setSmartCrop.call(this,z)};
_.p.JSC$19591_setSmartCropNoClip=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setSmartCropNoClip.call(this,z)};
_.p.JSC$19591_setSmartCropUseFace=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setSmartCropUseFace.call(this,z)};
_.p.setCenterCrop=function(z){z&&GV(this);return CS.superClass_.setCenterCrop.call(this,z)};
_.p.JSC$19591_setPad=function(z){z&&GV(this);return CS.superClass_.JSC$19591_setPad.call(this,z)};
_.p.JSC$19591_setWidth=function(z){z=z==null||z<0?void 0:z;z!=null&&this.setSize();return CS.superClass_.JSC$19591_setWidth.call(this,z)};
var B7c=function(z){z.clearOptions();var l=z.JSC$19589_parsedOptions_,I=l.valueProto_;DU(!0,_.cx(I,3),_.cx(l.signatureFlagProto_,3))&&_.Zv(I,3,!0);return z},GV=function(z){z.setCenterCrop();
z.JSC$19591_setCircleCrop();z.JSC$19591_setCrop();z.JSC$19591_setImageCrop();z.JSC$19591_setPad();z.JSC$19591_setSmartCrop();z.JSC$19591_setSmartCropNoClip();z.JSC$19591_setSmartCropUseFace()};
CS.prototype.build=function(){var z=this.JSC$19589_parsedOptions_.valueProto_;fB(z,18)||fB(z,45)?z.getSize()||this.setSize(0):(z=this.JSC$19589_parsedOptions_.valueProto_,z.getSize()||z.getWidth()||z.getHeight()||(this.setSize(),this.JSC$19591_setHeight(),this.JSC$19591_setWidth(),GV(this)));return CS.superClass_.build.call(this)};var XKS=/^[^\/]*\/\//,NE=function(z,l){l=l===void 0?!1:l;this.original_=z;this.originalPrefix_="";(z=this.original_.match(XKS))&&z[0]?(this.originalPrefix_=z[0],z=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):z="http://"+this.original_;this.uri_=_.UA(z,!0);this.isFreeformUrl_=l;this.JSC$19595_valid_=!0;this.obfuscated_=!1},qlq=function(z,l){z.JSC$19597_pathPrefix_=z.JSC$19597_pathPrefix_?z.JSC$19597_pathPrefix_+("/"+l):l},EP=function(z){if(z.JSC$19597_components_==
void 0){var l=z.uri_.getPath().substring(1);
z.JSC$19597_pathPrefix_=null;if(z.isFreeformUrl_){z.JSC$19597_components_=[];if((l.match(/=/g)||[]).length>1)return z.JSC$19595_valid_=!1,z.JSC$19597_components_;var I=l.indexOf("=");I!=-1?(z.JSC$19597_components_.push(l.substr(0,I)),z.JSC$19597_components_.push(l.substr(I+1))):z.JSC$19597_components_.push(l);return z.JSC$19597_components_}z.JSC$19597_components_=l.split("/");l=z.JSC$19597_components_.length;l>2&&z.JSC$19597_components_[0]=="u"&&(qlq(z,z.JSC$19597_components_[0]+"/"+z.JSC$19597_components_[1]),
z.JSC$19597_components_.shift(),z.JSC$19597_components_.shift(),l-=2);if(l==0||l==4||l>7)return z.JSC$19595_valid_=!1,z.JSC$19597_components_;if(l==2)qlq(z,z.JSC$19597_components_[0]);else if(z.JSC$19597_components_[0]=="image")qlq(z,z.JSC$19597_components_[0]);else if(l==7||l==3)return z.JSC$19595_valid_=!1,z.JSC$19597_components_;if(l<=3){z.obfuscated_=!0;l==3&&(qlq(z,z.JSC$19597_components_[1]),z.JSC$19597_components_.shift(),--l);--l;I=z.JSC$19597_components_[l];var b=I.indexOf("=");b!=-1&&(z.JSC$19597_components_[l]=
I.substr(0,b),z.JSC$19597_components_.push(I.substr(b+1)))}}return z.JSC$19597_components_};
NE.prototype.isValid=function(){EP(this);return this.JSC$19595_valid_};
NE.prototype.isObfuscated=function(){EP(this);return this.obfuscated_};
var ikX=function(z){EP(z);return z.isFreeformUrl_},uk=function(z){EP(z);
z.JSC$19597_pathPrefix_==void 0&&(z.JSC$19597_pathPrefix_=null);return z.JSC$19597_pathPrefix_},F18=function(z){switch(EP(z).length){case 7:return!0;
case 6:return uk(z)==null;case 5:return!1;case 3:return!0;case 2:return uk(z)==null;case 1:return!1;default:return!1}},ZU=function(z,l){if(ikX(z))a:{switch(l){case 7:l=0;
break;case 4:if(!F18(z)){z=null;break a}l=1;break;default:z=null;break a}z=EP(z)[l]}else if(z.isObfuscated())a:{var I=uk(z)!=null?1:0;switch(l){case 6:l=I;break;case 4:if(!F18(z)){z=null;break a}l=1+I;break;default:z=null;break a}z=EP(z)[l]}else a:{I=uk(z)!=null?1:0;switch(l){case 0:l=I;break;case 1:l=1+I;break;case 2:l=2+I;break;case 3:l=3+I;break;case 4:if(!F18(z)){z=null;break a}l=4+I;break;case 5:l=F18(z)?1:0;l=4+I+l;break;default:z=null;break a}z=EP(z)[l]}return z};
NE.prototype.getOptions=function(){this.options_==void 0&&(this.options_=ZU(this,4));return this.options_};var K2W=function(){};
K2W.prototype.parse=function(z,l){return new RHy(z,l===void 0?!1:l)};
var RHy=function(z,l){NE.call(this,z,l===void 0?!1:l)};
_.m(RHy,NE);_.Gs(ku,CS);var mXc;ku.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ku.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var z=ku.superClass_.build.call(this),l=[];uk(this.parsedImageUrl_)!=null&&l.push(uk(this.parsedImageUrl_));var I=ikX(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var b=this.parsedImageUrl_;b.obfuscatedData_==void 0&&(b.obfuscatedData_=ZU(b,6));l.push(b.obfuscatedData_+(z?"="+z:""))}else if(I){b=l.push;var v=this.parsedImageUrl_;v.freeformUrlPath_===void 0&&(v.freeformUrlPath_=ZU(v,
7));b.call(l,v.freeformUrlPath_);z&&l.push(z)}else b=l.push,v=this.parsedImageUrl_,v.obfuscatedGaiaId_==void 0&&(v.obfuscatedGaiaId_=ZU(v,0)),b.call(l,v.obfuscatedGaiaId_),b=l.push,v=this.parsedImageUrl_,v.photoId_==void 0&&(v.photoId_=ZU(v,1)),b.call(l,v.photoId_),b=l.push,v=this.parsedImageUrl_,v.imageVersion_==void 0&&(v.imageVersion_=ZU(v,2)),b.call(l,v.imageVersion_),b=l.push,v=this.parsedImageUrl_,v.signature_==void 0&&(v.signature_=ZU(v,3)),b.call(l,v.signature_),z&&l.push(z),z=l.push,b=this.parsedImageUrl_,
b.filename_==void 0&&(b.filename_=ZU(b,5)),z.call(l,b.filename_);l=I?l.join("="):l.join("/");l=_.UA(this.protocolPrefix_+this.JSC$19603_domain_+"/"+l+(this.JSC$19603_query_?"?"+this.JSC$19603_query_:"")).toString();l.startsWith("%3a//")&&(l=l.replace("%3a//","://"));return l};var Q54=_.zs(["viewBox"]),Yl8=_.zs(["width"]),T7c=_.zs(["height"]),cvq=_.zs(["fill"]),Sl1=_.zs(["id"]),dlX=_.zs(["x"]),o40=_.zs(["y"]);BcF.prototype.getLength=function(){return this.parsedData.length};
BcF.prototype.write=function(z){for(var l=0,I=this.parsedData.length;l<I;l++)z.put(this.parsedData[l],8)};
var Tcy=function(z,l){var I=new BcF(l);z.dataList.push(I);I=z.errorCorrectLevel;var b=1,v=encodeURI(l).toString().replace(/%[0-9a-fA-F]{2}/g,"a");l=v.length+(v.length!=l?3:0);v=0;for(var M=HS.length;v<=M;v++){var x=0;switch(I){case 1:x=HS[v][0];break;case 0:x=HS[v][1];break;case 3:x=HS[v][2];break;case 2:x=HS[v][3]}if(l<=x)break;else b++}if(b>HS.length)throw Error("Jk");z.typeNumber=b;z.dataCache=null};
XyW.prototype.isDark=function(z,l){if(z<0||this.moduleCount<=z||l<0||this.moduleCount<=l)throw Error("Bk`"+z+"`"+l);return this.modules[z][l]};
for(var cPc=function(z,l,I){z.moduleCount=z.typeNumber*4+17;z.modules=Array(z.moduleCount);for(var b=0;b<z.moduleCount;b++){z.modules[b]=Array(z.moduleCount);for(var v=0;v<z.moduleCount;v++)z.modules[b][v]=null}PgK(z,0,0);PgK(z,z.moduleCount-7,0);PgK(z,0,z.moduleCount-7);b=hCK[z.typeNumber-1];for(v=0;v<b.length;v++)for(var M=0;M<b.length;M++){var x=b[v],g=b[M];if(z.modules[x][g]==null)for(var G=-2;G<=2;G++)for(var u=-2;u<=2;u++)z.modules[x+G][g+u]=G==-2||G==2||u==-2||u==2||G==0&&u==0?!0:!1}for(b=
8;b<z.moduleCount-8;b++)z.modules[b][6]==null&&(z.modules[b][6]=b%2==0);for(b=8;b<z.moduleCount-8;b++)z.modules[6][b]==null&&(z.modules[6][b]=b%2==0);b=z.errorCorrectLevel<<3|I;for(v=b<<10;yM(v)-yM(1335)>=0;)v^=1335<<yM(v)-yM(1335);b=(b<<10|v)^21522;for(v=0;v<15;v++)M=!l&&(b>>v&1)==1,v<6?z.modules[v][8]=M:v<8?z.modules[v+1][8]=M:z.modules[z.moduleCount-15+v][8]=M;for(v=0;v<15;v++)M=!l&&(b>>v&1)==1,v<8?z.modules[8][z.moduleCount-v-1]=M:v<9?z.modules[8][15-v-1+1]=M:z.modules[8][15-v-1]=M;z.modules[z.moduleCount-
8][8]=!l;if(z.typeNumber>=7){b=z.typeNumber;for(v=b<<12;yM(v)-yM(7973)>=0;)v^=7973<<yM(v)-yM(7973);b=b<<12|v;for(v=0;v<18;v++)M=!l&&(b>>v&1)==1,z.modules[Math.floor(v/3)][v%3+z.moduleCount-8-3]=M;for(v=0;v<18;v++)M=!l&&(b>>v&1)==1,z.modules[v%3+z.moduleCount-8-3][Math.floor(v/3)]=M}if(z.dataCache==null){v=z.typeNumber;M=z.dataList;l=z.errorCorrectLevel;b=s5W(v,l);if(b==void 0)throw Error("Ik`"+v+"`"+l);x=b.length/3;l=[];for(g=0;g<x;g++){G=b[g*3];u=b[g*3+1];for(var Z=b[g*3+2],H=0;H<G;H++)l.push(new qxq(u,
Z))}b=new iJC;for(x=0;x<M.length;x++)g=M[x],b.put(g.mode,4),b.put(g.getLength(),rvq(g.mode,v)),g.write(b);for(x=v=0;x<l.length;x++)v+=l[x].dataCount;if(b.length>v*8)throw Error("Ck`"+b.length+"`"+v*8);for(b.length+4<=v*8&&b.put(0,4);b.length%8!=0;)$ls(b,!1);for(;!(b.length>=v*8);){b.put(236,8);if(b.length>=v*8)break;b.put(17,8)}M=v=u=0;x=Array(l.length);g=Array(l.length);for(G=0;G<l.length;G++){H=l[G].dataCount;var y=l[G].totalCount-H;v=Math.max(v,H);M=Math.max(M,y);x[G]=Array(H);for(Z=0;Z<x[G].length;Z++)x[G][Z]=
255&b.buffer[Z+u];u+=H;Z=y;H=new Rd([1],0);for(y=0;y<Z;y++)H=H.multiply(new Rd([1,eCW(y)],0));Z=H;H=(new Rd(x[G],Z.getLength()-1)).mod(Z);g[G]=Array(Z.getLength()-1);for(Z=0;Z<g[G].length;Z++)y=Z+H.getLength()-g[G].length,g[G][Z]=y>=0?H.get(y):0}for(Z=b=0;Z<l.length;Z++)b+=l[Z].totalCount;b=Array(b);for(Z=u=0;Z<v;Z++)for(G=0;G<l.length;G++)Z<x[G].length&&(b[u++]=x[G][Z]);for(Z=0;Z<M;Z++)for(G=0;G<l.length;G++)Z<g[G].length&&(b[u++]=g[G][Z]);z.dataCache=b}l=z.dataCache;b=-1;v=z.moduleCount-1;M=7;x=
0;for(g=z.moduleCount-1;g>0;g-=2)for(g==6&&g--;;){for(G=0;G<2;G++)z.modules[v][g-G]==null&&(u=!1,x<l.length&&(u=(l[x]>>>M&1)==1),wKs(I,v,g-G)&&(u=!u),z.modules[v][g-G]=u,M--,M==-1&&(x++,M=7));v+=b;if(v<0||z.moduleCount<=v){v-=b;b=-b;break}}},PgK=function(z,l,I){for(var b=-1;b<=7;b++)if(!(l+b<=-1||z.moduleCount<=l+b))for(var v=-1;v<=7;v++)I+v<=-1||z.moduleCount<=I+v||(z.modules[l+b][I+v]=0<=b&&b<=6&&(v==0||v==6)||0<=v&&v<=6&&(b==0||b==6)||2<=b&&b<=4&&2<=v&&v<=4?!0:!1)},SxK=function(z){for(var l=0,
I=0,b=0;b<8;b++){cPc(z,!0,b);
var v=z;for(var M=v.moduleCount,x=0,g=0;g<M;g++)for(var G=0;G<M;G++){for(var u=0,Z=v.isDark(g,G),H=-1;H<=1;H++)if(!(g+H<0||M<=g+H))for(var y=-1;y<=1;y++)G+y<0||M<=G+y||(H!=0||y!=0)&&Z==v.isDark(g+H,G+y)&&u++;u>5&&(x+=3+u-5)}for(g=0;g<M-1;g++)for(G=0;G<M-1;G++)if(u=0,v.isDark(g,G)&&u++,v.isDark(g+1,G)&&u++,v.isDark(g,G+1)&&u++,v.isDark(g+1,G+1)&&u++,u==0||u==4)x+=3;for(g=0;g<M;g++)for(G=0;G<M-6;G++)v.isDark(g,G)&&!v.isDark(g,G+1)&&v.isDark(g,G+2)&&v.isDark(g,G+3)&&v.isDark(g,G+4)&&!v.isDark(g,G+5)&&
v.isDark(g,G+6)&&(x+=40);for(G=0;G<M;G++)for(g=0;g<M-6;g++)v.isDark(g,G)&&!v.isDark(g+1,G)&&v.isDark(g+2,G)&&v.isDark(g+3,G)&&v.isDark(g+4,G)&&!v.isDark(g+5,G)&&v.isDark(g+6,G)&&(x+=40);for(G=u=0;G<M;G++)for(g=0;g<M;g++)v.isDark(g,G)&&u++;v=x+=Math.abs(100*u/M/M-50)/5*10;if(b==0||l>v)l=v,I=b}return I},hCK=[[],
[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]],yM=function(z){for(var l=0;z!=0;)l++,z>>>=1;return l},wKs=function(z,l,I){switch(z){case 0:return(l+I)%2==0;
case 1:return l%2==0;case 2:return I%3==0;case 3:return(l+I)%3==0;case 4:return(Math.floor(l/2)+Math.floor(I/3))%2==0;case 5:return l*I%2+l*I%3==0;case 6:return(l*I%2+l*I%3)%2==0;case 7:return(l*I%3+(l+I)%2)%2==0;default:throw Error("Dk`"+z);}},rvq=function(z,l){if(1<=l&&l<10)switch(z){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ek`"+z);}else if(l<27)switch(z){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ek`"+z);}else if(l<41)switch(z){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ek`"+z);}else throw Error("Fk`"+l);},fa=function(z){if(z<1)throw Error("Gk`"+z);
return Avs[z]},eCW=function(z){for(;z<0;)z+=255;
for(;z>=256;)z-=255;return Ca[z]},Ca=Array(256),Avs=Array(256),W1y=0;W1y<8;W1y++)Ca[W1y]=1<<W1y;
for(var kg=8;kg<256;kg++)Ca[kg]=Ca[kg-4]^Ca[kg-5]^Ca[kg-6]^Ca[kg-8];for(var n4l=0;n4l<255;n4l++)Avs[Ca[n4l]]=n4l;Rd.prototype.get=function(z){return this.num[z]};
Rd.prototype.getLength=function(){return this.num.length};
Rd.prototype.multiply=function(z){for(var l=Array(this.getLength()+z.getLength()-1),I=0;I<this.getLength();I++)for(var b=0;b<z.getLength();b++)l[I+b]^=eCW(fa(this.get(I))+fa(z.get(b)));return new Rd(l,0)};
Rd.prototype.mod=function(z){if(this.getLength()-z.getLength()<0)return this;for(var l=fa(this.get(0))-fa(z.get(0)),I=Array(this.getLength()),b=0;b<this.getLength();b++)I[b]=this.get(b);for(b=0;b<z.getLength();b++)I[b]^=eCW(fa(z.get(b))+l);return(new Rd(I,0)).mod(z)};
var L1c=[[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]],s5W=function(z,l){switch(l){case 1:return L1c[(z-1)*4];case 0:return L1c[(z-1)*4+1];case 3:return L1c[(z-1)*4+2];case 2:return L1c[(z-1)*4+3]}};
iJC.prototype.get=function(z){return(this.buffer[Math.floor(z/8)]>>>7-z%8&1)==1};
iJC.prototype.put=function(z,l){for(var I=0;I<l;I++)$ls(this,(z>>>l-I-1&1)==1)};
var $ls=function(z,l){var I=Math.floor(z.length/8);z.buffer.length<=I&&z.buffer.push(0);l&&(z.buffer[I]|=128>>>z.length%8);z.length++},HS=[[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]],Yx4=function(){var z=function(l,I){this.JSC$19623__el=l;this.JSC$19623__htOption=I};
z.prototype.draw=function(l){function I(Z,H){Z=document.createElementNS("http://www.w3.org/2000/svg",Z);for(var y in H)H.hasOwnProperty(y)&&(y==="href"?_.Jr8(Z,H[y]):_.D1([_.Nj(Q54),_.Nj(Yl8),_.Nj(T7c),_.Nj(cvq),_.Nj(Sl1),_.Nj(dlX),_.Nj(o40)],Z,y,H[y]));return Z}
var b=this.JSC$19623__htOption,v=this.JSC$19623__el,M=l.moduleCount;this.clear();var x=I("svg",{viewBox:"0 0 "+String(M)+" "+String(M),width:"100%",height:"100%",fill:b.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});v.appendChild(x);x.appendChild(I("rect",{fill:b.colorLight,width:"100%",height:"100%"}));x.appendChild(I("rect",{fill:b.colorDark,width:"1",height:"1",id:"template"}));for(var g=0;g<M;g++)for(var G=0;G<M;G++)if(l.isDark(g,G)){var u=I("use",{x:String(g),y:String(G),href:"#template"});
x.appendChild(u)}};
z.prototype.clear=function(){for(;this.JSC$19623__el.hasChildNodes();)this.JSC$19623__el.removeChild(this.JSC$19623__el.lastChild)};
return z}(),Q8K=document.documentElement.tagName.toLowerCase()==="svg"?Yx4:typeof CanvasRenderingContext2D!="undefined"?function(){var z=function(l,I){this._bIsPainted=!1;
F2X();this.JSC$19623__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;l.appendChild(this._elCanvas);this.JSC$19623__el=l;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19623__el.appendChild(this._elImage);this._bSupportDataURI=null};
z.prototype._onMakeImage=function(){var l=this._elCanvas.toDataURL("image/png");this._elImage.src=l;this._elImage.style.display="block";this._elCanvas.style.display="none"};
z.prototype._safeSetDataURI=function(l,I){var b=this;b._fFail=I;b._fSuccess=l;b._bSupportDataURI===null?(l=_.tA("IMG"),I=function(){b._bSupportDataURI=!1;b._fFail&&b._fFail.call(b)},l.onabort=I,l.onerror=I,l.onload=function(){b._bSupportDataURI=!0;
b._fSuccess&&b._fSuccess.call(b)},l.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):b._bSupportDataURI===!0&&b._fSuccess?b._fSuccess.call(b):b._bSupportDataURI===!1&&b._fFail&&b._fFail.call(b)};
z.prototype.draw=function(l){var I=this._oContext,b=this.JSC$19623__htOption,v=l.moduleCount,M=b.width/v,x=b.height/v,g=Math.round(M),G=Math.round(x);this._elImage.style.display="none";this.clear();for(var u=0;u<v;u++)for(var Z=0;Z<v;Z++){var H=l.isDark(u,Z),y=Z*M,f=u*x;I.strokeStyle=H?b.colorDark:b.colorLight;I.lineWidth=1;I.fillStyle=H?b.colorDark:b.colorLight;I.fillRect(y,f,M,x);I.strokeRect(Math.floor(y)+.5,Math.floor(f)+.5,g,G);I.strokeRect(Math.ceil(y)-.5,Math.ceil(f)-.5,g,G)}this._bIsPainted=
!0};
z.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
z.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
z.prototype.round=function(l){return l?Math.floor(l*1E3)/1E3:l};
return z}():function(){var z=function(l,I){this.JSC$19623__el=l;
this.JSC$19623__htOption=I};
z.prototype.draw=function(l){for(var I=this.JSC$19623__htOption,b=this.JSC$19623__el,v=l.moduleCount,M=Math.floor(I.width/v),x=Math.floor(I.height/v),g=['<table style="border:0;border-collapse:collapse;">'],G=0;G<v;G++){g.push("<tr>");for(var u=0;u<v;u++)g.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+M+"px;height:"+x+"px;background-color:"+(l.isDark(G,u)?I.colorDark:I.colorLight)+';"></td>');g.push("</tr>")}g.push("</table>");l=g.join("");l=_.eIn(_.Apu,l);_.p4(b,l);
l=b.childNodes[0];v=(I.width-l.offsetWidth)/2;M=(I.height-l.offsetHeight)/2;v>0&&M>0&&(l.style.margin=M+"px "+v+"px")};
z.prototype.clear=function(){this.JSC$19623__el.textContent=""};
return z}();
dX1.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19626__android||this.JSC$19626__android>=3)&&this._oDrawing.makeImage()};
dX1.prototype.clear=function(){this._oDrawing.clear()};
_.v7.QRCode=dX1;var UlC={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var RT=function(){};
RT.prototype.stringify=function(z){return _.v7.JSON.stringify(z,void 0)};
RT.prototype.parse=function(z){return _.v7.JSON.parse(z,void 0)};var aj1=function(){_.Y9.call(this,"z")};
_.Gs(aj1,_.Y9);var VHK=function(){_.Y9.call(this,"y")};
_.Gs(VHK,_.Y9);var j5K=null,JvX=function(){return j5K=j5K||new _.oW},zUq=function(z){_.Y9.call(this,"serverreachability",z)};
_.Gs(zUq,_.Y9);var m_=function(z){var l=JvX();l.dispatchEvent(new zUq(l,z))},liX=function(z,l){_.Y9.call(this,"statevent",z);
this.stat=l};
_.Gs(liX,_.Y9);var Ka=function(z){var l=JvX();l.dispatchEvent(new liX(l,z))},Iic=function(z,l,I,b){_.Y9.call(this,"timingevent",z);
this.size=l;this.rtt=I;this.retries=b};
_.Gs(Iic,_.Y9);var bR8=function(z,l,I){var b=JvX();b.dispatchEvent(new Iic(b,z,l,I))},t_=function(z,l){if(typeof z!=="function")throw Error("Kk");
return _.v7.setTimeout(function(){z()},l)};var BS=function(){this.redactEnabled_=!0};
BS.prototype.disableRedact=function(){this.redactEnabled_=!1};
var vby=function(z,l,I,b,v,M){z.info(function(){if(z.redactEnabled_)if(M){var x="";for(var g=M.split("&"),G=0;G<g.length;G++){var u=g[G].split("=");if(u.length>1){var Z=u[0];u=u[1];var H=Z.split("_");x=H.length>=2&&H[1]=="type"?x+(Z+"="+u+"&"):x+(Z+"=redacted&")}}}else x=null;else x=M;return"XMLHTTP REQ ("+b+") [attempt "+v+"]: "+l+"\n"+I+"\n"+x})},MFK=function(z,l,I,b,v,M,x){z.info(function(){return"XMLHTTP RESP ("+b+") [ attempt "+v+"]: "+l+"\n"+I+"\n"+M+" "+x})},Xi=function(z,l,I,b){z.info(function(){return"XMLHTTP TEXT ("+
l+"): "+poK(z,I)+(b?" "+b:"")})},DY4=function(z,l){z.info(function(){return"TIMEOUT: "+l})};
BS.prototype.debug=function(){};
BS.prototype.info=function(){};
BS.prototype.warning=function(){};
var poK=function(z,l){if(!z.redactEnabled_)return l;if(!l)return null;try{var I=JSON.parse(l);if(I)for(var b=0;b<I.length;b++)if(Array.isArray(I[b])){var v=I[b];if(!(v.length<2)){var M=v[1];if(Array.isArray(M)&&!(M.length<1)){var x=M[0];if(x!="noop"&&x!="stop"&&x!="close")for(var g=1;g<M.length;g++)M[g]=""}}}return(0,_.wO)(I)}catch(G){return z.debug("Exception parsing expected JS array - probably was not JS"),l}};var qE=function(z,l,I,b,v){this.JSC$19648_channel_=z;this.JSC$19648_channelDebug_=l;this.sid_=I;this.JSC$19648_rid_=b;this.JSC$19648_retryId_=v||1;this.JSC$19648_eventHandler_=new _.GR(this);this.timeout_=45E3;this.JSC$19648_extraHeaders_=null;this.JSC$19648_successful_=!1;this.JSC$19648_postData_=this.JSC$19648_requestUri_=this.JSC$19648_baseUri_=this.JSC$19648_type_=this.JSC$19648_requestStartTime_=this.JSC$19648_watchDogTimeoutTime_=this.JSC$19648_watchDogTimerId_=null;this.JSC$19648_pendingMessages_=
[];this.JSC$19648_xmlHttp_=null;this.JSC$19648_xmlHttpChunkStart_=0;this.JSC$19648_lastError_=this.JSC$19648_verb_=null;this.JSC$19648_lastStatusCode_=-1;this.JSC$19648_cancelled_=!1;this.JSC$19648_readyStateChangeThrottleMs_=0;this.JSC$19648_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new xYc},xYc=function(){this.JSC$19650_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},ORW=function(z,l){switch(z){case 0:return"Non-200 return code ("+l+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},gbW={},GrF={};
qE.prototype.setTimeout=function(z){this.timeout_=z};
var EbS=function(z,l,I){z.JSC$19648_type_=1;z.JSC$19648_baseUri_=_.Km(l.clone());z.JSC$19648_postData_=I;z.decodeChunks_=!0;NBq(z,null)},NBq=function(z,l){z.JSC$19648_requestStartTime_=Date.now();
uZc(z);z.JSC$19648_requestUri_=z.JSC$19648_baseUri_.clone();G7(z.JSC$19648_requestUri_,"t",z.JSC$19648_retryId_);z.JSC$19648_xmlHttpChunkStart_=0;var I=z.JSC$19648_channel_.JSC$19667_supportsCrossDomainXhrs_;z.fetchResponseState_=new xYc;z.JSC$19648_xmlHttp_=ZRK(z.JSC$19648_channel_,I?l:null,!z.JSC$19648_postData_);z.JSC$19648_readyStateChangeThrottleMs_>0&&(z.JSC$19648_readyStateChangeThrottle_=new _.zD((0,_.YN)(z.JSC$19652_xmlHttpHandler_,z,z.JSC$19648_xmlHttp_),z.JSC$19648_readyStateChangeThrottleMs_));
z.JSC$19648_eventHandler_.listen(z.JSC$19648_xmlHttp_,"readystatechange",z.JSC$19652_readyStateChangeHandler_);l=z.JSC$19648_extraHeaders_?_.h7.clone(z.JSC$19648_extraHeaders_):{};z.JSC$19648_postData_?(z.JSC$19648_verb_||(z.JSC$19648_verb_="POST"),l["Content-Type"]="application/x-www-form-urlencoded",z.JSC$19648_xmlHttp_.send(z.JSC$19648_requestUri_,z.JSC$19648_verb_,z.JSC$19648_postData_,l)):(z.JSC$19648_verb_="GET",z.JSC$19648_xmlHttp_.send(z.JSC$19648_requestUri_,z.JSC$19648_verb_,null,l));m_(1);
vby(z.JSC$19648_channelDebug_,z.JSC$19648_verb_,z.JSC$19648_requestUri_,z.JSC$19648_rid_,z.JSC$19648_retryId_,z.JSC$19648_postData_)};
qE.prototype.JSC$19652_readyStateChangeHandler_=function(z){z=z.target;var l=this.JSC$19648_readyStateChangeThrottle_;l&&_.Wn(z)==3?(this.JSC$19648_channelDebug_.debug("Throttling readystatechange."),l.fire()):this.JSC$19652_xmlHttpHandler_(z)};
qE.prototype.JSC$19652_xmlHttpHandler_=function(z){try{z==this.JSC$19648_xmlHttp_?HR4(this):this.JSC$19648_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(l){this.JSC$19648_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),yil(this)}finally{}};
var HR4=function(z){var l=_.Wn(z.JSC$19648_xmlHttp_),I=z.JSC$19648_xmlHttp_.JSC$9797_lastErrorCode_,b=z.JSC$19648_xmlHttp_.getStatus();if(!(l<3||l==3&&!yil(z))){z.JSC$19648_cancelled_||l!=4||I==7||(I==8||b<=0?m_(3):m_(2));fiK(z);var v=z.JSC$19648_xmlHttp_.getStatus();z.JSC$19648_lastStatusCode_=v;I=CXq(z);yil(z)||z.JSC$19648_channelDebug_.debug(function(){return"No response text for uri "+z.JSC$19648_requestUri_+" status "+v});
z.JSC$19648_successful_=v==200;MFK(z.JSC$19648_channelDebug_,z.JSC$19648_verb_,z.JSC$19648_requestUri_,z.JSC$19648_rid_,z.JSC$19648_retryId_,l,v);if(z.JSC$19648_successful_){if(z.decodeInitialResponse_&&!z.initialResponseDecoded_)if(b=krX(z))Xi(z.JSC$19648_channelDebug_,z.JSC$19648_rid_,b,"Initial handshake response via X-HTTP-Initial-Response"),z.initialResponseDecoded_=!0,RUy(z,b);else{z.JSC$19648_successful_=!1;z.JSC$19648_lastError_=3;Ka(12);z.JSC$19648_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
z.JSC$19648_rid_+")");ik(z);Fi(z);return}z.decodeChunks_?mY8(z,l,I):(Xi(z.JSC$19648_channelDebug_,z.JSC$19648_rid_,I,null),RUy(z,I));l==4&&ik(z);z.JSC$19648_successful_&&!z.JSC$19648_cancelled_&&(l==4?KjK(z.JSC$19648_channel_,z):(z.JSC$19648_successful_=!1,uZc(z)))}else xNl(z.JSC$19648_xmlHttp_),v==400&&I.indexOf("Unknown SID")>0?(z.JSC$19648_lastError_=3,Ka(12),z.JSC$19648_channelDebug_.warning("XMLHTTP Unknown SID ("+z.JSC$19648_rid_+")")):(z.JSC$19648_lastError_=0,Ka(13),z.JSC$19648_channelDebug_.warning("XMLHTTP Bad status "+
v+" ("+z.JSC$19648_rid_+")")),ik(z),Fi(z)}},krX=function(z){return z.JSC$19648_xmlHttp_&&(z=gF(z.JSC$19648_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.gf(z)?z:null},CXq=function(z){if(!tFK(z))return z.JSC$19648_xmlHttp_.getResponseText();
var l=z.JSC$19648_xmlHttp_.getResponse();if(l==="")return"";var I="",b=l.length,v=_.Wn(z.JSC$19648_xmlHttp_)==4;if(!z.fetchResponseState_.JSC$19650_textDecoder){if(typeof TextDecoder==="undefined")return ik(z),Fi(z),"";z.fetchResponseState_.JSC$19650_textDecoder=new _.v7.TextDecoder}for(var M=0;M<b;M++)z.fetchResponseState_.responseArrivedForFetch=!0,I+=z.fetchResponseState_.JSC$19650_textDecoder.decode(l[M],{stream:!(v&&M==b-1)});l.length=0;z.fetchResponseState_.responseBuffer+=I;z.JSC$19648_xmlHttpChunkStart_=
0;return z.fetchResponseState_.responseBuffer},yil=function(z){return z.JSC$19648_xmlHttp_?z.fetchResponseState_.responseArrivedForFetch?!0:!(!z.JSC$19648_xmlHttp_.getResponseText()&&!z.JSC$19648_xmlHttp_.getResponse()):!1},tFK=function(z){return z.JSC$19648_xmlHttp_?z.JSC$19648_verb_=="GET"&&z.JSC$19648_type_!=2&&z.JSC$19648_channel_.usesFetchStreams_:!1},mY8=function(z,l,I){for(var b=!0,v;!z.JSC$19648_cancelled_&&z.JSC$19648_xmlHttpChunkStart_<I.length;)if(v=BBl(z,I),v==GrF){l==4&&(z.JSC$19648_lastError_=
4,Ka(14),b=!1);
Xi(z.JSC$19648_channelDebug_,z.JSC$19648_rid_,null,"[Incomplete Response]");break}else if(v==gbW){z.JSC$19648_lastError_=4;Ka(15);Xi(z.JSC$19648_channelDebug_,z.JSC$19648_rid_,I,"[Invalid Chunk]");b=!1;break}else Xi(z.JSC$19648_channelDebug_,z.JSC$19648_rid_,v,null),RUy(z,v);tFK(z)&&z.JSC$19648_xmlHttpChunkStart_!=0&&(z.fetchResponseState_.responseBuffer=z.fetchResponseState_.responseBuffer.slice(z.JSC$19648_xmlHttpChunkStart_),z.JSC$19648_xmlHttpChunkStart_=0);l!=4||I.length!=0||z.fetchResponseState_.responseArrivedForFetch||
(z.JSC$19648_lastError_=1,Ka(16),b=!1);z.JSC$19648_successful_=z.JSC$19648_successful_&&b;b?I.length>0&&!z.firstByteReceived_&&(z.firstByteReceived_=!0,l=z.JSC$19648_channel_,l.JSC$19667_backChannelRequest_==z&&l.detectBufferingProxy_&&!l.bpDetectionDone_&&(l.JSC$19667_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),Xoc(l),l.bpDetectionDone_=!0,Ka(11))):(Xi(z.JSC$19648_channelDebug_,z.JSC$19648_rid_,I,"[Invalid Chunked Response]"),ik(z),Fi(z))},BBl=function(z,l){var I=
z.JSC$19648_xmlHttpChunkStart_,b=l.indexOf("\n",I);
if(b==-1)return GrF;I=Number(l.substring(I,b));if(isNaN(I))return gbW;b+=1;if(b+I>l.length)return GrF;l=l.slice(b,b+I);z.JSC$19648_xmlHttpChunkStart_=b+I;return l};
qE.prototype.cancel=function(){this.JSC$19648_cancelled_=!0;ik(this)};
var uZc=function(z){z.JSC$19648_watchDogTimeoutTime_=Date.now()+z.timeout_;qeK(z,z.timeout_)},qeK=function(z,l){if(z.JSC$19648_watchDogTimerId_!=null)throw Error("Lk");
z.JSC$19648_watchDogTimerId_=t_((0,_.YN)(z.JSC$19652_onWatchDogTimeout_,z),l)},fiK=function(z){z.JSC$19648_watchDogTimerId_&&(_.v7.clearTimeout(z.JSC$19648_watchDogTimerId_),z.JSC$19648_watchDogTimerId_=null)};
qE.prototype.JSC$19652_onWatchDogTimeout_=function(){this.JSC$19648_watchDogTimerId_=null;var z=Date.now();z-this.JSC$19648_watchDogTimeoutTime_>=0?(DY4(this.JSC$19648_channelDebug_,this.JSC$19648_requestUri_),this.JSC$19648_type_!=2&&(m_(3),Ka(17)),ik(this),this.JSC$19648_lastError_=2,Fi(this)):(this.JSC$19648_channelDebug_.warning("WatchDog timer called too early"),qeK(this,this.JSC$19648_watchDogTimeoutTime_-z))};
var Fi=function(z){z.JSC$19648_channel_.state_==0||z.JSC$19648_cancelled_||KjK(z.JSC$19648_channel_,z)},ik=function(z){fiK(z);
_.p0(z.JSC$19648_readyStateChangeThrottle_);z.JSC$19648_readyStateChangeThrottle_=null;z.JSC$19648_eventHandler_.removeAll();if(z.JSC$19648_xmlHttp_){var l=z.JSC$19648_xmlHttp_;z.JSC$19648_xmlHttp_=null;l.abort();l.dispose()}};
qE.prototype.getLastError=function(){return this.JSC$19648_lastError_};
var RUy=function(z,l){try{var I=z.JSC$19648_channel_;if(I.state_!=0&&(I.JSC$19667_backChannelRequest_==z||iRX(I.forwardChannelRequestPool_,z)))if(!z.initialResponseDecoded_&&iRX(I.forwardChannelRequestPool_,z)&&I.state_==3){try{var b=I.wireCodec_.JSC$19662_parser_.parse(l)}catch(g){b=null}if(Array.isArray(b)&&b.length==3){l=b;if(l[0]==0)a:if(I.JSC$19667_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$19667_backChannelTimerId_)I.JSC$19667_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$19667_backChannelRequest_)if(I.JSC$19667_backChannelRequest_.JSC$19648_requestStartTime_+3E3<z.JSC$19648_requestStartTime_)Fjs(I),QpW(I);else break a;else I.JSC$19667_channelDebug_.warning("We do not have a BackChannel established");Yey(I);Ka(18)}else{I.JSC$19667_lastPostResponseArrayId_=l[1];var v=I.JSC$19667_lastPostResponseArrayId_-I.JSC$19667_lastArrayId_;if(0<v){var M=l[2];I.JSC$19667_channelDebug_.debug(M+" bytes (in "+v+" arrays) are outstanding on the BackChannel");M<37500&&
I.enableStreaming_&&I.JSC$19667_backChannelRetryCount_==0&&!I.JSC$19667_deadBackChannelTimerId_&&(I.JSC$19667_deadBackChannelTimerId_=t_((0,_.YN)(I.JSC$19669_onBackChannelDead_,I),6E3))}}if(TBK(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(g){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$19667_channelDebug_.debug("Bad POST response data returned"),QM(I,11)}else if((z.initialResponseDecoded_||I.JSC$19667_backChannelRequest_==
z)&&Fjs(I),!_.gf(l)){var x=I.wireCodec_.JSC$19662_parser_.parse(l);I.onInput_(x,z)}m_(4)}catch(g){}};var ciW=function(z,l){this.JSC$19655_mapId=z;this.map=l;this.context=null};var SeF=function(z){this.maxPoolSizeConfigured_=z||10;_.v7.PerformanceNavigationTiming?(z=_.v7.performance.getEntriesByType("navigation"),z=z.length>0&&(z[0].nextHopProtocol=="hq"||z[0].nextHopProtocol=="h2")):z=!!(_.v7.chrome&&_.v7.chrome.loadTimes&&_.v7.chrome.loadTimes()&&_.v7.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19658_maxSize_=z?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19658_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19658_request_=null;this.JSC$19658_pendingMessages_=
[]},dY1=function(z){return z.JSC$19658_request_?!0:z.requestPool_?z.requestPool_.size>=z.JSC$19658_maxSize_:!1},TBK=function(z){return z.JSC$19658_request_?1:z.requestPool_?z.requestPool_.size:0},iRX=function(z,l){return z.JSC$19658_request_?z.JSC$19658_request_==l:z.requestPool_?z.requestPool_.has(l):!1},obK=function(z,l){z.requestPool_?z.requestPool_.add(l):z.JSC$19658_request_=l},PX8=function(z,l){z.JSC$19658_request_&&z.JSC$19658_request_==l?z.JSC$19658_request_=null:z.requestPool_&&z.requestPool_.has(l)&&
z.requestPool_.delete(l)};
SeF.prototype.cancel=function(){this.JSC$19658_pendingMessages_=hUK(this);if(this.JSC$19658_request_)this.JSC$19658_request_.cancel(),this.JSC$19658_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var z=_.D(this.requestPool_.values()),l=z.next();!l.done;l=z.next())l.value.cancel();this.requestPool_.clear()}};
var hUK=function(z){if(z.JSC$19658_request_!=null)return z.JSC$19658_pendingMessages_.concat(z.JSC$19658_request_.JSC$19648_pendingMessages_);if(z.requestPool_!=null&&z.requestPool_.size!==0){var l=z.JSC$19658_pendingMessages_;z=_.D(z.requestPool_.values());for(var I=z.next();!I.done;I=z.next())l=l.concat(I.value.JSC$19648_pendingMessages_);return l}return _.ex(z.JSC$19658_pendingMessages_)},spW=function(z,l){z.JSC$19658_pendingMessages_=z.JSC$19658_pendingMessages_.concat(l)};var ric=function(z,l){var I=new BS;I.debug("TestLoadImage: loading "+z);if(_.v7.Image){var b=new Image;b.onload=_.tH(Yg,I,"TestLoadImage: loaded",!0,l,b);b.onerror=_.tH(Yg,I,"TestLoadImage: error",!1,l,b);b.onabort=_.tH(Yg,I,"TestLoadImage: abort",!1,l,b);b.ontimeout=_.tH(Yg,I,"TestLoadImage: timeout",!1,l,b);_.v7.setTimeout(function(){if(b.ontimeout)b.ontimeout()},1E4);
b.src=z}else l(!1)},$Ys=function(z,l){var I=new BS,b=new AbortController,v=setTimeout(function(){b.abort();
Yg(I,"TestPingServer: timeout",!1,l)},1E4);
fetch(z,{signal:b.signal}).then(function(M){clearTimeout(v);M.ok?Yg(I,"TestPingServer: ok",!0,l):Yg(I,"TestPingServer: server error",!1,l)}).catch(function(){clearTimeout(v);
Yg(I,"TestPingServer: error",!1,l)})},Yg=function(z,l,I,b,v){try{z.debug(l),v&&(v.onload=null,v.onerror=null,v.onabort=null,v.ontimeout=null),b(I)}catch(M){}};var eUW=function(){this.JSC$19662_parser_=new RT};var TV=function(z,l,I){return I&&I.internalChannelParams?I.internalChannelParams[z]||l:l},cS=function(z){this.serverVersion_=0;
this.JSC$19667_outgoingMaps_=[];this.JSC$19667_channelDebug_=new BS;this.JSC$19667_hostPrefix_=this.JSC$19667_backChannelUri_=this.JSC$19667_forwardChannelUri_=this.JSC$19667_path_=this.JSC$19667_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19667_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19667_extraHeaders_=null;this.JSC$19667_nextMapId_=this.JSC$19667_nextRid_=0;this.JSC$19667_failFast_=TV("failFast",!1,z);this.enableStreaming_=this.JSC$19667_deadBackChannelTimerId_=
this.JSC$19667_backChannelTimerId_=this.JSC$19667_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19667_lastPostResponseArrayId_=this.JSC$19667_lastArrayId_=-1;this.JSC$19667_backChannelAttemptId_=this.JSC$19667_backChannelRetryCount_=this.JSC$19667_forwardChannelRetryCount_=0;this.JSC$19667_baseRetryDelayMs_=TV("baseRetryDelayMs",5E3,z);this.JSC$19667_retryDelaySeedMs_=TV("retryDelaySeedMs",1E4,z);this.JSC$19667_forwardChannelMaxRetries_=
TV("forwardChannelMaxRetries",2,z);this.JSC$19667_forwardChannelRequestTimeoutMs_=TV("forwardChannelRequestTimeoutMs",2E4,z);this.JSC$19667_xmlHttpFactory_=z&&z.xmlHttpFactory||void 0;this.networkTestUrl_=z&&z.networkTestUrl||void 0;this.usesFetchStreams_=z&&z.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19667_supportsCrossDomainXhrs_=z&&z.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new SeF(z&&z.concurrentRequestLimit);this.wireCodec_=new eUW;this.fastHandshake_=
z&&z.fastHandshake||!1;this.encodeInitMessageHeaders_=z&&z.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19667_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=z&&z.blockingHandshake||!1;z&&z.disableRedact&&this.JSC$19667_channelDebug_.disableRedact();z&&z.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
z&&z.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;z&&z.longPollingTimeout&&z.longPollingTimeout>0&&(this.longPollingTimeout_=z.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
cS.prototype.JSC$19669_channelVersion_=8;cS.prototype.state_=1;
cS.prototype.connect=function(z,l,I,b){this.JSC$19667_channelDebug_.debug("connect()");Ka(0);this.JSC$19667_path_=z;this.JSC$19667_extraParams_=l||{};I&&b!==void 0&&(this.JSC$19667_extraParams_.OSID=I,this.JSC$19667_extraParams_.OAID=b);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19667_channelDebug_.debug("connectChannel_()");z=wo4(this,null,this.JSC$19667_path_);this.JSC$19667_channelDebug_.debug("GetForwardChannelUri: "+z);this.JSC$19667_forwardChannelUri_=z;Ai4(this)};
cS.prototype.disconnect=function(){this.JSC$19667_channelDebug_.debug("disconnect()");WjX(this);if(this.state_==3){var z=this.JSC$19667_nextRid_++,l=this.JSC$19667_forwardChannelUri_.clone();_.V9(l,"SID",this.sid_);_.V9(l,"RID",z);_.V9(l,"TYPE","terminate");SE(this,l);z=new qE(this,this.JSC$19667_channelDebug_,this.sid_,z);z.JSC$19648_type_=2;z.JSC$19648_baseUri_=_.Km(l.clone());l=!1;if(_.v7.navigator&&_.v7.navigator.sendBeacon)try{l=_.v7.navigator.sendBeacon(z.JSC$19648_baseUri_.toString(),"")}catch(I){}!l&&
_.v7.Image&&((new Image).src=z.JSC$19648_baseUri_,l=!0);l||(z.JSC$19648_xmlHttp_=ZRK(z.JSC$19648_channel_,null),z.JSC$19648_xmlHttp_.send(z.JSC$19648_baseUri_));z.JSC$19648_requestStartTime_=Date.now();uZc(z)}nbK(this)};
var QpW=function(z){z.JSC$19667_backChannelRequest_&&(Xoc(z),z.JSC$19667_backChannelRequest_.cancel(),z.JSC$19667_backChannelRequest_=null)},WjX=function(z){QpW(z);
z.JSC$19667_backChannelTimerId_&&(_.v7.clearTimeout(z.JSC$19667_backChannelTimerId_),z.JSC$19667_backChannelTimerId_=null);Fjs(z);z.forwardChannelRequestPool_.cancel();z.JSC$19667_forwardChannelTimerId_&&(typeof z.JSC$19667_forwardChannelTimerId_==="number"&&_.v7.clearTimeout(z.JSC$19667_forwardChannelTimerId_),z.JSC$19667_forwardChannelTimerId_=null)};
cS.prototype.getState=function(){return this.state_};
var Ai4=function(z){dY1(z.forwardChannelRequestPool_)||z.JSC$19667_forwardChannelTimerId_||(z.JSC$19667_forwardChannelTimerId_=!0,_.hz(z.JSC$19669_onStartForwardChannelTimer_,z),z.JSC$19667_forwardChannelRetryCount_=0)},UYq=function(z,l){if(TBK(z.forwardChannelRequestPool_)>=z.forwardChannelRequestPool_.JSC$19658_maxSize_-(z.JSC$19667_forwardChannelTimerId_?1:0))return!1;
if(z.JSC$19667_forwardChannelTimerId_)return z.JSC$19667_channelDebug_.debug("Use the retry request that is already scheduled."),z.JSC$19667_outgoingMaps_=l.JSC$19648_pendingMessages_.concat(z.JSC$19667_outgoingMaps_),!0;if(z.state_==1||z.state_==2||z.JSC$19667_forwardChannelRetryCount_>=(z.JSC$19667_failFast_?0:z.JSC$19667_forwardChannelMaxRetries_))return!1;z.JSC$19667_channelDebug_.debug("Going to retry POST");z.JSC$19667_forwardChannelTimerId_=t_((0,_.YN)(z.JSC$19669_onStartForwardChannelTimer_,
z,l),LjW(z,z.JSC$19667_forwardChannelRetryCount_));z.JSC$19667_forwardChannelRetryCount_++;return!0};
cS.prototype.JSC$19669_onStartForwardChannelTimer_=function(z){if(this.JSC$19667_forwardChannelTimerId_)if(this.JSC$19667_forwardChannelTimerId_=null,this.JSC$19667_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!z){this.JSC$19667_channelDebug_.debug("open_()");this.JSC$19667_nextRid_=Math.floor(Math.random()*1E5);z=this.JSC$19667_nextRid_++;var l=new qE(this,this.JSC$19667_channelDebug_,"",z),I=this.JSC$19667_extraHeaders_;this.initHeaders_&&(I?(I=_.h7.clone(I),_.h7.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(l.JSC$19648_extraHeaders_=I,I=null);var b;if(this.fastHandshake_)a:{for(var v=b=0;v<this.JSC$19667_outgoingMaps_.length;v++){b:{var M=this.JSC$19667_outgoingMaps_[v];if("__data__"in M.map&&(M=M.map.__data__,typeof M==="string")){M=M.length;break b}M=void 0}if(M===void 0)break;b+=M;if(b>4096){b=v;break a}if(b===4096||v===this.JSC$19667_outgoingMaps_.length-1){b=v+1;break a}}b=1E3}else b=1E3;b=ai1(this,l,b);
v=this.JSC$19667_forwardChannelUri_.clone();_.V9(v,"RID",z);_.V9(v,"CVER",22);this.httpSessionIdParam_&&_.V9(v,"X-HTTP-Session-Id",this.httpSessionIdParam_);SE(this,v);I&&(this.encodeInitMessageHeaders_?b="headers="+_.LP(E9c(I))+"&"+b:this.httpHeadersOverwriteParam_&&uSl(v,this.httpHeadersOverwriteParam_,I));obK(this.forwardChannelRequestPool_,l);this.blockingHandshake_&&_.V9(v,"TYPE","init");this.fastHandshake_?(_.V9(v,"$req",b),_.V9(v,"SID","null"),l.decodeInitialResponse_=!0,EbS(l,v,null)):EbS(l,
v,b);this.state_=2}}else this.state_==3&&(z?VF0(this,z):this.JSC$19667_outgoingMaps_.length==0?this.JSC$19667_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):dY1(this.forwardChannelRequestPool_)||(VF0(this),this.JSC$19667_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var VF0=function(z,l){var I;l?I=l.JSC$19648_rid_:I=z.JSC$19667_nextRid_++;var b=z.JSC$19667_forwardChannelUri_.clone();_.V9(b,"SID",z.sid_);_.V9(b,"RID",I);_.V9(b,"AID",z.JSC$19667_lastArrayId_);SE(z,b);z.httpHeadersOverwriteParam_&&z.JSC$19667_extraHeaders_&&uSl(b,z.httpHeadersOverwriteParam_,z.JSC$19667_extraHeaders_);I=new qE(z,z.JSC$19667_channelDebug_,z.sid_,I,z.JSC$19667_forwardChannelRetryCount_+1);z.httpHeadersOverwriteParam_===null&&(I.JSC$19648_extraHeaders_=z.JSC$19667_extraHeaders_);l&&
(z.JSC$19667_outgoingMaps_=l.JSC$19648_pendingMessages_.concat(z.JSC$19667_outgoingMaps_));l=ai1(z,I,1E3);I.setTimeout(Math.round(z.JSC$19667_forwardChannelRequestTimeoutMs_*.5)+Math.round(z.JSC$19667_forwardChannelRequestTimeoutMs_*.5*Math.random()));obK(z.forwardChannelRequestPool_,I);EbS(I,b,l)},SE=function(z,l){z.JSC$19667_extraParams_&&_.h7.forEach(z.JSC$19667_extraParams_,function(I,b){_.V9(l,b,I)});
z.handler_&&_.h7.forEach({},function(I,b){_.V9(l,b,I)})},ai1=function(z,l,I){I=Math.min(z.JSC$19667_outgoingMaps_.length,I);
var b=z.handler_?(0,_.YN)(z.handler_.JSC$19673_badMapError,z.handler_,z):null;a:{for(var v=z.JSC$19667_outgoingMaps_,M=-1;;){var x=["count="+I];M==-1?I>0?(M=v[0].JSC$19655_mapId,x.push("ofs="+M)):M=0:x.push("ofs="+M);for(var g=!0,G=0;G<I;G++){var u=v[G].JSC$19655_mapId,Z=v[G].map;u-=M;if(u<0)M=Math.max(0,v[G].JSC$19655_mapId-100),g=!1;else try{u="req"+u+"_"||"";try{var H=Z instanceof Map?Z:Object.entries(Z);for(var y=_.D(H),f=y.next();!f.done;f=y.next()){var R=_.D(f.value),F=R.next().value,Y=R.next().value,
c=Y;_.Lu(Y)&&(c=(0,_.wO)(Y));x.push(u+F+"="+encodeURIComponent(c))}}catch(d){throw x.push(u+"type="+encodeURIComponent("_badmap")),d;}}catch(d){b&&b(Z)}}if(g){H=x.join("&");break a}}H=void 0}z=z.JSC$19667_outgoingMaps_.splice(0,I);l.JSC$19648_pendingMessages_=z;return H},jpy=function(z){z.JSC$19667_backChannelRequest_||z.JSC$19667_backChannelTimerId_||(z.JSC$19667_backChannelAttemptId_=1,_.hz(z.JSC$19669_onStartBackChannelTimer_,z),z.JSC$19667_backChannelRetryCount_=0)},Yey=function(z){if(z.JSC$19667_backChannelRequest_||
z.JSC$19667_backChannelTimerId_||z.JSC$19667_backChannelRetryCount_>=3)return!1;
z.JSC$19667_channelDebug_.debug("Going to retry GET");z.JSC$19667_backChannelAttemptId_++;z.JSC$19667_backChannelTimerId_=t_((0,_.YN)(z.JSC$19669_onStartBackChannelTimer_,z),LjW(z,z.JSC$19667_backChannelRetryCount_));z.JSC$19667_backChannelRetryCount_++;return!0};
cS.prototype.JSC$19669_onStartBackChannelTimer_=function(){this.JSC$19667_backChannelTimerId_=null;JiX(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19667_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19667_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19667_backChannelRequest_+" "+this.handshakeRttMs_);else{var z=4*this.handshakeRttMs_;this.JSC$19667_channelDebug_.info("BP detection timer enabled: "+z);this.bpDetectionTimerId_=t_((0,_.YN)(this.onBpDetectionTimer_,
this),z)}};
cS.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19667_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19667_backChannelRequest_.JSC$19648_xmlHttp_!=null){var z=this.JSC$19667_backChannelRequest_.JSC$19648_xmlHttp_.getResponseText();z&&this.JSC$19667_channelDebug_.warning("Timer should have been cancelled : "+z)}this.JSC$19667_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ka(10);QpW(this);JiX(this)}else this.JSC$19667_channelDebug_.warning("Invalid operation.")};
var Xoc=function(z){z.bpDetectionTimerId_!=null&&(z.JSC$19667_channelDebug_.debug("Cancel the BP detection timer."),_.v7.clearTimeout(z.bpDetectionTimerId_),z.bpDetectionTimerId_=null)},JiX=function(z){z.JSC$19667_channelDebug_.debug("Creating new HttpRequest");
z.JSC$19667_backChannelRequest_=new qE(z,z.JSC$19667_channelDebug_,z.sid_,"rpc",z.JSC$19667_backChannelAttemptId_);z.httpHeadersOverwriteParam_===null&&(z.JSC$19667_backChannelRequest_.JSC$19648_extraHeaders_=z.JSC$19667_extraHeaders_);z.JSC$19667_backChannelRequest_.JSC$19648_readyStateChangeThrottleMs_=0;var l=z.JSC$19667_backChannelUri_.clone();_.V9(l,"RID","rpc");_.V9(l,"SID",z.sid_);_.V9(l,"AID",z.JSC$19667_lastArrayId_);_.V9(l,"CI",z.enableStreaming_?"0":"1");!z.enableStreaming_&&z.longPollingTimeout_&&
_.V9(l,"TO",z.longPollingTimeout_);_.V9(l,"TYPE","xmlhttp");SE(z,l);z.httpHeadersOverwriteParam_&&z.JSC$19667_extraHeaders_&&uSl(l,z.httpHeadersOverwriteParam_,z.JSC$19667_extraHeaders_);z.backChannelRequestTimeoutMs_&&z.JSC$19667_backChannelRequest_.setTimeout(z.backChannelRequestTimeoutMs_);var I=z.JSC$19667_backChannelRequest_,b=z.JSC$19667_hostPrefix_;I.JSC$19648_type_=1;I.JSC$19648_baseUri_=_.Km(l.clone());I.JSC$19648_postData_=null;I.decodeChunks_=!0;NBq(I,b);z.JSC$19667_channelDebug_.debug("New Request created")};
cS.prototype.JSC$19669_onBackChannelDead_=function(){this.JSC$19667_deadBackChannelTimerId_!=null&&(this.JSC$19667_deadBackChannelTimerId_=null,QpW(this),Yey(this),Ka(19))};
var Fjs=function(z){z.JSC$19667_deadBackChannelTimerId_!=null&&(_.v7.clearTimeout(z.JSC$19667_deadBackChannelTimerId_),z.JSC$19667_deadBackChannelTimerId_=null)},KjK=function(z,l){z.JSC$19667_channelDebug_.debug("Request complete");
var I=null;if(z.JSC$19667_backChannelRequest_==l){Fjs(z);Xoc(z);z.JSC$19667_backChannelRequest_=null;var b=2}else if(iRX(z.forwardChannelRequestPool_,l))I=l.JSC$19648_pendingMessages_,PX8(z.forwardChannelRequestPool_,l),b=1;else return;if(z.state_!=0)if(l.JSC$19648_successful_)b==1?(bR8(l.JSC$19648_postData_?l.JSC$19648_postData_.length:0,Date.now()-l.JSC$19648_requestStartTime_,z.JSC$19667_forwardChannelRetryCount_),Ai4(z)):jpy(z);else{var v=l.JSC$19648_lastStatusCode_,M=l.getLastError();if(M==3||
M==0&&v>0)z.JSC$19667_channelDebug_.debug("Not retrying due to error type"),v>200&&(z.errorResponseStatusCode_=l.JSC$19648_lastStatusCode_);else{z.JSC$19667_channelDebug_.debug(function(){return"Maybe retrying, last error: "+ORW(M,z.errorResponseStatusCode_)});
if(b==1&&UYq(z,l)||b==2&&Yey(z))return;z.JSC$19667_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&spW(z.forwardChannelRequestPool_,I);z.JSC$19667_channelDebug_.debug("Error: HTTP request failed");switch(M){case 1:QM(z,5);break;case 4:QM(z,10);break;case 3:QM(z,6);break;default:QM(z,2)}}},LjW=function(z,l){var I=z.JSC$19667_baseRetryDelayMs_+Math.floor(Math.random()*z.JSC$19667_retryDelaySeedMs_);
z.isActive()||(z.JSC$19667_channelDebug_.debug("Inactive channel"),I*=2);return I*l};
cS.prototype.onInput_=function(z,l){for(var I=0;I<z.length;I++){var b=z[I];this.JSC$19667_lastArrayId_=b[0];b=b[1];if(this.state_==2)if(b[0]=="c"){this.sid_=b[1];this.JSC$19667_hostPrefix_=b[2];var v=b[3];v!=null&&(this.JSC$19669_channelVersion_=v,this.JSC$19667_channelDebug_.info("VER="+this.JSC$19669_channelVersion_));v=b[4];v!=null&&(this.serverVersion_=v,this.JSC$19667_channelDebug_.info("SVER="+this.serverVersion_));b=b[5];b!=null&&typeof b==="number"&&b>0&&(this.backChannelRequestTimeoutMs_=
b*=1.5,this.JSC$19667_channelDebug_.info("backChannelRequestTimeoutMs_="+b));if(b=l.JSC$19648_xmlHttp_){var M=gF(b,"X-Client-Wire-Protocol");M&&(v=this.forwardChannelRequestPool_,!v.requestPool_&&(_.Np(M,"spdy")||_.Np(M,"quic")||_.Np(M,"h2"))&&(v.JSC$19658_maxSize_=v.maxPoolSizeConfigured_,v.requestPool_=new Set,v.JSC$19658_request_&&(obK(v,v.JSC$19658_request_),v.JSC$19658_request_=null)));this.httpSessionIdParam_&&((b=gF(b,"X-HTTP-Session-Id"))?(this.httpSessionId_=b,_.V9(this.JSC$19667_forwardChannelUri_,
this.httpSessionIdParam_,b)):this.JSC$19667_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19673_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-l.JSC$19648_requestStartTime_,this.JSC$19667_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));b=l;v=wo4(this,this.JSC$19667_supportsCrossDomainXhrs_?this.JSC$19667_hostPrefix_:null,this.JSC$19667_path_);this.JSC$19667_channelDebug_.debug("GetBackChannelUri: "+
v);this.JSC$19667_backChannelUri_=v;b.initialResponseDecoded_?(this.JSC$19667_channelDebug_.debug("Upgrade the handshake request to a backchannel."),PX8(this.forwardChannelRequestPool_,b),v=b,(M=this.backChannelRequestTimeoutMs_)&&v.setTimeout(M),v.JSC$19648_watchDogTimerId_&&(fiK(v),uZc(v)),this.JSC$19667_backChannelRequest_=b):jpy(this);this.JSC$19667_outgoingMaps_.length>0&&Ai4(this)}else b[0]!="stop"&&b[0]!="close"||QM(this,7);else this.state_==3&&(b[0]=="stop"||b[0]=="close"?b[0]=="stop"?QM(this,
7):this.disconnect():b[0]!="noop"&&this.handler_&&this.handler_.JSC$19673_channelHandleArray(b),this.JSC$19667_backChannelRetryCount_=0)}};
var QM=function(z,l){z.JSC$19667_channelDebug_.info("Error code "+l);if(l==2){var I=(0,_.YN)(z.testNetworkCallback_,z),b=z.networkTestUrl_,v=!b;b=new _.lJ(b||"//www.google.com/images/cleardot.gif");_.v7.location&&_.v7.location.protocol=="http"||_.uC(b,"https");_.Km(b);v?ric(b.toString(),I):$Ys(b.toString(),I)}else Ka(2);z.onError_(l)};
cS.prototype.testNetworkCallback_=function(z){z?(this.JSC$19667_channelDebug_.info("Successfully pinged google.com"),Ka(2)):(this.JSC$19667_channelDebug_.info("Failed to ping google.com"),Ka(1))};
cS.prototype.onError_=function(z){this.JSC$19667_channelDebug_.debug("HttpChannel: error - "+z);this.state_=0;this.handler_&&this.handler_.JSC$19673_channelError(z);nbK(this);WjX(this)};
var nbK=function(z){z.state_=0;z.nonAckedMapsAtChannelClose_=[];if(z.handler_){var l=hUK(z.forwardChannelRequestPool_);if(l.length!=0||z.JSC$19667_outgoingMaps_.length!=0)z.JSC$19667_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+l.length+", outgoing: "+z.JSC$19667_outgoingMaps_.length}),_.AG(z.nonAckedMapsAtChannelClose_,l),_.AG(z.nonAckedMapsAtChannelClose_,z.JSC$19667_outgoingMaps_),z.forwardChannelRequestPool_.JSC$19658_pendingMessages_.length=0,_.ex(z.JSC$19667_outgoingMaps_),
z.JSC$19667_outgoingMaps_.length=0;
z.handler_.JSC$19673_channelClosed()}},zm4=function(z){if(z.state_==0)return z.nonAckedMapsAtChannelClose_;
var l=[];_.AG(l,hUK(z.forwardChannelRequestPool_));_.AG(l,z.JSC$19667_outgoingMaps_);return l},wo4=function(z,l,I){var b=_.UA(I);
b.JSC$10032_domain_!=""?(l&&_.Z9(b,l+"."+b.JSC$10032_domain_),_.HH(b,b.JSC$10032_port_)):(b=_.v7.location,b=vAs(b.protocol,l?l+"."+b.hostname:b.hostname,+b.port,I));l=z.httpSessionIdParam_;I=z.httpSessionId_;l&&I&&_.V9(b,l,I);_.V9(b,"VER",z.JSC$19669_channelVersion_);SE(z,b);return b},ZRK=function(z,l,I){if(l&&!z.JSC$19667_supportsCrossDomainXhrs_)throw Error("Mk");
l=z.usesFetchStreams_&&!z.JSC$19667_xmlHttpFactory_?new _.Az(new dM({streamBinaryChunks:I})):new _.Az(z.JSC$19667_xmlHttpFactory_);l.JSC$9797_withCredentials_=z.JSC$19667_supportsCrossDomainXhrs_;return l};
cS.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var ltc=function(){};
_.p=ltc.prototype;_.p.JSC$19673_channelOpened=function(){};
_.p.JSC$19673_channelHandleArray=function(){};
_.p.JSC$19673_channelError=function(){};
_.p.JSC$19673_channelClosed=function(){};
_.p.isActive=function(){return!0};
_.p.JSC$19673_badMapError=function(){};var ItK=function(){},oT=function(z,l){_.oW.call(this);
this.JSC$19676_channel_=new cS(l);this.JSC$19676_url_=z;this.messageUrlParams_=l&&l.messageUrlParams||null;z=l&&l.messageHeaders||null;l&&l.clientProtocolHeaderRequired&&(z?_.h7.set(z,"X-Client-Protocol","webchannel"):z=_.h7.create("X-Client-Protocol","webchannel"));this.JSC$19676_channel_.JSC$19667_extraHeaders_=z;z=l&&l.initMessageHeaders||null;l&&l.messageContentType&&(z?_.h7.set(z,"X-WebChannel-Content-Type",l.messageContentType):z=_.h7.create("X-WebChannel-Content-Type",l.messageContentType));
l&&l.clientProfile&&(z?_.h7.set(z,"X-WebChannel-Client-Profile",l.clientProfile):z=_.h7.create("X-WebChannel-Client-Profile",l.clientProfile));this.JSC$19676_channel_.initHeaders_=z;(z=l&&l.httpHeadersOverwriteParam)&&!_.gf(z)&&(this.JSC$19676_channel_.httpHeadersOverwriteParam_=z);this.supportsCrossDomainXhr_=l&&l.supportsCrossDomainXhr||!1;this.sendRawJson_=l&&l.sendRawJson||!1;(l=l&&l.httpSessionIdParam)&&!_.gf(l)&&(this.JSC$19676_channel_.httpSessionIdParam_=l,_.h7.containsKey(this.messageUrlParams_,
l)&&_.h7.remove(this.messageUrlParams_,l));this.channelHandler_=new d_(this)};
_.Gs(oT,_.oW);oT.prototype.open=function(){this.JSC$19676_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19676_channel_.JSC$19667_supportsCrossDomainXhrs_=!0);this.JSC$19676_channel_.connect(this.JSC$19676_url_,this.messageUrlParams_||void 0)};
oT.prototype.close=function(){this.JSC$19676_channel_.disconnect()};
oT.prototype.send=function(z){var l=this.JSC$19676_channel_;if(typeof z==="string"){var I={};I.__data__=z;z=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.wO)(z),z=I);l.JSC$19667_outgoingMaps_.push(new ciW(l.JSC$19667_nextMapId_++,z));l.state_==3&&Ai4(l)};
oT.prototype.disposeInternal=function(){this.JSC$19676_channel_.handler_=null;delete this.channelHandler_;this.JSC$19676_channel_.disconnect();delete this.JSC$19676_channel_;oT.superClass_.disposeInternal.call(this)};
var bwC=function(z){aj1.call(this);z.__headers__&&(this.headers=z.__headers__,this.statusCode=z.__status__,delete z.__headers__,delete z.__status__);var l=z.__sm__;l?this.data=(this.metadataKey=_.h7.getAnyKey(l))?_.h7.get(l,this.metadataKey):l:this.data=z};
_.Gs(bwC,aj1);var vKc=function(z){VHK.call(this);this.status=1;this.errorCode=z};
_.Gs(vKc,VHK);var d_=function(z){this.JSC$19683_channel_=z};
_.Gs(d_,ltc);d_.prototype.JSC$19673_channelOpened=function(){this.JSC$19683_channel_.dispatchEvent("w")};
d_.prototype.JSC$19673_channelHandleArray=function(z){this.JSC$19683_channel_.dispatchEvent(new bwC(z))};
d_.prototype.JSC$19673_channelError=function(z){this.JSC$19683_channel_.dispatchEvent(new vKc(z))};
d_.prototype.JSC$19673_channelClosed=function(){this.JSC$19683_channel_.dispatchEvent("x")};
var Mo1=function(z,l){this.transportChannel_=z;this.JSC$19686_channel_=l},pTq=function(z){return zm4(z.JSC$19686_channel_).map(function(l){var I=z.transportChannel_;
l=l.map;"__data__"in l?(l=l.__data__,I=I.sendRawJson_?(0,_.S7u)(l):l):I=l;return I})};
Mo1.prototype.commit=function(z){this.JSC$19686_channel_.forwardChannelFlushedCallback_=z};var PS=function(z){DkX.dispatchEvent(new xkl(DkX,z))},DkX=new _.oW,xkl=function(z,l){_.Y9.call(this,"statevent",z);
this.stat=l};
_.m(xkl,_.Y9);var h_=function(z,l,I,b,v){this.JSC$19691_channel_=z;this.JSC$19691_channelDebug_=l;this.sid_=I;this.JSC$19691_rid_=b;this.JSC$19691_retryId_=v||1;this.timeout_=45E3;this.JSC$19691_eventHandler_=new _.GR(this);this.pollingTimer_=new _.gm;this.pollingTimer_.setInterval(250)};
_.p=h_.prototype;_.p.JSC$19693_extraHeaders_=null;_.p.JSC$19693_successful_=!1;_.p.JSC$19693_watchDogTimerId_=null;_.p.JSC$19693_watchDogTimeoutTime_=null;_.p.JSC$19693_requestStartTime_=null;_.p.JSC$19693_type_=null;_.p.JSC$19693_baseUri_=null;_.p.JSC$19693_requestUri_=null;_.p.JSC$19693_postData_=null;_.p.JSC$19693_xmlHttp_=null;_.p.JSC$19693_xmlHttpChunkStart_=0;_.p.trident_=null;_.p.JSC$19693_verb_=null;_.p.JSC$19693_lastError_=null;_.p.JSC$19693_lastStatusCode_=-1;_.p.sendClose_=!0;
_.p.JSC$19693_cancelled_=!1;_.p.JSC$19693_readyStateChangeThrottleMs_=0;_.p.JSC$19693_readyStateChangeThrottle_=null;var Ow4=function(z,l){switch(z){case 0:return"Non-200 return code ("+l+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},gKl={},GJK={};
h_.prototype.setTimeout=function(z){this.timeout_=z};
var EKC=function(z,l,I){z.JSC$19693_type_=1;z.JSC$19693_baseUri_=_.Km(l.clone());z.JSC$19693_postData_=I;z.decodeChunks_=!0;NLl(z,null)},uuc=function(z,l,I,b,v){z.JSC$19693_type_=1;
z.JSC$19693_baseUri_=_.Km(l.clone());z.JSC$19693_postData_=null;z.decodeChunks_=I;v&&(z.sendClose_=!1);NLl(z,b)},NLl=function(z,l){z.JSC$19693_requestStartTime_=Date.now();
Zwc(z);z.JSC$19693_requestUri_=z.JSC$19693_baseUri_.clone();G7(z.JSC$19693_requestUri_,"t",z.JSC$19691_retryId_);z.JSC$19693_xmlHttpChunkStart_=0;z.JSC$19693_xmlHttp_=z.JSC$19691_channel_.JSC$19700_createXhrIo(z.JSC$19691_channel_.JSC$19700_shouldUseSecondaryDomains()?l:null);z.JSC$19693_readyStateChangeThrottleMs_>0&&(z.JSC$19693_readyStateChangeThrottle_=new _.zD((0,_.YN)(z.JSC$19693_xmlHttpHandler_,z,z.JSC$19693_xmlHttp_),z.JSC$19693_readyStateChangeThrottleMs_));z.JSC$19691_eventHandler_.listen(z.JSC$19693_xmlHttp_,
"readystatechange",z.JSC$19693_readyStateChangeHandler_);l=z.JSC$19693_extraHeaders_?_.h7.clone(z.JSC$19693_extraHeaders_):{};z.JSC$19693_postData_?(z.JSC$19693_verb_="POST",l["Content-Type"]="application/x-www-form-urlencoded",z.JSC$19693_xmlHttp_.send(z.JSC$19693_requestUri_,z.JSC$19693_verb_,z.JSC$19693_postData_,l)):(z.JSC$19693_verb_="GET",z.sendClose_&&!_.yk&&(l.Connection="close"),z.JSC$19693_xmlHttp_.send(z.JSC$19693_requestUri_,z.JSC$19693_verb_,null,l));z.JSC$19691_channel_.notifyServerReachabilityEvent(1);
l=z.JSC$19691_channelDebug_;var I=z.JSC$19693_postData_;if(I){var b="";I=I.split("&");for(var v=0;v<I.length;v++){var M=I[v].split("=");if(M.length>1){var x=M[0];M=M[1];var g=x.split("_");b=g.length>=2&&g[1]=="type"?b+(x+"="+M+"&"):b+(x+"=redacted&")}}}else b=null;l.info("XMLHTTP REQ ("+z.JSC$19691_rid_+") [attempt "+z.JSC$19691_retryId_+"]: "+z.JSC$19693_verb_+"\n"+z.JSC$19693_requestUri_+"\n"+b)};
h_.prototype.JSC$19693_readyStateChangeHandler_=function(z){z=z.target;var l=this.JSC$19693_readyStateChangeThrottle_;l&&_.Wn(z)==3?(this.JSC$19691_channelDebug_.debug("Throttling readystatechange."),l.fire()):this.JSC$19693_xmlHttpHandler_(z)};
h_.prototype.JSC$19693_xmlHttpHandler_=function(z){try{if(z==this.JSC$19693_xmlHttp_)a:{var l=_.Wn(this.JSC$19693_xmlHttp_),I=this.JSC$19693_xmlHttp_.JSC$9797_lastErrorCode_,b=this.JSC$19693_xmlHttp_.getStatus();if(_.yk&&!_.fO("420+")){if(l<4)break a}else if(l<3||l==3&&!this.JSC$19693_xmlHttp_.getResponseText())break a;this.JSC$19693_cancelled_||l!=4||I==7||(I==8||b<=0?this.JSC$19691_channel_.notifyServerReachabilityEvent(3):this.JSC$19691_channel_.notifyServerReachabilityEvent(2));Hwc(this);var v=
this.JSC$19693_xmlHttp_.getStatus();this.JSC$19693_lastStatusCode_=v;var M=this.JSC$19693_xmlHttp_.getResponseText();M||this.JSC$19691_channelDebug_.debug("No response text for uri "+this.JSC$19693_requestUri_+" status "+v);this.JSC$19693_successful_=v==200;this.JSC$19691_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19691_rid_+") [ attempt "+this.JSC$19691_retryId_+"]: "+this.JSC$19693_verb_+"\n"+this.JSC$19693_requestUri_+"\n"+l+" "+v);if(this.JSC$19693_successful_){l==4&&sP(this);if(this.decodeChunks_){for(z=
!0;!this.JSC$19693_cancelled_&&this.JSC$19693_xmlHttpChunkStart_<M.length;){var x=ydc(this,M);if(x==GJK){l==4&&(this.JSC$19693_lastError_=4,PS(15),z=!1);r_(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,null,"[Incomplete Response]");break}else if(x==gKl){this.JSC$19693_lastError_=4;PS(16);r_(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,M,"[Invalid Chunk]");z=!1;break}else r_(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,x,null),ftX(this,x)}l==4&&M.length==0&&(this.JSC$19693_lastError_=1,
PS(17),z=!1);this.JSC$19693_successful_=this.JSC$19693_successful_&&z;z||(r_(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,M,"[Invalid Chunked Response]"),sP(this),CAc(this))}else r_(this.JSC$19691_channelDebug_,this.JSC$19691_rid_,M,null),ftX(this,M);this.JSC$19693_successful_&&!this.JSC$19693_cancelled_&&(l==4?this.JSC$19691_channel_.JSC$19700_onRequestComplete(this):(this.JSC$19693_successful_=!1,Zwc(this)))}else v==400&&M.indexOf("Unknown SID")>0?(this.JSC$19693_lastError_=3,PS(13),this.JSC$19691_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19691_rid_+")")):(this.JSC$19693_lastError_=0,PS(14),this.JSC$19691_channelDebug_.warning("XMLHTTP Bad status "+v+" ("+this.JSC$19691_rid_+")")),sP(this),CAc(this)}else this.JSC$19691_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(g){this.JSC$19691_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var ydc=function(z,l){var I=z.JSC$19693_xmlHttpChunkStart_,b=l.indexOf("\n",I);if(b==-1)return GJK;I=Number(l.substring(I,b));if(isNaN(I))return gKl;b+=1;if(b+I>l.length)return GJK;l=l.slice(b,b+I);z.JSC$19693_xmlHttpChunkStart_=b+I;return l};
h_.prototype.cancel=function(){this.JSC$19693_cancelled_=!0;sP(this)};
var Zwc=function(z){z.JSC$19693_watchDogTimeoutTime_=Date.now()+z.timeout_;kJK(z,z.timeout_)},kJK=function(z,l){if(z.JSC$19693_watchDogTimerId_!=null)throw Error("Lk");
z.JSC$19693_watchDogTimerId_=mk((0,_.YN)(z.JSC$19693_onWatchDogTimeout_,z),l)},Hwc=function(z){z.JSC$19693_watchDogTimerId_&&(_.v7.clearTimeout(z.JSC$19693_watchDogTimerId_),z.JSC$19693_watchDogTimerId_=null)};
h_.prototype.JSC$19693_onWatchDogTimeout_=function(){this.JSC$19693_watchDogTimerId_=null;var z=Date.now();z-this.JSC$19693_watchDogTimeoutTime_>=0?(this.JSC$19691_channelDebug_.info("TIMEOUT: "+this.JSC$19693_requestUri_),this.JSC$19693_type_!=2&&this.JSC$19691_channel_.notifyServerReachabilityEvent(3),sP(this),this.JSC$19693_lastError_=2,PS(18),CAc(this)):(this.JSC$19691_channelDebug_.warning("WatchDog timer called too early"),kJK(this,this.JSC$19693_watchDogTimeoutTime_-z))};
var CAc=function(z){z.JSC$19691_channel_.JSC$19700_isClosed()||z.JSC$19693_cancelled_||z.JSC$19691_channel_.JSC$19700_onRequestComplete(z)},sP=function(z){Hwc(z);
_.p0(z.JSC$19693_readyStateChangeThrottle_);z.JSC$19693_readyStateChangeThrottle_=null;z.pollingTimer_.stop();z.JSC$19691_eventHandler_.removeAll();if(z.JSC$19693_xmlHttp_){var l=z.JSC$19693_xmlHttp_;z.JSC$19693_xmlHttp_=null;l.abort();l.dispose()}z.trident_&&(z.trident_=null)};
h_.prototype.getLastError=function(){return this.JSC$19693_lastError_};
var ftX=function(z,l){try{z.JSC$19691_channel_.JSC$19700_onRequestData(z,l),z.JSC$19691_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var r_=function(z,l,I,b){var v=z.info;a:if(I&&I!="y2f%"){try{var M=JSON.parse(I);if(M)for(var x=0;x<M.length;x++)if(Array.isArray(M[x])){var g=M[x];if(!(g.length<2)){var G=g[1];if(Array.isArray(G)&&!(G.length<1)){var u=G[0];if(u!="noop"&&u!="stop")for(var Z=1;Z<G.length;Z++)G[Z]=""}}}var H=(0,_.wO)(M);break a}catch(y){z.debug("Exception parsing expected JS array - probably was not JS");H=I;break a}H=void 0}else H=I;v.call(z,"XMLHTTP TEXT ("+l+"): "+H+(b?" "+b:""))};
KS.prototype.debug=function(z){this.info(z)};
KS.prototype.info=function(){};
KS.prototype.warning=function(){};var Rms=function(z,l){this.JSC$19698_channel_=z;this.JSC$19698_channelDebug_=l;this.JSC$19698_parser_=new RT};
_.p=Rms.prototype;_.p.JSC$19700_extraHeaders_=null;_.p.JSC$19700_request_=null;_.p.receivedIntermediateResult_=!1;_.p.JSC$19700_path_=null;_.p.state_=null;_.p.JSC$19700_lastStatusCode_=-1;_.p.JSC$19700_hostPrefix_=null;_.p.blockedPrefix_=null;
_.p.connect=function(z){this.JSC$19700_path_=z;z=mkq(this.JSC$19698_channel_,this.JSC$19700_path_);PS(3);Date.now();var l=this.JSC$19698_channel_.firstTestResults_;l!=null?(this.JSC$19700_hostPrefix_=l[0],(this.blockedPrefix_=l[1])?(this.state_=1,Kq4(this)):(this.state_=2,toX(this))):(G7(z,"MODE","init"),this.JSC$19700_request_=new h_(this,this.JSC$19698_channelDebug_),this.JSC$19700_request_.JSC$19693_extraHeaders_=this.JSC$19700_extraHeaders_,uuc(this.JSC$19700_request_,z,!1,null,!0),this.state_=
0)};
var Kq4=function(z){var l=BLX(z.JSC$19698_channel_,z.blockedPrefix_,"/mail/images/cleardot.gif");_.Km(l);hH0(l.toString(),5E3,(0,_.YN)(z.checkBlockedCallback_,z),3,2E3);z.notifyServerReachabilityEvent(1)};
Rms.prototype.checkBlockedCallback_=function(z){if(z)this.state_=2,toX(this);else{PS(4);var l=this.JSC$19698_channel_;l.JSC$19701_channelDebug_.debug("Test Connection Blocked");l.JSC$19705_lastStatusCode_=l.connectionTest_.JSC$19700_lastStatusCode_;$g(l,9)}z&&this.notifyServerReachabilityEvent(2)};
var toX=function(z){z.JSC$19698_channelDebug_.debug("TestConnection: starting stage 2");var l=z.JSC$19698_channel_.secondTestResults_;l!=null?(z.JSC$19698_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+l?"Buffered":"Unbuffered"),PS(5),l?(PS(11),eE(z.JSC$19698_channel_,z,!1)):(PS(12),eE(z.JSC$19698_channel_,z,!0))):(z.JSC$19700_request_=new h_(z,z.JSC$19698_channelDebug_),z.JSC$19700_request_.JSC$19693_extraHeaders_=z.JSC$19700_extraHeaders_,l=XTS(z.JSC$19698_channel_,
z.JSC$19700_hostPrefix_,z.JSC$19700_path_),PS(5),G7(l,"TYPE","xmlhttp"),uuc(z.JSC$19700_request_,l,!1,z.JSC$19700_hostPrefix_,!1))};
_.p=Rms.prototype;_.p.JSC$19700_createXhrIo=function(z){return this.JSC$19698_channel_.JSC$19700_createXhrIo(z)};
_.p.abort=function(){this.JSC$19700_request_&&(this.JSC$19700_request_.cancel(),this.JSC$19700_request_=null);this.JSC$19700_lastStatusCode_=-1};
_.p.JSC$19700_isClosed=function(){return!1};
_.p.JSC$19700_onRequestData=function(z,l){this.JSC$19700_lastStatusCode_=z.JSC$19693_lastStatusCode_;if(this.state_==0)if(this.JSC$19698_channelDebug_.debug("TestConnection: Got data for stage 1"),l){try{var I=this.JSC$19698_parser_.parse(l)}catch(b){q44(this.JSC$19698_channel_,this);return}this.JSC$19700_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$19698_channelDebug_.debug("TestConnection: Null responseText"),q44(this.JSC$19698_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(PS(7),Date.now()):l=="11111"?(PS(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19700_lastStatusCode_=200,this.JSC$19700_request_.cancel(),this.JSC$19698_channelDebug_.debug("Test connection succeeded; using streaming connection"),PS(12),eE(this.JSC$19698_channel_,this,!0)):(PS(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.p.JSC$19700_onRequestComplete=function(){this.JSC$19700_lastStatusCode_=this.JSC$19700_request_.JSC$19693_lastStatusCode_;this.JSC$19700_request_.JSC$19693_successful_?this.state_==0?(this.JSC$19698_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Kq4(this)):(this.state_=2,toX(this))):this.state_==2&&(this.JSC$19698_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19698_channelDebug_.debug("Test connection succeeded; using streaming connection"),
PS(12),eE(this.JSC$19698_channel_,this,!0)):(this.JSC$19698_channelDebug_.debug("Test connection failed; not using streaming"),PS(11),eE(this.JSC$19698_channel_,this,!1))):(this.JSC$19698_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?PS(9):this.state_==2&&PS(10),q44(this.JSC$19698_channel_,this,this.JSC$19700_request_.getLastError()))};
_.p.JSC$19700_shouldUseSecondaryDomains=function(){return this.JSC$19698_channel_.JSC$19700_shouldUseSecondaryDomains()};
_.p.isActive=function(){return this.JSC$19698_channel_.isActive()};
_.p.notifyServerReachabilityEvent=function(z){this.JSC$19698_channel_.notifyServerReachabilityEvent(z)};var w_=function(z,l,I){this.state_=1;this.JSC$19701_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19701_channelDebug_=new KS;this.JSC$19701_parser_=new RT;this.firstTestResults_=z||null;this.secondTestResults_=l!=null?l:null;this.asyncTest_=I||!1},iw0=function(z,l){this.JSC$19703_mapId=z;
this.map=l;this.context=null};
_.p=w_.prototype;_.p.JSC$19705_extraHeaders_=null;_.p.JSC$19705_extraParams_=null;_.p.forwardChannelRequest_=null;_.p.JSC$19705_backChannelRequest_=null;_.p.JSC$19705_path_=null;_.p.JSC$19705_forwardChannelUri_=null;_.p.JSC$19705_backChannelUri_=null;_.p.JSC$19705_hostPrefix_=null;_.p.JSC$19705_nextRid_=0;_.p.JSC$19705_nextMapId_=0;_.p.handler_=null;_.p.JSC$19705_forwardChannelTimerId_=null;_.p.JSC$19705_backChannelTimerId_=null;_.p.JSC$19705_deadBackChannelTimerId_=null;_.p.connectionTest_=null;
_.p.useChunked_=null;_.p.JSC$19705_lastArrayId_=-1;_.p.JSC$19705_lastPostResponseArrayId_=-1;_.p.JSC$19705_lastStatusCode_=-1;_.p.JSC$19705_forwardChannelRetryCount_=0;_.p.JSC$19705_backChannelRetryCount_=0;_.p.JSC$19705_channelVersion_=8;var Fq1={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},QP0=function(z,l,I,b){_.Y9.call(this,"timingevent",z);this.size=l;this.rtt=I;this.retries=b};
_.Gs(QP0,_.Y9);var Y4C=function(z){_.Y9.call(this,"serverreachability",z)};
_.Gs(Y4C,_.Y9);w_.prototype.connect=function(z,l,I,b,v){this.JSC$19701_channelDebug_.debug("connect()");PS(0);this.JSC$19705_path_=l;this.JSC$19705_extraParams_=I||{};b&&v!==void 0&&(this.JSC$19705_extraParams_.OSID=b,this.JSC$19705_extraParams_.OAID=v);this.asyncTest_?(mk((0,_.YN)(this.connectTest_,this,z),100),TL8(this)):this.connectTest_(z)};
w_.prototype.disconnect=function(){this.JSC$19701_channelDebug_.debug("disconnect()");cdK(this);if(this.state_==3){var z=this.JSC$19705_nextRid_++,l=this.JSC$19705_forwardChannelUri_.clone();_.V9(l,"SID",this.sid_);_.V9(l,"RID",z);_.V9(l,"TYPE","terminate");A_(this,l);z=new h_(this,this.JSC$19701_channelDebug_,this.sid_,z);z.JSC$19693_type_=2;z.JSC$19693_baseUri_=_.Km(l.clone());(new Image).src=z.JSC$19693_baseUri_.toString();z.JSC$19693_requestStartTime_=Date.now();Zwc(z)}S4C(this)};
w_.prototype.connectTest_=function(z){this.JSC$19701_channelDebug_.debug("connectTest_()");this.connectionTest_=new Rms(this,this.JSC$19701_channelDebug_);this.connectionTest_.JSC$19700_extraHeaders_=this.JSC$19705_extraHeaders_;this.connectionTest_.JSC$19698_parser_=this.JSC$19701_parser_;this.connectionTest_.connect(z)};
var TL8=function(z){z.JSC$19701_channelDebug_.debug("connectChannel_()");z.JSC$19705_ensureInState_(1,0);z.JSC$19705_forwardChannelUri_=mkq(z,z.JSC$19705_path_);dkl(z)},cdK=function(z){z.connectionTest_&&(z.connectionTest_.abort(),z.connectionTest_=null);
z.JSC$19705_backChannelRequest_&&(z.JSC$19705_backChannelRequest_.cancel(),z.JSC$19705_backChannelRequest_=null);z.JSC$19705_backChannelTimerId_&&(_.v7.clearTimeout(z.JSC$19705_backChannelTimerId_),z.JSC$19705_backChannelTimerId_=null);XZK(z);z.forwardChannelRequest_&&(z.forwardChannelRequest_.cancel(),z.forwardChannelRequest_=null);z.JSC$19705_forwardChannelTimerId_&&(_.v7.clearTimeout(z.JSC$19705_forwardChannelTimerId_),z.JSC$19705_forwardChannelTimerId_=null)},qFK=function(z,l){if(z.state_==0)throw Error("Ok");
z.JSC$19701_outgoingMaps_.length==1E3&&z.JSC$19701_parser_.stringify(l);z.JSC$19701_outgoingMaps_.push(new iw0(z.JSC$19705_nextMapId_++,l));z.state_!=2&&z.state_!=3||dkl(z)};
w_.prototype.JSC$19700_isClosed=function(){return this.state_==0};
w_.prototype.getState=function(){return this.state_};
var dkl=function(z){z.forwardChannelRequest_||z.JSC$19705_forwardChannelTimerId_||(z.JSC$19705_forwardChannelTimerId_=mk((0,_.YN)(z.JSC$19705_onStartForwardChannelTimer_,z),0),z.JSC$19705_forwardChannelRetryCount_=0)};
w_.prototype.JSC$19705_onStartForwardChannelTimer_=function(z){this.JSC$19705_forwardChannelTimerId_=null;i1y(this,z)};
var i1y=function(z,l){z.JSC$19701_channelDebug_.debug("startForwardChannel_");if(z.state_==1){if(!l){z.JSC$19701_channelDebug_.debug("open_()");z.JSC$19705_nextRid_=Math.floor(Math.random()*1E5);l=z.JSC$19705_nextRid_++;var I=new h_(z,z.JSC$19701_channelDebug_,"",l);I.JSC$19693_extraHeaders_=z.JSC$19705_extraHeaders_;var b=FBW(z),v=z.JSC$19705_forwardChannelUri_.clone();_.V9(v,"RID",l);_.V9(v,"CVER","1");A_(z,v);EKC(I,v,b);z.forwardChannelRequest_=I;z.state_=2}}else z.state_==3&&(l?QfF(z,l):z.JSC$19701_outgoingMaps_.length==
0?z.JSC$19701_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):z.forwardChannelRequest_||(QfF(z),z.JSC$19701_channelDebug_.debug("startForwardChannel_ finished, sent request")))},QfF=function(z,l){if(l)if(z.JSC$19705_channelVersion_>6){z.JSC$19701_outgoingMaps_=z.pendingMaps_.concat(z.JSC$19701_outgoingMaps_);
z.pendingMaps_.length=0;var I=z.JSC$19705_nextRid_-1;l=FBW(z)}else I=l.JSC$19691_rid_,l=l.JSC$19693_postData_;else I=z.JSC$19705_nextRid_++,l=FBW(z);var b=z.JSC$19705_forwardChannelUri_.clone();_.V9(b,"SID",z.sid_);_.V9(b,"RID",I);_.V9(b,"AID",z.JSC$19705_lastArrayId_);A_(z,b);I=new h_(z,z.JSC$19701_channelDebug_,z.sid_,I,z.JSC$19705_forwardChannelRetryCount_+1);I.JSC$19693_extraHeaders_=z.JSC$19705_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));z.forwardChannelRequest_=I;EKC(I,b,l)},
A_=function(z,l){z.handler_&&(z=z.handler_.JSC$19712_getAdditionalParams())&&_.h7.forEach(z,function(I,b){_.V9(l,b,I)})},FBW=function(z){var l=Math.min(z.JSC$19701_outgoingMaps_.length,1E3),I=["count="+l];
if(z.JSC$19705_channelVersion_>6&&l>0){var b=z.JSC$19701_outgoingMaps_[0].JSC$19703_mapId;I.push("ofs="+b)}else b=0;for(var v={},M=0;M<l;v={mapId$jscomp$3:void 0},M++){v.mapId$jscomp$3=z.JSC$19701_outgoingMaps_[M].JSC$19703_mapId;var x=z.JSC$19701_outgoingMaps_[M].map;v.mapId$jscomp$3=z.JSC$19705_channelVersion_<=6?M:v.mapId$jscomp$3-b;try{_.h7.forEach(x,function(g){return function(G,u){I.push("req"+g.mapId$jscomp$3+"_"+u+"="+encodeURIComponent(G))}}(v))}catch(g){I.push("req"+v.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}z.pendingMaps_=z.pendingMaps_.concat(z.JSC$19701_outgoingMaps_.splice(0,l));
return I.join("&")},YFW=function(z){z.JSC$19705_backChannelRequest_||z.JSC$19705_backChannelTimerId_||(z.JSC$19705_backChannelAttemptId_=1,z.JSC$19705_backChannelTimerId_=mk((0,_.YN)(z.JSC$19705_onStartBackChannelTimer_,z),0),z.JSC$19705_backChannelRetryCount_=0)},c4W=function(z){if(z.JSC$19705_backChannelRequest_||z.JSC$19705_backChannelTimerId_||z.JSC$19705_backChannelRetryCount_>=3)return!1;
z.JSC$19701_channelDebug_.debug("Going to retry GET");z.JSC$19705_backChannelAttemptId_++;z.JSC$19705_backChannelTimerId_=mk((0,_.YN)(z.JSC$19705_onStartBackChannelTimer_,z),Tly(z,z.JSC$19705_backChannelRetryCount_));z.JSC$19705_backChannelRetryCount_++;return!0};
w_.prototype.JSC$19705_onStartBackChannelTimer_=function(){this.JSC$19705_backChannelTimerId_=null;this.JSC$19701_channelDebug_.debug("Creating new HttpRequest");this.JSC$19705_backChannelRequest_=new h_(this,this.JSC$19701_channelDebug_,this.sid_,"rpc",this.JSC$19705_backChannelAttemptId_);this.JSC$19705_backChannelRequest_.JSC$19693_extraHeaders_=this.JSC$19705_extraHeaders_;this.JSC$19705_backChannelRequest_.JSC$19693_readyStateChangeThrottleMs_=0;var z=this.JSC$19705_backChannelUri_.clone();_.V9(z,
"RID","rpc");_.V9(z,"SID",this.sid_);_.V9(z,"CI",this.useChunked_?"0":"1");_.V9(z,"AID",this.JSC$19705_lastArrayId_);A_(this,z);_.V9(z,"TYPE","xmlhttp");uuc(this.JSC$19705_backChannelRequest_,z,!0,this.JSC$19705_hostPrefix_,!1);this.JSC$19701_channelDebug_.debug("New Request created")};
var eE=function(z,l,I){z.JSC$19701_channelDebug_.debug("Test Connection Finished");z.useChunked_=z.secondTestResults_==null?I:!z.secondTestResults_;z.JSC$19705_lastStatusCode_=l.JSC$19700_lastStatusCode_;z.asyncTest_||TL8(z)},q44=function(z,l){z.JSC$19701_channelDebug_.debug("Test Connection Failed");
z.JSC$19705_lastStatusCode_=l.JSC$19700_lastStatusCode_;$g(z,2)};
w_.prototype.JSC$19700_onRequestData=function(z,l){if(this.state_!=0&&(this.JSC$19705_backChannelRequest_==z||this.forwardChannelRequest_==z))if(this.JSC$19705_lastStatusCode_=z.JSC$19693_lastStatusCode_,this.forwardChannelRequest_==z&&this.state_==3)if(this.JSC$19705_channelVersion_>7){try{var I=this.JSC$19701_parser_.parse(l)}catch(b){I=null}if(Array.isArray(I)&&I.length==3)if(l=I,l[0]==0)a:if(this.JSC$19701_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19705_backChannelTimerId_)this.JSC$19701_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19705_backChannelRequest_)if(this.JSC$19705_backChannelRequest_.JSC$19693_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19693_requestStartTime_)XZK(this),this.JSC$19705_backChannelRequest_.cancel(),this.JSC$19705_backChannelRequest_=null;else break a;else this.JSC$19701_channelDebug_.warning("We do not have a BackChannel established");c4W(this);PS(19)}else this.JSC$19705_lastPostResponseArrayId_=l[1],z=this.JSC$19705_lastPostResponseArrayId_-this.JSC$19705_lastArrayId_,0<
z&&(l=l[2],this.JSC$19701_channelDebug_.debug(l+" bytes (in "+z+" arrays) are outstanding on the BackChannel"),l<37500&&this.useChunked_&&this.JSC$19705_backChannelRetryCount_==0&&!this.JSC$19705_deadBackChannelTimerId_&&(this.JSC$19705_deadBackChannelTimerId_=mk((0,_.YN)(this.JSC$19705_onBackChannelDead_,this),6E3)));else this.JSC$19701_channelDebug_.debug("Bad POST response data returned"),$g(this,11)}else l!="y2f%"&&(this.JSC$19701_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
$g(this,11));else this.JSC$19705_backChannelRequest_==z&&XZK(this),_.gf(l)||(z=this.JSC$19701_parser_.parse(l),this.onInput_(z))};
w_.prototype.JSC$19705_onBackChannelDead_=function(){this.JSC$19705_deadBackChannelTimerId_!=null&&(this.JSC$19705_deadBackChannelTimerId_=null,this.JSC$19705_backChannelRequest_.cancel(),this.JSC$19705_backChannelRequest_=null,c4W(this),PS(20))};
var XZK=function(z){z.JSC$19705_deadBackChannelTimerId_!=null&&(_.v7.clearTimeout(z.JSC$19705_deadBackChannelTimerId_),z.JSC$19705_deadBackChannelTimerId_=null)};
w_.prototype.JSC$19700_onRequestComplete=function(z){this.JSC$19701_channelDebug_.debug("Request complete");if(this.JSC$19705_backChannelRequest_==z){XZK(this);this.JSC$19705_backChannelRequest_=null;var l=2}else if(this.forwardChannelRequest_==z)this.forwardChannelRequest_=null,l=1;else return;this.JSC$19705_lastStatusCode_=z.JSC$19693_lastStatusCode_;if(this.state_!=0)if(z.JSC$19693_successful_)if(l==1){l=z.JSC$19693_postData_?z.JSC$19693_postData_.length:0;z=Date.now()-z.JSC$19693_requestStartTime_;
var I=DkX;I.dispatchEvent(new QP0(I,l,z,this.JSC$19705_forwardChannelRetryCount_));dkl(this);this.handler_&&this.handler_.JSC$19712_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else YFW(this);else{I=z.getLastError();if(I==3||I==7||I==0&&this.JSC$19705_lastStatusCode_>0)this.JSC$19701_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19701_channelDebug_.debug("Maybe retrying, last error: "+Ow4(I,this.JSC$19705_lastStatusCode_));var b;if(b=l==1)this.forwardChannelRequest_||
this.JSC$19705_forwardChannelTimerId_||this.state_==1||this.JSC$19705_forwardChannelRetryCount_>=2?b=!1:(this.JSC$19701_channelDebug_.debug("Going to retry POST"),this.JSC$19705_forwardChannelTimerId_=mk((0,_.YN)(this.JSC$19705_onStartForwardChannelTimer_,this,z),Tly(this,this.JSC$19705_forwardChannelRetryCount_)),this.JSC$19705_forwardChannelRetryCount_++,b=!0);if(b||l==2&&c4W(this))return;this.JSC$19701_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19701_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:$g(this,5);break;case 4:$g(this,10);break;case 3:$g(this,6);break;case 7:$g(this,12);break;default:$g(this,2)}}};
var Tly=function(z,l){var I=5E3+Math.floor(Math.random()*1E4);z.isActive()||(z.JSC$19701_channelDebug_.debug("Inactive channel"),I*=2);return I*l};
w_.prototype.onInput_=function(z){for(var l=0;l<z.length;l++){var I=z[l];this.JSC$19705_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$19705_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$19705_channelVersion_=I:this.JSC$19705_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19712_channelOpened(),this.JSC$19705_backChannelUri_=XTS(this,this.JSC$19705_hostPrefix_,this.JSC$19705_path_),YFW(this)):I[0]=="stop"&&$g(this,7):this.state_==3&&(I[0]=="stop"?$g(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$19712_channelHandleArray(I),this.JSC$19705_backChannelRetryCount_=0)}};
w_.prototype.JSC$19705_ensureInState_=function(z){if(!_.rf(arguments,this.state_))throw Error("Pk`"+this.state_);};
var $g=function(z,l){z.JSC$19701_channelDebug_.info("Error code "+l);if(l==2||l==9){var I=null;z.handler_&&(I=null);var b=(0,_.YN)(z.testGoogleComCallback_,z);I||(I=new _.lJ("//www.google.com/images/cleardot.gif"),_.Km(I));P5K(I.toString(),1E4,b)}else PS(2);z.onError_(l)};
w_.prototype.testGoogleComCallback_=function(z){z?(this.JSC$19701_channelDebug_.info("Successfully pinged google.com"),PS(2)):(this.JSC$19701_channelDebug_.info("Failed to ping google.com"),PS(1),this.onError_(8))};
w_.prototype.onError_=function(z){this.JSC$19701_channelDebug_.debug("HttpChannel: error - "+z);this.state_=0;this.handler_&&this.handler_.JSC$19712_channelError(z);S4C(this);cdK(this)};
var S4C=function(z){z.state_=0;z.JSC$19705_lastStatusCode_=-1;if(z.handler_)if(z.pendingMaps_.length==0&&z.JSC$19701_outgoingMaps_.length==0)z.handler_.JSC$19712_channelClosed();else{z.JSC$19701_channelDebug_.debug("Number of undelivered maps, pending: "+z.pendingMaps_.length+", outgoing: "+z.JSC$19701_outgoingMaps_.length);var l=_.ex(z.pendingMaps_),I=_.ex(z.JSC$19701_outgoingMaps_);z.pendingMaps_.length=0;z.JSC$19701_outgoingMaps_.length=0;z.handler_.JSC$19712_channelClosed(l,I)}},mkq=function(z,
l){l=BLX(z,null,l);
z.JSC$19701_channelDebug_.debug("GetForwardChannelUri: "+l);return l},XTS=function(z,l,I){l=BLX(z,z.JSC$19700_shouldUseSecondaryDomains()?l:null,I);
z.JSC$19701_channelDebug_.debug("GetBackChannelUri: "+l);return l},BLX=function(z,l,I){var b=_.UA(I);
if(b.JSC$10032_domain_!="")l&&_.Z9(b,l+"."+b.JSC$10032_domain_),_.HH(b,b.JSC$10032_port_);else{var v=window.location;b=vAs(v.protocol,l?l+"."+v.hostname:v.hostname,+v.port,I)}z.JSC$19705_extraParams_&&_.h7.forEach(z.JSC$19705_extraParams_,function(M,x){_.V9(b,x,M)});
_.V9(b,"VER",z.JSC$19705_channelVersion_);A_(z,b);return b};
w_.prototype.JSC$19700_createXhrIo=function(z){if(z)throw Error("Mk");z=new _.Az;z.JSC$9797_withCredentials_=!1;return z};
w_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
w_.prototype.notifyServerReachabilityEvent=function(z){var l=DkX;l.dispatchEvent(new Y4C(l,z))};
w_.prototype.JSC$19700_shouldUseSecondaryDomains=function(){return!1};
new gAK;var SFF=function(){};
_.p=SFF.prototype;_.p.JSC$19712_channelOpened=function(){};
_.p.JSC$19712_channelHandleArray=function(){};
_.p.JSC$19712_channelSuccess=function(){};
_.p.JSC$19712_channelError=function(){};
_.p.JSC$19712_channelClosed=function(){};
_.p.JSC$19712_getAdditionalParams=function(){return{}};
_.p.isActive=function(){return!0};var dwl=function(z){z.front_.length===0&&(z.front_=z.back_,z.front_.reverse(),z.back_=[])};
_.p=rPq.prototype;_.p.enqueue=function(z){this.back_.push(z)};
_.p.peek=function(){dwl(this);return _.c7(this.front_)};
_.p.getCount=function(){return this.front_.length+this.back_.length};
_.p.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.p.clear=function(){this.front_=[];this.back_=[]};
_.p.contains=function(z){return _.rf(this.front_,z)||_.rf(this.back_,z)};
_.p.remove=function(z){var l=this.front_;var I=Array.prototype.lastIndexOf.call(l,z,l.length-1);I>=0?(_.KQ5(l,I),l=!0):l=!1;return l||_.$5(this.back_,z)};
_.p.getValues=function(){for(var z=[],l=this.front_.length-1;l>=0;--l)z.push(this.front_[l]);l=this.back_.length;for(var I=0;I<l;++I)z.push(this.back_[I]);return z};var WS=function(z){this.JSC$19716_map_=new _.iX;this.size=0;z&&this.addAll(z)},o$W=function(z){var l=typeof z;
return l=="object"&&z||l=="function"?"o"+_.UY(z):l.charAt(0)+z};
_.p=WS.prototype;_.p.getCount=function(){return this.JSC$19716_map_.size};
_.p.add=function(z){this.JSC$19716_map_.set(o$W(z),z);this.size=this.JSC$19716_map_.size};
_.p.addAll=function(z){z=_.Eh(z);for(var l=z.length,I=0;I<l;I++)this.add(z[I]);this.size=this.JSC$19716_map_.size};
_.p.removeAll=function(z){z=_.Eh(z);for(var l=z.length,I=0;I<l;I++)this.remove(z[I]);this.size=this.JSC$19716_map_.size};
_.p.delete=function(z){z=this.JSC$19716_map_.remove(o$W(z));this.size=this.JSC$19716_map_.size;return z};
_.p.remove=function(z){return this.delete(z)};
_.p.clear=function(){this.JSC$19716_map_.clear();this.size=0};
_.p.isEmpty=function(){return this.JSC$19716_map_.size===0};
_.p.has=function(z){return this.JSC$19716_map_.containsKey(o$W(z))};
_.p.contains=function(z){return this.JSC$19716_map_.containsKey(o$W(z))};
_.p.getValues=function(){return this.JSC$19716_map_.getValues()};
_.p.values=function(){return this.JSC$19716_map_.values()};
_.p.clone=function(){return new WS(this)};
_.p.equals=function(z){return this.getCount()==Ibl(z)&&Phs(this,z)};
var Phs=function(z,l){var I=Ibl(l);if(z.getCount()>I)return!1;!(l instanceof WS)&&I>5&&(l=new WS(l));return bNW(z,function(b){var v=l;return v.contains&&typeof v.contains=="function"?v.contains(b):v.containsValue&&typeof v.containsValue=="function"?v.containsValue(b):_.wf(v)||typeof v==="string"?_.rf(v,b):_.h7.containsValue(v,b)})};
WS.prototype.__iterator__=function(){return this.JSC$19716_map_.__iterator__(!1)};
WS.prototype[Symbol.iterator]=function(){return this.values()};var h6K={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(z){return(this._clampValue(z)-this.min)/(this.max-this.min)},
_clampValue:function(z){return Math.min(this.max,Math.max(this.min,this._calcStep(z)))},
_calcStep:function(z){z=parseFloat(z);if(!this.step)return z;z=Math.round((z-this.min)/this.step);return this.step<1?z/(1/this.step)+this.min:z*this.step+this.min},
_validateValue:function(){var z=this._clampValue(this.value);this.value=this.oldValue=isNaN(z)?this.oldValue:z;return this.value!==z},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var sfS;var r4S;_.hP({_template:function(){if(r4S!==void 0)return r4S;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;sfS===void 0&&(sfS=document.createElement("template"));var b=sfS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return r4S=z},
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(){_.IR(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(z){z.keyCode===27&&(z.preventDefault(),this.close())},
_track:function(z){if(!this.persistent&&!this.disableSwipe)switch(z.preventDefault(),z.detail.state){case "start":this._trackStart(z);break;case "track":this._trackMove(z);break;case "end":this._trackEnd(z)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var z=this.$.contentContainer.getBoundingClientRect();this._savedWidth=z.width;this._translateOffset=this.position==="left"?z.left:z.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(z){this._trackDetails&&(this._translateDrawer(z.detail.dx+this._translateOffset),this._trackDetails.push({dx:z.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(z){if(this._trackDetails){var l=z.detail.dx+this._translateOffset,I=this.getWidth();l=this.position==="left"?l>=0||l<=-I:l<=0||l>=I;if(!l){var b=this._trackDetails;this._trackDetails=null;this._flingDrawer(z,b);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}I/=2;z.detail.dx<-I?this.opened=this.position==="right":z.detail.dx>I&&(this.opened=this.position==="left");l?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(z,l){for(var I=Date.now(),b=I-100,v,M=0,x=l.length-1;M<=x;){var g=M+x>>1,G=l[g];G.timeStamp>=b?(v=G,x=g-1):M=g+1}return v?(z.detail.dx-v.dx)/(I-v.timeStamp||1):0},
_flingDrawer:function(z,l){l=this._calculateVelocity(z,l);if(!(Math.abs(l)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;z=z.detail.dx+this._translateOffset;var I=this.getWidth(),b=this.position==="left",v=l>0;v?(l=Math.max(l,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(l=Math.min(l,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");l=this._FLING_INITIAL_SLOPE*(!v&&b?-(z+I):v&&!b?I-z:-z)/l;this._styleTransitionDuration(l);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,l)}},
_styleTransitionDuration:function(z){this.style.transitionDuration=z+"ms";this.$.contentContainer.style.transitionDuration=z+"ms";this.$.scrim.style.transitionDuration=z+"ms"},
_styleTransitionTimingFunction:function(z){this.$.contentContainer.style.transitionTimingFunction=z;this.$.scrim.style.transitionTimingFunction=z},
_translateDrawer:function(z){var l=this.getWidth();this.position==="left"?(z=Math.max(-l,Math.min(z,0)),this.$.scrim.style.opacity=1+z/l):(z=Math.max(0,Math.min(z,l)),this.$.scrim.style.opacity=1-z/l);this.translate3d(z+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var z=this._drawerState;z===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;z!==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=""),z!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var z=_.YO(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"])');z.length>0?(this._firstTabStop=z[0],this._lastTabStop=z[z.length-1]):
this._lastTabStop=this._firstTabStop=null;(z=this.getAttribute("tabindex"))&&parseInt(z,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(z){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||z.keyCode!==9||(z.shiftKey?this._firstTabStop&&_.YO(z).localTarget===this._firstTabStop&&(z.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.YO(z).localTarget===this._lastTabStop&&(z.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(z,l){this.toggleClass("visible",z&&!l,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var $ws;var e6K;_.hP({_template:function(){if(e6K!==void 0)return e6K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;$ws===void 0&&($ws=document.createElement("template"));var b=$ws;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return e6K=z},
is:"tp-yt-paper-progress",behaviors:[h6K],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(z){this.toggleClass("indeterminate",z,this.$.primaryProgress)},
_transformProgress:function(z,l){z.style.transform=z.style.webkitTransform="scaleX("+l/100+")"},
_mainRatioChanged:function(z){this._transformProgress(this.$.primaryProgress,z)},
_progressChanged:function(z,l,I,b,v){z=this._clampValue(z);l=this._clampValue(l);var M=this._calcRatio(z)*100,x=this._calcRatio(l)*100;this._setSecondaryRatio(M);this._transformProgress(this.$.secondaryProgress,M);this._transformProgress(this.$.primaryProgress,x);this.secondaryProgress=z;v?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",l);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",b)},
_disabledChanged:function(z){this.setAttribute("aria-disabled",z?"true":"false")},
_hideSecondaryProgress:function(z){return z===0}});var wZC;var A4K;var WBs=function(){};
_.p=WBs.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._buttonStateChanged=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._calcRatio=function(){};
_.p._clampValue=function(){};
_.p._calcStep=function(){};
_.p._validateValue=function(){};
_.p._update=function(){};
_.p._setImmediateValue=function(){};
_.p._setExpand=function(){};
_.p._setDragging=function(){};
_.p._setTransiting=function(){};
_.p._setMarkers=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
_.p._setRatio=function(){};
WBs=_.hP({_template:function(){if(A4K!==void 0)return A4K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;wZC===void 0&&(wZC=document.createElement("template"));var b=wZC;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return A4K=z},
is:"tp-yt-paper-slider",behaviors:[_.rB,_.Ai,_.FOn,h6K],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&&_.rS(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(z,l,I){this.setAttribute("aria-valuemin",l);this.setAttribute("aria-valuemax",I);this.setAttribute("aria-valuenow",z);this._positionKnob(this._calcRatio(z)*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(z){this._setImmediateValue(this._calcStep(this._calcKnobPosition(z)));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(z){return(this.max-this.min)*z/100+this.min},
_onTrack:function(z){z.stopPropagation();switch(z.detail.state){case "start":this._trackStart(z);break;case "track":this._trackX(z);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(z){this.dragging||this._trackStart(z);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,z.detail.dx*(this._isRTL?-1:1)));z=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(z);z=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(z+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var z=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;z.transform=z.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(z){this._expandKnob();z.preventDefault();this.focus()},
_bartrack:function(z){this._allowBarEvent(z)&&this._onTrack(z)},
_barclick:function(z){this._w=this.$.sliderBar.offsetWidth;var l=this.$.sliderBar.getBoundingClientRect();l=(z.detail.x-l.left)/this._w*100;this._isRTL&&(l=100-l);var I=this.ratio;this._setTransiting(!0);this._positionKnob(l);I===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
z.preventDefault();this.focus()},
_bardown:function(z){this._allowBarEvent(z)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(z))},
_knobTransitionEnd:function(z){z.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(z,l,I,b){b||this._setMarkers([]);l=Math.round((I-l)/this.step);l>z&&(l=z);if(l<0||!isFinite(l))l=0;this._setMarkers(Array(l))},
_mergeClasses:function(z){return Object.keys(z).filter(function(l){return z[l]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(z){return!this.ignoreBarTouch||z.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(z){this._isRTL?this._incrementKey(z):this._decrementKey(z)},
_rightKey:function(z){this._isRTL?this._decrementKey(z):this._incrementKey(z)},
_incrementKey:function(z){this.disabled||(z.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),z.preventDefault())},
_decrementKey:function(z){this.disabled||(z.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),z.preventDefault())},
_changeValue:function(z){this.value=z.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(z){z.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.iIn._createRipple.call(this)},
_focusedChanged:function(z){z&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=z?"":"none",this._ripple.holdDown=z)}});var n$1;var LBW;var na=null,Uwc=function(){};
_.p=Uwc.prototype;_.p.fit=function(){};
_.p._discoverInfo=function(){};
_.p.resetFit=function(){};
_.p.refit=function(){};
_.p.position=function(){};
_.p.constrain=function(){};
_.p._sizeDimension=function(){};
_.p.__sizeDimension=function(){};
_.p.center=function(){};
_.p.__getNormalizedRect=function(){};
_.p.__getOffscreenArea=function(){};
_.p.__getPosition=function(){};
_.p.notifyResize=function(){};
_.p.assignParentResizable=function(){};
_.p.stopResizeNotificationsFor=function(){};
_.p._subscribeIronResize=function(){};
_.p._unsubscribeIronResize=function(){};
_.p.resizerShouldNotify=function(){};
_.p._onDescendantIronResize=function(){};
_.p._fireResize=function(){};
_.p._onIronRequestResizeNotifications=function(){};
_.p._parentResizableChanged=function(){};
_.p._notifyDescendant=function(){};
_.p._requestResizeNotifications=function(){};
_.p._findParent=function(){};
_.p.toggle=function(){};
_.p.open=function(){};
_.p.close=function(){};
_.p.cancel=function(){};
_.p.invalidateTabbables=function(){};
_.p._ensureSetup=function(){};
_.p._canceledChanged=function(){};
_.p._withBackdropChanged=function(){};
_.p._prepareRenderOpened=function(){};
_.p._finishRenderOpened=function(){};
_.p._finishRenderClosed=function(){};
_.p._preparePositioning=function(){};
_.p._finishPositioning=function(){};
_.p._applyFocus=function(){};
_.p._onCaptureClick=function(){};
_.p._onCaptureFocus=function(){};
_.p._onCaptureEsc=function(){};
_.p._onCaptureTab=function(){};
_.p._onIronResize=function(){};
_.p._onNodesChange=function(){};
_.p.__ensureFirstLastFocusables=function(){};
_.p.__openedChanged=function(){};
_.p.__deraf=function(){};
_.p.__updateScrollObservers=function(){};
_.p.__addScrollListeners=function(){};
_.p.__removeScrollListeners=function(){};
_.p.__isValidScrollAction=function(){};
_.p.__onCaptureScroll=function(){};
_.p.__saveScrollPosition=function(){};
_.p.__restoreScrollPosition=function(){};
_.p._setCanceled=function(){};
Uwc=_.hP({_template:function(){if(LBW!==void 0)return LBW;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;n$1===void 0&&(n$1=document.createElement("template"));var b=n$1;I.call(l,b.content.cloneNode(!0),z.content.firstChild);return LBW=z},
is:"tp-yt-paper-toast",behaviors:[_.GJ],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(){_.$4._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.pw.requestAvailability()},
show:function(z){typeof z=="string"&&(z={text:z});for(var l in z)l.indexOf("_")===0?_.$4._warn('The property "'+l+'" is private and was not set.'):l in this?this[l]=z[l]:_.$4._warn('The property "'+l+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(z){z&&z.target===this&&z.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(na&&na!==this&&na.close(),na=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):na===this&&(na=null);_.gL._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(z){this.positionTarget=z},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var ahS=new _.Z0("disablePersonalizationAction");var dal=new _.Z0("showDmaConsentFlowCommand");var oMq=new _.Z0("showMmgNoticeCommand");var VD1=new _.Z0("saveConsentAction");var jf8=function(z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PX(z)};
_.m(jf8,_.Da);var J44=_.rT$(jf8);var zsF=new _.Z0("updateTopbarAvatarAction");var l$W=new _.Z0("channelHandleValidationResultRenderer");var I$8=new _.Z0("generateHandleFromNameResultRenderer");var be4=new _.Z0("channelHandleInputRenderer");var vYs=new _.Z0("copyLinkRenderer");var M$X=new _.Z0("timedCommand");var pLs=new _.Z0("clearCookieAction");var DQ1=new _.Z0("getMultiPageMenuAction");var xQ8=new _.Z0("addToGuideSectionAction"),OeK=new _.Z0("removeFromGuideSectionAction");var gYX=new _.Z0("updateNotificationsUnseenCountAction");var GKl=new _.Z0("resetChannelUnreadCountCommand");var NIs=new _.Z0("resetSubscriptionsUnreadDotCommand");var EYF=new _.Z0("selectLanguageCommand");var V9y=new _.Z0("sendFeedbackAction");var uDK=new _.Z0("uploadImageToScottyCommand");var Ze8=new _.Z0("registerPromoCommand");var HeW=new _.Z0("setPushNotificationsEnabledCommand");var yol=new _.Z0("desktopTopbarRenderer");var f$4=new _.Z0("surveyFollowUpRenderer");var Crc=new _.Z0("handlesClaimingRadioOptionRenderer");var kKK=new _.Z0("hotkeyDialogRenderer");var RsK=new _.Z0("modifyReportFormCommand");var mQ0=new _.Z0("accountLinkCommand");var K6q=new _.Z0("accountUnlinkCommand");var t$c=new _.Z0("logAccountLinkingEventCommand");var BIs=new _.Z0("guideCollapsibleEntryRenderer");var XL0=new _.Z0("guideDownloadsEntryRenderer");var La=new _.Z0("guideEntryRenderer");var qM1=new _.Z0("getLocationCommand");var ieK=new _.Z0("locationCollectionCommand");var F6q=new _.Z0("storiesItemViewModel");var QVq=new _.Z0("addToRemoteQueueAction");var YMK=new _.Z0("insertInRemoteQueueAction");var TIq=new _.Z0("removeFromRemoteQueueAction");var coX=new _.Z0("notificationRenderer");var kDK=new _.Z0("localWatchHistoryCommand");var SM0=new _.Z0("pdgBuyFlowHeaderRenderer");var dQX=new _.Z0("pdgColorSliderRenderer");var oY1=new _.Z0("pdgCommentOptionRenderer");var Pry=new _.Z0("pdgCommentPreviewRenderer");var hs8=new _.Z0("superVodSelectableItemButtonRenderer");var sVX=new _.Z0("switchButtonRenderer");var ro4=new _.Z0("upsellDialogRenderer");var $QK=new _.Z0("feedbackQuestionRenderer"),ess=new _.Z0("feedbackOptionRenderer");var wLW=new _.Z0("sponsorshipsTierRenderer"),Aol=new _.Z0("sponsorshipsPromotionChannelRenderer");var W6l=new _.Z0("simpleSurveyMessageRenderer");var V2K=new _.Z0("invokeInstrumentManagerAction");var nYC=new _.Z0("logYpcFlowDismissCommand");var L61=new _.Z0("logYpcFlowStartCommand");var UQK=new _.Z0("unlimitedCreateFamilyEndpoint");var a$K=new _.Z0("iconBadgeRenderer");var Ryy=new _.Z0("collaborativePlaylistVisibilityValidationRule");var V$s=function(z){_.Y9.call(this,"channelMessage");this.message=z};
_.m(V$s,_.Y9);var jVF=function(z){_.Y9.call(this,"channelError");this.error=z};
_.m(jVF,_.Y9);var JoF={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},zFy={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},lWl={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},IWF={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},bfK={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var UP=function(z){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 _.iX;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;z&&(this.id=z.id||z.name,this.name=z.name,this.clientName=z.clientName?z.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=z.app,this.type=z.type||"REMOTE_CONTROL",this.username=z.user||"",this.avatar=z.userAvatarUri||"",this.obfuscatedGaiaId=z.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=z.ownerObfuscatedGaiaId||"",this.castUserId=z.castUserId||"",this.theme=z.theme||"u",vj8(this,z.capabilities||""),MTK(this,
z.compatibleSenderThemes||""),pEC(this,z.experiments||""),this.remoteControllerUrl=z.remoteControllerUrl||"",this.localChannelEncryptionKey=z.localChannelEncryptionKey||"",this.deviceContext=z.deviceContext,this.brand=z.brand||"",this.model=z.model||"",this.year=z.year||0,this.os=z.os||"",this.osVersion=z.osVersion||"",this.chipset=z.chipset||"",this.mdxDialServerType=z.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=z.pairingType||"unknown",z=z.deviceInfo)&&(z=JSON.parse(z),this.brand=
z.brand||"",this.model=z.model||"",this.year=z.year||0,this.os=z.os||"",this.osVersion=z.osVersion||"",this.chipset=z.chipset||"",this.clientName=z.clientName?z.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=z.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
UP.prototype.copy=function(){var z={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&&(z.brand=this.brand);
this.model&&(z.model=this.model);this.year&&(z.year=this.year);this.os&&(z.os=this.os);this.osVersion&&(z.osVersion=this.osVersion);this.chipset&&(z.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(z.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(z.mdxDialServerType=this.mdxDialServerType);z=new UP(z);z.connected=this.connected;z.remoteControllerUrl=this.remoteControllerUrl;z.localChannelEncryptionKey=this.localChannelEncryptionKey;z.deviceContext=
this.deviceContext;z.castUserId=this.castUserId;return z};
UP.prototype.equals=function(z){return z?this.id==z.id:!1};
var vj8=function(z,l){z.capabilities.clear();_.E9(l.split(","),_.tH(_.h7.contains,JoF)).forEach(function(I){z.capabilities.add(I)})},MTK=function(z,l){z.compatibleSenderThemes.clear();
_.E9(l.split(","),_.tH(_.h7.contains,zFy)).forEach(function(I){z.compatibleSenderThemes.add(I)})},pEC=function(z,l){z.experiments.clear();
l.split(",").forEach(function(I){z.experiments.add(I)})};_.Gs(eHq,_.Q9);_.p=eHq.prototype;_.p.JSC$19752_onTick_=function(){this.JSC$19750_interval_=Math.min(3E5,this.JSC$19750_interval_*2);this.JSC$19752_listener_();this.nextTickTime_&&this.start()};
_.p.start=function(){var z=this.JSC$19750_interval_+15E3*Math.random(),l=this.delay_;l.isActive()||l.start(z);this.nextTickTime_=Date.now()+z};
_.p.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.p.isActive=function(){return this.delay_.isActive()};
_.p.reset=function(){this.delay_.stop();this.JSC$19750_interval_=5E3};_.Gs(ta,SFF);_.p=ta.prototype;_.p.subscribe=function(z,l,I){return this.pubsub_.subscribe(z,l,I)};
_.p.unsubscribe=function(z,l,I){return this.pubsub_.unsubscribe(z,l,I)};
_.p.unsubscribeByKey=function(z){return this.pubsub_.unsubscribeByKey(z)};
_.p.publish=function(z,l){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.p.dispose=function(){this.JSC$19753_disposed_||(this.JSC$19753_disposed_=!0,_.p0(this.pubsub_),this.disconnect(),_.p0(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19753_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Hu({})})};
_.p.isDisposed=function(){return this.JSC$19753_disposed_};
_.p.connect=function(z,l,I){var b=this,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return _.tt(G,2),b.useAsyncBrowserChannelHandler_?G.yield(b.connectPromise_,2):G.jumpTo(2);_.K4(G);if(b.JSC$19753_disposed_||b.JSC$19753_channel_&&b.JSC$19753_channel_.getState()==2)return G.return();b.sCookie_="";b.reconnectTimer_.stop();b.connectionParams_=z||null;b.connectUi_=l||0;v=b.JSC$19753_pathPrefix_+"/test";M=b.JSC$19753_pathPrefix_+"/bind";x=new w_(I?I.firstTestResults:null,I?I.secondTestResults:null,
b.enableAsyncTest_);if(g=b.JSC$19753_channel_)g.handler_=null;x.handler_=b;b.JSC$19753_channel_=x;if(b.useAsyncBrowserChannelHandler_)return b.connectPromise_=Dd0(b).then(function(){return xdq(b,v,M,g,I)}),G.return(b.connectPromise_.then(function(){b.connectPromise_=_.Hu()}));
xdq(b,v,M,g,I);return _.B0(G,0)})};
var xdq=function(z,l,I,b,v){Ofl(z);if(z.JSC$19753_channel_){var M=_.sZ("ID_TOKEN"),x=z.JSC$19753_channel_.JSC$19705_extraHeaders_||{};M?x["x-youtube-identity-token"]=M:delete x["x-youtube-identity-token"];z.JSC$19753_channel_.JSC$19705_extraHeaders_=x}gjF(z);b?(b.getState(),z.JSC$19753_channel_.connect(l,I,z.defaultQueryParams_,b.sid_,b.JSC$19705_lastArrayId_)):v?z.JSC$19753_channel_.connect(l,I,z.defaultQueryParams_,v.sessionId,v.arrayId):z.JSC$19753_channel_.connect(l,I,z.defaultQueryParams_)};
ta.prototype.disconnect=function(z){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Hu())}finally{this.disconnectUi_=z||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Ofl(this),this.JSC$19753_channel_&&(this.JSC$19753_channel_.getState()==3&&i1y(this.JSC$19753_channel_),this.JSC$19753_channel_.disconnect()),this.disconnectUi_=0}};
ta.prototype.sendMessage=function(z,l){var I=this,b;return _.O(function(v){switch(v.nextAddress){case 1:_.tt(v,2);if(!I.useAsyncBrowserChannelHandler_){v.jumpTo(2);break}return v.yield(I.connectPromise_,2);case 2:_.K4(v);if(I.JSC$19753_disposed_)return v.return();b={_sc:z};l&&_.h7.extend(b,l);if(I.reconnectTimer_.isActive()||(I.JSC$19753_channel_?I.JSC$19753_channel_.getState():0)==2){I.JSC$19753_pendingMessages_.push(b);v.jumpTo(6);break}if(!I.isChannelOpened()){v.jumpTo(6);break}_.tt(v,8);if(!I.useAsyncBrowserChannelHandler_||
Gq1(I,z)){v.jumpTo(8);break}return v.yield(Dd0(I),8);case 8:_.K4(v,0,0,1);I.isChannelOpened()&&(Gq1(I,z)||gjF(I),Ofl(I),qFK(I.JSC$19753_channel_,b));_.B0(v,6,1);break;case 6:_.B0(v,0)}})};
var Gq1=function(z,l){return z.enableMdxAuthForConnectionOnly_?!0:z.disableMdxAuthForAdMessages_?Object.values(lWl).includes(l):z.disableMdxAuthForNonPlaybackMessages_?!Object.values(IWF).includes(l):z.disableMdxAuthForShortsMessages_?Object.values(bfK).includes(l):!1};
ta.prototype.JSC$19712_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19753_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)NUW(this);else{var z=this.JSC$19753_pendingMessages_;this.JSC$19753_pendingMessages_=[];var l=z.length;gjF(this);EjX(this,z,l);ueC(this)}else ueC(this)};
var NUW=function(z){var l,I;_.O(function(b){if(b.nextAddress==1)return _.tt(b,2),b.yield(Dd0(z),2);_.K4(b);l=z.JSC$19753_pendingMessages_;z.JSC$19753_pendingMessages_=[];I=l.length;EjX(z,l,I);ueC(z);return _.B0(b,0)})},EjX=function(z,l,I){for(var b=0;b<I;++b)qFK(z.JSC$19753_channel_,l[b]);
ueC(z)},ueC=function(z){z.publish("handlerOpened");
z.JSC$19753_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.p=ta.prototype;_.p.JSC$19712_channelError=function(z){var l=z==2&&this.JSC$19753_channel_.JSC$19705_lastStatusCode_==401;z==4||l||this.reconnectTimer_.start();this.publish("handlerError",z,l);l=Object.keys(Fq1).find(function(I){return Fq1[I]===z});
this.JSC$19753_channelErrorCounter.increment("BROWSER_CHANNEL",l!=null?l:"UNKNOWN")};
_.p.JSC$19712_channelClosed=function(z,l){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(l)for(var I=l.length,b=0;b<I;++b){var v=l[b].map;v&&this.JSC$19753_pendingMessages_.push(v)}this.JSC$19753_channelClosedCounter.increment("BROWSER_CHANNEL");z&&this.pendingMapsOnClosedCounter.JSC$9933_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",z.length);l&&this.undeliveredMapsOnClosedCounter.JSC$9936_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
l.length)};
_.p.JSC$19712_channelSuccess=function(z,l){l!=null&&z!=null&&this.channelMessageSentCounter.increment()};
_.p.JSC$19712_getAdditionalParams=function(){var z={v:2};this.sCookie_&&(z.gsessionid=this.sCookie_);this.connectUi_!=0&&(z.ui=""+this.connectUi_);this.disconnectUi_!=0&&(z.ui=""+this.disconnectUi_);this.connectionParams_&&_.h7.extend(z,this.connectionParams_);return z};
_.p.JSC$19712_channelHandleArray=function(z){z[0]=="S"?this.sCookie_=z[1]:z[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19753_channel_.disconnect()):this.publish("handlerMessage",new $XF(z[0],z[1]));this.JSC$19753_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.p.isChannelOpened=function(){return!!this.JSC$19753_channel_&&this.JSC$19753_channel_.getState()==3};
var Ofl=function(z){if(z.JSC$19753_channel_){var l=z.JSC$19753_getXsrfToken_(),I=z.JSC$19753_channel_.JSC$19705_extraHeaders_||{};l?I["x-youtube-lounge-xsrf-token"]=l:delete I["x-youtube-lounge-xsrf-token"];z.JSC$19753_channel_.JSC$19705_extraHeaders_=I}},Dd0=function(z){if(z.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Hu();
if(!z.enableCachedUpdateAuthorizationHeader_)return Zf8(z);z.updateAuthorizationHeaderPromise_===null&&(z.updateAuthorizationHeaderPromise_=Zf8(z));return z.updateAuthorizationHeaderPromise_},Zf8=function(z){return _.rO(z.getAuthorizationHeader_().then(function(l){HfK(z,l)}).thenCatch(function(){}),function(){z.updateAuthorizationHeaderPromise_=null})},HfK=function(z,l){if(z.JSC$19753_channel_){var I=z.JSC$19753_channel_.JSC$19705_extraHeaders_||{};
l&&Object.keys(l).length>0?I=Object.assign({},I,l):delete I.Authorization;z.JSC$19753_channel_.JSC$19705_extraHeaders_=I}},gjF=function(z){z.getAuthorizationHeaderSync_&&!z.useAsyncBrowserChannelHandler_&&HfK(z,z.getAuthorizationHeaderSync_())};
_.p=ta.prototype;_.p.setLoungeToken=function(z){(this.defaultQueryParams_.loungeIdToken=z)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19753_channel_){var l=this.JSC$19753_channel_.JSC$19705_extraHeaders_||{};z?l["X-YouTube-LoungeId-Token"]=z:delete l["X-YouTube-LoungeId-Token"];this.JSC$19753_channel_.JSC$19705_extraHeaders_=l}};
_.p.getDeviceId=function(){return this.defaultQueryParams_.id};
_.p.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var z=this.reconnectTimer_;z.delay_.fire();z.start()};
_.p.safeReconnect_=function(){var z=this.JSC$19753_channel_,l=0;z.JSC$19705_backChannelRequest_&&l++;z.forwardChannelRequest_&&l++;l==0&&this.connect(this.connectionParams_,this.connectUi_)};var Yu=function(z,l){var I=z.basePath;z.supportCors&&(I=z.scheme+"://"+z.domain+z.port+z.basePath);return _.Jr(I+l,{})};
Bv.prototype.sendRequest=function(z,l,I,b,v,M,x){z={format:M?"RAW":"JSON",method:z,context:this,timeout:5E3,withCredentials:!!x,onSuccess:_.tH(this.JSC$19758_onSuccess_,b,!M),onError:_.tH(this.onError_,v),onTimeout:_.tH(this.JSC$19758_onTimeout_,v)};I&&(z.postParams=I,z.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.fG(l,z)};
Bv.prototype.JSC$19758_onSuccess_=function(z,l,I,b){l?z(b):z({text:I.responseText})};
Bv.prototype.onError_=function(z,l){z(Error("Qk`"+l.status))};
Bv.prototype.JSC$19758_onTimeout_=function(z){z(Error("Rk"))};var qI=function(z,l){return!!l&&(z.id==l||z.uuid==l)},y$s=function(z){return{name:z.name,
screenId:z.id,loungeToken:z.token,dialId:z.uuid,screenIdType:z.idType}},fW1=function(z){return new Xy(z)},C0K=function(z){return Array.isArray(z)?_.s7(z,fW1):[]},Jxc=function(z){if(!z)return"null";
var l=z.token?".."+z.token.slice(-6):"-",I=z.uuid?".."+z.uuid.slice(-6):"-";return'{name:"'+z.name+'",id:'+z.id.substr(0,6)+"..,token:"+(l+",uuid:"+I+",idType:"+z.idType+"}")},Xh0=function(z){return Array.isArray(z)?"["+_.s7(z,Jxc).join(",")+"]":"null"};var phl="",Qv=null;var ZEF=function(z,l){_.oW.call(this);var I=this;this.handler=z();this.handler.subscribe("handlerOpened",this.JSC$19765_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(b,v){I.onError(v)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=l};
_.m(ZEF,_.oW);_.p=ZEF.prototype;_.p.connect=function(z,l,I){this.handler.connect(z,l,I)};
_.p.disconnect=function(z){this.handler.disconnect(z)};
_.p.reconnect=function(){this.handler.reconnect()};
_.p.getDeviceId=function(){return this.handler.getDeviceId()};
_.p.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.p.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.p.JSC$19765_onOpened=function(){this.dispatchEvent("channelOpened");var z=this.handler,l=this.currentScreenId;_.sr("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!z.JSC$19753_channel_.useChunked_,sessionId:z.JSC$19753_channel_.sid_,arrayId:z.JSC$19753_channel_.JSC$19705_lastArrayId_});_.sr("yt-remote-session-screen-id",l);z=zKc();l=lfS();_.rf(z,l)||z.push(l);MZF(z);vC0()};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(z){this.dispatchEvent(new V$s(z))};
_.p.onError=function(z){this.dispatchEvent(new jVF(z?1:0))};
_.p.sendMessage=function(z,l){this.handler.sendMessage(z,l)};
_.p.setLoungeToken=function(z){this.handler.setLoungeToken(z)};
_.p.dispose=function(){this.handler.dispose()};var uaW=function(z,l,I){var b=this;I=I===void 0?function(){return""}:I;
var v=v===void 0?new ItK:v;var M=M===void 0?new _.ks:M;this.pathPrefix=z;this.defaultQueryParams=l;this.getXsrfToken=I;this.JSC$19768_pubsub=M;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new eHq(function(){var x;((x=b.channel)==null?void 0:TBK((new Mo1(x,x.JSC$19676_channel_)).JSC$19686_channel_.forwardChannelRequestPool_))===0&&b.connect(b.connectionParams,b.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19768_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19768_channelOpenedCounter=new wyq;this.JSC$19768_channelClosedCounter=new APS;this.JSC$19768_channelMessageReceivedCounter=new nE8;this.JSC$19768_channelErrorCounter=new L21};
uaW.prototype.connect=function(z,l){z=z===void 0?{}:z;l=l===void 0?0:l;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=z,this.connectUi=l,kq1(this),(z=_.sZ("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=z: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 oT(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,RF1(this))};
var RF1=function(z){_.dZ(z.channel,"w",function(){z.channelState=3;z.reconnectTimer.reset();z.connectionParams=null;z.connectUi=0;for(var l=_.D(z.nonAckedMessagesOnChannelClosed),I=l.next();!I.done;I=l.next())I=I.value,z.channel&&z.channel.send(I);z.nonAckedMessagesOnChannelClosed=[];z.publish("webChannelOpened");z.JSC$19768_channelOpenedCounter.increment("WEB_CHANNEL")});
_.dZ(z.channel,"x",function(){z.channelState=0;z.reconnectTimer.isActive()||z.publish("webChannelClosed");var l,I=(l=z.channel)==null?void 0:pTq(new Mo1(l,l.JSC$19676_channel_));I&&(z.nonAckedMessagesOnChannelClosed=[].concat(_.ht(I)));z.JSC$19768_channelClosedCounter.increment("WEB_CHANNEL")});
_.dZ(z.channel,"z",function(l){var I=l.data;I[0]==="gracefulReconnect"?(z.reconnectTimer.start(),z.channel&&z.channel.close()):z.publish("webChannelMessage",new $XF(I[0],I[1]));z.lastStatusCode=l.statusCode;z.JSC$19768_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.dZ(z.channel,"y",function(){z.lastStatusCode===401||z.reconnectTimer.start();z.publish("webChannelError");z.JSC$19768_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.p=uaW.prototype;_.p.disconnect=function(z){this.disconnectUi=z===void 0?0:z;this.reconnectTimer.stop();kq1(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.p.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var z=this.reconnectTimer;z.delay_.fire();z.start()};
_.p.sendMessage=function(z,l){this.channel&&(kq1(this),z=Object.assign({},{_sc:z},l),this.channel.send(z))};
_.p.setLoungeToken=function(z){z||this.reconnectTimer.stop();z?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=z:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var kq1=function(z){var l=z.getXsrfToken();l?z.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=l:delete z.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.p=uaW.prototype;_.p.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.p.publish=function(z){return this.JSC$19768_pubsub.publish.apply(this.JSC$19768_pubsub,[z].concat(_.ht(_.AT.apply(1,arguments))))};
_.p.subscribe=function(z,l,I){return this.JSC$19768_pubsub.subscribe(z,l,I)};
_.p.unsubscribe=function(z,l,I){return this.JSC$19768_pubsub.unsubscribe(z,l,I)};
_.p.unsubscribeByKey=function(z){return this.JSC$19768_pubsub.unsubscribeByKey(z)};
_.p.dispose=function(){this.JSC$19768_disposed||(this.JSC$19768_disposed=!0,_.p0(this.JSC$19768_pubsub),this.disconnect(),_.p0(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.p.isDisposed=function(){return this.JSC$19768_disposed};var ECK=function(z){_.oW.call(this);this.webChannelService=z();this.webChannelService.subscribe("webChannelOpened",this.JSC$19776_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.m(ECK,_.oW);_.p=ECK.prototype;_.p.connect=function(z,l){this.webChannelService.connect(z,l)};
_.p.disconnect=function(z){this.webChannelService.disconnect(z)};
_.p.reconnect=function(){this.webChannelService.reconnect()};
_.p.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.p.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.p.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.p.JSC$19776_onOpened=function(){this.dispatchEvent("channelOpened")};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(z){this.dispatchEvent(new V$s(z))};
_.p.onError=function(){this.dispatchEvent(new jVF(this.webChannelService.lastStatusCode===401?1:0))};
_.p.sendMessage=function(z,l){this.webChannelService.sendMessage(z,l)};
_.p.setLoungeToken=function(z){this.webChannelService.setLoungeToken(z)};
_.p.dispose=function(){this.webChannelService.dispose()};var BZq=Date.now(),Tt=null,KhS=Array(50),dF=-1,tZ1=!1;_.Gs(od,_.$3);od.prototype.getScreens=function(){return this.screens};
od.prototype.contains=function(z){return!!JP1(this.screens,z)};
od.prototype.get=function(z){return z?iw(this.screens,z):null};
var md8=function(z,l){var I=z.get(l.uuid)||z.get(l.id);if(I)return z=I.name,I.id=l.id||I.id,I.name=l.name,I.token=l.token,I.uuid=l.uuid||I.uuid,I.name!=z;z.screens.push(l);return!0},KWW=function(z,l){var I=z.screens.length!=l.length;
z.screens=_.E9(z.screens,function(M){return!!JP1(l,M)});
for(var b=l.length,v=0;v<b;v++)I=md8(z,l[v])||I;return I},tT8=function(z,l){var I=z.screens.length;
z.screens=_.E9(z.screens,function(b){return!(b||l?!b!=!l?0:b.id==l.id:1)});
return z.screens.length<I};
od.prototype.info=function(z){cv(this.JSC$19777_logName_,z)};var BU4=function(z,l,I,b,v){_.$3.call(this);this.JSC$19780_http_=z;this.pairingCode_=l;this.deviceId_=I;this.friendlyName_=b;this.enableShortLivedLoungeToken_=v;this.pollIndex_=0;this.JSC$19780_xhr_=null;this.JSC$19780_timer_=NaN};
_.m(BU4,_.$3);_.p=BU4.prototype;_.p.start=function(){!this.JSC$19780_xhr_&&isNaN(this.JSC$19780_timer_)&&this.poll_()};
_.p.stop=function(){this.JSC$19780_xhr_&&(this.JSC$19780_xhr_.abort(),this.JSC$19780_xhr_=null);isNaN(this.JSC$19780_timer_)||(_.HV(this.JSC$19780_timer_),this.JSC$19780_timer_=NaN)};
_.p.disposeInternal=function(){this.stop();_.$3.prototype.disposeInternal.call(this)};
_.p.poll_=function(){this.JSC$19780_timer_=NaN;this.JSC$19780_xhr_=_.fG(Yu(this.JSC$19780_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.YN)(this.JSC$19782_onSuccess_,this),onError:(0,_.YN)(this.onError_,this),onTimeout:(0,_.YN)(this.JSC$19782_onTimeout_,this)})};
_.p.JSC$19782_onSuccess_=function(z,l){this.JSC$19780_xhr_=null;z=l.screen||{};z.dialId=this.deviceId_;z.name=this.friendlyName_;l=-1;this.enableShortLivedLoungeToken_&&z.shortLivedLoungeToken&&z.shortLivedLoungeToken.value&&z.shortLivedLoungeToken.refreshIntervalMs&&(z.screenIdType="shortLived",z.loungeToken=z.shortLivedLoungeToken.value,l=z.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Xy(z),l)};
_.p.onError_=function(z){this.JSC$19780_xhr_=null;z.status&&z.status==404?this.pollIndex_>=XEc.length?this.publish("pairingFailed",Error("Sk")):(z=XEc[this.pollIndex_],this.JSC$19780_timer_=_.EI((0,_.YN)(this.poll_,this),z),this.pollIndex_++):this.publish("pairingFailed",Error("Tk`"+z.status))};
_.p.JSC$19782_onTimeout_=function(){this.JSC$19780_xhr_=null;this.publish("pairingFailed",Error("Uk"))};
var XEc=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Gs(ha,od);_.p=ha.prototype;_.p.start=function(){Pv(this)&&this.publish("screenChange");!_.rD("yt-remote-lounge-token-expiration")&&q3X(this);_.HV(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.EI((0,_.YN)(this.start,this),1E4)};
_.p.add=function(z,l){Pv(this);md8(this,z);ifC(this,!1);this.publish("screenChange");l(z);z.token||q3X(this)};
_.p.remove=function(z,l){var I=Pv(this);tT8(this,z)&&(ifC(this,!1),I=!0);l(z);I&&this.publish("screenChange")};
_.p.updateName=function(z,l,I,b){var v=Pv(this),M=this.get(z.id);M?(M.name!=l&&(M.name=l,ifC(this,!1),v=!0),I(z)):b(Error("Vk"));v&&this.publish("screenChange")};
_.p.disposeInternal=function(){_.HV(this.loungeTokenRefreshTimer_);ha.superClass_.disposeInternal.call(this)};
var q3X=function(z){if(z.screens.length){var l=_.s7(z.screens,function(b){return b.id}),I=Yu(z.JSC$19784_http_,"/pairing/get_lounge_token_batch");
z.JSC$19784_http_.sendRequest("POST",I,{screen_ids:l.join(",")},(0,_.YN)(z.handleLoungeTokens_,z),(0,_.YN)(z.handleLoungeTokenError_,z))}};
ha.prototype.handleLoungeTokens_=function(z){Pv(this);var l=this.screens.length;z=z&&z.screens||[];for(var I=z.length,b=0;b<I;++b){var v=z[b],M=this.get(v.screenId);M&&(M.token=v.loungeToken,--l)}ifC(this,!l);l&&cv(this.JSC$19777_logName_,"Missed "+l+" lounge tokens.")};
ha.prototype.handleLoungeTokenError_=function(z){cv(this.JSC$19777_logName_,"Requesting lounge tokens failed: "+z)};
var Pv=function(z){if(_.C("deprecate_pair_servlet_enabled"))return KWW(z,[]);var l=C0K(x8s());l=_.E9(l,function(I){return!I.uuid});
return KWW(z,l)},ifC=function(z,l){gCy(_.s7(z.screens,y$s));
l&&OE4()};var aT=function(z,l){_.$3.call(this);this.getScreensToCheck_=l;l=(l=_.rD("yt-remote-online-screen-ids")||"")?l.split(","):[];for(var I={},b=this.getScreensToCheck_(),v=b.length,M=0;M<v;++M){var x=b[M].id;I[x]=_.rf(l,x)}this.screenIdSet_=I;this.JSC$19787_http_=z;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;FWX("Initialized with "+(0,_.wO)(this.screenIdSet_))};
_.m(aT,_.$3);aT.prototype.isOnline=function(z){return!!this.screenIdSet_[z]};
aT.prototype.start=function(){var z=parseInt(_.rD("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.gG()-144E5<z?0:z)?QJ8(this):(this.fastCheckEndTime_=_.gG()+3E5,_.sr("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
aT.prototype.isEmpty=function(){return _.h7.isEmpty(this.screenIdSet_)};
aT.prototype.update=function(){FWX("Updating availability on schedule.");var z=this.getScreensToCheck_(),l=_.h7.filter(this.screenIdSet_,function(I,b){return I&&!!iw(z,b)},this);
Y3C(this,l)};
var TUW=function(z,l,I){var b=Yu(z.JSC$19787_http_,"/pairing/get_screen_availability");z.JSC$19787_http_.sendRequest("POST",b,{lounge_token:l.token},(0,_.YN)(function(v){v=v.screens||[];for(var M=v.length,x=0;x<M;++x)if(v[x].loungeToken==l.token){I(v[x].status=="online");return}I(!1)},z),(0,_.YN)(function(){I(!1)},z))};
aT.prototype.disposeInternal=function(){_.HV(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.$3.prototype.disposeInternal.call(this)};
var Y3C=function(z,l){a:if(_.h7.getCount(l)!=_.h7.getCount(z.screenIdSet_))var I=!1;else{I=_.h7.getKeys(l);for(var b=I.length,v=0;v<b;++v)if(!z.screenIdSet_[I[v]]){I=!1;break a}I=!0}I||(FWX("Updated online screens: "+(0,_.wO)(z.screenIdSet_)),z.screenIdSet_=l,z.publish("screenChange"));c$l(z)},QJ8=function(z){isNaN(z.refreshTimer_)||_.HV(z.refreshTimer_);
z.refreshTimer_=_.EI((0,_.YN)(z.requestScreenAvailability_,z),z.fastCheckEndTime_>0&&z.fastCheckEndTime_<_.gG()?2E4:1E4)};
aT.prototype.requestScreenAvailability_=function(){_.HV(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var z=S3F(this);if(_.h7.getCount(z)){var l=Yu(this.JSC$19787_http_,"/pairing/get_screen_availability"),I={lounge_token:_.h7.getKeys(z).join(",")};this.currentRequest_=this.JSC$19787_http_.sendRequest("POST",l,I,(0,_.YN)(this.onScreenAvailability_,this,z),(0,_.YN)(this.onScreenAvailabilityError_,this))}else Y3C(this,{}),QJ8(this)};
aT.prototype.onScreenAvailability_=function(z,l){this.currentRequest_=null;var I=_.h7.getKeys(S3F(this));if(_.a1(I,_.h7.getKeys(z))){l=l.screens||[];I={};for(var b=l.length,v=0;v<b;++v)I[z[l[v].loungeToken]]=l[v].status=="online";Y3C(this,I);QJ8(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
aT.prototype.onScreenAvailabilityError_=function(z){this.warn_("Screen availability failed: "+z);this.currentRequest_=null;QJ8(this)};
var FWX=function(z){cv("OnlineScreenService",z)};
aT.prototype.warn_=function(z){cv("OnlineScreenService",z)};
var S3F=function(z){var l={};_.UZ(z.getScreensToCheck_(),function(I){I.token?l[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return l},c$l=function(z){z=_.h7.getKeys(_.h7.filter(z.screenIdSet_,function(l){return l}));
z.sort(_.qYQ);z.length?_.sr("yt-remote-online-screen-ids",z.join(","),60):_.$W("yt-remote-online-screen-ids")};_.Gs(st,od);_.p=st.prototype;_.p.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.p.add=function(z,l,I){this.localScreenService_.add(z,l,I)};
_.p.remove=function(z,l,I){this.localScreenService_.remove(z,l,I);this.onlineScreenService_.update()};
_.p.updateName=function(z,l,I,b){this.localScreenService_.contains(z)?this.localScreenService_.updateName(z,l,I,b):(z="Updating name of unknown screen: "+z.name,cv(this.JSC$19777_logName_,z),b(Error(z)))};
_.p.getScreens=function(z){return z?this.screens:Rcy(this.screens,_.E9(this.automaticScreens_,function(l){return!this.contains(l)},this))};
_.p.JSC$19792_getOnlineScreens=function(){return _.E9(this.getScreens(!0),function(z){return this.onlineScreenService_.isOnline(z.id)},this)};
var oj8=function(z,l,I,b,v,M){z.info("getAutomaticScreenByIds "+I+" / "+l);I||(I=z.deviceToScreenId_[l]);var x=z.getScreens(),g=I?iw(x,I):null;I&&(z.disableAutomaticScreenCache_||g)||(g=iw(x,l));if(g){g.uuid=l;var G=VM(z,g);TUW(z.onlineScreenService_,G,function(u){v(u?G:null)})}else I?dd0(z,I,(0,_.YN)(function(u){var Z=VM(this,new Xy({name:b,
screenId:I,loungeToken:u,dialId:l||""}));TUW(this.onlineScreenService_,Z,function(H){v(H?Z:null)})},z),M):v(null)};
st.prototype.JSC$19792_getScreenByPollingPairingCode=function(z,l,I,b,v,M){var x=this;this.info("getDialScreenByPairingCode "+z+" / "+l);var g=new BU4(this.JSC$19790_http_,z,l,I,b);g.subscribe("pairingComplete",function(G,u){_.p0(g);v(VM(x,G),u)});
g.subscribe("pairingFailed",function(G){_.p0(g);M(G)});
g.start();return(0,_.YN)(g.stop,g)};
var P0l=function(z,l){for(var I=z.screens.length,b=0;b<I;++b)if(z.screens[b].name==l)return z.screens[b];return null};
st.prototype.JSC$19792_getScreenByPairingCode=function(z,l,I,b){_.fG(Yu(this.JSC$19790_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:z},timeout:5E3,onSuccess:(0,_.YN)(function(v,M){v=new Xy(M.screen||{});if(!v.name||P0l(this,v.name)){a:{M=v.name;for(var x=2,g=l(M,x);P0l(this,g);){x++;if(x>20)break a;g=l(M,x)}M=g}v.name=M}I(VM(this,v))},this),
onError:(0,_.YN)(function(v){b(Error("Wk`"+v.status))},this),
onTimeout:(0,_.YN)(function(){b(Error("Xk"))},this)})};
var hFs=function(z,l,I){TUW(z.onlineScreenService_,l,I)};
st.prototype.disposeInternal=function(){_.p0(this.localScreenService_);_.p0(this.onlineScreenService_);st.superClass_.disposeInternal.call(this)};
var dd0=function(z,l,I,b){z.info("requestLoungeToken_ for "+l);var v={postParams:{screen_ids:l},method:"POST",context:z,onSuccess:function(M,x){M=x&&x.screens||[];M[0]&&M[0].screenId==l?I(M[0].loungeToken):b(Error("Yk"))},
onError:function(){b(Error("Zk"))}};
_.fG(Yu(z.JSC$19790_http_,"/pairing/get_lounge_token_batch"),v)},sJq=function(z){z.screens=z.localScreenService_.getScreens();
for(var l=_.h7.transpose(z.deviceToScreenId_),I=z.screens.length,b=0;b<I;++b){var v=z.screens[b];v.uuid=l[v.id]||""}z.info("Updated manual screens: "+Xh0(z.screens))};
st.prototype.handleScreenChange_=function(){sJq(this);this.publish("screenChange");this.onlineScreenService_.update()};
var qiK=function(z){r$K(z);z.localScreenService_=new ha(z.JSC$19790_http_);z.localScreenService_.subscribe("screenChange",(0,_.YN)(z.handleScreenChange_,z));sJq(z);z.disableAutomaticScreenCache_||(z.automaticScreens_=C0K(_.rD("yt-remote-automatic-screen-cache")||[]));r$K(z);z.info("Initializing automatic screens: "+Xh0(z.automaticScreens_));z.onlineScreenService_=new aT(z.JSC$19790_http_,(0,_.YN)(z.getScreens,z,!0));z.onlineScreenService_.subscribe("screenChange",(0,_.YN)(function(){this.publish("onlineScreenChange")},
z))},VM=function(z,l){var I=z.get(l.id);
I?(I.uuid=l.uuid,l=I):((I=iw(z.automaticScreens_,l.uuid))?(I.id=l.id,I.token=l.token,l=I):z.automaticScreens_.push(l),z.disableAutomaticScreenCache_||$dS(z));r$K(z);z.deviceToScreenId_[l.uuid]=l.id;_.sr("yt-remote-device-id-map",z.deviceToScreenId_,31536E3);return l},$dS=function(z){z=_.E9(z.automaticScreens_,function(l){return l.idType!="shortLived"});
_.sr("yt-remote-automatic-screen-cache",_.s7(z,y$s))},r$K=function(z){z.deviceToScreenId_=_.rD("yt-remote-device-id-map")||{}};
st.prototype.dispose=st.prototype.dispose;_.Gs(rF,_.$3);var jE=function(z,l){z.screen_=l;z.publish("sessionScreen",z.screen_)},eFW=function(z,l){z.screen_&&(z.screen_.token=l,VM(z.JSC$19794_screenService_,z.screen_));
z.publish("sessionScreen",z.screen_)};
rF.prototype.onSessionStopped=function(z){this.isDisposed()||(z&&(J_(this,""+z),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
rF.prototype.info=function(z){cv(this.JSC$19794_logName_,z)};
var J_=function(z,l){cv(z.JSC$19794_logName_,l)};
rF.prototype.JSC$19796_getCastSession=function(){return null};
rF.prototype.setDisplayStatus=function(z){var l=this.receiver_;z?(l.displayStatus=new chrome.cast.ReceiverDisplayStatus(z,[]),l.displayStatus.showStop=!0):l.displayStatus=null;chrome.cast.setReceiverDisplayStatus(l,(0,_.YN)(function(){this.info("Updated receiver status for "+l.friendlyName+": "+z)},this),(0,_.YN)(function(){J_(this,"Failed to update receiver status for: "+l.friendlyName)},this))};
rF.prototype.disposeInternal=function(){this.setDisplayStatus("");rF.superClass_.disposeInternal.call(this)};var zE=function(z,l,I){rF.call(this,z,l,"CastSession");var b=this;this.config_=I;this.JSC$19799_session_=null;this.JSC$19799_boundSessionUpdate_=(0,_.YN)(this.JSC$19801_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.YN)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.EI(function(){wE1(b,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19799_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19799_isInitLoungeToken_=!1;this.JSC$19799_lastLoungeTokenRefreshError_="unknown"};
_.m(zE,rF);_.p=zE.prototype;
_.p.setCastSession=function(z){if(this.JSC$19799_session_){if(this.JSC$19799_session_==z)return;J_(this,"Overriding cast session with new session object");A$K(this);this.JSC$19799_isInitLoungeToken_=!1;this.JSC$19799_lastLoungeTokenRefreshError_="unknown";this.JSC$19799_session_.removeUpdateListener(this.JSC$19799_boundSessionUpdate_);this.JSC$19799_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19799_session_=z;this.JSC$19799_session_.addUpdateListener(this.JSC$19799_boundSessionUpdate_);this.JSC$19799_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);WW4(this,"getMdxSessionStatus")};
_.p.launchWithParams=function(z){this.info("launchWithParams no-op for Cast: "+(0,_.wO)(z))};
_.p.stop=function(){if(this.JSC$19799_session_)this.JSC$19799_session_.stop((0,_.YN)(function(){this.onSessionStopped()},this),(0,_.YN)(function(){this.onSessionStopped(Error("$k"))},this));
else this.onSessionStopped(Error("al"))};
_.p.setDisplayStatus=function(){};
_.p.disposeInternal=function(){this.info("disposeInternal");A$K(this);this.JSC$19799_session_&&(this.JSC$19799_session_.removeUpdateListener(this.JSC$19799_boundSessionUpdate_),this.JSC$19799_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19799_session_=null;rF.prototype.disposeInternal.call(this)};
var LWS=function(z,l){_.HV(z.getLoungeTokenTimeoutKey_);z.getLoungeTokenTimeoutKey_=0;l==0?njF(z):z.getLoungeTokenTimeoutKey_=_.EI(function(){njF(z)},l)},njF=function(z){WW4(z,"getLoungeToken");
_.HV(z.onLoungeTokenTimeoutKey_);z.onLoungeTokenTimeoutKey_=_.EI(function(){UdC(z,null)},3E4)},WW4=function(z,l){z.info("sendYoutubeMessage_: "+l+" "+(0,_.wO)(void 0));
var I={};I.type=l;z.JSC$19799_session_?z.JSC$19799_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.YN)(function(){J_(this,"Failed to send message: "+l+".")},z)):J_(z,"Sending yt message without session: "+(0,_.wO)(I))};
zE.prototype.onYoutubeMessage_=function(z,l){if(!this.isDisposed())if(l)if(l=(0,_.Sn)(l),_.Lu(l))switch(z=""+l.type,l=l.data||{},this.info("onYoutubeMessage_: "+z+" "+(0,_.wO)(l)),z){case "mdxSessionStatus":wE1(this,l);break;case "loungeToken":UdC(this,l);break;default:J_(this,"Unknown youtube message: "+z)}else J_(this,"Unable to parse message.");else J_(this,"No data in message.")};
var aW4=function(z,l){if(l)z.info("onConnectedScreenId_: Received screenId: "+l),z.screen_&&z.screen_.id==l||z.getScreen_(l,function(I){jE(z,I)},function(){return z.onSessionStopped()},5);
else z.onSessionStopped(Error("bl"))},jJX=function(z,l,I){z.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(l));
var b=new Xy(l);VTC(z,b,function(v){v?(z.JSC$19799_isInitLoungeToken_=!0,VM(z.JSC$19794_screenService_,b),jE(z,b),z.JSC$19799_lastLoungeTokenRefreshError_="unknown",LWS(z,I)):(_.$P(Error("cl`"+JSON.stringify(l))),z.onSessionStopped())},5)},wE1=function(z,l){_.HV(z.sessionStatusTimeoutKey_);
z.sessionStatusTimeoutKey_=0;if(l)z.config_.enableCastLoungeToken&&l.loungeToken?l.deviceId?z.screen_&&z.screen_.uuid==l.deviceId||(l.loungeTokenRefreshIntervalMs?jJX(z,{name:z.receiver_.friendlyName,screenId:l.screenId,loungeToken:l.loungeToken,dialId:l.deviceId,screenIdType:"shortLived"},l.loungeTokenRefreshIntervalMs):(_.$P(Error("el`"+JSON.stringify(l))),aW4(z,l.screenId))):(_.$P(Error("dl`"+JSON.stringify(l))),aW4(z,l.screenId)):aW4(z,l.screenId);else z.onSessionStopped(Error("bl"))},UdC=function(z,
l){_.HV(z.onLoungeTokenTimeoutKey_);
z.onLoungeTokenTimeoutKey_=0;var I=null;if(l)if(l.loungeToken){var b;((b=z.screen_)==null?void 0:b.token)==l.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";else I="noLoungeTokenResponse";I?(z.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(l)+", error: "+I)),z.JSC$19799_lastLoungeTokenRefreshError_=I,LWS(z,3E4)):(eFW(z,l.loungeToken),z.JSC$19799_isInitLoungeToken_=!1,z.JSC$19799_lastLoungeTokenRefreshError_="unknown",LWS(z,l.loungeTokenRefreshIntervalMs))};
zE.prototype.getScreen_=function(z,l,I,b){_.HV(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;oj8(this.JSC$19794_screenService_,this.receiver_.label,z,this.receiver_.friendlyName,(0,_.YN)(function(v){v?l(v):b>=0?(J_(this,"Screen "+z+" appears to be offline. "+b+" retries left."),this.getScreenTimeoutKey_=_.EI((0,_.YN)(this.getScreen_,this,z,l,I,b-1),300)):I(Error("fl"))},this),I)};
var VTC=function(z,l,I,b){_.HV(z.JSC$19799_checkScreenAvailabilityTimeoutKey_);z.JSC$19799_checkScreenAvailabilityTimeoutKey_=0;hFs(z.JSC$19794_screenService_,l,function(v){v||b<0?I(v):z.JSC$19799_checkScreenAvailabilityTimeoutKey_=_.EI(function(){VTC(z,l,I,b-1)},300)})};
zE.prototype.JSC$19796_getCastSession=function(){return this.JSC$19799_session_};
zE.prototype.JSC$19801_onSessionUpdate_=function(z){this.isDisposed()||z||(J_(this,"Cast session died."),this.onSessionStopped())};
var A$K=function(z){_.HV(z.getScreenTimeoutKey_);z.getScreenTimeoutKey_=0;_.HV(z.JSC$19799_checkScreenAvailabilityTimeoutKey_);z.JSC$19799_checkScreenAvailabilityTimeoutKey_=0;_.HV(z.sessionStatusTimeoutKey_);z.sessionStatusTimeoutKey_=0;_.HV(z.onLoungeTokenTimeoutKey_);z.onLoungeTokenTimeoutKey_=0;_.HV(z.getLoungeTokenTimeoutKey_);z.getLoungeTokenTimeoutKey_=0};var lG=function(z,l,I,b){rF.call(this,z,l,"DialSession");this.config_=b;this.JSC$19803_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19803_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19803_deferredLaunchDeadlineTimer_=NaN;this.JSC$19803_boundSessionUpdate_=(0,_.YN)(this.JSC$19805_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19803_isInitLoungeToken_=!1;this.JSC$19803_lastLoungeTokenRefreshError_="unknown"};
_.m(lG,rF);lG.prototype.setCastSession=function(z){this.JSC$19803_session_=z;this.JSC$19803_session_.addUpdateListener(this.JSC$19803_boundSessionUpdate_)};
lG.prototype.launchWithParams=function(z){this.connectData_=z;this.deferredLaunch_()};
lG.prototype.stop=function(){J$W(this);if(this.JSC$19803_session_)this.JSC$19803_session_.stop((0,_.YN)(this.onSessionStopped,this,null),(0,_.YN)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
lG.prototype.disposeInternal=function(){J$W(this);this.JSC$19803_session_&&this.JSC$19803_session_.removeUpdateListener(this.JSC$19803_boundSessionUpdate_);this.JSC$19803_session_=null;rF.prototype.disposeInternal.call(this)};
var zGX=function(z){var l;return!!(z.config_.enableDialLoungeToken&&((l=z.JSC$19803_session_)==null?0:l.getDialAppInfo))},lRC=function(z){z.cancelPolling_=z.JSC$19794_screenService_.JSC$19792_getScreenByPollingPairingCode(z.reversePairingCode_,z.receiver_.label,z.receiver_.friendlyName,zGX(z),function(l,I){z.cancelPolling_=function(){};
z.JSC$19803_isInitLoungeToken_=!0;jE(z,l);l.idType=="shortLived"&&I>0&&IS(z,I)},function(l){z.cancelPolling_=function(){};
z.onSessionStopped(l)})};
lG.prototype.JSC$19805_onSessionUpdate_=function(z){this.isDisposed()||z||(J_(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var IRF=function(z){var l={};l.pairingCode=z.reversePairingCode_;l.theme=z.JSC$19803_theme_;NZy()&&(l.env_useStageMdx=1);return _.CG(l)},byX=function(z){return new Promise(function(l){z.reversePairingCode_=VgK();
if(z.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,IRF(z));l(I);lRC(z)}else z.deferredLaunch_=function(){_.HV(z.JSC$19803_deferredLaunchDeadlineTimer_);z.deferredLaunch_=function(){};
z.JSC$19803_deferredLaunchDeadlineTimer_=NaN;var b=new chrome.cast.DialLaunchResponse(!0,IRF(z));l(b);lRC(z)},z.JSC$19803_deferredLaunchDeadlineTimer_=_.EI(function(){z.deferredLaunch_()},100)})},M5K=function(z,l,I){z.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(l));
var b=new Xy(l);return(new Promise(function(v){vJC(z,b,function(M){M?(z.JSC$19803_isInitLoungeToken_=!0,VM(z.JSC$19794_screenService_,b),jE(z,b),IS(z,I)):_.$P(Error("hl`"+JSON.stringify(l)));v(M)},5)})).then(function(v){return v?new chrome.cast.DialLaunchResponse(!1):byX(z)})},pDs=function(z,l){var I=z.launchData_.receiver.label,b=z.receiver_.friendlyName;
return(new Promise(function(v){oj8(z.JSC$19794_screenService_,I,l,b,function(M){M&&M.token&&jE(z,M);v(M)},function(M){J_(z,"Failed to get DIAL screen: "+M);
v(null)})})).then(function(v){return v&&v.token?new chrome.cast.DialLaunchResponse(!1):byX(z)})},vJC=function(z,l,I,b){_.HV(z.JSC$19803_checkScreenAvailabilityTimeoutKey_);
z.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;hFs(z.JSC$19794_screenService_,l,function(v){v||b<0?I(v):z.JSC$19803_checkScreenAvailabilityTimeoutKey_=_.EI(function(){vJC(z,l,I,b-1)},300)})},IS=function(z,l){z.info("getDialAppInfoWithTimeout_ "+l);
zGX(z)&&(_.HV(z.getDialAppInfoTimeoutKey_),z.getDialAppInfoTimeoutKey_=0,l==0?DmC(z):z.getDialAppInfoTimeoutKey_=_.EI(function(){DmC(z)},l))},DmC=function(z){zGX(z)&&z.JSC$19803_session_.getDialAppInfo(function(l){z.info("getDialAppInfo dialLaunchData: "+JSON.stringify(l));
l=l.extraData||{};var I=null;if(l.loungeToken){var b;((b=z.screen_)==null?void 0:b.token)==l.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(z.JSC$19803_lastLoungeTokenRefreshError_=I,IS(z,3E4)):(z.JSC$19803_isInitLoungeToken_=!1,z.JSC$19803_lastLoungeTokenRefreshError_="unknown",eFW(z,l.loungeToken),IS(z,l.loungeTokenRefreshIntervalMs))},function(l){z.info("getDialAppInfo error: "+l);
z.JSC$19803_lastLoungeTokenRefreshError_="noLoungeTokenResponse";IS(z,3E4)})},J$W=function(z){_.HV(z.JSC$19803_checkScreenAvailabilityTimeoutKey_);
z.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;_.HV(z.getDialAppInfoTimeoutKey_);z.getDialAppInfoTimeoutKey_=0;z.cancelPolling_();z.cancelPolling_=function(){};
_.HV(z.JSC$19803_deferredLaunchDeadlineTimer_)};var bG=function(z,l){rF.call(this,z,l,"ManualSession");this.JSC$19807_deferredLaunchDeadlineTimer_=_.EI((0,_.YN)(this.launchWithParams,this,null),150)};
_.m(bG,rF);bG.prototype.stop=function(){this.onSessionStopped()};
bG.prototype.setCastSession=function(){};
bG.prototype.launchWithParams=function(){_.HV(this.JSC$19807_deferredLaunchDeadlineTimer_);this.JSC$19807_deferredLaunchDeadlineTimer_=NaN;var z=iw(this.JSC$19794_screenService_.getScreens(),this.receiver_.label);if(z)jE(this,z);else this.onSessionStopped(Error("il"))};
bG.prototype.disposeInternal=function(){_.HV(this.JSC$19807_deferredLaunchDeadlineTimer_);this.JSC$19807_deferredLaunchDeadlineTimer_=NaN;rF.prototype.disposeInternal.call(this)};var Aa=function(z,l){_.$3.call(this);this.config_=l;this.JSC$19810_screenService_=z;this.JSC$19810_appId_=l.appId||"233637DE";this.JSC$19810_theme_=l.theme||"cl";this.disableDial_=l.disableCastApi||!1;this.forceMirroring_=l.forceMirroring||!1;this.JSC$19810_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.YN)(this.onReceiverAction_,this)};
_.m(Aa,_.$3);
Aa.prototype.init=function(z,l){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$19810_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.C("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var b=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;z=z||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var v=(0,_.YN)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.YN)(this.onSessionEstablished_,this),v,b,z);I.customDialLaunchCallback=(0,_.YN)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.YN)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),k4S(),this.JSC$19810_screenService_.subscribe("onlineScreenChange",(0,_.YN)(this.JSC$19812_onScreenChange_,this)),this.customReceivers_=xmS(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.YN)(function(M){this.warn_("Failed to set initial custom receivers: "+(0,_.wO)(M))},this)),this.publish("yt-remote-cast2-availability-change",vM(this)),l(!0))},this),(0,_.YN)(function(M){this.warn_("Failed to initialize API: "+(0,_.wO)(M));
l(!1)},this))};
Aa.prototype.setConnectedScreenStatus=function(z,l){Mq("Setting connected screen ID: "+z+" -> "+l);if(this.JSC$19810_session_){var I=this.JSC$19810_session_.screen_;if(!z||I&&I.id!=z)Mq("Unsetting old screen status: "+this.JSC$19810_session_.receiver_.friendlyName),pV(this,null)}if(z&&l){if(!this.JSC$19810_session_){z=iw(this.JSC$19810_screenService_.getScreens(),z);if(!z){Mq("setConnectedScreenStatus: Unknown screen.");return}if(z.idType=="shortLived"){Mq("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=OyX(this,z);I||(Mq("setConnectedScreenStatus: Connected receiver not custom..."),I=new chrome.cast.Receiver(z.uuid?z.uuid:z.id,z.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(I),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.YN)(function(b){this.warn_("Failed to set initial custom receivers: "+(0,_.wO)(b))},this)));
Mq("setConnectedScreenStatus: new active receiver: "+I.friendlyName);pV(this,new bG(this.JSC$19810_screenService_,I),!0)}this.JSC$19810_session_.setDisplayStatus(l)}else Mq("setConnectedScreenStatus: no screen.")};
var OyX=function(z,l){return l?_.Sx(z.customReceivers_,function(I){return qI(l,I.label)},z):null};
Aa.prototype.setLaunchParams=function(z){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19810_session_?this.JSC$19810_session_.launchWithParams(z):this.warn_("Setting connection data without a session")};
Aa.prototype.JSC$19812_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19810_session_?(this.JSC$19810_session_.stop(),pV(this,null)):Mq("Stopping non-existing session")};
Aa.prototype.requestSession=function(){chrome.cast.requestSession((0,_.YN)(this.onSessionEstablished_,this),(0,_.YN)(this.onSessionRequestFailed_,this))};
Aa.prototype.disposeInternal=function(){this.JSC$19810_screenService_.unsubscribe("onlineScreenChange",(0,_.YN)(this.JSC$19812_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.$5(_.W8("yt.mdx.remote.debug.handlers_")||[],yxq);_.p0(this.JSC$19810_session_);_.$3.prototype.disposeInternal.call(this)};
var Mq=function(z){cv("Controller",z)};
Aa.prototype.warn_=function(z){cv("Controller",z)};
var yxq=function(z){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(z)},vM=function(z){return z.hasCastReceiver_||!!z.customReceivers_.length||!!z.JSC$19810_session_},pV=function(z,l,I){l!=z.JSC$19810_session_&&(_.p0(z.JSC$19810_session_),(z.JSC$19810_session_=l)?(I?z.publish("yt-remote-cast2-receiver-resumed",l.receiver_):z.publish("yt-remote-cast2-receiver-selected",l.receiver_),l.subscribe("sessionScreen",(0,_.YN)(z.onSessionScreen_,z,l)),l.subscribe("sessionFailed",
function(){return gJF(z,l)}),l.screen_?z.publish("yt-remote-cast2-session-change",l.screen_):I&&z.JSC$19810_session_.launchWithParams(null)):z.publish("yt-remote-cast2-session-change",null))},gJF=function(z,l){z.JSC$19810_session_==l&&z.publish("yt-remote-cast2-session-failed")};
_.p=Aa.prototype;_.p.onSessionScreen_=function(z,l){this.JSC$19810_session_==z&&(l||pV(this,null),this.publish("yt-remote-cast2-session-change",l))};
_.p.onReceiverAction_=function(z,l){if(!this.isDisposed())if(z)switch(z.friendlyName=chrome.cast.unescape(z.friendlyName),Mq("onReceiverAction_ "+z.label+" / "+z.friendlyName+"-- "+l),l){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19810_session_)if(this.JSC$19810_session_.receiver_.label!=z.label)Mq("onReceiverAction_: Stopping active receiver: "+this.JSC$19810_session_.receiver_.friendlyName),this.JSC$19810_session_.stop();else{Mq("onReceiverAction_: Casting to active receiver.");this.JSC$19810_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19810_session_.screen_);break}switch(z.receiverType){case chrome.cast.ReceiverType.CUSTOM:pV(this,new bG(this.JSC$19810_screenService_,z));break;case chrome.cast.ReceiverType.DIAL:pV(this,new lG(this.JSC$19810_screenService_,z,this.JSC$19810_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:pV(this,new zE(this.JSC$19810_screenService_,z,this.config_));break;default:this.warn_("Unknown receiver type: "+z.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19810_session_&&
this.JSC$19810_session_.receiver_.label==z.label?this.JSC$19810_session_.stop():this.warn_("Stopping receiver w/o session: "+z.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.p.onDialLaunchRequested_=function(z){if(this.isDisposed())return Promise.reject(Error("jl"));var l=z.receiver;l.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+l.friendlyName),l.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$19810_session_?this.JSC$19810_session_.receiver_:null;if(!I||I.label!=l.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+l.friendlyName),Promise.reject(Error("kl"));if(I&&I.label==l.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19810_session_.screen_)return Mq("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19810_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+l.friendlyName);pV(this,new lG(this.JSC$19810_screenService_,l,this.JSC$19810_theme_,this.config_))}l=this.JSC$19810_session_;l.launchData_=z;l.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(z=l.launchData_.extraData||{},I=z.screenId||null,zGX(l)&&z.loungeToken?z.loungeTokenRefreshIntervalMs?z=M5K(l,{name:l.receiver_.friendlyName,screenId:z.screenId,loungeToken:z.loungeToken,dialId:l.launchData_.receiver.label,screenIdType:"shortLived"},z.loungeTokenRefreshIntervalMs):(_.$P(Error("gl`"+JSON.stringify(z))),z=pDs(l,I)):z=pDs(l,I)):z=byX(l);return z};
_.p.onSessionEstablished_=function(z){var l=this;if(!this.isDisposed()&&!this.forceMirroring_){Mq("New cast session ID: "+z.sessionId);var I=z.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19810_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)Mq("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),pV(this,new zE(this.JSC$19810_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var b=this.JSC$19810_session_.receiver_,v=iw(this.JSC$19810_screenService_.getScreens(),b.label);v&&qI(v,I.label)&&b.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(Mq("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.p0(this.JSC$19810_session_),this.JSC$19810_session_=new zE(this.JSC$19810_screenService_,I,this.config_),this.JSC$19810_session_.subscribe("sessionScreen",(0,_.YN)(this.onSessionScreen_,this,this.JSC$19810_session_)),
this.JSC$19810_session_.subscribe("sessionFailed",function(){return gJF(l,l.JSC$19810_session_)}),this.JSC$19810_session_.launchWithParams(null));
this.JSC$19810_session_.setCastSession(z)}}};
_.p.JSC$19812_getCastSession=function(){return this.JSC$19810_session_?this.JSC$19810_session_.JSC$19796_getCastSession():null};
_.p.onSessionRequestFailed_=function(z){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.wO)(z)),z.code!=chrome.cast.ErrorCode.CANCEL&&pV(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.p.onReceiverUpdated_=function(z){Mq("Receiver availability updated: "+z);if(!this.isDisposed()){var l=vM(this);this.hasCastReceiver_=z==chrome.cast.ReceiverAvailability.AVAILABLE;vM(this)!=l&&this.publish("yt-remote-cast2-availability-change",vM(this))}};
var xmS=function(z){var l=z.JSC$19810_screenService_.JSC$19792_getOnlineScreens(),I=z.JSC$19810_session_&&z.JSC$19810_session_.receiver_;z=_.s7(l,function(b){I&&qI(b,I.label)&&(I=null);var v=b.uuid?b.uuid:b.id,M=OyX(this,b);M?(M.label=v,M.friendlyName=b.name):(M=new chrome.cast.Receiver(v,b.name),M.receiverType=chrome.cast.ReceiverType.CUSTOM);return M},z);
I&&(I.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(I=new chrome.cast.Receiver(I.label,I.friendlyName),I.receiverType=chrome.cast.ReceiverType.CUSTOM),z.push(I));return z};
Aa.prototype.JSC$19812_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=xmS(this),Mq("Updating custom receivers: "+(0,_.wO)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.YN)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",vM(this)))};
Aa.prototype.setLaunchParams=Aa.prototype.setLaunchParams;Aa.prototype.setConnectedScreenStatus=Aa.prototype.setConnectedScreenStatus;Aa.prototype.stopSession=Aa.prototype.JSC$19812_stopSession;Aa.prototype.getCastSession=Aa.prototype.JSC$19812_getCastSession;Aa.prototype.requestSession=Aa.prototype.requestSession;Aa.prototype.init=Aa.prototype.init;Aa.prototype.dispose=Aa.prototype.dispose;var GMl=_.zs(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),WhX=[],Siq=_.HR(GMl);var NPS=function(z){z.audioTrackId=null;z.trackData=null;z.playerState=-1;z.hasPrevious=!1;z.hasNext=!1;z.playerTime_=0;z.playerTimeAt_=_.gG();z.seekableStart_=0;z.seekableEnd_=0;z.duration_=0;z.loadedTime=0;z.liveIngestionTime_=NaN;z.isLive_=!1};
_.p=Wv.prototype;
_.p.reset=function(z){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;z&&(this.index=z.index,this.listId=z.listId,this.videoId=z.videoId,this.playerState=z.playerState,this.volume=z.volume,this.muted=z.muted,this.audioTrackId=z.audioTrackId,this.trackData=z.trackData,this.hasPrevious=z.hasPrevious,this.hasNext=z.hasNext,this.playerTime_=z.playerTime,this.playerTimeAt_=z.playerTimeAt,this.seekableStart_=z.seekableStart,this.seekableEnd_=z.seekableEnd,this.duration_=z.duration,this.loadedTime=
z.loadedTime,this.liveIngestionTime_=z.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.p.stopPlayer=function(){this.index=-1;this.videoId="";NPS(this)};
_.p.isPlaying=function(){return this.playerState==1};
_.p.isBuffering=function(){return this.playerState==3};
_.p.isAdPlaying=function(){return this.playerState==1081};
var DG=function(z,l){z.playerTime_=l;z.playerTimeAt_=_.gG()},EJ1=function(z){switch(z.playerState){case 1:case 1081:return(_.gG()-z.playerTimeAt_)/1E3+z.playerTime_;
case -1E3:return 0}return z.playerTime_};
Wv.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.gG()-this.playerTimeAt_)/1E3:0):this.duration_};
var uH1=function(z,l,I){var b=z.videoId;z.videoId=l;z.index=I;l!=b&&NPS(z)},Zy0=function(z){var l={};
l.index=z.index;l.listId=z.listId;l.videoId=z.videoId;l.playerState=z.playerState;l.volume=z.volume;l.muted=z.muted;l.audioTrackId=z.audioTrackId;l.trackData=_.h7.unsafeClone(z.trackData);l.hasPrevious=z.hasPrevious;l.hasNext=z.hasNext;l.playerTime=z.playerTime_;l.playerTimeAt=z.playerTimeAt_;l.seekableStart=z.seekableStart_;l.seekableEnd=z.seekableEnd_;l.duration=z.duration_;l.loadedTime=z.loadedTime;l.liveIngestionTime=z.liveIngestionTime_;return l};
Wv.prototype.clone=function(){return new Wv(Zy0(this))};var z7=function(z,l){_.$3.call(this);var I=this;this.state_=0;this.connection_=z;this.contextSubscriptions_=[];this.actionQueue_=new rPq;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.YN)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.YN)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.YN)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.YN)(this.onCloudviewAvailabilityChange_,this);var b=0;z?(b=z.getProxyState(),
b!=3&&(z.subscribe("proxyStateChange",this.setState_,this),HyW(this))):b=3;b!=0&&(l?this.setState_(b):_.EI(function(){I.setState_(b)},0));
(z=afl())&&yn4(this,z);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.m(z7,_.$3);z7.prototype.getState=function(){return this.state_};
z7.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
z7.prototype.reconnect=function(){this.connection_.reconnect()};
var xk=function(z){return new Wv(z.connection_.getPlayerContextData())};
_.p=z7.prototype;_.p.play=function(){OS(this)?(this.castMedia_?this.castMedia_.play(null,_.Tn,fRS(this,"play")):g9(this,"play"),CLK(this,1,EJ1(xk(this))),this.publish("remotePlayerChange")):GE(this,this.play)};
_.p.pause=function(){OS(this)?(this.castMedia_?this.castMedia_.pause(null,_.Tn,fRS(this,"pause")):g9(this,"pause"),CLK(this,2,EJ1(xk(this))),this.publish("remotePlayerChange")):GE(this,this.pause)};
_.p.seekTo=function(z){if(OS(this)){if(this.castMedia_){var l=xk(this),I=new chrome.cast.media.SeekRequest;I.currentTime=z;l.isPlaying()||l.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.Tn,fRS(this,"seekTo",{newTime:z}))}else g9(this,"seekTo",{newTime:z});CLK(this,3,z);this.publish("remotePlayerChange")}else GE(this,_.tH(this.seekTo,z))};
_.p.stop=function(){if(OS(this)){this.castMedia_?this.castMedia_.stop(null,_.Tn,fRS(this,"stopVideo")):g9(this,"stopVideo");var z=xk(this);z.stopPlayer();Nq(this,z);this.publish("remotePlayerChange")}else GE(this,this.stop)};
_.p.setVolume=function(z,l){if(OS(this)){var I=xk(this);if(this.castSession_){if(I.volume!=z){var b=Math.round(z)/100;this.castSession_.setReceiverVolumeLevel(b,(0,_.YN)(function(){SL("set receiver volume: "+b)},this),(0,_.YN)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=l&&this.castSession_.setReceiverMuted(l,(0,_.YN)(function(){SL("set receiver muted: "+l)},this),(0,_.YN)(function(){this.warn_("failed to set receiver muted.")},this))}else{var v={volume:z,
muted:l};I.volume!=-1&&(v.delta=z-I.volume);g9(this,"setVolume",v)}I.muted=l;I.volume=z;Nq(this,I)}else GE(this,_.tH(this.setVolume,z,l))};
_.p.setAudioTrack=function(z,l){OS(this)?(l=l.getLanguageInfo().getId(),g9(this,"setAudioTrack",{videoId:z,audioTrackId:l}),z=xk(this),z.audioTrackId=l,Nq(this,z)):GE(this,_.tH(this.setAudioTrack,z,l))};
_.p.addVideo=function(z){OS(this)?g9(this,"addVideo",{videoId:z}):GE(this,_.tH(this.addVideo,z))};
_.p.addPlaylist=function(z){OS(this)?g9(this,"addVideos",{listId:z}):GE(this,_.tH(this.addPlaylist,z))};
_.p.addVideos=function(z){z.length==0?this.warn_("Ignore add videos request due to empty list"):OS(this)?g9(this,"addVideos",{videoIds:z.join(",")}):GE(this,_.tH(this.addVideos,z))};
_.p.JSC$19822_removeVideo=function(z){OS(this)?g9(this,"removeVideo",{videoId:z}):GE(this,_.tH(this.JSC$19822_removeVideo,z))};
_.p.JSC$19822_insertVideo=function(z){OS(this)?g9(this,"insertVideo",{videoId:z}):GE(this,_.tH(this.JSC$19822_insertVideo,z))};
_.p.playVideo=function(z,l,I,b,v,M,x){b=b===void 0?null:b;v=v===void 0?null:v;M=M===void 0?null:M;x=x===void 0?null:x;var g=xk(this),G={videoId:z};I!==void 0&&(G.currentIndex=I);uH1(g,z,I||0);l!==void 0&&(DG(g,l),G.currentTime=l);b&&(G.listId=b);v&&(G.playerParams=v);M&&(G.clickTrackingParams=M);x&&(G.locationInfo=(0,_.wO)(x));g9(this,"setPlaylist",G);b||Nq(this,g)};
_.p.nextVideo=function(z,l){if(OS(this)){if(z&&l){var I=xk(this);uH1(I,z,l);Nq(this,I)}g9(this,"next")}else GE(this,_.tH(this.nextVideo,z,l))};
_.p.clearPlaylist=function(){if(OS(this)){g9(this,"clearPlaylist");var z=xk(this);z.reset();Nq(this,z);this.publish("remotePlayerChange")}else GE(this,this.clearPlaylist)};
_.p.dispose=function(){if(this.state_!=3){var z=this.state_;this.state_=3;this.publish("proxyStateChange",z,this.state_)}_.$3.prototype.dispose.call(this)};
_.p.disposeInternal=function(){kM1(this);this.connection_=null;this.actionQueue_.clear();yn4(this,null);_.$3.prototype.disposeInternal.call(this)};
var HyW=function(z){_.UZ("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(l){this.contextSubscriptions_.push(this.connection_.subscribe(l,_.tH(this.onProxyEvent_,l),this))},z)},kM1=function(z){_.UZ(z.contextSubscriptions_,function(l){this.connection_.unsubscribeByKey(l)},z);
z.contextSubscriptions_.length=0},OS=function(z){return z.getState()==1},GE=function(z,l){z.actionQueue_.getCount()<50&&z.actionQueue_.enqueue(l)},CLK=function(z,l,I){var b=xk(z);
DG(b,I);b.playerState!=-1E3&&(b.playerState=l);Nq(z,b)},g9=function(z,l,I){z.connection_.sendMessage(l,I)},Nq=function(z,l){kM1(z);
z.connection_.setPlayerContextData(Zy0(l));HyW(z)};
z7.prototype.setState_=function(z){if((z!=this.state_||z==2)&&this.state_!=3&&z!=0){var l=this.state_;this.state_=z;this.publish("proxyStateChange",l,z);if(z==1)for(;!this.actionQueue_.isEmpty();)z=this.actionQueue_,dwl(z),z.front_.pop().apply(this);else z==3&&this.dispose()}};
z7.prototype.onProxyEvent_=function(z,l){this.publish(z,l)};
var yn4=function(z,l){z.castSession_&&(z.castSession_.removeUpdateListener(z.boundCastStatusListener_),z.castSession_.removeMediaListener(z.boundCastMediaListener_),z.onCastMediaChange_(null));z.castSession_=l;if(z.castSession_&&(SL("Setting cast session: "+z.castSession_.sessionId),z.castSession_.addUpdateListener(z.boundCastStatusListener_),z.castSession_.addMediaListener(z.boundCastMediaListener_),z.castSession_.media.length))z.onCastMediaChange_(z.castSession_.media[0])};
z7.prototype.onCastStatusUpdate_=function(z){if(!z)this.onCastMediaChange_(null),yn4(this,null);else if(this.castSession_.receiver.volume){z=this.castSession_.receiver.volume;var l=xk(this),I=Math.round(100*z.level||0);if(l.volume!=I||l.muted!=z.muted)SL("Cast volume update: "+z.level+(z.muted?" muted":"")),l.volume=I,l.muted=!!z.muted,Nq(this,l)}};
z7.prototype.onCastMediaChange_=function(z){SL("Cast media: "+!!z);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=z)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),RGW(this),this.publish("remotePlayerChange")};
var RGW=function(z){var l=z.castMedia_.media,I=z.castMedia_.customData;if(l&&I){var b=xk(z);l.contentId!=b.videoId&&SL("Cast changing video to: "+l.contentId);b.videoId=l.contentId;b.playerState=I.playerState;DG(b,z.castMedia_.getEstimatedTime());Nq(z,b)}else SL("No cast media video. Ignoring state update.")};
z7.prototype.onCastMediaUpdate_=function(z){if(z)RGW(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
z7.prototype.onCloudviewAvailabilityChange_=function(){var z=afl();z&&yn4(this,z)};
z7.prototype.warn_=function(z){cv("CP",z)};
var fRS=function(z,l,I){return(0,_.YN)(function(b){this.warn_("Failed to "+l+" with cast v2 channel. Error code: "+b.code);b.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+l+" using MDx browser channel."),g9(this,l,I))},z)};var l3=function(z,l,I,b){b=b===void 0?!1:b;_.$3.call(this);var v=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$19827_http_=z;this.enableConnectWithInitialState_=b;this.listeners_.push(_.b_(window,"beforeunload",function(){v.JSC$19830_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Wv;this.currentScreenId_=l.id;this.currentScreenIdType_=l.idType;this.channelService=HEs(this.JSC$19827_http_,I,this.JSC$19830_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){mmW(v)});
this.channelService.listen("channelClosed",function(){ES("Channel closed");isNaN(v.connectTimerId_)?Fy(!0):Fy();v.dispose()});
this.channelService.listen("channelError",function(M){Fy();isNaN(v.getReconnectTimeout_())?(M==1&&v.currentScreenIdType_=="shortLived"&&v.publish("browserChannelAuthError",M),ES("Channel error: "+M+" without reconnection"),v.dispose()):(v.reconnecting_=!0,ES("Channel error: "+M+" with reconnection in "+v.getReconnectTimeout_()+" ms"),Krc(v,2))});
this.channelService.listen("channelMessage",function(M){t5K(v,M)});
this.channelService.setLoungeToken(l.token);this.subscribe("remoteQueueChange",function(){var M=v.playerContext_.videoId;IfW()&&_.sr("yt-remote-session-video-id",M)})};
_.m(l3,_.$3);
l3.prototype.connect=function(z,l){if(l){var I=l.listId,b=l.videoId,v=l.videoIds,M=l.playerParams,x=l.clickTrackingParams,g=l.index,G={videoId:b},u=l.currentTime,Z=l.locationInfo;l=l.loopMode;u!==void 0&&(G.currentTime=u<=5?0:u);M&&(G.playerParams=M);Z&&(G.locationInfo=Z);x&&(G.clickTrackingParams=x);I&&(G.listId=I);v&&v.length>0&&(G.videoIds=v.join(","));g!==void 0&&(G.currentIndex=g);this.enableConnectWithInitialState_&&(G.loopMode=l||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
b;this.playerContext_.index=g||0;this.playerContext_.state=3;DG(this.playerContext_,u);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";ES("Connecting with "+I+" and params: "+(0,_.wO)(G));this.channelService.connect({method:I,params:(0,_.wO)(G)},z,D8S())}else ES("Connecting without params"),this.channelService.connect({},z,D8S());BP0(this)};
l3.prototype.setLoungeToken=function(z){this.channelService.setLoungeToken(z)};
l3.prototype.dispose=function(){this.isDisposed()||(_.vd("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Krc(this,3));_.$3.prototype.dispose.call(this)};
l3.prototype.disposeInternal=function(){XDK(this);qsW(this);iyK(this);_.HV(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.HV(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.bK7(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.$3.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Fr1=function(z){return _.Sx(z.connectedDevices_,function(l){return l.type=="LOUNGE_SCREEN"})},ES=function(z){cv("conn",z)},Krc=function(z,l){z.publish("proxyStateChange",l)},BP0=function(z){z.connectTimerId_=_.EI(function(){ES("Connecting timeout");
z.JSC$19830_disconnect_(1)},2E4)},XDK=function(z){_.HV(z.connectTimerId_);
z.connectTimerId_=NaN},iyK=function(z){_.HV(z.reconnectedCheckScreenTimeout_);
z.reconnectedCheckScreenTimeout_=NaN},Qnq=function(z){qsW(z);
z.playingSyncTimerId_=_.EI(function(){uG(z,"getNowPlaying")},2E4)},qsW=function(z){_.HV(z.playingSyncTimerId_);
z.playingSyncTimerId_=NaN},mmW=function(z){ES("Channel opened");
z.reconnecting_&&(z.reconnecting_=!1,iyK(z),z.reconnectedCheckScreenTimeout_=_.EI(function(){ES("Timing out waiting for a screen.");z.JSC$19830_disconnect_(1)},15E3))},TPW=function(z,l){var I=null;
if(l){var b=Fr1(z);b&&(I={clientName:b.clientName,deviceMake:b.brand,deviceModel:b.model,osVersion:b.osVersion})}_.vd("yt.mdx.remote.remoteClient_",I);l&&(XDK(z),iyK(z));I=z.channelService.isChannelOpened()&&isNaN(z.connectTimerId_);l==I?l&&(Krc(z,1),uG(z,"getSubtitlesTrack")):l?(z.getOtherConnectedRemoteId_()&&z.playerContext_.reset(),Krc(z,1),uG(z,"getNowPlaying"),Ys1(z)):z.JSC$19830_disconnect_(1)},cnS=function(z,l){var I=l.params.videoId;
delete l.params.videoId;I==z.playerContext_.videoId&&(_.h7.isEmpty(l.params)?z.playerContext_.trackData=null:z.playerContext_.trackData=l.params,z.publish("remotePlayerChange"))},SsX=function(z,l,I){var b=l.params.videoId||l.params.video_id,v=parseInt(l.params.currentIndex,10);
z.playerContext_.listId=l.params.listId||z.playerContext_.listId;uH1(z.playerContext_,b,v);z.publish("remoteQueueChange",I)},dmq=function(z,l){l.params=l.params||{};
SsX(z,l,"NOW_PLAYING_MAY_CHANGE");z.onStateChange_(l);z.publish("autoplayDismissed")};
l3.prototype.onStateChange_=function(z){var l=parseInt(z.params.currentTime||z.params.current_time,10);DG(this.playerContext_,isNaN(l)?0:l);l=parseInt(z.params.state,10);l=isNaN(l)?-1:l;l==-1&&this.playerContext_.playerState==-1E3&&(l=-1E3);this.playerContext_.playerState=l;l=Number(z.params.loadedTime);this.playerContext_.loadedTime=isNaN(l)?0:l;l=Number(z.params.duration);this.playerContext_.duration_=isNaN(l)?0:l;l=this.playerContext_;var I=Number(z.params.liveIngestionTime);l.liveIngestionTime_=
I;l.isLive_=isNaN(I)?!1:!0;l=this.playerContext_;I=Number(z.params.seekableStartTime);z=Number(z.params.seekableEndTime);l.seekableStart_=isNaN(I)?0:I;l.seekableEnd_=isNaN(z)?0:z;this.playerContext_.playerState==1?Qnq(this):qsW(this);this.publish("remotePlayerChange")};
l3.prototype.onAdStateChange_=function(z){if(this.playerContext_.playerState!=-1E3){var l=1085;switch(parseInt(z.params.adState,10)){case 1:l=1081;break;case 2:l=1084;break;case 0:l=1083}this.playerContext_.playerState=l;z=parseInt(z.params.currentTime,10);DG(this.playerContext_,isNaN(z)?0:z);this.publish("remotePlayerChange")}};
var oJW=function(z,l){var I=l.params.muted=="true";z.playerContext_.volume=parseInt(l.params.volume,10);z.playerContext_.muted=I;z.publish("remotePlayerChange")},PL4=function(z,l){z.autoplayVideoId_=l.params.videoId;
z.publish("nowAutoplaying",parseInt(l.params.timeout,10))},hG8=function(z,l){z.autoplayVideoId_=l.params.videoId||null;
z.publish("autoplayUpNext",z.autoplayVideoId_)},snC=function(z,l){z.autoplayMode_=l.params.autoplayMode;
z.publish("autoplayModeChange",z.autoplayMode_);z.autoplayMode_=="DISABLED"&&z.publish("autoplayDismissed")},rn8=function(z,l){var I=l.params.hasNext=="true";
z.playerContext_.hasPrevious=l.params.hasPrevious=="true";z.playerContext_.hasNext=I;z.publish("previousNextChange")};
l3.prototype.isCapabilitySupportedOnConnectedDevices_=function(z){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var l=_.D(this.connectedDevices_),I=l.next();!I.done;I=l.next())if(!I.value.capabilities.has(z))return!1;return!0};
var t5K=function(z,l){l=l.message;l.params?ES("Received: action="+l.action+", params="+(0,_.wO)(l.params)):ES("Received: action="+l.action+" {}");switch(l.action){case "loungeStatus":l=(0,_.Sn)(l.params.devices);z.connectedDevices_=_.s7(l,function(b){return new UP(b)});
l=!!_.Sx(z.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
TPW(z,l);l=z.isCapabilitySupportedOnConnectedDevices_("mlm");z.publish("multiStateLoopEnabled",l);break;case "loungeScreenDisconnected":kbl(z.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
TPW(z,!1);break;case "remoteConnected":var I=new UP((0,_.Sn)(l.params.device));_.Sx(z.connectedDevices_,function(b){return b.equals(I)})||_.mp$(z.connectedDevices_,I);
break;case "remoteDisconnected":I=new UP((0,_.Sn)(l.params.device));kbl(z.connectedDevices_,function(b){return b.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":SsX(z,l,"QUEUE_MODIFIED");break;case "nowPlaying":dmq(z,l);break;case "onStateChange":z.onStateChange_(l);break;case "onAdStateChange":z.onAdStateChange_(l);break;case "onVolumeChanged":oJW(z,l);break;case "onSubtitlesTrackChanged":cnS(z,l);break;case "nowAutoplaying":PL4(z,l);break;case "autoplayDismissed":z.publish("autoplayDismissed");break;case "autoplayUpNext":hG8(z,l);break;case "onAutoplayModeChanged":snC(z,l);break;case "onHasPreviousNextChanged":rn8(z,
l);break;case "requestAssistedSignIn":z.publish("assistedSignInRequested",l.params.authCode);break;case "onLoopModeChanged":z.publish("loopModeChange",l.params.loopMode);break;default:ES("Unrecognized action: "+l.action)}};
_.p=l3.prototype;_.p.getProxyState_=function(){var z=3;this.isDisposed()||(z=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(z=1):z=2);return z};
_.p.JSC$19830_disconnect_=function(z){ES("Disconnecting with "+z);_.vd("yt.mdx.remote.remoteClient_",null);XDK(this);this.publish("beforeDisconnect",z);z==1&&Fy();this.channelService.disconnect(z);this.dispose()};
_.p.getPlayerContextData_=function(){var z=this.playerContext_;this.clientVideoId_&&(z=this.playerContext_.clone(),uH1(z,this.clientVideoId_,z.index));return Zy0(z)};
_.p.setPlayerContextData_=function(z){var l=this,I=new Wv(z);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.HV(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.EI(function(){if(l.clientVideoId_){var v=l.clientVideoId_;l.clientVideoId_=null;l.playerContext_.videoId!=v&&uG(l,"getNowPlaying")}},5E3));
var b=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||b.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&EJ1(this.playerContext_)==EJ1(I)&&(0,_.wO)(this.playerContext_.trackData)==(0,_.wO)(I.trackData)||b.push("remotePlayerChange");this.playerContext_.reset(z);_.UZ(b,function(v){this.publish(v)},this)};
_.p.getOtherConnectedRemoteId_=function(){var z=this.channelService.getDeviceId(),l=_.Sx(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=z});
return l?l.id:""};
_.p.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.p.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.p.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.p.JSC$19830_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var Ys1=function(z){_.HV(z.idleDisconnectTimerId_);z.idleDisconnectTimerId_=_.EI(function(){z.JSC$19830_disconnect_(1)},864E5)},uG=function(z,l,I){I?ES("Sending: action="+l+", params="+(0,_.wO)(I)):ES("Sending: action="+l);
z.channelService.sendMessage(l,I)};
l3.prototype.sendMessageWithUserAction_=function(z,l){uG(this,z,l);Ys1(this)};
l3.prototype.JSC$19830_getXsrfToken_=function(){var z=_.mZ.get("SAPISID","")||_.mZ.get("__Secure-1PAPISID",void 0)||"",l=_.mZ.get("__Secure-3PAPISID","")||"";if(!z&&!l)return"";z=_.Tc(_.F7(z),2);l=_.Tc(_.F7(l),2);return _.Tc(_.F7(","+z+","+l),2)};
l3.prototype.subscribe=l3.prototype.subscribe;l3.prototype.unsubscribeByKey=l3.prototype.unsubscribeByKey;l3.prototype.getProxyState=l3.prototype.getProxyState_;l3.prototype.disconnect=l3.prototype.JSC$19830_disconnect_;l3.prototype.getPlayerContextData=l3.prototype.getPlayerContextData_;l3.prototype.setPlayerContextData=l3.prototype.setPlayerContextData_;l3.prototype.getOtherConnectedRemoteId=l3.prototype.getOtherConnectedRemoteId_;l3.prototype.getReconnectTimeout=l3.prototype.getReconnectTimeout_;
l3.prototype.getAutoplayMode=l3.prototype.getAutoplayMode_;l3.prototype.getAutoplayVideoId=l3.prototype.getAutoplayVideoId_;l3.prototype.reconnect=l3.prototype.JSC$19830_reconnect_;l3.prototype.sendMessage=l3.prototype.sendMessageWithUserAction_;l3.prototype.getXsrfToken=l3.prototype.JSC$19830_getXsrfToken_;l3.prototype.isCapabilitySupportedOnConnectedDevices=l3.prototype.isCapabilitySupportedOnConnectedDevices_;var HKy=function(z){od.call(this,"ScreenServiceProxy");this.instance_=z;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.YN)(this.JSC$19833_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.YN)(this.onOnlineScreenChange_,this)))};
_.m(HKy,od);_.p=HKy.prototype;_.p.getScreens=function(z){return this.instance_.$_gs(z)};
_.p.contains=function(z){return!!this.instance_.$_c(z)};
_.p.get=function(z){return this.instance_.$_g(z)};
_.p.start=function(){this.instance_.$_st()};
_.p.add=function(z,l,I){this.instance_.$_a(z,l,I)};
_.p.remove=function(z,l,I){this.instance_.$_r(z,l,I)};
_.p.updateName=function(z,l,I,b){this.instance_.$_un(z,l,I,b)};
_.p.disposeInternal=function(){for(var z=this.subscriptionKeys_.length,l=0;l<z;++l)this.instance_.$_ubk(this.subscriptionKeys_[l]);this.subscriptionKeys_.length=0;this.instance_=null;od.prototype.disposeInternal.call(this)};
_.p.JSC$19833_onScreenChange_=function(){this.publish("screenChange")};
_.p.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
st.prototype.$_st=st.prototype.start;st.prototype.$_gspc=st.prototype.JSC$19792_getScreenByPairingCode;st.prototype.$_gsppc=st.prototype.JSC$19792_getScreenByPollingPairingCode;st.prototype.$_c=st.prototype.contains;st.prototype.$_g=st.prototype.get;st.prototype.$_a=st.prototype.add;st.prototype.$_un=st.prototype.updateName;st.prototype.$_r=st.prototype.remove;st.prototype.$_gs=st.prototype.getScreens;st.prototype.$_gos=st.prototype.JSC$19792_getOnlineScreens;st.prototype.$_s=st.prototype.subscribe;
st.prototype.$_ubk=st.prototype.unsubscribeByKey;var glq=null,fYq=!1,nS=null,LS=null,ZKX=null,jL=[];var $mF=new _.$8("yt-menu"),eGK=function(){},Ans=function(z,l,I){z=l=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(wDK(l)>10))return l=l||"default",$mF.set(l+"-impression",wDK(l)+1),z},wDK=function(z){return parseInt($mF.get((z||"default")+"-impression")||0,10)};
_.O9(eGK);var Wrq=function(){this.contexts_=new WeakMap;this.JSC$19839_networkService_=this.activeContext_=null},nJy=function(z,l,I){var b=z.contexts_.get(l);
b||(b=new miF(z.JSC$19839_networkService_),z.contexts_.set(l,b));z.activeContext_=b;I&&z.activeContext_.reset();z.activeContext_.start();return z.activeContext_};var ZG=function(){};
ZG.prototype.enqueue=function(){var z=this,l;return _.O(function(I){if(z.isCounterfactual())return(l=z.getCounterfactualData())&&z.shouldLogCounterfactualImpression()&&z.sendImpressionEndpoints(l),I.return();z.doEnqueue();_.qe(I)})};
ZG.prototype.sendImpressionEndpoints=function(z){_.WW.getInstance().triggerOptionalAction("yt-service-request",{},z[0])};var HM=function(z,l){this.renderer=z;this.page=l};
_.m(HM,ZG);HM.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
HM.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
HM.prototype.shouldLogCounterfactualImpression=function(){return!0};
HM.prototype.doEnqueue=function(){var z=_.g5(this.page);z&&z.pause();this.renderer.impressionCommand&&_.WW.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Jg(_.WW.getInstance(),[this.renderer.promoCommand],this.page)};var LrF=function(z,l){this.renderer=z;this.resolver=_.b1();this.JSC$19851_enforcementCounter=new _.I_j;l?this.JSC$19851_playerManager=_.g5(l):this.JSC$19851_playerManager=null;_.RD(1,!0)};
_.m(LrF,ZG);_.p=LrF.prototype;_.p.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var z=[];this.renderer.impressionEndpoints.forEach(function(l){(l=_.Wh(l))&&z.push(l)});
return z}};
_.p.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.p.shouldLogCounterfactualImpression=function(){var z=_.w4f();z?(this.JSC$19851_enforcementCounter.increment("POPUP"),_.RD(3)):_.RD(2);return z};
_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.doEnqueue=function(){var z=this;_.w4f()?(this.JSC$19851_enforcementCounter.increment("POPUP"),_.RD(3),UmK(this)):this.JSC$19851_playerManager?(this.resolver.promise.then(function(){UmK(z)}),aR0(this.resolver,this.JSC$19851_playerManager)):_.RD(2)};
var aR0=function(z,l){var I=_.b1();l.getPlayerPromise().then(function(b){I.resolve(b)});
I.promise.then(function(b){b.addEventListener("onAbnormalityDetected",z.resolve);_.rO(z.promise,function(){b.removeEventListener("onAbnormalityDetected",z.resolve)})});
z.promise.thenCatch(function(){I.promise.cancel()})},UmK=function(z){_.RD(3);
var l={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:z.renderer}};l=_.WW.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{});Promise.all(l).then(function(){V5q();z.JSC$19851_playerManager&&z.JSC$19851_playerManager.pause()})},V5q=function(){lpS(function(z,l){_.A8W(z,l);
z===0?_.RD(7):_.RD(4)})};var jn4=function(z,l){this.renderer=z;this.page=l;this.resolver=_.b1()};
_.m(jn4,ZG);_.p=jn4.prototype;_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.p.isCounterfactual=function(){return!this.renderer.isVisible};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var z=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:z.renderer},popupType:"MEALBAR"};_.WW.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var l=_.g5(this.page);l&&Jn0(this.resolver,l)}break;default:this.resolver.resolve()}};
var Jn0=function(z,l){var I=_.b1();l.getPlayerPromise().then(function(b){I.resolve(b)});
I.promise.then(function(b){b.addEventListener("onAdEnd",z.resolve);_.rO(z.promise,function(){b.removeEventListener("onAdEnd",z.resolve)})});
z.promise.thenCatch(function(){I.promise.cancel()})};var zBl=function(z,l){this.renderer=z;this.page=l};
_.m(zBl,ZG);_.p=zBl.prototype;_.p.cancel=function(){this.JSC$19859_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19859_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19859_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.p.isCounterfactual=function(){return!this.renderer.isVisible};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var z=this,l,I;((l=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=l.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19859_downloadedVideosCountSelectorUnsubscriber=_.Wf(_.vF(),JH4,function(b,v){b>v&&(lzc(z),z.cancel())}):lzc(this)};
var lzc=function(z){var l={popup:{upsellDialogRenderer:z.renderer},popupType:"MODAL"};_.WW.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{});(z=_.g5(z.page))&&z.pause()};var yC={},Izc=(yC.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",yC.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",yC.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",yC.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",yC.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",yC.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",yC.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",yC),b5l=function(z,l){this.renderer=z;this.targetManager=
l};
_.m(b5l,ZG);_.p=b5l.prototype;_.p.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19866_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19866_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19866_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){if(this.isCounterfactual()){var z;return(z=this.renderer.promoConfig)==null?void 0:z.impressionEndpoints}};
_.p.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var z=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19866_downloadedVideosCountSelectorUnsubscriber=_.Wf(_.vF(),JH4,function(l,I){z.renderer.targetId&&l>I&&(n1X(z.targetManager,z.renderer.targetId,vQC(z)),z.cancel())});
break;default:n1X(this.targetManager,this.renderer.targetId,vQC(this))}};
var vQC=function(z){var l;if((l=z.renderer.suggestedPosition)==null?0:l.type)var I=Izc[z.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:z.renderer},popupType:"HINT",position:I}}};var Mq1=function(){this.previousPage=null},pmq;
Mq1.prototype.registerPromoCommand=function(z,l){Dbs(this,void 0,void 0,_.k(z.roadblock,ro4),void 0,void 0,l)};
var Dbs=function(z,l,I,b,v,M,x){z.previousPage!==x&&z.pendingTooltipPromo&&z.pendingTooltipPromo.cancel();z.previousPage=x;v?(z.pendingEnforcementPromo&&z.pendingEnforcementPromo.cancel(),z.pendingEnforcementPromo=new LrF(v,x),z.pendingEnforcementPromo.enqueue()):M?(z.pendingCommandWrapperPromo=new HM(M,x),z.pendingCommandWrapperPromo.enqueue()):b?(z.pendingRoadblockPromo&&z.pendingRoadblockPromo.cancel(),z.pendingRoadblockPromo=new zBl(b,x),z.pendingRoadblockPromo.enqueue()):l?(z.pendingMealbarPromo&&
z.pendingMealbarPromo.cancel(),z.pendingMealbarPromo=new jn4(l,x),z.pendingMealbarPromo.enqueue()):I&&(z.pendingTooltipPromo&&z.pendingTooltipPromo.cancel(),z.pendingTooltipPromo=new b5l(I,_.jC()),z.pendingTooltipPromo.enqueue())},xbs=function(){pmq||(pmq=new Mq1);
return pmq};var mtK=!1;var a68=function(z,l){var I=_.sZ("SESSION_INDEX");this.actionToken_=z;this.commonToken_=l;this.sessionIndex_=I},Uaq=function(z){var l=_.b1(),I=_.W8("payments.business.integration.bootstrap"),b=_.W8("payments.business.integration"),v=b.Style.create().withMaterialDesignStyle(),M=b.mashupMode.popup("instrument-manager");
I.asMashupMode(M).usingUserIndex(z.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(v).inStandaloneContext(b.standaloneContextAuthId.forUserId()).instrumentManager(z.actionToken_,z.commonToken_.length>0?z.commonToken_:void 0,function(x){var g=x.instrumentId;g?l.resolve(g):(g=_.W8("payments.business.integration.scenario.InstrumentManager"),l.reject(x.errorCode&&x.errorCode===g.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(x){_.$P(x);
l.reject("instrumentManagerLoadError")});
return l.promise};var MJ=function(z,l,I){this.payloadName="transactionFlowFailed";this.payload={errorType:z,serializedTransactionFlowLoggingParams:l,isUserDismiss:I===void 0?!1:I}};
_.vd("yt.ypc.shared.YpcTransactionFlowError",MJ);var fV=function(){return _.F6.apply(this,arguments)||this};
_.m(fV,_.F6);fV.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
fV.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
fV.prototype.onErrorMessageDismiss=fV.prototype.onErrorMessageDismiss;_.e([_.X({readOnly:!0,observer:"errorRendererChanged"}),_.w("design:type",Object)],fV.prototype,"errorRenderer",void 0);_.e([_.tP("yt-live-chat-error-message-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fV.prototype,"onErrorMessageDismiss",null);_.e([_.Q5()],fV);var O5l=[fV.prototype];var gQ8;var G2F;var NAS=new _.$8("yt-live-chat"),EQ1=new Map;EQ1.set("timestamp_toggle","show-timestamps");EQ1.set("reactions_toggle","allow-reactions");var CV=function(){return _.q.apply(this,arguments)||this};
_.m(CV,_.q);_.p=CV.prototype;_.p.menuItemIdentifierChanged=function(){var z;(z=this.data)!=null&&z.menuItemIdentifier&&(z=EQ1.get(this.data.menuItemIdentifier))&&(_.C("enable_lwe_web_mute")?(z=NAS.get(z),this.isToggled=!(z===void 0?!this.data.isToggled:!z)):this.isToggled=NAS.get(z))};
_.p.onFocus=function(){this.toggleButton.focus()};
_.p.onTap=function(){var z=this.data.command;z&&this.componentBehavior.resolveCommand(z)};
_.p.computeText=function(z,l,I){return this.componentBehavior.getSimpleString(z?I:l)};
_.p.computeIcon=function(z,l,I){return(z=z?I:l)&&z.iconType?_.Re(z.iconType):""};
CV.prototype.onTap=CV.prototype.onTap;CV.prototype.onFocus=CV.prototype.onFocus;CV.prototype.menuItemIdentifierChanged=CV.prototype.menuItemIdentifierChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],CV.prototype,"componentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],CV.prototype,"data",void 0);
_.e([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.w("design:type",String)],CV.prototype,"icon",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],CV.prototype,"isToggled",void 0);_.e([_.qX("tp-yt-paper-toggle-button"),_.w("design:type",Object)],CV.prototype,"toggleButton",void 0);_.e([_.By("data.menuItemIdentifier"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CV.prototype,"menuItemIdentifierChanged",null);
_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CV.prototype,"onFocus",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CV.prototype,"onTap",null);_.e([_.Wy({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],CV);
_.r(CV,"yt-live-chat-toggle-renderer",function(){if(G2F===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;gQ8===void 0&&(gQ8=document.createElement("template"));var b=gQ8;I.call(l,b.content.cloneNode(!0),z.content.firstChild);G2F=z}z=G2F;return z},{mode:_.C("live_chat_enable_sink_wrapper")?2:0});var uJ4=new _.yH("NAVIGATION_PROGRESS_TOKEN");var Z5C={},H5K={},yZq=(H5K[ieK.name]=!0,H5K),kk=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;z.tabGesturesIsActive=!1;z.actionRouterIsRoot=!0;z.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"};z.pageTitle="";z.titleSuffix="YouTube";z.unseenNotificationCount=
0;z.hasNavigated=!1;z.hasSetScrollTopForNavigation=!1;z.pagePreparer=null;z.zwiebackInitJobId=0;z.dataUpdatePromise=null;z.loadDepsPromise=_.Hu();z.hasPendingNavigation=!1;z.pendingPlayerOnResponseReceivedActions=[];return z};
_.m(kk,_.F6);kk.prototype.attached=function(){fzC(this);document.addEventListener("yt-navigate-cache",_.KJ(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var z=RS();z.init();z.dispatchElement=this.hostElement};
var fzC=function(z,l){l=l===void 0?0:l;var I=_.pG().resolve(_.MB(_.Va));if(I)CP8(z,I);else{if(l>=5)throw Error("ll");setTimeout(function(){fzC(z,l+1)},0)}},CP8=function(z,l){l.addEventListener("yt-navigate-start",_.KJ(z,z.onYtNavigateStart));
l.addEventListener("yt-navigate-finish",_.KJ(z,z.onYtNavigateFinish));l.addEventListener("yt-navigate-error",_.KJ(z,z.onYtNavigateError));l.addEventListener("yt-page-data-fetched",_.KJ(z,z.onYtPageDataFetched))};
_.p=kk.prototype;_.p.detached=function(){var z=_.pG().resolve(_.Va);z.removeEventListener("yt-navigate-start",_.KJ(this,this.onYtNavigateStart));z.removeEventListener("yt-navigate-finish",_.KJ(this,this.onYtNavigateFinish));z.removeEventListener("yt-navigate-error",_.KJ(this,this.onYtNavigateError));z.removeEventListener("yt-page-data-fetched",_.KJ(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.KJ(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.p.setPageOffset=function(z,l){z?_.Gb(this.hostElement,"yt-set-page-offset",[z,l]):_.dE(Error("ml"))};
_.p.setPageOffsetForNavigation=function(z,l){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(z,l))};
_.p.onYtNavigateSetPageOffset=function(z,l){this.setPageOffsetForNavigation(l.page,l.offset)};
_.p.getPageOffset=function(){var z=_.Hy(this.hostElement).querySelector("#page-manager").getCurrentPage(),l=0;z&&(l=_.Gb(this.hostElement,"yt-get-page-offset",[z])[0]);return l};
_.p.onYtHistoryPop=function(z,l){if(_.rr("DISABLE_WARM_LOADS"))z.preventDefault(),window.location.reload();else{var I=_.pG().resolve(_.Va);I.hasPendingNavigation()&&z.preventDefault();I.cancelPendingNavigation();_.EK(this.hostElement,"yt-pending-navigation-cancelled");l.errorMsg&&(z=l.errorMsg.split(" - "),l=Error(z[0]),z.length==2&&z[1]&&(_.hK(l,z[1]),_.PW(l)),window.location.reload())}};
_.p.onYtHistoryLoad=function(z,l){var I=this;if(_.rr("DISABLE_WARM_LOADS"))window.location.reload();else{(z=l.endpoint)&&Object.keys(z).length||(z=null);var b=l.historyEntry,v=_.pG().resolve(_.Va),M=_.pG().resolve(_.OB),x=null;b&&b.rootData&&(x=b.rootData);var g=x&&k28(x);!x||g||x.filler?z?(v.navigate(z,!0),RBc(this,z)):(l.legacyBorder||g||(l.JSC$30183_savedComponentState==null&&x==null?_.PW(new _.qB("Incomplete history entry",l.forward)):_.oy(new _.qB("Malformed history entry",l.JSC$30183_savedComponentState,
l.forward,x))),window.location.reload()):(_.Xok({isHot:!0}),_.om({webInfo:{navigationReason:"h"}}),_.Wzk(),_.sK("srt"),_.sK("pdc"),this.cancelPendingTasks(),mb1(this,l.forward,x),x.player&&(x.player.loaded=!1),RBc(this,z),_.xUu(v,z||{},x,2,{},!1,l).then(function(){I.setPageOffset(M.getCurrentPage(),b.scrollTop||0)}))}};
_.p.initHistoryManager=function(z){if(!this.hasNavigated){this.hasNavigated=!0;var l=_.Hy(this.hostElement).querySelector("#page-manager").getCurrentData();z=isNaN(z)?this.getPageOffset():z;var I=_.pG().resolve(_.Va).currentEndpoint;this.replaceState(I,l,z)}};
_.p.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.p.onYtNavigateStart=function(z,l){this.cancelPendingTasks();l.noProgressBar||(z=_.pG().resolve(_.MB(uJ4)))&&z.start();z=this.hasPendingNavigation?null:this.data;var I=_.pG().resolve(_.OB),b,v,M;_.C("kevlar_use_vimio_behavior")&&!((b=l.endpoint)==null?0:(v=b.commandMetadata)==null?0:(M=v.webCommandMetadata)==null?0:M.ignoreNavigation)&&(b=I.getCurrentPage())&&b.disconnectVisibilityRoot();I.prepareForNavigation(l.pageType,l.endpoint);_.C("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Fx(1,
"pcl"),_.Qy(this.pagePreparer,I.preparePage.bind(I,l.pageType,l.endpoint)));b=this.getPageOffset();this.initHistoryManager(b);l.reload||this.hasPendingNavigation?(_.C("web_enable_delay_shorts_sequence_call")&&l.pageType==="shorts"&&l.reload&&_.gC(this.hostElement,"yt-shorts-reset"),this.replaceState(l.endpoint,z,b)):(z==null?void 0:z.page)==="watch"&&l.pageType==="watch"&&_.C("kevlar_replace_watch_to_watch_history_state")?this.replaceState(l.endpoint,z,b):(z==null?void 0:z.page)!=="shorts"||l.pageType!==
"shorts"||l.endpoint.reelWatchEndpoint.sequenceParams||_.C("short_to_short_back_nav_killswitch")?l.type!="navigate-back"&&l.type!="navigate-forward"&&(l.pageType==="shorts"&&_.gC(this.hostElement,"yt-shorts-reset"),this.saveAndPush(l.url,l.endpoint,z,b)):(_.C("web_enable_delay_shorts_sequence_call")&&(l.endpoint.reelWatchEndpoint.sequenceParams=z==null?void 0:z.cachedSequenceParams,l.endpoint.reelWatchEndpoint.sequenceProvider=z==null?void 0:z.cachedSequenceProvider),this.replaceState(l.endpoint,
z,0));this.hasPendingNavigation=!0};
var K88=function(z){z.hasPendingNavigation=!1;(z=_.pG().resolve(_.MB(uJ4)))&&z.finish()};
kk.prototype.onYtNavigateError=function(z,l){K88(this);z=this.get("endpoint.commandMetadata.webCommandMetadata.url",l);var I=_.V7(window.location.href);z&&!I.pbjreload&&(l=l.navigationErrorReason||"10",_.C("kevlar_parent_on_pbjreload")&&(I={csn:_.sU()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.vu(z,I)),_.z9(_.jm(z,{pbjreload:l})))};
kk.prototype.onYtNavigateCache=function(z,l){var I=this,b=l.url,v=l.endpoint,M=l.data;z=!!l.miniplayer;l=!!l.skipHistory;if(b&&v&&M){var x=this.getPageOffset(),g=this.data||null;l||this.saveAndPush(b,v,g,x);b=_.xUu(_.pG().resolve(_.Va),v,M,z?4:3,{},z);z&&b.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var G=_.pG().resolve(_.OB);I.setPageOffset(G.getCurrentPage(),0)})})}};
kk.prototype.onYtNavigateFinish=function(z,l){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){tql(I,l.fromHistory)})};
var tql=function(z,l){K88(z);if(z.pendingPlayerOnResponseReceivedActions){for(var I=_.D(z.pendingPlayerOnResponseReceivedActions),b=I.next();!b.done;b=I.next())_.tx(b.value,z.hostElement);z.pendingPlayerOnResponseReceivedActions=[]}I=_.pG().resolve(_.OB);l||!z.hasNavigated||_.C("web_disable_scroll_on_navigate_finish")||((l=I.getCurrentPage())?l.is==="ytd-shorts"||z.tabGesturesIsActive||z.setPageOffsetForNavigation(l,0):_.PW(Error("nl")));_.JP(function(){_.JP(function(){_.sK("pda")})})};
kk.prototype.onYtNavigate=function(z){if(!z.detail.endpoint){var l=new _.qB("Error: Missing yt-navigate endpoint from target:",z.target,z.target.nodeName);_.dE(l)}if(l=_.C("cold_missing_history"))l=RS(),l.init(!1),l=!(l.browserHistory.boundHistoryReplaceState&&l.browserHistory.boundHistoryPushState);if(l){_.hr("DISABLE_WARM_LOADS",!0);l=new _.qB("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.PW(l):_.dE(l)}l=z.detail.endpoint;var b,v;_.C("debug_forward_web_query_parameters")&&((b=l.commandMetadata)==null?0:(v=b.webCommandMetadata)==null?0:v.url)&&(l=JSON.parse(JSON.stringify(l)),l.commandMetadata.webCommandMetadata.url=_.bcQ(l.commandMetadata.webCommandMetadata.url,window.location.search));z={type:0,command:l,form:{params:z.detail.params,tempData:z.detail.tempData||{},requestType:z.detail.type,createScreenConfig:z.detail.createScreenConfig,reload:z.detail.reload?z.detail.reload:!1,
requestForm:z.detail}};_.C("kevlar_yt_navigate_command_handler")?(b=_.pG().resolve(_.DQ),z.form.skipDefaultElement=!0,b.resolveCommand(l,{form:z.form})):this.handleNavigate(z)};
kk.prototype.handleNavigate=function(z){this.hasSetScrollTopForNavigation=!1;var l=_.pG().resolve(_.Va),I=z.form||{};l.navigate(z.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig,I.ignoreConfirmation,I.requestForm)&&RBc(this,z.command,I.tempData)};
kk.prototype.onYtPageDataFetched=function(z,l){try{_.zj4().reset();this.data=l.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.pG().resolve(_.OB).updatePageData(this.data);if(!_.C("web_service_params_response_processor")){var I=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);I&&pFy(I);var b=this.get("response.responseContext.serviceTrackingParams",
this.data);b&&pFy(b)}var v=this.get("playerResponse.onResponseReceivedActions",this.data);v&&(v=BAW(this,v));v&&_.ZE(this.hostElement,v,this.hostElement);var M=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),x=this.get("response.responseContext.consistencyTokenJar",this.data);if(M||x){var g=_.jJ7(),G=(0,_.h7.getValues)(g.tokenJars);M&&g.replace(G,M);x&&g.replace(G,x)}}catch(u){_.dE(u)}};
var RBc=function(z,l,I){try{z.onYtEndpointChangeHandler(l,I)}catch(b){_.dE(b)}};
_.p=kk.prototype;_.p.onYtEndpointChangeHandler=function(){};
_.p.setPageTitle=function(z){z=(this.pageTitle=z)?z+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+z};
_.p.onYtUpdateTitle=function(z,l){this.setPageTitle(l)};
_.p.setUnseenNotificationCount=function(z){this.unseenNotificationCount=z;this.setPageTitle(this.pageTitle)};
_.p.handleUpdateNotificationsUnseenCountAction=function(z){_.k(z,gYX)&&((z=_.k(z,gYX).unseenCount)?this.setUnseenNotificationCount(z):this.setUnseenNotificationCount(0))};
_.p.handleClearCookieAction=function(z){var l;(z=(l=_.k(z,pLs))==null?void 0:l.cookieName)&&_.mFf(z)};
_.p.onYtUpdateUnseenNotificationCount=function(z,l){this.setUnseenNotificationCount(l)};
_.p.loadData=function(z){var l=this;this.loadDepsPromise.then(function(){var I=_.pG().resolve(_.MB(_.Va));I||_.dE(Error("ol"));if(z&&z.response){if(!z.endpoint){var b=_.UU(window.document.location.href)||"/",v="";if(b==="/"||b.startsWith("/?"))v="WEB_PAGE_TYPE_BROWSE";z.endpoint={commandMetadata:{webCommandMetadata:{url:b,webPageType:v,rootVe:3854}}}}_.xUu(I,z.endpoint,z,5,{})}else z.endpoint?I.navigate(z.endpoint):I.navigate(_.AM);_.ow.cancelJob(l.zwiebackInitJobId);l.zwiebackInitJobId=_.ow.addLowPriorityJob(K94)})};
var RS=function(){return _.pG().resolve(_.wU)};
kk.prototype.getDebugString=function(){return RS().getDebugString()};
kk.prototype.getThirdPartyManipulationSuspected=function(){return RS().getThirdPartyManipulationSuspected()};
kk.prototype.replaceState=function(z,l,I){RS().saveAndReplace(z,l,I)};
kk.prototype.saveAndPush=function(z,l,I,b){RS().saveAndPush(z,l,I,b)};
var k28=function(z){return _.k(z.endpoint,_.zb)||_.k(z.endpoint,_.FN)?!0:!z||isNaN(z.expirationTime)?!1:(0,_.Dr)()>z.expirationTime},mb1=function(z,l,I){var b=z.get("response.trackingParams",I),v=_.h8(),M=_.sU();
if(b&&v&&M&&(b=z.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!b&&I.rootVe&&(b=I.rootVe),v=l?"forwardButton":"backButton",l=z.get("playerResponse.topbar.desktopTopbarRenderer."+v+".buttonRenderer.command.clickTrackingParams",z.data),z=z.get("response.topbar.desktopTopbarRenderer."+v+".buttonRenderer.command.clickTrackingParams",z.data),l=(z=l||z)?_.ch(z):void 0,z=_.iY(),v=[_.Hu(I)],_.db(z,b,l,{dataPromises:v,csnToClone:I.csn}),I.graftedVes))for(I=
_.D(I.graftedVes),b=I.next();!b.done;b=I.next())_.oc(z,b.value)};
kk.prototype.onStoreGraftedVeAction=function(z){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(z)):_.PW(Error("pl"))};
var BAW=function(z,l){return l.filter(function(I){for(var b in I)if(yZq[b])return z.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.vP.Object.defineProperties(kk.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
kk.prototype.onStoreGraftedVeAction=kk.prototype.onStoreGraftedVeAction;kk.prototype.loadData=kk.prototype.loadData;kk.prototype.onYtUpdateUnseenNotificationCount=kk.prototype.onYtUpdateUnseenNotificationCount;kk.prototype.handleClearCookieAction=kk.prototype.handleClearCookieAction;kk.prototype.handleUpdateNotificationsUnseenCountAction=kk.prototype.handleUpdateNotificationsUnseenCountAction;kk.prototype.setUnseenNotificationCount=kk.prototype.setUnseenNotificationCount;
kk.prototype.onYtUpdateTitle=kk.prototype.onYtUpdateTitle;kk.prototype.setPageTitle=kk.prototype.setPageTitle;kk.prototype.onYtEndpointChangeHandler=kk.prototype.onYtEndpointChangeHandler;kk.prototype.onYtPageDataFetched=kk.prototype.onYtPageDataFetched;kk.prototype.handleNavigate=kk.prototype.handleNavigate;kk.prototype.onYtNavigate=kk.prototype.onYtNavigate;kk.prototype.onYtNavigateFinish=kk.prototype.onYtNavigateFinish;kk.prototype.onYtNavigateCache=kk.prototype.onYtNavigateCache;
kk.prototype.onYtNavigateError=kk.prototype.onYtNavigateError;kk.prototype.onYtNavigateStart=kk.prototype.onYtNavigateStart;kk.prototype.cancelPendingTasks=kk.prototype.cancelPendingTasks;kk.prototype.initHistoryManager=kk.prototype.initHistoryManager;kk.prototype.onYtHistoryLoad=kk.prototype.onYtHistoryLoad;kk.prototype.onYtHistoryPop=kk.prototype.onYtHistoryPop;kk.prototype.onYtNavigateSetPageOffset=kk.prototype.onYtNavigateSetPageOffset;kk.prototype.setPageOffset=kk.prototype.setPageOffset;
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],kk.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kk.prototype,"data",void 0);_.e([_.tP("yt-navigate-set-page-offset"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],kk.prototype,"onYtNavigateSetPageOffset",null);
_.e([_.tP("yt-history-pop"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],kk.prototype,"onYtHistoryPop",null);_.e([_.tP("yt-history-load"),_.w("design:type",Function),_.w("design:paramtypes",[Event,_.iXA]),_.w("design:returntype")],kk.prototype,"onYtHistoryLoad",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],kk.prototype,"onYtNavigate",null);
_.e([_.tP("yt-update-title"),_.w("design:type",Function),_.w("design:paramtypes",[Event,String]),_.w("design:returntype")],kk.prototype,"onYtUpdateTitle",null);_.e([_.tP("yt-update-unseen-notification-count"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Number]),_.w("design:returntype")],kk.prototype,"onYtUpdateUnseenNotificationCount",null);_.e([_.Q5()],kk);Z5C.YtdAppBehavior=[_.wl.YtActionHandlerBehavior,kk.prototype];var mV=function(){var z=_.F6.apply(this,arguments)||this;z._noAccessors=!0;return z};
_.m(mV,_.F6);mV.prototype.ready=function(){var z=this;_.Hy(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){z.onChange_()})};
mV.prototype.dataChanged_=function(){_.Hy(this.hostElement).querySelector("#checkbox").checked=!1};
mV.prototype.onChange_=function(){var z=_.Hy(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.gC(this.hostElement,"yt-dismissal-reason-"+z,this.data.feedbackToken)};
mV.prototype.dataChanged_=mV.prototype.dataChanged_;_.e([_.X(),_.w("design:type",Object)],mV.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mV.prototype,"dataChanged_",null);_.e([_.Q5()],mV);var Xml=[mV.prototype];var KV=function(){var z=_.F6.apply(this,arguments)||this;z.timeoutJobId=0;z.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return z};
_.m(KV,_.F6);KV.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
KV.prototype.startTimeout=function(){var z=this,l=this.data&&this.data.displayDurationSeconds;l&&!this.timeoutJobId&&(this.timeoutJobId=_.qA(_.ow,function(){_.Gb(z.hostElement,"yt-close-popup-action",[z.is]);z.timeoutJobId=0},l*1E3))};
KV.prototype.cancelTimeout=function(){_.ow.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
KV.prototype.ytdHatsSurveyBehaviorDataChanged=KV.prototype.ytdHatsSurveyBehaviorDataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],KV.prototype,"ytActionHandlerBehavior",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KV.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.e([_.Q5()],KV);var qqX=[_.wl.YtActionHandlerBehavior,KV.prototype];var i5q=function(z,l){var I;return((I=z.prefixMapping)==null?0:I[l])?z.prefixMapping[l]:z.SHARED_RENDERERS_.hasOwnProperty(l)?"yt":z.prefix},t6={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}};t6.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.C("kevlar_mealbar_above_player"),modern:_.C("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
t6.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};t6.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};t6.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
t6.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)"}};
t6.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};
t6.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};
t6.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};
t6.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};t6.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"}};
t6.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};t6.TOAST={component:null,properties:{}};var F8W=new function(z,l,I){this.supportedPopups=z;this.navigationEndpointPopupMap=l;this.popupTypeMap=I;this.supportedPopups=z;this.navigationEndpointPopupMap=l;this.popupTypeMap=I}({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:_.C("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"}),Qtc=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19916_popupConfig=t6;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 Yqs=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.DW.getInstance()},BM=function(z,l){var I=z.pageNameToElement.get(l);
if(!I){switch(l){case "watch":var b=_.C("web_watch_force_learning_journey_for_testing")?_.ih("ytd-watch-learning-journey"):_.C("kevlar_watch_fixie")?_.ih("ytd-watch-fixie"):_.C("kevlar_watch_grid")?_.ih("ytd-watch-grid"):_.ih("ytd-watch-flexy");break;case "learning_journey_watch":b=_.ih("ytd-watch-learning-journey");break;case "shorts":b=_.ih("ytd-shorts");break;case "search":b=_.ih("ytd-search");break;case "channel":b=_.ih("ytd-browse");b.pageSubtype="channels";break;case "trending":b=_.ih("ytd-browse");
b.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":b=
_.ih("ytd-browse");b.pageSubtype=l;break;case "browse":b=_.ih("ytd-browse");break;default:_.PW(new _.qB("Error getting page element for type",l))}I=b;z.pageNameToElement.set(l,I)}return I};
Yqs.prototype.preparePage=function(z,l,I){I&&(z=_.Kr(I)||z);if(z!=="watch"&&z!=="learning_journey_watch"){var b=this.elementPoolPopulator,v=z;v!=b.targetPage_&&b.pendingPages_.indexOf(v)>-1&&(b.targetPage_&&(b.pendingPages_.unshift(b.targetPage_),b.abort()),aqS(b,v),_.tdu(b,v))}if((b=BM(this,z))||!_.k(I,_.AK)){b.isAttached||b===l||(b.hidden=!0);if(!b.data&&(z!=="watch"&&z!=="learning_journey_watch"||!_.C("swatcheroo_page_pool_dont_provide_filler_data"))){var M;if(z=(M=_.sZ("FILLER_DATA",{})[z])==
null?void 0:M.response)b.data=z}return b}};var TAF=function(z){this.JSC$32083_clientRoot=z;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Toy,"yt-end-playlist-command":cNc,"yt-recover-playlist-command":dtF,"yt-refresh-playlist-command":hSF,"yt-playlist-remove-videos-action":ol8};_.n2(_.WW.getInstance(),this.playlistHandlerActionMap,this.JSC$32083_clientRoot);pxK()},cZ0;var XW=function(z,l,I){this.apiKey=z;this.endpoint=l;this.confidenceThreshold=I===void 0?.5:I;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=l==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||l==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
l==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||l==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ItK};
_.p=XW.prototype;
_.p.start=function(z){if(this.state===0)if(this.isOnline()){z.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=z.supportsHttpHeadersOverwriteParam);z.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=z.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.hH("voice_assistant");_.rC("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=z.languageCode||"en-US";this.supportsCrossDomainXhr=z.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=z.youtubeAssistantRequest||null;this.listeningHandler=z.listeningHandler||this.listeningHandler;this.audioDetectedHandler=z.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=z.stopHandler||this.stopHandler;this.completeHandler=z.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=z.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=z.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
z.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=z.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=z.accessToken;this.additionalHeaders=z.additionalHeaders||{};var l;this.prefetchResponseTimeoutMs=(l=z.prefetchResponseTimeoutMs)!=null?l:this.prefetchResponseTimeoutMs;Sq1(this);this.startAudio();db0(this)}else this.errorHandler("OFFLINE")};
_.p.stop=function(z){var l=z===void 0?{}:z;z=l.logCancel===void 0?!0:l.logCancel;var I=l.logMicClosed===void 0?!0:l.logMicClosed;var b=l.handleError===void 0?!0:l.handleError;l=l.handleStop===void 0?!0:l.handleStop;this.state!==0&&(z&&qq("voz_cx"),iG(this,{logMicClosed:I,handleStop:l}),b&&this.errorHandler("ABORTED"))};
_.p.getState=function(){return this.state};
_.p.isSupported=function(){return!0};
_.p.stopAudio=function(z){(z===void 0||z)&&qq("voz_mf")};
_.p.startAudio=function(){qq("voz_vp");return _.Hu(null)};
var oQS=function(z,l){z.channelOpen&&(z.state!==2&&(z.state=2,qq("voz_ss"),z.listeningHandler()),l=new Uint8Array(l),l='{ "audioIn": "'+_.Tc(l)+'" }',z.channel.send(l))},iG=function(z,l){var I=l===void 0?{}:l;
l=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;z.vozEndOfDataTimeout>-1&&(clearTimeout(z.vozEndOfDataTimeout),z.vozEndOfDataTimeout=-1);PPF(z);z.stopAudio(l);z.channel&&(z.channelOpen=!1,z.manuallyClosedChannel=!0,z.channel.close(),z.channel=void 0);z.transcribedSpeechResults=[];z.state=0;I&&z.stopHandler()},Sq1=function(z){var l={httpHeadersOverwriteParam:z.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},z.additionalHeaders,z.accessToken&&z.isUsingVoz?{Authorization:"Bearer "+z.accessToken}:{"x-goog-api-key":z.apiKey}),supportsCrossDomainXhr:z.supportsCrossDomainXhr};z.channel=new oT(z.endpoint,l);z.channel.open();_.dZ(z.channel,"w",function(){var I=z.channel,b=I.send,v=z.isUsingVoz?"PLACEHOLDER":"example";v={config:{dialogStateIn:{languageCode:z.languageCode},deviceConfig:{deviceId:v,deviceModelId:v},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!z.isUsingVoz)v.config.requestType=4;else if(z.isUsingVoz&&z.youtubeAssistantRequest){var M=JSON.stringify(z.youtubeAssistantRequest);v.config.internalIn={youtubeAssistantS3InputJson:M}}b.call(I,v);z.channelOpen=!0;z.manuallyClosedChannel=!1});
_.dZ(z.channel,"x",function(){z.manuallyClosedChannel||(z.channelOpen=!1,z.channel=void 0,iG(z))});
_.dZ(z.channel,"z",function(I){if(I.data){PPF(z);for(var b=0;b<I.data.length;b++){var v=z,M=I.data[b],x=M.speechResults;if(x)a:{var g=[];M=[];var G=!1;x=_.D(x);for(var u=x.next();!u.done;u=x.next()){u=u.value;if(u.noSpeech){iG(v);v.errorHandler("NO_SPEECH");break a}u.transcript!==void 0&&u.stability!==void 0&&(u.stability<v.confidenceThreshold&&(G=!0),G?M.push(u.transcript):g.push(u.transcript))}if(g.length!==0||M.length!==0)g=g.join(" "),M=M.join(" "),v.receivedEndOfUtterance&&!v.isUsingVoz?v.isUsingVoz||
v.completeHandler([g,M]):(G=v,x=g,u=M,qq("voz_sf"),G.transcriptionUpdateHandler(x,u),G.transcribedSpeechResults=[x,u]),v.receivedEndOfUtterance&&(qq("voz_eou"),v.transcriptionCompleteHandler([g,M]),v.isUsingVoz&&(v.prefetchResponseTimeoutMs===0?iG(v,{logMicClosed:!1,handleStop:!0}):v.prefetchResponseTimeoutMs>0&&hB0(v)))}else v.isUsingVoz&&(M==null?0:M.internalOut)?(M=JSON.parse(M.internalOut.youtubeAssistantS3OutputJson),M.userHasOptedInToVaa||M.vaaConsent?v.vaaConsentUpdateHandler(!!M.userHasOptedInToVaa,
!!M.vaaConsent):(stK(v),M&&(g=v.transcribedSpeechResults,qq("voz_rqf"),v.completeHandler(g,M)))):M.eventType==="END_OF_UTTERANCE"?v.receivedEndOfUtterance=!0:(qq("voz_err"),v.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.PW(Error("ql")))}}});
_.dZ(z.channel,"y",function(I){iG(z);switch(I.status){case 1:I="WEBCHANNEL_NETWORK_ERROR";break;case 2:I="WEBCHANNEL_SERVER_ERROR";break;default:I="WEBCHANNEL_UNKNOWN_ERROR"}z.errorHandler(I);z.logError(Error(I))})};
XW.prototype.logError=function(z){_.dE(z)};
XW.prototype.isOnline=function(){return!0};
var hB0=function(z){stK(z);z.prefetchResponseSetTimeoutId=setTimeout(function(){iG(z,{logMicClosed:!1,handleStop:!0})},z.prefetchResponseTimeoutMs)},stK=function(z){z.prefetchResponseSetTimeoutId>-1&&(clearTimeout(z.prefetchResponseSetTimeoutId),z.prefetchResponseSetTimeoutId=-1)},db0=function(z){PPF(z);
z.noResponseReceivedTimeout=window.setTimeout(function(){iG(z);z.errorHandler("NO_SPEECH")},11E3)},PPF=function(z){z.noResponseReceivedTimeout>-1&&(window.clearTimeout(z.noResponseReceivedTimeout),z.noResponseReceivedTimeout=-1)},qq=function(z){_.sK(z,void 0,"voice_assistant")};var FW=function(){XW.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.m(FW,XW);FW.prototype.isSupported=function(){return s28()};
FW.prototype.startAudio=function(){var z=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Ph(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(b){rZq(z,b)};
this.processor.connect(this.audioContext.destination);var l=function(b){z.stream=b;if(!z.audioContext)return _.Hu(null);b=z.audioContext.createMediaStreamSource(b);z.processor&&b.connect(z.processor);return _.Hu(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?l(this.stream):(I=navigator.mediaDevices.getUserMedia(I))?I.then(l).catch(function(b){iG(z);b.name&&b.name==="NotAllowedError"?z.errorHandler("NO_MICROPHONE_PERMISSION"):(z.errorHandler("AUDIO_ERROR"),z.logError(b));return _.Ph(null)}):(iG(this),this.errorHandler("AUDIO_ERROR"),_.PW(Error("rl")));
return XW.prototype.startAudio.call(this)};
FW.prototype.stopAudio=function(z){z=z===void 0?!0:z;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(l){l.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;XW.prototype.stopAudio.call(this,z)};
FW.prototype.isOnline=function(){return navigator.onLine};
var rZq=function(z,l){if(z.audioContext)if(window.OfflineAudioContext){var I=z.audioContext.sampleRate,b=l.inputBuffer.getChannelData(0);l=new window.OfflineAudioContext(1,b.length,16E3);for(var v=l.createBuffer(1,b.length,I),M=v.getChannelData(0),x=0,g=0;g<b.length;g++)M[g]=b[g],x+=M[g]*M[g];!z.audioDetected&&Math.sqrt(x/b.length)>.01&&(z.audioDetected=!0,z.audioDetectedHandler());b=l.createBufferSource();b.buffer=v;b.connect(l.destination);b.start(0);l.oncomplete=function(G){G=G.renderedBuffer.getChannelData(0);
for(var u=Math.floor(16384E3/I),Z=new Int16Array(u),H=0;H<u;++H)Z[H]=Math.max(-1,Math.min(1,G[H]))*32767;oQS(z,Z.buffer)};
l.startRendering()}else $bX(z,l)},$bX=function(z,l){var I=z.audioContext.sampleRate,b=l.inputBuffer.getChannelData(0),v=Math.floor((I+8E3)/16E3);
I=b.length/v;l=new Float32Array(I);for(var M=0;M<I;++M)l[M]=b[M*v];b=new Int16Array(I);for(v=0;v<I;++v)b[v]=Math.max(-1,Math.min(1,l[v]))*32767;oQS(z,b.buffer)};var eBl={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var wm4=function(){this.JSC$19981_audioEnabled=!0;this.audioFeedbackHolder={}};
wm4.prototype.isPlaying=function(z){return z.currentTime>0&&!z.paused&&!z.ended&&z.readyState>2};
var AZX=function(z){for(var l=_.D(Object.values(eBl)),I=l.next();!I.done;I=l.next())I=I.value,z.audioFeedbackHolder[I]=new Audio,z.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",z.audioFeedbackHolder[I].load()},QC=function(z,l){if(z.JSC$19981_audioEnabled!==!1&&l in z.audioFeedbackHolder){for(var I=_.D(Object.values(z.audioFeedbackHolder)),b=I.next();!b.done;b=I.next())b=b.value,z.isPlaying(b)&&b.pause();
z.audioFeedbackHolder[l].currentTime=0;z.audioFeedbackHolder[l].play().catch(function(){})}};var W84=function(z,l){var I=this;this.store=z;this.service=l;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){I.setState("offline");I.stop()};
this.audioPlayer=new wm4;var b;(b=this.audioPlayer)==null||AZX(b)};
_.p=W84.prototype;_.p.getService=function(){return this.service};
_.p.isEnabled=function(){return!!this.service};
_.p.isSupported=function(){var z;return(z=this.service)==null?void 0:z.isSupported()};
_.p.start=function(){var z=this,l,I,b,v,M,x,g,G,u,Z,H,y,f;return _.O(function(R){switch(R.nextAddress){case 1:z.store.dispatch(ZNW("",""));if(!navigator.onLine)return z.setState("offline"),R.return();window.addEventListener("offline",z.handleOfflineEvent);z.stream=null;if(!z.permissionsSupported){R.jumpTo(2);break}_.RL(R,3);return R.yield(nQ8(z),5);case 5:l=R.yieldResult;if(!l)return(I=z.audioPlayer)==null||QC(I,"failure"),R.return();z.service.stream=z.stream;z.setState("listening");_.a3(R,2);break;
case 3:_.XP(R),z.permissionsSupported=!1;case 2:b={context:_.irx(_.O5())},b.youtubeAssistantParams={searchParams:{inlineSearchResponse:z.enableInlineSearchResponse}},v=function(F,Y){z.store.dispatch(HNX("transcribing"));z.store.dispatch(ZNW(F,Y))},M=function(){var F;
(F=z.audioPlayer)==null||QC(F,"open");z.setState("listening")},x=function(){z.setState("transcribing")},g=function(F){z.setErrorState(F)},G=function(F,Y){var c;
(c=z.audioPlayer)==null||QC(c,"success");Y&&(_.C("kevlar_voice_search_inline_search")&&(z.responseProcessor=_.pG().resolve(_.kjQ),z.responseProcessor&&(c=Y.navigationAction,F=Y.prefetchedSearchResponse,c&&F&&(c=(new _.xKF).JSC$13121_getStoreKey(c),_.U2(z.responseProcessor,F,c)))),z.JSC$19999_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",Y))},u=function(){window.removeEventListener("offline",z.handleOfflineEvent)},Z=_.Pcf(!1),H=Z.Authorization!=null,y=z.enableFirstPartyAuth||
z.enableFPAForSignedInUsers&&H?Z:{"X-Goog-Visitor-Id":Z["X-Goog-Visitor-Id"]},f={completeHandler:G,
errorHandler:g,listeningHandler:M,audioDetectedHandler:x,stopHandler:u,transcriptionUpdateHandler:v,youtubeAssistantRequest:b,languageCode:L8S(),additionalHeaders:y,supportsCrossDomainXhr:z.enableFirstPartyAuth||z.enableFPAForSignedInUsers&&H,supportsHttpHeadersOverwriteParam:!z.disableHttpHeadersOverwrite},z.service.start(f),_.qe(R)}})};
_.p.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.p.reset=function(){this.store.dispatch(_.GZ({type:"RESET_VOICE_SEARCH_STATE"}))};
_.p.setState=function(z){this.store.dispatch(HNX(z))};
_.p.setErrorState=function(z){switch(z){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var l;(l=this.audioPlayer)==null||QC(l,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)nQ8(this);else{var I;(I=this.audioPlayer)==null||QC(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var b;(b=this.audioPlayer)==null||QC(b,"no_input");break;default:var v;(v=this.audioPlayer)==
null||QC(v,"no_input");this.setState("timeout")}};
var nQ8=function(z){var l,I;return _.O(function(b){switch(b.nextAddress){case 1:return b.yield(navigator.permissions.query({name:"microphone"}),2);case 2:l=b.yieldResult;if(l.state==="granted")return b.return(!0);if(l.state==="denied")return z.setState("permission-denied"),b.return(!1);z.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.RL(b,3);return b.yield(navigator.mediaDevices.getUserMedia(I),5);case 5:return z.stream=b.yieldResult,b.return(!0);case 3:return _.XP(b),
z.setState("permission-denied"),b.return(!1)}})},L8S=function(){var z=_.sZ("INNERTUBE_CONTEXT_HL"),l=_.sZ("INNERTUBE_CONTEXT_GL");
return z.indexOf("-")>-1?z:z+"-"+l};var Ub0=function(z,l,I){W84.call(this,l,I);this.JSC$19999_actionRouter=z;this.enableInlineSearchResponse=_.C("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.C("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.C("kevlar_voice_search_enable_fpa_signedin_users")},azC;
_.m(Ub0,W84);
var Vq1=function(){if(!azC){var z="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.C("kevlar_voice_search_auth_enabled")||_.C("kevlar_voice_search_use_yt_endpoint")?z="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.C("kevlar_voice_search_use_fp_endpoint")&&(z="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");azC=
new Ub0(_.WW.getInstance(),_.vF(),new FW(_.sZ("VOZ_API_KEY"),z,.5))}return azC};var jtK=function(z){this.JSC$20003_clientRoot=z;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20003_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)]]));z=_.D(this.eventListeners);for(var l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;I=_.D(I);for(var b=I.next();!b.done;b=I.next()){var v=
_.D(b.value);b=v.next().value;v=v.next().value;l.addEventListener(b,v)}}_.n2(_.WW.getInstance(),this.autonavPauseActionMap,this.JSC$20003_clientRoot)},JZ4,zpy=function(z){return _.C("kevlar_autonav_popup_filtering")?(z=_.pJ(z))?z.hasAttribute("prevent-autonav"):!0:!0};
_.p=jtK.prototype;_.p.onIronOverlayOpened=function(z){zpy(z)&&(this.autonavPauseReasons.overlayOpen=!0,Yk(this))};
_.p.onIronOverlayClosed=function(z){zpy(z)&&(this.autonavPauseReasons.overlayOpen=!1,Yk(this))};
_.p.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Yk(this)};
_.p.onYtAutonavPauseBlur=function(){var z=this;_.ow.addJob(function(){z.isInBackground()||(z.autonavPauseReasons.inputBoxFocus=!1,Yk(z))},8,0)};
_.p.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Yk(this)};
_.p.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Yk(this)};
_.p.onYtAutonavPauseScroll=function(){var z=_.pG().resolve(_.OB);z.isOnWatch()&&(z=z.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=z.getBoundingClientRect().top<-200,Yk(this))};
_.p.onYtAutonavPauseUserEngagement=function(z){var l=this;if(_.C("user_engagement_enable_autoplay_pause_feature")){var I=Number(z.lowEngagementThresholdMs);isNaN(I)||I<=0||z.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.pG().resolve(_.TH),_.p2()<I?_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.nO1()?(this.userEngagementCsn=_.sU(),_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
l.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Yk(this)):_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.rRG(Error("sl`"+JSON.stringify(z)))};
_.p.onYtAutonavPausePlayer=function(z){this.autonavPauseReasons.requestedByPlayer=!!z.detail;Yk(this)};
_.p.onYtAutonavVisibilityChanged=function(){var z=this,l,I,b;return _.O(function(v){if(v.nextAddress==1)return(l=_.GS())?v.yield(l.getPlayerPromise(),2):v.return();I=v.yieldResult;b=I.isMuted()||I.getVolume()===0;z.autonavPauseReasons.backgroundAndMute=z.isInBackground()&&b;Yk(z);_.qe(v)})};
_.p.onYtAutonavPausePlayerEnded=function(){_.pG().resolve(_.TH);var z=144E5;_.C("user_engagement_enable_autoplay_pause_feature")||_.C("is_part_of_any_user_engagement_experiment")||(z=45E5);this.autonavPauseReasons.longIdle=_.p2()>z;luF(this);Yk(this)};
_.p.onYtUserActivity=function(){var z=this;this.autonavPauseReasons.userEngagement&&(_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",z.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Yk(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",z.userEngagementCsn);_.SX()}),this.autonavPauseReasons.youthereLactExperiment=!1,Yk(this));
this.autonavPauseReasons.longIdle&&!_.C("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Yk(this))};
_.p.isInBackground=function(){var z=window.document.visibilityState;return!(!z||z==="visible")};
var Yk=function(z){for(var l=!1,I=_.D(Object.values(z.autonavPauseReasons)),b=I.next();!b.done;b=I.next())b=b.value,l=l||b;l?_.Bf.getInstance().pause(z.autonavPauseReasons):(z=_.Bf.getInstance(),z.autonavState_==3?(z.setState(2,!1,!1),z.autonavPauseReason_=void 0):z.autonavState_==1&&(z.disabledAutonavPauseReason_=void 0))},luF=function(z){var l=!1;
if(_.C("enable_autoplay_pause_by_lact")){_.pG().resolve(_.TH);l=_.OI("autoplay_pause_by_lact_sec")*1E3;var I=_.OI("autoplay_pause_by_lact_sampling_fraction");(l=_.p2()>=l&&Math.random()<I)&&!_.nO1()&&(_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),l=!1)}l!==z.autonavPauseReasons.youthereLactExperiment&&(z.autonavPauseReasons.youthereLactExperiment=l)&&(z.userEngagementCsn=_.sU(),_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",z.userEngagementCsn)}));
z.autonavPauseReasons.userEngagement&&_.qA(_.ow,function(){_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",z.userEngagementCsn)})};
jtK.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.sT("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.SX(),this.autonavPauseReasons.youthereLactExperiment=!1,Yk(this));this.autonavPauseReasons.userEngagement&&(_.sT("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Yk(this))};
jtK.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var TE=function(){var z=_.q.apply(this,arguments)||this;z.miniGuideVisible=!1;z.guideOpened=_.C("disable_initial_guide_state_fix")?!1:z.canFitPersistentGuide(z.initialBodyClientWidth);z.guideUserStateOpened=z.getInitialGuideUserStateOpened();z.isFullscreenShorts=!1;z.miniGuideWidthThreshold=_.OI("kevlar_mini_guide_width_threshold",791);z.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");z.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");z.persistentGuideBlockedPagePathRegex=new RegExp(z.persistentGuideBlockedPagesPatterns.join("|"));z.animationTransitionDuration=0;z.lateDataResolver=_.b1();z.initialGuideDataFetchFailed=!1;z.initialLoad=!0;z.guideRenderers=new Set;z.isMouseOverGuide=!1;z.sessionUserManuallyExpandedGuideState=!1;z.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return z};
_.m(TE,_.q);_.p=TE.prototype;_.p.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.p.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.p.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.p.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.p.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.p.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.p.ready=function(){_.pG().addProvider({provide:_.ZW,useValue:this.hostElement})};
_.p.attached=function(){var z=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.KJ(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.KJ(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.KJ(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.KJ(this,this.onYtGuideShow));_.IR(this,function(){z.animationTransitionDuration=200})};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.KJ(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.KJ(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.KJ(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.KJ(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.KJ(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.KJ(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.KJ(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.p.getData=function(){return this.data};
_.p.load=function(){var z=this,l,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=z.lateDataResolver.resolve.bind(z),M.return(z.lateDataResolver.promise);if(window.ytInitialGuideData)return l=_.b1(),l.resolve(window.ytInitialGuideData),M.return(l.promise);b=!1;_.RL(M,2);return M.yield(z.fetchGuideData(),4);case 4:I=M.yieldResult;_.a3(M,3);break;case 2:v=_.XP(M),v.message==="Returned error"&&(b=
!0);case 3:if(I)return M.return(I);z.onYtGuideClose();b||(z.initialGuideDataFetchFailed=!0);return M.return(z.lateDataResolver.promise)}})};
_.p.fetchGuideData=function(){var z=this,l,I,b,v,M,x,g;return _.O(function(G){if(G.nextAddress==1)return l=_.pG(),z.guidePromise||(I=l.resolve(_.AY),z.guidePromise=_.I0(I,RV0)),G.yield(z.guidePromise,2);if(G.nextAddress!=3)return b=G.yieldResult,v=l.resolve(_.dv),G.yield(v(),3);(M=G.yieldResult)&&((x=b)==null?void 0:(g=x.responseContext)==null?void 0:g.maxAgeSeconds)!==0&&M.put("service:guide:fallback",new _.h$({innertubeResponse:b}));return G.return(b)})};
_.p.initializeGuideDataIfEmpty=function(){var z=this,l,I;return _.O(function(b){if(b.nextAddress==1){if(!z.initialGuideDataFetchFailed||z.data)return b.return();_.RL(b,2);return b.yield(z.fetchGuideData(),4)}if(b.nextAddress!=2)return(l=b.yieldResult)&&z.lateDataResolver.resolve(l),_.a3(b,0);I=_.XP(b);_.PW(I);_.qe(b)})};
_.p.initializeGuideData=function(){var z=this,l;return _.O(function(I){switch(I.nextAddress){case 1:return _.Zq(rHy(),{mainAppWeb:_.l5()}),_.RL(I,2),I.yield(z.load(),4);case 4:z.data=I.yieldResult;_.a3(I,3);break;case 2:_.XP(I),_.HJ(rHy(),"FAILURE");case 3:l=z.data&&z.data.items&&z.data.items.length>0?"SUCCESS":"FAILURE",_.HJ(rHy(),l),_.qe(I)}})};
_.p.setGuideData=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1)return l.disabled?v.return():l.data?(z.data=l.data,l.guideRenderers.add(z),v.return()):v.yield(l.initializeGuideData(),2);l.graftGuideToPage();I=_.rr("IS_HOMEPAGE_COLD")?"eop":void 0;_.C("disable_element_pool_populator")?l.setGuideDataAfterInit(z):(b=new _.Fx(1,I),_.Qy(b,l.setGuideDataAfterInit.bind(l,z)));_.qe(v)})};
_.p.setGuideDataAfterInit=function(z){z.data=this.data;z.markDirty();this.guideRenderers.add(z);_.JP(function(){_.sK("gle")});
_.IR(this,function(){_.sK("gpe")})};
_.p.graftGuideToPage=function(){if(this.data){var z=this.data&&this.data.trackingParams;z&&(z=_.ch(z),_.Pf(_.iY(),z))}};
_.p.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.KJ(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.p.onDrawerOpenedChanged=function(z,l){!l.value&&this.guideOpened&&(this.guideOpened=!1)};
_.p.onYtGuideToggle=function(z){var l=this.guideOpened;this.guideOpened=!l;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.Bu();_.XG(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var b;this.guideOpened&&((b=z.detail)==null?0:b.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.KJ(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.KJ(this,this.onAppDrawerTransitioned))}l||this.initializeGuideDataIfEmpty()};
_.p.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.KJ(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.JW(this.guideElement)};
_.p.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.KJ(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(EAC(this.guideOpened))};
_.p.guidePersistentAndVisibleChanged=function(){_.EK(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.p.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.p.miniGuideVisibleChanged=function(){_.EK(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.p.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(EAC(this.guideOpened)),this.initialLoad=!1);_.EK(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.p.activeEndpointChanged=function(){_.EK(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.p.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.p.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()};
_.p.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var z=this.canFitPersistentGuide(this.cachedClientWidth);z?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=z}this.updateGuideDrawerElementState()};
_.p.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.p.getGuideOpened=function(){return this.guideOpened};
_.p.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.p.getActiveEndpoint=function(){return this.activeEndpoint};
_.p.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.p.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&&_.gC(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.p.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.C("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.p.handleGuideMouseLeave=function(){var z=this;!this.sessionUserManuallyExpandedGuideState&&_.C("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.z4(this,"handleGuideMouseLeave",function(){z.isMouseOverGuide||!z.guideOpened||z.miniGuideVisible||(z.guideOpened=!1,z.updateGuideDrawerElementState())},100))};
_.p.computeGuidePersistentAndVisible=function(){var z=this;_.z4(this,"computeGuidePersistentAndVisible",function(){z.guidePersistentAndVisible=z.guideOpened&&z.guidePersistent;z.guideIsVisibleButNotPersistent=!(!z.guideOpened||z.guidePersistent)})};
_.p.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.p.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.p.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.p.startLoadingWatch=function(){this.closeGuide()};
_.p.startLoadingShorts=function(){_.C("web_hide_guide_on_shorts")&&this.closeGuide()};
_.p.onYtNavigateFinish=function(z,l){if(!_.Zs||l){this.activeEndpoint=l.endpoint;this.pageType=l.pageType;this.pageUrl=l.response.url;var I,b;z=(b=_.k((I=l.endpoint)==null?void 0:I.commandMetadata,_.kB))==null?void 0:b.url;!this.pageUrl&&z&&(this.pageUrl=z);_.C("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.p.getVisibleGuideRenderer=function(){for(var z=_.D(this.guideRenderers),l=z.next();!l.done;l=z.next())if(l=l.value,this.miniGuideVisible&&l.is==="ytd-mini-guide-renderer"||this.guideOpened&&l.is==="ytd-guide-renderer")return l;return null};
_.p.markGuideRendererDirty=function(z){if(z){typeof z.markDirty==="function"&&z.markDirty();z=_.D([].concat(_.ht(_.Hy(z).children)));for(var l=z.next();!l.done;l=z.next())this.markGuideRendererDirty(l.value)}};
_.p.persistentGuideEnabled=function(z,l){if(!l||z==="watch"||z==="settings"||z==="shorts"&&this.isFullscreenShorts||_.C("reels_web_disable_persistent_guide_shorts")&&z==="shorts")return!1;var I=_.yI(l)||"";return _.C("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(b){return I===b}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.p.canFitPersistentGuide=function(z){var l=_.OI("kevlar_persistent_guide_width_threshold",1312);return l===-1||_.C("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:z>l};
_.p.canFitMiniGuide=function(z){return this.miniGuideWidthThreshold===-1?!1:z>this.miniGuideWidthThreshold};
_.p.onResize=function(){var z=this;_.z4(this,"calculateGuideState",function(){z.onResizeDebounced()})};
_.p.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.p.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.p.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.p.getInitialGuideUserStateOpened=function(){return _.C("web_force_mini_guide_default")?!1:!_.Bu().getFlag(109)};
_.vP.Object.defineProperties(TE.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.sZ("initialBodyClientWidth")||window.innerWidth}}});
TE.prototype.onResize=TE.prototype.onResize;TE.prototype.observeForMiniGuideVisible=TE.prototype.observeForMiniGuideVisible;TE.prototype.computeGuidePersistentAndVisible=TE.prototype.computeGuidePersistentAndVisible;TE.prototype.cachedClientWidthChanged=TE.prototype.cachedClientWidthChanged;TE.prototype.resetGuide=TE.prototype.resetGuide;TE.prototype.activeEndpointChanged=TE.prototype.activeEndpointChanged;TE.prototype.guideOpenedChanged=TE.prototype.guideOpenedChanged;
TE.prototype.miniGuideVisibleChanged=TE.prototype.miniGuideVisibleChanged;TE.prototype.guideIsVisibleButNotPersistentChanged=TE.prototype.guideIsVisibleButNotPersistentChanged;TE.prototype.guidePersistentAndVisibleChanged=TE.prototype.guidePersistentAndVisibleChanged;TE.prototype.onGuideElementChanged=TE.prototype.onGuideElementChanged;TE.prototype.onGuidePersistentChanged=TE.prototype.onGuidePersistentChanged;TE.prototype.onRenderGuideChanged=TE.prototype.onRenderGuideChanged;
TE.prototype.onActiveEndpointChanged=TE.prototype.onActiveEndpointChanged;TE.prototype.onMiniGuideVisibleChanged=TE.prototype.onMiniGuideVisibleChanged;TE.prototype.onGuideIsVisibleButNotPersistentChanged=TE.prototype.onGuideIsVisibleButNotPersistentChanged;TE.prototype.onGuidePersistendAndVisibleChanged=TE.prototype.onGuidePersistendAndVisibleChanged;_.e([_.t(_.ap),_.w("design:type",Object)],TE.prototype,"ironResizableBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],TE.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],TE.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TE.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],TE.prototype,"disabled",void 0);
_.e([_.X(),_.w("design:type",Boolean)],TE.prototype,"guidePersistentAndVisible",void 0);_.e([_.By("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onGuidePersistendAndVisibleChanged",null);_.e([_.X(),_.w("design:type",Boolean)],TE.prototype,"guideIsVisibleButNotPersistent",void 0);
_.e([_.By("guideIsVisibleButNotPersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.e([_.X(),_.w("design:type",Object)],TE.prototype,"miniGuideVisible",void 0);_.e([_.By("miniGuideVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onMiniGuideVisibleChanged",null);_.e([_.X(),_.w("design:type",Boolean)],TE.prototype,"forceMiniGuideClose",void 0);
_.e([_.X(),_.w("design:type",Object)],TE.prototype,"activeEndpoint",void 0);_.e([_.By("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onActiveEndpointChanged",null);_.e([_.X(),_.w("design:type",Boolean)],TE.prototype,"renderGuide",void 0);_.e([_.By("renderGuide"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onRenderGuideChanged",null);
_.e([_.X(),_.w("design:type",Object)],TE.prototype,"guideOpened",void 0);_.e([_.X(),_.w("design:type",Boolean)],TE.prototype,"guidePersistent",void 0);_.e([_.By("guidePersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onGuidePersistentChanged",null);_.e([_.X(),_.w("design:type",Object)],TE.prototype,"guideUserStateOpened",void 0);_.e([_.X(),_.w("design:type",String)],TE.prototype,"pageUrl",void 0);
_.e([_.X(),_.w("design:type",String)],TE.prototype,"pageType",void 0);_.e([_.X(),_.w("design:type",Number)],TE.prototype,"cachedClientWidth",void 0);_.e([_.X(),_.w("design:type",Object)],TE.prototype,"guideElement",void 0);_.e([_.X({selector:_.u7}),_.w("design:type",Object)],TE.prototype,"isFullscreenShorts",void 0);_.e([_.By("guideElement"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onGuideElementChanged",null);
_.e([_.By("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"guidePersistentAndVisibleChanged",null);_.e([_.YE("guideIsVisibleButNotPersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.e([_.By("miniGuideVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"miniGuideVisibleChanged",null);_.e([_.YE("guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"guideOpenedChanged",null);_.e([_.By("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"activeEndpointChanged",null);
_.e([_.YE("pageUrl"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"resetGuide",null);_.e([_.YE("cachedClientWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"cachedClientWidthChanged",null);_.e([_.By("guideOpened","guidePersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"computeGuidePersistentAndVisible",null);
_.e([_.YE("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"observeForMiniGuideVisible",null);_.e([_.tP("iron-resize"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TE.prototype,"onResize",null);_.e([_.S({disableElementRegistration:!0,is:"yt-guide-manager"})],TE);var IuC=_.r(TE,"yt-guide-manager",void 0,{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var cM=function(){var z=_.q.apply(this,arguments)||this;z.JSC$20013_keyboardInUse=!1;z.boundHandleCapturedKeydownEvent=function(l){z.handleCapturedKeydownEvent(l)};
return z};
_.m(cM,_.q);_.p=cM.prototype;_.p.attached=function(){this.listenToDocument(document)};
_.p.listenToDocument=function(z){z.addEventListener("keydown",_.KJ(this,this.onKeyDownEvent));z.addEventListener("keyup",_.KJ(this,this.onKeyUpEvent));z.addEventListener("mousedown",_.KJ(this,this.onMouseDownEvent));_.C("desktop_keyboard_capture_keydown_killswitch")||z.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);z.addEventListener("yt-page-data-updated",_.KJ(this,this.onPageUpdate))};
_.p.detached=function(){this.unlistenFromDocument(document)};
_.p.unlistenFromDocument=function(z){z.removeEventListener("keydown",_.KJ(this,this.onKeyDownEvent));z.removeEventListener("keyup",_.KJ(this,this.onKeyUpEvent));z.removeEventListener("mousedown",_.KJ(this,this.onMouseDownEvent));_.C("desktop_keyboard_capture_keydown_killswitch")||z.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);z.removeEventListener("yt-page-data-updated",_.KJ(this,this.onPageUpdate))};
_.p.ready=function(){_.pG().addProvider({provide:_.T$,useValue:this})};
_.p.isKeyBoardInUse=function(){return this.JSC$20013_keyboardInUse};
_.p.handleCapturedKeydownEvent=function(z){if(z.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(z)};
_.p.onMouseDownEvent=function(){this.JSC$20013_keyboardInUse=!1};
_.p.onPageUpdate=function(){if(_.C("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.C("web_shorts_keyboard_shortcut_usage_log")){_.A1.clear();for(var z=_.D(_.eh),l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;I=_.kU(I);_.A1.set(l,I);_.LM(_.sU(),_.h8(),I)}_.W5.clear();z=_.D(_.w6);for(l=z.next();!l.done;l=z.next())I=_.D(l.value),l=I.next().value,I=I.next().value,I=_.kU(I),_.W5.set(l,I),_.LM(_.sU(),_.h8(),I);_.UK(_.sU(),_.h8(),[].concat(_.ht(_.W5.values()),
_.ht(_.A1.values())));_.Vi(_.sU(),[].concat(_.ht(_.W5.values()),_.ht(_.A1.values())))}};
_.p.onMiniplayerActiveChange=function(){var z;(z=_.pG().resolve(_.Af).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(z.document):this.unlistenFromDocument(z.document))};
_.p.ignoreKeyEvent=function(z){if(z.ctrlKey||z.altKey)if(_.C("kevlar_macro_markers_keyboard_shortcut")){if(z.keyCode!==37&&z.keyCode!==39)return!0}else return!0;var l=_.MX(z)||[];return _.aV1(l)?(_.C("web_button_or_anchor_list_item")&&gWl(l,z)&&(this.JSC$20013_keyboardInUse=!0),!0):z.defaultPrevented?(Ot(z.keyCode,z.shiftKey,this.isShortsPage),!0):z.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(z):!1};
_.p.isSpacebarClick=function(z){var l=z||window.event;var I;l.composedPath&&typeof l.composedPath==="function"?I=l.composedPath():I=l.path;I&&I.length?l=I[0]:(l=l||window.event,l=l.target||l.srcElement,l.nodeType==3&&(l=l.parentNode));return l&&z.keyCode===32&&(z=l.tagName==="BUTTON"||l.tagName==="A"||l.tagName==="INPUT",l=(l=l.getAttribute("role"))&&(l==="option"||l==="button"||l.indexOf("menuitem")===0),z||l)?!0:!1};
_.p.onKeyDownEvent=function(z){if(!this.ignoreKeyEvent(z)&&(z.keyCode===191&&(z.shiftKey||z.metaKey?z.repeat!=null&&z.repeat||(this.openHotkeyDialog(),Ot(z.keyCode,z.shiftKey,this.isShortsPage)):(this.focusSearchBox(),z.preventDefault())),!z.metaKey)){var l=_.pG().resolve(_.Af);switch(z.keyCode){case 9:this.JSC$20013_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(z);break;case 84:l.pipController.getWindow()&&window.focus();this.toggleTheaterMode(z.keyCode,z.shiftKey);break;case 73:l.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(z.keyCode,z.shiftKey);break;case 70:if(this.isShortsPage&&_.C("web_fullscreen_shorts")){_.VnK();break}this.isMiniplayerActive()?l.pipController.getWindow()&&(l.close(!0),window.focus()):this.passEventToPlayer(z);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(z.keyCode,z.shiftKey):this.closeMiniplayer(z.keyCode,z.shiftKey)||this.passEventToPlayer(z);break;case 13:z.shiftKey&&_.pG().resolve(_.vj).activate(z);break;default:this.passEventToPlayer(z)}}};
_.p.onKeyUpEvent=function(z){if(!this.ignoreKeyEvent(z))if(_.C("web_speedmaster_spacebar_control")&&z.keyCode===32)this.handlePlayerSpaceKey(z,!0);else{var l=this.getPlayerManager();l&&(l=l.getPlayer())&&l.handleGlobalKeyUp(z.keyCode,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code)}};
_.p.getPlayerManager=function(){var z=_.GS(),l=_.pG().resolve(_.MB(_.OB));return z&&l&&l.isOnWatch()?z:null};
_.p.passEventToPlayer=function(z,l){var I=this,b,v,M,x;return _.O(function(g){if(g.nextAddress==1){if(!_.C("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive())b=_.pG().resolve(_.Af).getPlayerElement();else if(I.inlinePreviewIsActive){if(v=_.EK(I.hostElement,"yt-get-inline-preview-player-action"),(M=v)==null?0:M[0])b=v[0]}else b=_.GS();return b?g.yield(b.getPlayerPromise(),3):g.jumpTo(0)}x=g.yieldResult;l?x.handleGlobalKeyUp(z.keyCode,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,
z.key,z.code):x.handleGlobalKeyDown(z.keyCode,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code,z.repeat);z.keyCode!==38&&z.keyCode!==40&&Ot(z.keyCode,z.shiftKey,I.isShortsPage);_.qe(g)})};
_.p.focusSearchBox=function(){_.gC(this.hostElement,"yt-focus-searchbox")};
_.p.openHotkeyDialog=function(){_.gC(this.hostElement,"yt-open-hotkey-dialog")};
_.p.isMiniplayerActive=function(){return _.pG().resolve(_.Af).isMiniplayerActive()};
_.p.closeMiniplayer=function(z,l){return this.isMiniplayerActive()?(_.pG().resolve(_.Af).close(),Ot(z,l,this.isShortsPage),!0):!1};
_.p.toggleTheaterMode=function(z,l){var I=_.wo(_.vF().getState()),b=this.getPlayerManager(),v=_.C("disable_theater_mode_keyboard")||_.rr("START_IN_FULL_WINDOW_MODE");b&&!v&&(I=!I,_.pM()&&_.C("external_fullscreen")&&(I=!0),_.Gb(this.hostElement,"yt-toggle-theater-mode",[I]),Ot(z,l,this.isShortsPage))};
_.p.toggleMiniplayer=function(z,l){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var b;((b=_.pG().resolve(_.MB(_.OB)))==null?0:b.isOnWatch())?_.pG().resolve(_.Af).close(!0):_.N3(_.pG().resolve(_.Af));Ot(z,l,this.isShortsPage)}else I&&(_.Gb(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Ot(z,l,this.isShortsPage))};
_.p.handlePlayerSpaceKey=function(z,l){var I=!!_.GS()||this.isMiniplayerActive();I=_.C("disable_space_scroll_fix")||I;_.C("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(z.preventDefault(),this.passEventToPlayer(z,l))};
_.p.isPresentingTheaterMode=function(){return _.C("web_watch_enable_tm_esc_key")?_.wo(_.vF().getState())&&!_.pM():!1};
cM.prototype.onMiniplayerActiveChange=cM.prototype.onMiniplayerActiveChange;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],cM.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],cM.prototype,"ytdReduxBehavior",void 0);_.e([_.X({selector:_.OqH}),_.w("design:type",Boolean)],cM.prototype,"inlinePreviewIsActive",void 0);_.e([_.X({selector:_.ui$}),_.w("design:type",Boolean)],cM.prototype,"isShortsPage",void 0);
_.e([_.X({selector:_.rg}),_.w("design:type",Boolean)],cM.prototype,"miniplayerIsActive",void 0);_.e([_.By("miniplayerIsActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cM.prototype,"onMiniplayerActiveChange",null);_.e([_.S({disableElementRegistration:!0,is:"yt-hotkey-manager"})],cM);_.r(cM,"yt-hotkey-manager",void 0,{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var S0=function(){var z=_.q.apply(this,arguments)||this;z.loopStateEntityKey_=null;z.playlistLoopStateEntity_=null;z.isShuffleNextPlaylist=!1;z.PLAYER_EVENTS_=new Map;z.playerListenersSetup_=!1;z.videoSkipJob_=0;z.canAutoAdvance_=!1;z.playerManager_=null;z.TEST_ONLY={};return z};
_.m(S0,_.q);_.p=S0.prototype;_.p.ready=function(){_.pG().addProvider({provide:_.NG,useValue:this.hostElement})};
_.p.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_)};
_.p.attached=function(){document.addEventListener("yt-navigate-start",_.KJ(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.KJ(this,this.onYtNavigateFinish_))};
_.p.detached=function(){document.removeEventListener("yt-navigate-start",_.KJ(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.KJ(this,this.onYtNavigateFinish_))};
_.p.updatePlaylistEventListeners=function(z,l){l&&!this.playerListenersSetup_?(this.playerManager_=z,this.registerPlaylistEventListeners_(z)):!l&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(z))};
_.p.setPlayer=function(z){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=z};
_.p.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.p.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.p.registerPlaylistEventListeners_=function(z){var l=this;z.getPlayerPromise().then(function(I){l.playerListenersSetup_||(l.ytPlayerListenerBehavior.listenToPlayerEvents(I,l.PLAYER_EVENTS_),l.playerListenersSetup_=!0)})};
_.p.removePlaylistEventListeners_=function(z){var l=this;z.getPlayerPromise().then(function(I){l.playerListenersSetup_&&(l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,l.PLAYER_EVENTS_),l.playerListenersSetup_=!1)})};
_.p.setPlaylistComponent=function(z){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.KJ(this,this.onPlaylistYtNavigate_)),z&&(z.data&&this.playlistComponent.data&&z.data.playlistId==this.playlistComponent.data.playlistId?(z.loopOn=this.playlistComponent.loopOn,z.shuffleOn=this.playlistComponent.shuffleOn):(z.loopOn=!1,z.shuffleOn=!1),this.isShuffleNextPlaylist&&(z.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=z;this.playlistComponent.addEventListener("yt-navigate",
_.KJ(this,this.onPlaylistYtNavigate_))};
_.p.setAutoplayRenderer=function(z){this.autoplayData=z};
_.p.setPlaylistData=function(z){this.currentPlaylistData_=z;_.gC(this.hostElement,"yt-playlist-data-updated");_.h7.isEmpty(z)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(z)};
_.p.setPlayerPlaybackControlData=function(z){this.playerManager_&&this.playerManager_.updatePlayerComponents(z.playlistPanelRenderer)};
_.p.getPlaylistData=function(){return this.currentPlaylistData_};
_.p.getTempData_=function(z,l){if(this.playlistComponent==null)return null;z={};this.playlistComponent.shuffleOn&&(z.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(z.loop_on=this.playlistComponent.loopOn);l&&(z.autonav="1",_.pG().resolve(_.TH),l=_.p2(),l>0&&(z.lact=l),this.playerManager_&&(l=this.playerManager_.getPlayer())&&l.shouldSendVisibilityState()&&(l=l.getVisibilityState(),l!=0&&(z.vis=l)));_.C("enable_unknown_lact_fix_on_html5")&&(_.pG().resolve(_.TH),z.lact=
_.p2());return z};
_.p.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.p.setLoopStateEntityKey_=function(z){var l;this.loopStateEntityKey_=((l=this.getPlaylistLoopData_(z))==null?void 0:l.playlistLoopStateEntityKey)||null};
_.p.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.p.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.p.skipVideo=function(){var z=this,l=_.C("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||l)l=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.o0(_.ow,function(){z.onPlaylistNext();z.videoSkipJob_=0},l)};
_.p.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ow.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.p.isInBackground_=function(){var z=window.document.visibilityState;return!(!z||z=="visible")};
_.p.onPlaylistIndex_=function(z){this.playlistComponent&&(z=this.playlistComponent.data.contents[z].playlistPanelVideoRenderer.navigationEndpoint,_.gC(this.hostElement,"yt-navigate",{endpoint:z,tempData:this.getTempData_(z)}))};
_.p.onPlayerStateChange_=function(z){if(z=z==0&&this.playlistComponent&&this.canAutoAdvance_)z=_.Bf.getInstance(),z=!(z.autonavState_===3?z.autonavPauseReason_&&z.autonavPauseReason_.inputBoxFocus===!0:z.autonavState_===1&&z.disabledAutonavPauseReason_&&z.disabledAutonavPauseReason_.inputBoxFocus===!0);z&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.p.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.p.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.p.navigateToAutoplayWatchEndpoint_=function(z,l,I){var b=this.playlistComponent.data.currentIndex,v=this.getNumPlayableVideos_();z=="NORMAL"&&l=="autoplayVideo"&&b+1>=v&&I||!(z=this.getVideoEndpoint_(z,l))||(I=this.getTempData_(z,I),_.gC(this.hostElement,"yt-navigate",{endpoint:z,tempData:I}))};
_.p.getNumPlayableVideos_=function(){for(var z=0,l=_.D(this.playlistComponent.data.contents||[]),I=l.next();!I.done;I=l.next())I.value.playlistPanelVideoRenderer&&(z+=1);return z};
_.p.getVideoEndpoint_=function(z,l){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,b=this.autoplayData.sets.length;I<b;I++){var v=this.autoplayData.sets[I];if(v.mode==z){if(v[l])return v[l];break}}else z=new _.qB("AutoplayData is undefined in playlist manager","Mode: "+z+" endpoint: "+l),_.PW(z)};
_.p.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.p.onPlaylistYtNavigate_=function(z){if(z.detail.endpoint){z.stopPropagation();var l=z.detail;l.tempData=this.getTempData_(z.detail.endpoint);_.gC(this.hostElement,"yt-navigate",l)}};
_.p.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.p.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.p.playlistLoopStateEntityChanged_=function(z){var l=this,I,b,v;return _.O(function(M){if(M.nextAddress==1){if(!z)return M.return();I=z.state==="PLAYLIST_LOOP_STATE_ONE";return l.playerManager_?M.yield(l.playerManager_.getPlayerPromise(),3):M.jumpTo(2)}M.nextAddress!=2&&(b=M.yieldResult,b.setLoopVideo(I));v=z.state==="PLAYLIST_LOOP_STATE_ALL";l.playlistComponent&&(l.playlistComponent.loopOn=v);_.qe(M)})};
_.p.getPlaylistLoopData_=function(z){var l,I;if(z=z==null?void 0:(l=z.playlistButtons)==null?void 0:(I=l.menuRenderer)==null?void 0:I.topLevelButtons)for(l=_.D(z),I=l.next();!I.done;I=l.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.p.getLoopStateCommand_=function(z){var l=this.getPlaylistData(),I;l=((I=this.getPlaylistLoopData_(l))==null?void 0:I.states)||[];var b;z=(b=_.k(l[z?1:2],_.a9w))==null?void 0:b.button;var v;return(v=_.k(z,_.xm))==null?void 0:v.command};
_.p.onPlayerLoopChange_=function(z){this.playlistLoopStateEntity_&&(z?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(z=this.getLoopStateCommand_(z))&&this.ytComponentBehavior.resolveCommand(z)};
_.p.onSleepTimerSettingsChanged_=function(z){this.canAutoAdvance_=z!=="End of video"};
S0.prototype.onPlaylistLoopStateEntityChanged=S0.prototype.onPlaylistLoopStateEntityChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],S0.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.RJ.YtPlayerListenerBehavior),_.w("design:type",_.mW)],S0.prototype,"ytPlayerListenerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],S0.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],S0.prototype,"loopStateEntityKey_",void 0);
_.e([_.X({selectorArgs:["loopStateEntityKey_"],selector:_.ga5}),_.w("design:type",Object)],S0.prototype,"playlistLoopStateEntity_",void 0);_.e([_.By("playlistLoopStateEntity_"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],S0.prototype,"onPlaylistLoopStateEntityChanged",null);_.e([_.S({disableElementRegistration:!0,is:"yt-playlist-manager"})],S0);_.r(S0,"yt-playlist-manager",void 0,{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var b6X,vHc=function(){if(b6X!==void 0)return b6X;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return b6X=z};var d9=function(){var z=_.q.apply(this,arguments)||this;z.lastCallback=null;z.getAccountLinkPromises={};z.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);z.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return z};
_.m(d9,_.q);_.p=d9.prototype;_.p.getLocation=function(){return window.location.href};
_.p.getCompletionUrl=function(){return _.bJ(this.getLocation())};
_.p.containsRedirectState=function(z){return(z=_.QF(_.sHt(z)))?(new URLSearchParams(z)).get("redirect_state")!==null:!1};
_.p.createGalConfig=function(z,l){var I=new dg8;z=I=l?this.getPopupOrRedirectSetting(I,_.sZ("LINK_API_KEY"),_.sZ("LINK_API_KEY_REDIRECT"),z):o9s(I,_.sZ("LINK_API_KEY"));z.authUser=_.sZ("SESSION_INDEX")||0;z.supportedFlows=new Set([4]);return z.build()};
_.p.getPopupOrRedirectSetting=function(z,l,I,b){this.isGalInteractionPopupMode(b)?(z.interactionMode=0,z=o9s(z,l)):(z.interactionMode=1,l=this.getCompletionUrl(),z.completionUrl=l,z=o9s(z,I));return z};
_.p.isGalInteractionPopupMode=function(z){if(this.redirectModeProviderAllowlist.has(z))switch(z){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.p.getStatusEntityKeyForProviderId=function(z){return _.Hg(z+":all","accountLinkStatusEntity")};
_.p.findNestedPropValue=function(z,l){var I=!1,b=null;JSON.stringify(z,function(v,M){I||v!==l||(I=!0,b=M);return I?null:M});
return b};
_.p.findAccountLinkButtonViewModel=function(z,l){var I=null,b=!1;JSON.stringify(z,function(v,M){b||M.accountLinkStatusEntityKey!==l||M.accountLinkStatusSecondaryEntityKey||(b=!0,I=M);return b?null:M});
return I};
_.p.executeLinkingSuccessOrFailureCommands=function(z,l,I){var b=null,v;(l==null?0:(v=l.url)==null?0:v.includes("account_sharing"))?b=l==null?void 0:l.response:b=l==null?void 0:l.response;(l=this.findAccountLinkButtonViewModel(b,z))?(z=I?this.findNestedPropValue(l,"onSuccessCommand"):this.findNestedPropValue(l,"onFailureCommand"))?_.fM([z],this.hostElement):_.nP(Error("tl")):_.nP(Error("ul`"+z))};
_.p.handleInitializeRequest=function(z,l){var I=this,b=xXC(this.createGalConfig(z,!0));this.containsRedirectState(this.getLocation())?bJs(z,b.config,b.galService).then(function(v){var M=I.getStatusEntityKeyForProviderId(z);if(v.statusCode===1)l&&I.executeLinkingSuccessOrFailureCommands(M,l,!0),v=I.getLocation().indexOf("#"),v!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,v));else return l&&I.executeLinkingSuccessOrFailureCommands(M,l,!1),Promise.reject(Error(v.statusMessage))}).catch(function(v){_.PW(v);
_.cW("gamingAccountLinkStatusChanged",{serviceId:z,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(v)}):this.getAccountLinkPromises[z]=b.startLinkingSession({serviceId:z})};
_.p.handleAccountLinkCommand=function(z){_.k(z,mQ0)&&this.handleLinkRequest(_.k(z,mQ0))};
_.p.handleLinkRequest=function(z){var l=this,I=z.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var b=function(){l.closeAndFire("ytd-gaming-account-link-setting-renderer",z.onFailureCommand)},v=function(){l.closeAndFire("ytd-gaming-account-link-setting-renderer",z.onSuccessCommand)};
this.lastCallback=v;this.getAccountLinkPromises[I].then(function(M){Zmq(M).then(function(x){x.statusCode===1?v():b()})}).catch(function(){b()})}else this.getAccountLinkPromises[I].then(function(M){Zmq(M).then(function(x){if(x.statusCode!==1)return Promise.reject(Error(x.statusMessage))})}).catch(function(M){_.PW(M);
_.cW("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)})};
_.p.closeAndFire=function(z,l){_.Gb(this.hostElement,"yt-close-popup-action",[z]);l&&_.fM([l],this.hostElement)};
_.p.handleAccountUnlinkCommand=function(z){_.k(z,K6q)&&this.handleUnlinkRequest(_.k(z,K6q))};
_.p.handleUnlinkRequest=function(z){var l=this,I=z.thirdPartyId;if(I){var b=function(){l.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",z.onFailureCommand)},v=function(){l.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",z.onSuccessCommand)};
this.lastCallback=v;var M=xXC(this.createGalConfig(I,!1));this.unlinkUserGal(M,I).then(function(x){x.statusCode===1?v():b()}).catch(function(){b()})}};
_.p.unlinkUserGal=function(z,l){return z.deleteLink(l)};
_.p.handleLogAccountLinkingEventCommand=function(z){_.C("enable_gel_log_commands")&&_.k(z,t$c)&&(z=_.k(z,t$c).event)&&_.cW("gamingAccountLinkStatusChanged",z)};
_.vP.Object.defineProperties(d9,{template:{configurable:!0,enumerable:!0,get:function(){return vHc()}}});
_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],d9.prototype,"ytOpenPopupBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-third-party-manager"})],d9);_.r(d9,"ytd-third-party-manager",function(){return vHc()},{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var MpC,p61=function(){if(MpC!==void 0)return MpC;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return MpC=z};var oS=function(){var z=_.q.apply(this,arguments)||this;z.currentPage=void 0;z.renderLoadingStateJobId=0;z.updatePageDataJobId=0;z.pageDisposeJobsets=new WeakMap;z.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"};z.shouldApplyLockupToWatchTransition=_.C("web_thumbnail_to_watch_transition");z.shouldApplySlideTransition=_.gk("web_page_transition_type")==="slide"||_.C("enable_plj_landing_page");z.shouldApplyLearningJourneyTransition=_.C("enable_plj_landing_page");z.TEST_ONLY=void 0;return z};
_.m(oS,_.q);_.p=oS.prototype;_.p.ready=function(){var z=_.pG();z.addProvider({provide:_.OB,useValue:this});z.addProvider({provide:_.Cy_,useValue:this})};
_.p.created=function(){this.pagePool=new Yqs;this.contextSwitcher=new Wrq};
_.p.attached=function(){_.gC(this.hostElement,"attached");var z=_.pG().resolve(_.MB(_.wD));z&&(this.contextSwitcher.JSC$19839_networkService_=z);this.viewTransitionManager=_.pG().resolve(_.Lg)};
_.p.getPageOffset=function(z){return z.getScrollTop()};
_.p.setPageOffset=function(z,l){try{z.setScrollTop(l)}catch(I){}};
_.p.setPageOffsetForNavigation=function(z,l){_.gC(this.hostElement,"yt-navigate-set-page-offset",{page:z,offset:l===void 0?0:l})};
_.p.pauseActiveContext=function(){var z=this.contextSwitcher;z.activeContext_&&z.activeContext_.pause()};
_.p.getModuleNameForType=function(z){return z==="watch"?_.C("kevlar_watch_fixie")?"watchFixie":_.C("kevlar_watch_grid")?"watchGrid":"watchFlexy":z==="shorts"||z==="search"?z:"browse"};
_.p.attachPage=function(z){var l,I=!_.C("pc_is_attached_ks")&&(z==null?void 0:(l=z.polymerController)==null?void 0:l.isAttached);if(!z.isAttached&&!I)try{_.Hy(this.hostElement).appendChild(z)}catch(v){var b;_.PW(new _.qB("Error attaching page element for component",{origin:(b=this.currentPage)==null?void 0:b.is,component:z.is}))}};
_.p.setActivePage=function(z,l){var I=this,b=!1,v=function(){var M=I.isOnWatch(),x=I.currentPage;if(z)if(z!==I.currentPage){x&&(x.hidden=!0,x.active=!1,x.removeAttribute("role"));I.currentPage=z;var g,G=l!=null?l:_.Kr((g=I.data)==null?void 0:g.endpoint);x&&_.gC(I.hostElement,"yt-page-type-changed",{oldPageType:x.is,newPageType:z.is,newPageSubtype:G});_.M8().dispatch(_.GZ({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:z.is}));_.M8().dispatch(_.GZ({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:G||""}));
z.hidden=!1;I.attachPage(z);z.active=!0;z.setAttribute("role","main");x&&I.setPageOffsetForNavigation(z,0);_.C("kevlar_remove_page_dom_on_switch")&&!M&&x&&_.Hy(I.hostElement).removeChild(x)}else b=!0;else I.handleMissingDestinationPage(x)};
this.shouldRunBrowseTransition(this.currentPage,z)?PIC(this.viewTransitionManager,v):this.shouldRunLearningJourneyTransition(this.currentPage,z)?rOq(this.viewTransitionManager,v):v();return b};
_.p.handleMissingDestinationPage=function(z){if(this.isColdLoadForUnknownPage(z))_.PW(new _.qB("Cold load for unknown page"));else{var l;z=new _.qB("Unable to set active page",z?z.is:"unknown origin",(l=this.data)==null?void 0:l.endpoint);_.dE(z)}};
_.p.isColdLoadForUnknownPage=function(z){return!z&&jh(this.data)==="unknown"};
_.p.shouldRunBrowseTransition=function(z,l){return this.shouldApplySlideTransition&&(z==null?void 0:z.is)==="ytd-browse"&&(l==null?void 0:l.is)==="ytd-browse"&&z!==l};
_.p.shouldRunLearningJourneyTransition=function(z,l){return this.shouldApplyLearningJourneyTransition&&(z==null?void 0:z.is)==="ytd-browse"&&((l==null?void 0:l.is)==="ytd-watch-learning-journey"||(l==null?void 0:l.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.p.shouldRunWatchNextLoadedTransition=function(z,l){return this.viewTransitionManager&&z.is==="ytd-watch-flexy"&&l};
_.p.updatePageData=function(z){var l=this,I=this.data;this.updatePageDataJobId&&_.ow.cancelJob(this.updatePageDataJobId);this.data=z;return new _.yK(function(b){var v=function(){z.filler?l.performDataUpdate(z,I):LOW(function(){l.performDataUpdate(z,I)});
var G=_.uV();_.ZL(G,"cr")||G.processSignal("cr");b()},M=function(){z&&z.page==="watch"?l.updatePageDataJobId=_.o0(_.ow,v):v()};
if(_.C("kevlar_enable_mss_page_modules_client")&&z){var x=_.pG().resolve(_.nI),g=l.getModuleNameForType(z.page);(x=d58(x,[g]))?x.then(M):M()}else M()})};
_.p.isDownloadsPage=function(z){var l,I;return(z==null?void 0:(l=z.endpoint)==null?void 0:(I=l.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.p.setPlayerSyncInterval=function(z){var l;return _.O(function(I){if(I.nextAddress==1)return I.yield(_.pG().resolve(_.HU),2);l=I.yieldResult;l.setUpPositionSyncInterval(z);_.qe(I)})};
_.p.performDataUpdate=function(z,l){_.C("kevlar_early_popup_close")||_.Gb(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!z.filler;I&&(_.sK("lps"),_.C("config_age_report_killswitch")||RvX());var b=jh(z),v,M=!1;if(_.C("kevlar_remove_page_dom_on_switch")){var x=l&&jh(l);b===x&&(v=this.getCurrentPage())}v||(v=BM(this.pagePool,b));I&&VK4(this.pagePool.elementPoolPopulator,b);I&&!this.renderLoadingStateJobId&&(M=this.setActivePage(v));if(v){x=b==="watch";var g=
b==="shorts",G=b==="learning_journey_watch";_.C("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(v);if(x||g||G)v.playerData=z.playerResponse;if(g)if(_.C("web_enable_delay_shorts_sequence_call")){z.reelWatchSequenceResponse&&(z.reelWatchSequenceResponse.entries||z.reelWatchSequenceResponse.prevEntries)&&(v.reelWatchSequenceResponse=z.reelWatchSequenceResponse);v.currentEndpoint=z.endpoint;var u;v.isPreviousPageShorts=!!(l==null?0:(u=l.endpoint)==null?0:u.reelWatchEndpoint);
var Z,H;z.cachedSequenceParams=((Z=z.endpoint)==null?void 0:(H=Z.reelWatchEndpoint)==null?void 0:H.sequenceParams)||z.cachedSequenceParams||(l==null?void 0:l.cachedSequenceParams);var y,f;z.cachedSequenceProvider=((y=z.endpoint)==null?void 0:(f=y.reelWatchEndpoint)==null?void 0:f.sequenceProvider)||z.cachedSequenceProvider||(l==null?void 0:l.cachedSequenceProvider);v.cachedSequenceParams=z.cachedSequenceParams;v.cachedSequenceProvider=z.cachedSequenceProvider}else{z.reelWatchSequenceResponse&&(z.reelWatchSequenceResponse.entries||
z.reelWatchSequenceResponse.prevEntries)?v.reelWatchSequenceResponse=z.reelWatchSequenceResponse:z.cachedReelWatchSequenceResponse?v.reelWatchSequenceResponse=z.cachedReelWatchSequenceResponse:_.C("web_enable_cached_reel_sequence_fix")&&v.cachedReelWatchSequenceResponse&&!v.reelWatchSequenceResponse&&(v.reelWatchSequenceResponse=v.cachedReelWatchSequenceResponse);v.currentEndpoint=z.endpoint;var R;v.isPreviousPageShorts=!!(l==null?0:(R=l.endpoint)==null?0:R.reelWatchEndpoint);z.cachedReelWatchSequenceResponse=
z.reelWatchSequenceResponse||z.cachedReelWatchSequenceResponse||(l==null?void 0:l.cachedReelWatchSequenceResponse);v.cachedReelWatchSequenceResponse=z.cachedReelWatchSequenceResponse}u=this.isDownloadsPage(z);Z=this.isDownloadsPage(l);u&&!Z?this.setPlayerSyncInterval(6E5):!u&&Z&&this.setPlayerSyncInterval();_.C("block_all_player_prefetch_requests")||this.preparePrefetchRequest(z,v,I,x,g,G);$54(_.pG().resolve(_.Af),l,z);var F;(F=_.pG().resolve(_.MB(_.vD)))==null||_.ER0(F,this.getPersistentPanelSurface(b));
_.i0(_.pG().resolve(_.TH));_.C("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(v);I?(I=typeof v.loadPage,I==="function"?(v.pageContext=nJy(this.contextSwitcher,v,v.data!==z.response),I=function(){v.loadPage(z.response)},this.shouldApplySlideTransition&&v.is==="ytd-browse"&&M&&(b==="learning"||this.isDifferentBrowseId(z==null?void 0:z.endpoint,l==null?void 0:l.endpoint))?PIC(this.viewTransitionManager,I):this.shouldRunWatchNextLoadedTransition(v,M)?sX8(this.viewTransitionManager,
I):I()):_.oy(new _.qB("b/38014653 ",[b,
v.is,v.nodeName,I,v.isAttached,l&&jh(l),this.hostElement.children.length])),_.sK("pdl")):(v.hidden=!0,z.response.filler=!0,v.data=z.response,this.attachPage(v));_.gC(this.hostElement,"yt-page-data-updated",{pageType:b})}_.qA(_.ow,function(){_.C("logging_avoid_blocking_during_navigation")&&_.EUQ().transition("none");var Y=xbs(),c=v;if(z){var d=kH4(z),V=RSC(z),A;a:{if(z.playerResponse){var W=z.playerResponse,L;if((A=W.auxiliaryUi)==null?0:(L=A.messageRenderers)==null?0:L.upsellDialogRenderer){A=W.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(z.response&&(A=z.response,(W=A.overlay)==null?0:W.upsellDialogRenderer)){A=A.overlay.upsellDialogRenderer;break a}A=void 0}var lH;var Gk;L=(lH=z.playerResponse)==null?void 0:(Gk=lH.auxiliaryUi)==null?void 0:Gk.messageRenderers;lH=(L==null?void 0:L.enforcementMessageViewModel)||(L==null?void 0:L.bkaEnforcementMessageViewModel);lH=(lH==null?void 0:lH.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?lH:void 0;var uH;a:{if(z.response&&(Gk=z.response,(uH=Gk.overlay)==
null?0:uH.commandWrapperPromoRenderer)){uH=Gk.overlay.commandWrapperPromoRenderer;break a}uH=void 0}Dbs(Y,d,V,A,lH,uH,c)}})};
_.p.preparePrefetchRequest=function(z,l,I,b,v,M){var x,g,G,u,Z,H,y,f,R,F,Y,c,d,V,A;return _.O(function(W){if(W.nextAddress==1)return!I||!(b||v||M)||_.C("kevlar_disable_background_prefetch")&&_.em(_.ZRH)()===0?W.return():(x=_.g5(l))?W.yield(x.getPlayerPromise(),2):W.return();g=W.yieldResult;G=_.pG().resolve(_.MB(_.wD));if(!G)return W.return();if(v)return u=_.pI(_.aE),vxK(u,(Z=z.endpoint)==null?void 0:Z.reelWatchEndpoint,l.reelWatchSequenceResponse,g,G),W.return();f=(H=z.response)==null?void 0:(y=H.responseContext)==
null?void 0:y.webResponseContextExtensionData;if(!f)return W.return();d=(R=z.response)==null?void 0:(F=R.contents)==null?void 0:(Y=F.twoColumnWatchNextResults)==null?void 0:(c=Y.autoplay)==null?void 0:c.autoplay;V=_.pG().resolve(_.NG);A=_.pI(_.aE);MyK(A,f,g,G,V,d);_.qe(W)})};
_.p.movePlayerToWatch=function(z){var l=this,I,b;return _.O(function(v){I=BM(l.pagePool,"watch");b=I.getPlayerContainer();z.appendTo(b);_.qe(v)})};
_.p.movePlayerToShorts=function(z){var l=this,I,b,v;return _.O(function(M){I=BM(l.pagePool,"shorts");b=I.getPlayerContainer();(v=z)==null||v.appendTo(b,void 0,!0);_.qe(M)})};
_.p.getPlayerFromWatch=function(){var z=BM(this.pagePool,"watch");return _.g5(z)};
_.p.getPlayerFromShorts=function(){var z=BM(this.pagePool,"shorts");return _.g5(z)};
_.p.startLoadingWatch=function(){var z=this,l=BM(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ow.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.C("web_watch_transition_enable_start_loading_watch_callsite")?hhc(this.viewTransitionManager,function(){z.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(l,"watch")};
_.p.startLoadingShorts=function(){var z=BM(this.pagePool,"shorts");this.setActivePage(z,"shorts")};
_.p.startLoadingLearningJourney=function(){var z=BM(this.pagePool,"learning_journey_watch");this.setActivePage(z,"learning_journey_watch")};
_.p.getCurrentPage=function(){return this.currentPage};
_.p.getDestinationPageType=function(){return this.destinationPageType};
_.p.getCurrentData=function(){return this.data};
_.p.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.p.isOnShorts=function(){var z;return((z=this.currentPage)==null?void 0:z.is)==="ytd-shorts"};
_.p.isWatchPage=function(z){return!!z&&(z.is==="ytd-watch-flexy"||z.is==="ytd-watch-fixie"||z.is==="ytd-watch-grid")};
_.p.preparePage=function(z,l){var I=this,b=function(){var x=I.pagePool.preparePage(z,I.currentPage,l);x&&I.attachPage(x)},v=function(x){_.hK(x,l);
_.PW(x)};
if(_.C("kevlar_enable_mss_page_modules_client")){var M=this.getModuleNameForType(z);if(M=d58(_.pG().resolve(_.nI),[M])){M.then(b.bind(this)).catch(v.bind(this));return}}try{b()}catch(x){v(x)}};
_.p.lazyPrepareCriticalPages=function(z,l){z=_.Kr(l)||z;_.C("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(z).then(this.maybePrepareWatchPage.bind(this,z)):this.maybePrepareWatchPage(z)};
_.p.maybePrepareWatchPage=function(z){z==="watch"||z==="learning_journey_watch"&&_.C("web_watch_learning_journey_disable_lazy_pages")||_.qA(_.ow,this.preparePage.bind(this,"watch"))};
_.p.downloadPageModules=function(z){z=this.getModuleNameForType(z);var l=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);l.delete(z);var I=_.pG().resolve(_.nI);I.JSC$18572_loadModules(z);return I.JSC$18572_loadModules.apply(I,_.ht(l))};
_.p.renderPageLoadingState=function(z,l){this.preparePage(z,l);var I=BM(this.pagePool,z);I.loadingData&&(I.loadingData.endpoint=l);I.loading=!0;this.setActivePage(I,z);z!=="watch"&&z!=="learning_journey_watch"||_.gC(this.hostElement,"yt-guide-close")};
_.p.prepareForNavigation=function(z,l){var I=this;if(this.currentPage&&this.data){var b=_.Kr(l)||z;this.destinationPageType=b;jh(this.data)==b&&_.gC(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((z==="watch"||z==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.ow.cancelJob(this.renderLoadingStateJobId);_.pG().resolve(_.Af).deactivate(l);_.fI(_.ow,function(){var M=I.viewTransitionManager,x=I.currentPage;
if(M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&x)if(M.registeredLockupThumbnail)M.lockupThumbnailRegisteredFromWatchEndpoint&&_.PW(new _.qB("Lockup thumbnail already registered from watch endpoint."));else{a:{var g=_.k(l,_.zb);if(g==null?0:g.videoId){var G="yt-lockup-view-model ."+_.C3f(g.videoId)+" yt-thumbnail-view-model";x=x.querySelectorAll(G);if(x.length===1){g=x[0];break a}x.length>1?_.PW(new _.qB("Multiple LockupViewModel thumbnails found for videoId: "+g.videoId+
". Selector: "+G)):_.C("web_thumbnail_to_watch_transition_debug")&&_.PW(new _.qB("No LockupViewModel thumbnail found for videoId: "+g.videoId+". Selector: "+G))}g=void 0}g&&(M.registeredLockupThumbnail=g,M.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.vNl(M,g))}});
var v=this.data;this.renderLoadingStateJobId=_.fI(_.ow,function(){hhc(I.viewTransitionManager,function(){if(I.data!=v){var M=BM(I.pagePool,z);I.setActivePage(M)}else I.renderPageLoadingState(z,l);I.renderLoadingStateJobId=0})},150)}};
_.p.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var z=new _.Fx(1);this.currentPage.pageDisposeJobs.forEach(function(l){_.Qy(z,l)});
this.pageDisposeJobsets.set(this.currentPage,z)}};
_.p.flushPageDisposeJobset=function(z){var l=this.pageDisposeJobsets.get(z);l&&(l.flushJobs(),this.pageDisposeJobsets.delete(z))};
_.p.onYtStopOldPlayer=function(z,l){l=l===void 0?!1:l;var I,b=_.Go("kevlar_new_stop_old_player_logic_pages");if(_.C("kevlar_check_current_page_on_stop_old_player")&&(b.length===0||this.currentPage&&b.includes(this.currentPage.is)))if(this.data&&(I=jh(this.data)),jh(z)===I&&this.currentPage&&jh(this.currentPage.data)!==I)var v=_.g5(this.currentPage);else I=jh(this.data),v=BM(this.pagePool,I),v=_.g5(v);else this.data&&(I=jh(this.data),v=BM(this.pagePool,I),v=_.g5(v));if(v)if(z=jh(z),b=BM(this.pagePool,
z),b=_.g5(b),v==b)l&&!_.C("kevlar_disable_preemptive_player_reset")&&v.resetForNewPlayback();else if(l=I==="watch"&&z!=="watch",!l||z==="shorts"||_.fz_()&&!yH4(this.data)&&z!=="yts-products"&&z!="mini_app"&&z!="playables")I=_.pG().resolve(_.Af),l&&I.isMiniplayerActive()&&I.pipController.getWindow()||v.stop()};
_.p.isDifferentBrowseId=function(z,l){z=_.k(z,_.BF);l=_.k(l,_.BF);return(z==null?void 0:z.browseId)!==(l==null?void 0:l.browseId)};
_.p.getPersistentPanelSurface=function(z){switch(z){case "watch":return"WATCH";default:return"APP"}};
_.vP.Object.defineProperties(oS,{template:{configurable:!0,enumerable:!0,get:function(){return p61()}}});
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],oS.prototype,"ytActionHandlerBehavior",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-page-manager"})],oS);_.r(oS,"ytd-page-manager",function(){return p61()},{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var Dn1;var PM=function(){var z=_.q.apply(this,arguments)||this;z.useListItemStyles=_.C("web_list_item_style_for_menu_items");z.systemIcons=_.C("kevlar_system_icons");return z};
_.m(PM,_.q);_.p=PM.prototype;_.p.ready=function(){this.hostElement.addEventListener("tap",_.KJ(this,this.onEndpointTapExtra))};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var z;(z=_.Hy(this.hostElement).querySelector("tp-yt-paper-item"))==null||z.focus()};
_.p.onEndpointTapExtra=function(z){_.gC(this.hostElement,"iron-activate");var l=this.data.navigationEndpoint;l&&_.k(l,_.adS)&&(z.stopPropagation(),_.ZE(this.hostElement,[l],this.hostElement))};
_.p.computeIcon=function(z){return z&&z.iconType?_.Re(z.iconType):""};
_.p.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.C("kevlar_legacy_browsers")&&_.R8(this.hostElement)};
PM.prototype.forceUpdateStylesOnLegacyBrowsers=PM.prototype.forceUpdateStylesOnLegacyBrowsers;PM.prototype.onFocus=PM.prototype.onFocus;_.e([_.t(_.XD),_.w("design:type",Object)],PM.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.nLp.YtConditionalRendererBehavior),_.w("design:type",Object)],PM.prototype,"ytConditionalRendererBehavior",void 0);_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],PM.prototype,"ytEndpointBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],PM.prototype,"data",void 0);_.e([_.X({computed:"computeIcon(data.icon)",value:""}),_.w("design:type",String)],PM.prototype,"icon",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],PM.prototype,"useIcons",void 0);_.e([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.w("design:type",Boolean)],PM.prototype,"hasSeparator",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PM.prototype,"useListItemStyles",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PM.prototype,"systemIcons",void 0);_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PM.prototype,"onFocus",null);_.e([_.By("useIcons","hasSeparator"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PM.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(PM,"ytd-menu-navigation-item-renderer",function(){if(Dn1===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);Dn1=z}z=Dn1;return z},{mode:1});var xns;var O6K=_.lc(_.mY("DOWNLOAD",{},"Download")),gHl=_.lc(_.mY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),GBc=_.lc(_.mY("RETRY",{},"Retry")),NKK=_.lc(_.mY("PAUSE_DOWNLOADING",{},"Pause downloading")),EHq=_.lc(_.mY("RESUME_DOWNLOAD",{},"Resume download")),h6=function(){var z=_.q.apply(this,arguments)||this;z.primaryText=O6K;z.primaryIconType="OFFLINE_DOWNLOAD";z.hasSecondaryContent=!1;z.hasSeparator=!1;z.transferState="TRANSFER_STATE_UNKNOWN";z.isVideoDeletedByUser=!1;z.isHidden=!1;z.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return z};
_.m(h6,_.q);_.p=h6.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){this.primaryEntry.focus()};
_.p.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.p.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.p.getRemoveAction=function(){return"ACTION_REMOVE"};
_.p.sendOfflineAction=function(z){var l=this.data.serviceEndpoint;if(l){var I=_.k(l,_.qv);I&&z&&(I.action=z);this.ytComponentBehavior.resolveCommand(l)}};
_.p.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=O6K,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=O6K;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=GBc;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=gHl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=EHq;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=gHl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
NKK;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=gHl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=gHl;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=O6K,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.p.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.p.isSecondaryEntryHidden=function(z,l){return z?!0:!l};
_.p.computeHasSeparator=function(){var z;return!((z=this.data)==null||!z.hasSeparator)};
h6.prototype.showHideButton=h6.prototype.showHideButton;h6.prototype.onTransferStateChange=h6.prototype.onTransferStateChange;h6.prototype.onFocus=h6.prototype.onFocus;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],h6.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],h6.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],h6.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],h6.prototype,"primaryText",void 0);_.e([_.X(),_.w("design:type",String)],h6.prototype,"primaryIconType",void 0);_.e([_.X(),_.w("design:type",String)],h6.prototype,"primaryAction",void 0);_.e([_.X(),_.w("design:type",Object)],h6.prototype,"secondaryText",void 0);_.e([_.X(),_.w("design:type",String)],h6.prototype,"secondaryIconType",void 0);
_.e([_.X(),_.w("design:type",String)],h6.prototype,"secondaryAction",void 0);_.e([_.X(),_.w("design:type",Object)],h6.prototype,"hasSecondaryContent",void 0);_.e([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.w("design:type",Object)],h6.prototype,"hasSeparator",void 0);_.e([_.X({selector:_.wg,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.w("design:type",String)],h6.prototype,"transferState",void 0);
_.e([_.X({selector:_.qDQ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.w("design:type",Object)],h6.prototype,"isVideoDeletedByUser",void 0);_.e([_.X(),_.w("design:type",Object)],h6.prototype,"isHidden",void 0);_.e([_.X({selector:_.kvQ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.w("design:type",Object)],h6.prototype,"offlineabilityState",void 0);_.e([_.qX("#primary-entry"),_.w("design:type",Object)],h6.prototype,"primaryEntry",void 0);
_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],h6.prototype,"onFocus",null);_.e([_.YE("transferState","isVideoDeletedByUser"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],h6.prototype,"onTransferStateChange",null);_.e([_.YE("offlineabilityState"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],h6.prototype,"showHideButton",null);
_.r(h6,"ytd-menu-service-item-download-renderer",function(){if(xns===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);xns=z}z=xns;return z},{mode:1});var uf1;var sS=function(){var z=_.q.apply(this,arguments)||this;z.useIcons=!1;z.systemIcons=_.C("kevlar_system_icons");z.useListItemStyles=_.C("web_list_item_style_for_menu_items");return z};
_.m(sS,_.q);_.p=sS.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var z;(z=_.Hy(this.hostElement).querySelector("tp-yt-paper-item"))==null||z.focus()};
_.p.onTap=function(){_.EK(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var z=this.data.serviceEndpoint,l=this.data.command;if(z){var I,b=(I=this.data)==null?void 0:I.trackingParams;I=!!_.k(z,_.q4w);b&&I&&_.vF().dispatch(_.GZ({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:b}}));this.ytComponentBehavior.resolveCommand(z)||_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}})}l&&(this.ytComponentBehavior.resolveCommand(l)||_.ZE(this.hostElement,
[l],this.hostElement))};
_.p.computeIcon=function(z){return z&&z.iconType?_.Re(z.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.computeHasSeparator=function(){var z;return!((z=this.data)==null||!z.hasSeparator)};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.C("kevlar_legacy_browsers")&&_.R8(this.hostElement)};
_.p.computeIsSelected=function(){var z;return!((z=this.data)==null||!z.isSelected)};
sS.prototype.forceUpdateStylesOnLegacyBrowsers=sS.prototype.forceUpdateStylesOnLegacyBrowsers;sS.prototype.onTap=sS.prototype.onTap;sS.prototype.onFocus=sS.prototype.onFocus;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],sS.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.nLp.YtConditionalRendererBehavior),_.w("design:type",Object)],sS.prototype,"ytConditionalRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sS.prototype,"data",void 0);_.e([_.X({computed:"computeIcon(data.icon)",value:""}),_.w("design:type",String)],sS.prototype,"icon",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sS.prototype,"useIcons",void 0);
_.e([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sS.prototype,"hasSeparator",void 0);_.e([_.X({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.w("design:type",Boolean)],sS.prototype,"isSelected",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sS.prototype,"systemIcons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],sS.prototype,"useListItemStyles",void 0);
_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sS.prototype,"onFocus",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],sS.prototype,"onTap",null);_.e([_.By("useIcons","hasSeparator"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(sS,"ytd-menu-service-item-renderer",function(){if(uf1===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);uf1=z}z=uf1;return z},{mode:2});var Z6s;var r9=function(){return _.q.apply(this,arguments)||this};
_.m(r9,_.q);_.p=r9.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var z=this;_.IR(this,function(){z.postbox.openDialog();z.focus();_.gC(z.hostElement,"yt-refit")})};
_.p.focus=function(){this.postbox.focus()};
_.p.closePopup=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
_.p.onYtCommentboxDismiss=function(){this.closePopup()};
r9.prototype.onYtCommentboxDismiss=r9.prototype.onYtCommentboxDismiss;r9.prototype.onDataChanged=r9.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],r9.prototype,"data",void 0);_.e([_.X({value:function(){return _.mY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.w("design:type",String)],r9.prototype,"closeButtonAriaLabel",void 0);_.e([_.qX("#postbox"),_.w("design:type",Object)],r9.prototype,"postbox",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],r9.prototype,"onDataChanged",null);_.e([_.tP("yt-commentbox-dismiss"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],r9.prototype,"onYtCommentboxDismiss",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],r9);
_.r(r9,"ytd-backstage-post-dialog-popup-renderer",function(){if(Z6s!==void 0)return Z6s;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Z6s=z},{mode:1});var H6l;var $k=function(){return _.q.apply(this,arguments)||this};
_.m($k,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$k.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],$k);
_.r($k,"ytd-sender-id-section-renderer",function(){if(H6l!==void 0)return H6l;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return H6l=z},{mode:1});var yUc;var fuS;var CvK;var e0=function(){return _.q.apply(this,arguments)||this};
_.m(e0,_.q);e0.prototype.closePopup=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],e0.prototype,"data",void 0);_.e([_.Wy({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],e0);
_.r(e0,"yt-community-post-section-renderer",function(){if(CvK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;fuS===void 0&&(fuS=document.createElement("template"));var b=fuS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);CvK=z}z=CvK;return z},{mode:2});var kBq;var RpW;var mnq;var KLX;var tpc;var BKC;var w9=function(){return _.q.apply(this,arguments)||this};
_.m(w9,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],w9.prototype,"data",void 0);_.e([_.Wy({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],w9);
_.r(w9,"yt-share-start-time-with-context-renderer",function(){if(BKC===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;tpc===void 0&&(tpc=document.createElement("template"));var b=tpc;I.call(l,b.content.cloneNode(!0),z.content.firstChild);BKC=z}z=BKC;return z},{mode:2});var A6=function(){return _.q.apply(this,arguments)||this};
_.m(A6,_.q);A6.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],A6.prototype,"data",void 0);_.e([_.Wy({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],A6);
_.r(A6,"yt-share-panel-title-v15-renderer",function(){if(KLX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;mnq===void 0&&(mnq=document.createElement("template"));var b=mnq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);KLX=z}z=KLX;return z},{mode:2});var WM=function(){return _.q.apply(this,arguments)||this};
_.m(WM,_.q);WM.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],WM.prototype,"data",void 0);_.e([_.Wy({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],WM);
_.r(WM,"yt-share-panel-header-renderer",function(){if(RpW===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;kBq===void 0&&(kBq=document.createElement("template"));var b=kBq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);RpW=z}z=RpW;return z},{mode:2});var X61;var q0c;var nV=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-open-popup-action":"onOpen"};return z};
_.m(nV,_.q);_.p=nV.prototype;_.p.attached=function(){this.onOpen()};
_.p.updateTimeSecs=function(z){this.currentTimeSecs=z};
_.p.computeTimeString=function(z){z=z.toString();var l=Math.floor(Number(z)/3600),I=Math.floor(Number(z)%3600%60);return(l>0?l+":":"")+_.Hc(Math.floor(Number(z)%3600/60),l>0?2:1)+":"+_.Hc(I,2)};
_.p.computeTimeStringA11y=function(z){return _.SDQ({seconds:z})};
_.p.getTimeParam=function(){return rNK(this.timeString)};
_.p.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var z={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},l;_.sE(_.iY(),(l=this.data)==null?void 0:l.trackingParams,z,7)};
_.p.onChangeStartAtTimestamp=function(){for(var z=this.startAtTimestamp.value.split(":"),l=0,I=1,b=z.length-1;b>=0;b--)l+=Number(z[b])*I,I*=60;this.updateTimeSecs(l);this.setTimestamp()};
_.p.onOpen=function(){var z=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var l=_.GS();l?l.getPlayerPromise().then(function(I){I=I.getCurrentTime();z.updateTimeSecs(I)}):zWF()&&this.updateTimeSecs(zWF())};
_.p.setTimestamp=function(){var z=Math.floor(this.currentTimeSecs);_.Gb(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!z,timestamp:z||""}])};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],nV.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nV.prototype,"data",void 0);_.e([_.X({value:!1,notify:!0}),_.w("design:type",Boolean)],nV.prototype,"isStartAtChecked",void 0);_.e([_.X(),_.w("design:type",Number)],nV.prototype,"currentTimeSecs",void 0);
_.e([_.X({computed:"computeTimeString(currentTimeSecs)"}),_.w("design:type",String)],nV.prototype,"timeString",void 0);_.e([_.X({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.w("design:type",String)],nV.prototype,"timeStringA11y",void 0);_.e([_.qX("#start-at-timestamp"),_.w("design:type",Object)],nV.prototype,"startAtTimestamp",void 0);_.e([_.Wy({is:"yt-start-at-renderer",disableElementRegistration:!0})],nV);
_.r(nV,"yt-start-at-renderer",function(){if(q0c===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;X61===void 0&&(X61=document.createElement("template"));var b=X61;I.call(l,b.content.cloneNode(!0),z.content.firstChild);q0c=z}z=q0c;return z},{mode:2});var i6q;var FLW;var Q60=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),Y0W=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),TK8=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var cUc={};cUc.YtBindingExpressionsBehavior={identity:_.df,msg:function(z,l){l=l===void 0?{}:l;return _.mY(z,l,z)},
msgPlural:function(z,l){return _.KM(z,l)},
getMusicIconFromType:function(z){if(_.C("music_web_enable_icon_wil"))z=_.Re(z);else if(Y0W.has(z))z="yt-sys-icons:"+Y0W.get(z);else{var l=Q60.get(z)||_.Re(z).split(":")[1];l=_.DSp(l);var I;z=((I=TK8.get(z))!=null?I:"yt-sys-icons:")+l}return z}};var S08;var dn0;var oHX;var Pv1=document.head,hp0=Pv1.appendChild,s6S;if(oHX===void 0){var rUK=document.createElement("template");_.K(rUK,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');oHX=rUK}s6S=oHX;hp0.call(Pv1,s6S.content);var LV=function(){var z=_.q.apply(this,arguments)||this;z.screenLayer=7;return z};
_.m(LV,_.q);LV.prototype.getScreenLayer=function(){return this.screenLayer};
LV.prototype.onTap=function(z){z&&z.detail&&(z.detail.x||z.detail.y)&&_.Hy(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.uJ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(z=this.getScreenLayer(),_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:z}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.vP.Object.defineProperties(LV.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()}}});
LV.prototype.onTap=LV.prototype.onTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],LV.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LV.prototype,"data",void 0);_.e([_.B("data.title"),_.w("design:type",Object),_.w("design:paramtypes",[])],LV.prototype,"title",null);
_.e([_.B("data.serviceName"),_.w("design:type",String),_.w("design:paramtypes",[])],LV.prototype,"icon",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],LV.prototype,"onTap",null);_.e([_.Wy({is:"yt-share-target-renderer",disableElementRegistration:!0})],LV);
_.r(LV,"yt-share-target-renderer",function(){if(dn0===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;S08===void 0&&(S08=document.createElement("template"));var b=S08;I.call(l,b.content.cloneNode(!0),z.content.firstChild);dn0=z}z=dn0;return z},{mode:2});var $nc;var epX;var US=function(){var z=_.q.apply(this,arguments)||this;z.SHARE_TARGET_WIDTH=70;z.SHARE_TARGET_MARGIN_RIGHT=8;z.PAGE_SCROLL_SPEED=9;z.actionMap={"yt-share-panel-reset-action":"onReset_"};return z};
_.m(US,_.q);_.p=US.prototype;_.p.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.p.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Hy(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Hy(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.p.onReset_=function(){if(_.Hy(this.hostElement).querySelector("#list")){var z=_.Hy(this.hostElement).querySelector("#list");var l=_.Hy(this.hostElement).querySelector("#list");var I=l.offsetLeft,b=l.offsetParent;b||_.Y80(l)!="fixed"||(b=_.e6(l).documentElement);if(b){if(_.Hx&&!_.fO(58)){var v=_.sCA(b);I+=v.left}else Number(_.jb5)>=8&&!(Number(_.jb5)>=9)&&(v=_.sCA(b),I-=v.left);l=_.PK0(b)?b.clientWidth-(I+l.offsetWidth):I}else l=I;DiK(z,l);this.updateScrollButtons_()}};
_.p.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.p.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.p.onScrollWheel_=function(z){z.stopPropagation();z.preventDefault();var l=pc4(_.Hy(this.hostElement).querySelector("#list"));z=Math.abs(z.deltaX)>Math.abs(z.deltaY)?z.deltaX:z.deltaY;DiK(_.Hy(this.hostElement).querySelector("#list"),l+z);this.updateScrollButtons_()};
_.p.smoothScrollByOnePage_=function(z){var l=_.Hy(this.hostElement).querySelector("#list"),I=(Math.floor(l.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,b=pc4(l),v=I*(z?1:-1),M=this.PAGE_SCROLL_SPEED,x=this.updateScrollButtons_.bind(this),g=0,G;(function Z(){g+=M;G=g/I*2;DiK(l,b+v*(G<1?G*G:-G*G+4*G-2));g<I?window.requestAnimationFrame(Z):x()})()};
_.p.updateScrollButtons_=function(){var z=pc4(_.Hy(this.hostElement).querySelector("#list")),l=_.Hy(this.hostElement).querySelector("#list").scrollWidth-_.Hy(this.hostElement).querySelector("#list").clientWidth;_.Hy(this.hostElement).querySelector("#scroll-button-back").hidden=z<=0;_.Hy(this.hostElement).querySelector("#scroll-button-forward").hidden=z>=l};
US.prototype.onScrollWheel_=US.prototype.onScrollWheel_;US.prototype.onDataChanged_=US.prototype.onDataChanged_;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],US.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(cUc.YtBindingExpressionsBehavior),_.w("design:type",Object)],US.prototype,"ytBindingExpressionsBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],US.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],US.prototype,"onDataChanged_",null);_.e([_.tP("wheel"),_.w("design:type",Function),_.w("design:paramtypes",[WheelEvent]),_.w("design:returntype")],US.prototype,"onScrollWheel_",null);
_.e([_.Wy({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],US);
_.r(US,"yt-third-party-share-target-section-renderer",function(){if(epX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;$nc===void 0&&($nc=document.createElement("template"));var b=$nc;I.call(l,b.content.cloneNode(!0),z.content.firstChild);epX=z}z=epX;return z},{mode:2});var aS=function(){return _.q.apply(this,arguments)||this};
_.m(aS,_.q);aS.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],aS.prototype,"data",void 0);_.e([_.Wy({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],aS);
_.r(aS,"yt-third-party-network-section-renderer",function(){if(FLW===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;i6q===void 0&&(i6q=document.createElement("template"));var b=i6q;I.call(l,b.content.cloneNode(!0),z.content.firstChild);FLW=z}z=FLW;return z},{mode:2});_.uO(_.P(function(z){return _.N("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.N("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.N(_.TS,{data:function(){return z.data().firstPartyItems}},{listItemViewModel:_.GA})))},"nh"),"first-party-network-section-view-model",{props:{data:_.mB}});var w6l=(0,_.H24)(_.IG.share,{parentClickTrackingParamsSelector:function(z){return z.parentClickTrackingParams}});var AUS=_.zs(["data:image/svg+xml;charset=UTF-8;base64,",""]),VC=function(){var z=_.q.apply(this,arguments)||this;z.screenLayer=7;z.qrCodeEnabled=_.C("web_enable_sharing_qr_code");z.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return z};
_.m(VC,_.q);_.p=VC.prototype;_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.p.attached=function(){this.JSC$20079_scroller&&(this.JSC$20079_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20079_scroller.attached&&typeof this.JSC$20079_scroller.attached==="function"&&this.JSC$20079_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.p.onDataChanged=function(){var z=this,l;(l=this.data)!=null&&l.contents&&(this.hostElement.setAttribute("links-only","true"),_.CJ(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.IR(this,function(){_.gC(z.hostElement,"yt-refit");z.focusSharePanelHeader()}))};
_.p.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.p.handleSetTimestamp=function(z){var l=this.shortUrl();z.isSet&&(l=_.IW(l,"t",z.timestamp));this.maybeRenderQrCode(l)};
_.p.shortUrl=function(){var z,l=(z=this.data)==null?void 0:z.contents;if(l)for(z=0;z<l.length;z++){var I=void 0,b=void 0;if((I=l[z])==null?0:(b=I.thirdPartyNetworkSection)==null?0:b.copyLinkContainer){var v=b=I=void 0;return(v=_.k((I=l[z])==null?void 0:(b=I.thirdPartyNetworkSection)==null?void 0:b.copyLinkContainer,vYs))==null?void 0:v.shortUrl}}};
_.p.maybeRenderQrCode=function(z){var l=this,I,b,v,M,x,g,G,u,Z;return _.O(function(H){if(H.nextAddress==1){I=_.Hy(l.hostElement).querySelector("#qr-code");if(!l.qrCodeEnabled||!z)return I&&(I.style.display="none"),H.return();b=_.yLS(_.pG().resolve(_.mh),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});v=document.createElement("div");return typeof b==="function"?(b(v),H.jumpTo(2)):H.yield(b,3)}H.nextAddress!=2&&(M=H.yieldResult,M(v));G=(x=v)==null?void 0:(g=x.firstChild)==null?void 0:g.firstChild;
u=document.createElement("img");Z=_.l15(AUS,btoa(G.outerHTML));u.onload=function(){var y={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:u},f=new XyW;Tcy(f,z);cPc(f,!1,SxK(f));var R=f.modules,F=Object.assign({},UlC,y);R=structuredClone(R);y=R.length;var Y,c=(Y=F.canvas)!=null?Y:document.createElement("canvas");Y=F.cellSize;f=F.logo;var d,V=(d=F.logoSize)!=null?d:Math.floor(y/4);y%2!==V%2&&V++;var A=F.logoPadding,W=F.backgroundColor;d=y*Y;var L=
F.width,lH=0;L&&(lH=F.padding,lH=Math.ceil(lH*d/(L-lH*2)),c.style.width=L+"px",c.style.height=L+"px");c.width!==d+lH*2&&(c.width=d+lH*2);c.height!==d+lH*2&&(c.height=d+lH*2);d=c.getContext("2d");F.autoClear&&d.clearRect(0,0,c.width,c.height);d.fillStyle=W;d.beginPath();d.roundRect(0,0,c.width,c.height,F.borderRadius);d.fill();d.save();d.translate(lH,lH);if(f)for(c=Math.floor(y-V)/2-A,A=Math.floor(y+V)/2+A,W=c;W<A;W++)for(L=c;L<A;L++)R[W][L]=!1;for(c=0;c<y;c++)for(A=0;A<y;A++)(c<7&&A<7||c<7&&A>=y-
7||c>=y-7&&A<7)&&(R[c][A]=!1);var Gk;c=(Gk=F.markerColor)!=null?Gk:F.color;oEy(d,0,0,Y,c);oEy(d,Y*(y-7),0,Y,c);oEy(d,0,Y*(y-7),Y,c);switch(F.cellStyle){case 0:Gk=R;R=Gk.length;c=F.cellSize;d.beginPath();for(A=0;A<R;A++)for(W=0;W<R;W++)Gk[A][W]&&d.rect(A*c,W*c,c,c);d.fillStyle=F.color;d.fill();break;case 1:Gk=R;R=Gk.length;c=F.cellSize;A=c*F.relativeCircleSize;d.fillStyle=F.color;d.beginPath();for(F=0;F<R;F++)for(W=0;W<R;W++)Gk[F][W]&&(d.beginPath(),d.ellipse((F+.5)*c,(W+.5)*c,A/2,A/2,0,0,2*Math.PI),
d.fill());d.fill();break;case 2:Gk=R;R=Gk.length;c=F.cellSize;d.fillStyle=F.color;F=[[1,1],[-1,1],[-1,-1],[1,-1]];d.beginPath();for(A=0;A<R;A++)for(W=0;W<R;W++)if(Gk[A][W])d.roundRect(A*c,W*c,c,c,c/2),A+1<R&&Gk[A+1][W]&&d.rect(A*c+c/2,W*c,c,c),W+1<R&&Gk[A][W+1]&&d.rect(A*c,W*c+c/2,c,c);else{L=A*c+c/2;lH=W*c+c/2;for(var uH=0;uH<4;uH++){var Xt=_.D(F[uH]),R1=Xt.next().value;Xt=Xt.next().value;A+R1>=0&&A+R1<R&&W+Xt>=0&&W+Xt<R&&Gk[A+R1][W]&&Gk[A][W+Xt]&&Gk[A+R1][W+Xt]&&(R1=uH*Math.PI/2,Xt=c/2,d.moveTo(L+
Xt*Math.cos(R1),lH+Xt*Math.sin(R1)),d.arc(L,lH,c/2,R1,R1+Math.PI/2,!1),d.lineTo(L+Xt*(Math.cos(R1)-Math.sin(R1)),lH+Xt*(Math.cos(R1)+Math.sin(R1))),d.lineTo(L+Xt*Math.cos(R1),lH+Xt*Math.sin(R1)))}}d.fill()}f&&d.drawImage(f,(y-V)*Y/2,(y-V)*Y/2,V*Y,V*Y);d.restore();I.style.removeProperty("display")};
u.src=_.hT(Z);_.qe(H)})};
_.p.hasCommunityPostRenderer=function(){var z,l,I,b;return!!((z=this.data)==null?0:(l=z.header)==null?0:(I=l.sharePanelHeaderRenderer)==null?0:(b=I.communityPost)==null?0:b.communityPostSectionRenderer)};
_.p.onTapClose=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.p.getScreenLayer=function(){return this.screenLayer};
_.p.logSharePanelPage=function(){if(!_.C("enable_share_panel_navigation_logging_fix_on_web")){var z;if((z=this.data)!=null&&z.trackingParams){z=this.data.trackingParams;var l=this.parentClickTrackingParams;l=l?_.ch(l):void 0;var I=_.iY();_.db(I,21760,l,{layer:7,parentLayer:0});I.graftServerVe(z,void 0,7);_.vF().dispatch(_.GZ({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
VC.prototype.onDataChanged=VC.prototype.onDataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],VC.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],VC.prototype,"data",void 0);_.e([_.X({value:_.mY("SBOX_INAPPROPRIATE_CANCEL")}),_.w("design:type",String)],VC.prototype,"closeButtonAriaLabel",void 0);_.e([_.qX("yt-share-panel-header-renderer"),_.w("design:type",HTMLElement)],VC.prototype,"header",void 0);_.e([_.X({selector:w6l.parentClickTrackingParamsSelector}),_.w("design:type",String)],VC.prototype,"parentClickTrackingParams",void 0);_.e([_.X(),_.w("design:type",Object)],VC.prototype,"qrCodeEnabled",void 0);
_.e([_.qX("#scroller"),_.w("design:type",Object)],VC.prototype,"JSC$20079_scroller",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VC.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],VC);
_.r(VC,"ytd-unified-share-panel-renderer",function(){if(yUc!==void 0)return yUc;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return yUc=z},{mode:1});var WL4;var j0=function(){var z=_.q.apply(this,arguments)||this;z.modernModal=!0;return z};
_.m(j0,_.q);j0.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
j0.prototype.computeShouldHideOldButtons=function(){var z;return!((z=this.data)==null?0:z.button)};
_.vP.Object.defineProperties(j0.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var z,l;return(z=this.data)==null?void 0:(l=z.button)==null?void 0:l.buttonRenderer}}});
_.e([_.X(),_.w("design:type",Object)],j0.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],j0.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],j0.prototype,"modernModal",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],j0.prototype,"buttonRendererData",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],j0);
_.r(j0,"ytd-modal-with-title-and-button-renderer",function(){if(WL4!==void 0)return WL4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return WL4=z},{mode:1});var nHK;var J6=function(){return _.q.apply(this,arguments)||this};
_.m(J6,_.q);J6.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("page-changed",this.page))};
J6.prototype.pageChangedForBinding=J6.prototype.pageChangedForBinding;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],J6.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],J6.prototype,"page",void 0);_.e([_.By("page"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],J6.prototype,"pageChangedForBinding",null);
_.e([_.S({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],J6);
_.r(J6,"ytd-account-item-section-header-renderer",function(){if(nHK!==void 0)return nHK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return nHK=z},{mode:1});var LLS;var zx=function(){return _.q.apply(this,arguments)||this};
_.m(zx,_.q);zx.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"}}}};
zx.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],zx.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zx.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Function)],zx.prototype,"onAccountItemTap",void 0);
_.e([_.S({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],zx);
_.r(zx,"ytd-account-item-section-renderer",function(){if(LLS!==void 0)return LLS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return LLS=z},{mode:1});var Unq;var auW;var lm=function(){return _.q.apply(this,arguments)||this};
_.m(lm,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lm.prototype,"data",void 0);_.e([_.S({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],lm);
_.r(lm,"ytd-accounts-dialog-header-renderer",function(){if(auW!==void 0)return auW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return auW=z},{mode:1});var VpC;var I9=function(){return _.q.apply(this,arguments)||this};
_.m(I9,_.q);I9.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],I9.prototype,"data",void 0);_.e([_.S({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],I9);
_.r(I9,"ytd-google-account-header-renderer",function(){if(VpC!==void 0)return VpC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return VpC=z},{mode:1});var bm=function(){return _.q.apply(this,arguments)||this};
_.m(bm,_.q);bm.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"}}}};
bm.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("page-changed",this.page))};
bm.prototype.pageChangedForBinding=bm.prototype.pageChangedForBinding;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bm.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],bm.prototype,"page",void 0);
_.e([_.By("page"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bm.prototype,"pageChangedForBinding",null);_.e([_.S({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],bm);
_.Hh()(bm,"ytd-account-section-list-renderer",function(){if(Unq===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);Unq=z}z=Unq;return z},{allowedProps:["data"],
mode:1});var j6K;var vN=function(){var z=_.q.apply(this,arguments)||this;z.enableHandlesAccountMenuSwitcher=_.C("enable_handles_account_menu_switcher");return z};
_.m(vN,_.q);vN.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
vN.prototype.dataChanged=vN.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],vN.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],vN.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.e([_.qX("#avatar"),_.w("design:type",Object)],vN.prototype,"avatar",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vN.prototype,"dataChanged",null);_.e([_.S({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],vN);
_.Hh()(vN,"ytd-active-account-header-renderer",function(){if(j6K===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);j6K=z}z=j6K;return z},{allowedProps:["data"],
mode:1});var JU1;var zay;var MH=function(){return _.q.apply(this,arguments)||this};
_.m(MH,_.q);MH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MH.prototype.onBackTap=function(){_.gC(this.hostElement,"yt-menu-back-tapped")};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],MH.prototype,"data",void 0);_.e([_.S({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],MH);
_.Hh()(MH,"ytd-simple-menu-header-renderer",function(){if(zay===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);zay=z}z=zay;return z},{allowedProps:["data"],
mode:2});var lHq;var pL=function(){return _.q.apply(this,arguments)||this};
_.m(pL,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pL.prototype,"data",void 0);_.e([_.S({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],pL);
_.r(pL,"ytd-comment-video-thumbnail-header-renderer",function(){if(lHq!==void 0)return lHq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return lHq=z},{mode:1});var IHy;var DK=function(){return _.q.apply(this,arguments)||this};
_.m(DK,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],DK.prototype,"data",void 0);_.e([_.S({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],DK);
_.r(DK,"ytd-abuse-type-selector-renderer",function(){if(IHy!==void 0)return IHy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return IHy=z},{mode:1});var bzl;var vy1=(0,_.H24)(_.IG.reportChannelAbuse,{isVideoIdSelectedSelector:function(z,l){return l in z.selectedVideoIds},
additionalContextSelector:function(z){return z.additionalContext},
impersonatedChannelUrlSelector:function(z){return z.impersonatedChannelUrl},
reportChannelAbuseSelector:function(z){return z}});var xv=function(){return _.q.apply(this,arguments)||this};
_.m(xv,_.q);xv.prototype.attached=function(){var z=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){z.additionalContextInput.focusTextInput()})};
xv.prototype.handleAdditionalContextChanged=function(){var z=this;_.z4(this,"ytd-report-channel-additional-context-update",function(){z.ytdReduxBehavior.dispatch(_.GZ({type:"ADDITIONAL_CONTEXT_UPDATED",payload:z.additionalContext}))},300)};
xv.prototype.updateAdditionalContextFromBinding=function(z){this.additionalContext=z.detail.value};
xv.prototype.handleAdditionalContextChanged=xv.prototype.handleAdditionalContextChanged;_.e([_.t(_.gU),_.w("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",String)],xv.prototype,"additionalContext",void 0);_.e([_.X({selector:vy1.additionalContextSelector}),_.w("design:type",String)],xv.prototype,"additionalContextRedux",void 0);_.e([_.X(),_.w("design:type",Object)],xv.prototype,"data",void 0);
_.e([_.qX("yt-text-input-form-field-renderer"),_.w("design:type",Object)],xv.prototype,"additionalContextInput",void 0);_.e([_.By("additionalContext"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xv.prototype,"handleAdditionalContextChanged",null);_.e([_.S({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],xv);
_.r(xv,"ytd-report-channel-modal-additional-context-renderer",function(){if(bzl!==void 0)return bzl;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return bzl=z},{mode:1});var MsC;var Oa=function(){var z=_.q.apply(this,arguments)||this;z.nextButtonDisabled=null;z.submitEndpoint=null;z.navigationEndpoint=null;z.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return z};
_.m(Oa,_.q);_.p=Oa.prototype;_.p.computeNextButtonData=function(z,l,I){var b={};l&&(b.navigationEndpoint=l);I&&(b.serviceEndpoint=I);z&&z.buttonRenderer&&_.h7.extend(b,z.buttonRenderer);return b};
_.p.handleReportChannelModalDisableNextButtonAction=function(z){this.setNextButtonIsDisabled(z)};
_.p.handleReportFormEndpointUpdateAction=function(z){this.setNextButtonIsDisabled(!!z.disableSubmitButton);this.resetEndpointData();z.submitEndpoint?this.submitEndpoint=z.submitEndpoint:z.submitNavigationEndpoint&&(this.navigationEndpoint=z.submitNavigationEndpoint)};
_.p.handleSignalActionSubmitForm=function(){var z,l=Object.keys(((z=this.reportChannelAbuseForm)==null?void 0:z.selectedVideoIds)||{}),I;z=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var b;I=((b=this.reportChannelAbuseForm)==null?void 0:b.impersonatedChannelUrl)||"";var v;if((v=this.data)==null?0:v.submitEndpoint){l={impersonated_channel_url:I,text:z,video_ids:l};var M;_.pG().resolve(_.DQ).resolveCommand((M=this.data)==null?void 0:M.submitEndpoint,{form:Object.assign({},
l,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.p.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.p.onYtServiceRequestError=function(z){this.setNextButtonIsDisabled(!1);_.IF(this.hostElement,z.detail.error.message)};
_.p.setNextButtonIsDisabled=function(z){this.set("data.nextButton.buttonRenderer.isDisabled",z)};
_.p.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Oa.prototype.onYtServiceRequestError=Oa.prototype.onYtServiceRequestError;Oa.prototype.onYtServiceRequestCompleted=Oa.prototype.onYtServiceRequestCompleted;_.e([_.X(),_.w("design:type",Object)],Oa.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Oa.prototype,"nextButtonDisabled",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],Oa.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Oa.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Oa.prototype,"submitEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],Oa.prototype,"navigationEndpoint",void 0);_.e([_.X({selector:vy1.reportChannelAbuseSelector}),_.w("design:type",Object)],Oa.prototype,"reportChannelAbuseForm",void 0);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Oa.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Oa.prototype,"onYtServiceRequestError",null);_.e([_.S({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Oa);
_.r(Oa,"ytd-report-channel-modal-footer-renderer",function(){if(MsC!==void 0)return MsC;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return MsC=z},{mode:1});var peW;var gt=function(){var z=_.q.apply(this,arguments)||this;z.boundOnTapDismissButton=function(){z.closePopup()};
return z};
_.m(gt,_.q);gt.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
gt.prototype.handleDataChanged=function(){_.j8(this.hostElement)};
gt.prototype.closePopup=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
gt.prototype.handleDataChanged=gt.prototype.handleDataChanged;_.e([_.X(),_.w("design:type",Object)],gt.prototype,"boundOnTapDismissButton",void 0);_.e([_.X(),_.w("design:type",Object)],gt.prototype,"data",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gt.prototype,"handleDataChanged",null);_.e([_.S({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],gt);
_.r(gt,"ytd-report-channel-modal-header-renderer",function(){if(peW!==void 0)return peW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return peW=z},{mode:1});var DOK;var Gx=function(){var z=_.q.apply(this,arguments)||this;z.autoValidate=!1;z.invalid=!1;z.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return z};
_.m(Gx,_.q);_.p=Gx.prototype;_.p.attached=function(){var z=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){z.channelUrlInput.focusTextInput()})};
_.p.disableNextButton=function(z){_.Gb(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[z])};
_.p.handleImpersonatedChannelUrlChanged=function(){var z=this;this.disableNextButton(!0);this.invalid=!1;_.z4(this,"ytd-report-channel-impersonated-channel-update",function(){var l=z.impersonatedChannelUrl.trim();z.ytdReduxBehavior.dispatch(_.GZ({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:l}));var I;((I=z.data)==null?0:I.submitEndpoint)&&l&&_.pG().resolve(_.DQ).resolveCommand(z.data.submitEndpoint,{form:{impersonated_channel_url:l,element:z.hostElement}})},500)};
_.p.handleModifyReportFormCommand=function(z){this.invalid=this.get("modifyReportFormCommand.action",z)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.p.updateInvalidFromBinding=function(z){this.invalid=z.detail.value};
_.p.updateImpersonatedChannelUrlFromBinding=function(z){this.impersonatedChannelUrl=z.detail.value};
Gx.prototype.handleImpersonatedChannelUrlChanged=Gx.prototype.handleImpersonatedChannelUrlChanged;_.e([_.t(_.gU),_.w("design:type",Object)],Gx.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Gx.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Gx.prototype,"autoValidate",void 0);_.e([_.X(),_.w("design:type",Object)],Gx.prototype,"invalid",void 0);
_.e([_.X(),_.w("design:type",String)],Gx.prototype,"impersonatedChannelUrl",void 0);_.e([_.X({selector:vy1.impersonatedChannelUrlSelector}),_.w("design:type",String)],Gx.prototype,"impersonatedChannelUrlRedux",void 0);_.e([_.X(),_.w("design:type",Object)],Gx.prototype,"data",void 0);_.e([_.qX("#text-input"),_.w("design:type",Object)],Gx.prototype,"channelUrlInput",void 0);
_.e([_.By("impersonatedChannelUrl"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gx.prototype,"handleImpersonatedChannelUrlChanged",null);_.e([_.S({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Gx);
_.r(Gx,"ytd-report-channel-modal-impersonation-renderer",function(){if(DOK!==void 0)return DOK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return DOK=z},{mode:1});var xOy;var Ozy;var NH=function(){return _.q.apply(this,arguments)||this};
_.m(NH,_.q);NH.prototype.onCheckboxToggled=function(z){var l,I,b=(I=_.k((l=this.data)==null?void 0:l.video,_.gb))==null?void 0:I.videoId;b&&this.ytdReduxBehavior.dispatch(z.target.checked?_.GZ({type:"VIDEO_SELECTED",payload:b}):_.GZ({type:"VIDEO_UNSELECTED",payload:b}))};
NH.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.vP.Object.defineProperties(NH.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var z,l=(z=this.data)==null?void 0:z.video;if(!l)return{};var I;z=(I=_.k(l,_.gb))==null?void 0:I.navigationEndpoint;if(!z)return l;_.k(z==null?void 0:z.commandMetadata,_.kB)&&(_.k(z.commandMetadata,_.kB).ignoreNavigation=!0);return l}}});
_.e([_.X({reflectToAttribute:!0,selector:vy1.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.w("design:type",Boolean)],NH.prototype,"checked",void 0);_.e([_.X(),_.w("design:type",Object)],NH.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],NH.prototype,"video",null);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],NH.prototype,"ytdReduxBehavior",void 0);_.e([_.S({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],NH);
_.r(NH,"ytd-selectable-video-renderer",function(){if(Ozy!==void 0)return Ozy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ozy=z},{mode:1});var Ea=function(){var z=_.q.apply(this,arguments)||this;z.monitorScroll=!0;return z};
_.m(Ea,_.q);Ea.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ea.prototype,"data",void 0);_.e([_.S({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Ea);
_.r(Ea,"ytd-selectable-video-list-renderer",function(){if(xOy!==void 0)return xOy;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return xOy=z},{mode:1});var gyF;_.sW("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var um=function(){return _.q.apply(this,arguments)||this};
_.m(um,_.q);um.prototype.onChange=function(z){if(z=_.pJ(z).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.C("kevlar_command_handler_migration_killswitch"))_.ZE(this.hostElement,z,this.hostElement);else{z=_.D(z);for(var l=z.next();!l.done;l=z.next())this.ytComponentBehavior.resolveCommand(l.value)}};
um.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
um.prototype.updateDataToggledFromBinding=function(z){this.set("data.toggled",z.detail.value)};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],um.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],um.prototype,"data",void 0);_.e([_.X({computed:"isEnabled(data)"}),_.w("design:type",Boolean)],um.prototype,"enabled",void 0);_.e([_.S({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],um);
_.r(um,"ytd-toggle-item-renderer",function(){if(gyF!==void 0)return gyF;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return gyF=z},{mode:1});var GXW;var NqC;var EyS;var ZK=function(){var z=_.q.apply(this,arguments)||this;z.setVisible=!1;z.boundOnSubmitButtonClick=function(){z.onSubmitButtonClick()};
z.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return z};
_.m(ZK,_.q);ZK.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}}}}}};
ZK.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ZK.prototype.onSubmitButtonClick=function(){var z;((z=this.data)==null?0:z.submitEndpoint)&&!_.C("enable_ytc_refunds_submit_form_signal_action")&&_.uJ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ZK.prototype.handleSignalActionSubmitForm=function(){var z;((z=this.data)==null?0:z.submitEndpoint)&&_.uJ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.vP.Object.defineProperties(ZK.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.hiddenByDefault)&&!this.setVisible}}});
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ZK.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ZK.prototype,"setVisible",void 0);_.e([_.X(),_.w("design:type",Object)],ZK.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],ZK.prototype,"surveyFeedbackData",void 0);_.e([_.X(),_.w("design:type",Object)],ZK.prototype,"boundOnSubmitButtonClick",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data","setVisible"),_.w("design:type",Object),_.w("design:paramtypes",[])],ZK.prototype,"visibilityHidden",null);_.e([_.Wy({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ZK);
_.r(ZK,"yt-flow-footer-renderer",function(){if(EyS===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;NqC===void 0&&(NqC=document.createElement("template"));var b=NqC;I.call(l,b.content.cloneNode(!0),z.content.firstChild);EyS=z}z=EyS;return z},{mode:2});var uw1=(0,_.H24)(_.IG.ypc,{surveyFeedbackDataSelector:function(z){return z.surveyFeedbackData}});var HN=function(){return _.q.apply(this,arguments)||this};
_.m(HN,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],HN.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],HN.prototype,"data",void 0);_.e([_.X({selector:uw1.surveyFeedbackDataSelector}),_.w("design:type",Object)],HN.prototype,"surveyFeedbackData",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],HN);
_.r(HN,"ytd-flow-footer-renderer",function(){if(GXW!==void 0)return GXW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return GXW=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var ZzK;var Hzy;var yD=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return z};
_.m(yD,_.q);_.p=yD.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ro("multiPageMenuSectionItems")}}};
_.p.handleHideEnclosingAction_=function(z){if(this.data&&this.data.items)for(var l=0;l<this.data.items.length;l++){var I=this.data.items[l].notificationRenderer;if(I&&I.notificationId==z.hideEnclosingAction.notificationId){this.splice("data.items",l,1);_.Gb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.p.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.CJ(this.hostElement,"hidden",!0)};
_.p.updateMenu_=function(z){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&z&&!z.doNotRefreshInbox){z=this.data.continuations;for(var l=0;l<z.length;l++)if(z[l].invalidationContinuationData){var I=void 0;var b=(I=z[l].invalidationContinuationData)==null?void 0:I.continuation;break}z=_.h7.clone(this.data.continuationUpdateEndpoint||null);z.continuation=b;z.click_tracking_params=this.data.trackingParams;_.uJ(this.hostElement,[z])}};
_.p.onServiceRequestCompleted_=function(z,l){if(this.data&&(z=l.actions)){l=0;for(var I=z.length;l<I;l++){var b=_.k(z[l],_.pHw);if(!b)break;if((b.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||b.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&b.continuationItems&&this.data.items){var v=this.data.items.length-1;this.data.items[v].continuationItemRenderer&&(b=["data.items",v,1].concat(b.continuationItems),this.splice.apply(this,b))}}}};
yD.prototype.onServiceRequestCompleted_=yD.prototype.onServiceRequestCompleted_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],yD.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yD.prototype,"data",void 0);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],yD.prototype,"onServiceRequestCompleted_",null);_.e([_.Wy({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],yD);
_.Hh()(yD,"yt-multi-page-menu-section-renderer",function(){if(Hzy===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ZzK===void 0&&(ZzK=document.createElement("template"));var b=ZzK;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Hzy=z}z=Hzy;return z},{allowedProps:["data"],
mode:2});var yqF;var fHc;var fL=function(){return _.q.apply(this,arguments)||this};
_.m(fL,_.q);fL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.vP.Object.defineProperties(fL.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.progress)==null?0:this.data.progress*100}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fL.prototype,"data",void 0);_.e([_.B("data.progress"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],fL.prototype,"showProgressBar",null);
_.e([_.B("data.progress"),_.w("design:type",Number),_.w("design:paramtypes",[])],fL.prototype,"progress",null);_.e([_.Wy({is:"yt-flow-header-renderer",disableElementRegistration:!0})],fL);
_.r(fL,"yt-flow-header-renderer",function(){if(fHc===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;yqF===void 0&&(yqF=document.createElement("template"));var b=yqF;I.call(l,b.content.cloneNode(!0),z.content.firstChild);fHc=z}z=fHc;return z},{mode:2});var CzX;var kXX;var CL=function(){return _.q.apply(this,arguments)||this};
_.m(CL,_.q);CL.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],CL.prototype,"data",void 0);_.e([_.Wy({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],CL);
_.r(CL,"yt-post-confirmation-flow-step-renderer",function(){if(kXX===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;CzX===void 0&&(CzX=document.createElement("template"));var b=CzX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);kXX=z}z=kXX;return z},{mode:2});var Ra0;var mOl;var kv=function(){return _.q.apply(this,arguments)||this};
_.m(kv,_.q);
kv.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kv.prototype,"data",void 0);_.e([_.Wy({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],kv);
_.r(kv,"yt-refund-confirmation-flow-step-renderer",function(){if(mOl===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Ra0===void 0&&(Ra0=document.createElement("template"));var b=Ra0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);mOl=z}z=mOl;return z},{mode:2});var Kus=_.P(function(z){var l=z.data;return _.N("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.N("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.N(_.pK,{data:function(){return{thumbnails:[{url:l().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.N("div",{class:"profileBadgeViewModelContent"},_.N("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return l().badgeDesc}),_.N(_.E,{cond:function(){return l().badgeSubtitle},
then:function(){return _.N("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return l().badgeSubtitle})}})))},"oh");
Kus.idomCompat=!0;var ts1=_.P(function(z){var l=z.data;return _.N("yt-comment-interaction-view-model",{el:_.xl(_.AR(function(){return l().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.N("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return l().onTapA11yLabel},
"on:keydown":_.xI7(),tabindex:0},_.N("div",{class:"ytCommentInteractionViewModelHeader"},_.N("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return l().headerPrefix},' "',function(){return l().videoTitle}),_.N("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.N("div",{class:"ytCommentInteractionViewModelContent"},_.N("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return l().commentContent}),_.N("div",{class:"ytCommentInteractionViewModelChevron"},
_.N(_.pK,{data:function(){return{thumbnails:[{url:l().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ph");
ts1.idomCompat=!0;var Bq4=_.P(function(z){var l=z.data;return _.N("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz}),_.N("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return l().channelName}))},"qh");
Bq4.idomCompat=!0;var QaK=_.P(function(z){var l=z.data;z={};return _.N("yt-profile-info-view-model",{class:_.m9("ytProfileInfoViewModelHost",(z.ytProfileInfoViewModelWithVideoShelf=function(){return l().videosHorizontalShelf},z))},_.N(Xes,{profileInfo:l}),_.N(_.TS,{data:function(){return l().videosHorizontalShelf}},{horizontalShelfViewModel:function(I){return _.N("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.N(_.E_,{data:I.data}))}}),_.N(_.E,{cond:function(){return l().comments},
then:function(){return _.N(q$S,{profileInfo:l})}}),_.N(_.E,{cond:function(){return l().sharedSubscriptionsTitle},
then:function(){return _.N(_.E,{cond:function(){return l().subscriptionsAccessButtonCommand},
then:function(){return _.N(iz0,{profileInfo:l})},
else:function(){return _.N(Fu1,{profileInfo:l})}})}}))},"rh");
QaK.idomCompat=!0;var q$S=_.P(function(z){var l=z.profileInfo;return _.N("div",{class:"ytProfileInfoViewModelActivity"},_.N("div",{class:"ytProfileInfoViewModelHeader"},_.N("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return l().commentsInteractionTitle})),_.N(_.TS,{data:function(){return l().comments}},{commentInteractionViewModel:function(I){return _.N("div",{class:"ytProfileInfoViewModelActivity"},_.N(ts1,{data:I.data}))}}))},"sh"),iz0=_.P(function(z){var l=z.profileInfo;
return _.N("div",{class:"ytProfileInfoViewModelSubSection"},_.N("div",{class:"ytProfileInfoViewModelSubHeader"},_.N(_.cZ,{command:function(){return l().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.N("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return l().sharedSubscriptionsTitle}),_.N("div",null,_.N(_.TS,{data:function(){return l().subscriptionsAccessButton}},{buttonViewModel:_.h4})))),_.N(Y$C,{sharedSubscriptions:function(){var I;
return((I=l().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"th"),Fu1=_.P(function(z){var l=z.profileInfo;
return _.N("div",{class:"ytProfileInfoViewModelSubSection"},_.N("div",{class:"ytProfileInfoViewModelSubHeader"},_.N("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return l().sharedSubscriptionsTitle})),_.N(Y$C,{sharedSubscriptions:function(){var I;
return((I=l().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"uh"),Y$C=_.P(function(z){return _.N("div",{class:"ytProfileInfoViewModelSubs"},_.N(_.TS,{data:z.sharedSubscriptions},{sharedSubscriptionViewModel:function(l){return _.N("div",{class:"ytProfileInfoViewModelSub"},_.N(Bq4,{data:l.data}))}}))},"vh"),Xes=_.P(function(z){var l=z.profileInfo;
return _.N("div",{class:"ytProfileInfoViewModelActivity"},_.N(_.qy,{each:function(){return[l().profileBadgeInfoYtWide,l().profileBadgeInfoChannelWide].filter(function(I){return!!I})},
keyBy:"INDEX"},function(I){return _.N(_.xP,null,_.N("div",{class:"ytProfileInfoViewModelHeader"},_.N("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return I().profileSectionTitle}),_.N("div",{class:"ytProfileInfoViewModelSectionDesc"},_.N("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var b;
return(b=I().commentBadge)==null?void 0:b.commentDesc}),_.N(_.E,{cond:function(){var b;
return(b=I().commentBadge)==null?void 0:b.blackHeartDesc},
then:function(){return _.N("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.N("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.N(_.pK,{data:function(){var b;
return{thumbnails:[{url:(b=I().commentBadge)==null?void 0:b.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.N("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var b;return(b=I().commentBadge)==null?void 0:b.blackHeartDesc}))),_.N("div",{class:"ytProfileInfoViewModelBadge"},_.N(_.qy,{each:function(){return I().badges||[]}},function(b){return _.N(Kus,{data:b})})))}))},"wh");var TqX=_.P(function(z){var l=z.data;var I=function(){return l().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.N("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.N(_.TS,{data:function(){return l().profileIdentityInfo}},{profileIdentityInfoViewModel:function(b){return _.N(_.XWs,{data:b.data,
hideDivider:I,isChannelInfoCard:I})},
profileInfoViewModel:QaK}),_.N(_.TS,{data:function(){return l().profileInfo}},{profileIdentityInfoViewModel:_.XWs,
profileInfoViewModel:QaK}))},"xh");
TqX.idomCompat=!0;_.uO(TqX,"yt-profile-card-view-model",{props:{data:_.mB}});var R9=function(){var z=_.q.apply(this,arguments)||this;z.enableFocusFix=_.C("music_web_enable_focus_on_setting_menu_fix")&&_.rr("IS_MOBILE_WEB",!1);z.covered=!1;z.hideMenu=!1;z.isCommentNotificationOnProfileCard=!1;z.scrolledByTouch=!1;z.disableBackdropFilter=_.C("web_disable_backdrop_filter");z.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return z};
_.m(R9,_.q);_.p=R9.prototype;
_.p.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"}}}};
_.p.ready=function(){var z=this;this.JSC$20180_containerElement.addEventListener("scroll",function(){z.ytRendererBehavior.markDirty()})};
_.p.attributeChanged=function(z,l){z==="menu-style"&&_.Gb(this.hostElement,"yt-multi-page-menu-closed-action",[l])};
_.p.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.KJ(this,this.focusOnStampFinished))};
_.p.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.KJ(this,this.focusOnStampFinished))};
_.p.reset=function(){this.closeJobId&&(_.ow.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.p.focusOnStampFinished=function(z){z.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.KJ(this,this.focusOnStampFinished)),this.doFocus())};
_.p.doFocus=function(){var z=_.OIu(this.sectionsElement);z.length&&z[0].focus()};
_.p.computeMenuStyle=function(z){return z?z.toLowerCase().replace(/_/g,"-"):""};
_.p.computeIsCommentNotificationOnProfileCard=function(z){return _.C("enable_profile_cards_on_comments")&&z.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.p.computeHideMenu=function(z,l){return z||!(!l||!l.showLoadingSpinner)};
_.p.onPopupClosed=function(){this.isPopUpOpen=!1;_.Gb(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.p.onPopupOpened=function(z,l){this.isPopUpOpen=!0;l.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.gC(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.GZ({type:"CHANNEL_REPORT_RESET"})))};
_.p.onYtNavigate=function(z,l){this.shouldCloseOnNavigateEvent(l.endpoint)&&_.Gb(this.hostElement,"yt-close-all-popups-action")};
_.p.handleEndpoint=function(z){z=_.k(z,_.vf);!this.isCommentNotificationOnProfileCard&&z&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20180_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.p.handleActions=function(z){for(var l=0,I=z.length;l<I;l++){var b=_.k(z[l],DQ1);b&&this.handleGetMultiPageMenuAction(b);(b=_.k(z[l],_.pHw))&&this.handleAppendContinuationItemsAction(b)}};
_.p.onServiceRequestSentOrCompleted=function(z,l){z.detail&&z.detail.endpoint&&this.handleEndpoint(z.detail.endpoint);l.actions&&this.handleActions(l.actions)};
_.p.handleGetMultiPageMenuAction=function(z){var l=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Hy(this.submenuElement).appendChild(l);(z=z.menu.multiPageMenuRenderer)&&this.logSubmenu(z);l.data=z;l.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.p.handleAppendContinuationItemsAction=function(z){if(this.data&&z.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&z.continuationItems&&this.data.sections){var l=this.data.sections.length-1;this.data.sections[l].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),l--);if(this.data.sections[l].multiPageMenuNotificationSectionRenderer&&z.continuationItems){z=_.D(z==null?void 0:z.continuationItems);for(var I=z.next();!I.done;I=z.next())if(I=I.value,_.k(I,coX)){var b=
void 0,v=void 0,M=void 0,x=void 0,g=void 0;((b=this)==null?0:(v=b.data)==null?0:(M=v.sections)==null?0:(x=M[l])==null?0:(g=x.multiPageMenuNotificationSectionRenderer)==null?0:g.items)&&this.push("data.sections."+l+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.k(I,_.UR_)||_.k(I,_.MN))this.push("data.sections",I),l++}}};
_.p.logSubmenu=function(z){if(!_.C("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var l=this.ytRendererBehavior.getScreenLayer(),I=_.sU(l),b=_.h8(l);if((z=z.trackingParams)&&I&&b){var v=_.ch(z);_.C("combine_ve_grafts")?_.iY().graftServerVe(z,b,l):_.LM(I,b,v)}}};
_.p.emptySubmenuContainer=function(){for(var z=_.Hy(this.submenuElement);z.firstChild;)z.removeChild(z.firstChild)};
_.p.onMenuBackTap=function(z){_.gC(this.hostElement,"yt-submenu-closed");z.stopPropagation()};
_.p.onSubmenuClosed=function(z){_.pJ(z)!==this.hostElement&&(this.covered=!1,_.gC(this.hostElement,"yt-refit"),z.stopPropagation())};
_.p.onRetrieveLocation=function(z,l){l.hasComments&&(l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),z.stopPropagation())};
_.p.shouldCloseOnNavigateEvent=function(z){if(!z)return!0;if(_.k(z,_.kJz)||_.k(z,_.Rmu)||_.k(z,_.CA_)||_.k(z,_.AK))return!1;var l;return((l=_.k(z==null?void 0:z.commandMetadata,_.kB))==null?0:l.ignoreNavigation)?!1:!0};
_.p.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.p.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.p.refitAfterRender=function(){var z=this;_.IR(this,function(){_.gC(z.hostElement,"yt-refit")})};
R9.prototype.refitAfterRender=R9.prototype.refitAfterRender;R9.prototype.onRetrieveLocation=R9.prototype.onRetrieveLocation;R9.prototype.onSubmenuClosed=R9.prototype.onSubmenuClosed;R9.prototype.onMenuBackTap=R9.prototype.onMenuBackTap;R9.prototype.onServiceRequestSentOrCompleted=R9.prototype.onServiceRequestSentOrCompleted;R9.prototype.onYtNavigate=R9.prototype.onYtNavigate;R9.prototype.onPopupOpened=R9.prototype.onPopupOpened;R9.prototype.onPopupClosed=R9.prototype.onPopupClosed;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],R9.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],R9.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],R9.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],R9.prototype,"enableFocusFix",void 0);_.e([_.X(),_.w("design:type",Object)],R9.prototype,"covered",void 0);_.e([_.X({computed:"computeHideMenu(covered, data)"}),_.w("design:type",Object)],R9.prototype,"hideMenu",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.w("design:type",String)],R9.prototype,"menuStyle",void 0);
_.e([_.X({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.w("design:type",Object)],R9.prototype,"isCommentNotificationOnProfileCard",void 0);_.e([_.X(),_.w("design:type",Boolean)],R9.prototype,"isPopUpOpen",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],R9.prototype,"scrolledByTouch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],R9.prototype,"disableBackdropFilter",void 0);
_.e([_.qX("#sections"),_.w("design:type",HTMLElement)],R9.prototype,"sectionsElement",void 0);_.e([_.qX("#spinner"),_.w("design:type",HTMLElement)],R9.prototype,"spinnerElement",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],R9.prototype,"headerElement",void 0);_.e([_.qX("#container"),_.w("design:type",HTMLElement)],R9.prototype,"JSC$20180_containerElement",void 0);_.e([_.qX("#submenu"),_.w("design:type",HTMLElement)],R9.prototype,"submenuElement",void 0);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R9.prototype,"onPopupClosed",null);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],R9.prototype,"onPopupOpened",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],R9.prototype,"onYtNavigate",null);
_.e([_.tP("yt-service-request-completed"),_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],R9.prototype,"onServiceRequestSentOrCompleted",null);_.e([_.tP("yt-menu-back-tapped"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],R9.prototype,"onMenuBackTap",null);
_.e([_.tP("yt-submenu-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],R9.prototype,"onSubmenuClosed",null);_.e([_.tP("yt-retrieve-location"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],R9.prototype,"onRetrieveLocation",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],R9.prototype,"refitAfterRender",null);
_.e([_.S({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],R9);
_.r(R9,"ytd-multi-page-menu-renderer",function(){if(JU1!==void 0)return JU1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return JU1=z},{mode:1});var cqK;var mp=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return z};
_.m(mp,_.q);_.p=mp.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.computeAccessibility_=function(z){return this.get("accessibility.accessibilityData",z)||null};
_.p.onTap=function(){var z=_.EK(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(z&&z.length===1&&z[0])_.Gb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var l;if((l=this.data)==null?0:l.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.uJ(this.hostElement,[this.data.menuRequest])}}};
_.p.handleTopbarMenuClosedAction=function(z){var l,I;(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(z)===((l=this.data)==null?void 0:(I=l.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.p.toggleIconState=function(z){_.C("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=z)};
_.p.handleUpdateTopbarAvatarAction=function(z){var l;z=(l=_.k(z,zsF))==null?void 0:l.avatarUrl;var I,b;l=(I=this.data)==null?void 0:(b=I.avatar)==null?void 0:b.thumbnails;z&&l&&(I={thumbnails:[Object.assign({},l[0],{url:z})]},this.set("data.avatar",I))};
_.vP.Object.defineProperties(mp.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Hy(this.hostElement).querySelector("#button")}}});
mp.prototype.onTap=mp.prototype.onTap;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],mp.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],mp.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.bTj.YtButtonBehavior),_.w("design:type",Object)],mp.prototype,"ytButtonBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mp.prototype,"data",void 0);
_.e([_.qX("yt-icon-button#button"),_.w("design:type",Object)],mp.prototype,"iconButton",void 0);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mp.prototype,"onTap",null);_.e([_.S({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],mp);
_.Hh()(mp,"ytd-topbar-menu-button-renderer",function(){if(cqK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);cqK=z}z=cqK;return z},{allowedProps:["data"],
mode:1});var S$q;var KL=function(){return _.q.apply(this,arguments)||this};
_.m(KL,_.q);KL.prototype.getSelected=function(){return this.reasons.selected};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],KL.prototype,"data",void 0);_.e([_.qX("#reasons"),_.w("design:type",Object)],KL.prototype,"reasons",void 0);_.e([_.S({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],KL);
_.r(KL,"ytd-ad-feedback-content",function(){if(S$q!==void 0)return S$q;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return S$q=z},{mode:1});var dOs;var t0=function(){return _.q.apply(this,arguments)||this};
_.m(t0,_.q);_.p=t0.prototype;_.p.onPopupOpened=function(){_.Gb(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.p.computeConfirmButton=function(z){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:z.confirmLabel}};
_.p.computeCancelButton=function(z){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:z.cancelLabel}};
_.p.onConfirmTap=function(){var z=this.content.getSelected();z!==void 0&&(z=this.data.reasons[z].endpoint)&&(_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}}),_.Gb(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.p.sendFeedbackSubmitToastAction=function(){var z;(z=this.data)!=null&&z.completionMessage&&_.Gb(this.hostElement,"yt-open-popup-action",[_.pr(this.data.completionMessage),this])};
_.p.onCancelTap=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
t0.prototype.onPopupOpened=t0.prototype.onPopupOpened;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],t0.prototype,"data",void 0);_.e([_.qX("#content"),_.w("design:type",Object)],t0.prototype,"content",void 0);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],t0.prototype,"onPopupOpened",null);
_.e([_.S({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],t0);
_.r(t0,"ytd-ad-feedback-renderer",function(){if(dOs!==void 0)return dOs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return dOs=z},{mode:1});var oyq;var BN=function(){return _.q.apply(this,arguments)||this};
_.m(BN,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],BN.prototype,"data",void 0);_.e([_.S({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],BN);
_.r(BN,"ytd-ad-info-dialog-content",function(){if(oyq!==void 0)return oyq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return oyq=z},{mode:1});var Pz0;var X4=function(){return _.q.apply(this,arguments)||this};
_.m(X4,_.q);X4.prototype.computeConfirmButton=function(z){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:z.confirmLabel}};
X4.prototype.onConfirmTap=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
X4.prototype.computeShouldShowTitle=function(){var z;return!((z=this.data)==null||!z.title)};
X4.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
X4.prototype.onPopupClosed=X4.prototype.onPopupClosed;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],X4.prototype,"data",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],X4.prototype,"onPopupClosed",null);_.e([_.S({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],X4);
_.r(X4,"ytd-ad-info-dialog-renderer",function(){if(Pz0!==void 0)return Pz0;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Pz0=z},{mode:1});var ha8;var qH=function(){var z=_.q.apply(this,arguments)||this;z.actionButtonClass="action-button";z.dismissButtonId="dismiss-button";z.dialogDismiss=!0;return z};
_.m(qH,_.q);_.p=qH.prototype;_.p.computeInPlayer=function(z){return(z==null?void 0:z.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.p.computedLogo=function(){var z,l;return this.isDarkTheme()?(z=this.data)==null?void 0:z.logoDark:(l=this.data)==null?void 0:l.logo};
_.p.computedHeaderImage=function(){var z,l;return this.isDarkTheme()?(z=this.data)==null?void 0:z.headerImageDark:(l=this.data)==null?void 0:l.headerImage};
_.p.computeLogoIconId=function(){var z,l,I,b=(z=this.computedLogo())==null?void 0:(l=z.sources)==null?void 0:(I=l[0])==null?void 0:I.height;return b&&b%31===0?"logo-icon-with-padding":"logo-icon"};
_.p.computeLogoIconHeight=function(){var z,l,I,b=(z=this.computedLogo())==null?void 0:(l=z.sources)==null?void 0:(I=l[0])==null?void 0:I.height;return b&&b%31===0?"31":"24"};
_.p.onPopupClosed=function(){_.pG().resolve(_.wW).dispose()};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.p.onShow=function(){this.inPlayer&&_.RD(6);this.titleElement.focus()};
_.p.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var z=0;z<this.data.impressionEndpoints.length;z++){var l=_.k(this.data.impressionEndpoints[z],_.Ax);l&&this.ytComponentBehavior.resolveCommand(l)}};
_.p.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Gb(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.vP.Object.defineProperties(qH.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var z,l;return!((z=this.data)==null||!z.headerImageDark)&&!((l=this.data)==null||!l.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.secondaryButton)}}});
qH.prototype.onPopupClosed=qH.prototype.onPopupClosed;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.yy.YtVisibilityBehavior),_.w("design:type",Object)],qH.prototype,"ytVisibilityBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qH.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],qH.prototype,"actionButtonClass",void 0);_.e([_.X(),_.w("design:type",Object)],qH.prototype,"dismissButtonId",void 0);_.e([_.X(),_.w("design:type",Object)],qH.prototype,"dialogDismiss",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],qH.prototype,"hasHeaderImage",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],qH.prototype,"hasPremiumButton",null);
_.e([_.X({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.w("design:type",Boolean)],qH.prototype,"inPlayer",void 0);_.e([_.qX("#dismiss-button"),_.w("design:type",HTMLElement)],qH.prototype,"dismissButton",void 0);_.e([_.qX("#title"),_.w("design:type",HTMLElement)],qH.prototype,"titleElement",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],qH.prototype,"onPopupClosed",null);
_.e([_.S({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],qH);
_.r(qH,"ytd-enforcement-message-view-model",function(){if(ha8!==void 0)return ha8;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ha8=z},{mode:1});var say;var rqX;var im=function(){var z=_.q.apply(this,arguments)||this;z.TEST_ONLY={immediateValidation:function(){z.immediateValidation()},
onValidationResponse:function(l){z.onValidationResponse(l)},
onGenerateHandleFromNameResponse:function(l){z.onGenerateHandleFromNameResponse(l)}};
return z};
_.m(im,_.q);_.p=im.prototype;_.p.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.p.validate=function(){this.immediateValidation()};
_.p.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.p.setHandleInputValue=function(z){this.handleDir=this.getHandleDir(z);this.handleInput.value=z;this.validationState={status:"PENDING"};this.immediateValidation()};
_.p.getHandleDir=function(z){var l=z===""&&!1;return(l=_.Lgj.test.call(_.Lgj,z))?"rtl":"ltr"};
_.p.onDataChanged=function(){var z,l;this.handleDir=this.getHandleDir((l=(z=this.data)==null?void 0:z.handle)!=null?l:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var b;((b=this.data)==null?0:b.validateOnInit)&&this.immediateValidation()};
_.p.stopPropagation=function(z){z.stopPropagation()};
_.p.onInput=function(){var z;this.handleDir=this.getHandleDir((z=this.handleInput.value)!=null?z:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.p.onFocusout=function(z){this.handleInput.contains(z.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.p.delayedValidation=function(){var z,l;this.debouncedValidation((l=(z=this.data)==null?void 0:z.validationDelayMs)!=null?l:1E3)};
_.p.immediateValidation=function(){this.debouncedValidation(0)};
_.p.debouncedValidation=function(z){var l=this;_.z4(this,"debouncedValidation",function(){var I,b=l.staticValidation((I=l.handleInput.value)!=null?I:"");if(b!==void 0)l.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:b};else{var v;if((v=l.data)!=null&&v.validateChannelHandleCommand){l.validationState={status:"LOADING"};var M;l.ytComponentBehavior.resolveCommand(l.data.validateChannelHandleCommand,{form:{handle:(M=l.handleInput.value)!=null?M:""},commandController:{onSuccess:function(x,
g){l.onValidationResponse(g)},
onServerError:function(x,g){l.onValidationServerError(g)}}})}else l.handleUnexpectedValidationError(new _.qB("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",l.data))}},z)};
_.p.staticValidation=function(z){var l;if(((l=this.data)==null?void 0:l.channelHandleStaticValidationParams)!==void 0){l=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(z)&&l.validValueRegexpErrorMessage!==void 0)return l.validValueRegexpErrorMessage;if(l.minLength!==void 0&&z.length<l.minLength&&l.minLengthErrorMessage!==void 0)return l.minLengthErrorMessage;if(l.maxLength!==void 0&&z.length>l.maxLength&&l.maxLengthErrorMessage!==void 0)return l.maxLengthErrorMessage}};
_.p.onValidationResponse=function(z){var l=_.k(z.result,l$W);l===void 0?this.handleUnexpectedValidationError(new _.qB("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",z)):this.handleValidationResultRenderer(l)};
_.p.onValidationServerError=function(z){this.handleUnexpectedValidationError(new _.qB("ValidateChannelHandle request failed.",z))};
_.p.handleValidationResultRenderer=function(z){if(z.handle===void 0)this.handleUnexpectedValidationError(new _.qB("ChannelHandleValidationResultRenderer does not contain handle.",z));else if(z.handle===this.handleInput.value)switch(z.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:z.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:z.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.qB("Unrecognized ChannelHandleValidationResult",z));break;default:_.Ap(z.result)}};
_.p.handleUnexpectedValidationError=function(z){var l;this.validationState={status:"UNKNOWN",handle:(l=this.handleInput.value)!=null?l:""};_.PW(z)};
_.p.stopEventPropagation=function(z){z.stopPropagation()};
_.p.updateHandleOnChannelNameInputChange=function(z){if(!this.wasEdited){var l,I;this.debouncedGenerateHandleFromName(z,(I=(l=this.data)==null?void 0:l.validationDelayMs)!=null?I:1E3)}};
_.p.debouncedGenerateHandleFromName=function(z,l){var I=this;_.z4(this,"debouncedGenerateHandleFromName",function(){var b;(b=I.data)!=null&&b.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:z},commandController:{onSuccess:function(v,M){I.onGenerateHandleFromNameResponse(M)},
onServerError:function(v,M){_.PW(new _.qB("Error calling GenerateHandleFromName",M))}}}):_.PW(new _.qB("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},l)};
_.p.onGenerateHandleFromNameResponse=function(z){this.wasEdited||((z=_.k(z.result,I$8))?this.setHandleInputValue(z.handle):_.PW(new _.qB("Invalid results when generate handle from name")))};
_.vP.Object.defineProperties(im.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var z;if(z=this.validationState)z=this.validationState,z=z.status==="OK"||z.status==="UNKNOWN";if(z)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var z;if(((z=this.validationState)==null?void 0:z.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 z,l=(z=this.channelHandleEntity)==null?void 0:z.handleEdit;this.handleDir=this.getHandleDir(l!=null?l:"");return l}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var z,l;if(((z=this.data)==null?void 0:(l=z.channelHandleStaticValidationParams)==null?void 0:l.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
im.prototype.stopEventPropagation=im.prototype.stopEventPropagation;im.prototype.onDataChanged=im.prototype.onDataChanged;im.prototype.applyHandleEdit=im.prototype.applyHandleEdit;im.prototype.onValueChanged=im.prototype.onValueChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],im.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],im.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],im.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Boolean)],im.prototype,"wasEdited",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],im.prototype,"handleDir",void 0);_.e([_.qX("#handle-input"),_.w("design:type",Object)],im.prototype,"handleInput",void 0);_.e([_.X(),_.B("validationState"),_.w("design:type",Object),_.w("design:paramtypes",[])],im.prototype,"value",null);
_.e([_.By("value"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],im.prototype,"onValueChanged",null);_.e([_.B("validationState"),_.w("design:type",Object),_.w("design:paramtypes",[])],im.prototype,"errorIndicator",null);_.e([_.X({reflectToAttribute:!0}),_.B("errorIndicator"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],im.prototype,"borderErrorIndicator",null);
_.e([_.X({selectorArgs:["data.channelHandleEntityKey"],selector:function(z,l){return _.Cc(z.entities,"channelHandle",l)}}),
_.w("design:type",Object)],im.prototype,"channelHandleEntity",void 0);_.e([_.B("channelHandleEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],im.prototype,"handleEdit",null);_.e([_.By("handleEdit"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],im.prototype,"applyHandleEdit",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],im.prototype,"onDataChanged",null);
_.e([_.B("data.channelHandleStaticValidationParams.validValueRegexp"),_.w("design:type",Object),_.w("design:paramtypes",[])],im.prototype,"validValueRegexp",null);_.e([_.tP("yt-service-request-sent"),_.tP("yt-service-request-completed"),_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],im.prototype,"stopEventPropagation",null);_.e([_.S({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],im);
_.r(im,"ytd-channel-handle-input-renderer",function(){if(rqX!==void 0)return rqX;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return rqX=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var F4=function(){var z=_.q.apply(this,arguments)||this;z.data=null;z.errorMessage=null;z.isLoading=!0;z.hideContainer=!1;z.enableNewChannelCreationOnIdForAll=_.C("enable_new_channel_creation_for_id4all");z.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"};z.testOnly={setErrorMessage:function(l){z.resetErrorState();
z.setErrorState(l)}};
return z};
_.m(F4,_.q);_.p=F4.prototype;_.p.created=function(){this.logScreenVe()};
_.p.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")};
_.p.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var z;((z=this.zeroStepErrorMessageEntity)==null?0:z.value)&&this.set("errorMessage",_.lc(this.zeroStepErrorMessageEntity.value))};
_.p.onCreateTap=function(){var z=this;if(this.data&&this.data.channelCreationEndpoint){var l,I;if(!((l=this.data.createChannelButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)){var b;if((b=this.nameInput)!=null&&b.value){this.setLoadingState();var v,M;l=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(v=this.handleInput)==null?void 0:v.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((M=this.handleInput)==null?void 0:M.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:l,commandController:{onSuccess:function(x,g){z.onChannelCreationEndpointSuccess(g);z.obakeImageSource&&_.cW("channelCreatedWithObakeImage",{imageSourceType:z.obakeImageSource})},
onServerError:function(){z.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.p.endpointRequiresServiceRequestAction=function(z){return!!_.k(z,_.SK)||!!_.k(z,zsF)};
_.p.isNavigateAction=function(z){var l;return!!_.k(z,_.Ya)||!!_.k((l=_.k(z,M$X))==null?void 0:l.command,_.Ya)};
_.p.isPlaylistAction=function(z){return!!_.k(z,_.M1)||!!_.k(z,_.GW)};
_.p.onChannelCreationEndpointSuccess=function(z){if(z.createChannelError){var l;this.setErrorState((l=z.createChannelError)==null?void 0:l.errorMessage);this.handleInput&&this.handleInput.validate()}else{z.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(z.navigationEndpoint);if(z.actions){l=_.D(z.actions);for(var I=l.next();!I.done;I=l.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),this.isNavigateAction(I)){var b=void 0;I=_.k((b=
_.k(I,M$X))==null?void 0:b.command,_.Ya);b=void 0;this.isPlaylistAction((b=I)==null?void 0:b.endpoint)&&(_.Gb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),b=void 0,this.ytComponentBehavior.resolveCommand((b=I)==null?void 0:b.endpoint))}}z.actions&&z.actions.some(function(v){var M;return _.k(v,_.Ya)||_.k((M=_.k(v,M$X))==null?void 0:M.command,_.Ya)})||_.Gb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.p.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.p.onCancelTap=function(){var z,l,I;if(!((z=this.data)==null?0:(l=z.cancelButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)){var b,v,M;z=(b=this.data)==null?void 0:(v=b.cancelButton)==null?void 0:(M=v.buttonRenderer)==null?void 0:M.command;if(!z||!_.k(z,_.js7)){var x;this.nameInput&&((x=this.data)==null?0:x.name)&&(this.nameInput.value=this.data.name);var g;this.handleInput&&((g=this.data)==null?0:g.channelHandleInput)&&(this.handleInput.data=_.k(this.data.channelHandleInput,be4));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.p.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.p.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.p.onClearProfilePhotoTap=function(){var z,l,I;((z=this.data)==null?0:(l=z.clearProfilePhotoButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.p.onEditAvatarTap=function(){var z,l,I;((z=this.data)==null?0:(l=z.editAvatarButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.p.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)};
_.p.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var z;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((z=this.data)==null?0:z.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.p.setErrorState=function(z){this.resetErrorState();if(z)this.set("errorMessage",z);else{var l;if((l=this.zeroStepErrorMessageEntity)==null?0:l.value)this.set("errorMessage",_.lc(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.p.fetchImageBlobWithAlr=function(z,l){l=l===void 0?5:l;var I=this,b,v,M,x,g;return _.O(function(G){switch(G.nextAddress){case 1:return G.yield(fetch(z,{method:"GET",mode:"cors"}),2);case 2:b=G.yieldResult;if(b.ok){G.jumpTo(3);break}if(l===0)throw Error();v=I.addJitter(Math.pow(2,5-l));return G.yield(new Promise(function(u){setTimeout(u,v*1E3)}),4);
case 4:return G.return(I.fetchImageBlobWithAlr(z,l-1));case 3:if(!b.headers.get("content-type").split(";").some(function(u){return u.trim()==="text/plain"})){G.jumpTo(5);
break}M=I;x=M.fetchImageBlobWithAlr;return G.yield(b.text(),6);case 6:return G.return(x.call(M,G.yieldResult,l-1));case 5:return G.yield(b.blob(),7);case 7:return g=G.yieldResult,G.return(g)}})};
_.p.addJitter=function(z){var l=z*.3*Math.random();Math.random()>.5&&(l*=-1);return z+l};
_.p.openProfilePicturePicker=function(){var z=this,l,I,b,v,M;return _.O(function(x){if(x.nextAddress==1){l=z.data.scottyUploadUrl;if(!l)return x.return();I=document.documentElement.hasAttribute("dark");b=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");v=xl1(OkW(DlW(zC8(I?"dark":"light")),function(g){var G,u,Z,H,y;return _.O(function(f){if(f.nextAddress==1)return G=_.IW(B7c(new ku(g.photoUrl,!1)).build(),"alr","yes"),z.obakeImageSource=z.pictureChangeSourceToObakeImageSourceType(g.photoSource),
_.RL(f,2),z.setLoadingState(),f.yield(z.fetchImageBlobWithAlr(G),4);if(f.nextAddress!=2)return u=f.yieldResult,Z=new FileReader,Z.addEventListener("load",function(){var R,F,Y,c,d,V;return _.O(function(A){if(A.nextAddress==1){if(u.size>15728640)return z.setErrorState((R=z.data)==null?void 0:R.imageSizeErrorMessage),_.PW(Error("yl")),A.return();if(!Z.result)return z.setErrorState((F=z.data)==null?void 0:F.genericImageLoadErrorMessage),_.PW(Error("zl")),A.return();Y=Z.result;_.RL(A,2);return A.yield($t1(u,
l),4)}if(A.nextAddress!=2)return c=A.yieldResult,z.handleImageUpdatedAction(Y,c),z.resetErrorState(),_.a3(A,0);d=_.XP(A);z.setErrorState((V=z.data)==null?void 0:V.uploadErrorMessage);if(d instanceof Error)_.dE(d);else{var W=new _.qB(JSON.stringify(d));_.dE(W)}_.qe(A)})}),Z.readAsDataURL(u),_.a3(f,0);
H=_.XP(f);z.setErrorState((y=z.data)==null?void 0:y.genericImageLoadErrorMessage);H instanceof Error?_.dE(H):_.oy(new _.qB(JSON.stringify(H)));_.qe(f)})}),function(){z.hideContainer=!1;
document.body.style.colorScheme=b});
_.RL(x,2);return x.yield(v.openPicker(),4)}if(x.nextAddress!=2)return _.a3(x,0);_.XP(x);z.setErrorState((M=z.data)==null?void 0:M.selectImageErrorMessage);_.qe(x)})};
_.p.pictureChangeSourceToObakeImageSourceType=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.p.logScreenVe=function(){_.db(_.iY(),124448)};
_.p.graftServerVe=function(){var z=_.h8(),l,I,b=(l=this.data)==null?void 0:(I=l.loggingDirectives)==null?void 0:I.trackingParams;b&&z&&(this.channelCreationFormVe=_.iY().graftServerVe(b,z),z={visualElement:this.channelCreationFormVe},_.Xa().reportShown(z))};
_.p.isNameChanged=function(z){var l;return((l=this.data)==null?void 0:l.name)!==z};
_.p.isHandleChanged=function(z){var l,I=_.k((l=this.data)==null?void 0:l.channelHandleInput,be4);return I&&z?I.handle!==z:!1};
_.p.handleImageUpdatedAction=function(z,l){this.hideContainer=!1;this.previewDataUrl=z;this.encryptedBlobId=l};
_.p.handleImageSelectionErrorAction=function(z){this.hideContainer=!1;this.setErrorState(z)};
_.p.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.p.showContainer=function(){this.hideContainer=!1};
_.p.maybeWipeZeroStepErrorMessage=function(){var z,l=(z=this.data)==null?void 0:z.zeroStepErrorMessageEntityKey,I;l&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.cU("stringEntity",l,{key:l,value:""}))};
_.vP.Object.defineProperties(F4.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 z;return((z=this.photoThumbnail)==null?0:z.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 z;return!((z=this.data)==null||!z.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.descriptionInfo}}});
F4.prototype.dataChanged=F4.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],F4.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],F4.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],F4.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],F4.prototype,"errorMessage",void 0);
_.e([_.X(),_.w("design:type",Object)],F4.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",String)],F4.prototype,"previewDataUrl",void 0);_.e([_.X(),_.w("design:type",Number)],F4.prototype,"obakeImageSource",void 0);_.e([_.X(),_.w("design:type",Object)],F4.prototype,"hideContainer",void 0);_.e([_.qX("#title-input"),_.w("design:type",Object)],F4.prototype,"nameInput",void 0);_.e([_.qX("#handle-input"),_.w("design:type",Object)],F4.prototype,"handleInput",void 0);
_.e([_.X(),_.w("design:type",Boolean)],F4.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.e([_.X({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.UW}),_.w("design:type",Object)],F4.prototype,"zeroStepErrorMessageEntity",void 0);_.e([_.B("data","data.isDefaultProfilePhoto","previewDataUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],F4.prototype,"photoThumbnail",null);
_.e([_.B("data","data.isDefaultProfilePhoto","photoThumbnail"),_.w("design:type",Object),_.w("design:paramtypes",[])],F4.prototype,"userSetPhotoThumbnailUrl",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],F4.prototype,"hideProfilePhotoButtonLayer",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],F4.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.e([_.YE("data","zeroStepErrorMessageEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],F4.prototype,"dataChanged",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.descriptionInfo","zeroStepErrorMessageEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],F4.prototype,"description",null);_.e([_.S({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],F4);
_.r(F4,"ytd-channel-creation-dialog-renderer",function(){if(say!==void 0)return say;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return say=z},{mode:1});var $OX;var cN=function(){var z=_.q.apply(this,arguments)||this;z.isLoading=!1;z.isDisabled=!1;return z};
_.m(cN,_.q);cN.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
cN.prototype.updateDisabled=function(){var z;this.isDisabled=this.isLoading||((z=this.handleInput)==null?void 0:z.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
cN.prototype.onSaveClick=function(){var z=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var l;((l=this.data)==null?void 0:l.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var I;if((I=z.data)==null?0:I.nextEndpoint){var b;z.ytComponentBehavior.resolveCommand((b=z.data)==null?void 0:b.nextEndpoint)}else z.isLoading=
!1,z.closeDialog()},
onServerError:function(){z.isLoading=!1;z.handleInput.validate();var I;z.errorMessage=(I=z.data)==null?void 0:I.errorMessage}}}))}};
cN.prototype.closeDialog=function(){_.Gb(this.hostElement,"yt-close-popup-action",[this.is])};
cN.prototype.updateDisabled=cN.prototype.updateDisabled;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],cN.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cN.prototype,"data",void 0);_.e([_.qX("#handle-input"),_.w("design:type",Object)],cN.prototype,"handleInput",void 0);_.e([_.By("isLoading"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cN.prototype,"updateDisabled",null);
_.e([_.S({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],cN);
_.r(cN,"ytd-channel-handle-edit-dialog-renderer",function(){if($OX!==void 0)return $OX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $OX=z},{mode:1});var eaW;var SR=function(){return _.q.apply(this,arguments)||this};
_.m(SR,_.q);SR.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],SR.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],SR);
_.r(SR,"ytd-channel-switcher-footer-renderer",function(){if(eaW!==void 0)return eaW;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return eaW=z},{mode:1});var weW;var AqF;var dt=function(){return _.q.apply(this,arguments)||this};
_.m(dt,_.q);dt.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
dt.prototype.onIronChange=dt.prototype.onIronChange;_.e([_.X(),_.w("design:type",Object)],dt.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Function)],dt.prototype,"onDontAskAgainChanged",void 0);_.e([_.qX("#checkbox"),_.w("design:type",Object)],dt.prototype,"checkbox",void 0);_.e([_.tP("iron-change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dt.prototype,"onIronChange",null);
_.e([_.S({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],dt);
_.r(dt,"ytd-identity-prompt-footer-renderer",function(){if(AqF!==void 0)return AqF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return AqF=z},{mode:1});var o9=function(){var z=_.q.apply(this,arguments)||this;z.dontAskAgain=!1;z.showPopup=!1;z.boundDontAskAgainChanged=function(l){z.dontAskAgainChanged(l)};
z.boundOnAccountItemTap=function(l){z.onAccountItemTap(l)};
return z};
_.m(o9,_.q);_.p=o9.prototype;
_.p.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]]"}}}}}};
_.p.ready=function(){var z=this;_.Hy(this.hostElement).querySelector("#container").addEventListener("scroll",function(){z.ytRendererBehavior.markDirty()})};
_.p.dontAskAgainChanged=function(z){this.dontAskAgain=z};
_.p.onAccountItemTap=function(z){if(z){var l={};this.dontAskAgain&&(l={dont_ask_again:this.dontAskAgain});_.z9(z,l)}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.p.redirectOnlyAccount=function(z){z.sections&&z.sections.length>0&&(z=_.k(z.sections[0],_.LT_),(z==null?0:z.contents)&&(z==null?void 0:z.contents.length)<=1?(z=_.V7(window.location.href),(z==null?0:z.next)&&_.SK1(z.next)?_.z9(z.next):_.z9("/")):this.showPopup=!0)};
o9.prototype.dataChanged=o9.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],o9.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Object)],o9.prototype,"dontAskAgain",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],o9.prototype,"showPopup",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Object)],o9.prototype,"boundDontAskAgainChanged",void 0);_.e([_.X({reflectToAttribute:!1}),_.w("design:type",Object)],o9.prototype,"boundOnAccountItemTap",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],o9.prototype,"dataChanged",null);
_.e([_.S({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],o9);
_.r(o9,"ytd-channel-switcher-renderer",function(){if(weW!==void 0)return weW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return weW=z},{mode:1});var WuX;var PN=function(){return _.q.apply(this,arguments)||this};
_.m(PN,_.q);_.vP.Object.defineProperties(PN.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.e([_.X(),_.w("design:type",Object)],PN.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],PN.prototype,"steps",null);_.e([_.S({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],PN);
_.r(PN,"ytd-channel-transfer-stepper-renderer",function(){if(WuX!==void 0)return WuX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return WuX=z},{mode:1});var ny8;var h0=function(){var z=_.q.apply(this,arguments)||this;z.data=null;z.isError=!1;z.isLoading=!1;return z};
_.m(h0,_.q);_.p=h0.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.p.computeProfileName=function(z){return z?z.givenNameValue+" "+z.familyNameValue:""};
_.p.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)};
_.p.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)};
h0.prototype.onYtServiceRequestError=h0.prototype.onYtServiceRequestError;h0.prototype.onYtServiceRequestSent=h0.prototype.onYtServiceRequestSent;h0.prototype.dataChanged=h0.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],h0.prototype,"data",void 0);
_.e([_.X({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.w("design:type",String)],h0.prototype,"profileName",void 0);_.e([_.X(),_.w("design:type",Object)],h0.prototype,"isError",void 0);_.e([_.X(),_.w("design:type",Object)],h0.prototype,"isLoading",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],h0.prototype,"dataChanged",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],h0.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],h0.prototype,"onYtServiceRequestError",null);_.e([_.S({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],h0);
_.r(h0,"ytd-channel-warm-welcome-cont-renderer",function(){if(ny8!==void 0)return ny8;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return ny8=z},{mode:1});var LuF;var sa=function(){var z=_.q.apply(this,arguments)||this;z.data=null;return z};
_.m(sa,_.q);sa.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],sa.prototype,"data",void 0);_.e([_.S({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],sa);
_.r(sa,"ytd-channel-warm-welcome-renderer",function(){if(LuF!==void 0)return LuF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return LuF=z},{mode:1});var UOy;var rt=function(){return _.q.apply(this,arguments)||this};
_.m(rt,_.q);_.vP.Object.defineProperties(rt.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.authorThumbnail)||{}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rt.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],rt.prototype,"thumbnailDetails",null);_.e([_.S({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],rt);
_.r(rt,"ytd-comment-preview-renderer",function(){if(UOy!==void 0)return UOy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return UOy=z},{mode:1});var aHW;var $v=function(){return _.q.apply(this,arguments)||this};
_.m($v,_.q);$v.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vP.Object.defineProperties($v.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.submitButton}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$v.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],$v.prototype,"submitButton",null);_.e([_.S({is:"ytd-notice-renderer",disableElementRegistration:!0})],$v);
_.r($v,"ytd-notice-renderer",function(){if(aHW!==void 0)return aHW;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return aHW=z},{mode:1});var VsC;var eR=function(){return _.q.apply(this,arguments)||this};
_.m(eR,_.q);eR.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],eR.prototype,"data",void 0);_.e([_.S({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],eR);
_.r(eR,"ytd-preview-comment-dialog-content",function(){if(VsC!==void 0)return VsC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return VsC=z},{mode:1});var jaF;var wt=function(){return _.q.apply(this,arguments)||this};
_.m(wt,_.q);wt.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
wt.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],wt.prototype,"data",void 0);_.e([_.S({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],wt);
_.r(wt,"ytd-preview-comment-dialog-renderer",function(){if(jaF!==void 0)return jaF;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return jaF=z},{mode:1});var JqX;var zRS=_.C("web_button_rework")&&_.rr("BUTTON_REWORK")||_.C("web_button_rework_with_live"),A0=function(){var z=_.q.apply(this,arguments)||this;z.closeLabel=_.mY("CLOSE");z.selectedAmountIndex=1;z.privacyCheckboxValue=!1;z.useAmsterdamStyle=zRS;z.amountPlaceholderIndex=-1;return z};
_.m(A0,_.q);_.p=A0.prototype;_.p.onAmountClick=function(z){this.selectedAmountIndex=_.Hy(this.hostElement).querySelector("#amounts").indexForElement(z.currentTarget)};
_.p.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Gb(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.p.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Gb(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Gb(this.hostElement,"yt-close-popup-action",[this.is]);var z;(z=_.GS())==null||z.getPlayerPromise().then(function(l){l.pauseVideo()})}};
_.p.donationCallback=function(z){z.success?(this.hostElement.hasAttribute("live-chat")&&z.response&&z.response.data&&z.response.data.actions&&_.Gb(this.hostElement,"yt-live-chat-open-popup",[z.response.data.actions[0]]),_.Gb(this.hostElement,"yt-close-popup-action",[this.is]),_.Gb(this.hostElement,"yt-live-chat-close-buy-flow")):z.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(z.errorMessageRenderer)};
_.p.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Hy(this.hostElement).querySelector("#custom-amount-input").focus()};
_.p.updateConfirmationDialogTextWithAmount=function(z){var l=this.getConfirmDialogRuns();l&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(l),"text"],this.getFormattedAmount(z))};
_.p.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.p.getAmountPlaceholderIndex=function(z){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=z.findIndex(function(l){return l.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.p.getFormattedAmount=function(z){var l;return(new _.ah(4,((l=this.data)==null?void 0:l.currencyCode)||"")).format(z)};
_.p.isAmountValid=function(z){if(z==="")return!1;z=Number(z)*1E6;var l=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return l&&z<l||I&&z>I?!1:!0};
_.p.setInputError=function(){this.shouldShowValidationError?_.Hy(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Hy(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.p.setInitialCheckboxValue=function(){var z;this.privacyCheckboxValue=!((z=this.data)==null||!z.privacyCheckboxInitialState)};
_.p.updateCustomAmountInputFromBinding=function(z){this.customAmountInput=z.detail.value};
_.p.updatePrivacyCheckboxValueFromBinding=function(z){this.privacyCheckboxValue=z.detail.value};
_.vP.Object.defineProperties(A0.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var z=this,l,I;return((l=this.data)==null?void 0:(I=l.suggestedAmounts)==null?void 0:I.map(function(b,v){return{buttonRenderer:{style:z.selectedAmountIndex===v?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:b.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 z;return!((z=this.data)==null||!z.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 z=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(z&&this.amountMicros!==null)return Object.assign({},z,{ypcGetCartEndpoint:Object.assign({},z.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 z=this.get("confirmLargeAmount",this.data);if(z&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),z}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var z=this.get("donateButton.buttonRenderer",this.data);if(z)return Object.assign({},z,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
A0.prototype.setInitialCheckboxValue=A0.prototype.setInitialCheckboxValue;A0.prototype.setInputError=A0.prototype.setInputError;A0.prototype.setFocusOnCustomAmountInput=A0.prototype.setFocusOnCustomAmountInput;_.e([_.t(O5l),_.w("design:type",Object)],A0.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],A0.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],A0.prototype,"closeLabel",void 0);_.e([_.X(),_.w("design:type",Object)],A0.prototype,"selectedAmountIndex",void 0);_.e([_.X(),_.w("design:type",String)],A0.prototype,"customAmountInput",void 0);_.e([_.X(),_.w("design:type",Object)],A0.prototype,"privacyCheckboxValue",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],A0.prototype,"useAmsterdamStyle",void 0);_.e([_.By("customAmount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],A0.prototype,"setFocusOnCustomAmountInput",null);_.e([_.B("data","selectedAmountIndex"),_.w("design:type",Array),_.w("design:paramtypes",[])],A0.prototype,"suggestedAmountButtons",null);
_.e([_.B("data","selectedAmountIndex"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],A0.prototype,"isCustomAmountSelected",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],A0.prototype,"showPrivacyCheckbox",null);_.e([_.B("data","selectedAmountIndex","customAmount"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"amountMicros",null);
_.e([_.B("isCustomAmountSelected","customAmountInput"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"customAmount",null);_.e([_.B("customAmount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],A0.prototype,"shouldShowValidationError",null);_.e([_.B("customAmount"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],A0.prototype,"isDonateButtonEnabled",null);
_.e([_.B("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"donateCommand",null);_.e([_.B("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"donateCommandWithConfirmation",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"largeDonationThreshold",null);
_.e([_.B("customAmount","donateCommand","amountMicros"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"confirmLargeAmountCommand",null);_.e([_.B("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.w("design:type",Object),_.w("design:paramtypes",[])],A0.prototype,"donateButtonRenderer",null);_.e([_.By("shouldShowValidationError"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],A0.prototype,"setInputError",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],A0.prototype,"setInitialCheckboxValue",null);_.e([_.S({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],A0);
_.r(A0,"ytd-donation-amount-picker-renderer",function(){if(JqX!==void 0)return JqX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return JqX=z},{mode:1});var l74;var WN=function(){return _.q.apply(this,arguments)||this};
_.m(WN,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);_.e([_.X({}),_.w("design:type",Object)],WN.prototype,"data",void 0);_.e([_.S({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],WN);
_.r(WN,"ytd-donation-post-transaction-content",function(){if(l74!==void 0)return l74;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return l74=z},{mode:1});var I7S;var nL=function(){return _.q.apply(this,arguments)||this};
_.m(nL,_.q);nL.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.e([_.X({}),_.w("design:type",Object)],nL.prototype,"data",void 0);_.e([_.S({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],nL);
_.r(nL,"ytd-donation-post-transaction-renderer",function(){if(I7S!==void 0)return I7S;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return I7S=z},{mode:1});var bgK;var vVS;var LL=function(){return _.q.apply(this,arguments)||this};
_.m(LL,_.q);LL.prototype.computeIsStreamingProvider=function(z){return!!z.isStreamingShelf};
LL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],LL.prototype,"data",void 0);_.e([_.X({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],LL.prototype,"isStreamingProvider",void 0);
_.e([_.S({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],LL);
_.r(LL,"ytd-media-provider-renderer",function(){if(vVS!==void 0)return vVS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return vVS=z},{mode:1});var Mzy;var Ua=function(){return _.q.apply(this,arguments)||this};
_.m(Ua,_.q);Ua.prototype.observeLightsourcePalette=function(){var z,l=(z=this.data)==null?void 0:z.vibrantsourceColorPaletteData;l&&_.Pr(this.hostElement,l)};
Ua.prototype.observeLightsourcePalette=Ua.prototype.observeLightsourcePalette;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ua.prototype,"data",void 0);
_.e([_.By("data.vibrantsourceColorPaletteData"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ua.prototype,"observeLightsourcePalette",null);_.e([_.S({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Ua);
_.r(Ua,"ytd-streaming-pop-up-dialog",function(){if(Mzy!==void 0)return Mzy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Mzy=z},{mode:1});var a9=function(){return _.q.apply(this,arguments)||this};
_.m(a9,_.q);a9.prototype.onPopupOpened_=function(){var z;((z=this.data)==null?0:z.serviceEndpoint)&&_.pG().resolve(_.DQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
a9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
a9.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"}}}}};
a9.prototype.onPopupOpened_=a9.prototype.onPopupOpened_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.C6),_.w("design:type",Object)],a9.prototype,"ytContinuationHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],a9.prototype,"data",void 0);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a9.prototype,"onPopupOpened_",null);_.e([_.S({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],a9);
_.r(a9,"ytd-brandconnect-popup-renderer",function(){if(bgK!==void 0)return bgK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return bgK=z},{mode:1});var p9K;var VD=function(){return _.q.apply(this,arguments)||this};
_.m(VD,_.q);_.p=VD.prototype;_.p.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){for(var z=0;z<this.getOptionRenderers().length;z++)this.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+z+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.p.updateSubmitButton=function(z){this.set("data.submitButton.buttonRenderer.isDisabled",!z)};
_.p.computeAlt=function(z){return _.ID(z)};
_.p.onDismissTap=function(){_.Gb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.getOptionRenderers=function(z){return(z=z||this.data)&&z.options?z.options.reduce(function(l,I){I.checkboxSurveyOptionRenderer&&l.push(I.checkboxSurveyOptionRenderer);return l},[]):[]};
_.p.onOptionChange=function(z){var l=this,I=!1;if(z.detail.checked)for(var b=this.getOptionRenderers().find(function(g){return g.value===z.detail.value}),v=this.getOptionRenderers(),M=0;M<v.length;M++){var x=v[M];
this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");x.checked&&((b==null?0:b.isExclusiveOption)?!x.isExclusiveOption:x.isExclusiveOption)?this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1):x.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(g,G){l.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked");return g.checked});
this.updateSubmitButton(I)};
_.p.onSubmitTap=function(){var z=this.getOptionRenderers().filter(function(M){return M.checked});
if(z.length!==0){var l=z.map(function(M){return M.responseEndpoint});
z=[];for(var I=1;I<l.length;I++){var b=void 0,v=(b=_.k(l[I],_.hf))==null?void 0:b.feedbackToken;v&&z.push(v)}l=[l[0]];z.length&&l.push({extra_feedback_tokens:z});_.uJ(this.hostElement,l);_.Gb(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);z=this.data&&this.data.submitActions||[];if(_.C("kevlar_command_handler_migration_killswitch"))_.ZE(this.hostElement,z,this.hostElement);else for(z=_.D(z),l=z.next();!l.done;l=z.next())this.ytComponentBehavior.resolveCommand(l.value)}};
VD.prototype.onOptionChange=VD.prototype.onOptionChange;VD.prototype.dataChanged=VD.prototype.dataChanged;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],VD.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.e([_.t(qqX),_.w("design:type",Object)],VD.prototype,"ytdHatsSurveyBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],VD.prototype,"data",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VD.prototype,"dataChanged",null);
_.e([_.tP("ytd-checkbox-survey-option-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],VD.prototype,"onOptionChange",null);_.e([_.S({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],VD);
_.r(VD,"ytd-checkbox-survey-renderer",function(){if(p9K!==void 0)return p9K;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return p9K=z},{mode:1});var D_8;var x_C;var jR=function(){return _.q.apply(this,arguments)||this};
_.m(jR,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.e([_.t(Xml),_.w("design:type",Object)],jR.prototype,"ytdDismissalReasonBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jR.prototype,"data",void 0);_.e([_.S({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],jR);
_.r(jR,"ytd-dismissal-reason-text-renderer",function(){if(x_C!==void 0)return x_C;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return x_C=z},{mode:1});var OgS;var J0=function(){return _.q.apply(this,arguments)||this};
_.m(J0,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.e([_.t(Xml),_.w("design:type",Object)],J0.prototype,"ytdDismissalReasonBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],J0.prototype,"data",void 0);_.e([_.S({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],J0);
_.r(J0,"ytd-dismissal-reason-video-renderer",function(){if(OgS!==void 0)return OgS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return OgS=z},{mode:1});var zf=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(zf,_.q);_.p=zf.prototype;_.p.created=function(){this.selectedFeedbackTokens=new WS};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.p.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.p.onDismissalReasonSelected=function(z,l){_.gC(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(l);this.hasReasonsSelected=!0};
_.p.onDismissalReasonDeselected=function(z,l){_.gC(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(l);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.p.onCancelTap=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
_.p.onSubmitTap=function(){var z=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(z={feedback_tokens:z},_.pG().resolve(_.DQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},z,{element:this.hostElement})}));_.Gb(this.hostElement,"yt-close-popup-action")};
zf.prototype.onDismissalReasonDeselected=zf.prototype.onDismissalReasonDeselected;zf.prototype.onDismissalReasonSelected=zf.prototype.onDismissalReasonSelected;zf.prototype.dataChanged=zf.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zf.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Boolean)],zf.prototype,"hasReasonsSelected",void 0);_.e([_.X(),_.w("design:type",WS)],zf.prototype,"selectedFeedbackTokens",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],zf.prototype,"darkerDarkTheme",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zf.prototype,"dataChanged",null);
_.e([_.tP("yt-dismissal-reason-selected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,String]),_.w("design:returntype")],zf.prototype,"onDismissalReasonSelected",null);_.e([_.tP("yt-dismissal-reason-deselected"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,String]),_.w("design:returntype")],zf.prototype,"onDismissalReasonDeselected",null);_.e([_.S({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],zf);
_.r(zf,"ytd-dismissal-follow-up-renderer",function(){if(D_8!==void 0)return D_8;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return D_8=z},{mode:1});var gVq;var lB=function(){return _.q.apply(this,arguments)||this};
_.m(lB,_.q);_.p=lB.prototype;_.p.onCheckedChange=function(){this.multiselect||_.gC(this.hostElement,"yt-feedback-single-select-changed");_.Hy(this.hostElement).querySelector("#freeform").focus();_.gC(this.hostElement,"yt-refit")};
_.p.showTextBox=function(z,l){return z&&l};
_.p.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))};
_.p.updateDataCheckedFromBinding=function(z){this.set("data.checked",z.detail.value)};
_.p.updateDataResultTextFromBinding=function(z){this.set("data.resultText",z.detail.value)};
lB.prototype.dataChanged=lB.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lB.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],lB.prototype,"multiselect",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lB.prototype,"dataChanged",null);
_.e([_.S({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],lB);
_.r(lB,"ytd-feedback-option-renderer",function(){if(gVq!==void 0)return gVq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return gVq=z},{mode:1});var G5q;var I4=function(){return _.q.apply(this,arguments)||this};
_.m(I4,_.q);I4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
I4.prototype.onSingleSelectCheckedChanged=function(z){z=_.pJ(z);for(var l=0;l<this.data.options.length;l++)if(z.data!==_.k(this.data.options[l],ess)){var I="data.options."+l+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
I4.prototype.onSingleSelectCheckedChanged=I4.prototype.onSingleSelectCheckedChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],I4.prototype,"data",void 0);
_.e([_.tP("yt-feedback-single-select-changed"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],I4.prototype,"onSingleSelectCheckedChanged",null);_.e([_.S({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],I4);
_.r(I4,"ytd-feedback-question-renderer",function(){if(G5q!==void 0)return G5q;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return G5q=z},{mode:1});var NN8;var bB=function(){return _.q.apply(this,arguments)||this};
_.m(bB,_.q);bB.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
bB.prototype.getSelectedFeedbackResults=function(){for(var z={},l=0;l<this.data.questions.length;l++)for(var I=_.k(this.data.questions[l],$QK),b=0;b<I.options.length;b++){var v=_.k(I.options[b],ess);v&&v.checked&&(z[v.optionKey]=v.resultText)}return z};
bB.prototype.onKeyUp=function(){var z=this;_.CK(_.ow,function(){_.gC(z.hostElement,"yt-refit")});
_.ow.start()};
bB.prototype.submitSurvey=function(){var z=this.getSelectedFeedbackResults();Object.keys(z).length>0&&this.data.submitFeedbackEndpoint&&(z={survey_results:z,is_feedback_token_unencrypted:!0},_.pG().resolve(_.DQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},z,{element:this.hostElement})}))};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bB.prototype,"data",void 0);_.e([_.S({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],bB);
_.r(bB,"ytd-feedback-survey-renderer",function(){if(NN8!==void 0)return NN8;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return NN8=z},{mode:1});var EVc;var uv1;var v4=function(){return _.q.apply(this,arguments)||this};
_.m(v4,_.q);v4.prototype.computeAlt=function(z){return _.ID(z)};
v4.prototype.submitResponse=function(){var z,l;(z=this.data)!=null&&z.feedbackToken&&((l=this.data)==null?void 0:l.nextStageIndex)!==void 0&&(_.EK(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.EK(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
v4.prototype.onClick=function(){this.submitResponse()};
v4.prototype.onClick=v4.prototype.onClick;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],v4.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],v4.prototype,"vertical",void 0);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],v4.prototype,"onClick",null);
_.e([_.S({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],v4);
_.r(v4,"ytd-single-select-answer-option-renderer",function(){if(uv1!==void 0)return uv1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uv1=z},{mode:1});var Zg1;var ML=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return z};
_.m(ML,_.q);ML.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
ML.prototype.dataChanged=function(){var z,l;this.vertical=((l=(z=this.data)==null?void 0:z.answerOrientation)!=null?l:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
ML.prototype.submitFeedback=function(z){var l;((l=this.data)==null?0:l.responseEndpoint)&&z&&_.uJ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[z]}])};
ML.prototype.dataChanged=ML.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],ML.prototype,"eventForwardingBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],ML.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],ML.prototype,"vertical",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ML.prototype,"darkerDarkTheme",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ML.prototype,"dataChanged",null);_.e([_.S({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],ML);
_.r(ML,"ytd-single-select-question-renderer",function(){if(Zg1!==void 0)return Zg1;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Zg1=z},{mode:1});var pH=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return z};
_.m(pH,_.q);_.p=pH.prototype;_.p.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"}}}};
_.p.dataChanged=function(){this.jumpToStage(0)};
_.p.jumpToStage=function(z){var l,I;if((l=this.data)==null?0:(I=l.stages)==null?0:I[z])this.currentStage=this.data.stages[z],this.refitAfterRender()};
_.p.computeAlt=function(z){return _.ID(z)};
_.p.computeSimpleMessage=function(z){var l;return(l=_.k(z,W6l))==null?void 0:l.messageText};
_.p.computeHideDismiss=function(z){var l;return(l=_.k(z,f$4))==null?void 0:l.hideParentDismissButton};
_.p.onDismissTap=function(){_.Gb(this.hostElement,"yt-close-popup-action");_.k(this.currentStage,W6l)||this.data.dismissalEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.refitAfterRender=function(){var z=this;_.IR(this,function(){_.gC(z.hostElement,"yt-refit")})};
pH.prototype.dataChanged=pH.prototype.dataChanged;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],pH.prototype,"eventForwardingBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],pH.prototype,"ytActionHandlerBehavior",void 0);
_.e([_.t(qqX),_.w("design:type",Object)],pH.prototype,"ytdHatsSurveyBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],pH.prototype,"currentStage",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pH.prototype,"dataChanged",null);_.e([_.S({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],pH);
_.r(pH,"ytd-multi-stage-survey-renderer",function(){if(EVc!==void 0)return EVc;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return EVc=z},{mode:1});var HgX;var DT=function(){return _.q.apply(this,arguments)||this};
_.m(DT,_.q);DT.prototype.computeAlt=function(z){return _.ID(z)};
DT.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.pG().resolve(_.DQ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Gb(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.oOK(!1)))};
DT.prototype.onTap=function(){this.vertical&&this.submitResponse()};
DT.prototype.onTap=DT.prototype.onTap;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],DT.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],DT.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],DT.prototype,"vertical",void 0);
_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DT.prototype,"onTap",null);_.e([_.S({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],DT);
_.r(DT,"ytd-single-option-survey-option-renderer",function(){if(HgX!==void 0)return HgX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return HgX=z},{mode:1});var yw0;var xn=function(){return _.q.apply(this,arguments)||this};
_.m(xn,_.q);_.p=xn.prototype;_.p.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){var z,l;this.vertical=(((z=this.data)==null?void 0:(l=z.surveyOrientation)==null?void 0:l.type)||"HORIZONTAL")==="VERTICAL"};
_.p.computeAlt=function(z){return _.ID(z)};
_.p.onDismissTap=function(){_.Gb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.pG().resolve(_.DQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.oOK(!1))};
xn.prototype.dataChanged=xn.prototype.dataChanged;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],xn.prototype,"eventForwardingBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(qqX),_.w("design:type",Object)],xn.prototype,"ytdHatsSurveyBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],xn.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xn.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],xn.prototype,"vertical",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],xn.prototype,"dataChanged",null);_.e([_.S({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],xn);
_.r(xn,"ytd-single-option-survey-renderer",function(){if(yw0!==void 0)return yw0;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return yw0=z},{mode:1});var f7K;var OR=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(OR,_.q);OR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OR.prototype.onDismissTap=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
OR.prototype.onNavigate=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
OR.prototype.onNavigate=OR.prototype.onNavigate;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],OR.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],OR.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],OR.prototype,"darkerDarkTheme",void 0);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],OR.prototype,"onNavigate",null);_.e([_.S({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],OR);
_.r(OR,"ytd-survey-follow-up-renderer",function(){if(f7K!==void 0)return f7K;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return f7K=z},{mode:1});var Cds;var k5X;var RR4;var gQ=function(){var z=_.q.apply(this,arguments)||this;z.polymer2="Element"in Polymer;return z};
_.m(gQ,_.q);_.p=gQ.prototype;_.p.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.p.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.p.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.p.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("minutes-changed",this.minutes))};
_.p.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("seconds-changed",this.seconds))};
_.p.updateMinutesFromBinding=function(z){this.minutes=z.detail.value};
_.p.updateSecondsFromBinding=function(z){this.seconds=z.detail.value};
gQ.prototype.secondsChangedForBinding=gQ.prototype.secondsChangedForBinding;gQ.prototype.minutesChangedForBinding=gQ.prototype.minutesChangedForBinding;gQ.prototype.secondsChanged=gQ.prototype.secondsChanged;_.e([_.X(),_.w("design:type",String)],gQ.prototype,"minutes",void 0);_.e([_.X(),_.w("design:type",String)],gQ.prototype,"seconds",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],gQ.prototype,"polymer2",void 0);
_.e([_.qX("#seconds"),_.w("design:type",Object)],gQ.prototype,"secondsEl",void 0);_.e([_.By("seconds"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gQ.prototype,"secondsChanged",null);_.e([_.By("minutes"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gQ.prototype,"minutesChangedForBinding",null);
_.e([_.By("seconds"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],gQ.prototype,"secondsChangedForBinding",null);_.e([_.Wy({is:"yt-timestamp-input",disableElementRegistration:!0})],gQ);
_.r(gQ,"yt-timestamp-input",function(){if(RR4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;k5X===void 0&&(k5X=document.createElement("template"));var b=k5X;I.call(l,b.content.cloneNode(!0),z.content.firstChild);RR4=z}z=RR4;return z},{mode:2});var Gf=function(){return _.q.apply(this,arguments)||this};
_.m(Gf,_.q);_.p=Gf.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20352_scroller.dialogElement=this.hostElement.parentNode};
_.p.dataChanged=function(){var z=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Nv().getPlayerPromise().then(function(l){l=l.getCurrentTime();z.minutes=Math.floor(l/60).toString();z.seconds=(Math.floor(l)%60).toString()})};
_.p.onTapSubmit=function(z){z.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(z={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(z.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(z.minutes=this.minutes,z.seconds=this.seconds),_.pG().resolve(_.DQ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},z,{element:this.hostElement})}))};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.p.onYtServiceRequestCompleted=function(z,l){l=l.actions;if(Array.isArray(l))for(var I=0,b=l.length;I<b;I++)_.k(l[I],_.WT)&&(z.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(l[I]))};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.p.toggleSubmitButton=function(z){this.set("submitButton.isDisabled",!z)};
_.p.handleInput=function(){var z=this.issueType,l=this.affiliation,I=this.minutes,b=this.seconds;I=!this.showTimestamp||!!I&&!!b;this.toggleSubmitButton(!!this.descriptionText&&!!z&&!!l&&I)};
_.p.computeServiceEndpoint=function(z){return this.get("submitButton.buttonRenderer.serviceEndpoint",z)};
_.p.computeSubmitButton=function(z){(z=this.get("submitButton.buttonRenderer",z))&&(z=Object.assign({},z,{serviceEndpoint:void 0}));return z};
_.p.computeShowTimestamp=function(z){return!!z};
_.p.onValueChangedForIssueType=function(z){this.issueType=z.detail.value};
_.p.onValueChangedForAffiliation=function(z){this.affiliation=z.detail.value};
_.p.updateDescriptionTextFromBinding=function(z){this.descriptionText=z.detail.value};
_.p.updateFullNameTextFromBinding=function(z){this.fullNameText=z.detail.value};
_.p.updateMinutesFromBinding=function(z){this.minutes=z.detail.value};
_.p.updateSecondsFromBinding=function(z){this.seconds=z.detail.value};
Gf.prototype.handleInput=Gf.prototype.handleInput;Gf.prototype.onYtServiceRequestError=Gf.prototype.onYtServiceRequestError;Gf.prototype.onYtServiceRequestCompleted=Gf.prototype.onYtServiceRequestCompleted;Gf.prototype.onYtServiceRequestSent=Gf.prototype.onYtServiceRequestSent;Gf.prototype.dataChanged=Gf.prototype.dataChanged;_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],Gf.prototype,"ytOpenPopupBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.e([_.qX("#scroller"),_.w("design:type",Object)],Gf.prototype,"JSC$20352_scroller",void 0);_.e([_.qX("#description"),_.w("design:type",HTMLInputElement)],Gf.prototype,"description",void 0);_.e([_.qX("#full-name"),_.w("design:type",Object)],Gf.prototype,"fullName",void 0);_.e([_.X(),_.w("design:type",Object)],Gf.prototype,"data",void 0);
_.e([_.X({computed:"computeShowTimestamp(data.timestampLabel)"}),_.w("design:type",Boolean)],Gf.prototype,"showTimestamp",void 0);_.e([_.X({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.w("design:type",Object)],Gf.prototype,"serviceEndpoint",void 0);_.e([_.X({computed:"computeSubmitButton(data)"}),_.w("design:type",Object)],Gf.prototype,"submitButton",void 0);_.e([_.X(),_.w("design:type",String)],Gf.prototype,"descriptionText",void 0);
_.e([_.X(),_.w("design:type",Number)],Gf.prototype,"issueType",void 0);_.e([_.X(),_.w("design:type",Number)],Gf.prototype,"affiliation",void 0);_.e([_.X(),_.w("design:type",String)],Gf.prototype,"fullNameText",void 0);_.e([_.X(),_.w("design:type",String)],Gf.prototype,"minutes",void 0);_.e([_.X(),_.w("design:type",String)],Gf.prototype,"seconds",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gf.prototype,"dataChanged",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],Gf.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],Gf.prototype,"onYtServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Gf.prototype,"onYtServiceRequestError",null);_.e([_.By("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Gf.prototype,"handleInput",null);_.e([_.S({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Gf);
_.r(Gf,"ytd-legal-report-details-form-renderer",function(){if(Cds!==void 0)return Cds;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Cds=z},{mode:1});var m_y;var NL=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return z};
_.m(NL,_.q);NL.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
NL.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var z=this.formRenderer.getForm();z&&this.data.submitEndpoint&&(_.pG().resolve(_.DQ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},z,{element:this.hostElement})}),_.Gb(this.hostElement,"yt-close-popup-action"))}};
NL.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Gb(this.hostElement,"yt-close-popup-action"))};
NL.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
NL.prototype.onPopupClosed=NL.prototype.onPopupClosed;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],NL.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],NL.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);
_.e([_.qX("yt-form-renderer"),_.w("design:type",Object)],NL.prototype,"formRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],NL.prototype,"data",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],NL.prototype,"onPopupClosed",null);_.e([_.S({is:"ytd-form-popup-content",disableElementRegistration:!0})],NL);
_.r(NL,"ytd-form-popup-content",function(){if(m_y!==void 0)return m_y;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return m_y=z},{mode:1});var KdS;var ER=function(){return _.q.apply(this,arguments)||this};
_.m(ER,_.q);ER.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ER.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ER.prototype.onPopupOpened=function(){_.gC(this.hostElement,"yt-invalidate-popup-tabbables")};
ER.prototype.onYtServiceRequestCompleted=function(z,l){l.data&&l.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.gC(this.hostElement,"yt-invalidate-popup-tabbables"))};
ER.prototype.onYtServiceRequestCompleted=ER.prototype.onYtServiceRequestCompleted;ER.prototype.onPopupOpened=ER.prototype.onPopupOpened;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],ER.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],ER.prototype,"data",void 0);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ER.prototype,"onPopupOpened",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],ER.prototype,"onYtServiceRequestCompleted",null);_.e([_.S({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],ER);
_.r(ER,"ytd-form-popup-renderer",function(){if(KdS!==void 0)return KdS;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return KdS=z},{mode:1});var tzl;var uB=function(){var z=_.q.apply(this,arguments)||this;z.isLoading=!1;return z};
_.m(uB,_.q);_.p=uB.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");aE8(this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.isLoading=!0};
_.p.onYtServiceRequestCompleted=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.p.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ZE(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.p.closePopupHandler=function(){this.fireOnCloseActions()};
_.p.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var z=this.get("data.headerImage.thumbnails");z&&(z=_.ZY(z,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+z+")")}};
_.p.onYtNavigate=function(z){(z=_.pJ(z))&&z.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
uB.prototype.onYtNavigate=uB.prototype.onYtNavigate;uB.prototype.onHeaderImageChanged=uB.prototype.onHeaderImageChanged;uB.prototype.closePopupHandler=uB.prototype.closePopupHandler;uB.prototype.onYtServiceRequestCompleted=uB.prototype.onYtServiceRequestCompleted;uB.prototype.onYtServiceRequestSent=uB.prototype.onYtServiceRequestSent;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],uB.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],uB.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],uB.prototype,"isLoading",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLDivElement)],uB.prototype,"header",void 0);_.e([_.qX("#confirm-button"),_.w("design:type",_.zK)],uB.prototype,"confirmButton",void 0);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uB.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uB.prototype,"onYtServiceRequestCompleted",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],uB.prototype,"closePopupHandler",null);_.e([_.By("data.headerImage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uB.prototype,"onHeaderImageChanged",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uB.prototype,"onYtNavigate",null);
_.e([_.S({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],uB);
_.r(uB,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(tzl!==void 0)return tzl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return tzl=z},{mode:1});var BNc;var ZT=function(){var z=_.q.apply(this,arguments)||this;z.isLoading=!1;return z};
_.m(ZT,_.q);_.p=ZT.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);aE8(this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.p.onYtServiceRequestError=function(z){_.IF(this.hostElement,z.detail.error.message)};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Gb(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.p.onDataChanged=function(){this.isLoading=!1;var z=this.get("data.headerImage.thumbnails");z&&(z=_.ZY(z,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+z+")");z=_.sU();var l=_.h8(),I=this.get("data.trackingParams");I&&l&&z&&_.LM(z,l,_.ch(I))};
_.vP.Object.defineProperties(ZT.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
ZT.prototype.onDataChanged=ZT.prototype.onDataChanged;ZT.prototype.onDomChange=ZT.prototype.onDomChange;ZT.prototype.onYtServiceRequestError=ZT.prototype.onYtServiceRequestError;ZT.prototype.onYtServiceRequestCompleted=ZT.prototype.onYtServiceRequestCompleted;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],ZT.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ZT.prototype,"isLoading",void 0);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],ZT.prototype,"hasDescription",null);_.e([_.qX("tp-yt-paper-dialog-scrollable"),_.w("design:type",Object)],ZT.prototype,"scrollable",void 0);_.e([_.qX("#header"),_.w("design:type",HTMLElement)],ZT.prototype,"header",void 0);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ZT.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ZT.prototype,"onYtServiceRequestError",null);
_.e([_.tP("dom-change"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ZT.prototype,"onDomChange",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ZT.prototype,"onDataChanged",null);_.e([_.S({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],ZT);
_.r(ZT,"ytd-gaming-account-link-setting-renderer",function(){if(BNc!==void 0)return BNc;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return BNc=z},{mode:1});var X9W;var qHF;var H4=function(){var z=_.q.apply(this,arguments)||this;z.isHeader=!1;z.getEndpointForm=function(){return L9K(z.data)};
return z};
_.m(H4,_.q);_.p=H4.prototype;_.p.triggerHintActions=function(){var z=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var l=_.EK(z.hostElement,"yt-get-opened-popups-action");!(l&&l.length===1?l[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&z.data.hintActions&&z.guideOpened&&(_.ZE(z.hostElement,z.data.hintActions,z.hostElement),z.data.hintActions=void 0)})};
_.p.getBadgeIconType=function(z){return z&&z.liveBroadcasting?"live":null};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(z){if(this.data.serviceEndpoint){var l;_.C("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.k(this.data.serviceEndpoint,_.FN))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):nlF(this.data.serviceEndpoint,this);z.preventDefault()}else this.data.navigationEndpoint&&!_.DX(_.MX(z),this.hostElement,["A".toString()])&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.p.computeActive=function(z,l){if(!z)return!1;var I=z.navigationEndpoint;z=z.serviceEndpoint;if(!I&&!z||!l)return!1;if(I){z=(z=_.Kr(l))&&["subscriptions","filteredsubscriptions"].includes(z);if(_.k(I,_.BF)&&_.k(l,_.BF)&&!z){var b=_.k(I,_.BF).browseId;l=_.k(l,_.BF).browseId;return b!==void 0&&l!==void 0&&(b===l||b==="VLWL"&&l==="FEwatch_later"||b==="FEwatch_later"&&l==="VLWL")}var v;I=(v=_.k(I.commandMetadata,_.kB))==null?void 0:v.url;l=(b=_.k(l.commandMetadata,_.kB))==null?void 0:b.url;return!(!I||
!l||I!==l&&I!==_.yI(l))}return this.isActiveShortsTab(z,l)};
_.p.isActiveShortsTab=function(z,l){l=!!_.k(l,_.FN)||!!_.k(l,_.pt);return(!!_.k(z,_.FN)||!!_.k(z,_.pt))&&l};
_.p.computeIsPrimary=function(z){return!!z};
_.vP.Object.defineProperties(H4.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 z=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&z)return z}}});
H4.prototype.onTap=H4.prototype.onTap;H4.prototype.onUp=H4.prototype.onUp;H4.prototype.onDown=H4.prototype.onDown;H4.prototype.triggerHintActions=H4.prototype.triggerHintActions;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],H4.prototype,"componentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],H4.prototype,"rendererBehavior",void 0);_.e([_.t(_.qw.YtTaskEmitterBehavior),_.w("design:type",Object)],H4.prototype,"taskEmitterBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],H4.prototype,"activeEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],H4.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],H4.prototype,"guideOpened",void 0);_.e([_.X(),_.w("design:type",String)],H4.prototype,"type",void 0);_.e([_.qX("yt-interaction"),_.w("design:type",Object)],H4.prototype,"interaction",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],H4.prototype,"isHeader",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data","activeEndpoint"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],H4.prototype,"active",null);_.e([_.X({reflectToAttribute:!0}),_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],H4.prototype,"isPrimary",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.count","data.presentationStyle","data.badges.*"),_.w("design:type",String),_.w("design:paramtypes",[])],H4.prototype,"lineEndStyle",null);
_.e([_.B("lineEndStyle"),_.w("design:type",Object),_.w("design:paramtypes",[])],H4.prototype,"ariaLabel",null);_.e([_.By("data.hintActions","guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H4.prototype,"triggerHintActions",null);_.e([_.tP("down"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H4.prototype,"onDown",null);
_.e([_.tP("up"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],H4.prototype,"onUp",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],H4.prototype,"onTap",null);_.e([_.S({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],H4);
_.r(H4,"ytd-guide-entry-renderer",function(){if(qHF!==void 0)return qHF;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return qHF=z},{mode:1});var yB=function(){var z=_.q.apply(this,arguments)||this;z.userToggled=!1;return z};
_.m(yB,_.q);_.p=yB.prototype;_.p.getItemsPath=function(){return"data.expandableItems"};
_.p.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.p.onExpanderItemTapped=function(z){var l=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.C("kevlar_guide_expandable_items_killswitch")&&_.IR(this,function(){_.JW(l.expandableItems)});
z.preventDefault()};
_.p.onCollapserItemTapped=function(z){var l=this;this._setExpanded(!1);this.userToggled=!0;z.preventDefault();this.expandableItems&&!_.C("kevlar_guide_collapsible_items_killswitch")&&_.IR(this,function(){_.j8(l.hostElement)})};
_.p.observeActiveEndpoint=function(){for(var z=this.activeEndpoint,l=this.data,I=this.expandableItems.children,b=0,v=I.length;b<v;b++)I[b].activeEndpoint=z;l&&l.autoExpandCommand&&z&&!this.userToggled&&(I=this.data.autoExpandCommand,l=!(!_.k(I,_.BF)||!_.k(z,_.BF)||_.k(I,_.BF).browseId!==_.k(z,_.BF).browseId),z=this.get("commandMetadata.webCommandMetadata.url",z),I=this.get("commandMetadata.webCommandMetadata.url",I),l=l||!!(z&&I&&z.includes(I)),this._setExpanded(l),l&&this.ytLazyListBehavior.fillRemainingListItems())};
yB.prototype.observeActiveEndpoint=yB.prototype.observeActiveEndpoint;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],yB.prototype,"ytLazyListBehavior",void 0);_.e([_.qX("#expandable-items"),_.w("design:type",HTMLElement)],yB.prototype,"expandableItems",void 0);
_.e([_.X(),_.w("design:type",Object)],yB.prototype,"data",void 0);_.e([_.X({readOnly:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],yB.prototype,"expanded",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],yB.prototype,"initialCount",void 0);_.e([_.X(),_.w("design:type",Object)],yB.prototype,"activeEndpoint",void 0);_.e([_.By("data","activeEndpoint","canShowMore"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],yB.prototype,"observeActiveEndpoint",null);
_.e([_.S({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],yB);
_.r(yB,"ytd-guide-collapsible-entry-renderer",function(){if(X9W!==void 0)return X9W;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return X9W=z},{mode:_.yP("kevlar_poly_si_batch_j079")?1:2});var igl;var FdX;var fH=function(){var z=_.q.apply(this,arguments)||this;z.allVideosCount=0;z.renderGuideEntry=!1;return z};
_.m(fH,_.q);fH.prototype.observeRenderEntry=function(){var z;this.renderGuideEntry=!((z=this.data)==null||!z.alwaysShow)||!!this.allVideosCount};
fH.prototype.observeRenderEntry=fH.prototype.observeRenderEntry;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],fH.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],fH.prototype,"activeEndpoint",void 0);_.e([_.X({selector:_.ZqQ}),_.w("design:type",Object)],fH.prototype,"allVideosCount",void 0);
_.e([_.X(),_.w("design:type",Object)],fH.prototype,"renderGuideEntry",void 0);_.e([_.YE("allVideosCount","data.alwaysShow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fH.prototype,"observeRenderEntry",null);_.e([_.S({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],fH);
_.r(fH,"ytd-guide-downloads-entry-renderer",function(){if(FdX===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);FdX=z}z=FdX;return z},{mode:1});var CH=function(){var z=_.q.apply(this,arguments)||this;z.youtab=_.C("web_enable_youtab");z.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return z};
_.m(CH,_.q);_.p=CH.prototype;_.p.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]]"}}}}}};
_.p.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var z=this.sectionItems.children,l=0,I=z.length;l<I;l++)z[l].activeEndpoint=this.activeEndpoint}};
_.p.handleAddToGuideSectionAction=function(z){var l=_.k(z,xQ8);if(l&&this.data&&(z=l.items,l=l.handlerData,z&&l&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(l)>-1)){l=0;for(var I=z.length;l<I;l++)z[l].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,z[l])}};
_.p.handleRemoveFromGuideSectionAction=function(z){var l=_.k(z,OeK);l&&this.data&&(z=l.guideEntryId,l=l.handlerData,z&&l&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(l)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(z,this.data.sectionItems),this.removeFromCollapsedSection(z,this.data.sectionItems)))};
_.p.removeFromExpandedSection=function(z,l){z=this.getEntryIndexMatchingId(z,l);z!==-1&&this.splice("data.sectionItems",z,1)};
_.p.removeFromCollapsedSection=function(z,l){var I=l.findIndex(function(b){return!!_.k(b,BIs)});
I&&I!==-1&&l[I]&&_.k(l[I],BIs)&&(l=_.k(l[I],BIs).expandableItems)&&(z=this.getEntryIndexMatchingId(z,l),z!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",z,1))};
_.p.getEntryIndexMatchingId=function(z,l){var I=this;return l.findIndex(function(b){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===z})};
CH.prototype.activeEndpointChanged=CH.prototype.activeEndpointChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],CH.prototype,"actionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#section-items"),_.w("design:type",HTMLDivElement)],CH.prototype,"sectionItems",void 0);
_.e([_.qX("#header-entry"),_.w("design:type",Object)],CH.prototype,"headerEntry",void 0);_.e([_.X(),_.w("design:type",Object)],CH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],CH.prototype,"activeEndpoint",void 0);_.e([_.X(),_.w("design:type",Object)],CH.prototype,"youtab",void 0);_.e([_.By("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CH.prototype,"activeEndpointChanged",null);
_.e([_.S({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],CH);
_.r(CH,"ytd-guide-collapsible-section-entry-renderer",function(){if(igl===void 0){var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);igl=z}z=igl;return z},{mode:1});var Q7S;var YHK;var kn=function(){var z=_.q.apply(this,arguments)||this;z.modernTypography=_.C("web_modern_typography");z.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 z};
_.m(kn,_.q);_.p=kn.prototype;
_.p.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}}}}};
_.p.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var z=_.EK(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);z&&z.length===1&&z[0]&&_.EK(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.p.handleResetChannelUnreadCountCommand=function(z){var l;(z=(l=_.k(z,GKl))==null?void 0:l.channelId)&&this.data&&this.data.items&&(l=this.getPathToEntryMatchingId(z))&&(this.set(l+".guideEntryRenderer.count",0),this.set(l+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.handleResetSubscriptionsUnreadDotCommand=function(z){var l,I=(l=_.k(z,NIs))==null?void 0:l.targetId,b;I&&(b=this.data)!=null&&b.items&&(z=this.data.items.findIndex(function(v){var M;return((M=v.guideEntryRenderer)==null?void 0:M.targetId)===I}),z<0||this.set("data.items."+z+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.getPathToEntryMatchingId=function(z){if(this.data&&this.data.items){var l=this.getEntryIndexMatchingId(z,this.data.items);if(l>-1)return"data.items."+l;for(var I=0;I<this.data.items.length;I++)if(l=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(l=this.getEntryIndexMatchingId(z,l),l>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+l}};
_.p.handleAddToGuideSectionAction=function(z){var l=this;if(_.k(z,xQ8)){var I=_.k(z,xQ8).items;z=_.k(z,xQ8).handlerData;var b,v;if(I&&z&&((b=this.data)==null?void 0:(v=b.handlerDatas)==null?void 0:v.indexOf(z))>-1){I=I.filter(function(x){return(x=l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",x))&&!l.isGuideItemPresent(x)});
var M;if(z==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((M=this.data)==null?0:M.items)&&(b=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),b>-1)){this.splice.apply(this,["data.items",b+1,0].concat(_.ht(I)));return}this.unshift.apply(this,["data.items"].concat(_.ht(I)))}}};
_.p.isGuideItemPresent=function(z){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(z,this.data.items)!==-1)return!0;var l=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((l==null?0:l.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(z,l.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.p.getEntryIndexMatchingId=function(z,l){var I=this;return l.findIndex(function(b){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===z})};
_.p.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(z,l){var I=this;return l.findIndex(function(b){return I.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===z})};
_.p.handleRemoveFromGuideSectionAction=function(z){if(_.k(z,OeK)){var l=_.k(z,OeK).guideEntryId;z=_.k(z,OeK).handlerData;var I,b;l&&z&&((I=this.data)==null?void 0:(b=I.handlerDatas)==null?void 0:b.indexOf(z))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(l,this.data.items),this.removeFromCollapsedSection(l,this.data.items))}};
_.p.removeFromExpandedSection=function(z,l){z=this.getEntryIndexMatchingId(z,l);z!==-1&&this.splice("data.items",z,1)};
_.p.removeFromCollapsedSection=function(z,l){var I=l.findIndex(function(b){return!!b.guideCollapsibleEntryRenderer});
I!==-1&&(l=l[I].guideCollapsibleEntryRenderer.expandableItems)&&(z=this.getEntryIndexMatchingId(z,l),z!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",z,1))};
_.p.activeEndpointChanged=function(){for(var z=_.Hy(this.hostElement).querySelector("#items").children,l=0,I=z.length;l<I;l++)z[l].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.guideOpenedChanged=function(){for(var z=_.Hy(this.hostElement).querySelector("#items").children,l=0,I=z.length;l<I;l++)z[l].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
kn.prototype.guideOpenedChanged=kn.prototype.guideOpenedChanged;kn.prototype.activeEndpointChanged=kn.prototype.activeEndpointChanged;kn.prototype.persistentGuideChanged=kn.prototype.persistentGuideChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],kn.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],kn.prototype,"ytLazyListBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],kn.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],kn.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],kn.prototype,"modernTypography",void 0);_.e([_.X(),_.w("design:type",String)],kn.prototype,"type",void 0);_.e([_.X({value:20}),_.w("design:type",Number)],kn.prototype,"initialCount",void 0);_.e([_.X({value:10}),_.w("design:type",Number)],kn.prototype,"targetFramerate",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],kn.prototype,"autoFill",void 0);_.e([_.X({value:50}),_.w("design:type",Number)],kn.prototype,"renderDelay",void 0);
_.e([_.By("guidePersistentAndVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kn.prototype,"persistentGuideChanged",null);_.e([_.YE("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kn.prototype,"activeEndpointChanged",null);_.e([_.YE("guideOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],kn.prototype,"guideOpenedChanged",null);
_.e([_.S({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],kn);
_.r(kn,"ytd-guide-section-renderer",function(){if(YHK!==void 0)return YHK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YHK=z},{mode:_.yP("kevlar_poly_si_batch_j073")?1:2});var TNC;var R4=function(){return _.q.apply(this,arguments)||this};
_.m(R4,_.q);_.vP.Object.defineProperties(R4.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],R4.prototype,"rendererBehaviors",void 0);_.e([_.X(),_.w("design:type",Object)],R4.prototype,"data",void 0);_.e([_.X(),_.B("data.signInButton.buttonRenderer.style"),_.w("design:type",Object),_.w("design:paramtypes",[])],R4.prototype,"alignByText",null);_.e([_.S({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],R4);
_.r(R4,"ytd-guide-signin-promo-renderer",function(){if(TNC===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);TNC=z}z=TNC;return z},{mode:1});var mb=function(){var z=_.q.apply(this,arguments)||this;z.showFooter=!1;return z};
_.m(mb,_.q);mb.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}}}}};
mb.prototype.attached=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1){l=_.pG().resolve(_.MB(_.ZW));if(!l)return I.jumpTo(0);l.setGuideData(z.hostElement);return I.yield(0,3)}z.ytLazyListBehavior.initialCount=2;return I.return()})};
mb.prototype.onMouseExit=function(){_.C("web_guide_hover_expansion")&&_.EK(this.hostElement,"yt-guide-mouseleaved",[])};
mb.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
mb.prototype.dataChanged=mb.prototype.dataChanged;mb.prototype.onMouseExit=mb.prototype.onMouseExit;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],mb.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Yj.YtLazyListBehavior),_.w("design:type",Object)],mb.prototype,"ytLazyListBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mb.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],mb.prototype,"showFooter",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],mb.prototype,"autoFill",void 0);_.e([_.tP("mouseleave"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mb.prototype,"onMouseExit",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],mb.prototype,"dataChanged",null);_.e([_.S({is:"ytd-guide-renderer",disableElementRegistration:!0})],mb);
_.r(mb,"ytd-guide-renderer",function(){if(Q7S!==void 0)return Q7S;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Q7S=z},{mode:_.yP("kevlar_poly_si_batch_j073")?1:2});var cwX;var KH=function(){var z=_.q.apply(this,arguments)||this;z.systemIcons=_.C("kevlar_system_icons");z.frostedGlass=_.C("web_frosted_glass");z.getEndpointForm=function(){return L9K(z.data)};
return z};
_.m(KH,_.q);_.p=KH.prototype;_.p.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.p.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.ID(this.data.formattedTitle))};
_.p.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(z){if(this.data.serviceEndpoint){var l;_.C("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.k(this.data.serviceEndpoint,_.FN))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):nlF(this.data.serviceEndpoint,this);z.preventDefault()}else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.DX(_.MX(z),this.hostElement,["A".toString()])&&_.gC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.p.computeActive=function(z,l){if(!z)return!1;var I=z.navigationEndpoint;z=z.serviceEndpoint;if(!I&&!z||!l)return!1;if(I){z=_.k(I,_.BF);var b=_.k(l,_.BF);if(z&&b)return z.browseId===b.browseId&&z.params===b.params;var v;I=(v=_.k(I.commandMetadata,_.kB))==null?void 0:v.url;var M;l=(M=_.k(l.commandMetadata,_.kB))==null?void 0:M.url;return!(!I||!l||I!==l&&I!==_.yI(l))}return this.isActiveShortsTab(z,l)};
_.p.isActiveShortsTab=function(z,l){l=!!_.k(l,_.FN)||!!_.k(l,_.pt);return(!!_.k(z,_.FN)||!!_.k(z,_.pt))&&l};
_.p.computeTitle=function(z,l){return l?"":_.ID(z)};
_.vP.Object.defineProperties(KH.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
KH.prototype.onTap=KH.prototype.onTap;KH.prototype.onUp=KH.prototype.onUp;KH.prototype.onDown=KH.prototype.onDown;KH.prototype.onActiveStateChange=KH.prototype.onActiveStateChange;KH.prototype.dataChanged=KH.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],KH.prototype,"ytComponentBehavior",void 0);
_.e([_.t(_.jF),_.w("design:type",Object)],KH.prototype,"ironButtonState",void 0);_.e([_.X(),_.w("design:type",Object)],KH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],KH.prototype,"activeEndpoint",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],KH.prototype,"noLabels",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.w("design:type",Boolean)],KH.prototype,"isActive",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],KH.prototype,"systemIcons",void 0);_.e([_.qX("yt-interaction"),_.w("design:type",Object)],KH.prototype,"interaction",void 0);_.e([_.B("isActive"),_.w("design:type",Object),_.w("design:paramtypes",[])],KH.prototype,"ariaSelected",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],KH.prototype,"frostedGlass",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KH.prototype,"dataChanged",null);_.e([_.By("isActive"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KH.prototype,"onActiveStateChange",null);_.e([_.tP("down"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KH.prototype,"onDown",null);
_.e([_.tP("up"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],KH.prototype,"onUp",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],KH.prototype,"onTap",null);_.e([_.S({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],KH);
_.r(KH,"ytd-mini-guide-entry-renderer",function(){if(cwX!==void 0)return cwX;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return cwX=z},{mode:_.yP("kevlar_poly_si_batch_j063")?1:2});var SHK;var tu=function(){var z=_.q.apply(this,arguments)||this;z.allVideosCount=0;z.noLabels=_.C("kevlar_mini_guide_no_labels")||_.C("kevlar_modern_mini_guide");z.frostedGlass=_.C("web_frosted_glass");return z};
_.m(tu,_.q);_.p=tu.prototype;_.p.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.p.onMouseEnter=function(){_.C("web_guide_hover_expansion")&&_.EK(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.p.visibleChanged=function(){if(this.visible&&!this.data){var z=_.pG().resolve(_.MB(_.ZW));z&&z.setGuideData(this.hostElement)}};
_.p.dataChanged=function(){var z=[],l;if((l=this.data)!=null&&l.items){l=_.D(this.data.items);for(var I=l.next();!I.done;I=l.next()){I=I.value;var b=void 0;if((b=I.guideSectionRenderer)==null?0:b.items)for(b=void 0,I=_.D((b=I.guideSectionRenderer)==null?void 0:b.items),b=I.next();!b.done;b=I.next())if(b=b.value,b.guideEntryRenderer)b=b.guideEntryRenderer,b.isPrimary&&z.push({guideEntryRenderer:b});else if(b.guideCollapsibleSectionEntryRenderer){var v=void 0;((v=_.k(b.guideCollapsibleSectionEntryRenderer.headerEntry,
La))==null?0:v.isPrimary)&&z.push({guideEntryRenderer:_.k(b.guideCollapsibleSectionEntryRenderer.headerEntry,La)});if(b=b.guideCollapsibleSectionEntryRenderer.sectionItems)for(b=_.D(b),v=b.next();!v.done;v=b.next()){var M=v.value;v=_.k(M,XL0);var x=void 0;((x=_.k(M,La))==null?0:x.isPrimary)?z.push({guideEntryRenderer:_.k(M,La)}):v&&(M=void 0,_.k((M=v)==null?void 0:M.entryRenderer,La)&&(v.alwaysShow||this.allVideosCount)&&z.push({guideEntryRenderer:_.k(v.entryRenderer,La)}))}}}}this.miniGuideItems=
z};
_.p.activeEndpointChanged=function(){for(var z=this.items.children,l=0;l<z.length;l++)z[l].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.registerWithViewTransitionManager=function(){var z=this;_.qA(_.ow,function(){var l=_.pG().resolve(_.MB(_.Lg));if(l&&l.isAnyTransitionEnabled){var I={};l.viewTransitionCoordinator.registerElement(z.hostElement,(I.slide="mini-guide-page-transition",I))}})};
tu.prototype.activeEndpointChanged=tu.prototype.activeEndpointChanged;tu.prototype.dataChanged=tu.prototype.dataChanged;tu.prototype.visibleChanged=tu.prototype.visibleChanged;tu.prototype.onMouseEnter=tu.prototype.onMouseEnter;_.e([_.t(_.gU),_.w("design:type",Object)],tu.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],tu.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],tu.prototype,"ytComponentBehavior",void 0);_.e([_.qX("#items"),_.w("design:type",Object)],tu.prototype,"items",void 0);_.e([_.X(),_.w("design:type",Object)],tu.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Boolean)],tu.prototype,"visible",void 0);_.e([_.X(),_.w("design:type",Object)],tu.prototype,"miniGuideItems",void 0);_.e([_.X({selector:_.ZqQ}),_.w("design:type",Object)],tu.prototype,"allVideosCount",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],tu.prototype,"noLabels",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],tu.prototype,"frostedGlass",void 0);
_.e([_.tP("mouseenter"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tu.prototype,"onMouseEnter",null);_.e([_.YE("visible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tu.prototype,"visibleChanged",null);_.e([_.YE("data","allVideosCount"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tu.prototype,"dataChanged",null);
_.e([_.YE("activeEndpoint"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],tu.prototype,"activeEndpointChanged",null);_.e([_.S({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],tu);
_.r(tu,"ytd-mini-guide-renderer",function(){if(SHK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);SHK=z}z=SHK;return z},{mode:1});var d_1;var oVS=/^[\x00-\x7F]+$/,B4=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(B4,_.q);_.vP.Object.defineProperties(B4.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var z,l=_.ID((z=this.data)==null?void 0:z.handle);if(l)return _.lc("@"+l)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var z=_.ID(this.displayHandle),l,I=_.ID((l=this.data)==null?void 0:l.handleUrl);if(z&&I)return _.lc(I+z)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var z=_.ID(this.displayHandle);if(z&&!oVS.test(z)){var l;return(l=this.data)==null?void 0:l.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var z=_.ID(this.displayHandleUrl),l,I=_.ID((l=this.data)==null?void 0:l.urlInfoText);if(z&&I)return _.lc(I+" "+z)}}});
_.e([_.X(),_.w("design:type",Object)],B4.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],B4.prototype,"displayHandle",null);_.e([_.B("displayHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],B4.prototype,"displayHandleUrl",null);_.e([_.B("displayHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],B4.prototype,"warningText",null);
_.e([_.B("displayHandleUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],B4.prototype,"urlInfoTextWithUrl",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],B4.prototype,"darkerDarkTheme",void 0);_.e([_.S({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],B4);
_.r(B4,"ytd-handles-claiming-confirm-dialog-content",function(){if(d_1!==void 0)return d_1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return d_1=z},{mode:1});var PdX;var XU=function(){var z=_.q.apply(this,arguments)||this;z.okButtonOverride={style:"mono",type:"outline",size:"M"};return z};
_.m(XU,_.q);XU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XU.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],XU.prototype,"okButtonOverride",void 0);_.e([_.X(),_.w("design:type",Object)],XU.prototype,"data",void 0);_.e([_.S({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],XU);
_.r(XU,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(PdX!==void 0)return PdX;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return PdX=z},{mode:1});var hRs;var s74=/^[\x00-\x7F]+$/,qL=function(){var z=_.q.apply(this,arguments)||this;z.isLoading=!1;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(qL,_.q);qL.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var z;this.selectedHandle=(z=this.handleInput)==null?void 0:z.value;this.onSelectedHandleChanged(this.selectedHandle);_.EK(this.hostElement,"yt-refit-popups-action")}};
_.vP.Object.defineProperties(qL.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var z;return(z=this.data)==null?void 0:z.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.lc("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.lc(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!s74.test(this.selectedHandle)){var z;return(z=this.data)==null?void 0:z.warningText}}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qL.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],qL.prototype,"selectedHandle",void 0);_.e([_.X(),_.w("design:type",Object)],qL.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Function)],qL.prototype,"onSelectedHandleChanged",void 0);_.e([_.qX("#channel-handle-input"),_.w("design:type",Object)],qL.prototype,"handleInput",void 0);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],qL.prototype,"handleUrlPrefix",null);_.e([_.B("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],qL.prototype,"displayHandle",null);_.e([_.B("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],qL.prototype,"displayHandleUrl",null);_.e([_.B("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],qL.prototype,"warningText",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],qL.prototype,"darkerDarkTheme",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.e([_.S({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],qL);
_.r(qL,"ytd-handles-claiming-edit-dialog-content",function(){if(hRs!==void 0)return hRs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return hRs=z},{mode:1});var rwC;var iB=function(){var z=_.q.apply(this,arguments)||this;z.actionButtonOverride={style:"mono",type:"filled",size:"M"};z.cancelButtonOverride={style:"mono",type:"text",size:"M"};z.selectButtonDisabled=!1;z.isLoading=!1;z.hasSelectedHandleEventListener=!1;z.selectedHandleChanged=function(l){z.selectedHandle=l};
return z};
_.m(iB,_.q);_.p=iB.prototype;_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.p.onDataChanged=function(){var z,l;this.selectedHandle=(l=_.k((z=this.data)==null?void 0:z.inputField,be4))==null?void 0:l.handle};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.selectedHandle="";_.Gb(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var z=this;if(this.selectedHandle!==void 0){var l;((l=this.data)==null?void 0:l.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.IF(z.hostElement,_.ID(b.newHandleUpdateStatus.errorMessage)),
z.isLoading=!1;else{var v;if((v=z.data)==null?0:v.onChannelUpdateSuccess){I=z.data.onChannelUpdateSuccess;var M,x;if(b=(M=_.k(I,_.WT))==null?void 0:(x=M.popup)==null?void 0:x.handlesClaimingConfirmDialogRenderer)b.handle=_.lc(z.selectedHandle);z.ytComponentBehavior.resolveCommand(I);_.Gb(z.hostElement,"yt-close-popup-action",[z.is])}else z.isLoading=!1}},
onServerError:function(){var I;z.content&&((I=z.content)==null?0:I.handleInput)&&z.content.handleInput.validate();z.isLoading=!1;_.IF(z.hostElement,_.mY("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
iB.prototype.onDataChanged=iB.prototype.onDataChanged;iB.prototype.onSelectedHandleChanged=iB.prototype.onSelectedHandleChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],iB.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"actionButtonOverride",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"cancelButtonOverride",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",String)],iB.prototype,"selectedHandle",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"selectButtonDisabled",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"hasSelectedHandleEventListener",void 0);_.e([_.X(),_.w("design:type",Object)],iB.prototype,"handleInput",void 0);
_.e([_.By("selectedHandle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iB.prototype,"onSelectedHandleChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],iB.prototype,"onDataChanged",null);_.e([_.qX("ytd-handles-claiming-edit-dialog-content"),_.w("design:type",Object)],iB.prototype,"content",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.S({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],iB);
_.r(iB,"ytd-handles-claiming-edit-dialog-renderer",function(){if(rwC!==void 0)return rwC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return rwC=z},{mode:1});var $_1;var FU=function(){return _.q.apply(this,arguments)||this};
_.m(FU,_.q);_.vP.Object.defineProperties(FU.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null?0:z.handle){var l;return _.lc("@"+_.ID((l=this.data)==null?void 0:l.handle))}}}});
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],FU.prototype,"formattedHandle",null);_.e([_.X(),_.w("design:type",Object)],FU.prototype,"data",void 0);_.e([_.S({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],FU);
_.r(FU,"ytd-handles-claiming-radio-option-renderer",function(){if($_1!==void 0)return $_1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $_1=z},{mode:1});var eRX;var w9s=/^[\x00-\x7F]+$/,QB=function(){var z=_.q.apply(this,arguments)||this;z.initialRadioIndex="-1";z.isLoading=!1;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.maybeSubmitFeedback=function(){z.feedbackSurveyRenderer.submitSurvey()};
return z};
_.m(QB,_.q);QB.prototype.updateSelectedHandleIndexFromBinding=function(z){this.selectedRadioIndex=+z.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(z)};
QB.prototype.selectedHandleChanged=function(z){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var l;this.selectedHandle=(l=this.handleInput)==null?void 0:l.value;this.onSelectedHandleChanged(z)}};
_.vP.Object.defineProperties(QB.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var z;return(((z=this.data)==null?void 0:z.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var z;return this.ytRendererBehavior.getSimpleString((z=this.data)==null?void 0:z.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.lc("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.lc(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!w9s.test(this.selectedHandle)){var z;return(z=this.data)==null?void 0:z.warningText}}}});
_.e([_.X(),_.w("design:type",Object)],QB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],QB.prototype,"initialRadioIndex",void 0);_.e([_.X(),_.w("design:type",Number)],QB.prototype,"selectedRadioIndex",void 0);_.e([_.X(),_.w("design:type",String)],QB.prototype,"selectedHandle",void 0);_.e([_.X(),_.w("design:type",Object)],QB.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Function)],QB.prototype,"onSelectedHandleChanged",void 0);
_.e([_.X(),_.w("design:type",Function)],QB.prototype,"onSelectedRadioIndexChanged",void 0);_.e([_.qX("#channel-handle-input"),_.w("design:type",Object)],QB.prototype,"handleInput",void 0);_.e([_.qX("ytd-feedback-survey-renderer"),_.w("design:type",Object)],QB.prototype,"feedbackSurveyRenderer",void 0);_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],QB.prototype,"radioButtonLength",null);
_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],QB.prototype,"handleUrlPrefix",null);_.e([_.B("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],QB.prototype,"displayHandle",null);_.e([_.B("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],QB.prototype,"displayHandleUrl",null);_.e([_.B("selectedHandle"),_.w("design:type",Object),_.w("design:paramtypes",[])],QB.prototype,"warningText",null);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],QB.prototype,"darkerDarkTheme",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.e([_.S({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],QB);
_.r(QB,"ytd-handles-claiming-select-dialog-content",function(){if(eRX!==void 0)return eRX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return eRX=z},{mode:1});var AwW;var Yn=function(){var z=_.q.apply(this,arguments)||this;z.actionButtonOverride={style:"mono",type:"filled",size:"M"};z.cancelButtonOverride={style:"mono",type:"text",size:"M"};z.initialRadioIndex="-1";z.selectButtonDisabled=!1;z.isLoading=!1;z.selectedRadioIndexChanged=function(l){z.selectedRadioIndex=Number(l.detail.value)};
z.selectedHandleChanged=function(l){z.selectedHandle=l.detail.value};
z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(Yn,_.q);_.p=Yn.prototype;_.p.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.p.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.EK(this.hostElement,"yt-refit-popups-action")};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Gb(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var z=this;if(this.selectedHandle!==void 0){var l;((l=this.data)==null?void 0:l.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.IF(z.hostElement,_.ID(b.newHandleUpdateStatus.errorMessage)),
z.isLoading=!1;else{var v;if((v=z.data)==null?0:v.onChannelUpdateSuccess){I=z.data.onChannelUpdateSuccess;b=_.k(I,_.WT);var M;if(b==null?0:(M=b.popup)==null?0:M.handlesClaimingConfirmDialogRenderer)b.popup.handlesClaimingConfirmDialogRenderer.handle=_.lc(z.selectedHandle);z.ytComponentBehavior.resolveCommand(I);_.Gb(z.hostElement,"yt-close-popup-action",[z.is])}else z.isLoading=!1}},
onServerError:function(){if(z.selectedRadioIndex===z.radioButtonLength){var I;z.content&&((I=z.content)==null?0:I.handleInput)&&z.content.handleInput.validate()}z.isLoading=!1;_.IF(z.hostElement,_.mY("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var z,l;this.selectedHandle=(z=this.content)==null?void 0:(l=z.handleInput)==null?void 0:l.value}else this.selectedRadioIndex>=0&&((z=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(z==null?void 0:z.handle):this.selectedHandle=void 0)};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.p.getRadioItem=function(z){if(this.radioButtonLength>z&&z>=0)return _.k(this.data.radioButton[z],Crc)};
_.vP.Object.defineProperties(Yn.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var z;return(((z=this.data)==null?void 0:z.radioButton)||[]).length}}});
Yn.prototype.onSelectedHandleChanged=Yn.prototype.onSelectedHandleChanged;Yn.prototype.onSelectedHandleIndexChanged=Yn.prototype.onSelectedHandleIndexChanged;Yn.prototype.onDataChanged=Yn.prototype.onDataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Yn.prototype,"actionButtonOverride",void 0);_.e([_.X(),_.w("design:type",Object)],Yn.prototype,"cancelButtonOverride",void 0);
_.e([_.X(),_.w("design:type",Object)],Yn.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Yn.prototype,"initialRadioIndex",void 0);_.e([_.X(),_.w("design:type",Number)],Yn.prototype,"selectedRadioIndex",void 0);_.e([_.X(),_.w("design:type",String)],Yn.prototype,"selectedHandle",void 0);_.e([_.X(),_.w("design:type",Object)],Yn.prototype,"selectButtonDisabled",void 0);_.e([_.X(),_.w("design:type",Object)],Yn.prototype,"isLoading",void 0);
_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],Yn.prototype,"radioButtonLength",null);_.e([_.qX("ytd-handles-claiming-select-dialog-content"),_.w("design:type",Object)],Yn.prototype,"content",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yn.prototype,"onDataChanged",null);
_.e([_.By("selectedRadioIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yn.prototype,"onSelectedHandleIndexChanged",null);_.e([_.By("selectedHandle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Yn.prototype,"onSelectedHandleChanged",null);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Yn.prototype,"darkerDarkTheme",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.e([_.S({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Yn);
_.r(Yn,"ytd-handles-claiming-select-dialog-renderer",function(){if(AwW!==void 0)return AwW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return AwW=z},{mode:1});var Wdy;var nV4;var Tf=function(){return _.q.apply(this,arguments)||this};
_.m(Tf,_.q);Tf.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Tf.prototype,"data",void 0);_.e([_.S({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Tf);
_.r(Tf,"ytd-hotkey-dialog-section-option-renderer",function(){if(nV4!==void 0)return nV4;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return nV4=z},{mode:1});var LdK;var c4=function(){return _.q.apply(this,arguments)||this};
_.m(c4,_.q);c4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],c4.prototype,"data",void 0);_.e([_.S({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],c4);
_.r(c4,"ytd-hotkey-dialog-section-renderer",function(){if(LdK!==void 0)return LdK;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return LdK=z},{mode:1});var Sw=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(Sw,_.q);Sw.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Sw.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Sw.prototype,"darkerDarkTheme",void 0);_.e([_.S({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Sw);
_.r(Sw,"ytd-hotkey-dialog-content",function(){if(Wdy!==void 0)return Wdy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Wdy=z},{mode:1});var U_K;var dQ=function(){return _.q.apply(this,arguments)||this};
_.m(dQ,_.q);dQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var z=document.querySelector("ytd-hotkey-dialog-content #scrollable");z&&(z.dialogElement=this.hostElement.parentElement)};
dQ.prototype.onCloseTap=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dQ.prototype,"data",void 0);_.e([_.S({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],dQ);
_.r(dQ,"ytd-hotkey-dialog-renderer",function(){if(U_K!==void 0)return U_K;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return U_K=z},{mode:1});var a7l;var o4=function(){return _.q.apply(this,arguments)||this};
_.m(o4,_.q);o4.prototype.onYtServiceRequestError=function(){if(this.blocked){var z;var l=(z=this.data)==null?void 0:z.defaultServiceEndpoint}else{var I;l=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var b;(l=(b=_.k(l,_.VGA))==null?void 0:b.onFailureAction)&&this.ytComponentBehavior.resolveCommand(l);this.updateBlockState(!this.blocked)};
o4.prototype.onYtToggleButton=function(z){this.updateBlockState(z.detail.toggled)};
o4.prototype.updateBlockState=function(z){if(z!==this.blocked){var l=this.blockedEntityKey;l&&this.ytdReduxBehavior.dispatch(_.cU("blockStateEntity",l,{key:l,blocked:z}));this.set("data.isToggled",z)}};
_.vP.Object.defineProperties(o4.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)}}});
o4.prototype.onYtToggleButton=o4.prototype.onYtToggleButton;o4.prototype.onYtServiceRequestError=o4.prototype.onYtServiceRequestError;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],o4.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],o4.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],o4.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],o4.prototype,"blockedEntityKey",void 0);
_.e([_.X({selectorArgs:["blockedEntityKey"],selector:function(z,l){return _.Cc(z.entities,"blockStateEntity",l)}}),
_.w("design:type",Object)],o4.prototype,"blockStateEntity",void 0);_.e([_.B("data","blockStateEntity"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],o4.prototype,"blocked",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],o4.prototype,"onYtServiceRequestError",null);
_.e([_.tP("yt-toggle-button"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],o4.prototype,"onYtToggleButton",null);_.e([_.S({is:"ytd-block-button",disableElementRegistration:!0})],o4);
_.r(o4,"ytd-block-button",function(){if(a7l!==void 0)return a7l;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return a7l=z},
{mode:1});var Vz0;var j7s;var P4=function(){return _.q.apply(this,arguments)||this};
_.m(P4,_.q);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],P4.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],P4.prototype,"data",void 0);_.e([_.S({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],P4);
_.r(P4,"ytd-kids-blocklist-picker-item-renderer",function(){if(j7s!==void 0)return j7s;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return j7s=z},{mode:1});var hu=function(){return _.q.apply(this,arguments)||this};
_.m(hu,_.q);hu.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],hu.prototype,"data",void 0);_.e([_.S({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],hu);
_.r(hu,"ytd-kids-blocklist-picker-content",function(){if(Vz0!==void 0)return Vz0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return Vz0=
z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var JwK;var sR=function(){var z=_.q.apply(this,arguments)||this;z.hasAnyRequestSucceeded=!1;z.hasAnyRequestFailed=!1;z.numPendingRequests=0;return z};
_.m(sR,_.q);_.p=sR.prototype;_.p.attached=function(){this.hostElement.setAttribute("dialog","")};
_.p.onDoneButtonTap=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.p.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.p.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.p.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.p.onPopupClosed=function(z){var l,I;if(((l=z.detail)==null?void 0:(I=l.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var b;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((b=this.data)==null?0:b.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.pr(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
sR.prototype.onPopupClosed=sR.prototype.onPopupClosed;sR.prototype.onYtServiceRequestError=sR.prototype.onYtServiceRequestError;sR.prototype.onYtServiceRequestCompleted=sR.prototype.onYtServiceRequestCompleted;sR.prototype.onYtServiceRequestSent=sR.prototype.onYtServiceRequestSent;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],sR.prototype,"data",void 0);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sR.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sR.prototype,"onYtServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],sR.prototype,"onYtServiceRequestError",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],sR.prototype,"onPopupClosed",null);_.e([_.S({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],sR);
_.r(sR,"ytd-kids-blocklist-picker-renderer",function(){if(JwK!==void 0)return JwK;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return JwK=z},{mode:1});var zkW;var l8l;var rQ=function(){return _.q.apply(this,arguments)||this};
_.m(rQ,_.q);rQ.prototype.setTip=function(z){var l=this;this.data&&(this.tip=Ans(eGK.getInstance(),z,this.data),_.IR(this,function(){_.gC(l.hostElement,"yt-refit")}))};
rQ.prototype.clearTip=function(){this.tip=void 0};
rQ.prototype.computeHidden=function(z){return!z};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],rQ.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.w("design:type",Boolean)],rQ.prototype,"hidden",void 0);_.e([_.X(),_.w("design:type",Object)],rQ.prototype,"tip",void 0);_.e([_.S({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],rQ);
_.r(rQ,"ytd-menu-popup-tip-renderer",function(){if(l8l!==void 0)return l8l;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);
return l8l=z},{mode:1});var I8s;var $n=function(){var z=_.q.apply(this,arguments)||this;z.useIcons=!1;z.systemIcons=_.C("kevlar_system_icons");z.useListItemStyles=_.C("web_list_item_style_for_menu_items");return z};
_.m($n,_.q);_.p=$n.prototype;_.p.onFocus=function(){var z;(z=_.Hy(this.hostElement).querySelector("tp-yt-paper-item"))==null||z.focus()};
_.p.onTap=function(){var z=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(z&&_.k(z,_.yi))this.componentBehavior.resolveCommand(z),this.updateToggledStateInEntity();else if(z){this.componentBehavior.resolveCommand(z)||_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}});var l;((l=_.k(z,_.CM))==null?void 0:l.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.p.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.p.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.p.updateToggledStateInEntity=function(){var z=this.data.toggleMenuServiceItemEntityKey,l=!this.data.isToggled;z&&this.ytdReduxBehavior.dispatch(_.cU("toggleMenuServiceItemEntity",z,{key:z,isToggled:l}))};
_.p.computeIcon=function(z,l,I){return(z=z?I:l)&&z.iconType?_.Re(z.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.isIconActive=function(z){return!_.C("toggle_menu_active_icon_killswitch")&&z};
_.vP.Object.defineProperties($n.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?0:z.isToggled)?(l=this.data)==null?void 0:l.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
$n.prototype.toggledStateEntityChanged=$n.prototype.toggledStateEntityChanged;$n.prototype.onYtServiceRequestCompleted=$n.prototype.onYtServiceRequestCompleted;$n.prototype.onTap=$n.prototype.onTap;$n.prototype.onFocus=$n.prototype.onFocus;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],$n.prototype,"componentBehavior",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],$n.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],$n.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$n.prototype,"useIcons",void 0);_.e([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.w("design:type",String)],$n.prototype,"icon",void 0);
_.e([_.X({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(z,l){return _.Cc(z.entities,"toggleMenuServiceItemEntity",l)}}),
_.w("design:type",Object)],$n.prototype,"toggleMenuServiceItemEntity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$n.prototype,"systemIcons",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],$n.prototype,"useListItemStyles",void 0);_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$n.prototype,"onFocus",null);
_.e([_.B("data.isToggled"),_.w("design:type",Object),_.w("design:paramtypes",[])],$n.prototype,"toggleButtonText",null);_.e([_.tP("tap"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$n.prototype,"onTap",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$n.prototype,"onYtServiceRequestCompleted",null);
_.e([_.By("toggleMenuServiceItemEntity.isToggled","data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],$n.prototype,"toggledStateEntityChanged",null);_.e([_.S({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],$n);
_.r($n,"ytd-toggle-menu-service-item-renderer",function(){if(I8s!==void 0)return I8s;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return I8s=z},{mode:1});var bUW;var ew=function(){return _.q.apply(this,arguments)||this};
_.m(ew,_.q);ew.prototype.onFocus=function(){var z;(z=_.Hy(this.hostElement).querySelector("tp-yt-paper-item"))==null||z.focus()};
_.vP.Object.defineProperties(ew.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.eA(this.data.iconUrl)}}});
ew.prototype.onFocus=ew.prototype.onFocus;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ew.prototype,"rendererBehavior",void 0);_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],ew.prototype,"ytEndpointBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ew.prototype,"data",void 0);_.e([_.tP("focus"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ew.prototype,"onFocus",null);
_.e([_.B("data.iconUrl"),_.w("design:type",Object),_.w("design:paramtypes",[])],ew.prototype,"imageSource",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],ew);
_.r(ew,"ytd-menu-custom-icon-item-renderer",function(){if(bUW!==void 0)return bUW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return bUW=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});_.uO(_.GA,"yt-list-item-view-model",{props:{data:_.mB,isMenuItem:_.mB,isCompact:_.mB,onTap:_.GH,trailingAccessory:_.GH,hideSelectionTextChevron:_.mB,disabled:_.mB,inPopup:_.mB,disableHorizontalPadding:_.mB,isOverlay:_.mB,isToggled:_.mB,ariaLabel:_.mB,ariaPressed:_.mB}});var wQ=function(){var z=_.q.apply(this,arguments)||this;z.disableBackdropFilter=_.C("web_disable_backdrop_filter");return z};
_.m(wQ,_.q);_.p=wQ.prototype;
_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.p.computeAriaLabel=function(z){return z};
_.p.onPopupOpened=function(){this.items.selected=0;for(var z=_.D(_.Hy(this.items).children),l=z.next();!l.done;l=z.next())l.value.popupPositionTarget=this.positionTarget;if(z=this.popupTip||void 0)z.setTip(this.source||""),this.source=void 0;this.veData&&(z=_.sU())&&_.Vi(z,[this.veData])};
_.p.onPopupClosed=function(){var z=this.popupTip||void 0;z&&z.clearTip()};
_.p.onIronActivate=function(z){this.shouldPersist(z)||_.Gb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(z=_.sU())&&_.JH(z,this.veData)};
_.p.shouldPersist=function(z){var l,I;if(((l=z.detail)==null?void 0:l.selected)===void 0||(I=this.data)==null||!I.items)return!1;var b,v;return!((v=(b=this.data.items[z.detail.selected])==null?void 0:b.toggleMenuServiceItemRenderer)==null||!v.persistentOnMenuPopup)};
_.p.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(z){return z.menuNavigationItemRenderer?!!z.menuNavigationItemRenderer.icon:z.menuServiceItemRenderer?!!z.menuServiceItemRenderer.icon:z.menuConditionalServiceItemRenderer?!!z.menuConditionalServiceItemRenderer.icon:z.menuConditionalNavigationItemRenderer?!!z.menuConditionalNavigationItemRenderer.icon:z.toggleMenuServiceItemRenderer?!!z.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
wQ.prototype.onPopupClosed=wQ.prototype.onPopupClosed;wQ.prototype.onPopupOpened=wQ.prototype.onPopupOpened;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],wQ.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],wQ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],wQ.prototype,"veData",void 0);_.e([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.w("design:type",String)],wQ.prototype,"ariaLabel",void 0);_.e([_.X({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],wQ.prototype,"useIcons",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],wQ.prototype,"disableBackdropFilter",void 0);_.e([_.qX("#items"),_.w("design:type",Object)],wQ.prototype,"items",void 0);_.e([_.qX("ytd-menu-popup-tip-renderer"),_.w("design:type",Object)],wQ.prototype,"popupTip",void 0);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wQ.prototype,"onPopupOpened",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],wQ.prototype,"onPopupClosed",null);_.e([_.S({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],wQ);
_.r(wQ,"ytd-menu-popup-renderer",function(){if(zkW!==void 0)return zkW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return zkW=z},{mode:1});var vr0;var MeW=_.P(function(z){z=_.xC(z,{icon:void 0});var l=z.data;z=z.icon;var I=function(){return l().iconBadgeText},b={},v=_.m9("yt-spec-icon-badge-shape",function(){a:switch(l().iconBadgeType){case "notification":var M="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":M="yt-spec-icon-badge-shape--type-cart";break a;default:M=""}return M},function(){a:switch(l().iconBadgeStyle){case "overlay":var M="yt-spec-icon-badge-shape--style-overlay";
break a;default:M=""}return M},(b["yt-spec-icon-badge-shape--text-size-small"]=function(){var M=I();
return!!((M==null?0:M.length)&&M.length>2)},b));
return _.N("yt-icon-badge-shape",null,_.N(_.E,{cond:z,then:function(M){return _.N("div",{class:v},_.N("div",{class:"yt-spec-icon-badge-shape__icon"},_.N(_.qt,{icon:M})),_.N(_.E,{cond:I,then:function(x){return _.N("div",{class:"yt-spec-icon-badge-shape__badge"},x)}}))}}))},"yh");
MeW.idomCompat=!0;_.uO(MeW,"yt-icon-badge-shape",{props:{data:_.mB,icon:_.mB}});var Au=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};z.unseenCount=0;z.isOverlay=!1;return z};
_.m(Au,_.q);_.p=Au.prototype;_.p.attached=function(){var z=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(l){z.onServiceWorkerMessage(l)})};
_.p.onDataChanged=function(){this.isAttached&&!this.JSC$20483_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20483_lastData=this.data};
_.p.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.computeIcon=function(){var z,l;return(z=this.data)==null?void 0:(l=z.icon)==null?void 0:l.iconType};
_.p.onServiceWorkerMessage=function(z){z.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.p.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.k(this.data.updateUnseenCountEndpoint,_.CM)&&_.k(this.data.updateUnseenCountEndpoint,_.CM).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.p.handleUpdateNotificationsUnseenCountAction=function(z){var l=this;z=_.k(z,gYX);z!=null&&z.unseenCount&&z.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(z.unseenCount),_.ow.addLowPriorityJob(function(){l.data.updateUnseenCountEndpoint&&l.ytComponentBehavior.resolveCommand(l.data.updateUnseenCountEndpoint)},z.timeoutMs))};
_.p.onClick=function(){_.gC(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var z=_.EK(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),l=this.data.menuRequest;z&&z.length===1&&z[0]?_.Gb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):l&&this.ytComponentBehavior.resolveCommand(l)};
_.p.handleTopbarMenuClosedAction=function(z){z==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.p.toggleIconState=function(z){this.iconButton&&(this.iconButton.pressed=z)};
_.p.sendUnseenCountRequest=function(z){var l=this;_.qA(_.ow,function(){l.ytComponentBehavior.resolveCommand(z)})};
_.p.updateCountUI=function(z){this.set("unseenCount",z<9?z:"9+")};
_.vP.Object.defineProperties(Au.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Au.prototype.handleUpdateNotificationsUnseenCountAction=Au.prototype.handleUpdateNotificationsUnseenCountAction;Au.prototype.onDataChanged=Au.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Au.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.XD),_.w("design:type",Object)],Au.prototype,"ytdOpenPopupBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Au.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Au.prototype,"unseenCount",void 0);_.e([_.X(),_.w("design:type",Object)],Au.prototype,"isOverlay",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],Au.prototype,"showTooltips",void 0);_.e([_.qX("yt-icon-button"),_.w("design:type",Object)],Au.prototype,"iconButton",void 0);
_.e([_.B("unseenCount"),_.w("design:type",Object),_.w("design:paramtypes",[])],Au.prototype,"showNotificationCount",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Au.prototype,"onDataChanged",null);_.e([_.tP("yt-update-notifications-unseen-count-action"),_.w("design:type",Function),_.w("design:paramtypes",[Object]),_.w("design:returntype")],Au.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.e([_.S({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Au);
_.r(Au,"ytd-notification-topbar-button-renderer",function(){if(vr0!==void 0)return vr0;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return vr0=z},{mode:_.yP("kevlar_poly_si_batch_j025")?1:2});var pAl;var W4=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return z};
_.m(W4,_.q);W4.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}}}}}};
W4.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
W4.prototype.onDarkModeToggled=function(z){this.dark=z};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],W4.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],W4.prototype,"data",void 0);_.e([_.X({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],W4.prototype,"dark",void 0);
_.e([_.S({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],W4);
_.r(W4,"yt-pdg-buy-flow-header-renderer",function(){if(pAl!==void 0)return pAl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return pAl=z},{mode:1});var D98;var x9s;var nH=function(){var z=_.q.apply(this,arguments)||this;z.immediateValue=0;z.isDarkTheme=!1;z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(nH,_.q);_.p=nH.prototype;_.p.created=function(){_.pw.requestAvailability()};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.dataChanged=function(){var z=_.Hy(this.hostElement).querySelector("#color-slider");z.immediateValue&&this.updateSliderKnobAndGradientStyles(z.immediateValue);this.data.notches[0].knobColorArgb&&_.R8(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.aD(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.sZ("HTML_DIR")==="rtl"&&_.Hy(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.p.onSliderImmediateChange=function(){var z=_.Hy(this.hostElement).querySelector("#color-slider");z.dragging&&(z.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(z.immediateValue),this.updateSliderKnobAndGradientStyles(z.immediateValue)),this.updateSliderAria())};
_.p.onSliderChange=function(){var z=_.Hy(this.hostElement).querySelector("#color-slider");z.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(z.immediateValue),this.updateSliderKnobAndGradientStyles(z.immediateValue));this.updateSliderAria()};
_.p.updateSliderAria=function(){var z=_.Hy(this.hostElement).querySelector("#color-slider"),l=_.Hy(this.hostElement).querySelector("#color-slider");l=_.ID(this.data.notches[l.immediateValue].tierValue);_.g5t()&&_.gC(this.hostElement,"iron-announce",{text:l});z.setAttribute("aria-valuetext",l)};
_.p.updateSuperThanksSelectedTierEntity=function(z){if(z!==this.immediateValue){var l,I,b=this==null?void 0:(l=this.data)==null?void 0:(I=l.superThanksSelectedTierEntity)==null?void 0:I.key;b&&b.length>0&&this.ytdReduxBehavior.dispatch(_.cU("superThanksSelectedTierEntity",b,{key:b,index:z}))}};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.updateSliderKnobAndGradientStyles=function(z){this.immediateValue=z;z=this.data.notches[z];if(z==null?0:z.knobColorArgb)var l={"--ytd-pdg-color-slider-knob-color":_.aD(z.knobColorArgb)};(z==null?0:z.linearGradientCssStyle)&&l!==null&&(l=Object.assign({},l,{"--ytd-pdg-color-slider-active-color":z==null?void 0:z.linearGradientCssStyle}));l!==null&&_.R8(this.hostElement,l)};
nH.prototype.onSliderChange=nH.prototype.onSliderChange;nH.prototype.onSliderImmediateChange=nH.prototype.onSliderImmediateChange;nH.prototype.dataChanged=nH.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],nH.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],nH.prototype,"immediateValue",void 0);_.e([_.X(),_.w("design:type",Number)],nH.prototype,"maxMarkers",void 0);
_.e([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:br1}),_.w("design:type",Object)],nH.prototype,"superThanksSelectedTierEntity",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],nH.prototype,"isDarkTheme",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],nH.prototype,"ytdReduxBehavior",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nH.prototype,"dataChanged",null);
_.e([_.tP("immediate-value-change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nH.prototype,"onSliderImmediateChange",null);_.e([_.tP("change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],nH.prototype,"onSliderChange",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],nH);
_.r(nH,"ytd-pdg-color-slider-renderer",function(){if(x9s!==void 0)return x9s;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return x9s=z},{mode:1});var OUq;var grC;var LH=null;
_.hP({is:"ytd-comment-input",_template:function(){if(grC!==void 0)return grC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return grC=z},
behaviors:[_.S0Y.YtHostElementBehavior,_.rB,_.uh.YtComponentBehavior,_.Y$.YtRendererstamperBehavior,_.d0_.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 _.HL}},
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",_.KJ(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;_.Y4();this.focus()},
detached:function(){document.removeEventListener("tap",_.KJ(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(z){z=z.detail;z=z.isCustomEmoji?z.shortcuts[0]:z.emojiId;var l=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(l,z);this.maybeUpdateTextDirection_();_.gC(this.hostElement,"input")},
getInputRange_:function(){var z=_.Cj();if(z){z=z.getBrowserRangeObject();for(var l=z.commonAncestorContainer;l;){if(l===this.getEditableTextArea_())return z;l=l.parentNode}}z=this.getEditableTextArea_();z=_.lX(z,z.childNodes.length);z.select();return z.getBrowserRangeObject()},
insertTextWithEmojis_:function(z,l,I){(l=this.emojiManager.createDocumentFragment(l,!0,!1,I===void 0?!0:I))&&l.childNodes.length!==0&&(z.collapsed||z.deleteContents(),I=l.lastChild,z.insertNode(l),_.MgI(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var z=_.Cj();if(z){var l=z.JSC$11349_getStartNode(),I=z.JSC$11349_getEndNode();if(Ut1(l)&&Ut1(I)){var b=z.JSC$11349_getStartOffset(),v;if(_.CO&&l.nodeType===Node.ELEMENT_NODE&&(v=_.MWj(l)))_.lX(v,0).select();else{v=IZ(l)?l:_.A7(l,IZ);var M=IZ(I)?I:_.A7(I,IZ);if(v||M)if(z.isCollapsed()){if(l.nodeType===Node.TEXT_NODE){z=!0;b===l.length&&(z=!1);if(LH==="end"||LH==="right")z=!1;l=l.parentNode;z=[].concat(_.ht(l.parentNode.childNodes)).indexOf(l)+(z?0:1);_.lX(l.parentNode,
z).select()}}else v?v.previousSibling&&v.previousSibling.length>0?_.Ip(I,z.JSC$11349_getEndOffset(),v.previousSibling,v.previousSibling.length-1).select():(l=document.createTextNode("\u200b"),v.parentNode.insertBefore(l,v),_.Ip(I,z.JSC$11349_getEndOffset(),l,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.Ip(l,z.JSC$11349_getStartOffset(),M.nextSibling,1).select():(I=document.createTextNode("\u200b"),M.parentNode.insertBefore(I,M.nextSibling),_.Ip(l,z.JSC$11349_getStartOffset(),I,I.length).select()));
LH=null}}else LH=null}else LH=null},
leftKeyPressed_:function(){LH="left"},
rightKeyPressed_:function(){LH="right"},
endKeyPressed_:function(){LH="end"},
maybeDeleteChip_:function(){var z=lX4(!0);if(z){var l=_.Cj(),I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();_.a5(I,l,z,z.childNodes.length).select()}},
maybeBackspaceChip_:function(){var z=lX4(!1);if(z){var l=_.Cj(),I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();_.a5(I,l,z,0).select()}},
maybeBackspaceChipWordMode_:function(z){var l=_.Cj();if(l.isCollapsed()){var I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();var b=IXF(I,l,!0);b&&(_.a5(I,l,b,0).select(),document.execCommand("delete"),z.preventDefault(),z.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(z){var l=_.Cj();if(l.isCollapsed()){var I=l.JSC$11349_getStartNode();l=l.JSC$11349_getStartOffset();var b=IXF(I,l,!1);b&&(_.a5(I,l,b,b.childNodes.length).select(),document.execCommand("delete"),z.preventDefault(),z.stopImmediatePropagation())}},
onContentClick:function(z){z.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(z){z.defaultPrevented||z.currentTarget.tagName==="YTD-COMMENT-INPUT"&&IZ(z.target)&&z.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Hy(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Hy(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(z,l){z=VO4(z,this.emojiManager,l).cloneNode(!0);for(l=z.firstChild;l;)if(l.nodeType!==1)l=l.nextSibling;else switch(l.tagName){case "BR":var I=_.$A();_.ESu(I,l);l=I.nextSibling;break;case "DIV":(I=l.lastChild)&&l.nextSibling&&_.Wc(_.$A(),I);l.previousSibling&&(l.previousSibling.nodeType===1||l.previousSibling.nodeType===3&&!l.previousSibling.textContent.endsWith("\n"))&&_.A5(_.$A(),l);I&&I.nodeName==="BR"&&_.Bl(I);I=l;l.hasChildNodes()?(l=l.firstChild,
_.uqn(I)):(l=l.nextSibling,_.Bl(I));break;default:l=l.nextSibling}return bY4(z)},
setTextAreaValue:function(z){z||(z="");var l=this.getEditableFormattedString_();l.text="";this.getEditableTextArea_().innerText="";typeof z==="string"&&(z={runs:[{text:z}]});l.text=z},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();LH=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var z=this.getEditableTextArea_();z&&(_.lX(z,z.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.sZ("HTML_DIR")==="rtl"){var z=this.getEditableTextArea_(),l=this.getTextAreaValue()!==""?"auto":"rtl";z.setAttribute("dir",l)}},
handleInputEvent_:function(){var z=null;if(this.isEmojiButtonDisplayed){var l=this.getInputRange_();l&&(z=this.emojiInput.retrieveTextBeforeRange(l))}this.insertText_(z,!0);this.updateCharCount_();z=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=z.scrollHeight>z.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var z=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:z})},
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(z){this.isEmojiButtonDisplayed&&(z.preventDefault(),z.stopImmediatePropagation(),z=z.clipboardData.getData("text/plain"),this.insertText_(z,!1,!1),_.gC(this.hostElement,"input"))},
insertText_:function(z,l,I){l=l===void 0?!1:l;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&z){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(l&&this.emojiInput.offsetStartOfRangeBy(b,z.length),this.insertTextWithEmojis_(b,z,I),aYK(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,z),this.updateSuggestionOffset_(b)))}},
getSimpleString:_.ID,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(z){return z?"focused":"not-focused"},
computePlaceholderText_:function(z){return this.getSimpleString(z)},
computeEditableText_:function(z){return this.getSimpleString(z)},
onPrefilledContentDismissed_:function(z){z.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(z,l){z?this.fire("yt-autonav-pause-focus"):l!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(z){var l=this.getEditableTextArea_();[].concat(_.ht(z.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(b){l.appendChild(document.createTextNode(b))})});
z.preventDefault()},
preventDefault_:function(z){z.preventDefault()},
onSuggestionInsert_:function(z){this.insertTextWithEmojis_(z.detail.range,z.detail.text)},
onEmojiSuggestionClick_:function(z){this.emojiInput.insertSuggestion(z.detail)},
updateSuggestionOffset_:function(z){if(this.emojiInput&&_.Hy(this.emojiInput).querySelector("#dropdown")){var l=this.getEditableTextArea_().getBoundingClientRect().bottom,I=z.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(l-I)+5;l=this.getEditableTextArea_().getBoundingClientRect().left;z=z.getBoundingClientRect().left-l;_.Hy(this.emojiInput).querySelector("#dropdown").style.marginLeft=z+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$8("yt-post"));return this.localStorage}});var UR=function(){var z=_.q.apply(this,arguments)||this;z.currentCommentOptionIndex=0;z.isEmojiPickerDisplayed=!1;z.emojiManager=_.HL;z.isUgcEmpty=!1;z.userGeneratedCommentChangedHandler=function(){_.gC(z.hostElement,"ytd-pdg-user-generated-comment-changed");z.isEmojiYtdCommentInputEnabled&&(z.isUgcEmpty=!z.ytdCommentInputEl.getTextAreaValue())};
z.pasteHandler=function(l){l.preventDefault();l.stopImmediatePropagation();var I;if(l=(I=l.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),l=document.createTextNode(l),I.insertNode(l),I.selectNodeContents(l),I.collapse(!1),l=window.getSelection(),l.removeAllRanges(),l.addRange(I)};
z.onDocumentClick=function(l){if(z.isEmojiPickerDisplayed){var I,b,v;!(l.target instanceof Node)||(I=l.composedPath())!=null&&I.includes(z.editableTextEl)||(b=l.composedPath())!=null&&b.includes(z.emojiButtonEl)||(v=l.composedPath())!=null&&v.includes(z.emojiPickerEl)||(z.isEmojiPickerDisplayed=!1)}};
return z};
_.m(UR,_.q);_.p=UR.prototype;_.p.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.p.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.p.detached=function(){var z;(z=this.contentEl)==null||z.removeEventListener("input",this.userGeneratedCommentChangedHandler);var l;(l=this.contentEl)==null||l.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.p.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.p.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var z;this.contentEl.textContent=this.rendererBehavior.getSimpleString((z=this.data)==null?void 0:z.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.p.reloadEmojis=function(){this.emojiPickerEl&&_.k(this.emojiPicker,_.Q5w)&&this.emojiPickerEl.updateEmojiCategories()};
_.p.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.R8(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.p.handleBackgroundColorStyling=function(){var z;if((z=this.currentCommentOption)==null?0:z.commentBackgroundColorArgb){var l;_.R8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.aD((l=this.currentCommentOption)==null?void 0:l.commentBackgroundColorArgb)})}else _.R8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.p.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var z;(z=this.contentEl)==null||z.focus()}};
_.p.onEditButtonClick=function(z){var l=document.getSelection();l&&this.contentEl&&(z.stopPropagation(),z.preventDefault(),l.selectAllChildren(this.contentEl),l.collapseToEnd())};
_.p.onContentDrop=function(z){var l=this;if(z.dataTransfer){z=_.D(z.dataTransfer.items);for(var I=z.next();!I.done;I=z.next())I=I.value,I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(b){var v;(v=l.contentEl)==null||v.appendChild(document.createTextNode(b))})}};
_.p.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.p.getUserGeneratedCommentText=function(){var z,l=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(z=this.contentEl)==null?void 0:z.textContent;return l?l.trim():""};
_.p.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.p.onEmojiSelect=function(z){this.ytdCommentInputEl.onEmojiSelect(z)};
_.vP.Object.defineProperties(UR.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.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 z;return!((z=this.currentCommentOption)==null||!z.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var z;if(_.k((z=this.currentCommentOption)==null?void 0:z.chipRenderer,_.atn)){var l;return _.k((l=this.currentCommentOption)==null?void 0:l.chipRenderer,_.atn)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var z,l;return((z=this.data)==null?0:z.commentOptionRenderers)?_.k((l=this.data)==null?void 0:l.commentOptionRenderers[this.superThanksSelectedTierEntity.index],oY1):void 0}var I,b;return((I=this.data)==null?0:I.commentOptionRenderers)?_.k((b=this.data)==null?void 0:b.commentOptionRenderers[this.currentCommentOptionIndex],oY1):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var z;return this.rendererBehavior.getSimpleString((z=this.data)==null?void 0:z.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var z;return this.rendererBehavior.getSimpleString((z=this.data)==null?void 0:z.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.commentDialog,_.Jz_))==null?void 0:l.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.commentDialog,_.Jz_))==null?void 0:l.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=_.k((z=this.data)==null?void 0:z.commentDialog,_.Jz_))==null?void 0:l.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(l=_.k((z=this.data)==null?void 0:z.commentDialog,_.Jz_))==null?void 0:l.emojiPicker;if(!_.k(I,_.Q5w)||!_.k(I,_.Q5w).categories)return!1;z=function(M){return M.emojiPickerCategoryRenderer?M.emojiPickerCategoryRenderer.emojiIds&&M.emojiPickerCategoryRenderer.emojiIds.length>0:M.emojiPickerUpsellCategoryRenderer?M.emojiPickerUpsellCategoryRenderer.emojis&&M.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var b,v;return((b=_.k(I,_.Q5w))==null?0:(v=b.categories)==null?0:v.find(z))?!0:!1}}});
UR.prototype.onEmojiSelect=UR.prototype.onEmojiSelect;UR.prototype.dataChanged=UR.prototype.dataChanged;UR.prototype.currentCommentOptionChanged=UR.prototype.currentCommentOptionChanged;_.e([_.t(_.gU),_.w("design:type",Object)],UR.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],UR.prototype,"rendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.qX("#content-dom-if"),_.w("design:type",_.rc)],UR.prototype,"contentDomIfEl",void 0);_.e([_.qX("#content-no-emojis"),_.w("design:type",HTMLElement)],UR.prototype,"contentEl",void 0);_.e([_.qX("#container"),_.w("design:type",HTMLElement)],UR.prototype,"containerEl",void 0);_.e([_.qX("#comment-chip-container"),_.w("design:type",HTMLElement)],UR.prototype,"paidCommentChipContainerEl",void 0);_.e([_.qX("#text-input"),_.w("design:type",HTMLElement)],UR.prototype,"editableTextEl",void 0);
_.e([_.qX("#emoji-button"),_.w("design:type",HTMLElement)],UR.prototype,"emojiButtonEl",void 0);_.e([_.qX("#emoji-picker > yt-emoji-picker-renderer"),_.w("design:type",Object)],UR.prototype,"emojiPickerEl",void 0);_.e([_.qX("#text-input > ytd-comment-input"),_.w("design:type",Object)],UR.prototype,"ytdCommentInputEl",void 0);_.e([_.X(),_.w("design:type",Object)],UR.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],UR.prototype,"currentCommentOptionIndex",void 0);
_.e([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:br1}),_.w("design:type",Object)],UR.prototype,"superThanksSelectedTierEntity",void 0);_.e([_.X(),_.w("design:type",Object)],UR.prototype,"isEmojiPickerDisplayed",void 0);_.e([_.X(),_.w("design:type",Object)],UR.prototype,"emojiManager",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],UR.prototype,"isUgcEmpty",void 0);
_.e([_.By("currentCommentOption"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UR.prototype,"currentCommentOptionChanged",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],UR.prototype,"dataChanged",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UR.prototype,"isEmojiYtdCommentInputEnabled",null);
_.e([_.B("data.title"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"title",null);_.e([_.B("data.authorText"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"channelName",null);_.e([_.B("data.commentOptionRenderers","currentCommentOption"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UR.prototype,"shouldShowPaidCommentChipRenderer",null);
_.e([_.B("data.commentOptionRenderers","currentCommentOption"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"paidCommentChipRenderer",null);_.e([_.B("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"currentCommentOption",null);
_.e([_.B("data.defaultCommentText","superThanksSelectedTierEntity"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"commentText",null);_.e([_.B("data.placeholderText"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"placeholderText",null);_.e([_.B("data.commentDialog.commentDialogRenderer.editableText"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"editableText",null);
_.e([_.B("data.commentDialog.commentDialogRenderer.emojiButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"emojiButton",null);_.e([_.B("data.commentDialog.commentDialogRenderer.emojiPicker"),_.w("design:type",Object),_.w("design:paramtypes",[])],UR.prototype,"emojiPicker",null);
_.e([_.B("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],UR.prototype,"isEmojiButtonDisplayed",null);_.e([_.tP("yt-emoji-select"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],UR.prototype,"onEmojiSelect",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],UR);
_.r(UR,"ytd-pdg-comment-preview-renderer",function(){if(OUq!==void 0)return OUq;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return OUq=z},{mode:2});var GwW;var a4=function(){var z=_.q.apply(this,arguments)||this;z.selected=!1;return z};
_.m(a4,_.q);_.p=a4.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.p.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.p.dataChanged=function(){this.data&&(_.y5(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.R8(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.aD(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.aD(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.p.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.p.onClick=function(){this.logClick()};
_.p.onKeyboardSelect=function(){_.gC(this.hostElement,"tap");this.onClick()};
_.p.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
a4.prototype.onClick=a4.prototype.onClick;a4.prototype.selectedChanged=a4.prototype.selectedChanged;a4.prototype.dataChanged=a4.prototype.dataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],a4.prototype,"componentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.rB),_.w("design:type",Object)],a4.prototype,"ironA11yKeysBehavior",void 0);
_.e([_.t(_.Ie),_.w("design:type",Object)],a4.prototype,"ironSelectableBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],a4.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],a4.prototype,"shownThumbnail",void 0);_.e([_.X(),_.w("design:type",Object)],a4.prototype,"basePriceText",void 0);_.e([_.X(),_.w("design:type",Object)],a4.prototype,"purchaseCommand",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],a4.prototype,"selected",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a4.prototype,"dataChanged",null);_.e([_.By("selected"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a4.prototype,"selectedChanged",null);_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],a4.prototype,"onClick",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],a4);
_.r(a4,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(GwW!==void 0)return GwW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return GwW=z},{mode:1});var VB=function(){var z=_.q.apply(this,arguments)||this;z.selectedItemIndex=0;z.buyButtonDisabled=!1;return z};
_.m(VB,_.q);_.p=VB.prototype;
_.p.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]]"}}}}}};
_.p.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var z;var l=(z=_.k(this.data.colorSlider,dQX))==null?void 0:z.notches[this.selectedItemIndex].purchaseCommand}else{var I;l=(I=_.k(this.data.selectableItemButtons[this.selectedItemIndex],hs8))==null?void 0:I.purchaseCommand}if(l){z=_.k(l,_.co_);z.productData||(z.productData={});var b;z.productData={pdgData:{commentMessageText:(b=this.commentPreviewRenderer)==null?void 0:b.getUserGeneratedCommentText()}};
_.gC(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(l)}}};
_.p.dataChanged=function(){if(this.data){_.HL.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Gd_(_.HL,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.HL.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var z;this.buyButtonDisabled=!((z=_.k(this.data.commentPreview,Pry))==null||!z.placeholderText);this.updatePriceSelectorStatus();var l;if((l=this.data)==null?0:l.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;z=[];this.data.preloadImages&&(z=this.data.preloadImages);
z=z.map(function(I){return _.ZY(I.thumbnails,1920)});
z=_.D(z);for(l=z.next();!l.done;l=z.next())(l=l.value)&&_.Ov$(l).thenCatch(function(){_.PW(Error("Al"))})}};
_.p.superThanksSelectedTierEntityChanged=function(){var z;(this==null?void 0:(z=this.superThanksSelectedTierEntity)==null?void 0:z.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.p.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.p.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Hy(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Hy(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Hy(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Hy(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.p.closeBuyFlow=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.p.onUserGeneratedContentChanged=function(){var z;this.buyButtonDisabled=!((z=this.commentPreviewRenderer)==null?0:z.getUserGeneratedCommentText())};
_.p.updateSelectedItemIndexFromBinding=function(z){this.selectedItemIndex=z.detail.value};
_.vP.Object.defineProperties(VB.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var z;return!((z=this.data)==null||!z.disclaimerText)}}});
VB.prototype.onUserGeneratedContentChanged=VB.prototype.onUserGeneratedContentChanged;VB.prototype.closeBuyFlow=VB.prototype.closeBuyFlow;VB.prototype.selectedItemIndexChanged=VB.prototype.selectedItemIndexChanged;VB.prototype.superThanksSelectedTierEntityChanged=VB.prototype.superThanksSelectedTierEntityChanged;VB.prototype.dataChanged=VB.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],VB.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],VB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],VB.prototype,"selectedItemIndex",void 0);_.e([_.X(),_.w("design:type",Boolean)],VB.prototype,"isColorSlider",void 0);
_.e([_.X(),_.w("design:type",Object)],VB.prototype,"buyButtonDisabled",void 0);_.e([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:br1}),_.w("design:type",Object)],VB.prototype,"superThanksSelectedTierEntity",void 0);_.e([_.qX("ytd-pdg-comment-preview-renderer"),_.w("design:type",Object)],VB.prototype,"commentPreviewRenderer",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],VB.prototype,"ytdReduxBehavior",void 0);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VB.prototype,"dataChanged",null);_.e([_.By("superThanksSelectedTierEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VB.prototype,"superThanksSelectedTierEntityChanged",null);_.e([_.By("selectedItemIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VB.prototype,"selectedItemIndexChanged",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VB.prototype,"closeBuyFlow",null);_.e([_.tP("ytd-pdg-user-generated-comment-changed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],VB.prototype,"onUserGeneratedContentChanged",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],VB.prototype,"isDisclaimerTextShown",null);
_.e([_.S({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],VB);
_.r(VB,"yt-super-vod-buy-flow-content-renderer",function(){if(D98!==void 0)return D98;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return D98=z},{mode:1});var Njl;var jw=function(){var z=_.q.apply(this,arguments)||this;z.lottieAnimationRef={};return z};
_.m(jw,_.q);_.p=jw.prototype;_.p.created=function(){_.pw.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.KJ(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.p.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.gC(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.p.detached=function(){this.autoCloseJobId&&_.ow.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.KJ(this,this.onPopupIronOverlayOpened))};
_.p.dataChanged=function(){var z=this;this.data&&this.data.autoCloseDelay&&(_.Gb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.CK(_.ow,function(){z.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.R8(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.p.onDOMLoadedLottie=function(){var z=this,l,I,b=Number((l=this.data)==null?void 0:(I=l.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.CK(_.ow,function(){z.lottiePlayerEl.classList.add("fadeout")},(b-.25)*1E3);
this.autoCloseJobId=_.CK(_.ow,function(){z.closePopup()},b*1E3)};
_.p.openPopup=function(){this.ironOverlayBehavior.open()};
_.p.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Gb(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ZE(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.pG().resolve(_.DQ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ow.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ow.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.p.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var z,l;(z=this.lottieAnimationRef)==null||(l=z.lottieEl)==null||l.destroy();z=this.data.lottie;var I,b;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:z.url+"_"+Math.random(),path:z.url,autoplay:!0,loop:(b=(I=z.settings)==null?void 0:I.loop)!=null?b:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.vP.Object.defineProperties(jw.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var z,l;return!!((z=this.data)==null?0:(l=z.lottie)==null?0:l.url)}}});
jw.prototype.maybeInitializeLottie=jw.prototype.maybeInitializeLottie;jw.prototype.dataChanged=jw.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jw.prototype,"rendererBehavior",void 0);_.e([_.t(_.GJ),_.w("design:type",Object)],jw.prototype,"ironOverlayBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],jw.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],jw.prototype,"lottiePlayerProps",void 0);
_.e([_.X(),_.w("design:type",Object)],jw.prototype,"lottieAnimationRef",void 0);_.e([_.qX("ytd-lottie-player"),_.w("design:type",HTMLElement)],jw.prototype,"lottiePlayerEl",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jw.prototype,"dataChanged",null);_.e([_.B("data"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],jw.prototype,"hasLottieAnimation",null);
_.e([_.By("data.lottie.url"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jw.prototype,"maybeInitializeLottie",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],jw);
_.r(jw,"ytd-desktop-image-overlay-renderer",function(){if(Njl!==void 0)return Njl;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Njl=z},{mode:1});var Ery;var Ju=function(){return _.q.apply(this,arguments)||this};
_.m(Ju,_.q);_.p=Ju.prototype;_.p.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"}}}}};
_.p.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",_.KJ(this,this.closePopup))};
_.p.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.KJ(this,this.closePopup))};
_.p.dataChanged=function(){_.EK(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.k(this.data.header,SM0)&&(this.hasBackgroundBanner=!!_.k(this.data.header,SM0).backgroundBanner)};
_.p.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.KJ(this,this.closePopup))};
_.p.closePopup=function(){this.data&&this.data.onCloseCommand&&_.uJ(this.hostElement,[this.data.onCloseCommand])};
Ju.prototype.handleBuyflowSelectionSubmitted=Ju.prototype.handleBuyflowSelectionSubmitted;Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Ju.prototype,"data",void 0);
_.e([_.X({value:!0,reflectToAttribute:!0}),_.w("design:type",Boolean)],Ju.prototype,"hasBackgroundBanner",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ju.prototype,"dataChanged",null);_.e([_.tP("yt-pdg-buy-flow-selection-submitted"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Ju.prototype,"handleBuyflowSelectionSubmitted",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Ju);
_.r(Ju,"ytd-pdg-buy-flow-renderer",function(){if(Ery!==void 0)return Ery;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Ery=z},{mode:1});var uFS;var zI=function(){var z=_.q.apply(this,arguments)||this;z.isOpen=!1;z.isPlaylistCreated=!1;return z};
_.m(zI,_.q);_.p=zI.prototype;_.p.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.p.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.gC(this.hostElement,"yt-refit")};
_.p.onCreateTap=function(){var z=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.uJ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(l,I){if(!_.C("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(l=_.D(I.actions),I=l.next();!I.done;I=l.next())I=I.value,_.k(I,_.SK)&&z.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.p.onKeydown=function(z){if(z.keyCode===13)this.onCreateTap()};
_.p.onServiceRequestCompleted=function(z){z.stopPropagation();_.Gb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.p.computePrivacyBadge=function(z){return z?[{metadataBadgeRenderer:z}]:[]};
zI.prototype.onServiceRequestCompleted=zI.prototype.onServiceRequestCompleted;zI.prototype.onKeydown=zI.prototype.onKeydown;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],zI.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zI.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],zI.prototype,"isOpen",void 0);
_.e([_.X(),_.w("design:type",Object)],zI.prototype,"isPlaylistCreated",void 0);_.e([_.X({value:{REQUIRED_LABEL:_.mY("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.mY("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.w("design:type",Object)],zI.prototype,"addToStrings",void 0);_.e([_.X({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.w("design:type",Array)],zI.prototype,"privacyBadge",void 0);
_.e([_.qX("#privacy-input"),_.w("design:type",Object)],zI.prototype,"privacyInput",void 0);_.e([_.qX("#name-input"),_.w("design:type",Object)],zI.prototype,"nameInput",void 0);_.e([_.tP("keydown"),_.w("design:type",Function),_.w("design:paramtypes",[KeyboardEvent]),_.w("design:returntype")],zI.prototype,"onKeydown",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],zI.prototype,"onServiceRequestCompleted",null);
_.e([_.S({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],zI);
_.r(zI,"ytd-add-to-playlist-create-renderer",function(){if(uFS!==void 0)return uFS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uFS=z},{mode:1});var ZU4;var HUy;var l6=function(){var z=_.q.apply(this,arguments)||this;z.transferState="TRANSFER_STATE_UNKNOWN";return z};
_.m(l6,_.q);l6.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
l6.prototype.onCheckboxChange=function(z){var l=this;this.data&&_.z4(this,"yt-playlist-checkbox-changed",function(){var I=_.pJ(z).checked?l.data.addToPlaylistServiceEndpoint:l.data.removeFromPlaylistServiceEndpoint;I&&_.pG().resolve(_.DQ).resolveCommand(I,{form:{element:l.hostElement}});_.C("dl_playlist_killswitch")||l.transferState!=="TRANSFER_STATE_UNKNOWN"&&l.transferState!=="TRANSFER_STATE_FAILED"&&l.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:l.data.playlistId,action:"ACTION_SYNC"}})},
100)};
l6.prototype.computeIconType=function(z){return z?"yt-icons:"+z.toLowerCase():null};
l6.prototype.dataChanged=l6.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],l6.prototype,"data",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],l6.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],l6.prototype,"ytComponentBehavior",void 0);_.e([_.qX("#checkbox"),_.w("design:type",HTMLInputElement)],l6.prototype,"checkbox",void 0);
_.e([_.X({selector:_.Am,selectorArgs:["data.playlistId"]}),_.w("design:type",String)],l6.prototype,"transferState",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],l6.prototype,"dataChanged",null);_.e([_.S({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],l6);
_.r(l6,"ytd-playlist-add-to-option-renderer",function(){if(HUy!==void 0)return HUy;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return HUy=z},{mode:1});var yly=_.P(function(z){var l=z.data;return _.N("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.N("div",null,_.N(_.Rf,{text:function(){return l().title}})),_.N(_.E,{cond:function(){return l().subtitle},
then:function(I){return _.N("div",{class:"ytdMenuTitleRendererSubtitle"},_.N(_.Rf,{text:I}))}}))},"zh");
yly.idomCompat=!0;_.uO(yly,"ytd-menu-title-renderer",{props:{data:_.mB}});var IO=function(){var z=_.q.apply(this,arguments)||this;z.addToStrings={ADD_TO_DROPDOWN_LABEL:_.mY("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};z.closeButtonAriaLabel=_.mY("SBOX_INAPPROPRIATE_CANCEL");z.dialog=_.C("desktop_add_to_playlist_renderer_dialog_popup");return z};
_.m(IO,_.q);_.p=IO.prototype;_.p.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"}}}};
_.p.onPopupOpened=function(){_.fJ(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.p.onPopupClosed=function(){_.fJ(this.playlists,"scrollable",!1)};
_.p.computeAriaLabel=function(){var z;if(this==null?0:(z=this.data)==null?0:z.actions){z=_.D(this.data.actions);for(var l=z.next();!l.done;l=z.next())if(l=l.value,l.menuTitleRenderer)return _.ID(l.menuTitleRenderer.title)}};
_.p.onTapClose=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.vP.Object.defineProperties(IO.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var z;if(this==null?0:(z=this.data)==null?0:z.actions){z=_.D(this.data.actions);for(var l=z.next();!l.done;l=z.next())if(l=l.value,l.menuTitleRenderer)return l.menuTitleRenderer}return!1}}});
IO.prototype.onPopupClosed=IO.prototype.onPopupClosed;IO.prototype.onPopupOpened=IO.prototype.onPopupOpened;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],IO.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],IO.prototype,"ytRendererStamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],IO.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],IO.prototype,"addToStrings",void 0);_.e([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.w("design:type",String)],IO.prototype,"ariaLabel",void 0);_.e([_.X(),_.w("design:type",String)],IO.prototype,"closeButtonAriaLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],IO.prototype,"dialog",void 0);
_.e([_.qX("#playlists"),_.w("design:type",HTMLElement)],IO.prototype,"playlists",void 0);_.e([_.qX("ytd-add-to-playlist-create-renderer"),_.w("design:type",Object)],IO.prototype,"createRenderer",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],IO.prototype,"menuTitleRenderer",null);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IO.prototype,"onPopupOpened",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],IO.prototype,"onPopupClosed",null);_.e([_.S({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],IO);
_.r(IO,"ytd-add-to-playlist-renderer",function(){if(ZU4!==void 0)return ZU4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ZU4=z},{mode:1});var f8C;var b6=function(){var z=_.q.apply(this,arguments)||this;z.isPlaylistEditComplete=!1;z.isCollabEngagementDisabled=!1;z.closeButtonAriaLabel=_.mY("SBOX_INAPPROPRIATE_CANCEL");z.saveButton={title:_.mY("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"};z.onValueChanged=function(){z.updateSaveButtonState();z.computeCollabEngagementDisabled()};
return z};
_.m(b6,_.q);_.p=b6.prototype;_.p.attached=function(){this.JSC$20537_scroller&&(this.JSC$20537_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20537_scroller.attached&&typeof this.JSC$20537_scroller.attached==="function"&&this.JSC$20537_scroller.attached())};
_.p.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.p.onPopupClosed=function(){this.reset()};
_.p.close=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.p.onClickSave=function(){var z=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var l=[];this.nameInput.value!==null&&l.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&l.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||l.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&l.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(l.length>0){var b;_.k((b=this.data)==null?void 0:b.updateSettingsEndpoint,_.M1).actions=l;var v;if((v=this.data)==null?0:v.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){z.close()}}}),this.isPlaylistEditComplete=!0}}};
_.p.computePrivacyBadge=function(z){return z?[{metadataBadgeRenderer:z}]:[]};
_.p.computeEditorData=function(z){var l,I;return z==null?void 0:(l=z.sections)==null?void 0:(I=l[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer};
_.p.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.p.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}}}}}};
_.p.computeAriaLabel=function(){var z,l,I,b=(z=this.data)==null?void 0:(l=z.sections)==null?void 0:(I=l[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer;return _.ID(b==null?void 0:b.title)};
_.p.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"}))};
_.p.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.p.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.p.isNameChanged=function(){var z,l,I;return(((z=this.editorData)==null?void 0:(l=z.name)==null?void 0:(I=l.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.p.isDescriptionChanged=function(){var z,l,I;return(((z=this.editorData)==null?void 0:(l=z.description)==null?void 0:(I=l.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.p.isPrivacyChanged=function(){var z,l,I,b,v,M,x,g;return((x=(z=this.editorData)==null?void 0:(l=z.privacy)==null?void 0:(I=l.dropdownFormFieldRenderer)==null?void 0:(b=I.dropdown)==null?void 0:(v=b.dropdownRenderer)==null?void 0:(M=v.entries)==null?void 0:M.find(function(G){var u;return G==null?void 0:(u=G.privacyDropdownItemRenderer)==null?void 0:u.isSelected}))==null?void 0:(g=x.privacyDropdownItemRenderer)==null?void 0:g.int32Value)!==this.privacyInput.value};
_.p.isVotingChanged=function(){var z,l,I,b,v,M,x,g;return((x=(z=this.editorData)==null?void 0:(l=z.voting)==null?void 0:(I=l.dropdownFormFieldRenderer)==null?void 0:(b=I.dropdown)==null?void 0:(v=b.dropdownRenderer)==null?void 0:(M=v.entries)==null?void 0:M.find(function(G){var u;return G==null?void 0:(u=G.privacyDropdownItemRenderer)==null?void 0:u.isSelected}))==null?void 0:(g=x.privacyDropdownItemRenderer)==null?void 0:g.int32Value)!==this.votingInput.value};
b6.prototype.onPopupClosed=b6.prototype.onPopupClosed;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],b6.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],b6.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],b6.prototype,"ytRendererStamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],b6.prototype,"data",void 0);_.e([_.X({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.w("design:type",Array)],b6.prototype,"privacyBadge",void 0);_.e([_.X({computed:"computeEditorData(data)"}),_.w("design:type",Object)],b6.prototype,"editorData",void 0);_.e([_.X(),_.w("design:type",Object)],b6.prototype,"isPlaylistEditComplete",void 0);_.e([_.X(),_.w("design:type",Object)],b6.prototype,"isCollabEngagementDisabled",void 0);
_.e([_.X({value:{REQUIRED_LABEL:_.mY("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.mY("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.w("design:type",Object)],b6.prototype,"addToStrings",void 0);_.e([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.w("design:type",String)],b6.prototype,"ariaLabel",void 0);_.e([_.X(),_.w("design:type",String)],b6.prototype,"closeButtonAriaLabel",void 0);
_.e([_.X(),_.w("design:type",Object)],b6.prototype,"saveButton",void 0);_.e([_.qX("#name-input"),_.w("design:type",Object)],b6.prototype,"nameInput",void 0);_.e([_.qX("#description-input"),_.w("design:type",Object)],b6.prototype,"descriptionInput",void 0);_.e([_.qX("#privacy-input"),_.w("design:type",Object)],b6.prototype,"privacyInput",void 0);_.e([_.qX("#voting-input"),_.w("design:type",Object)],b6.prototype,"votingInput",void 0);
_.e([_.qX("#scroller"),_.w("design:type",Object)],b6.prototype,"JSC$20537_scroller",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],b6.prototype,"onPopupClosed",null);_.e([_.X(),_.w("design:type",Object)],b6.prototype,"onValueChanged",void 0);_.e([_.S({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],b6);
_.r(b6,"ytd-playlist-settings-editor-renderer",function(){if(f8C===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);f8C=z}z=f8C;return z},{mode:1});var C48;_.sW("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var vB=function(){return _.q.apply(this,arguments)||this};
_.m(vB,_.q);_.p=vB.prototype;_.p.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}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.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 z=this.get("data.nextButton.buttonRenderer.navigationEndpoint");z&&(this.nextNavigationEndpoint=z,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.p.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 z={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",z)}}};
_.p.onPopupOpened=function(z){z.detail!==this&&z.detail!==this.hostElement||!_.C("enable_premium_voluntary_pause")||_.Gb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.p.onNextButtonTap=function(){var z=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);z&&this.ytdOpenPopupBehavior.openPopup(z)};
_.p.updateSelectedResponseIndexFromBinding=function(z){this.selectedResponseIndex=z.detail.value};
vB.prototype.onPopupOpened=vB.prototype.onPopupOpened;vB.prototype.onSelectedResponseIndexChange=vB.prototype.onSelectedResponseIndexChange;vB.prototype.dataChanged=vB.prototype.dataChanged;_.e([_.t(_.XD),_.w("design:type",Object)],vB.prototype,"ytdOpenPopupBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],vB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],vB.prototype,"selectedResponseIndex",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vB.prototype,"dataChanged",null);_.e([_.By("selectedResponseIndex"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],vB.prototype,"onSelectedResponseIndexChange",null);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],vB.prototype,"onPopupOpened",null);_.e([_.S({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],vB);
_.r(vB,"ytd-red-cancel-survey-renderer",function(){if(C48!==void 0)return C48;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return C48=z},{mode:1});var kw8;var MD=function(){var z=_.q.apply(this,arguments)||this;z.closeButtonAriaLabel=_.mY("SBOX_INAPPROPRIATE_CANCEL");return z};
_.m(MD,_.q);MD.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
MD.prototype.onClickClose=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],MD.prototype,"rendererStamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],MD.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],MD.prototype,"closeButtonAriaLabel",void 0);_.e([_.S({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],MD);
_.r(MD,"ytd-search-filter-options-dialog-renderer",function(){if(kw8!==void 0)return kw8;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return kw8=z},{mode:1});var RkX;var pUs=function(){return function(z){z=z.availabilityType;return z===void 0||z==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||z==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var pb=function(){var z=_.q.apply(this,arguments)||this;z.qualityOptions=[];z.upsellOptions=[];z.showUpsellSection=!1;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.rememberSettingsChecked=!1;return z};
_.m(pb,_.q);_.p=pb.prototype;_.p.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}}}}};
_.p.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.p.updateQualityOptions=function(){if(this.formats===void 0)_.Gb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var z=[],l=[];this.showUpsellSection=!1;for(var I=_.D(this.formats),b=I.next();!b.done;b=I.next())(b=b.value)&&(b.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?l.push(b):z.push(b));z.length&&(this.qualityOptions=M9c(z));l.length&&(this.showUpsellSection=!0,this.upsellOptions=M9c(l))}};
_.p.updateRememberString=function(){if(this.downloadQualityPickerEntity)var z=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var l;z=(l=this.data)==null?void 0:l.premiumRememberSettingString}else{var I;z=(I=this.data)==null?void 0:I.rememberSettingString}z=z===void 0?_.mY("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):z;this.rememberSettingsCheckboxRenderer={title:_.xw(z),disabled:!1}};
_.p.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.vP.Object.defineProperties(pb.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var z;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(z=this.data)==null?void 0:z.qualityFormats}}});
pb.prototype.updateRememberString=pb.prototype.updateRememberString;pb.prototype.updateQualityOptions=pb.prototype.updateQualityOptions;pb.prototype.dataChanged=pb.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pb.prototype,"data",void 0);
_.e([_.t(_.gU),_.w("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Boolean)],pb.prototype,"selectedUpsellQuality",void 0);_.e([_.X({computed:"computeIcon_(data.premiumIcon)",value:""}),_.w("design:type",String)],pb.prototype,"premiumIcon",void 0);_.e([_.X({selector:zvS,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.w("design:type",Object)],pb.prototype,"downloadQualityPickerEntity",void 0);
_.e([_.X(),_.w("design:type",Array)],pb.prototype,"qualityOptions",void 0);_.e([_.X(),_.w("design:type",Array)],pb.prototype,"upsellOptions",void 0);_.e([_.X(),_.w("design:type",Object)],pb.prototype,"showUpsellSection",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],pb.prototype,"darkerDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],pb.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.e([_.qX("#remember-settings"),_.w("design:type",HTMLInputElement)],pb.prototype,"rememberSettingsCheckbox",void 0);_.e([_.X(),_.w("design:type",Object)],pb.prototype,"rememberSettingsChecked",void 0);_.e([_.X(),_.w("design:type",Function)],pb.prototype,"onRememberSettingsCheckedChanged",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pb.prototype,"dataChanged",null);
_.e([_.By("downloadQualityPickerEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pb.prototype,"updateQualityOptions",null);_.e([_.By("selectedUpsellQuality"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],pb.prototype,"updateRememberString",null);_.e([_.S({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],pb);
_.r(pb,"ytd-download-quality-selector-content",function(){if(RkX!==void 0)return RkX;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return RkX=z},{mode:1});var m9K;var DB=function(){var z=_.q.apply(this,arguments)||this;z.selectedUpsellQuality=!1;z.qualityOptions=[];z.darkerDarkTheme=_.C("web_darker_dark_theme");z.useUpsellDismissAlternate=_.C("use_not_now_dl_upsell_dismiss_cta");z.shouldShowAlternateUpsellDimiss=!1;z.rememberSettings=!1;z.rememberSettingsChecked=!1;z.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};z.rememberSettingsCheckedChanged=function(l){z.rememberSettingsChecked=l};
return z};
_.m(DB,_.q);_.p=DB.prototype;
_.p.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xw(_.mY("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xw(_.mY("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.xw(_.mY("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.xw(_.mY("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.p.updateQualityOptions=function(){this.formats===void 0?_.Gb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=M9c(this.formats)};
_.p.onQualityOptionsSelect=function(z){if(this.qualityOptions&&z){z!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var l=_.D(this.qualityOptions.entries()),I=l.next();!I.done;I=
l.next()){I=_.D(I.value);var b=I.next().value;I=I.next().value;var v=void 0,M=void 0;if(((v=I)==null?void 0:(M=v.settingsRadioOptionRenderer)==null?void 0:M.id)===z){this.selectedQualityIndex=b;z=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((z=this.formats[b])==null?void 0:z.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.p.onClickSubmit=function(){var z;if((z=this.downloadButtonRenderer)==null||!z.isDisabled){var l,I;z=(I=(l=this.data)==null?void 0:l.onSubmitEndpoint)!=null?I:{};var b,v;if(this.formats&&(((b=_.k(z,_.qv))==null?0:b.videoId)||((v=_.k(z,_.i1))==null?0:v.playlistId))){var M,x,g,G,u,Z;l={formatType:(G=(M=this.formats)==null?void 0:(x=M[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:x.format)!=null?G:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(u=this.getOfflineEndpoint(z))==null?void 0:(Z=u.actionParams)==null?void 0:Z.settingsAction)};this.getOfflineEndpoint(z).actionParams=l;this.ytComponentBehavior.resolveCommand(z)}_.Gb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.p.onClickUpsell=function(){var z;if((z=this.upsellButtonRenderer)==null||!z.isDisabled){var l,I;z=(I=(l=this.data)==null?void 0:l.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(z);_.Gb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);l="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var b,v,M,x;l=(x=(b=this.formats)==null?void 0:(v=b[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:v.format)!=null?x:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:l}})}};
_.p.onClickClose=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.p.getOfflineSettingsAction=function(z,l){return z?l===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":l:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.p.getOfflineEndpoint=function(z){return _.k(z,_.qv)?_.k(z,_.qv):_.k(z,_.i1)};
_.vP.Object.defineProperties(DB.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.xw(_.mY("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var z;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(z=this.data)==null?void 0:z.qualityFormats}}});
DB.prototype.updateQualityOptions=DB.prototype.updateQualityOptions;DB.prototype.dataChanged=DB.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],DB.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],DB.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Number)],DB.prototype,"selectedQualityIndex",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"selectedUpsellQuality",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],DB.prototype,"ytdReduxBehavior",void 0);
_.e([_.X({selector:zvS,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.w("design:type",Object)],DB.prototype,"downloadQualityPickerEntity",void 0);_.e([_.X(),_.w("design:type",Array)],DB.prototype,"qualityOptions",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],DB.prototype,"darkerDarkTheme",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],DB.prototype,"useUpsellDismissAlternate",void 0);
_.e([_.X(),_.w("design:type",Object)],DB.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"downloadButtonRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"upsellButtonRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"cancelButtonRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"upsellCancelButtonRenderer",void 0);_.e([_.X(),_.w("design:type",Object)],DB.prototype,"rememberSettings",void 0);
_.e([_.X(),_.w("design:type",Object)],DB.prototype,"rememberSettingsChecked",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DB.prototype,"dataChanged",null);_.e([_.By("downloadQualityPickerEntity"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],DB.prototype,"updateQualityOptions",null);_.e([_.S({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],DB);
_.r(DB,"ytd-download-quality-selector-renderer",function(){if(m9K!==void 0)return m9K;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return m9K=z},{mode:1});var Kly;var xe=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(xe,_.q);xe.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xe.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],xe.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],xe.prototype,"darkerDarkTheme",void 0);_.e([_.X({computed:"computeIcon_(data.infoIcon)"}),_.w("design:type",Object)],xe.prototype,"infoIcon",void 0);
_.e([_.X({computed:"computeIcon_(data.warningIcon)"}),_.w("design:type",Object)],xe.prototype,"warningIcon",void 0);_.e([_.S({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],xe);
_.r(xe,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Kly!==void 0)return Kly;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return Kly=z},{mode:1});var teX;var On=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(On,_.q);On.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
On.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],On.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],On.prototype,"darkerDarkTheme",void 0);_.e([_.S({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],On);
_.r(On,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(teX!==void 0)return teX;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return teX=z},{mode:1});var BjW;var gX=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(gX,_.q);gX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gX.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"}}}}};
gX.prototype.onServiceRequestSentOrCompleted=function(z,l){l&&l.actions&&l.actions.length>0&&_.Gb(this.hostElement,"yt-close-popup-action",[this.is])};
gX.prototype.onServiceRequestSentOrCompleted=gX.prototype.onServiceRequestSentOrCompleted;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gX.prototype,"darkerDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],gX.prototype,"data",void 0);
_.e([_.tP("yt-service-request-completed"),_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],gX.prototype,"onServiceRequestSentOrCompleted",null);_.e([_.S({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],gX);
_.r(gX,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(BjW!==void 0)return BjW;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return BjW=z},{mode:1});var XA1;var GI=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.submitButtonDisabled=!0;return z};
_.m(GI,_.q);_.p=GI.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.p.onDataChanged=function(){var z,l,I;if(((z=this.data)==null?void 0:(l=z.confirmButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var b,v,M;this.submitButtonDisabled=(b=this.data)==null?void 0:(v=b.confirmButton)==null?void 0:(M=v.buttonRenderer)==null?void 0:M.isDisabled}};
_.p.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.p.updateSubmitButtonDisabledFromBinding=function(z){this.submitButtonDisabled=z.detail.value};
_.p.updateSubmitButtonDisabledFromConfirmCheckbox=function(z){this.submitButtonDisabled=!z.detail.value};
GI.prototype.onDataChanged=GI.prototype.onDataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],GI.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],GI.prototype,"darkerDarkTheme",void 0);
_.e([_.X(),_.w("design:type",Object)],GI.prototype,"submitButtonDisabled",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GI.prototype,"onDataChanged",null);_.e([_.S({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],GI);
_.r(GI,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(XA1!==void 0)return XA1;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return XA1=z},{mode:1});var qL8;var ND=function(){return _.q.apply(this,arguments)||this};
_.m(ND,_.q);_.vP.Object.defineProperties(ND.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var z,l,I;return((z=this.data)==null?void 0:z.title)+" "+((l=this.data)==null?void 0:l.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ND.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ND.prototype,"data",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],ND.prototype,"ariaLabel",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],ND);
_.r(ND,"ytd-compact-product-list-item-renderer",function(){if(qL8!==void 0)return qL8;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return qL8=z},{mode:1});var iUl;var En=function(){return _.q.apply(this,arguments)||this};
_.m(En,_.q);En.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]]"}}}}}};
_.vP.Object.defineProperties(En.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],En.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],En.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],En);
_.r(En,"ytd-compact-product-list-renderer",function(){if(iUl!==void 0)return iUl;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return iUl=z},{mode:1});var FlK;var u6=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(u6,_.q);_.p=u6.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.getBackgroundUrl=function(){var z=this.get("data.headerImage.thumbnails");return z?"url("+_.ZY(z,this.hostElement.clientWidth)+")":""};
_.p.onDataChanged=function(){var z=this.getBackgroundUrl();z&&(this.header.style.backgroundImage=z);z=_.sU();var l=_.h8(),I=this.get("data.trackingParams");I&&l&&z&&_.LM(z,l,_.ch(I));z=_.D(this.hostElement.querySelectorAll("yt-img-shadow"));for(l=z.next();!l.done;l=z.next())l.value.onShow()};
_.p.onPopupClosed=function(z){_.pJ(z).localName==="ytd-membership-post-cancel-renderer"&&_.Gb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
u6.prototype.onPopupClosed=u6.prototype.onPopupClosed;u6.prototype.onDataChanged=u6.prototype.onDataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],u6.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],u6.prototype,"darkerDarkTheme",void 0);
_.e([_.qX("#header"),_.w("design:type",HTMLDivElement)],u6.prototype,"header",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],u6.prototype,"onDataChanged",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],u6.prototype,"onPopupClosed",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],u6);
_.r(u6,"ytd-membership-post-cancel-renderer",function(){if(FlK!==void 0)return FlK;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return FlK=z},{mode:1});var QB4;var ZB=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(ZB,_.q);ZB.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ZB.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ZB.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],ZB.prototype,"darkerDarkTheme",void 0);_.e([_.qX("ytd-feedback-survey-renderer"),_.w("design:type",Object)],ZB.prototype,"feedbackSurveyRenderer",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ZB);
_.r(ZB,"ytd-sponsorship-confirm-cancel-content",function(){if(QB4!==void 0)return QB4;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return QB4=z},{mode:1});var YLs;var HB=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.maybeSubmitFeedback=function(){z.content&&z.content.maybeSubmitFeedback()};
return z};
_.m(HB,_.q);_.p=HB.prototype;_.p.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.p.onYtPopupOpened=function(z,l){l===this&&this.data&&this.data.onOpenCommands&&_.ZE(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Gb(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.p.onYtPopupClosed=function(z,l){(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ZE(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.p.onYtServiceRequestError=function(z){_.IF(this.hostElement,z.detail.error.message)};
_.p.onDataChanged=function(){if(this.isAttached){var z=this.backgroundUrl;z&&(_.Hy(this.hostElement).querySelector("#header").style.backgroundImage=z)}};
_.vP.Object.defineProperties(HB.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var z=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return z?"url("+_.ZY(z,this.hostElement.clientWidth)+")":""}}});
HB.prototype.onDataChanged=HB.prototype.onDataChanged;HB.prototype.onYtServiceRequestError=HB.prototype.onYtServiceRequestError;HB.prototype.onYtServiceRequestCompleted=HB.prototype.onYtServiceRequestCompleted;HB.prototype.onYtPopupClosed=HB.prototype.onYtPopupClosed;HB.prototype.onYtPopupOpened=HB.prototype.onYtPopupOpened;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],HB.prototype,"data",void 0);_.e([_.X({value:function(){return _.mY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.w("design:type",String)],HB.prototype,"closeButtonAriaLabel",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],HB.prototype,"darkerDarkTheme",void 0);_.e([_.qX("#scrollable"),_.w("design:type",Object)],HB.prototype,"scrollable",void 0);_.e([_.qX("ytd-sponsorship-confirm-cancel-content"),_.w("design:type",Object)],HB.prototype,"content",void 0);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],HB.prototype,"onYtPopupOpened",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],HB.prototype,"onYtPopupClosed",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],HB.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],HB.prototype,"onYtServiceRequestError",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],HB.prototype,"onDataChanged",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],HB);
_.r(HB,"ytd-sponsorship-confirm-cancel-renderer",function(){if(YLs!==void 0)return YLs;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return YLs=z},{mode:_.yP("kevlar_poly_si_batch_j081")?1:2});var TjC;var yf=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(yf,_.q);yf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],yf.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],yf.prototype,"darkerDarkTheme",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],yf);
_.r(yf,"ytd-sponsorships-celebration-content",function(){if(TjC!==void 0)return TjC;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return TjC=
z},{mode:1});var cls;var SLs=_.zs(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),fb=function(){var z=_.q.apply(this,arguments)||this;z.scriptsAppended=!1;z.useFullWidthPrimaryButton=!1;z.buttonOverrides={type:"tonal",style:"overlay-dark"};return z};
_.m(fb,_.q);_.p=fb.prototype;_.p.dataChanged=function(){var z;this.useFullWidthPrimaryButton=!((z=this.data)==null||!z.useFullWidthPrimaryButton)};
_.p.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:_.C("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var z;(z=this.header)==null||z.style.setProperty("background-color",this.backgroundColor);if(z=this.headerImageUrl){var l;(l=this.header)==null||l.style.setProperty("background-image",z)}l=_.sU(4);z=_.h8(4);var I=this.get("data.trackingParams");if(I&&z&&l){var b=_.ch(I);_.LM(l,z,b);_.C("combine_ve_grafts")?_.iY().graftServerVe(I,z,4):_.LM(l,z,b)}l=_.D(this.hostElement.querySelectorAll("yt-img-shadow"));for(z=l.next();!z.done;z=l.next())z.value.onShow();if(l=this.get("data.gtmId"))_.If(l,
_.sZ("GL","")),this.setupConversionTracking()};
_.p.setupConversionTracking=function(){if(!this.scriptsAppended){var z=document.createElement("script");var l=_.bt(SLs.join(""));_.v0(z,l);document.head.appendChild(z);z=document.createElement("noscript");z.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(z);this.scriptsAppended=!0}};
_.p.onPopupClosed=function(z){if(_.pJ(z).localName==="ytd-sponsorships-celebration-renderer"){_.Gb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var l;this.data&&((l=this.data)==null?0:l.dismissCommand)&&_.KE.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.vP.Object.defineProperties(fb.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var z=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.aD(z)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var z=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return z?"url("+_.ZY(z,this.hostElement.getBoundingClientRect().width)+")":""}}});
fb.prototype.onPopupClosed=fb.prototype.onPopupClosed;fb.prototype.onDataChanged=fb.prototype.onDataChanged;fb.prototype.dataChanged=fb.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],fb.prototype,"data",void 0);
_.e([_.qX("#header"),_.w("design:type",HTMLElement)],fb.prototype,"header",void 0);_.e([_.X(),_.w("design:type",Object)],fb.prototype,"scriptsAppended",void 0);_.e([_.X({type:Boolean,reflectToAttribute:!0}),_.w("design:type",Object)],fb.prototype,"useFullWidthPrimaryButton",void 0);_.e([_.X(),_.w("design:type",Object)],fb.prototype,"buttonOverrides",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fb.prototype,"dataChanged",null);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],fb.prototype,"onDataChanged",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],fb.prototype,"onPopupClosed",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],fb);
_.r(fb,"ytd-sponsorships-celebration-renderer",function(){if(cls!==void 0)return cls;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return cls=z},{mode:1});var d9l;var Cb=function(){var z=_.q.apply(this,arguments)||this;z.isToggleChecked=!1;return z};
_.m(Cb,_.q);Cb.prototype.onDataChanged=function(){var z;this.isToggleChecked=((z=this.data)==null?void 0:z.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Cb.prototype.close=function(){var z;((z=this.data)==null?0:z.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Cb.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var z,l=_.k((z=this.data)==null?void 0:z.switchButton,sVX);l&&(this.isToggleChecked&&l.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(l.switchOnInnertubeCommand),!this.isToggleChecked&&l.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(l.switchOffInnertubeCommand))};
Cb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cb.prototype.onDataChanged=Cb.prototype.onDataChanged;_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Cb.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],Cb.prototype,"isToggleChecked",void 0);_.e([_.X({value:_.mY("CLOSE")}),_.w("design:type",String)],Cb.prototype,"closeButtonAriaLabel",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Cb.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Cb);
_.r(Cb,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(d9l!==void 0)return d9l;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return d9l=z},{mode:1});var or4;var ke=function(){return _.q.apply(this,arguments)||this};
_.m(ke,_.q);_.p=ke.prototype;_.p.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"}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.detached=function(){this.playerElement.stop()};
_.p.onYtServiceRequestCompleted=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.p.onYtServiceRequestError=function(z){_.IF(this.hostElement,z.detail.error.message)};
_.p.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.p.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.p.getTier=function(z,l){return!z||!z.tiers||l<0?null:_.k(z.tiers[l],wLW)};
_.p.moreThanOne=function(z){return!!(z&&z.length>1)};
_.p.tierOverviewTap=function(z){var l=this;this.selectedTier=z.model.index;_.IR(this,function(){_.gC(l.hostElement,"yt-refit")})};
_.p.computeSelectedClass=function(z,l){return this.isSelected(z,l)?"selected":""};
_.p.computeButtonAriaPressed=function(z,l){return this.isSelected(z,l)?"true":"false"};
_.p.isSelected=function(z,l){return z===l};
_.p.onDataChanged=function(){_.Hy(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Hy(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 z=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),
l=z.next();!l.done;l=z.next())l.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var b;(z=(b=this.data)==null?void 0:b.onVisible)&&this.ytComponentBehavior.resolveCommand(z)};
_.p.initializeVe=function(z){var l=_.sU(),I=_.h8(),b=this.get("data.trackingParams");I&&l&&(this.screenLayer=4,l=_.em(_.hUp)(void 0,69877,{clientScreenNonce:l,visualElement:I},void 0,void 0,void 0),_.$O(l,69877,4),I=_.h8(4),b&&I&&(b=_.ch(b),_.LM(l,I,b),z&&(this.offerVideoVe=_.kU(74659),_.LM(l,b,this.offerVideoVe))))};
_.p.setHeaderBackground=function(){var z=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Hy(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.aD(z);if(z=this.getHeaderImage())z=_.ZY(z,screen.width),_.Hy(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+z+")"};
_.p.getHeaderImage=function(){var z=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&z?z:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setupVideoPlayer=function(z){var l=this,I,b,v,M;return _.O(function(x){if(x.nextAddress==1)return I=l.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),b=l.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.C("kevlar_player_update_killswitch")?l.playerElement.update({args:{autoplay:I,video_id:z,player_params:b}}):l.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:z,player_params:b}),
x.yield(l.playerElement.getPlayerPromise(),2);v=x.yieldResult;v.addEventListener("onStateChange",function(g){l.onPlayerStateChange(g)});
v.setScreenLayer(l.screenLayer);(M=_.sU(4))&&l.offerVideoVe&&_.am(M,l.offerVideoVe);I&&(l.pauseOtherPlayers(),l.playerElement.focusOnPlayer(),l.playerElement.getPlayer().hideControls(),_.qA(_.ow,function(){l.fadeOutHeaderOverlay()},4E3));
_.qe(x)})};
_.p.onPlayerStateChange=function(z){z===1?this.backgroundPlayerElement&&(z=this.backgroundPlayerElement.player_.getPlayerState(),z!==1&&z!==3||this.backgroundPlayerElement.pause()):z===0&&(_.Hy(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Hy(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.p.fadeOutHeaderOverlay=function(){_.Hy(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.p.onHeaderTap=function(){if(this.offerVideo){_.Hy(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var z;((z=this.playerElement.player_)==null?void 0:z.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(z=_.sU(4))&&this.offerVideoVe&&_.JH(z,this.offerVideoVe)}};
_.p.getBackgroundImageLayerClass=function(z){return z?"background-image-layer-with-video":""};
_.p.getHeaderClass=function(z){return z?"header-with-video":""};
_.p.getHeaderOverlayClass=function(z){return z?"header-overlay-with-video":""};
_.p.getTitleContainerClass=function(z,l){return z?"title-container-with-video":l?"title-container-without-video-flexible":"title-container-without-video"};
_.p.tierTitleDisplayStatus=function(z){return this.moreThanOne(z)?"hide":"show"};
_.p.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.pG().resolve(_.Af).getPlayerElement():this.backgroundPlayerElement=_.GS();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var z=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=z===1||z===3;this.backgroundPlayerElement.pause()}};
_.p.isMiniplayerActive=function(){return _.pG().resolve(_.Af).isMiniplayerActive()};
_.p.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("selected-tier-changed",this.selectedTier))};
ke.prototype.selectedTierChangedForBinding=ke.prototype.selectedTierChangedForBinding;ke.prototype.onDataChanged=ke.prototype.onDataChanged;ke.prototype.onYtPopupClosed=ke.prototype.onYtPopupClosed;ke.prototype.onYtPopupOpened=ke.prototype.onYtPopupOpened;ke.prototype.onYtServiceRequestError=ke.prototype.onYtServiceRequestError;ke.prototype.onYtServiceRequestCompleted=ke.prototype.onYtServiceRequestCompleted;
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],ke.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],ke.prototype,"data",void 0);_.e([_.X({value:0}),_.w("design:type",Number)],ke.prototype,"selectedTier",void 0);
_.e([_.X({value:""}),_.w("design:type",String)],ke.prototype,"offerVideo",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],ke.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.e([_.X({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.UY(this)}}),
_.w("design:type",String)],ke.prototype,"playerId",void 0);_.e([_.qX("tp-yt-paper-dialog-scrollable"),_.w("design:type",Object)],ke.prototype,"scrollable",void 0);_.e([_.qX("ytd-sponsorships-tier-renderer"),_.w("design:type",Object)],ke.prototype,"tierRenderer",void 0);_.e([_.qX("#player"),_.w("design:type",Object)],ke.prototype,"playerElement",void 0);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ke.prototype,"onYtServiceRequestCompleted",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],ke.prototype,"onYtServiceRequestError",null);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ke.prototype,"onYtPopupOpened",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ke.prototype,"onYtPopupClosed",null);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ke.prototype,"onDataChanged",null);
_.e([_.By("selectedTier"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ke.prototype,"selectedTierChangedForBinding",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ke);
_.r(ke,"ytd-sponsorships-offer-renderer",function(){if(or4!==void 0)return or4;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return or4=z},{mode:_.yP("kevlar_poly_si_batch_j077")?1:2});var P41;var RO=function(){var z=_.q.apply(this,arguments)||this;z.buttonOverrides={type:"filled",style:"mono"};return z};
_.m(RO,_.q);RO.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}}}}}};
RO.prototype.backgroundColorChanged=function(){var z,l,I,b=(l=_.k((z=this.data)==null?void 0:z.content,Aol))==null?void 0:(I=l.backgroundColor)==null?void 0:I.backgroundColor;b&&(z=_.Ur(b),_.Hy(this.hostElement).querySelector("#banner").style.backgroundColor=z,_.Hy(this.hostElement).querySelector("#abstract-art").style.backgroundColor=z)};
RO.prototype.attached=function(){this.JSC$20623_scroller&&(this.JSC$20623_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20623_scroller.attached&&typeof this.JSC$20623_scroller.attached==="function"&&this.JSC$20623_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RO.prototype.backgroundColorChanged=RO.prototype.backgroundColorChanged;_.e([_.X(),_.w("design:type",Object)],RO.prototype,"data",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#scroller"),_.w("design:type",Object)],RO.prototype,"JSC$20623_scroller",void 0);_.e([_.X(),_.w("design:type",Object)],RO.prototype,"buttonOverrides",void 0);
_.e([_.By("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],RO.prototype,"backgroundColorChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],RO);
_.r(RO,"ytd-sponsorships-promotion-celebration-renderer",function(){if(P41!==void 0)return P41;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return P41=z},{mode:_.yP("kevlar_poly_si_batch_j077")?1:2});var hkS;var sBK;var mo=function(){return _.q.apply(this,arguments)||this};
_.m(mo,_.q);mo.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
mo.prototype.computeIsInitiallyChecked=function(z){return z===1};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],mo.prototype,"data",void 0);_.e([_.qX("#checkbox"),_.w("design:type",Object)],mo.prototype,"checkbox",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],mo);
_.r(mo,"ytd-subscription-toggle-option-renderer",function(){if(sBK!==void 0)return sBK;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return sBK=z},{mode:1});var Kb=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return z};
_.m(Kb,_.q);Kb.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"}}}};
Kb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Kb.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var z=_.Hy(this.hostElement).querySelector("#options").selected;z=this.data.options[z].subscriptionRadioOptionRenderer.serviceEndpoint;var l=_.Hy(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");l&&z&&z.modifyChannelNotificationPreferenceEndpoint&&(l=l.getValue())&&(z.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[l]);_.pG().resolve(_.DQ).resolveCommand(z,{form:{element:this.hostElement}});
_.Gb(this.hostElement,"yt-close-popup-action")};
_.vP.Object.defineProperties(Kb.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var z=this.data.options,l=0;l<z.length;l++){var I=z[l].subscriptionRadioOptionRenderer;if(I&&I.selected)return l}return null}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],Kb.prototype,"eventForwardingBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],Kb.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],Kb.prototype,"darkerDarkTheme",void 0);_.e([_.B("data.options"),_.w("design:type",Object),_.w("design:paramtypes",[])],Kb.prototype,"initialIndex",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Kb);
_.r(Kb,"ytd-subscription-notification-options-renderer",function(){if(hkS!==void 0)return hkS;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return hkS=z},{mode:1});var rlS;var tB=function(){return _.q.apply(this,arguments)||this};
_.m(tB,_.q);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],tB.prototype,"data",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],tB);
_.r(tB,"ytd-tvfilm-offer-groups-renderer",function(){if(rlS!==void 0)return rlS;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return rlS=z},{mode:1});var $9s;var BB=function(){var z=_.q.apply(this,arguments)||this;z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(BB,_.q);_.p=BB.prototype;_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.p.computeThumbnailClass=function(z){return z.thumbnailOverlays?z.isShow?"thumbnail-show":"thumbnail-movie":z.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.p.computeCommerceSectionClass=function(z){return z.offers&&z.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.p.computeTitleClass=function(z){return z.offers&&z.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.p.onDataChanged=function(){[].concat(_.ht(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(z){z.onShow()})};
BB.prototype.onDataChanged=BB.prototype.onDataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],BB.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],BB.prototype,"darkerDarkTheme",void 0);
_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],BB.prototype,"onDataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],BB);
_.r(BB,"ytd-ypc-offers-overlay-renderer",function(){if($9s!==void 0)return $9s;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return $9s=z},{mode:_.yP("kevlar_poly_si_batch_j028")?1:2});var ekl;var wAK=function(){this.usedMethods=new Set};
wAK.prototype.add=function(z){this.usedMethods.add(z)};
wAK.prototype.reset=function(){this.usedMethods.clear()};var nrC=function(z,l){this.query=z;this.previousSearchQuery=l;this.id=AlX++;if(!Wll){l=_.sZ("SBOX_SETTINGS");z="https://"+((l==null?void 0:l.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=l==null?void 0:l.REQUEST_LANGUAGE;I&&(z+="&hl="+I);(I=l==null?void 0:l.REQUEST_DOMAIN)&&(z+="&gl="+I);z+="&client=youtube&gs_ri=youtube";(I=l==null?void 0:l.SUGG_EXP_ID)&&(z+="&sugexp="+encodeURIComponent(I));(I=l==null?void 0:l.PSUGGEST_TOKEN)&&(z+="&tok="+I);(l=
l==null?void 0:l.SESSION_INDEX)&&(z+="&authuser="+l);_.C("desktop_enable_visual_suggest")&&(z+="&h=180&w=320&ytvs=1");Wll=z}},LlS=function(z){var l="q="+encodeURIComponent(z.query);
z.previousSearchQuery&&(l+="&pq="+encodeURIComponent(z.previousSearchQuery));return l},U90=function(){var z=_.sZ("SBOX_SETTINGS"),l={};
if(z==null?0:z.SEND_VISITOR_DATA)l["X-Goog-Visitor-Id"]=z==null?void 0:z.VISITOR_DATA;return l},a8S=function(z){var l=Wll;
l+="&gs_id="+z.id.toString(36);l+="&q="+encodeURIComponent(z.query);l+="&cp="+z.query.length;z.previousSearchQuery&&(l+="&pq="+encodeURIComponent(z.previousSearchQuery));(z=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(l+="&video_id="+z);return l},AlX=0,Wll="";var Ve8=_.d6.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,jBy=_.d6.SEARCH_ENTITY_SUGGESTION_MOVIE,JlC=_.d6.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,zYy=_.d6.SEARCH_ENTITY_SUGGESTION_TV_SHOW,lNK=function(z,l){this.text=z;this.bold=l},IN0=function(z,l,I){this.input=l;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=z[0];this.type=z[1];this.subtypes=z[2];var b;this.displayText=vO((b=z[3])==null?void 0:b.b);var v;this.ignoredPrefix=vO((v=z[3])==null?void 0:v.a);var M,x;this.hasNewVideo=((M=z[3])==null?void 0:(x=M.zam)==null?void 0:x.toString())==="true"?!0:!1;var g;this.visualSuggestUrl=(g=z[3])==null?void 0:g.zai;var G;this.entityType=vO((G=z[3])==null?void 0:G.zap);var u;this.entityName=vO((u=z[3])==null?void 0:u.zao);var Z;l=vO((Z=
z[3])==null?void 0:Z.zaf);var H;this.entityMid=(H=z[3])==null?void 0:H.zae;Z=xvW(this.subtypes,this.entityMid);if(l&&Z){if(l){H="";switch(Z){case "YOUTUBE_ENTITY_TYPE_SONG":H=JlC;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":H=Ve8;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":H=zYy;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":H=jBy}Z=Z==="YOUTUBE_ENTITY_TYPE_SONG"||Z==="YOUTUBE_ENTITY_TYPE_ALBUM"?H+" \u2022  \u2022 "+l:l}else Z="";this.entitySubtitle=Z}var y;this.externalChannelId=(y=z[3])==null?void 0:y.zav;var f;
this.entityThumbnailAttributionUrl=(f=z[3])==null?void 0:f.zaq},v60=function(z,l){var I=[],b,v=(b=z.displayText)!=null?b:z.text;
(l==null?0:l.useEntityName)&&bAC(z)&&z.entityName&&(v=z.entityName);if(z.type===33)return I.push(new lNK(v,!1)),I;if(v.length>=z.input.length&&v.substring(0,z.input.length)===z.input)I.push(new lNK(z.input,!1)),I.push(new lNK(v.substring(z.input.length),!0));else{var M=new Set(z.input.split(/\s/)),x=v.split(/\s/);I=x.map(function(g,G){return new lNK(g.trim()+(G===x.length-1?"":" "),!M.has(g))})}return I},bAC=function(z){var l=!!xvW(z.subtypes);
z=!!z.entityMid;return l||z};var MuC=function(z){this.rawResponse=["",[],{}];this.suggestions=[];try{var l=JSON.parse(OYs(z));if(typeof l==="object"&&l!==null)this.rawResponse=l;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(b){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(b,v){return new IN0(b,I,v)})};var piX=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new wAK;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20660_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},DSK,xSW=function(){DSK||(DSK=new piX);
return DSK};
piX.prototype.updateSuggestions=function(z){var l=this;this.availableSuggestions.forEach(function(I){l.previousSuggestions[I]=!0});
this.availableSuggestions=z.map(function(I){var b=I.type.toString();I.subtypes.length>0&&(b+="i"+I.subtypes.join("i"),b+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return b})};
var OAs=function(z,l){var I=Date.now();z.firstEditTime<0&&(z.firstEditTime=I);l&&(z.lastQueryBuildTime=I);z.lastEditTime=I};
piX.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20660_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var g6W=function(z){var l="";z.availableSuggestions.forEach(function(v){delete z.previousSuggestions[v]});
for(var I=_.D(Object.keys(z.previousSuggestions)),b=I.next();!b.done;b=I.next())b=b.value,z.previousSuggestions[b]&&(l+=(l?"j":"")+b);return l},GA0=function(z,l){var I=[];
l&&(I[1]=l.toString());I[0]="youtube";I[7]=Date.now()-z.startTime;I[6]=z.sessionNumber;z.zeroPrefixSuggestionCount>=0&&(I[33]=z.zeroPrefixSuggestionCount);I[13]=z.outOfSyncResponseCount;if(z.availableSuggestions.length>0){for(var b=l="",v=0,M=_.D(z.availableSuggestions),x=M.next();!x.done;x=M.next())x=x.value,x!==b&&(v>1&&(l+="l"+v),l+=(b?"j":"")+x,v=0,b=x),v+=1;v>1&&(l+="l"+v);I[3]=l}I[35]=g6W(z);z.selectedSuggestionIndex>=0&&(I[2]=z.selectedSuggestionIndex);var g;if(l=(g=_.sZ("SBOX_SETTINGS"))==
null?void 0:g.SUGG_EXP_ID)I[19]=z.normalize(l),g=0,z.experimentTriggeredBeforeFinal&&(g|=1),z.experimentTriggeredFinal&&(g|=2),I[20]=g;I[26]=Array.from(z.inputMethodsTracker.usedMethods).join("j");if(z.JSC$20660_totalRoundTripTime>0){I[15]=z.JSC$20660_totalRoundTripTime;I[14]=z.maxRoundTripTime;g=[];for(v=l=0;v<10;v++)b=z.roundTripTimeHistogram[v],b===0?l++:(l>1?g.push(v+"-"+b):l===1?g.push("0j"+b):g.push(b.toString()),l=0);g=g.join("j");I[16]=g}z.zeroPrefixRoundTripTime>0&&(I[36]=z.zeroPrefixRoundTripTime);
z.lastQueryBuildTime>0&&(I[18]=z.lastQueryBuildTime-z.startTime);z.firstEditTime>0&&(I[4]=z.firstEditTime-z.startTime);z.lastEditTime>0&&(I[5]=z.lastEditTime-z.startTime);return I.join(".")};
piX.prototype.normalize=function(z){return z.replaceAll(".","-")};
var Nac=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var X2=function(){var z=_.q.apply(this,arguments)||this;z.microphoneSpinnerActive=!1;z.noAnimations=!1;z.boundExitClick=function(){z.onExitButtonClick()};
z.speechOverlayClassName="";z.isLevelAnimating=!1;z.playCloseDialogAudioFeedback=!0;z.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return z};
_.m(X2,_.q);_.p=X2.prototype;_.p.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Vq1()};
_.p.dataChanged=function(){this.logDialog()};
_.p.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var z;(z=this.manager.audioPlayer)!=null&&(z.JSC$19981_audioEnabled=!1)}this.manager.stop();(z=this.manager.audioPlayer)!=null&&(z.JSC$19981_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.p.handleSpeechQueryCompleteAction=function(z){var l=z.navigationAction;l&&(z.trackingParams&&_.iY().graftServerVe(z.trackingParams,this.dialogVe,5),_.gC(this.hostElement,"yt-navigate",{endpoint:l,tempData:this.getNavigationParams(l),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.p.onExitButtonClick=function(){this.closeDialog()};
_.p.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var z;if((z=this.manager)!=null){var l;(l=z.audioPlayer)==null||QC(l,"failure");z.setState("microphone-off");z.stop()}}else(z=this.manager)==null||z.start()};
_.p.transcriptionChanged=function(){var z,l;(((z=this.transcription)==null?0:z.low)||((l=this.transcription)==null?0:l.high))&&this.setState("transcribing",this.transcription)};
_.p.stateChanged=function(){this.setState(this.state,this.transcription)};
_.p.logDialog=function(){var z;(z=this.data)!=null&&z.trackingParams&&(z=_.iY(),_.db(z,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=z.graftServerVe(this.data.trackingParams,void 0,5))};
_.p.getNavigationParams=function(z){var l={};if(_.C("web_yt_searchbox")){var I=xSW();I.inputMethodsTracker.add(6);I=GA0(I,15);l.gs_l=I;var b;l.oq=((b=_.k(z,_.XN))==null?void 0:b.query)||""}else if(z=window.ytvoicesearchloggingparams){if(z=z())l.oq=z.oq,l.gs_l=z.gs_l}else _.nP(Error("Bl"));return l};
_.p.closeDialog=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.p.setState=function(z,l){if(this.data){var I=this.data,b={};switch(z){case "listening":b={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":b={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":b={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(l==null?0:l.low)||(l==null?0:l.high)?b={transcriptionLow:l==null?void 0:l.low,transcriptionHigh:l==null?void 0:l.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:b={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":b={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":b={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":b={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":b={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}b.className=
z;this.speechOverlayState=b;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.p.setMicrophoneState=function(z){var l=this.isLevelAnimating;this.isLevelAnimating=z==="speaking";!l&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=z==="processing"&&!this.noAnimations};
_.p.setClass=function(z){this.speechOverlayClassName&&_.fJ(this.hostElement,this.speechOverlayClassName,!1);z&&(this.speechOverlayClassName=z,_.fJ(this.hostElement,z,!0))};
_.p.runLevelAnimation=function(){var z=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var l=1+Math.random()*.75,I=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+I/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+l+")");_.ow.addJob(function(){z.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
X2.prototype.stateChanged=X2.prototype.stateChanged;X2.prototype.transcriptionChanged=X2.prototype.transcriptionChanged;X2.prototype.onPopupClosed=X2.prototype.onPopupClosed;X2.prototype.dataChanged=X2.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],X2.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],X2.prototype,"rendererStamperBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],X2.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],X2.prototype,"eventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],X2.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],X2.prototype,"speechOverlayState",void 0);
_.e([_.X(),_.w("design:type",Object)],X2.prototype,"microphoneSpinnerActive",void 0);_.e([_.X({type:_.C("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.w("design:type",Object)],X2.prototype,"noAnimations",void 0);_.e([_.X({selector:function(z){var l;return(l=z.voiceSearch)==null?void 0:l.transcription}}),
_.w("design:type",Object)],X2.prototype,"transcription",void 0);_.e([_.X({selector:function(z){var l;return(l=z.voiceSearch)==null?void 0:l.overlay}}),
_.w("design:type",String)],X2.prototype,"state",void 0);_.e([_.X(),_.w("design:type",Object)],X2.prototype,"boundExitClick",void 0);_.e([_.qX("#microphone-levels"),_.w("design:type",HTMLElement)],X2.prototype,"level",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X2.prototype,"dataChanged",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X2.prototype,"onPopupClosed",null);
_.e([_.YE("transcription"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X2.prototype,"transcriptionChanged",null);_.e([_.YE("state"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],X2.prototype,"stateChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],X2);
_.r(X2,"ytd-voice-search-dialog-renderer",function(){if(ekl!==void 0)return ekl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ekl=z},{mode:1});var E6y;var qD=function(){var z=_.q.apply(this,arguments)||this;z.isOverlay=!1;z.hidden=!1;return z};
_.m(qD,_.q);_.p=qD.prototype;_.p.onPopupClosed=function(){this.toggleIconState(!1)};
_.p.computeIcon=function(){var z,l,I;return(l=_.k((z=this.data)==null?void 0:z.icon,a$K))==null?void 0:(I=l.icon)==null?void 0:I.iconType};
_.p.computeIconBadgeShape=function(){var z;return{iconBadgeType:"cart",iconBadgeText:(z=this.iconBadgeEntity)==null?void 0:z.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.onClick=function(){var z;(z=this.data)!=null&&z.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.p.computeHidden=function(z){return!z};
_.p.toggleIconState=function(z){this.iconButton&&(this.iconButton.pressed=z)};
qD.prototype.onPopupClosed=qD.prototype.onPopupClosed;_.e([_.t(_.gU),_.w("design:type",Object)],qD.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],qD.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],qD.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],qD.prototype,"isOverlay",void 0);
_.e([_.X({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.w("design:type",Object)],qD.prototype,"hidden",void 0);_.e([_.X({selectorArgs:["data.iconBadgeEntityKey"],selector:function(z,l){return _.Cc(z.entities,"iconBadgeEntity",l)}}),
_.w("design:type",Object)],qD.prototype,"iconBadgeEntity",void 0);_.e([_.qX("yt-icon-button"),_.w("design:type",HTMLButtonElement)],qD.prototype,"iconButton",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],qD.prototype,"onPopupClosed",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],qD);
_.r(qD,"ytd-icon-badge-topbar-button-renderer",function(){if(E6y!==void 0)return E6y;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return E6y=z},{mode:1});var uMX;var i6=function(){var z=_.q.apply(this,arguments)||this;z.premiumOptions=[];z.darkerDarkTheme=_.C("web_darker_dark_theme");return z};
_.m(i6,_.q);i6.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.vP.Object.defineProperties(i6.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],i6.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Array)],i6.prototype,"premiumOptions",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],i6.prototype,"darkerDarkTheme",void 0);_.e([_.B("premiumOptions"),_.w("design:type",Object),_.w("design:paramtypes",[])],i6.prototype,"hasPremiumOptions",null);
_.e([_.S({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],i6);
_.r(i6,"ytd-offline-promo-content",function(){if(uMX!==void 0)return uMX;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return uMX=z},{mode:1});var ZAq;var F2=function(){var z=_.q.apply(this,arguments)||this;z.premiumOptions=[];return z};
_.m(F2,_.q);F2.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var z;this.premiumOptions=Dvy((z=this.data)==null?void 0:z.formats)};
F2.prototype.onClickSubmit=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var z;(z=_.GS())==null||z.pause()};
F2.prototype.attached=function(){this.JSC$20680_scroller&&(this.JSC$20680_scroller.dialogElement=this.hostElement.parentNode)};
_.vP.Object.defineProperties(F2.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
F2.prototype.dataChanged=F2.prototype.dataChanged;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],F2.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],F2.prototype,"data",void 0);
_.e([_.X({computed:"computeIcon_(data.headersIcon)",value:""}),_.w("design:type",String)],F2.prototype,"headersIcon",void 0);_.e([_.X(),_.w("design:type",Array)],F2.prototype,"premiumOptions",void 0);_.e([_.qX("#scroller"),_.w("design:type",Object)],F2.prototype,"JSC$20680_scroller",void 0);_.e([_.B("headersIcon"),_.w("design:type",Object),_.w("design:paramtypes",[])],F2.prototype,"showIcon",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],F2.prototype,"dataChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],F2);
_.r(F2,"ytd-offline-promo-renderer",function(){if(ZAq!==void 0)return ZAq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return ZAq=z},{mode:1});var HAl;var Qf=function(){var z=_.q.apply(this,arguments)||this;z.playbackPauseInterval=NaN;z.isLoading=!1;z.hasError=!1;z.dialogClass="";z.youtubeLabel=_.mY("LOGO_ALT_LABEL",{},"YouTube Home");z.logoName="yt-logos-ext:yt-logo-updated";z.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return z};
_.m(Qf,_.q);_.p=Qf.prototype;_.p.onDataChange=function(){var z;if(this.showEOMV1Text=!((z=this.data)==null||!z.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.p.attached=function(){this.pausePlayer()};
_.p.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.p.handleLangSelect=function(z){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[z.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.p.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.p.handleSaveConsent=function(z){var l=this;this.showLoadingSpinner();this.showLoadingSpinner();ecs(_.k(z,VD1)).catch(function(I){_.PW(new _.qB("Something went wrong when save consent "+(I.message?I.message:I)+"."));l.hideLoadingSpinner();l.showErrorMessage()})};
_.p.handleDisablePersonalization=function(z){var l=this;this.showLoadingSpinner();wuK(_.k(z,ahS)).then(function(){l.dialog.close();l.resumePlayer()}).catch(function(I){_.PW(new _.qB("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
l.hideLoadingSpinner();l.showErrorMessage()})};
_.p.showLoadingSpinner=function(){var z=this;this.showSpinnerJobId=_.ow.addLowPriorityJob(function(){z.isLoading=!0},500)};
_.p.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ow.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.p.showErrorMessage=function(){var z=this;this.hasError=!0;_.ow.addLowPriorityJob(function(){z.hasError=!1},2E3)};
_.p.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ZQ(function(){try{var z=_.GS();z&&z.pause()}catch(l){}},100))};
_.p.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var z=_.GS();z&&z.play()}catch(l){}};
_.vP.Object.defineProperties(Qf.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.eomV1Text)return[];z=[];for(var l=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,b=0;b<l.length&&b<I.length;b++)z.push({icon:l[b],text:I[b]});return z}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var z;if((z=this.data)==null||!z.eomV1Text)return[];z=[];for(var l=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,b=0;b<l.length&&b<I.length;b++)z.push({icon:l[b],text:I[b]});return z}}});
Qf.prototype.onDataChange=Qf.prototype.onDataChange;_.e([_.X(),_.w("design:type",Object)],Qf.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],Qf.prototype,"showEOMV1Text",void 0);_.e([_.X(),_.w("design:type",Object)],Qf.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Object)],Qf.prototype,"hasError",void 0);_.e([_.X(),_.w("design:type",Number)],Qf.prototype,"showSpinnerJobId",void 0);_.e([_.X(),_.w("design:type",Object)],Qf.prototype,"dialogClass",void 0);
_.e([_.qX("#dialog"),_.w("design:type",Object)],Qf.prototype,"dialog",void 0);_.e([_.qX("#cb-header"),_.w("design:type",HTMLElement)],Qf.prototype,"header",void 0);_.e([_.qX("#lang-select"),_.w("design:type",HTMLElement)],Qf.prototype,"langSelect",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Qf.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);
_.e([_.X(),_.w("design:type",String)],Qf.prototype,"youtubeLabel",void 0);_.e([_.X(),_.w("design:type",Object)],Qf.prototype,"logoName",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Qf.prototype,"onDataChange",null);_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],Qf.prototype,"eomEssentialCookieMsgItems",null);
_.e([_.B("data"),_.w("design:type",Array),_.w("design:paramtypes",[])],Qf.prototype,"eomNonEssentialCookieMsgItems",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Qf);
_.r(Qf,"ytd-consent-bump-v2-lightbox",function(){if(HAl!==void 0)return HAl;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return HAl=z},{mode:1});var y9l;var Ye=function(){return _.q.apply(this,arguments)||this};
_.m(Ye,_.q);Ye.prototype.ready=function(){if(!_.tE()||Gn8)var z=!0;else Gn8=!0,z=!1;z||(z=document.querySelector("ytd-app"),z||(z=document.body),this.internalLightBox=_.Hy(z).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.e([_.X(),_.w("design:type",Object)],Ye.prototype,"data",void 0);_.e([_.qX("#lightbox"),_.w("design:type",Object)],Ye.prototype,"lightBox",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ye);
_.r(Ye,"ytd-consent-bump-v2-renderer",function(){if(y9l!==void 0)return y9l;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return y9l=z},{mode:1});var fNS;var Cp1;var kA4;var TI=function(){return _.q.apply(this,arguments)||this};
_.m(TI,_.q);_.p=TI.prototype;_.p.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&tyS(this.toastManager,this.toastType)};
_.p.open=function(z){this.toast&&(this.ephemeralAction&&_.pG().resolve(_.vj).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=z!=null?z:0,this.toastManager.enqueue(this.toast,z)):this.toast.open())};
_.p.close=function(z){var l;(l=this.toast)==null||l.close();this.toastManager&&z===1&&tyS(this.toastManager,z)};
_.p.refit=function(){var z;(z=this.toast)==null||z.refit()};
_.p.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var z;(z=this.toast)==null||z.close()}};
_.p.setVerticalOffset=function(z){this.toast&&(this.toast.verticalOffset=z,this.toast.fit())};
_.p.computeButtonClass_=function(z){return z?"toast-button":""};
_.p.computeText_=function(z){return _.ID(z)};
_.p.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kY("toast-opened-changed",this.toastOpened))};
_.p.updateToastOpenedFromBinding=function(z){this.toastOpened=z.detail.value};
_.vP.Object.defineProperties(TI.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var z,l,I=(z=this.data)==null?void 0:(l=z.actionButton)==null?void 0:l.buttonRenderer;return(I==null?void 0:I.command)||(I==null?void 0:I.serviceEndpoint)||(I==null?void 0:I.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 z=[],l;((l=this.data)==null?0:l.responseText)&&z.push(_.ID(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&z.push(_.ID(this.data.subText));var b,v;if((b=this.data)==null?0:(v=b.actionButton)==null?0:v.buttonRenderer){var M,x;z.push(((M=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(x=M.accessibilityData)==null?void 0:x.label)||_.ID(this.data.actionButton.buttonRenderer.text))}return z.filter(function(g){return g}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var z,l;return(l=(z=this.toast)==null?void 0:z.opened)!=null?l:!1}}});
TI.prototype.toastOpenedChangedForBinding=TI.prototype.toastOpenedChangedForBinding;TI.prototype.toastOpenedChanged=TI.prototype.toastOpenedChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],TI.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],TI.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],TI.prototype,"duration",void 0);
_.e([_.X(),_.w("design:type",Number)],TI.prototype,"toastType",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],TI.prototype,"useCloseButton",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],TI.prototype,"closeToastOnActionButtonClick",void 0);_.e([_.X({value:function(){return _.mY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.w("design:type",String)],TI.prototype,"closeButtonAriaLabel",void 0);_.e([_.X(),_.w("design:type",Boolean)],TI.prototype,"toastOpened",void 0);_.e([_.X(),_.w("design:type",Boolean)],TI.prototype,"hasOpened",void 0);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],TI.prototype,"command",null);_.e([_.B("labelText","command","duration"),_.w("design:type",Object),_.w("design:paramtypes",[])],TI.prototype,"ephemeralAction",null);
_.e([_.B("ephemeralAction"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],TI.prototype,"hasEphemeralAction",null);_.e([_.qX("#toast"),_.w("design:type",Object)],TI.prototype,"toast",void 0);_.e([_.X({value:function(){return{style:"call-to-action-inverse"}}}),
_.w("design:type",Object)],TI.prototype,"buttonOverrides",void 0);_.e([_.X({value:{style:"mono-inverse"}}),_.w("design:type",Object)],TI.prototype,"closeButtonOverrides",void 0);_.e([_.X({value:function(){return _.pG().resolve(_.MB(_.Jc))}}),
_.w("design:type",Object)],TI.prototype,"toastManager",void 0);_.e([_.B("data.responseText","data.subText","data.actionButton"),_.w("design:type",Object),_.w("design:paramtypes",[])],TI.prototype,"labelText",null);_.e([_.By("toastOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TI.prototype,"toastOpenedChanged",null);
_.e([_.By("toastOpened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],TI.prototype,"toastOpenedChangedForBinding",null);_.e([_.Wy({is:"yt-notification-action-renderer",disableElementRegistration:!0})],TI);
_.r(TI,"yt-notification-action-renderer",function(){if(kA4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Cp1===void 0&&(Cp1=document.createElement("template"));var b=Cp1;I.call(l,b.content.cloneNode(!0),z.content.firstChild);kA4=z}z=kA4;return z},{mode:2});var cB=function(){var z=_.q.apply(this,arguments)||this;z.duration=4E3;z.downloadingCount=0;z.downloadedCount=0;z.downloadingOnlySmartDownloads=!1;z.sessionTotalDownloads=0;z.sessionDownloaded=0;z.previousSessionsDownloaded=0;z.totalDownloadPercentage=0;z.currentDownloadProgress=0;z.currentDownloadPercentage=0;z.isLeaderTab=!0;z.isFullScreen=!1;z.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};z.boundBeforeUnload=function(l){z.isLeaderTab&&z.downloadingCount>0&&(l.preventDefault(),
l.returnValue=!0)};
return z};
_.m(cB,_.q);_.p=cB.prototype;
_.p.open=function(){this.updateDownloadState();if(this.data){var z=this.sessionDownloaded+1,l=this.sessionTotalDownloads>1?_.mY("VIDEOS_DOWNLOADING_RATIO",{downloaded:z.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+z+"/"+this.sessionTotalDownloads):_.mY("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(l=this.sessionTotalDownloads>1?_.mY("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:z.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
z+"/"+this.sessionTotalDownloads):_.mY("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));z=this.isLeaderTab?_.mY("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.ID(this.data.responseText)!==l||_.ID(this.data.subText)!==z)this.set("data.responseText",_.lc(l)),this.set("data.subText",_.lc(z)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.p.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.p.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.p.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.p.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var z=this.downloadedCount-this.previousSessionsDownloaded;z<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-z);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.p.handleFullscreenChange=function(z){(this.isFullScreen=z)||this.updatePopup()};
cB.prototype.updateCurrentDownloadProgress=cB.prototype.updateCurrentDownloadProgress;cB.prototype.updatePopup=cB.prototype.updatePopup;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],cB.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],cB.prototype,"ytEventForwardingBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],cB.prototype,"actionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"duration",void 0);_.e([_.X({selector:function(z){return _.uTG(z.entities).length}}),
_.w("design:type",Object)],cB.prototype,"downloadingCount",void 0);_.e([_.X({selector:JH4}),_.w("design:type",Object)],cB.prototype,"downloadedCount",void 0);_.e([_.X({selector:function(z){var l=_.uTG(z.entities);return jmq(z.entities,l)}}),
_.w("design:type",Object)],cB.prototype,"downloadingOnlySmartDownloads",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"sessionTotalDownloads",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"sessionDownloaded",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"previousSessionsDownloaded",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"totalDownloadPercentage",void 0);
_.e([_.X({selector:function(z){var l;z=(l=_.uTG(z.entities))!=null?l:[];return z.length>0?_.btQ(z.slice(-1)):0}}),
_.w("design:type",Object)],cB.prototype,"currentDownloadProgress",void 0);_.e([_.X(),_.w("design:type",Object)],cB.prototype,"currentDownloadPercentage",void 0);_.e([_.X({selector:_.CV7}),_.w("design:type",Object)],cB.prototype,"isLeaderTab",void 0);_.e([_.qX("yt-notification-action-renderer"),_.w("design:type",Object)],cB.prototype,"notificationActionRenderer",void 0);
_.e([_.YE("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cB.prototype,"updatePopup",null);_.e([_.YE("currentDownloadProgress"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],cB.prototype,"updateCurrentDownloadProgress",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],cB);
_.r(cB,"ytd-video-download-toast-renderer",function(){if(fNS!==void 0)return fNS;var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return fNS=z},{mode:1});var RY8;var mSK;var Sk=function(){return _.q.apply(this,arguments)||this};
_.m(Sk,_.q);Sk.prototype.computeIsRedLogo=function(z,l){!z&&l&&(z=l);return z==="YOUTUBE_RED_LOGO"||z==="YOUTUBE_PREMIUM_LOGO"};
Sk.prototype.computeLogoName=function(z){z=this.componentBehavior.computeIcon_(z);return z===""?"yt-logos-ext:yt-logo-updated":z};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Sk.prototype,"componentBehavior",void 0);_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.w("design:type",Boolean)],Sk.prototype,"isRedLogo",void 0);_.e([_.X({computed:"computeLogoName(data)"}),_.w("design:type",String)],Sk.prototype,"logoName",void 0);_.e([_.X({value:{}}),_.w("design:type",Object)],Sk.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],Sk.prototype,"logoType",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-logo"})],Sk);
_.r(Sk,"ytd-logo",function(){if(mSK!==void 0)return mSK;var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return mSK=z},{mode:_.yP("kevlar_poly_si_batch_j074")?1:2});var dX=function(){var z=_.q.apply(this,arguments)||this;z.animationRef={};return z};
_.m(dX,_.q);_.p=dX.prototype;_.p.attached=function(){document.addEventListener("yt-navigate-finish",_.KJ(this,this.logYoodle))};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.KJ(this,this.logYoodle))};
_.p.logYoodle=function(){var z,l;if((z=this.data)==null?0:(l=z.loggingDirectives)==null?0:l.trackingParams)this.ytRendererBehavior.markDirty(),_.iY().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.p.computeHideImg=function(z,l){return!!z||!!l};
_.p.computeHideYtdLogo=function(z,l){return!z||!!l};
_.p.computeHideLottie=function(z){return!z};
_.p.computeIsRedLogo=function(z){return z==="YOUTUBE_RED_LOGO"||z==="YOUTUBE_PREMIUM_LOGO"};
_.p.renderLogoEntity=function(){var z=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),l=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),b=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==z&&(this.url=z);this.animatedUrl!==l&&(this.animatedUrl=l);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==b&&(this.lottieUrl=b,this.lottiePlayerProps=this.computeLottiePlayerProps(b))};
_.p.getSanitizedThumbnail=function(z){return z&&z.thumbnails?_.KSS(z.thumbnails,122)||"":""};
_.p.getThumbnailUrl=function(z,l){if(!l)return"";var I,b;z=z?(I=l.darkThemeLogo)==null?void 0:I.thumbnail:(b=l.lightThemeLogo)==null?void 0:b.thumbnail;return this.getSanitizedThumbnail(z)};
_.p.getAnimatedThumbnailUrl=function(z,l){return l?this.getSanitizedThumbnail(z?l.darkThemeAnimatedLogo:l.lightThemeAnimatedLogo):""};
_.p.getLogoTitleText=function(z){if(z)return _.ID(z.tooltipText)};
_.p.computeLogoIcon=function(z,l){if(l){var I,b;return z?(I=l.darkThemeLogo)==null?void 0:I.icon:(b=l.lightThemeLogo)==null?void 0:b.icon}};
_.p.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.p.getLottieUrl=function(z,l){var I,b,v,M;return z?l==null?void 0:(I=l.darkThemeLogo)==null?void 0:(b=I.lottieAnimation)==null?void 0:b.url:l==null?void 0:(v=l.lightThemeLogo)==null?void 0:(M=v.lottieAnimation)==null?void 0:M.url};
_.p.computeLottiePlayerProps=function(z){if(z){var l;if((l=this.animationRef)==null?0:l.lottieEl){var I;(I=this.animationRef)==null||I.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:z,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.p.onLottieError=function(){this.data&&this.lottieUrl&&_.gC(this.hostElement,"yoodle-error")};
_.p.onImgError=function(){this.data&&!this.lottieUrl&&_.gC(this.hostElement,"yoodle-error")};
dX.prototype.playAnimation=dX.prototype.playAnimation;dX.prototype.renderLogoEntity=dX.prototype.renderLogoEntity;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],dX.prototype,"data",void 0);_.e([_.X({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.w("design:type",Boolean)],dX.prototype,"hideImg",void 0);
_.e([_.X({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.w("design:type",Boolean)],dX.prototype,"hideYtdLogo",void 0);_.e([_.X({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.w("design:type",Boolean)],dX.prototype,"hideLottie",void 0);_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.w("design:type",Boolean)],dX.prototype,"isRedLogo",void 0);
_.e([_.X(),_.w("design:type",Boolean)],dX.prototype,"useDarkThemeYoodle",void 0);_.e([_.X(),_.w("design:type",String)],dX.prototype,"url",void 0);_.e([_.X(),_.w("design:type",String)],dX.prototype,"animatedUrl",void 0);_.e([_.X(),_.w("design:type",String)],dX.prototype,"logoTitleText",void 0);_.e([_.X({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.w("design:type",Object)],dX.prototype,"logoIcon",void 0);_.e([_.X(),_.w("design:type",Object)],dX.prototype,"logoType",void 0);
_.e([_.X(),_.w("design:type",String)],dX.prototype,"lottieUrl",void 0);_.e([_.X(),_.w("design:type",Object)],dX.prototype,"lottiePlayerProps",void 0);_.e([_.X(),_.w("design:type",Object)],dX.prototype,"animationRef",void 0);_.e([_.By("data"),_.By("useDarkThemeYoodle"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],dX.prototype,"renderLogoEntity",null);
_.e([_.tP("click"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],dX.prototype,"playAnimation",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],dX);
_.r(dX,"ytd-yoodle-renderer",function(){if(RY8!==void 0)return RY8;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return RY8=z},{mode:_.yP("kevlar_poly_si_batch_j074")?1:2});var KUC;var tuF;var BaK=_.JR.currentPageTypeSelector,Xiy=_.JR.currentPageSubTypeSelector,oO=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return z};
_.m(oO,_.q);_.p=oO.prototype;_.p.onYoodleError=function(){_.C("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.p.computeLogoName=function(z){z=this.componentBehavior.computeIcon_(z);return z===""?"yt-logos-ext:yt-logo-updated":z};
_.p.computeTitle=function(z,l,I){return I&&(l==null?0:l.tooltipText)?_.ID(l.tooltipText):_.ID(z)};
_.p.computeAriaLabel=function(z,l,I){return I&&(l==null?0:l.tooltipText)?_.ID(z):""};
_.p.computeShowYoodle=function(z,l,I){return!z||!l&&!!I&&!_.h7.isEmpty(I)};
_.p.onNavigateHomeAction=function(){if(_.C("kevlar_miniplayer_navigate_home_from_app_killswitch")){var z;(z=_.Hy(this.hostElement).querySelector(".yt-simple-endpoint"))==null||z.click()}};
_.p.computeLogoHref=function(z,l,I){var b;(I==null?0:I.onTapCommand)?b=this.componentBehavior.computeHref_(I.onTapCommand):z&&(b=this.componentBehavior.computeHref_(z));return b?b:l};
_.p.computeCommand=function(z,l){return(l==null?void 0:l.onTapCommand)||z};
_.p.getEndpointForm=function(){if(_.C("kevlar_topbar_disable_cache_only_home")){var z=_.pG().resolve(_.G$),l=BaK(z.getState())||"";z=Xiy(z.getState())||"";return{disableCache:l==="ytd-browse"&&z==="home"}}return{disableCache:!0}};
oO.prototype.onYoodleError=oO.prototype.onYoodleError;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],oO.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],oO.prototype,"componentBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],oO.prototype,"ytdReduxBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],oO.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],oO.prototype,"countryCode",void 0);_.e([_.X({selectorArgs:["data.overrideEntityKey"],selector:function(z,l){return _.Cc(z.entities,"logoEntity",l)}}),
_.w("design:type",Object)],oO.prototype,"logoEntity",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.w("design:type",Boolean)],oO.prototype,"showYoodle",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],oO.prototype,"yoodleError",void 0);_.e([_.X({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.w("design:type",String)],oO.prototype,"titleText",void 0);
_.e([_.X({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.w("design:type",String)],oO.prototype,"ariaLabelText",void 0);_.e([_.X({value:"/"}),_.w("design:type",String)],oO.prototype,"defaultEndpointUrl",void 0);_.e([_.X({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.w("design:type",String)],oO.prototype,"endpointUrl",void 0);
_.e([_.X({computed:"computeCommand(data.endpoint, logoEntity)"}),_.w("design:type",String)],oO.prototype,"command",void 0);_.e([_.X(),_.w("design:type",Object)],oO.prototype,"logoType",void 0);_.e([_.X({}),_.w("design:type",Boolean)],oO.prototype,"useDarkThemeYoodle",void 0);_.e([_.tP("yoodle-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],oO.prototype,"onYoodleError",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],oO);
_.r(oO,"ytd-topbar-logo-renderer",function(){if(tuF!==void 0)return tuF;var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return tuF=z},{mode:_.yP("kevlar_poly_si_batch_j027")?1:2});var q_S=0;var iA8=_.d6.SEARCH_APPEND_LABEL,FUs=_.d6.SUGGESTION_NEW_VIDEOS_TEXT,Qvy=_.d6.SUGGESTION_THUMBNAIL_LABEL,Y_4=_.d6.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,TaK=_.P(function(z){function l(tp){var ys,jA;return _.O(function(uK){if(uK.nextAddress==1)return ys=new Request(tp),_.RL(uK,2),uK.yield(fetch(ys,{credentials:"include"}),4);if(uK.nextAddress!=2)return iK(!0),_.a3(uK,0);jA=_.XP(uK);_.PW(jA);_.qe(uK)})}
var I=z.isHighlighted;var b=z.suggestion;var v=z.onClickCallback;var M=z.onHoverUpdateCallback;var x=z.labels;var g=z.queryBuilderFunction;var G=z.onRemoveCallback;var u=z.suggestionIndex;var Z=z.generateUniqueId;var H=z.highlightedId;var y=z.useScrollMargin;var f=z.isKeyboardMode;var R=null,F=null,Y=_.VK("div"),c=_.VK("span");z=_.D(_.Z_(!1,void 0,"mxSc0e"));var d=z.next().value,V=z.next().value,A=_.z1("a",function(tp){tp&&_.ct(237477,tp,F,function(ys){F=ys})}),W=_.z1("button",function(tp){tp&&_.ct(237477,
tp,F,function(ys){F=ys})}),L=_.KK(function(tp){if((tp==null?void 0:tp.button)===2)return tp.preventDefault(),!1;
var ys=_.sU();ys&&R&&_.zZ(ys,R,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var jA;v(tp,b().text,b().index,b().entityMid,tp==null?void 0:(jA=tp.detail)==null?void 0:jA.wasSelectedByKeyboard);return!1}),lH=function(){return b().type===35},Gk=function(){return _.C("desktop_enable_single_suggestion_highlight")},uH=function(){return _.OI("desktop_suggestions_panel_row_height")||0},Xt=function(){var tp;
return _.C("desktop_enable_new_video_metadata")&&((tp=b())==null?void 0:tp.hasNewVideo)===!0},R1=function(){return _.C("desktop_enable_visual_suggest")},H7=function(){return _.C("desktop_enable_entity_suggest")&&bAC(b())},P7=function(){return b().entitySubtitle},o1=function(){return Gk()?(I==null?void 0:I())||lu()&&!(f==null?0:f()):(I==null?void 0:I())||lu()},z_=function(){var tp=_.sZ("SBOX_SETTINGS");
return lH()&&!(tp==null?0:tp.HIDE_REMOVE_LINK)},dw=function(){return v60(b(),{useEntityName:H7()})},Ej,JG=!((Ej=_.pG().resolve(_.MB(_.I2)))==null||!Ej()),yu=function(){return lH()?_.C("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},uu=function(){return x==null?void 0:x().SUGGESTION_DISMISS_LABEL},Y0=function(){return x==null?void 0:x().SUGGESTION_DISMISSED_LABEL};
z=_.D(_.Z_(!1,void 0,"WMms1e"));Ej=z.next().value;var iK=z.next().value;z=_.D(_.Z_(!1,void 0,"PyL0t"));var a_=z.next().value,pu=z.next().value,lu=a_,k0=_.KK(function(){g(c.value.innerText);return!1}),E8=_.KK(function(tp){tp.preventDefault();
return!1}),R_=_.KK(function(tp){var ys=b().text,jA=_.sZ("SBOX_SETTINGS"),uK="https://"+(jA.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
uK+="&delq="+encodeURIComponent(ys);(ys=jA==null?void 0:jA.PSUGGEST_TOKEN)&&(uK+="&tok="+ys);(jA=jA==null?void 0:jA.SESSION_INDEX)&&(uK+="&authuser="+jA);l(uK);tp.preventDefault();(tp=_.sU())&&F&&_.zZ(tp,F,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");G(u==null?void 0:u());return!1}),bK=_.KK(function(){if(Gk()&&(f==null?0:f()))return!1;
pu(!0);M(!0);return!1}),Ou=_.KK(function(){pu(!1);
M(!1);return!1}),lK=_.KK(function(){V(!0);
return!1}),gw=_.KK(function(){V(!1);
return!1}),Ln=_.KK(function(tp){tp.preventDefault();
if(b().entityThumbnailAttributionUrl){tp=b().entityThumbnailAttributionUrl;var ys=b().entityName,jA={urlEndpoint:{url:tp},commandMetadata:{webCommandMetadata:{url:tp}}};tp={buttonViewModel:{title:_.mY("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};jA={buttonViewModel:{title:_.mY("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:jA}}};
ys={dialogHeaderViewModel:{headline:{content:ys!=null?ys:_.mY("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var uK={basicContentViewModel:{paragraphs:[{text:{content:_.mY("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};tp={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:ys,footer:{panelFooterViewModel:{primaryButton:jA,secondaryButton:tp,shouldHideDivider:!0}},content:uK}}}}};_.pG().resolve(_.DQ).resolveCommand(tp)}return!1});
z=_.D(_.Z_("",void 0,"yG5Sx"));var Cl=z.next().value,FA=z.next().value;_.c8(function(){z_()&&FA(Z==null?void 0:Z(u==null?void 0:u()));Y.value&&_.ct(12453,Y.value,R,function(tp){R=tp})});
return _.N(_.E,{cond:Ej,then:function(){var tp={};return _.N("div",{class:_.m9("ytSuggestionComponentRemovedText",(tp.ytSuggestionComponentLargerRemovedText=function(){return R1()},tp)),
style:function(){return uH()>0?"height: "+uH()+"px;":""},
role:"button"},Y0)},
else:function(){var tp={},ys={};return _.N("div",{class:_.m9("ytSuggestionComponentSuggestion",(tp.ytSuggestionComponentSuggestionHover=function(){return!Gk()},tp.ytSuggestionComponentHighlighted=o1,tp.ytSuggestionComponentPersonalizedSuggestion=lH,tp.ytSuggestionComponentMweb=!1,tp.ytSuggestionComponentLargerSuggestion=function(){return Xt()||R1()},tp.ytSuggestionComponentThumbnailSuggestion=function(){return R1()},tp.ytSuggestionComponentRoundedSuggestion=function(){return _.C("desktop_enable_scrollable_suggestions_panel")&&
_.C("desktop_enable_suggestions_panel_padding")},tp.ytSuggestionComponentThumbnailPadding=function(){return R1()&&!lH()},tp)),
style:function(){return uH()>0?"height: "+uH()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":bK,"on:mouseout":Ou,el:Y},_.N("div",{class:_.m9("ytSuggestionComponentText",(ys.ytSuggestionComponentScrollMargin=y,ys)),"aria-label":function(){return Xt()?b().text+" "+FUs:b().text},
id:function(){return Z==null?void 0:Z(u==null?void 0:u())},
"on:mousedown":L,role:"option"},_.N(_.E,{cond:function(){return b().type!==33},
then:function(){return _.N(_.qt,{icon:yu,className:"ytSuggestionComponentIcon"})}}),_.N("div",{class:"ytSuggestionComponentLeftContainer"},_.N("span",{el:c,
role:"button",tabindex:0},_.N(_.qy,{each:dw},function(jA){return jA.bold?_.N("span",{class:"ytSuggestionComponentBold"},jA.text):_.N("span",null,jA.text)})),_.N(_.E,{cond:function(){return H7()&&!!b().entitySubtitle||Xt()},
then:function(){return _.N("div",{class:"ytSuggestionComponentMetadataContainer"},_.N(_.E,{cond:function(){return H7()&&!!b().entitySubtitle},
then:function(){return _.N("div",{class:"ytSuggestionComponentEntitySubtitle"},P7)}}),_.N(_.E,{cond:function(){return Xt()},
then:function(){return _.N("div",{class:"ytSuggestionComponentNewVideoContainer"},_.N("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.N("div",{class:"ytSuggestionComponentNewVideoText"},FUs))}}))}}))),_.N("div",{class:"ytSuggestionComponentRightContainer"},_.N(_.E,{cond:function(){return R1()&&b().visualSuggestUrl!==void 0},
then:function(){var jA={};return _.N("div",{class:"ytSuggestionComponentThumbnailContainer"},_.N("img",{"aria-label":Qvy,class:_.m9("ytSuggestionComponentVisualSuggestThumbnail",(jA.ytSuggestionComponentCircularFrame=function(){return H7()&&b().subtypes.includes(790)},jA.ytSuggestionComponentEntitySuggestThumbnail=function(){return H7()},jA)),
src:function(){return b().visualSuggestUrl}}),_.N(_.E,{cond:function(){return H7()&&!!b().entityThumbnailAttributionUrl},
then:function(){var uK={};return _.N("span",{title:Y_4,role:"tooltip"},_.N("div",{"on:mouseover":lK,"on:mouseout":gw,"on:mousedown":Ln,class:_.m9("ytSuggestionComponentThumbnailOverlay",(uK.ytSuggestionComponentThumbnailOverlayHidden=function(){return!d()},uK))},_.N(_.qt,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.N(_.Q7,null,_.N(_.is,{when:function(){return R1()&&z_()}},function(){var jA={};
return _.N("button",{class:_.m9("ytSuggestionComponentRemoveLinkClearButton",(jA.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Cl()&&Cl()===(H==null?void 0:H())},jA.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!o1()},jA)),
el:W,"on:mousedown":R_,"aria-label":uu,id:function(){return Cl()}},_.N(_.qt,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.N(_.is,{when:function(){return!(R1()&&b().visualSuggestUrl!==void 0)&&z_()}},function(){var jA={};
return _.N("a",{class:_.m9("ytSuggestionComponentRemoveLink",(jA.ytSuggestionComponentRemoveLinkDark=JG,jA.ytSuggestionComponentRemoveLinkSelected=function(){return Cl()&&Cl()===(H==null?void 0:H())},jA)),
el:A,"on:mousedown":R_,"aria-label":uu,tabindex:0,role:"button",id:function(){return Cl()}},uu)}),_.N(_.is,{when:function(){return!1}},function(){return _.N("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":k0,"on:mousedown":E8,role:"button","aria-label":iA8},_.N(_.qt,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Ah");var c91=_.zs(["//www.google.com/textinputassistant/","/","_tia.js"]),S_X=_.P(function(){return _.N("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.N("button",{class:"ytdTextInputAssistantButton","on:click":_.KK(function(){xSW().inputMethodsTracker.add(3);var z,l=(z=_.sZ("SBOX_SETTINGS"))==null?void 0:z.REQUEST_LANGUAGE;if(l)return _.nQ(_.HR(c91,14,l)),!1})},_.N("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Bh");var dSl=function(){this.cache=new Map},o68=function(z){for(var l=_.D(z.cache.entries()),I=l.next();!I.done;I=l.next()){var b=_.D(I.value);
I=b.next().value;b=b.next().value;b.suggestions.some(function(v){return v.type===35})&&z.cache.delete(I)}};var PpF=_.d6.SEARCH,hYX=_.d6.SEARCH_CLEAR_LABEL,svS=new _.yH("FAKE_SUGGEST_RESPONSE");_.uO(_.P(function(z){function l(){lK||(lK=setTimeout(function(){Ln()},1E3))}
function I(Kn,mA,cX){if(Kn.trim()){Ou=Kn;_.hr("REFINEMENTS_TUPLE",void 0);R_=!0;var CD;mA=GA0(a_,mA);var H_=(CD=z.searchEndpoint)==null?void 0:CD.call(z);_.GS8(Kn,mA,H_,yu.value.value,cX);Ln();yu.value.value=Kn;yu.value.blur();a_.reset()}}
function b(Kn){return _.O(function(mA){return mA.return(new Promise(function(cX){var CD=new XMLHttpRequest;CD.open("GET",a8S(Kn),!0);CD.withCredentials=!0;var H_=_.sZ("SBOX_SETTINGS");(H_==null?0:H_.SEND_VISITOR_DATA)&&CD.setRequestHeader("X-Goog-Visitor-Id",H_==null?void 0:H_.VISITOR_DATA);CD.onload=function(){cX(CD.responseText)};
CD.onerror=function(){_.PW(Error("Dl"));cX(null)};
setTimeout(function(){CD.abort()},1E4);
CD.send(null)}))})}
function v(Kn){var mA,cX,CD,H_;return _.O(function(qj){switch(qj.nextAddress){case 1:return mA={credentials:"include",headers:U90()},window.AbortController&&(cX=new AbortController,setTimeout(function(){cX.abort("ytsbox-suggest-timeout")},1E4),mA.signal=cX.signal),_.RL(qj,2),qj.yield(fetch(a8S(Kn),mA),4);
case 4:CD=qj.yieldResult.text();_.a3(qj,3);break;case 2:return H_=_.XP(qj),H_!=="ytsbox-abort-last"&&H_!=="ytsbox-suggest-timeout"&&_.PW(H_),qj.return(null);case 3:return qj.return(CD)}})}
function M(Kn){var mA,cX,CD;return _.O(function(H_){switch(H_.nextAddress){case 1:if(mA=_.pG().resolve(_.MB(svS)))return H_.return(mA);cX=Date.now();l();return _.C("yt_searchbox_xhr")?H_.yield(b(Kn),5):H_.yield(v(Kn),4);case 4:CD=H_.yieldResult;H_.jumpTo(3);break;case 5:CD=H_.yieldResult;case 3:if(CD){lK&&(clearTimeout(lK),lK=null);var qj=a_,FQ=cX,PQ=Kn.query.length===0;FQ=Date.now()-FQ;PQ?qj.zeroPrefixRoundTripTime=FQ:(qj.JSC$20660_totalRoundTripTime+=FQ,qj.maxRoundTripTime=Math.max(qj.maxRoundTripTime,
FQ),PQ=Math.floor(FQ/100),PQ>=Nac.length?++qj.roundTripTimeHistogram[9]:++qj.roundTripTimeHistogram[Nac[PQ]])}return H_.return(CD)}})}
function x(Kn){var mA,cX,CD;return _.O(function(H_){if(H_.nextAddress==1)return(mA=iK.cache.get(LlS(Kn)))?H_.return(mA):H_.yield(M(Kn),2);cX=H_.yieldResult;if(cX===null)return H_.return(null);CD=new MuC(cX);Kn.query.length===0&&CD.suggestions.length===0||iK.cache.set(LlS(Kn),CD);return H_.return(CD)})}
function g(Kn){var mA,cX;return _.O(function(CD){if(CD.nextAddress==1){bK=!1;var H_=Ou;H_=_.wO7()==="search"?(_.n0(location.href,"search_query")||_.n0(location.href,"q"))===H_:!1;mA=new nrC(Kn,H_?Ou:null);return CD.yield(x(mA),2)}cX=CD.yieldResult;if(cX===null)return CD.return();mA.query.length===0&&(a_.zeroPrefixSuggestionCount=cX.suggestions.length);if(mA.id<=gw)return a_.outOfSyncResponseCount++,CD.return();if(document.activeElement!==yu.value)return CD.return();gw=mA.id;var qj=a_,FQ=cX.rawResponse[2]||
{};qj.experimentTriggeredBeforeFinal||(qj.experimentTriggeredBeforeFinal=qj.experimentTriggeredFinal);qj.experimentTriggeredFinal=!!FQ.e;a_.updateSuggestions(cX.suggestions);Y(-1);z_([]);cX.suggestions!==f()&&ZJ(cX.suggestions.length);R(cX.suggestions);Gk(cX.suggestions.length>0&&cX.suggestions[0].type===33);Y0&&(Y0.hidden=cX.suggestions.length===0,lH()?(Y0.style.minWidth="",qj=Y0.style,FQ=(H_=f()[0])==null?void 0:H_.ignoredPrefix,qj.marginLeft=(FQ?Math.min(FQ.length*6,uu.value.offsetWidth):0).toString()+
"px"):(Y0.style.minWidth=uu.value.offsetWidth+"px",Y0.style.marginLeft="0"),dH());_.qe(CD)})}
function G(){if(!R_)return!1;var Kn=_.sZ("REFINEMENTS_TUPLE");return Kn?(Kn=Kn[1].map(function(mA,cX){return new IN0([mA,0,[71]],yu.value.value,cX)}),f()!==Kn&&ZJ(Kn.length),z_([]),R(Kn),a_.updateSuggestions(Kn),R_=!1,Y0.hidden=Kn.length===0,bK=Kn.length>0,!0):!1}
function u(){var Kn=yu.value.value;(typeof Kn==="string"||Kn instanceof String)&&Kn!==""?A(!0):A(!1)}
function Z(){if(_.wO7()==="search"){var Kn=window.location.href;try{var mA=_.n0(Kn,"search_query")||_.n0(Kn,"q")||""}catch(cX){mA=""}mA&&(yu.value.value=mA,A(!0))}}
var H=_.D(_.Z_([],void 0,"OC8EPc")),y=H.next().value;H=H.next().value;var f=y,R=H;y=_.D(_.Z_(-1,void 0,"t2tVQb"));var F=y.next().value,Y=y.next().value;y=_.D(_.Z_(-1,void 0,"v0RZCe"));var c=y.next().value,d=y.next().value;y=_.D(_.Z_(!1,void 0,"rjAnI"));var V=y.next().value,A=y.next().value;y=_.D(_.Z_(!1,void 0,"SyGLvb"));var W=y.next().value,L=y.next().value;H=_.D(_.Z_(!1,void 0,"tL09Cb"));y=H.next().value;H=H.next().value;var lH=y,Gk=H;H=_.D(_.Z_(!1,void 0,"FlH7mc"));y=H.next().value;var uH=H.next().value;
H=_.D(_.Z_(!1,void 0,"ea3fwe"));var Xt=H.next().value,R1=H.next().value;H=_.D(_.Z_(1,void 0,"vSK1xe"));var H7=H.next().value,P7=H.next().value;H=_.D(_.Z_([],void 0,"ijlw4b"));var o1=H.next().value,z_=H.next().value;H=_.D(_.Z_(!1,void 0,"HcRey"));var dw=H.next().value,Ej=H.next().value;H=_.C("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var JG=_.VK("yt-searchbox"),yu=_.VK("input"),uu=_.VK("div"),Y0,iK=
new dSl,a_=xSW(),pu=_.pG().resolve(_.MB(_.I2)),lu=function(){var Kn;return((Kn=z.forceDarkMode)==null?void 0:Kn.call(z))||!(pu==null||!pu())},k0=function(){return _.C("desktop_enable_scrollable_suggestions_panel")},E8="i"+q_S++,R_=!1,bK=!1,Ou="",lK=null,gw=-1,Ln=function(){z_([]);
R([]);Gk(!1);Y0&&(Y0.hidden=!0);lK&&(clearTimeout(lK),lK=null);Y(-1)},Cl=function(Kn,mA){Kn.preventDefault();
Ej(!0);Y0&&(Y0.hidden=!1);var cX=F();Kn=f();var CD=o1();mA=N5C(mA);cX+=mA;for(cX>=Kn.length?cX=-1:cX<-1&&(cX=Kn.length-1);cX!==-1&&(CD.includes(cX)||cX>=Kn.length||cX<0);)cX+=mA,cX>=Kn.length&&(cX=-1);Y(cX);F()>=0&&(yu.value.value=f()[F()].text,d(0),u(),Kn=F(),CD=c(),(CD=document.getElementById(f7[Kn][CD]))&&k0()&&(Kn===f().length-1?Y0.scrollTop=Y0.scrollHeight:CD.scrollIntoView({block:"nearest",inline:"start"})))},FA=_.KK(function(Kn){if(!(Kn.relatedTarget instanceof Element&&Kn.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!0);
var mA;(mA=z.focusCallback)==null||mA.call(z,!0);G()||(bK?Y0.hidden=!1:(_.gC(JG.value,"yt-autonav-pause-focus",{}),g(Kn.target.value)))}}),tp=_.KK(function(Kn){if(!(Kn.relatedTarget instanceof Element&&Kn.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!1);
var mA;(mA=z.focusCallback)==null||mA.call(z,!1);Y0.scrollTop=0;Y0.hidden=!0;_.gC(JG.value,"yt-autonav-pause-blur",{})}}),ys=function(Kn){Kn=N5C(Kn);
var mA;((mA=f7[F()])==null?0:mA[c()+Kn])&&d(c()+Kn)},jA=_.KK(function(Kn){var mA=Kn.target;
switch(Kn.keyCode){case 13:Kn.preventDefault();var cX;if((cX=f7[F()])==null?0:cX[c()]){var CD;(CD=document.getElementById(f7[F()][c()]))==null||CD.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Kn=Kn.shiftKey?4:3;cX=a_;CD=F();cX.selectedSuggestionIndex=CD;I(mA.value,Kn);break;case 27:Y0&&(Y0.hidden=!0);break;case 40:Cl(Kn,40);break;case 38:Cl(Kn,38);break;case 39:ys(39);break;case 37:ys(37);break;case 229:a_.inputMethodsTracker.add(4);break;default:a_.inputMethodsTracker.add(1),
OAs(a_)}return!1}),uK=_.KK(function(Kn){g(Kn.target.value);
u();k0()&&Y0&&(Y0.scrollTop=0);return!1}),Yq=_.KK(function(){a_.inputMethodsTracker.add(2);
OAs(a_);return!1});
_.c8(function(){if(Y0){a_.reset();if(window.ResizeObserver){var Kn=new ResizeObserver(function(){lH()||(Y0.style.minWidth=uu.value.offsetWidth+"px")});
Kn.observe(uu.value);(new ResizeObserver(function(){dH()})).observe(Y0);
_.cb(function(){Kn.disconnect()})}Z();
window.addEventListener("yt-navigate-finish",Z);window.addEventListener("yt-focus-searchbox",function(){yu.value.focus()});
var mA;uH((mA=_.sZ("SBOX_SETTINGS"))==null?void 0:mA.HAS_ON_SCREEN_KEYBOARD)}else _.dE(new _.qB("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var FY=_.KK(function(Kn){Kn.preventDefault();I(yu.value.value,12);return!1}),$0=_.KK(function(Kn){Kn.preventDefault();
var mA,cX;(mA=yu)==null||(cX=mA.value)==null||cX.focus();var CD,H_;((CD=yu)==null?void 0:(H_=CD.value)==null?void 0:H_.value)!==""&&(yu.value.value="",yu.value.dispatchEvent(new Event("input")));return!1}),hy=_.KK(function(){var Kn=vWF(yu.value.value,f().filter(function(mA){return mA.type!==35}).map(function(mA){return{label:mA.text}}));
_.Gb(JG.value,"yt-open-popup-action",[{openPopupAction:Kn},document.body]);return!1}),WX=_.KK(function(){yu.value.focus();
return!1}),BQ=function(Kn,mA,cX,CD,H_){a_.selectedSuggestionIndex=cX;
I(mA,H_?3:1,CD)},e3=function(Kn){yu.value.value=Kn;
yu.value.dispatchEvent(new Event("input"));a_.inputMethodsTracker.add(5);OAs(a_,!0)},f7=[[]],rk=function(Kn){var mA="searchbox-suggestion"+_.Uh(_.pA);
f7[Kn].push(mA);return mA},ZJ=function(Kn){if(f()){f7=[[]];
for(var mA=0;mA<Kn;mA++)f7.push([])}},dH=function(){if(k0()){var Kn=Y0,mA=Kn.scrollTop;
Kn=Kn.scrollHeight-Kn.clientHeight;R1(mA>=Kn);mA=Math.abs(Kn-mA);mA<=40?P7(1-(40-mA)/40):P7(1)}},Dp=function(){return"opacity: "+H7()*100+"%"},Ft=_.KK(function(){dH();
return!1}),hG=_.KK(function(){Ej(!1);
return!1}),W7,Cn={},ZF={},TT={},Kl={};
return _.N("yt-searchbox",{class:_.m9("ytSearchboxComponentHost",(Cn.ytSearchboxComponentMweb=!1,Cn.ytSearchboxComponentDesktop=!0,Cn["yt-searchbox-filled-query"]=function(){return V()},Cn["ytd-masthead"]=function(){return!W()},Cn.ytSearchboxComponentHostDark=lu,Cn)),
role:"search",el:JG,"client-ve-type":10349},_.N("div",{el:uu,"on:click":WX,class:_.m9("ytSearchboxComponentInputBox",(ZF.ytSearchboxComponentInputBoxDark=lu,ZF.ytSearchboxComponentInputBoxHasFocus=W,ZF))},_.N("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":FY},_.N(_.E,{cond:W,then:function(){return _.N("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.N(_.qt,{icon:"SEARCH"}))}}),_.N("input",{el:yu,
class:_.m9("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":E8,"aria-expanded":!((W7=Y0)==null?0:W7.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":tp,"on:focus":FA,"on:input":uK,"on:keydown":jA,"on:paste":Yq,placeholder:z.placeholderText,"aria-activedescendant":function(){var Kn;return(Kn=f7[F()])==null?void 0:Kn[c()]},
"aria-autocomplete":"list",role:"combobox"})),_.N(_.E,{cond:y,then:function(){return _.N("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.N(S_X,null))}}),_.N(_.E,{cond:V,
then:function(){return _.N("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.N("button",{class:"ytSearchboxComponentClearButton","on:click":$0,"aria-label":z.clearButtonAriaLabel||hYX},_.N(_.qt,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.N(_.SD,{model:{}})))}})),_.N("button",{class:_.m9("ytSearchboxComponentSearchButton",(TT.ytSearchboxComponentSearchButtonDark=lu,TT)),
"on:click":FY,"aria-label":PpF,title:z.placeholderText},_.N(_.qt,{icon:"SEARCH"})),_.N(_.E,{cond:function(){if(s28()&&_.C("mweb_voice_search")&&z.voiceSearchButton)return z.voiceSearchButton()},
then:function(Kn){var mA={};return _.N("div",{class:_.m9("ytSearchboxComponentVoiceSearchWrapper",(mA.ytSearchboxComponentHideVoiceSearchButton=function(){return V()},mA))},_.N(_.TS,{data:Kn},{buttonRenderer:function(cX){return _.N(_.K5,{data:cX.data,
onButtonClickCallback:function(){}})}}))}}),_.N("div",{el:_.xl(function(Kn){return void(Y0=Kn)}),
id:E8,class:_.m9("ytSearchboxComponentSuggestionsContainer",(Kl.ytSearchboxComponentSuggestionsContainerDark=lu,Kl["yt-searchbox-suggestions-container"]=!1,Kl.ytSearchboxComponentSuggestionsContainerScrollable=k0(),Kl.ytSearchboxComponentSuggestionsContainerAnimated=H,Kl)),"on:scroll":Ft,"on:mousemove":hG,role:"listbox",hidden:!0},_.N(_.qy,{each:f},function(Kn,mA){return _.N(TaK,{suggestion:Kn,isHighlighted:function(){return mA()===F()},
onClickCallback:BQ,onHoverUpdateCallback:function(cX){if(_.C("desktop_enable_single_suggestion_highlight")){var CD=mA();cX&&(d(0),Y(CD))}},
onRemoveCallback:function(cX){o68(iK);cX===void 0||cX<0||o1().includes(cX)||z_([].concat(_.ht(o1()),[cX]))},
labels:z.labels,queryBuilderFunction:e3,suggestionIndex:mA,generateUniqueId:rk,highlightedId:function(){var cX;return(cX=f7[F()])==null?void 0:cX[c()]},
useScrollMargin:k0(),isKeyboardMode:dw})}),_.N(_.E,{cond:function(){return!lH()&&f().find(function(Kn){return Kn.type!==35})&&_.C("searchbox_reporting")},
then:function(){return _.N("button",{class:"ytSearchboxComponentReportButton","on:mousedown":hy},_.mY("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.N(_.E,{cond:function(){return!Xt()&&k0()},
then:function(){return _.N("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.N("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Dp}))}})))},"Ch"),"yt-searchbox",{props:{searchEndpoint:_.mB,
placeholderText:_.mB,labels:_.mB,voiceSearchButton:_.mB,focusCallback:_.GH,clearButtonAriaLabel:_.mB,forceDarkMode:_.mB}});var PB=function(){var z=_.q.apply(this,arguments)||this;z.menuButtonTargetId="topbar-guide-menu";z.narrow=!1;z.menuStrings={BACK_ALT_LABEL:_.mY("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.mY("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.mY("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.mY("SBOX_PLACEHOLDER",void 0,"Search")};z.pageDarkTheme=document.documentElement.hasAttribute("dark");z.watchPageScrollTop=0;z.theater=!1;z.fullscreen=!1;z.disableFrostedGlassDuringViewTransition=
!1;z.desktopUnifiedSearchPanelMode=_.C("desktop_enable_unified_search_panel");z.cinematicTheaterMode=_.C("web_cinematic_theater_mode");z.aiCompanionEnabled=_.C("enable_ai_companion");z.ytSearchboxFocused=!1;z.searchboxLabels=_.sZ("SBOX_LABELS");z.topbarIsAboveChipbar=!1;z.isDarkThemeForced=!1;z.areGhostCardsHidden=!1;z.guideKeyboardToggle=!1;z.voiceSearchManager=Vq1();z.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};z.setYtSearchboxFocused=
function(l){z.ytSearchboxFocused=l};
z.toggleFrostedGlassDuringViewTransition=function(l){z.disableFrostedGlassDuringViewTransition=l};
return z};
_.m(PB,_.q);_.p=PB.prototype;_.p.computeSimpleText=function(z){return _.ID(z)};
_.p.onDarkChanged=function(){for(var z=_.D(this.buttons||[]),l=z.next();!l.done;l=z.next())l.value.isOverlay=!!this.dark;z=_.D(this.buttonRenderers||[]);for(l=z.next();!l.done;l=z.next())l.value.overrides=this.computeButtonOverride()};
_.p.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.p.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"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var z=_.ZL(_.uV(),"aa");_.fJ(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||z||(this.isDarkThemeForced=this.dark=!0);this.logoType?(z=this.hostElement.querySelector("#masthead-logo"))&&(_.C("polymer_on_demand_shady_dom")?z.setAttribute("slot","masthead-logo-old"):_.Bl(z)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.KJ(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.KJ(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.p.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.KJ(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.KJ(this,this.onSetTheaterModeEnabled))};
_.p.dataChanged=function(){var z=this.data;z&&(this.voiceEnabled=z.voiceSearchButton?Vq1().isSupported():!1,_.ZgI(_.jC(),this.menuButtonTargetId,this.guideButton),z.onReceivedActions&&z.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ZE(this.hostElement,z.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&z&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.fJ(this.hostElement,"dark",!1),_.fJ(this.hostElement,"theater",!1),
(z=this.hostElement.querySelector("#masthead-logo"))&&(_.C("polymer_on_demand_shady_dom")?z.setAttribute("slot","masthead-logo-old"):_.Bl(z))))};
_.p.computeCenterHidden=function(){var z;return this.data&&!((z=this.data.searchbox)==null?0:z.fusionSearchboxRenderer)};
_.p.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.fJ(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.p.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.p.onWatchScroll=function(z){this.watchPageScrollTop=z.detail||0;this.updateMastheadBackgroundOpacity()};
_.p.onFullscreenChangeAction=function(z){z||(this.watchPageScrollTop=0);this.fullscreen=z;this.updateMastheadBackgroundOpacity()};
_.p.onSetTheaterModeEnabled=function(z){this.theater=z.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.p.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.p.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.p.setBackgroundOpacity=function(z){z=this.calculateBackgroundOpacity(z);this.background.style.opacity=""+z};
_.p.calculateBackgroundOpacity=function(z){var l=this.theater&&this.cinematicTheaterMode?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(z,0),I)/I*(1-l)+l};
_.p.shouldShowCinematicMastHead=function(){var z=_.C("kevlar_watch_grid")&&!_.C("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(z||this.pageDarkTheme)};
_.p.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.p.focusGuide=function(){this.guideButton.focus()};
_.p.onGuideToggleTap=function(){_.gC(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.p.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.p.onGuideToggleHover=function(){_.gC(this.hostElement,"yt-guide-hover")};
_.p.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.p.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.p.closeOnOutsideClickCondition=function(z){for(z=_.MX(z);z[0];){var l=z.shift();if(l instanceof Element&&l.id==="kbd")return!1}return!0};
_.p.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.p.pausePlayer=function(){var z;(z=_.GS())==null||z.pause();this.pauseMiniplayer()};
_.p.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var z;(z=_.pG().resolve(_.Af).getPlayerElement())==null||z.pause()}};
_.p.isMiniplayerActive=function(){return _.pG().resolve(_.Af).isMiniplayerActive()};
_.p.updateNarrowFromBinding=function(z){this.narrow=z.detail.value};
_.p.onYtSendFeedbackAction=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.registerWithViewTransitionManager=function(){oxq(_.pG().resolve(_.Lg),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.vP.Object.defineProperties(PB.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.C("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var z;return(z=this.data)==null?void 0:z.voiceSearchButton}}}});
PB.prototype.narrowChanged=PB.prototype.narrowChanged;PB.prototype.onWatchPageChange=PB.prototype.onWatchPageChange;PB.prototype.onRendererStamperFinished=PB.prototype.onRendererStamperFinished;PB.prototype.dataChanged=PB.prototype.dataChanged;PB.prototype.onDarkChanged=PB.prototype.onDarkChanged;_.e([_.t(_.ap),_.w("design:type",Object)],PB.prototype,"ironResizableBehavior",void 0);_.e([_.t(_.hbs),_.w("design:type",Object)],PB.prototype,"ytdExpandableInputBehavior",void 0);
_.e([_.t(_.HE.YtdGuideStateAwareBehavior),_.w("design:type",Object)],PB.prototype,"ytdGuideStateAwareBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],PB.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],PB.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.gU),_.w("design:type",Object)],PB.prototype,"ytdReduxBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"narrow",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"logoType",void 0);_.e([_.X(),_.w("design:type",Boolean)],PB.prototype,"voiceEnabled",void 0);
_.e([_.X(),_.w("design:type",Object)],PB.prototype,"menuStrings",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],PB.prototype,"dark",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PB.prototype,"pageDarkTheme",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"watchPageScrollTop",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.DGQ}),_.w("design:type",Boolean)],PB.prototype,"isWatchPage",void 0);
_.e([_.X({reflectToAttribute:!0,selector:_.xG$}),_.w("design:type",Boolean)],PB.prototype,"isShortsPage",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PB.prototype,"theater",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PB.prototype,"fullscreen",void 0);_.e([_.X({reflectToAttribute:!0,selector:_.N31}),_.w("design:type",String)],PB.prototype,"frostedGlassMode",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],PB.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"aiCompanionEnabled",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"ytSearchboxFocused",void 0);_.e([_.i5("#buttons > *"),_.w("design:type",Array)],PB.prototype,"buttons",void 0);_.e([_.i5("ytd-button-renderer"),_.w("design:type",Array)],PB.prototype,"buttonRenderers",void 0);
_.e([_.qX("#background"),_.w("design:type",HTMLDivElement)],PB.prototype,"background",void 0);_.e([_.qX("#guide-button"),_.w("design:type",Object)],PB.prototype,"guideButton",void 0);_.e([_.qX("#logo"),_.w("design:type",Object)],PB.prototype,"logo",void 0);_.e([_.X({computed:"computeButtonOverride(dark)"}),_.w("design:type",Object)],PB.prototype,"buttonOverrides",void 0);
_.e([_.YE("dark"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PB.prototype,"onDarkChanged",null);_.e([_.X({value:function(){return this.onVoiceTap.bind(this)}}),
_.w("design:type",Function)],PB.prototype,"boundOnTapVoiceButton",void 0);_.e([_.X(),_.w("design:type",Object)],PB.prototype,"topbarIsAboveChipbar",void 0);_.e([_.X(),_.w("design:type",String),_.w("design:paramtypes",[])],PB.prototype,"guideIcon",null);_.e([_.B("voiceEnabled"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],PB.prototype,"shouldShowVoiceSearchButton",null);_.e([_.B("data"),_.w("design:type",Object),_.w("design:paramtypes",[])],PB.prototype,"voiceSearchButton",null);
_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PB.prototype,"dataChanged",null);_.e([_.tP("yt-rendererstamper-finished"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PB.prototype,"onRendererStamperFinished",null);_.e([_.YE("isWatchPage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PB.prototype,"onWatchPageChange",null);
_.e([_.YE("narrow"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],PB.prototype,"narrowChanged",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-masthead"})],PB);
_.r(PB,"ytd-masthead",function(){if(KUC!==void 0)return KUC;var z=document.createElement("template");_.K(z,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!data.aiCompanionButton]]" 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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return KUC=z},{mode:_.yP("kevlar_poly_si_batch_j036")?1:2});var r90;var $SC={},eYK={},wiS={},A90={},WUX=(A90.OFFLINE=($SC["publicytnetworkstatus-online"]="BACK_ONLINE",$SC),A90.ONLINE=(eYK["publicytnetworkstatus-offline"]="OFFLINE",eYK),A90.BACK_ONLINE=(wiS["publicytnetworkstatus-offline"]="OFFLINE",wiS.TIMER_TRIGGER="ONLINE",wiS),A90),hB=function(){var z=_.q.apply(this,arguments)||this;z.currentState="ONLINE";z.scheduledJobId=0;z.bannerString="";z.bannerVe=null;z.networkStatusManagerInstance=new _.U5;return z};
_.m(hB,_.q);_.p=hB.prototype;_.p.attached=function(){var z=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){z.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){z.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.detached=function(){var z=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){z.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){z.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.enterState=function(z){var l=this;this.scheduledJobId&&_.ow.cancelJob(this.scheduledJobId);z==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):z==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.mY("NO_INTERNET_CONNECTION",void 0,"No internet connection")):z==="BACK_ONLINE"&&(this.bannerString=_.mY("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.qA(_.ow,function(){l.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=z};
_.p.stateChangeHandler=function(z){(z=WUX[this.currentState][z])&&this.enterState(z)};
_.p.logVisibility=function(z){var l=_.sU();this.createBannerVe(z);l&&this.bannerVe&&(z?_.Vi(l,[this.bannerVe]):_.j_(l,[this.bannerVe]))};
_.p.createBannerVe=function(z){!this.bannerVe&&z&&(this.bannerVe=_.kU(37929),_.Pf(_.iY(),this.bannerVe))};
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",String)],hB.prototype,"currentState",void 0);_.e([_.X(),_.w("design:type",Object)],hB.prototype,"scheduledJobId",void 0);_.e([_.X(),_.w("design:type",Object)],hB.prototype,"bannerString",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-network-status-banner"})],hB);
_.r(hB,"ytd-network-status-banner",function(){if(r90!==void 0)return r90;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return r90=
z},{mode:1});var n6q;var sn=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};z.hidden=!0;z.frostedGlass=_.C("web_frosted_glass");return z};
_.m(sn,_.q);sn.prototype.computeHidden=function(z){return z&&z.status?!1:!0};
sn.prototype.handleUpdatePermissionRoleCommand=function(z){if(z=_.k(z,_.jP_))if(z=_.k(z.renderer,_.VoA))this.data=z};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],sn.prototype,"componentBehavior",void 0);_.e([_.X({value:!0,computed:"computeHidden(data)"}),_.w("design:type",Object)],sn.prototype,"hidden",void 0);_.e([_.X(),_.w("design:type",Object)],sn.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],sn.prototype,"frostedGlass",void 0);
_.e([_.S({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],sn);
_.r(sn,"ytd-permission-role-bottom-bar-renderer",function(){if(n6q!==void 0)return n6q;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return n6q=z},{mode:1});var LU4;var USq;var EU0={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var rX=function(){return _.q.apply(this,arguments)||this};
_.m(rX,_.q);_.p=rX.prototype;_.p.attached=function(){this.JSC$20775_scroller&&(this.JSC$20775_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20775_scroller.attached&&typeof this.JSC$20775_scroller.attached==="function"&&this.JSC$20775_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(I){I.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var z=_.Hy(this.hostElement);z.querySelector("tp-yt-paper-radio-group").selected="";var l=z.querySelector("#reason-text");l&&(l.value="");z.querySelector("#description-text").value=""}};
_.p.canSubmit=function(z,l){_.gC(this.hostElement,"yt-invalidate-popup-tabbables");return!(z&&l)};
_.p.onCancel=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.p.onSubmit=function(){var z=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(M){return M.active}).map(function(M){return M.innerText.trim()}),l=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=l.selectedItem,b=I.name;
I=I.innerText.trim();var v=l.querySelector("#reason-text");l=void 0;v&&(l=v.value);(v=this.descriptionText.value)&&(v=v.trim());u14(this.data.searchQuery,z,b,I,v,l);_.Gb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.p.sendFormSubmitToast=function(){var z=_.Dk(_.mY("SBOX_INAPPROPRIATE_TOAST"));_.Gb(this.hostElement,"yt-open-popup-action",[z,this])};
_.p.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(z){return z.active})};
_.p.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
rX.prototype.onIronSelect=rX.prototype.onIronSelect;rX.prototype.onIronChange=rX.prototype.onIronChange;rX.prototype.dataChanged=rX.prototype.dataChanged;_.e([_.X(),_.w("design:type",Object)],rX.prototype,"data",void 0);_.e([_.X({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.w("design:type",Boolean)],rX.prototype,"submitDisabled",void 0);_.e([_.X(),_.w("design:type",Boolean)],rX.prototype,"suggestionSelected",void 0);
_.e([_.X(),_.w("design:type",Boolean)],rX.prototype,"catagorySelected",void 0);_.e([_.qX("#scroller"),_.w("design:type",Object)],rX.prototype,"JSC$20775_scroller",void 0);_.e([_.qX("#description-text"),_.w("design:type",Object)],rX.prototype,"descriptionText",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rX.prototype,"dataChanged",null);
_.e([_.tP("iron-change"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rX.prototype,"onIronChange",null);_.e([_.tP("iron-select"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],rX.prototype,"onIronSelect",null);_.e([_.S({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],rX);
_.r(rX,"ytd-search-suggestion-report-dialog",function(){if(USq!==void 0)return USq;var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);return USq=z},{mode:1});var $e=function(z){var l=z.openPopupAction;var I=z.target;var b=z.container;var v=z.popupContainerConfig;var M=z.getElement;z=z.removeWhenClosed===void 0?!1:z.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=l;this.target=I;this.container=b;this.popupContainerConfig=v;this.getElement=M;this.JSC$20781_popupConfig=this.popupContainerConfig.JSC$19916_popupConfig[this.openPopupAction.popupType];this.rendererName=(l=this.getName())?_.nUY(l,i5q(this.popupContainerConfig,
l)):"";_.C("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=z);this.createPopup()};
$e.prototype.updatePopup=function(z){this.openPopupAction=z;this.JSC$20781_popupConfig=this.popupContainerConfig.JSC$19916_popupConfig[this.openPopupAction.popupType];aNX(this);_.C("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
$e.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var J9c=function(z,l,I){(l=l&&z.JSC$20781_popupConfig.narrowProperties?z.JSC$20781_popupConfig.narrowProperties:z.JSC$20781_popupConfig.properties)&&I!==void 0&&(l.isAriaModal=I);Vuc(z,l);z.isRtl()&&Vuc(z,z.JSC$20781_popupConfig.rtlProperties);jv1(z)};
$e.prototype.createPopup=function(){var z=this.JSC$20781_popupConfig.component;if(this.popupContent=zjF(this,this.rendererName)){if(z){this.popup=zjF(this,z);var l=this.popupContent;_.C("web_enable_wrapper_for_cow_component_in_popup")&&(l=document.createElement("div"),l.appendChild(this.popupContent));_.C("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20781_popupConfig.slotName&&l.setAttribute("slot",this.JSC$20781_popupConfig.slotName);z=this.popup;var I=this.container.tagName.toLowerCase(),
b=_.DP(l);_.oQ5(_.Ox(z),_.Ex(l,I,b));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.C("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Hy(this.container).appendChild(this.popup)}};
var aNX=function(z){var l,I,b=(l=z.openPopupAction.accessibilityData)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label;b&&(z.popup.ariaLabel=b);var v;((v=z.popupContent.polymerController)!=null?v:z.popupContent).data=(0,_.h7.unsafeClone)(z.openPopupAction.popup[z.getName()]);z.popupContent.duration=lyS(z);z.popupContent.positionType=z.openPopupAction.position;var M=z.openPopupAction.properties;M&&Object.keys(M).forEach(function(x){z.popupContent[x]=M[x]})},Vuc=function(z,l){if(l)for(var I=
_.D(Object.keys(l)),b=I.next();!b.done;b=I.next())b=b.value,z.popup[b]=l[b]},jv1=function(z){if(z.openPopupAction.position){var l=z.JSC$20781_popupConfig.positionalProperties&&z.JSC$20781_popupConfig.positionalProperties[z.openPopupAction.position],I=z.JSC$20781_popupConfig.rtlPositionalProperties&&z.JSC$20781_popupConfig.rtlPositionalProperties[z.openPopupAction.position];
l=z.isRtl()&&I?I:l;l.shiftedHorizontalOffset&&(I=z.popup.style.display,z.popup.style.display="block",z.popupContent&&z.popup.positionTarget&&z.popupContent.clientWidth>z.popup.positionTarget.clientWidth&&(l.horizontalOffset=z.popup.positionTarget.clientWidth/2-l.shiftedHorizontalOffset),z.popup.style.display=I);Vuc(z,l)}},Iy8=function(z,l){if(l)for(var I=_.D(Object.keys(l)),b=I.next();!b.done;b=I.next())b=b.value,z.popup.style[b]=l[b]};
$e.prototype.getName=function(){return _.oY(this.openPopupAction.popup,"renderer")||_.oY(this.openPopupAction.popup,"dialog")||_.oY(this.openPopupAction.popup,"model")||void 0};
var lyS=function(z){z=z.openPopupAction.durationHintMs;return z===0?z:Math.max(4E3,z||4E3)};
$e.prototype.isRtl=function(){return _.sZ("HTML_DIR")==="rtl"};
var zjF=function(z,l){z=z.getElement(l,z.target);z==null&&_.PW(new _.qB("popup getElement returned null",l));return z};var bx0={};
bx0.YtPopupContainerBehavior=[_.uh.YtComponentBehavior,_.wl.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.xB(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.OK(this.hostElement)},
closePopup:function(z){var l=this.createCacheKey(void 0,z);this.popups_[l]&&this.handleClosePopupAction_(void 0,z)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ow.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ow.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(z){z.opened&&z.keepBelowPlayer&&this.ensurePopupBelowPlayer(z)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var z in this.popups_){var l=this.popups_[z];if(l.popup.scrollAction==="refit"){var I=l.popup.positionTarget.getBoundingClientRect(),b=l.popup;I=I.top;var v=l;if(!v.naturalHeight){v.popup.hidden=!1;v.popup.style.position="fixed";v.popup.style.top="0px";v.popup.style.left="0px";var M=v.popup.getBoundingClientRect();v.naturalHeight=M.bottom-M.top;v.popup.refit()}b.hidden=!(I>=v.naturalHeight+60);l.popupContent.clientHeight===0&&l.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(z){this.popupContainerConfig=z},
handleOpenPopupAction:function(z,l){var I=z.openPopupAction,b=_.pG().resolve(_.MB(_.Jc))&&I.popupType==="TOAST";b&&!I.uniqueId&&(I.uniqueId=_.yO());if(!_.C("popup_container_parent_target_killswitch")){var v;l=(v=this.getParentTarget(l))!=null?v:l}var M=this.ensurePopup_(I,l);return new _.yK(function(x){M.then(function(g){if(!g)return x();this.maybeCreateNarrowMediaQuery_();var G=this.createCacheKey(g.rendererName,g.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(G))return x();
this.shownPopupKeys_.add(G)}G=this.popups_[G];var u=!(!G||!G.openPopupAction.beReused);u=!!I.reusePopup||u;if(g.popup.opened&&!u){b&&!g.openPopupAction.replacePopup||this.handleClosePopupAction_(g.rendererName,g.openPopupAction.uniqueId);u=I.popupType==="DIALOG"&&!_.C("popup_container_dialog_reopen_killswitch");if(!b&&!u&&G&&G.target==l&&!g.openPopupAction.replacePopup)return x();_.IR(g.popup,function(){this.completeOpenPopupAction_(I,l,g);x()}.bind(this))}else g.popup.opened?g.updatePopup(I):this.completeOpenPopupAction_(I,
l,g),x()}.bind(this))}.bind(this))},
getParentTarget:function(z){if(z&&z instanceof HTMLElement)for(var l=_.D(Object.entries(this.popups_)),I=l.next();!I.done;I=l.next())if(I=_.D(I.value),I.next(),I=I.next().value,this.popupClosesOnClick(I)&&I.popup.contains(z))return I.target},
popupClosesOnClick:function(z){return z.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(z.rendererName.toUpperCase())},
completeOpenPopupAction_:function(z,l,I){I.updatePopup(z);z=this.narrowMediaQuery_.queryMatches;var b=this.isAriaModal;I.target=l;var v;l=((v=I.target.polymerController)!=null?v:I.target).popupPositionTarget||I.target;I.JSC$20781_popupConfig.targetContainer&&(l=I.container);I.popup.positionTarget=l;I.popupContent.positionTarget=l;jv1(I);I.JSC$20781_popupConfig.forceFocus&&(I.popupContent.style.outline="none");I.popupContent.tabIndex=-1;I.JSC$20781_popupConfig.narrowProperties&&(I.popup.style.position=
"static");I.JSC$20781_popupConfig.preventAutonav&&I.popup.setAttribute("prevent-autonav",!0);I.JSC$20781_popupConfig.forceCloseOnOutsideClick&&I.popup.setAttribute("force-close-on-outside-click",!0);J9c(I,z,b);Iy8(I,I.JSC$20781_popupConfig.styles);I.isRtl()&&Iy8(I,I.JSC$20781_popupConfig.rtlStyles);if(!I.openPopupAction.shouldStopParentSignal){var M;v=(M=I.target.polymerController)!=null?M:I.target;(I.popupContent.startForwardingEvents||I.popupContainerConfig.forwardingEnabledPopups.has(I.rendererName))&&
v.parentComponent!==I.popupContent&&I.popupContent!==I.target&&I.target!==document.body&&(I.popupContent.startForwardingEvents?I.popupContent.startForwardingEvents(I.popupContainerConfig.forwardedEvents,I.target):(I.JSC$20781_eventForwarder||(I.JSC$20781_eventForwarder=new _.NN(I.popupContent)),I.JSC$20781_eventForwarder.start(I.popupContainerConfig.forwardedEvents,I.target)))}I=I.popup;I.addEventListener("iron-overlay-opened",_.KJ(this,this.onPopupIronOverlayOpened_));I.addEventListener("iron-overlay-closed",
_.KJ(this,this.onPopupIronOverlayClosed_));I.addEventListener("iron-overlay-canceled",_.KJ(this,this.onPopupIronOverlayCanceled_));I.addEventListener("yt-refit",_.KJ(this,this.refitPopup_));I.addEventListener("yt-invalidate-popup-tabbables",_.KJ(this,this.handleInvalidatePopupTabbables_));I.open()},
getPopupDurationMs_:function(z){return z.durationHintMs===0?z.durationHintMs:Math.max(4E3,z.durationHintMs||4E3)},
handleClosePopupAction_:function(z,l){var I=_.C("web_popup_cache_key_killswitch")||!!l;if(z||I){var b=this.createCacheKey(z,l);z=(z=this.popups_[b])&&z.popup}else z=_.Nxu(_.O4);if(z&&z.close){if(l=_.pG().resolve(_.MB(_.T$)))z.restoreFocusOnClose=l.isKeyBoardInUse();z.close();this.removePopup_(z,b)}},
handleClosePopupCommand_:function(z){z.closePopupCommand&&z.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,z.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(z){var l={},I;for(I in this.popups_)if(l={key$jscomp$1210:l.key$jscomp$1210},l.key$jscomp$1210=I,!z||!z.some(function(M){return function(x){return x==M.key$jscomp$1210}}(l))){var b=this.popups_[l.key$jscomp$1210],v=b.popup;
_.pG().resolve(_.MB(_.Jc))&&b.openPopupAction.popupType==="TOAST"||(v&&v.close&&v.close(),this.removePopup_(v,l.key$jscomp$1210))}},
handleClosePopupsAction_:function(z){z.forEach(function(l){var I=this.popups_[l];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,l))}.bind(this))},
handleGetPopupOpenedAction_:function(z,l){return(l=this.createCacheKey(z,l))&&this.popups_[l]?this.popups_[z].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var z=[],l;for(l in this.popups_){var I=this.popups_[l];I.popup.opened&&z.push(I)}return z},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(z,l){_.C("ytpopup_disable_default_html_caching")&&z&&z.removeWhenClosed&&(_.Hy(this.hostElement).removeChild(z),l&&this.popups_[l]&&delete this.popups_[l])},
shouldReusePopup_:function(z){return!(!z||!z.reusePopup)||!(!z||!z.beReused)},
ensurePopup_:function(z,l){this.maybeCreateNarrowMediaQuery_();var I=_.oY(z.popup,"renderer")||_.oY(z.popup,"dialog")||_.oY(z.popup,"model");if(!I)return _.Hu();I=_.nUY(I,i5q(this.popupContainerConfig,I));return _.Hu(this.getAndMaybeCreatePopup_(z,I,l))},
getAndMaybeCreatePopup_:function(z,l,I){var b=this.createCacheKey(l,z.uniqueId);if(this.popups_[b])return this.popups_[b];z=new $e({openPopupAction:z,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(l)});return this.popups_[b]=z},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(z){return _.C("ytpopup_disable_default_html_caching")?z&&z.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",_.KJ(this,this.openPopupQueryMatchesChanged_)),_.Hy(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(z){z=z.detail.value;for(var l in this.popups_)J9c(this.popups_[l],z)},
onPopupIronOverlayClosed_:function(z){var l=z.currentTarget,I=_.b67(l);I=I.length>0?I[0]:l;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||z.target.is!=="tp-yt-iron-dropdown"){z.detail.popup=l;z.detail.popupRenderer=I;var b,v={context:{openingElement:((b=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:b.target)||void 0}};Object.assign(v,z.detail);var M;_.gC((M=I.hostElement)!=null?M:I,"yt-popup-closed",v);l.removeEventListener("yt-refit",_.KJ(this,this.refitPopup_));l.removeEventListener("yt-invalidate-popup-tabbables",
_.KJ(this,this.handleInvalidatePopupTabbables_));l.removeEventListener("iron-overlay-canceled",_.KJ(this,this.onPopupIronOverlayCanceled_));l.removeEventListener("iron-overlay-closed",_.KJ(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(l)}},
onPopupIronOverlayCanceled_:function(z,l){var I=z.currentTarget,b=_.b67(I);b=b.length>0?b[0]:I;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||z.target.is!=="tp-yt-iron-dropdown"){var v;_.gC((v=b.hostElement)!=null?v:b,"yt-popup-canceled",z.detail);v=l?_.MX(l):null;(!l||["click","tap"].includes(l.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&v&&v.includes(I.positionTarget)&&z.preventDefault();I.restoreFocusOnClose=_.rB.keyboardEventMatchesKeys(l,"esc")}},
onPopupIronOverlayOpened_:function(z){z=z.currentTarget;var l=_.b67(z);l=l.length>0?l[0]:z;var I,b;_.gC((I=l.hostElement)!=null?I:l,"yt-popup-opened",(b=l.hostElement)!=null?b:l);z.keepBelowPlayer&&(this.ensurePopupBelowPlayer(z,!0),this.dynamicallyPositionedElements_.add(z));I=_.pG().resolve(_.MB(_.T$));b=!!l.querySelector("#toast");I&&I.isKeyBoardInUse()&&!b&&(typeof l.focusFirstItem==="function"?l.focusFirstItem():(l=_.OIu(z),l.length&&l[0].focus()));z.removeEventListener("iron-overlay-opened",
_.KJ(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(z){z=z.currentTarget;z.refit&&z.refit()},
refitPopups_:function(){for(var z in this.popups_)this.popups_[z].refit()},
handleInvalidatePopupTabbables_:function(z){z=z.currentTarget;z.invalidateTabbables&&z.invalidateTabbables()},
createCacheKey:function(z,l){return _.C("web_popup_cache_key_killswitch")?l?z+"#"+l:z:l?"#"+l:z},
openSheet:function(z,l){var I=z==null?void 0:z.openPopupActionCommand;!I&&(z==null?0:z.viewModel)&&(I={openPopupAction:{popup:{sheetViewModel:z.viewModel},popupType:"CONTEXTUAL_SHEET"}});I&&this.handleOpenPopupAction(I,l)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var z=this;return _.O(function(l){return l.return(z.handleGetOpenedPopupsAction_().filter(function(I){var b;return((b=I.openPopupAction)==null?void 0:b.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(z,l,I){if(_.C("web_dialog_utils_killswitch")){var b=z==null?void 0:z.openPopupActionCommand,v=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!b&&(z==null?0:z.viewModel)&&(b={openPopupAction:Object.assign({},{popup:{dialogViewModel:z.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},v&&v)});b&&this.handleOpenPopupAction(b,l)}else{if(v=z==null?void 0:z.viewModel){var M=I=I===void 0?{}:I;I=M.ariaLabel;v={popup:{dialogViewModel:v},
popupType:M.isModal?"MODAL":"DIALOG"};M={accessibilityData:{label:I}};I&&(v.accessibilityData=M);v={openPopupAction:v}}else v=void 0;if(v=(b=v)!=null?b:z==null?void 0:z.openPopupActionCommand)this.isAriaModal=_.C("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(v,l)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var z=this;return _.O(function(l){return l.return(z.handleGetOpenedPopupsAction_().filter(function(I){var b;return((b=I.openPopupAction)==null?void 0:b.popupType)==="DIALOG"}).length>0)})}}];var vps;var Mlq;var pp0=_.zs(["about:blank"]),ek=function(){var z=_.q.apply(this,arguments)||this;z.isMuted=!1;z.pageLoadTimeoutId=void 0;return z};
_.m(ek,_.q);_.p=ek.prototype;_.p.dataChanged=function(){var z=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var l=this.data.url,I=_.Pd(l);_.C("enable_yt_ata_iframe_authuser")?(I=_.Pd(l),_.JT(this.iframe,ZYC(I))):_.JT(this.iframe,I);this.pageLoadTimeoutId=_.qA(_.Y1(),function(){return void z.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Ez({destination:window,iframe:this.iframe,origin:_.Jyz(I.toString()),channelName:"ataiframe",onMessage:_.v5z(jf8,function(b){J44(b.data)?(b=_.aC(b.data,1,_.IC,_.g1()),b.length!==1?_.PW(Error("El")):(b=b[0],b===3?(z.isMuted=!0,z.logStateChanged({adMuteRequested:!0})):b===1&&z.close())):_.PW(Error("Fl"))}),
onEstablished:function(){z.cancelPageLoadTimeout();z.logStateChanged({pageLoadSucceeded:!0})}})}};
_.p.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Y1().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.p.logStateChanged=function(z){var l;if((l=this.data)==null?0:l.trackingParams)z={adsClientData:{aboutThisAdData:z}},_.iY().stateChanged(this.data.trackingParams,z)};
_.p.close=function(){_.Gb(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.handlesPopupClosed=function(z,l){var I=this,b,v;return _.O(function(M){if(M.nextAddress==1)return _.sZ("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Gb(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,l]),M.jumpTo(0)):z&&HYK(z)?M.yield(yRF(z),4):(I.isMuted&&_.Gb(I.hostElement,"yt-mute-ad-action",[I.is,I]),M.jumpTo(0));if(b=M.yieldResult){var x=v=new _.I6(b),g=I.isMuted;x.getOptions().includes("onAboutThisAdPopupClosed")?_.ngA(x,"onAboutThisAdPopupClosed",{isMuted:g,layoutId:l}):_.l7("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.qe(M)})};
_.p.onPopupClosed=function(z){var l=this,I,b;return _.O(function(v){I=_.HR(pp0);_.JT(l.iframe,I);l.cancelPageLoadTimeout();if(!l.data)return v.jumpTo(0);l.ytRendererBehavior.markDirty();b=z.detail.context.openingElement;return v.yield(l.handlesPopupClosed(b,l.data.layoutId),0)})};
_.p.detached=function(){this.cancelPageLoadTimeout()};
_.p.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ek.prototype.onPopupClosed=ek.prototype.onPopupClosed;ek.prototype.dataChanged=ek.prototype.dataChanged;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.e([_.qX("#iframe"),_.w("design:type",HTMLIFrameElement)],ek.prototype,"iframe",void 0);_.e([_.X(),_.w("design:type",Object)],ek.prototype,"data",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],ek.prototype,"dataChanged",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype",Promise)],ek.prototype,"onPopupClosed",null);_.e([_.Wy({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],ek);
_.r(ek,"yt-about-this-ad-renderer",function(){if(Mlq===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;vps===void 0&&(vps=document.createElement("template"));var b=vps;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Mlq=z}z=Mlq;return z},{mode:2});var DTS;var xT4;var wX=function(z){var l=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.maxFileSizeMB=z;Object.setPrototypeOf(this,wX.prototype)};
_.m(wX,Error);var Oxc=function(z,l){var I=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.minWidth=z;this.minHeight=l;Object.setPrototypeOf(this,Oxc.prototype)};
_.m(Oxc,Error);var gp8=function(z){this.requirements=z;this.JSC$20808_maxFileSize=z.maxFileSizeMB*1024*1024},Gyl=function(z,l){if(l.size>z.JSC$20808_maxFileSize)throw new wX(z.requirements.maxFileSizeMB);
};var NWq=function(z,l){this.canvas=z;this.imageEditorBuilder=l};
NWq.prototype.addEventListeners=function(z){var l=function(v){Ep1(z,v)};
this.JSC$20814_mouseDownEvent=l;var I=function(v){u9W(z,v)};
this.JSC$20814_mouseMoveEvent=I;var b=function(){Zxs(z)};
this.JSC$20814_mouseUpEvent=b;this.canvas.addEventListener("mousedown",l);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",b)};
NWq.prototype.removeEventListeners=function(){this.JSC$20814_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20814_mouseDownEvent);this.JSC$20814_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20814_mouseMoveEvent);this.JSC$20814_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20814_mouseUpEvent)};
var Hx4=function(z,l){z.removeEventListeners();return new Promise(function(I){var b=new Image;b.crossOrigin="anonymous";b.onload=function(){var v=z.imageEditorBuilder(z.canvas,b);z.addEventListeners(v);I(v)};
b.src=l})},AB=function(z,l,I,b,v,M,x,g){this.canvas=z;
this.image=l;this.requiredRatio=I;this.minImageCropDimension=b;this.minOutputImageResolution=v;this.component=M;this.styleFocusedCorner=g===void 0?!0:g;this.action=2;this.focusedCorner=this.resizeCorner=0;z=this.canvas.getContext("2d");if(!z)throw Error("Gl");this.ctx=z;this.canvasMargin=x!=null?x:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;x=this.image;z=this.canvasInnerWidth/x.width;x.height*z>912&&(z=x.width/x.height*912/x.width);x=z;this.scaledImageWidth=this.canvas.width%2?
C1X(this.image.width*x):fXS(this.image.width*x);this.scaledImageHeight=Math.round(this.image.height*x);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20817_overlayMarginBottom=this.JSC$20817_overlayMarginTop=this.canvasMargin;this.JSC$20817_overlayMarginRight=this.JSC$20817_overlayMarginLeft=this.horizontalMargin;this.JSC$20817_overlayWidth=this.scaledImageWidth;this.JSC$20817_overlayHeight=this.scaledImageHeight;
z=this.image.width/this.image.height;z>this.requiredRatio?(this.JSC$20817_overlayWidth=this.canvas.width%2?C1X(this.scaledImageHeight*this.requiredRatio):fXS(this.scaledImageHeight*this.requiredRatio),this.JSC$20817_overlayMarginRight=this.JSC$20817_overlayMarginLeft=(this.canvas.width-this.JSC$20817_overlayWidth)/2):z<this.requiredRatio&&(this.JSC$20817_overlayHeight=this.canvas.height%2?C1X(this.scaledImageWidth/this.requiredRatio):fXS(this.scaledImageWidth/this.requiredRatio),this.JSC$20817_overlayMarginBottom=
this.JSC$20817_overlayMarginTop=(this.canvas.height-this.JSC$20817_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*x,this.scaledImageWidth);y34(this)};
AB.prototype.getContext=function(){return this.ctx};
var Ep1=function(z,l){l={x:Math.round(l.pageX-z.canvas.getBoundingClientRect().left),y:Math.round(l.pageY-z.canvas.getBoundingClientRect().top)};z.dragStart=l;fyW(z,l)!==0?(z.action=1,CaW(z,l),z.resizeCorner=fyW(z,l)):l.x>z.JSC$20817_overlayMarginLeft&&l.x<z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth&&l.y>z.JSC$20817_overlayMarginTop&&l.y<z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight&&(z.action=0)},kyW=function(z,l){switch(l){case 1:return{x:z.JSC$20817_overlayMarginLeft,
y:z.JSC$20817_overlayMarginTop};case 2:return{x:z.JSC$20817_overlayMarginLeft,y:z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight};case 3:return{x:z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth,y:z.JSC$20817_overlayMarginTop};case 4:return{x:z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth,y:z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight};default:throw Error("Hl");}},mTC=function(z,l){if(z.focusedCorner!==0){z.dragStart=kyW(z,z.focusedCorner);
z.action=1;z.resizeCorner=z.focusedCorner;var I=z.dragStart.x,b=z.dragStart.y;switch(l){case 0:z.focusedCorner===1||z.focusedCorner===4?(I-=10,b-=10):(I-=10,b+=10);break;case 1:z.focusedCorner===1||z.focusedCorner===4?(I+=10,b+=10):(I+=10,b-=10);break;case 2:I=z.focusedCorner===1||z.focusedCorner===4?I-10:I+10;b-=10;break;case 3:I=z.focusedCorner===1||z.focusedCorner===4?I+10:I-10;b+=10;break;default:throw Error("Il");}RjW(z,{x:I,y:b});y34(z);z.action=2;z.dragStart=void 0}},u9W=function(z,l){l={x:Math.round(l.pageX-
z.canvas.getBoundingClientRect().left),
y:Math.round(l.pageY-z.canvas.getBoundingClientRect().top)};CaW(z,l);switch(z.action){case 1:RjW(z,l);break;case 0:z.dragStart&&(z.JSC$20817_overlayMarginLeft=Math.max(z.horizontalMargin,Math.min(z.JSC$20817_overlayMarginLeft-(z.dragStart.x-l.x),z.horizontalMargin+z.scaledImageWidth-z.JSC$20817_overlayWidth)),z.JSC$20817_overlayMarginRight=z.canvas.width-z.JSC$20817_overlayMarginLeft-z.JSC$20817_overlayWidth,z.JSC$20817_overlayMarginTop=Math.max(z.canvasMargin,Math.min(z.JSC$20817_overlayMarginTop-
(z.dragStart.y-l.y),z.scaledImageHeight-z.JSC$20817_overlayHeight+z.canvasMargin)),z.JSC$20817_overlayMarginBottom=z.canvas.height-(z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight));break;default:return}y34(z);z.dragStart=l},Zxs=function(z){z.action=2;
z.dragStart=void 0;document.body.style.cursor="auto"},CaW=function(z,l){switch(fyW(z,l)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:z.action!==1&&(document.body.style.cursor="auto")}},fyW=function(z,l){var I=z.JSC$20817_overlayMarginLeft-5,b=z.JSC$20817_overlayMarginTop-5,v=z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth-5;
z=z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-5;return K$s(l,{x:I,y:b})?1:K$s(l,{x:v,y:b})?3:K$s(l,{x:I,y:z})?2:K$s(l,{x:v,y:z})?4:0},K$s=function(z,l){return z.x>=l.x&&z.x<=l.x+10&&z.y>=l.y&&z.y<=l.y+10},RjW=function(z,l){if(z.dragStart)switch(z.resizeCorner){case 2:Math.abs((z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth-l.x)/(l.y-z.JSC$20817_overlayMarginTop))>=z.requiredRatio?tlF(z,l.x):BWs(z,l.y);
break;case 1:Math.abs((z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth-l.x)/(z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-l.y))>=z.requiredRatio?Xpq(z,l.x):BWs(z,l.y);break;case 4:Math.abs((l.x-z.JSC$20817_overlayMarginLeft)/(l.y-z.JSC$20817_overlayMarginTop))>=z.requiredRatio?tlF(z,l.x):qC4(z,l.y);break;case 3:Math.abs((l.x-z.JSC$20817_overlayMarginLeft)/(z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-l.y))>=z.requiredRatio?Xpq(z,l.x):qC4(z,l.y);break;default:throw Error("Jl");
}},tlF=function(z,l){var I=z.JSC$20817_overlayMarginTop;
z.JSC$20817_overlayMarginBottom=ix4(z,l);z.JSC$20817_overlayHeight=z.canvas.height-z.JSC$20817_overlayMarginBottom-I;z.JSC$20817_overlayWidth=Math.round(z.JSC$20817_overlayHeight*z.requiredRatio);F$K(z)},Xpq=function(z,l){var I=z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight;
z.JSC$20817_overlayMarginTop=ix4(z,l);z.JSC$20817_overlayHeight=I-z.JSC$20817_overlayMarginTop;z.JSC$20817_overlayWidth=Math.round(z.JSC$20817_overlayHeight*z.requiredRatio);F$K(z)},F$K=function(z){switch(z.resizeCorner){case 2:case 1:z.JSC$20817_overlayMarginLeft=z.canvas.width-z.JSC$20817_overlayMarginRight-z.JSC$20817_overlayWidth;
break;case 4:case 3:z.JSC$20817_overlayMarginRight=z.canvas.width-z.JSC$20817_overlayMarginLeft-z.JSC$20817_overlayWidth;break;default:throw Error("Jl");}},BWs=function(z,l){var I=z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth;
z.JSC$20817_overlayMarginLeft=QgK(z,l);z.JSC$20817_overlayWidth=I-z.JSC$20817_overlayMarginLeft;z.JSC$20817_overlayHeight=Math.round(z.JSC$20817_overlayWidth/z.requiredRatio);YC8(z)},qC4=function(z,l){var I=z.JSC$20817_overlayMarginLeft;
z.JSC$20817_overlayMarginRight=QgK(z,l);z.JSC$20817_overlayWidth=z.canvas.width-z.JSC$20817_overlayMarginRight-I;z.JSC$20817_overlayHeight=Math.round(z.JSC$20817_overlayWidth/z.requiredRatio);YC8(z)},YC8=function(z){switch(z.resizeCorner){case 2:case 4:z.JSC$20817_overlayMarginBottom=z.canvas.height-z.JSC$20817_overlayMarginTop-z.JSC$20817_overlayHeight;
break;case 1:case 3:z.JSC$20817_overlayMarginTop=z.canvas.height-z.JSC$20817_overlayMarginBottom-z.JSC$20817_overlayHeight;break;default:throw Error("Jl");}},ix4=function(z,l){switch(z.resizeCorner){case 2:l=z.canvas.height-(z.JSC$20817_overlayMarginTop+TWS(z,l));
break;case 4:l=z.canvas.height-(z.JSC$20817_overlayMarginTop+c3q(z,l));break;case 1:l=z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-TWS(z,l);break;case 3:l=z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-c3q(z,l);break;default:throw Error("Jl");}return Math.max(l,z.canvasMargin)},TWS=function(z,l){l=z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth-Math.max(l,z.horizontalMargin);
l=l<0?z.JSC$20817_overlayWidth:Math.max(l,z.minOverlayWidth);return Math.round(l/z.requiredRatio)},c3q=function(z,l){l=z.canvas.width-Math.max(z.canvas.width-l,z.horizontalMargin)-z.JSC$20817_overlayMarginLeft;
l=l<0?z.JSC$20817_overlayWidth:Math.max(l,z.minOverlayWidth);return Math.round(l/z.requiredRatio)},QgK=function(z,l){switch(z.resizeCorner){case 2:l=z.canvas.width-z.JSC$20817_overlayMarginRight-SCW(z,l);
break;case 4:l=z.canvas.width-z.JSC$20817_overlayMarginLeft-SCW(z,l);break;case 1:l=z.canvas.width-z.JSC$20817_overlayMarginRight-dTK(z,l);break;case 3:l=z.canvas.width-z.JSC$20817_overlayMarginLeft-dTK(z,l);break;default:throw Error("Jl");}return Math.max(l,z.horizontalMargin)},SCW=function(z,l){l=z.canvas.height-Math.max(z.canvas.height-l,z.canvasMargin)-z.JSC$20817_overlayMarginTop;
return l<0?z.JSC$20817_overlayWidth:Math.max(Math.round(l*z.requiredRatio),z.minOverlayWidth)},dTK=function(z,l){l=z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-Math.max(l,z.canvasMargin);
return l<0?z.JSC$20817_overlayWidth:Math.max(Math.round(l*z.requiredRatio),z.minOverlayWidth)},y34=function(z){z.ctx.clearRect(0,0,z.canvas.width,z.canvas.height);
z.ctx.drawImage(z.image,0,0,z.image.width,z.image.height,z.horizontalMargin,z.canvasMargin,z.canvas.width-2*z.horizontalMargin,z.scaledImageHeight);z.ctx.fillStyle="rgba(0, 0, 0, 0.7)";z.ctx.fillRect(z.horizontalMargin,z.JSC$20817_overlayMarginTop,z.JSC$20817_overlayMarginLeft-z.horizontalMargin,z.JSC$20817_overlayHeight);z.ctx.fillRect(z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth,z.JSC$20817_overlayMarginTop,z.JSC$20817_overlayMarginRight-z.horizontalMargin,z.JSC$20817_overlayHeight);z.ctx.fillRect(z.horizontalMargin,
z.canvasMargin,z.scaledImageWidth,z.JSC$20817_overlayMarginTop-z.canvasMargin);z.ctx.fillRect(z.horizontalMargin,z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight,z.scaledImageWidth,z.JSC$20817_overlayMarginBottom-z.canvasMargin);z.drawOverlay();z.component&&_.gC(z.component,"image-updated")};
AB.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20817_overlayMarginLeft,this.JSC$20817_overlayMarginTop,this.JSC$20817_overlayWidth,this.JSC$20817_overlayHeight);opW(this)};
var opW=function(z){var l=z.JSC$20817_overlayMarginLeft-5,I=z.JSC$20817_overlayMarginTop-5,b=z.JSC$20817_overlayMarginLeft+z.JSC$20817_overlayWidth-5,v=z.JSC$20817_overlayMarginTop+z.JSC$20817_overlayHeight-5;z.ctx.fillStyle="#FFF";z.ctx.fillRect(l,I,10,10);z.ctx.strokeRect(l,I,10,10);z.ctx.fillRect(b,I,10,10);z.ctx.strokeRect(b,I,10,10);z.ctx.fillRect(l,v,10,10);z.ctx.strokeRect(l,v,10,10);z.ctx.fillRect(b,v,10,10);z.ctx.strokeRect(b,v,10,10);if(z.focusedCorner!==0&&z.styleFocusedCorner){z.ctx.lineWidth=
4;z.ctx.strokeStyle="#3EA6FF";switch(z.focusedCorner){case 1:--l;--I;break;case 2:--l;I=v-1;break;case 3:l=b-1;--I;break;case 4:l=b-1;I=v-1;break;default:return}z.ctx.strokeRect(l,I,12,12)}};
AB.prototype.crop=function(z,l){l=l===void 0?!0:l;var I=this.image.width/this.scaledImageWidth,b=document.createElement("canvas"),v=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],M=this.JSC$20817_overlayWidth*I,x=this.JSC$20817_overlayHeight*I;b.width=Math.max(M,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);b.height=Math.max(x,v);z&&(b.width=Math.min(b.width,b.height),b.height=Math.min(b.width,b.height));
z=b.getContext("2d");if(!z)throw Error("xl");v=(this.JSC$20817_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$20817_overlayMarginTop-this.canvasMargin;l||(z.fillStyle="white",z.fillRect(0,0,b.width,b.height));z.drawImage(this.image,v,I,M,x,0,0,b.width,b.height);return b};var PaK=function(z,l,I,b,v){AB.call(this,z,l,I,b,void 0,v,8,!1)};
_.m(PaK,AB);PaK.prototype.drawOverlay=function(){var z=this.getContext(),l=this.JSC$20817_overlayWidth,I=this.JSC$20817_overlayHeight,b=this.JSC$20817_overlayMarginTop,v=this.JSC$20817_overlayMarginLeft;z.lineWidth=2;z.strokeStyle="#3EA6FF";z.beginPath();z.arc(v+l/2,b+I/2,l/2,0,2*Math.PI);z.stroke();z.strokeRect(v,b,l,I);opW(this)};
var hjl={maxFileSizeMB:15,minWidth:98,minHeight:98},sg8=["image/png","image/jpeg","image/gif"],WB=function(){var z=_.q.apply(this,arguments)||this;z.fileSelectorFocusListener=null;z.errorMessage=null;z.isLoading=!0;z.hideContainer=!0;z.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return z};
_.m(WB,_.q);_.p=WB.prototype;_.p.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.p.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.p.computePlaylistThumbnail=function(z){return z==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.p.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Gb(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.p.setErrorState=function(z){this.resetErrorState();z&&(this.errorMessage=z)};
_.p.showPopup=function(){var z=this;this.hideContainer=!1;_.qA(_.ow,function(){_.gC(z.hostElement,"yt-refit")});
this.isLoading=!1};
_.p.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.p.closePopup=function(){this.resetFileSelector();_.Gb(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onCancelTap=function(){this.isPlaylistThumbnail||_.Gb(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.p.openFileSelector=function(){var z=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.qA(_.ow,function(){setTimeout(function(){if(!z.fileSelector.files||z.fileSelector.files.length===0)z.onCancelTap();z.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(l){l instanceof Error?_.dE(l):_.oy(new _.qB(JSON.stringify(l)))}};
_.p.handleFileSelection=function(){var z=this,l,I,b,v,M,x;return _.O(function(g){switch(g.nextAddress){case 1:_.RL(g,2);if(!z.fileSelector.files||!z.imageEditorCanvas)return z.onCancelTap(),g.return();l=z.fileSelector.files[0];Gyl(z.imageChecker,l);_.RL(g,4);return g.yield(wr0(l),6);case 6:z.mimeType=g.yieldResult;_.a3(g,5,2);break;case 4:_.XP(g,2),_.Gb(z.hostElement,"yt-image-selection-error-action",[(I=z.data)==null?void 0:I.genericImageLoadErrorMessage]),z.onCancelTap();case 5:b=new FileReader;
b.addEventListener("load",function(){var G,u;return _.O(function(Z){if(Z.nextAddress==1){if(!b.result)return _.PW(Error("zl")),Z.return();G=b.result;u=new Image;u.src=G;u.onload=function(){try{var H=z.imageChecker;if(u.width<H.requirements.minWidth||u.height<H.requirements.minHeight)throw new Oxc(H.requirements.minWidth,H.requirements.minHeight);}catch(f){if(f instanceof Oxc){var y;_.Gb(z.hostElement,"yt-image-selection-error-action",[(y=z.data)==null?void 0:y.imageDimensionErrorMessage]);z.logImageDimensionErrorVe()}else f instanceof
Error?_.dE(f):(H=new _.qB(JSON.stringify(f)),_.dE(H));z.onCancelTap()}z.showPopup()};
u.onerror=function(){var H;_.Gb(z.hostElement,"yt-image-selection-error-action",[(H=z.data)==null?void 0:H.genericImageLoadErrorMessage]);z.onCancelTap()};
return Z.yield(Hx4(z.imageEditorCanvas,G),2)}z.imageEditor=Z.yieldResult;z.updatePositionOfAllCorners();z.addEventListeners(z.imageEditor);_.qe(Z)})},!1);
b.readAsDataURL(l);_.a3(g,0);break;case 2:v=_.XP(g),v instanceof wX?_.Gb(z.hostElement,"yt-image-selection-error-action",[(M=z.data)==null?void 0:M.imageSizeErrorMessage]):(v instanceof Error?_.dE(v):_.oy(new _.qB(JSON.stringify(v))),_.Gb(z.hostElement,"yt-image-selection-error-action",[(x=z.data)==null?void 0:x.genericImageLoadErrorMessage])),z.onCancelTap(),_.qe(g)}})};
_.p.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var z=_.q8(_.iY(),{veType:232707,visualElement:_.kU(232707)});z&&(z={visualElement:z},_.Xa().reportShown(z))}};
_.p.handleImageSelectionErrorAction=function(z){this.isPlaylistThumbnail&&_.o_t(this.hostElement,z)};
_.p.convertToImageFormatBundle=function(z){var l=this,I,b,v;return _.O(function(M){switch(M.nextAddress){case 1:return I=z.toDataURL(l.outputMimeType,1),M.yield(ANC(I),2);case 2:b=M.yieldResult;_.RL(M,3);Gyl(l.imageChecker,b);_.a3(M,4);break;case 3:v=_.XP(M);if(!(v instanceof wX))throw v;_.PW(new _.qB("Output size is bigger than input size for image",l.mimeType,l.outputMimeType,b.size));I=z.toDataURL("image/jpeg",.95);return M.yield(ANC(I),6);case 6:b=M.yieldResult;case 4:return M.return({dataUrl:I,
imageFile:b})}})};
_.p.handleUploadImageToScottyCommand=function(z){var l=this,I,b,v,M,x,g,G,u,Z,H;return _.O(function(y){switch(y.nextAddress){case 1:if(!l.imageEditor||!_.k(z,uDK))return y.return();I=_.k(z,uDK).scottyUploadUrl;if(!I){var f=new _.qB("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.dE(f);return y.return()}_.RL(y,2);l.setLoadingState();b=l.imageEditor.crop(!1,!1);return y.yield(l.convertToImageFormatBundle(b),4);case 4:return v=y.yieldResult,y.yield($t1(v.imageFile,I),5);
case 5:M=y.yieldResult;((x=l.data)==null?0:x.onUploadEndpoint)?(g=l.buildUploadServiceEndpoint(M),l.ytComponentBehavior.resolveCommand(g),G=_.k(g,_.M1),((u=G)==null?0:u.params)?l.closePopup():l.resetFileSelector()):(_.Gb(l.hostElement,"yt-image-updated-action",[v.dataUrl,M]),l.closePopup());_.a3(y,0);break;case 2:Z=_.XP(y),l.setErrorState((H=l.data)==null?void 0:H.uploadErrorMessage),Z instanceof Error?_.dE(Z):(f=new _.qB(JSON.stringify(Z)),_.dE(f)),_.qe(y)}})};
_.p.buildUploadServiceEndpoint=function(z){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",z),this.data.onUploadEndpoint):null};
_.p.dataChanged=function(){var z=this,l;return _.O(function(I){if(I.nextAddress==1){if(!z.data||!z.canvasElement)return I.return();z.data.imageRatio&&z.data.minImageCropWidth||_.oy(new _.qB("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));l=function(b,v){return z.data.imageType==="IMAGE_TYPE_AVATAR"?new PaK(b,v,z.data.imageRatio,[z.data.minImageCropWidth,z.data.minImageCropWidth/z.data.imageRatio],z.hostElement):new AB(b,v,z.data.imageRatio,[z.data.minImageCropWidth,
z.data.minImageCropWidth/z.data.imageRatio],void 0,z.hostElement,8,!1)};
z.imageEditorCanvas=new NWq(z.canvasElement,l);return z.data.url?I.yield(Hx4(z.imageEditorCanvas,z.data.url),3):(z.hideContainer=!0,z.openFileSelector(),I.jumpTo(0))}z.imageEditor=I.yieldResult;z.showPopup();z.addEventListeners(z.imageEditor);_.qe(I)})};
_.p.addEventListeners=function(z){this.removeEventListeners();var l=function(v){Ep1(z,v)};
this.JSC$20825_mouseDownEvent=l;var I=function(v){u9W(z,v)};
this.JSC$20825_mouseMoveEvent=I;var b=function(){Zxs(z)};
this.JSC$20825_mouseUpEvent=b;this.topLeftCorner.addEventListener("mousedown",l);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",b);this.topRightCorner.addEventListener("mousedown",l);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",b);this.bottomLeftCorner.addEventListener("mousedown",l);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",b);this.bottomRightCorner.addEventListener("mousedown",
l);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",b)};
_.p.removeEventListeners=function(){this.JSC$20825_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20825_mouseDownEvent));this.JSC$20825_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20825_mouseMoveEvent));this.JSC$20825_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20825_mouseUpEvent))};
_.p.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var z=document.activeElement;z&&z.shadowRoot&&z.shadowRoot.activeElement;)z=z.shadowRoot.activeElement;switch(z){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};
_.p.updatePositionOfCorner=function(z,l){var I=z.y-l.offsetHeight/2+4;l.style.left=z.x-l.offsetWidth/2+16+"px";l.style.top=I+"px"};
_.p.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var z=_.D([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),l=z.next();!l.done;l=z.next()){l=l.value;var I=kyW(this.imageEditor,l.corner);this.updatePositionOfCorner(I,l.div)}};
_.p.onLeft=function(z){this.imageEditor&&this.setFocusInImageEditor()&&(mTC(this.imageEditor,0),this.updatePositionOfAllCorners(),z.preventDefault())};
_.p.onRight=function(z){this.imageEditor&&this.setFocusInImageEditor()&&(mTC(this.imageEditor,1),this.updatePositionOfAllCorners(),z.preventDefault())};
_.p.onUp=function(z){this.imageEditor&&this.setFocusInImageEditor()&&(mTC(this.imageEditor,2),this.updatePositionOfAllCorners(),z.preventDefault())};
_.p.onDown=function(z){this.imageEditor&&this.setFocusInImageEditor()&&(mTC(this.imageEditor,3),this.updatePositionOfAllCorners(),z.preventDefault())};
_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.vP.Object.defineProperties(WB.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&sg8.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var z,l,I;((l=this.data)==null?0:l.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?z={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:z=hjl;return new gp8(z)}}});
WB.prototype.updatePositionOfAllCorners=WB.prototype.updatePositionOfAllCorners;WB.prototype.dataChanged=WB.prototype.dataChanged;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],WB.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);_.e([_.t(_.rB),_.w("design:type",Object)],WB.prototype,"ironA11yKeysBehavior",void 0);
_.e([_.qX("#canvas"),_.w("design:type",HTMLCanvasElement)],WB.prototype,"canvasElement",void 0);_.e([_.qX("#file-selector"),_.w("design:type",HTMLInputElement)],WB.prototype,"fileSelector",void 0);_.e([_.qX("#top-left-corner"),_.w("design:type",HTMLDivElement)],WB.prototype,"topLeftCorner",void 0);_.e([_.qX("#top-right-corner"),_.w("design:type",HTMLDivElement)],WB.prototype,"topRightCorner",void 0);
_.e([_.qX("#bottom-left-corner"),_.w("design:type",HTMLDivElement)],WB.prototype,"bottomLeftCorner",void 0);_.e([_.qX("#bottom-right-corner"),_.w("design:type",HTMLDivElement)],WB.prototype,"bottomRightCorner",void 0);_.e([_.X(),_.w("design:type",Object)],WB.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],WB.prototype,"errorMessage",void 0);_.e([_.X(),_.w("design:type",Object)],WB.prototype,"isLoading",void 0);_.e([_.X(),_.w("design:type",Object)],WB.prototype,"hideContainer",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.w("design:type",Boolean)],WB.prototype,"isPlaylistThumbnail",void 0);_.e([_.YE("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],WB.prototype,"dataChanged",null);_.e([_.tP("image-updated"),_.tP("yt-refit"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],WB.prototype,"updatePositionOfAllCorners",null);
_.e([_.Wy({is:"yt-image-editor-renderer",disableElementRegistration:!0})],WB);
_.r(WB,"yt-image-editor-renderer",function(){if(xT4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;DTS===void 0&&(DTS=document.createElement("template"));var b=DTS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);xT4=z}z=xT4;return z},{mode:2});var r3X;var $Tc;var nb=function(){return _.q.apply(this,arguments)||this};
_.m(nb,_.q);nb.prototype.updateMinutesFromBinding=function(z){this.handleMinutesChanged&&this.handleMinutesChanged(z)};
nb.prototype.updateSecondsFromBinding=function(z){this.handleSecondsChanged&&this.handleSecondsChanged(z)};
nb.prototype.updateDescriptionFromBinding=function(z){this.handleDescriptionChanged&&this.handleDescriptionChanged(z)};
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],nb.prototype,"data",void 0);_.e([_.X(),_.w("design:type",String)],nb.prototype,"minutes",void 0);_.e([_.X(),_.w("design:type",String)],nb.prototype,"seconds",void 0);_.e([_.X(),_.w("design:type",String)],nb.prototype,"description",void 0);_.e([_.X(),_.w("design:type",Function)],nb.prototype,"handleMinutesChanged",void 0);
_.e([_.X(),_.w("design:type",Function)],nb.prototype,"handleSecondsChanged",void 0);_.e([_.X(),_.w("design:type",Function)],nb.prototype,"handleDescriptionChanged",void 0);_.e([_.X(),_.w("design:type",Number)],nb.prototype,"characterLimit",void 0);_.e([_.X(),_.w("design:type",Number)],nb.prototype,"textNumRows",void 0);_.e([_.Wy({is:"yt-report-details-form-content",disableElementRegistration:!0})],nb);
_.r(nb,"yt-report-details-form-content",function(){if($Tc===void 0){var z=document.createElement("template");_.K(z,'\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>');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;r3X===void 0&&(r3X=document.createElement("template"));var b=r3X;I.call(l,b.content.cloneNode(!0),z.content.firstChild);$Tc=z}z=$Tc;return z},{mode:2});var ej8;var wpF;var Lb=function(){var z=_.q.apply(this,arguments)||this;z.updateMinutesFromBinding=function(l){z.minutes=l.detail.value};
z.updateSecondsFromBinding=function(l){z.seconds=l.detail.value};
z.updateDescriptionFromBinding=function(l){z.description=l.detail.value};
return z};
_.m(Lb,_.q);_.p=Lb.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.p.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"}}}};
_.p.ready=function(){_.Hy(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.p.onSubmitYtAction=function(z){var l=z.detail;l.actionName==="yt-service-request"&&(l=l.args[1],l.flagEndpoint&&(z.stopPropagation(),this.refireAction(l)))};
_.p.refireAction=function(z){var l={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(l.vss_id=this.vssId);_.uJ(this.hostElement,[z,l]);this.submitDisabled=!0};
_.p.dataChanged=function(){var z=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var l=_.GS();l&&l.getPlayerPromise().then(function(I){var b=I.getOption("cc","track")||I.getOption("captions","track");b&&(z.vssId=b.vss_id);I=I.getCurrentTime();z.minutes=Math.floor(I/60).toString();z.seconds=(Math.floor(I)%60).toString()})};
_.p.updateSubmitButtonState=function(){var z;((z=this.data)==null?0:z.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==="")};
_.p.onYtServiceRequestCompleted=function(){_.Gb(this.hostElement,"yt-close-popup-action")};
_.p.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.vP.Object.defineProperties(Lb.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var z;return((z=this.data)==null?void 0:z.textNumRows)||4}}});
Lb.prototype.onYtServiceRequestError=Lb.prototype.onYtServiceRequestError;Lb.prototype.onYtServiceRequestCompleted=Lb.prototype.onYtServiceRequestCompleted;Lb.prototype.updateSubmitButtonState=Lb.prototype.updateSubmitButtonState;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);
_.e([_.X({observer:"dataChanged"}),_.w("design:type",Object)],Lb.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Boolean)],Lb.prototype,"submitDisabled",void 0);_.e([_.X(),_.w("design:type",String)],Lb.prototype,"minutes",void 0);_.e([_.X(),_.w("design:type",String)],Lb.prototype,"seconds",void 0);_.e([_.X(),_.w("design:type",String)],Lb.prototype,"description",void 0);_.e([_.X(),_.w("design:type",String)],Lb.prototype,"vssId",void 0);
_.e([_.X({value:_.sZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.w("design:type",Boolean)],Lb.prototype,"isMusic",void 0);_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],Lb.prototype,"characterLimit",null);_.e([_.B("data"),_.w("design:type",Number),_.w("design:paramtypes",[])],Lb.prototype,"textNumRows",null);
_.e([_.YE("minutes","seconds","description","submitDisabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Lb.prototype,"updateSubmitButtonState",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Lb.prototype,"onYtServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Lb.prototype,"onYtServiceRequestError",null);_.e([_.Wy({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Lb);
_.r(Lb,"yt-report-details-form-renderer",function(){if(wpF===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;ej8===void 0&&(ej8=document.createElement("template"));var b=ej8;I.call(l,b.content.cloneNode(!0),z.content.firstChild);wpF=z}z=wpF;return z});var A3s;var W$s;var npS;var L$S;var Un=function(){return _.q.apply(this,arguments)||this};
_.m(Un,_.q);
Un.prototype.onCheckedChanged_=function(){if(this.data){var z=_.Hy(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Gb(this.hostElement,"yt-additional-detail-checkbox-update",[z]):this.data.identifier==="yt-hide-user-checkbox"?_.Gb(this.hostElement,"yt-hide-user-checkbox-update",[z]):z&&this.data.enableCommand?_.Gb(this.hostElement,"yt-modify-report-form-command",[_.k(this.data.enableCommand,RsK)]):!z&&this.data.disableCommand&&_.Gb(this.hostElement,
"yt-modify-report-form-command",[_.k(this.data.enableCommand,RsK)])}};
Un.prototype.onLabelTap_=function(z){z.target.tagName!="A"&&(_.Hy(this.hostElement).querySelector("#checkbox").checked=!_.Hy(this.hostElement).querySelector("#checkbox").checked)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],Un.prototype,"data",void 0);_.e([_.Wy({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Un);
_.r(Un,"yt-boolean-form-field-v2-renderer",function(){if(L$S===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;npS===void 0&&(npS=document.createElement("template"));var b=npS;I.call(l,b.content.cloneNode(!0),z.content.firstChild);L$S=z}z=L$S;return z});var aO=function(){var z=_.q.apply(this,arguments)||this;z.canShowAdditionalDetailCheckbox=!1;z.canShowCheckbox=!1;z.keepDropdownFocusedAfterSelection=!0;return z};
_.m(aO,_.q);aO.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],aO.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],aO.prototype,"canShowAdditionalDetailCheckbox",void 0);_.e([_.X(),_.w("design:type",Object)],aO.prototype,"canShowCheckbox",void 0);_.e([_.X(),_.w("design:type",Object)],aO.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.e([_.Wy({is:"yt-report-form-modal-content",disableElementRegistration:!0})],aO);
_.r(aO,"yt-report-form-modal-content",function(){if(W$s===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;A3s===void 0&&(A3s=document.createElement("template"));var b=A3s;I.call(l,b.content.cloneNode(!0),z.content.firstChild);W$s=z}z=W$s;return z},{mode:2});var UT8;var ayX;var Vf=function(){var z=_.q.apply(this,arguments)||this;z.submitting=!1;z.submitButtonDisabled=!0;z.command=null;z.canShowCheckbox=!1;z.canShowAdditionalDetailCheckbox=!1;z.canShowNextButton=!1;z.additionalDetailCheckboxChecked=!1;z.refitJob=0;z.keepDropdownFocusedAfterSelection=!0;z.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 z};
_.m(Vf,_.q);_.p=Vf.prototype;_.p.created=function(){this.refitJob=0};
_.p.attached=function(){this.JSC$20848_scroller&&(this.JSC$20848_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20848_scroller.attached&&typeof this.JSC$20848_scroller.attached==="function"&&this.JSC$20848_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(z){z&&(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,z.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),z.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.p.onYtPopupOpened=function(){var z=_.GS();z&&z.getPlayerPromise().then(function(l){l.pauseVideo()})};
_.p.onYtNavigate=function(z){_.k(z.detail.endpoint,_.qb_)&&(z.stopPropagation(),this.hideReportForm=!0)};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.p.onYtServiceRequestCompleted=function(z,l){var I=l.actions;if(I){if(I.length===1&&_.k(I[0],_.yi)){var b;I=((b=_.k(I[0],_.yi))==null?void 0:b.commands)||[]}b=0;for(var v=I.length;b<v;b++)_.k(I[b],_.WT)&&(z.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[b]))}if(l.data&&(z=this.get("feedbackResponses",l.data)))for(l=0;l<z.length;l++)if(z[l].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.p._onDescendantIronResize=function(z){z.stopPropagation();return!1};
_.p.handleReportFormEndpointUpdateAction=function(z){if(z.submitEndpoint){var l=this.command=z.submitEndpoint;l=_.k(l,_.tGn);if(l==null?0:l.additionalDetailCheckboxChecked)l.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else z.submitNavigationEndpoint?(this.command=z.submitNavigationEndpoint,this.toggleSubmitButton(!1)):z.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:z.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;z.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",z));this.refit()};
_.p.handleConfirmDialogCloseAction=function(z){z.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.p.submitButtonDisabledChanged=function(){var z=this.hostElement.parentElement;z&&z.invalidateTabbables&&z.invalidateTabbables()};
_.p.handleModifyReportFormCommand=function(z){z=this.get("action",z);z==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:z==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:z==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:z==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:z==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:z==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.p.updateDialogStyling=function(){var z,l,I,b,v,M=((v=(z=this.data)==null?void 0:(l=z.optionsSupportedRenderers)==null?void 0:(I=l.optionsRenderer)==null?void 0:(b=I.items)==null?void 0:b.length)!=null?v:0)<=2?0:240;_.R8(this.hostElement,{"--yt-report-form-modal-renderer-min-width":M+"px"})};
_.p.toggleSubmitButton=function(z){this.submitButtonDisabled=!z;this.submitButtonDisabled=z};
_.p.computeSubmitButtonData=function(z,l){var I={};_.k(l,_.qb_)?I.navigationEndpoint=l:I.command=l||void 0;z&&z.buttonRenderer&&_.h7.extend(I,z.buttonRenderer);return I};
_.p.computeNextButtonData=function(z,l){var I={};if(!z||!z.buttonRenderer)return I;_.h7.extend(I,z.buttonRenderer);if(!l)return I;if(_.k(l,_.qb_))I.navigationEndpoint=wxX(l);else if(I.command=wxX(l),z=_.k(I.command,_.tGn))z.legalCheckboxChecked=!0;return I};
_.p.computeShowNextButton=function(z,l,I){return!!z&&l&&I};
_.p.refit=function(){var z=this;this.refitJob||(this.refitJob=_.ow.addLowPriorityJob(function(){_.gC(z.hostElement,"yt-refit");z.refitJob=0}))};
_.p.handleAdditionalDetailCheckboxUpdateAction=function(z){this.additionalDetailCheckboxChecked=z;_.k(this.command,_.tGn).additionalDetailCheckboxChecked=z};
_.vP.Object.defineProperties(Vf,{template:{configurable:!0,enumerable:!0,get:function(){if(ayX===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;UT8===void 0&&(UT8=document.createElement("template"));var b=UT8;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ayX=z}z=ayX;return z}}});
Vf.prototype.onYtServiceRequestError=Vf.prototype.onYtServiceRequestError;Vf.prototype.onYtServiceRequestCompleted=Vf.prototype.onYtServiceRequestCompleted;Vf.prototype.onYtServiceRequestSent=Vf.prototype.onYtServiceRequestSent;Vf.prototype.onYtNavigate=Vf.prototype.onYtNavigate;Vf.prototype.onYtPopupOpened=Vf.prototype.onYtPopupOpened;_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],Vf.prototype,"openPopupBehavior",void 0);
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],Vf.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],Vf.prototype,"eventForwardingBehavior",void 0);_.e([_.t(_.ap),_.w("design:type",Object)],Vf.prototype,"ironResizableBehavior",void 0);_.e([_.X({observer:"dataChanged"}),_.w("design:type",Object)],Vf.prototype,"data",void 0);
_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"submitting",void 0);_.e([_.X({observer:"submitButtonDisabledChanged"}),_.w("design:type",Object)],Vf.prototype,"submitButtonDisabled",void 0);_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"command",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],Vf.prototype,"hideReportForm",void 0);_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"canShowCheckbox",void 0);
_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"canShowAdditionalDetailCheckbox",void 0);_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"canShowNextButton",void 0);_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"additionalDetailCheckboxChecked",void 0);_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"refitJob",void 0);_.e([_.X(),_.w("design:type",Object)],Vf.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.e([_.qX("#scroller"),_.w("design:type",Object)],Vf.prototype,"JSC$20848_scroller",void 0);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],Vf.prototype,"onYtPopupOpened",null);_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Vf.prototype,"onYtNavigate",null);
_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],Vf.prototype,"onYtServiceRequestSent",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],Vf.prototype,"onYtServiceRequestCompleted",null);
_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],Vf.prototype,"onYtServiceRequestError",null);_.e([_.Wy({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Vf);var VlW;var jgq;var jk=function(){return _.q.apply(this,arguments)||this};
_.m(jk,_.q);_.p=jk.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.p.onVisible=function(){var z,l;(l=_.pG().resolve(_.MB(_.vj)))==null||l.enqueue({label:_.ID((z=this.data)==null?void 0:z.messageTitle),elementToFocus:this.hostElement})};
_.p.onThumbnailLoaded=function(){_.gC(this.hostElement,"yt-refit")};
_.p.onDismissTap=function(){_.Gb(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.p.computeAlternateIcon=function(z){return z?z==="BACKSTAGE_ARTWORK"?"backstage:artwork":z:null};
_.p.computeFontFamily=function(z){return z==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.p.computeBackgroundStyle=function(z,l){if(z=this.computeBackgroundImage(z,l))if(z=_.Hr(z.thumbnails))return'background-image: url("'+z+'");'};
_.p.computeHasFullHeightImage=function(z){return!(!(z&&z.thumbnails&&z.thumbnails.length>0)||this.modern)};
_.p.isModernStyle=function(z){return z.style==="STYLE_MODERN"};
_.p.computeIcon=function(z,l){if(z&&z.icon)return l?z.iconDark:z.icon};
_.p.computeBackgroundImage=function(z,l){if(z&&z.backgroundImage)return l?z.backgroundImageDark:z.backgroundImage};
_.p.computeLogo=function(z,l){if(z&&z.logo)return l?z.logoDark:z.logo};
_.p.computeShouldShowModernIcon=function(z,l){return z&&!!l};
_.p.getLogoContainerClassName=function(z){return this.logoWithPadding(z)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.p.getLogoImageId=function(z){return this.logoWithPadding(z)?"mealbar-logo-with-padding":"mealbar-logo"};
_.p.logoWithPadding=function(z){var l,I,b;return(z=(l=this.computeLogo(z,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(b=I[0])==null?void 0:b.height)&&z%31===0?!0:!1};
jk.prototype.onThumbnailLoaded=jk.prototype.onThumbnailLoaded;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.e([_.X({}),_.w("design:type",Object)],jk.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.w("design:type",Boolean)],jk.prototype,"modern",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],jk.prototype,"isDarkTheme",void 0);
_.e([_.X({computed:"computeIcon(data, isDarkTheme)"}),_.w("design:type",Object)],jk.prototype,"icon",void 0);_.e([_.X({computed:"computeLogo(data, isDarkTheme)"}),_.w("design:type",Object)],jk.prototype,"logo",void 0);_.e([_.X({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.w("design:type",Object)],jk.prototype,"backgroundStyle",void 0);_.e([_.X({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.w("design:type",Object)],jk.prototype,"alternateIcon",void 0);
_.e([_.X({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.w("design:type",Boolean)],jk.prototype,"hasFullHeightImage",void 0);_.e([_.X({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.w("design:type",Boolean)],jk.prototype,"useYoutubeSans",void 0);_.e([_.X({computed:"computeShouldShowModernIcon(modern, icon)"}),_.w("design:type",Boolean)],jk.prototype,"shouldShowModernIcon",void 0);
_.e([_.tP("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],jk.prototype,"onThumbnailLoaded",null);_.e([_.Wy({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],jk);
_.r(jk,"yt-mealbar-promo-renderer",function(){if(jgq===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;VlW===void 0&&(VlW=document.createElement("template"));var b=VlW;I.call(l,b.content.cloneNode(!0),z.content.firstChild);jgq=z}z=jgq;return z},{mode:2});var J3y;var ziC;var JB=function(){return _.q.apply(this,arguments)||this};
_.m(JB,_.q);_.p=JB.prototype;_.p.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]]"}}}}}};
_.p.computeHasButtons_=function(z){return!(!z.dismissButton&&!z.acceptButton)};
_.p.computeStyle_=function(z){return z||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.p.observeImpressionEndpoints_=function(){var z=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(l){l.clickTrackingParams&&delete l.clickTrackingParams;_.uJ(z.hostElement,[l])})};
_.p.onTap_=function(){_.Gb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
JB.prototype.observeImpressionEndpoints_=JB.prototype.observeImpressionEndpoints_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],JB.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],JB.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],JB.prototype,"positionType",void 0);_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.w("design:type",Boolean)],JB.prototype,"hasButtons_",void 0);_.e([_.X({value:function(){return this.onTap_.bind(this)}}),
_.w("design:type",Function)],JB.prototype,"boundOnTap_",void 0);_.e([_.X({value:{style:"mono-inverse"}}),_.w("design:type",Object)],JB.prototype,"buttonOverride",void 0);_.e([_.By("data.promoConfig.impressionEndpoints"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],JB.prototype,"observeImpressionEndpoints_",null);_.e([_.Wy({is:"yt-tooltip-renderer",disableElementRegistration:!0})],JB);
_.r(JB,"yt-tooltip-renderer",function(){if(ziC===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;J3y===void 0&&(J3y=document.createElement("template"));var b=J3y;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ziC=z}z=ziC;return z},{mode:2});var lgc;var IgF;var bT8={},vXs=(bT8.WEB_REMIX="music.youtube.com",bT8),zP=function(){var z=_.q.apply(this,arguments)||this;z.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return z};
_.m(zP,_.q);_.p=zP.prototype;_.p.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.created=function(){this.embedHost_=vXs[_.sZ("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.p.ready=function(){_.Hy(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.p.computeEmbedCode_=function(z,l,I,b,v){if(!z)return"";var M=z.videoId,x=z.fullListId,g=[];z.attributionId&&g.push("si="+z.attributionId);b||g.push("controls=0");I&&Number(l)>0&&g.push("start="+l);x&&(M="videoseries",g.push("list="+x));I="https://"+(v?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+M;z.clipId&&(g.push("clip="+z.clipId),g.push("clipt="+z.clipTiming));l=g.length>0?I+"?"+g.join("&amp;"):I;z.encryptedEmbedConfig&&g.push("embed_config="+JSON.stringify({enc:z.encryptedEmbedConfig}));
g=g.length>0?I+"?"+g.join("&amp;"):I;_.C("web_sharing_embed_preview_killswitch")?_.Hy(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(g,z.previewWidth||854,z.previewHeight||480):(_.wy(this.videoPreviewContainer),_.Hy(this.videoPreviewContainer).appendChild(this.buildIframeElement(g)));return this.getEmbedCode_(l,z.width||560,z.height||315)};
_.p.buildIframeElement=function(z){var l=document.createElement("iframe"),I,b;l.width=""+((b=(I=this.data)==null?void 0:I.previewWidth)!=null?b:854);var v,M;l.height=""+((M=(v=this.data)==null?void 0:v.previewHeight)!=null?M:480);_.Dek(l,2,z);l.title="YouTube video player";l.frameBorder="0";l.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";l.referrerPolicy="strict-origin-when-cross-origin";l.allowFullscreen=!0;return l};
_.p.computeIsSquareAspectRatio_=function(z){return z.previewHeight&&z.previewWidth?z.previewHeight==z.previewWidth:!1};
_.p.computeShowEmbedOptions_=function(z){return!!z.enablePrivacyModeOptionLabel||!!z.showPlayerControlsOptionLabel};
_.p.getEmbedCode_=function(z,l,I){return'<iframe width="'+l+'" height="'+I+'" src="'+z+'" 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>'};
_.p.handleSignalActionCopyShareEmbedUrl_=function(){_.Hy(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.p.handleSetTimestamp_=function(z){this.startAtTimeStamp_=(this.startAtChecked_=z.isSet)?z.timestamp:0};
_.p.closePanel_=function(){_.Gb(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.p.onEmbedCode_=function(){_.Hy(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.p.onYtPopupClosed_=function(){_.wy(_.Hy(this.hostElement).querySelector("#video-preview"))};
_.p.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.k(this.data.actionButtons[0],_.xm)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.actionButtons[0],_.xm))};
zP.prototype.onYtPopupClosed_=zP.prototype.onYtPopupClosed_;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],zP.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],zP.prototype,"data",void 0);
_.e([_.X({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.w("design:type",String)],zP.prototype,"embedCode_",void 0);_.e([_.X({value:!0}),_.w("design:type",Boolean)],zP.prototype,"isPlayerControlsOptionChecked_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],zP.prototype,"isPrivacyModeOptionChecked_",void 0);_.e([_.X({value:!1,notify:!0}),_.w("design:type",Boolean)],zP.prototype,"startAtChecked_",void 0);
_.e([_.X({value:0}),_.w("design:type",Number)],zP.prototype,"startAtTimeStamp_",void 0);_.e([_.X({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],zP.prototype,"isSquareAspectRatio_",void 0);_.e([_.qX("#video-preview"),_.w("design:type",HTMLElement)],zP.prototype,"videoPreviewContainer",void 0);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],zP.prototype,"onYtPopupClosed_",null);
_.e([_.Wy({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],zP);
_.r(zP,"yt-sharing-embed-renderer",function(){if(IgF===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;lgc===void 0&&(lgc=document.createElement("template"));var b=lgc;I.call(l,b.content.cloneNode(!0),z.content.firstChild);IgF=z}z=IgF;return z},{mode:2});var MIK={};
MIK.YtUnlimitedFamilyInterstitialBehavior=[_.$$.YtOpenPopupBehavior,_.wl.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(z){z=_.ilp(_.pJ(z),"yt-button-renderer");return z?z.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(z){this.dialogHistory_.push(z)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var z=this.popFromHistory();if(z){var l={openPopupAction:{popupType:"DIALOG",popup:{}}};l.openPopupAction.popup[z.renderer]=z.data;this.showingPreviousDialog_=!0;this.openPopup(l)}},
handleOpenPopupAction_:function(z){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var l=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(b){return!!z.openPopupAction.popup[b]}),I=this.getElementName_();
l&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(z){if(z=_.k(z,UQK))this.loading=!0,_.Gb(this.hostElement,"yt-open-create-family-dialog",[z,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var z=this.hostElement.nodeName.split("-").slice(1).map(function(l){return""+l[0].toUpperCase()+l.slice(1).toLowerCase()}).join("");
return z[0].toLowerCase()+z.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var pzq;var D$4;var lZ=function(){return _.q.apply(this,arguments)||this};
_.m(lZ,_.q);_.p=lZ.prototype;_.p.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}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Gb(this.hostElement,"yt-register-create-family-dialog");_.Hy(this.hostElement).querySelector("#thumbnail").onShow()};
_.p.fireOnCloseCommand_=function(){var z;((z=this.data)==null?0:z.onCloseCommand)&&_.ZE(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.p.onYtServiceRequestSent_=function(z,l){l&&l.endpoint&&_.k(l.endpoint,_.CM)||(this.loading=!0)};
_.p.onYtServiceRequestCompleted_=function(){var z=this.hostElement.parentElement;z.close&&z.close();this.loading=!1};
_.p.openPopupHandler_=function(z){if(z.detail==this){var l;((l=this.data)==null?0:l.onOpenCommands)&&_.ZE(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.p.closePopupHandler_=function(z,l){this.fireOnCloseCommand_();if(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.ZE(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.p.dataChanged_=function(){this.loading=!1};
lZ.prototype.dataChanged_=lZ.prototype.dataChanged_;lZ.prototype.closePopupHandler_=lZ.prototype.closePopupHandler_;lZ.prototype.openPopupHandler_=lZ.prototype.openPopupHandler_;lZ.prototype.onYtServiceRequestCompleted_=lZ.prototype.onYtServiceRequestCompleted_;lZ.prototype.onYtServiceRequestSent_=lZ.prototype.onYtServiceRequestSent_;_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],lZ.prototype,"ytEventForwardingBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(MIK.YtUnlimitedFamilyInterstitialBehavior),_.w("design:type",Object)],lZ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],lZ.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],lZ.prototype,"loading",void 0);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],lZ.prototype,"onYtServiceRequestSent_",null);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],lZ.prototype,"onYtServiceRequestCompleted_",null);
_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],lZ.prototype,"openPopupHandler_",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],lZ.prototype,"closePopupHandler_",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],lZ.prototype,"dataChanged_",null);
_.e([_.Wy({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],lZ);
_.r(lZ,"yt-unlimited-family-message-interstitial-renderer",function(){if(D$4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;pzq===void 0&&(pzq=document.createElement("template"));var b=pzq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);D$4=z}z=D$4;return z},{mode:2});var x$X;var OTc;var IN=function(){return _.q.apply(this,arguments)||this};
_.m(IN,_.q);IN.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"}}}};
IN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Hy(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(z){z.onShow()});
_.Hy(this.hostElement).querySelector("#main-thumbnail").onShow()};
IN.prototype.onButtonTap_=function(z){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(z)};
IN.prototype.computeMainThumbnailWidth_=function(z){return z&&z.length!==0?72:96};
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.e([_.t(MIK.YtUnlimitedFamilyInterstitialBehavior),_.w("design:type",Object)],IN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],IN.prototype,"data",void 0);
_.e([_.X({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.w("design:type",Number)],IN.prototype,"mainThumbnailWidth_",void 0);_.e([_.X({value:function(){return this.onButtonTap_.bind(this)}}),
_.w("design:type",Function)],IN.prototype,"boundButtonTap_",void 0);_.e([_.Wy({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],IN);
_.r(IN,"yt-unlimited-family-profile-interstitial-renderer",function(){if(OTc===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;x$X===void 0&&(x$X=document.createElement("template"));var b=x$X;I.call(l,b.content.cloneNode(!0),z.content.firstChild);OTc=z}z=OTc;return z},{mode:2});var gXW;var G0s;var bZ=function(){var z=_.q.apply(this,arguments)||this;z.sliderAriaValueText_=null;z.selectedIndex_=0;z.messages={PAUSE_SLIDER:_.mY("PAUSE_SLIDER",void 0,"Pause Duration")};return z};
_.m(bZ,_.q);_.p=bZ.prototype;_.p.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_]]"}}}}}};
_.p.onPopupOpened_=function(z){z.detail==this&&_.C("enable_premium_voluntary_pause")&&(_.Gb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.setDialogData=function(z){this.data=z;this.resetSlider_()};
_.p.dataChanged_=function(){this.data&&this.resetSlider_()};
_.p.onSubmitTap_=function(){if(this.data.confirmCommand){var z=this.data.confirmCommand;_.k(z,_.f$w)&&_.uJ(this.hostElement,[z,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.p.onExitButtonTap_=function(){_.Gb(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.p.closePopupHandler_=function(z,l){(l&&l.canceled===!0||l.canceled===!1&&l.confirmed===!1)&&this.handleOnDismissCommands_()};
_.p.onSliderChange_=function(){this.selectedIndex_=_.Hy(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.p.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.p.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.p.resetSlider_=function(){if(this.data){var z=this.data.defaultEndOptionIndex||0,l=_.Hy(this.hostElement).querySelector("#id-pause-slider");if(l.immediateValue<z)for(;l.immediateValue!=z;)l.increment();else if(z<l.immediateValue)for(;l.immediateValue!=z;)l.decrement();this.selectedIndex_=z;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.p.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ZE(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ZE(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.loading=!0};
_.p.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
bZ.prototype.onYtServiceRequestCompleted=bZ.prototype.onYtServiceRequestCompleted;bZ.prototype.onYtServiceRequestSent=bZ.prototype.onYtServiceRequestSent;bZ.prototype.closePopupHandler_=bZ.prototype.closePopupHandler_;bZ.prototype.dataChanged_=bZ.prototype.dataChanged_;bZ.prototype.onPopupOpened_=bZ.prototype.onPopupOpened_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],bZ.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],bZ.prototype,"loading",void 0);_.e([_.X(),_.w("design:type",Number)],bZ.prototype,"selectIndexMax_",void 0);_.e([_.X(),_.w("design:type",Object)],bZ.prototype,"selectedData_",void 0);
_.e([_.X(),_.w("design:type",Object)],bZ.prototype,"sliderAriaValueText_",void 0);_.e([_.X({value:function(){return this.onSubmitTap_.bind(this)}}),
_.w("design:type",Function)],bZ.prototype,"onButtonTap_",void 0);_.e([_.X({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.w("design:type",Function)],bZ.prototype,"onSecondaryTap_",void 0);_.e([_.X(),_.w("design:type",Object)],bZ.prototype,"messages",void 0);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],bZ.prototype,"onPopupOpened_",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],bZ.prototype,"dataChanged_",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],bZ.prototype,"closePopupHandler_",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],bZ.prototype,"onYtServiceRequestSent",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],bZ.prototype,"onYtServiceRequestCompleted",null);_.e([_.Wy({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],bZ);
_.r(bZ,"yt-unplugged-pause-membership-dialog-renderer",function(){if(G0s===void 0){var z=document.createElement("template");_.K(z,'\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>');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;gXW===void 0&&(gXW=document.createElement("template"));var b=gXW;I.call(l,b.content.cloneNode(!0),z.content.firstChild);G0s=z}z=G0s;return z},{mode:2});var NJy;var EXq;var v3=function(){return _.q.apply(this,arguments)||this};
_.m(v3,_.q);v3.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ro("vcBalanceRenderer")}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],v3.prototype,"data",void 0);_.e([_.Wy({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],v3);
_.r(v3,"yt-vc-offer-layout-header-renderer",function(){if(EXq===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;NJy===void 0&&(NJy=document.createElement("template"));var b=NJy;I.call(l,b.content.cloneNode(!0),z.content.firstChild);EXq=z}z=EXq;return z},{mode:2});var uR4;var ZTW;var HTX;var yVl;var MC=function(){return _.q.apply(this,arguments)||this};
_.m(MC,_.q);MC.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vP.Object.defineProperties(MC.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.W4M.YtTappableItemBehavior),_.w("design:type",Object)],MC.prototype,"ytTappableItemBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],MC.prototype,"data",void 0);
_.e([_.X({reflectToAttribute:!0}),_.B("data.accessibilityText"),_.w("design:type",String),_.w("design:paramtypes",[])],MC.prototype,"ariaLabel",null);_.e([_.X({reflectToAttribute:!0}),_.B("data.style"),_.w("design:type",String),_.w("design:paramtypes",[])],MC.prototype,"vcOfferStyle",null);_.e([_.B("data.style","data.titleText"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],MC.prototype,"showTitleText",null);_.e([_.Wy({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],MC);
_.r(MC,"yt-vc-offer-renderer",function(){if(yVl===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;HTX===void 0&&(HTX=document.createElement("template"));var b=HTX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);yVl=z}z=yVl;return z},{mode:2});var pC=function(){return _.q.apply(this,arguments)||this};
_.m(pC,_.q);pC.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],pC.prototype,"data",void 0);_.e([_.Wy({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],pC);
_.r(pC,"yt-vc-offer-layout-renderer",function(){if(ZTW===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;uR4===void 0&&(uR4=document.createElement("template"));var b=uR4;I.call(l,b.content.cloneNode(!0),z.content.firstChild);ZTW=z}z=ZTW;return z},{mode:2});var fgX;var CeW;var k0s;var RiW;var De=function(){return _.q.apply(this,arguments)||this};
_.m(De,_.q);De.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],De.prototype,"data",void 0);_.e([_.Wy({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],De);
_.r(De,"yt-ypc-offers-modal-top-bar-renderer",function(){if(RiW===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;k0s===void 0&&(k0s=document.createElement("template"));var b=k0s;I.call(l,b.content.cloneNode(!0),z.content.firstChild);RiW=z}z=RiW;return z},{mode:2});var xo=function(){return _.q.apply(this,arguments)||this};
_.m(xo,_.q);xo.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"}}}}};
xo.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
xo.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var z=this.scrollable;z.attached&&typeof z.attached==="function"&&z.attached()};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.e([_.qX("#scrollable"),_.w("design:type",Object)],xo.prototype,"scrollable",void 0);_.e([_.X(),_.w("design:type",Object)],xo.prototype,"data",void 0);_.e([_.Wy({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],xo);
_.r(xo,"yt-ypc-offers-modal-renderer",function(){if(CeW===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;fgX===void 0&&(fgX=document.createElement("template"));var b=fgX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);CeW=z}z=CeW;return z},{mode:2});var m$0;var KSF;var OQ=function(){return _.q.apply(this,arguments)||this};
_.m(OQ,_.q);_.p=OQ.prototype;_.p.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}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Hy(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.p.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Gb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.p.onYtPopupOpened_=function(z,l){(l==null?void 0:l.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ZE(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.onYtPopupClosed_=function(z,l){this.continueButtonTapped||l&&(l.canceled===!0||l.canceled===!1&&l.confirmed===!1)&&this.data.onDismissCommands&&_.ZE(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestError_=function(z){this.set("showSpinner",!1);_.IF(this.hostElement,z.detail.error.message)};
_.p.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.C("enable_ypc_spinners")?_.Gb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
OQ.prototype.onYtServiceRequestError_=OQ.prototype.onYtServiceRequestError_;OQ.prototype.onYtPopupClosed_=OQ.prototype.onYtPopupClosed_;OQ.prototype.onYtPopupOpened_=OQ.prototype.onYtPopupOpened_;OQ.prototype.onYtServiceRequestCompleted_=OQ.prototype.onYtServiceRequestCompleted_;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);
_.e([_.X(),_.w("design:type",Object)],OQ.prototype,"data",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],OQ.prototype,"showSpinner",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],OQ.prototype,"continueButtonTapped",void 0);_.e([_.X({value:function(){return this.onContinueTapped_.bind(this)}}),
_.w("design:type",Function)],OQ.prototype,"bindOnContinueTapped_",void 0);_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],OQ.prototype,"onYtServiceRequestCompleted_",null);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],OQ.prototype,"onYtPopupOpened_",null);
_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],OQ.prototype,"onYtPopupClosed_",null);_.e([_.tP("yt-service-request-error"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],OQ.prototype,"onYtServiceRequestError_",null);_.e([_.Wy({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],OQ);
_.r(OQ,"yt-ypc-upgrade-dialog-renderer",function(){if(KSF===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;m$0===void 0&&(m$0=document.createElement("template"));var b=m$0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);KSF=z}z=KSF;return z},{mode:2});var tIl;var BJl;var gd=function(){return _.q.apply(this,arguments)||this};
_.m(gd,_.q);gd.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gd.prototype.computeHasButtons_=function(z){return!(!z.dismissButton&&!z.confirmButton)};
gd.prototype.computeStyle_=function(z){return z||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],gd.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],gd.prototype,"data",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],gd.prototype,"positionType",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.w("design:type",Boolean)],gd.prototype,"hasButtons_",void 0);_.e([_.X({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.w("design:type",Boolean)],gd.prototype,"style_",void 0);_.e([_.Wy({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],gd);
_.r(gd,"yt-bubble-hint-renderer",function(){if(BJl===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;tIl===void 0&&(tIl=document.createElement("template"));var b=tIl;I.call(l,b.content.cloneNode(!0),z.content.firstChild);BJl=z}z=BJl;return z},{mode:2});var Xzq;var qys;var GP=function(){var z=_.Mr.apply(this,arguments)||this;z.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return z};
_.m(GP,_.Mr);_.p=GP.prototype;_.p.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.p.attached=function(){var z=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){z.$.thumbnail.onShow();z.$["header-image"].onShow()})};
_.p.handleCheckBoxUpdateAction_=function(z){this.canShowCheckboxEnabledConfirmButton=z};
_.p.computeUseOverlayForSpinner_=function(z,l){return!!z&&l};
_.p.computeShowSpinner_=function(z,l){return z||!!l};
_.p.fireOnCloseActions_=function(){var z,l=_.D(((z=this.data)==null?void 0:z.onClosedActions)||[]);for(z=l.next();!z.done;z=l.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.p.fireOnOpenCommands_=function(z){var l,I=(l=this.data)==null?void 0:l.onOpenCommands;if(I)for(z.stopImmediatePropagation(),z=_.D(I),l=z.next();!l.done;l=z.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.p.fireOnDismissCommands_=function(z){var l,I=(l=this.data)==null?void 0:l.onDismissCommands;if(I)for(z.stopImmediatePropagation(),z=_.D(I),l=z.next();!l.done;l=z.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.p.openPopupHandler_=function(z){z.detail==this&&this.fireOnOpenCommands_(z)};
_.p.closePopupHandler_=function(z,l){_.EK(this,"yt-confirm-dialog-close-action",[l]);this.fireOnCloseActions_();(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1)&&this.fireOnDismissCommands_(z)};
_.p.onHeaderImageChanged_=function(){var z;((z=this.data)==null?0:z.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.p.computeHasHeaderImageWidth_=function(z){return z!=void 0};
_.p.computeHasLoadingMessage=function(z){return!!z};
_.p.onHeaderImageWidthChanged_=function(){var z,l=(z=this.data)==null?void 0:z.headerImageWidth;if(l){if(z=1.25*l*2+l,this.$.main.style.width=z+"px",l=this.$.scroller.firstElementChild)l.style.minWidth=z+"px"}else this.$.main.style.width="100%"};
_.p.onThumbnailChanged_=function(){var z;((z=this.data)==null?0:z.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")};
_.p.onYtNavigate_=function(z){z=_.pJ(z);z instanceof Node&&_.y5(this.$["confirm-button"]).contains(z)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.p.computePrimaryIsCancel_=function(z){return z};
_.p.computeIsCancelButtonHidden_=function(z){return z.skipCancelButton||!z.cancelButton};
_.p.computeIsCheckboxHidden_=function(z){return!z.checkbox};
_.p.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.p.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.p.onYtServiceRequestCompleted_=function(){var z;((z=this.data)==null?0:z.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.vP.Object.defineProperties(GP,{template:{configurable:!0,enumerable:!0,get:function(){if(qys===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;Xzq===void 0&&(Xzq=document.createElement("template"));var b=Xzq;I.call(l,b.content.cloneNode(!0),z.content.firstChild);qys=z}z=qys;return z}}});
GP.prototype.onYtServiceRequestCompleted_=GP.prototype.onYtServiceRequestCompleted_;GP.prototype.onYtServiceRequestSent_=GP.prototype.onYtServiceRequestSent_;GP.prototype.onThumbnailLoaded_=GP.prototype.onThumbnailLoaded_;GP.prototype.onYtNavigate_=GP.prototype.onYtNavigate_;GP.prototype.onThumbnailChanged_=GP.prototype.onThumbnailChanged_;GP.prototype.onHeaderImageWidthChanged_=GP.prototype.onHeaderImageWidthChanged_;GP.prototype.onHeaderImageChanged_=GP.prototype.onHeaderImageChanged_;
GP.prototype.closePopupHandler_=GP.prototype.closePopupHandler_;GP.prototype.openPopupHandler_=GP.prototype.openPopupHandler_;_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],GP.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);
_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],GP.prototype,"ytEventForwardingBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],GP.prototype,"data",void 0);_.e([_.X({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.w("design:type",Boolean)],GP.prototype,"primaryIsCancel",void 0);_.e([_.X({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.w("design:type",Boolean)],GP.prototype,"isCancelButtonHidden",void 0);
_.e([_.X({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.w("design:type",Boolean)],GP.prototype,"isCheckboxHidden",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],GP.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.e([_.X({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.w("design:type",Boolean)],GP.prototype,"useOverlayForSpinner_",void 0);
_.e([_.X({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.w("design:type",Boolean)],GP.prototype,"showSpinner_",void 0);_.e([_.X({value:!1}),_.w("design:type",Boolean)],GP.prototype,"isActionInProgress_",void 0);_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.w("design:type",Boolean)],GP.prototype,"hasHeaderImageWidth_",void 0);
_.e([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.w("design:type",Boolean)],GP.prototype,"hasLoadingMessage",void 0);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],GP.prototype,"openPopupHandler_",null);_.e([_.tP("yt-popup-closed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],GP.prototype,"closePopupHandler_",null);
_.e([_.By("data.headerImage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"onHeaderImageChanged_",null);_.e([_.By("data.headerImageWidth"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"onHeaderImageWidthChanged_",null);_.e([_.By("data.thumbnail"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"onThumbnailChanged_",null);
_.e([_.tP("yt-navigate"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],GP.prototype,"onYtNavigate_",null);_.e([_.tP("yt-img-shadow-loaded"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],GP.prototype,"onThumbnailLoaded_",null);_.e([_.tP("yt-service-request-sent"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.jO]),_.w("design:returntype")],GP.prototype,"onYtServiceRequestSent_",null);
_.e([_.tP("yt-service-request-completed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,_.pY]),_.w("design:returntype")],GP.prototype,"onYtServiceRequestCompleted_",null);_.e([_.Wy({is:"yt-confirm-dialog-renderer",noInjection:!0})],GP);var iTK;var FSS;var NC=function(){return _.q.apply(this,arguments)||this};
_.m(NC,_.q);NC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Hy(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
NC.prototype.computeConfirmButton_=function(z){var l={text:z.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};z.confirmNavigationEndpoint?l.navigationEndpoint=z.confirmNavigationEndpoint:z.confirmServiceEndpoint&&(l.serviceEndpoint=z.confirmServiceEndpoint);return l};
NC.prototype.computeShowTitle_=function(z){return!(z==null||!z.title)};
_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],NC.prototype,"data",void 0);_.e([_.X({computed:"computeShowTitle_(data)"}),_.w("design:type",Boolean)],NC.prototype,"showTitle",void 0);_.e([_.Wy({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],NC);
_.r(NC,"yt-fancy-dismissible-dialog-renderer",function(){if(FSS===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;iTK===void 0&&(iTK=document.createElement("template"));var b=iTK;I.call(l,b.content.cloneNode(!0),z.content.firstChild);FSS=z}z=FSS;return z});var Q$S;var YyK;var EQ=function(){var z=_.q.apply(this,arguments)||this;z.spinnerActive=!1;return z};
_.m(EQ,_.q);EQ.prototype.created=function(){NxK(2201)};
EQ.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
EQ.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
EQ.prototype.onIronOverlayClosed=EQ.prototype.onIronOverlayClosed;EQ.prototype.onIronOverlayOpened=EQ.prototype.onIronOverlayOpened;_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.GJ),_.w("design:type",Object)],EQ.prototype,"tpYtIronOverlayBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],EQ.prototype,"data",void 0);_.e([_.X(),_.w("design:type",Object)],EQ.prototype,"spinnerActive",void 0);
_.e([_.tP("iron-overlay-opened"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EQ.prototype,"onIronOverlayOpened",null);_.e([_.tP("iron-overlay-closed"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],EQ.prototype,"onIronOverlayClosed",null);_.e([_.Wy({is:"yt-loading-renderer",disableElementRegistration:!0})],EQ);
_.r(EQ,"yt-loading-renderer",function(){if(YyK===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Q$S===void 0&&(Q$S=document.createElement("template"));var b=Q$S;I.call(l,b.content.cloneNode(!0),z.content.firstChild);YyK=z}z=YyK;return z},{mode:2});var TJc;var cV4;var uZ=function(){var z=_.q.apply(this,arguments)||this;z.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);z.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);z.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";z.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return z};
_.m(uZ,_.q);_.p=uZ.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(z){this.isDarkTheme=z};
_.p.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.p.openPopupHandler_=function(z){z.detail===this.hostElement&&this.hostElement.hidden&&_.Gb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.p.onDismissButtonTap_=function(){var z;this.closeOnDismissButton_.has(((z=this.data)==null?void 0:z.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Gb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.onAcceptButtonTap_=function(){var z;this.closeOnAcceptButton_.has(((z=this.data)==null?void 0:z.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Gb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.computeHasHeader_=function(z){return!!z.headerBackgroundImage};
_.p.computeLayoutStyle_=function(z){return z};
_.p.computePopupSize_=function(z){return z};
_.p.computeIconType_=function(z){return z.dialogIcon&&z.dialogIcon.iconType?z.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":z.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":z.dialogIcon.iconType:""};
_.p.computeIsLogo_=function(z){return!!z.dialogIcon&&!!z.dialogIcon.iconType&&(z.dialogIcon.iconType==="YOUTUBE_LOGO"||z.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||z.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.p.computeHasCustomLogo=function(z){return!(z==null||!z.headerForegroundImage)};
_.p.computeCustomLogo=function(z,l){if(z!=null&&z.headerForegroundImage)return z.headerForegroundImageDark?l?z.headerForegroundImageDark:z.headerForegroundImage:z.headerForegroundImage};
_.p.computeHeaderBackgroundImage=function(z,l){if(z!=null&&z.headerBackgroundImage)return l&&(z==null?0:z.headerBackgroundImageDark)?z.headerBackgroundImageDark:z.headerBackgroundImage};
_.p.shouldShowIconContainer=function(z,l){return z&&!l};
_.p.shouldShowNonYouTubeIcon=function(z,l){return!z&&!l};
_.p.getLogoImageId=function(z){var l,I,b;return(z=(l=this.computeCustomLogo(z,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(b=I[0])==null?void 0:b.height)&&z%31===0?"custom-logo-with-padding":"custom-logo"};
uZ.prototype.openPopupHandler_=uZ.prototype.openPopupHandler_;uZ.prototype.dataChanged_=uZ.prototype.dataChanged_;_.e([_.t(_.Y$.YtRendererstamperBehavior),_.w("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.e([_.X(),_.w("design:type",Boolean)],uZ.prototype,"isDarkTheme",void 0);
_.e([_.X({computed:"computeCustomLogo(data, isDarkTheme)"}),_.w("design:type",Object)],uZ.prototype,"customLogo",void 0);_.e([_.X({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.w("design:type",Object)],uZ.prototype,"headerBackgroundImage",void 0);_.e([_.X(),_.w("design:type",Object)],uZ.prototype,"data",void 0);_.e([_.X({computed:"computeHasHeader_(data)"}),_.w("design:type",Boolean)],uZ.prototype,"hasHeader",void 0);
_.e([_.X({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.w("design:type",Object)],uZ.prototype,"layoutStyle",void 0);_.e([_.X({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.w("design:type",Object)],uZ.prototype,"popupSize",void 0);_.e([_.X({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],uZ.prototype,"hasLogo",void 0);
_.e([_.X({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.w("design:type",Boolean)],uZ.prototype,"hasCustomLogo",void 0);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],uZ.prototype,"dataChanged_",null);_.e([_.tP("yt-popup-opened"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],uZ.prototype,"openPopupHandler_",null);
_.e([_.Wy({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],uZ);
_.r(uZ,"yt-upsell-dialog-renderer",function(){if(cV4===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;TJc===void 0&&(TJc=document.createElement("template"));var b=TJc;I.call(l,b.content.cloneNode(!0),z.content.firstChild);cV4=z}z=cV4;return z},{mode:2});var Sy4=_.P(function(z){return _.N("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.N(_.E,{cond:z.title,then:function(l){return _.N("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},l)}}))},"Dh"),d$0=_.P(function(z){return _.N("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.N(_.TS,{data:z.closeButton},{buttonViewModel:function(l){return _.N("div",null,_.N(_.h4,{data:l.data}))}}))},"Eh"),oXq=_.P(function(z){var l=z.data;
return _.N(_.xP,null,_.N("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.N("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.N(_.E,{cond:function(){return!!l().image&&!!l().title},
then:function(){return _.N(_.pK,{data:function(){return l().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.N("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.N(_.E,{cond:function(){return l().title},
then:function(I){return _.N("h3",{class:"miniAppGameInfoDialogViewModelTitle"},I)}}),_.N(_.E,{cond:function(){return l().primaryGenre},
then:function(I){return _.N("span",{class:"miniAppGameInfoDialogViewModelGenre"},I)}}))),_.N(_.E,{cond:function(){var I=l().description;
return I&&I.length<=150},
then:function(){return _.N("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.N("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return l().description}))}}))},"Fh"),Pe1=_.P(function(z){z=z.infoRows;
var l=_.pG().resolve(_.Cx),I=_.C("enable_displaying_ppn");return _.N("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.N(_.qy,{each:z},function(b){return _.N("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.N(_.E,{cond:function(){return b.label},
then:function(v){return _.N("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},v)}}),_.N(_.E,{cond:function(){return b.attributedLabel},
then:function(v){return _.N("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.N(_.Rf,{text:v,noPreWrap:!0}))}}),_.N(_.E,{cond:function(){return b.value},
then:function(v){return _.N("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},v)}}),_.N(_.E,{cond:function(){return b.attributedValue},
then:function(v){return _.N("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.N(_.Rf,{text:v,noPreWrap:!0}))}}))}),_.N(_.E,{cond:function(){return I&&l.clientData.has("post_play_nonce")},
then:function(){return _.N("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.N("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.N("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},l.getData("post_play_nonce")))}}))},"Gh"),hi4=_.P(function(z){var l=z.data;
return _.N("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.N(Sy4,{title:function(){return l().dialogTitle}}),_.N(oXq,{data:l}),_.N(_.E,{cond:function(){return l().infoRow},
then:function(I){return _.N(Pe1,{infoRows:I})}}),_.N(d$0,{closeButton:function(){return l().closeButton}}))},"Hh");
hi4.idomCompat=!0;_.uO(hi4,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;return _.N("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.N(_.pK,{data:function(){return l().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.N("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.N("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.N(_.E,{cond:function(){var I=l().ytLogo;return I?I.iconType:null},
then:function(I){return _.N(_.qt,{icon:I,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.N("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.N("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.N(_.Rf,{text:function(){return l().body}})),_.N("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.N(_.Rf,{text:function(){return l().verifyStateText}}))),
_.N("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.N("div",null,_.N(_.TS,{data:function(){return l().dismissButton}},{buttonViewModel:_.h4})),_.N("div",null,_.N(_.TS,{data:function(){return l().linkParentButton}},{buttonViewModel:_.h4})))))},"Ih"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.mB}});var s$S=_.P(function(z){var l=z.data;z=_.Df(function(){return l().agreements},[]);
return _.N("installment-agreements-view-model",{class:_.m9("ytInstallmentAgreementsViewModelHost")},_.N(_.qy,{each:z},function(I){return _.N("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.N("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.N(_.Rf,{text:I.label})),_.N("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.N(_.TS,{data:function(){return I.openButton}},{buttonViewModel:_.h4})))}))},"Jh");
s$S.idomCompat=!0;var rV8=_.P(function(z){var l=_.D(_.Br(function(){var L,lH;return((L=z.data().createPlaylistDialogFormSchema)==null?0:(lH=L.initialValues)==null?0:lH.title)?z.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=l.next().value,b=l.next().value;
l=_.D(_.Br(function(){z.data();return!1}));
var v=l.next().value,M=l.next().value;l=_.D(_.Br(function(){z.data();return!1}));
var x=l.next().value,g=l.next().value;l=_.D(_.Br(function(){var L,lH;return(L=z.data().createPlaylistDialogFormSchema)==null?void 0:(lH=L.initialValues)==null?void 0:lH.visibility}));
var G=l.next().value,u=l.next().value;l=_.D(_.Br(function(){z.data();return!1}));
var Z=l.next().value,H=l.next().value;l=_.D(_.Br(function(){var L,lH;return(L=z.data().createPlaylistDialogFormSchema)==null?void 0:(lH=L.initialValues)==null?void 0:lH.isCollaborative}));
var y=l.next().value,f=l.next().value,R=_.VK("div");_.Te(function(){var L=R.value.querySelector("textarea");L&&(L.value=I())},"sgS9sc");
_.Sm(function(){var L;_.bGC((L=z.data().createPlaylistDialogFormSchema)==null?void 0:L.id,{onSubmit:function(){var lH=I();var Gk=G(),uH=y(),Xt=z.data();lH={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:lH,privacyStatus:Gk,videoIds:Xt.videoIds,sourcePlaylistId:Xt.sourcePlaylistId,params:uH?Xt.createPlaylistParamsCollaborationEnabled:Xt.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.pG().resolve(_.DQ).resolveCommand(lH)},
isValid:function(){return v()&&!x()&&!Z()}})});
var F=function(L){if(L!==void 0&&(b(L),!v()&&L.length>0&&M(!0),v())){var lH=kSs(z.data());if(lH){var Gk=lH.minLength;lH=lH.maxLength;Gk&&L.length<Gk?g(!0):lH&&L.length>lH?g(!0):g(!1)}}},Y=function(){var L=!(!y()||G()!=="PRIVATE");
H(L)},c=function(L){L!==void 0&&(u(L),Y())},d=function(){if(Z())return mvs(z.data())},V=function(){f(!y());
Y()},A=function(){return{validate:function(L){if(v()){var lH=kSs(z.data());
if(lH){var Gk=lH.minLength;lH=lH.translations;if(Gk&&L.length<Gk)return lH==null?void 0:lH.minLengthErrorMessage}}}}},W=function(){var L=kSs(z.data()),lH=L==null?void 0:L.maxLength,Gk;
L=L==null?void 0:(Gk=L.translations)==null?void 0:Gk.maxLengthErrorMessage;if(lH&&L)return{maxChars:lH,errorMessage:L}};
return _.N("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.N("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:R},_.N(_.TS,{data:function(){return z.data().playlistTitle}},{textFormFieldViewModel:function(L){return _.N(_.nF0,{data:L.data,
text:I,onInput:F,validation:A,characterLimit:W})},
textFieldViewModel:function(L){return _.N(_.WI1,{data:L.data,text:I,onInput:F,validation:A,characterLimit:W})}})),_.N("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.N(_.TS,{data:function(){return z.data().playlistVisibility}},{dropdownViewModel:function(L){return _.N(_.vOS,{data:L.data,
onSelected:c,error:d})}})),_.N(_.E,{cond:function(){return!!z.data().playlistCollaborate},
then:function(){return _.N("div",null,_.N(_.TS,{data:function(){return z.data().playlistCollaborate}},{switchListItemViewModel:function(L){return _.N(_.eu0,{data:L.data,
onTap:V})}}))}}))},"Kh");var $$S=_.P(function(z){var l=z.data;return _.N("upsell-offer-table-cell-content-view-model",null,_.N("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.N(_.Q7,null,_.N(_.is,{when:function(){return l().iconType}},function(){return _.N("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.N(_.qt,{icon:function(){return l().iconType.toString()}}))}),_.N(_.is,{when:function(){return l().title}},function(){return _.N(_.Rf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return l().title}})}),_.N(_.is,{when:function(){return l().subtitle}},function(){return _.N(_.Rf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return l().subtitle}})}),_.N(_.is,{when:function(){return l().infoText}},function(){return _.N(_.Rf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return l().infoText}})}),_.N(_.is,{when:function(){return l().featureDescription}},function(){return _.N(_.Rf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return l().featureDescription}})}),_.N(_.is,{when:function(){return l().note}},function(){return _.N(_.Rf,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return l().note}})}))))},"Lh");
$$S.idomCompat=!0;var eil=_.P(function(z){var l=z.data;return _.N("upsell-offer-table-cell-view-model",null,_.N("div",{class:_.m9("ytUpsellOfferTableCellViewModelCellWrapper",function(){return l().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.N(_.TS,{data:function(){return l().contents}},{upsellOfferTableCellContentViewModel:$$S})))},"Mh");
eil.idomCompat=!0;var wz4=_.P(function(z){var l=z.data;var I=z.upsellTableIsFirstRow;var b=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},v=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.N("ytm-upsell-offer-table-row-view-model",null,_.N("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.N(_.TS,{data:function(){return l().rowHeaderCell}},{upsellOfferTableCellViewModel:function(M){return _.N("div",{class:b},_.N(eil,{data:M.data}))}}),_.N(_.TS,{data:function(){return l().contentCells}},{upsellOfferTableCellViewModel:function(M){return _.N("div",{class:v},_.N(eil,{data:M.data}))}})))},"Nh");
wz4.idomCompat=!0;var AVc=_.P(function(z){var l=z.data;return _.N("ytm-upsell-offer-table-view-model",null,_.N("div",{class:"ytUpsellOfferTableViewModelHost"},_.N("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.N(_.TS,{data:function(){return l().rows}},{upsellOfferTableRowViewModel:function(I,b){return _.N(wz4,{data:I.data,
upsellTableIsFirstRow:function(){return b()===0}})}}))))},"Oh");
AVc.idomCompat=!0;var WSC=_.P(function(z){var l=_.Df(z.noPadding,!1),I=function(){var M,x;return(x=(M=z.data().logo.accessibilityData)==null?void 0:M.label)!=null?x:""},b=function(){return z.data().offerTable},v={};
return _.N("upsell-view-model",{class:_.m9("ytUpsellViewModelHost",(v.ytUpsellViewModelHostNoPadding=function(){return l()},v.ytUpsellViewModelHostWide=function(){return b()!==void 0},v))},_.N("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.N(_.E,{cond:function(){return _.j9(z.data().logo)},
then:function(M){return _.N(_.pK,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:I})}})),_.N("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.N(_.Rf,{text:function(){return z.data().title}})),_.N("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.N(_.qy,{each:function(){var M;
return(M=z.data().subtitles)!=null?M:[]},
keyBy:"INDEX"},function(M){var x={};return _.N("div",{class:_.m9("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(x.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return b()!==void 0},x))},_.N(_.Rf,{text:M}))})),_.N("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.N(_.qy,{each:function(){var M;
return(M=z.data().benefitInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){return _.N(_.E,{cond:function(){return M().info},
then:function(x){return _.N("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.N(_.qt,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.N(_.Rf,{text:x}))}})})),_.N(_.E,{cond:function(){return b()!==void 0},
then:function(){return _.N("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.N(AVc,{data:b}))}}),_.N("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.N(_.qy,{each:function(){var M;
return(M=z.data().legalInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){var x={};return _.N("div",{class:_.m9("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(x.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return b()!==void 0},x))},_.N(_.Rf,{text:M}))})))},"Ph");var nXC=_.P(function(z){var l=z.data;z={};z=(z.ytMiniAppScoreChallengeViewModelScoreRadial=!0,z.ytMiniAppScoreChallengeViewModelDarkScoreRadial=KEq(),z);return _.N("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.N("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return l().title}),_.N("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return l().subtitle}),_.N("div",{class:_.sB(z)},_.N("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return l().score})),_.N("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return l().prompt}))},"Qh");var LSF=function(){this.store=_.M8();this.formId=""};
LSF.prototype.onInit=function(z){z.formId&&(this.formId=z.formId,this.store.dispatch(_.GZ({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var U$W=_.P(function(z){function l(g){if(g&&(g=_.k(g,_.d5)))return Object.assign({},g,{isSelected:M()})}
var I=_.D(_.Br(function(){var g,G;return(G=(g=_.k(z.data().option,_.d5))==null?void 0:g.isSelected)!=null?G:!1})),b=I.next().value,v=I.next().value,M=b;
_.Sm(function(){var g;_.bGC((g=z.data().formSchema)==null?void 0:g.id,{onSubmit:function(){var G=_.pG().resolve(_.DQ),u=!!z.data().selectedCommand,Z=!!z.data().unselectedCommand;if(M()){if(u)var H=z.data().selectedCommand}else Z&&(H=z.data().unselectedCommand);H=_.Wh(H);l(z.data().option)&&!H?(G="",!u&&Z?G="selected ":u&&!Z&&(G="unselected "),u=new _.qB("No "+G+"command found for SelectionListItemFormViewModel"),_.dE(u)):H&&G.resolveCommand(H)},
isValid:function(){return!0}})});
var x=function(){v(!M())};
_.cb(function(){var g,G,u=(g=z.data())==null?void 0:(G=g.formSchema)==null?void 0:G.id;u&&_.Qo()().delete(u)});
return _.N("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.N("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.N(_.Rf,{text:function(){return z.data().paragraph}})),_.N(_.E,{cond:function(){return l(z.data().option)},
then:function(g){return _.N(_.GA,{data:g,isCompact:!0,hideSelectionTextChevron:!0,onTap:x,disableHorizontalPadding:!0})}}))},"Rh");var agS=_.P(function(z){var l=z.data;var I=z.disablePadding;var b=z.className;var v=_.VK("yt-dialog-header-view-model"),M=function(){var g=l().imageBanner;a:switch(l().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var G="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:G="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:g,style:G,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},x=function(){return l().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Sm(function(){var g=function(){_.Gb(v.value,"yt-refit-popups-action")},G;
(G=v.value)==null||G.addEventListener("image-loaded",g);_.cb(function(){var u;(u=v.value)==null||u.removeEventListener("image-loaded",g)})});
z={};return _.N("yt-dialog-header-view-model",{el:v,class:_.m9(b,(z.ytDialogHeaderViewModelHost=!0,z.ytDialogHeaderViewModelHostDisablePadding=I,z))},_.N(_.E,{cond:function(){return l().imageBanner},
then:function(){var g={};return _.N("div",{class:_.m9(b,(g.ytDialogHeaderViewModelBanner=!0,g.ytDialogHeaderViewModelBannerFullBleed=x,g)),style:_.XV({"max-height":function(){return l().assetContainerMaxHeight!==void 0?l().assetContainerMaxHeight+"px":void 0}})},_.N(_.cm,{data:M,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.N(_.E,{cond:function(){return l().headerBlock},
then:function(){return _.N("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.N(_.TS,{data:function(){return l().headerBlock}},{contentPreviewImageViewModel:function(g){return _.N(_.cm,{data:g.data,
notifyOnLoaded:!0})}}))}}),_.N(_.E,{cond:function(){return l().customBanner},
then:function(g){return _.N("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.N(_.TS,{data:g},{avatarStackViewModel:_.Oq}))}}),_.N(_.E,{cond:function(){return l().headline},
then:function(g){return _.N("h2",null,_.N(_.Rf,{text:g,className:"ytDialogHeaderViewModelText"}))}}))},"Sh");
agS.idomCompat=!0;var VIs=_.P(function(z){var l=_.AjQ(function(){return z.data().formId}),I=l.submitForm,b=l.isValid;
return _.N("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.N(_.TS,{data:function(){return z.data().panelFooter}},{panelFooterViewModel:function(v){return _.N(_.Qx,{data:v.data,
disablePadding:!0,disablePrimaryButton:function(){return!b()},
onClickPrimaryButton:function(){I()}})}}))},"Th");var j$K=_.P(function(z){var l=function(){var I,b;return(b=(I=_.k(z.data().rendererContext,_.YM))==null?void 0:I.label)!=null?b:""};
return _.N("yt-dialog-image-content-view-model",{class:_.m9("ytDialogImageContentViewModelHost",z.className)},_.N(_.E,{cond:function(){return _.j9(z.data().image)},
then:function(I){var b={};return _.N("div",{style:_.XV((b.width=(0,_.DN)(function(){var v;return(v=z.data().imageMaxWidth)!=null?v:""}),b)),
class:"ytDialogImageContentViewModelImage"},_.N(_.pK,{data:I,alt:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.N(_.Rf,{text:function(){return z.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Uh");var ldc=_.P(function(z){var l=_.xC(z,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=l.elRefCallback;z=l.iconWiz;var b=l.assetWiz,v=l.assetType,M=l.titleWiz,x=l.leadingActionHeaderWiz,g=l.trailingActionHeaderWiz,G=l.headerPosition,u=l.contentWiz,Z=l.buttonLayout,H=l.buttonStyle,y=l.primaryButtonWiz,f=l.secondaryButtonWiz,R=l.contentAlignment,F=l.isFullscreen,Y=l.width,c=l.maxHeight,d=l.isHeaderWizDefined,
V=l.headerWiz,A=l.isFooterWizDefined,W=l.footerWiz;l=_.VK("dialog-layout",function(o1){I==null||I(o1)});
var L=b?function(){return b({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,lH=y?function(){var o1={};
return y({buttonOverrides:function(){return{style:(H==null?void 0:H())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.m9((o1["yt-spec-dialog-layout__dialog-layout-button"]=!0,o1["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Z==null?void 0:Z())===0||(Z==null?void 0:Z())===2},o1))})}:void 0,Gk=f?function(){var o1={};
return f({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.m9((o1["yt-spec-dialog-layout__dialog-layout-button"]=!0,o1["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Z==null?void 0:Z())===0||(Z==null?void 0:Z())===2},o1))})}:void 0,uH=function(){return(!!M||!!x||!!g)&&G()===0},Xt={},R1={},H7={},P7={};
return _.N("dialog-layout",{el:l,class:_.m9((Xt["yt-spec-dialog-layout"]=!0,Xt["yt-spec-dialog-layout--dialog-layout-fullscreen"]=F,Xt["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!F()},Xt["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return c()===1},Xt["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(v==null?void 0:v())===1},Xt)),
style:function(){return(Y==null?void 0:Y())!==void 0?"width: "+Y+"px;":""}},z?_.N("div",{class:_.m9((R1["yt-spec-dialog-layout__dialog-layout-icon"]=!0,R1["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!b&&G()===1},R1["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return R()===1},R1))},_.N(z,null)):null,_.N(_.E,{cond:d,
then:function(){return V?_.N("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.N(V,null)):null},
else:function(){return _.N(_.xP,null,_.N(_.E,{cond:uH,then:function(){return _.N(JV8,{contentAlignment:R,LeadingActionHeader:x,TrailingActionHeader:g,Title:M,isAboveAsset:!!L})}}),L?_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.N(L,null)):null)}}),_.N("div",{class:_.m9((H7["yt-spec-dialog-layout__dialog-layout-container"]=!0,H7["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(R==null?void 0:R())===1},H7["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!M&&!(V&&d())||!!L&&(G==null?void 0:G())===0},H7))},_.N(_.E,{cond:function(){return M&&!V&&(G==null?void 0:G())===1},
then:function(){return _.N(JV8,{contentAlignment:R,LeadingActionHeader:x,TrailingActionHeader:g,Title:M,isAboveAsset:!1})}}),u?_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.N(u,null))):null,_.N(_.E,{cond:A,
then:function(){return W?_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.N(W,null)):null}}),lH||Gk?_.N(zEc,{footerClasses:_.m9((P7["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,P7["yt-spec-dialog-layout__dialog-layout-footer"]=!0,P7["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(Z==null?void 0:Z())===2},P7["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(Z==null?void 0:Z())===1},P7)),
PrimaryButton:lH,SecondaryButton:Gk}):null))},"Vh"),JV8=_.P(function(z){var l=_.xC(z,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=l.contentAlignment,b=l.LeadingActionHeader;z=l.Title;var v=l.TrailingActionHeader,M=l.isAboveAsset,x=l.enableLeadingActionHeader;l={};return _.N("div",{class:_.m9((l["yt-spec-dialog-layout__dialog-header-container"]=!0,l["yt-spec-dialog-layout__dialog-header"]=!0,l["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=M,l["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&x()},l))},_.N(_.E,{cond:function(){return x()},
then:function(){return b?_.N("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.N(b,null)):null}}),z?_.N("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.N(z,null)):null,v?_.N("div",null,_.N(v,null)):null)},"Wh"),zEc=_.P(function(z){var l=z.footerClasses;
var I=z.PrimaryButton;z=z.SecondaryButton;return _.N("div",{class:l},z?_.N(z,null):null,I?_.N(I,null):null)},"Xh");var IdS=_.P(function(z){var l=z.data;return _.N("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.N("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.N(_.TS,{data:function(){return l().avatar}},{avatarViewModel:_.Dz})),_.N("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.Rf,{text:function(){return l().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Yh");var b31=_.P(function(z){return _.N("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.N(_.Rf,{text:function(){return z.data().inviteMessage}})),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.N(_.Rf,{text:function(){return z.data().attributedAccountSectionHeaderText}})),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.N(_.TS,{data:function(){return z.data().accountAvatar}},{avatarViewModel:_.Dz}),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.N(_.Rf,{text:function(){return z.data().accountName}}),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.N(_.Rf,{text:function(){return z.data().handle}}))),_.N(_.TS,{data:function(){return z.data().trailingButton}},{buttonViewModel:_.h4})),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.N(_.Rf,{text:function(){return z.data().termsOfService}})))},"Zh");var vfl=_.P(function(z){var l=z.data;return _.N("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.N("div",{class:"ytAccessConfirmationViewModelContent"},_.N(_.TS,{data:function(){var I;return(I=l().avatar)!=null?I:l().dualAvatar}},{dualAvatarViewModel:function(I){return _.N(_.Qk_,{data:I.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(I){return _.N(_.xQ,{data:I.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.N("h2",{class:"ytAccessConfirmationViewModelTitle"},_.N(_.Rf,{text:function(){return l().title}})),_.N(_.Rf,{text:function(){return l().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"$h");var MUK=_.P(function(z){var l=z.data;var I=void 0;z=_.D(_.Br(function(){var u;return((u=_.k(l().content,_.zi))==null?void 0:u.defaultSelectedKey)||""}));
var b=z.next().value,v=z.next().value,M,x=function(){v("");var u;(u=I)!=null&&u.store.dispatch(_.GZ({type:"RESET_COMMAND_MAP"}))};
_.Sm(function(){I=new LSF;window.addEventListener("yt-popup-closed",x)});
_.Te(function(){if(I&&M!==l().formId&&(I.onInit(l()),(M=l().formId)&&b())){var u=I,Z={key:b()};Z.command&&u.store.dispatch(NyF(M,Z.command))}},"c2n8Gf");
_.cb(function(){window.removeEventListener("yt-popup-closed",x)});
var g=function(u,Z,H){Z.key&&H&&Z.key!==b()&&(v(Z.key),I&&Z.command&&I.store.dispatch(NyF(H,Z.command)))},G=function(){if(_.k(l().content,_.zi))return!(b==null?0:b())};
return _.N("yt-dialog-view-model",{class:_.m9("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.N(ldc,{headerWiz:function(){return _.N("span",{skip:!0},_.N(_.TS,{data:function(){return l().header}},{dialogHeaderViewModel:function(u){return _.N(agS,{data:u.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!l().header},
contentWiz:function(){return _.N("span",{skip:!0},_.N(_.TS,{data:function(){return l().customContent?l().customContent:l().content}},{basicContentViewModel:_.eZl,
createPlaylistDialogFormViewModel:rV8,collaborativePlaylistInviteMessageViewModel:b31,miniAppScoreChallengeViewModel:nXC,radioButtonGroupViewModel:function(u){var Z=u.data;return _.N(_.$hq,{data:Z,selectedKey:b,onSelected:g,groupName:function(){return Z().formId}})},
selectionListItemFormViewModel:U$W,upsellViewModel:function(u){return _.N(WSC,{data:u.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:IdS,installmentAgreementsViewModel:s$S,accessConfirmationViewModel:vfl,listViewModel:function(u){return _.N(_.VBu,{data:u.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:j$K}))},
footerWiz:function(){return _.N("span",{skip:!0},_.N(_.TS,{data:function(){return l().footer}},{panelFooterViewModel:function(u){return _.N(_.Qx,{data:u.data,
disablePadding:!0,disablePrimaryButton:G})},
formPanelFooterViewModel:VIs,formFooterViewModel:function(u){return _.N(_.oFX,{data:u.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!l().footer}}))},"ai");
MUK.idomCompat=!0;_.uO(MUK,"yt-dialog-view-model",{props:{data:_.mB},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var pwC=_.P(function(z){var l=z.data;z={};return _.N("yt-panel-header-view-model",{class:_.m9("ytPanelHeaderViewModelHost",(z.ytPanelHeaderViewModelHostHideDivider=function(){return!!l().shouldHideDivider},z.ytPanelHeaderViewModelHostCompact=function(){return!!l().subtitle},z))},_.N("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.N(_.E,{cond:function(){return l().title},
then:function(I){return _.N(_.Rf,{text:I,className:"ytPanelHeaderViewModelTitle"})}}),_.N(_.E,{cond:function(){return l().subtitle},
then:function(I){return _.N(_.Rf,{text:I,className:"ytPanelHeaderViewModelSubtitle"})}})),_.N("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.N(_.TS,{data:function(){return l().trailingButtons}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
className:"ytPanelHeaderViewModelButton"})}})))},"bi");
pwC.idomCompat=!0;var DVK=_.P(function(z){var l=_.KK(function(M){var x;if((x=z.skipContentClick)==null?0:x.call(z))return!1;z.onContentWrapperClick(M);return!0}),I,b,v;
return _.N("div",{class:_.m9("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return z.isAnimating()?"transform: translateY("+z.currentY()+"px);transition: 0.2s":""}},(I=z.header)==null?void 0:I.call(z),_.N("div",{id:z.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.XV({"max-height":(0,_.DN)(z.maxHeightForContentWrapper)}),"on:scroll":qBy(z.onScroll),"on:touchmove":qBy(function(M){return void M.stopPropagation()})},_.N("div",{el:{onRender:z.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":l},(b=z.body)==null?void 0:b.call(z))),(v=z.footer)==null?void 0:v.call(z))},"ci");
DVK.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var xVy=_.P(function(z){var l=_.Df(z.leadingLabel),I=_.Df(z.trailingLabel),b=_.Df(z.footerButtonType),v=function(){return l()||I()||z.hasPrimaryButton()||z.hasSecondaryButton()},M={},x=_.m9("yt-spec-bottom-sheet-layout__primary-button",(M["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return b()===0&&z.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return b()===1&&z.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return b()===2&&z.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return b()===3&&z.hasPrimaryButton()},M));
M={};var g=_.m9("yt-spec-bottom-sheet-layout__secondary-button",(M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return b()===1&&z.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return b()===2&&z.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return b()===3&&z.hasPrimaryButton()},M));
return _.N(_.E,{cond:z.hasFooterOverride,then:function(){var G;return _.N(_.xP,null,(G=z.footerOverride)==null?void 0:G.call(z))},
else:function(){return _.N(_.E,{cond:v,then:function(){return _.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.N(_.E,{cond:function(){return l()||I()},
then:function(){var G={};return _.N("div",{class:_.m9("yt-spec-bottom-sheet-layout__footer-label-wrapper",(G["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!z.hasPrimaryButton()},G))},_.N(_.E,{cond:l,
then:function(){return _.N("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},l)}}),_.N(_.E,{cond:I,
then:function(){return _.N("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.N(_.E,{cond:function(){return z.hasPrimaryButton()||z.hasSecondaryButton()},
then:function(){var G={};return _.N("div",{class:_.m9("yt-spec-bottom-sheet-layout__footer-button-wrapper",(G["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.r9A,G))},_.N(_.E,{cond:function(){return z.hasSecondaryButton()&&b()!==0},
then:function(){var u;return _.N("div",{class:g},(u=z.secondaryButton)==null?void 0:u.call(z))}}),_.N(_.E,{cond:z.hasPrimaryButton,
then:function(){var u;return _.N("div",{class:x},(u=z.primaryButton)==null?void 0:u.call(z))}}))}}))}})}})},"di");
xVy.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var O31=_.P(function(z){var l=_.Df(z.title),I=_.Df(z.subtitle);return _.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:z.headerId,"on:touchstart":_.KK(function(b){var v;(v=z.touchstart)==null||v.call(z,b);return!1}),
"on:touchmove":_.KK(function(b){var v;(v=z.touchmove)==null||v.call(z,b);return!1}),
"on:touchend":_.KK(function(b){var v;(v=z.touchend)==null||v.call(z,b);return!1})},_.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.N(_.E,{cond:z.hasHeaderOverride,
then:function(){var b;return _.N(_.xP,null,(b=z.headerOverride)==null?void 0:b.call(z))},
else:function(){var b={};return _.N("div",{class:_.m9((b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=l,b))},_.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.N(_.E,{cond:l,then:function(){return _.N(_.xP,null,_.N("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},l),_.N(_.E,{cond:I,then:function(){return _.N("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.N(_.E,{cond:function(){return l()&&z.hasActionHeader()},
then:function(){var v;return _.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(v=z.actionHeader)==null?void 0:v.call(z))}}))}}))},"ei");
O31.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.P(function(z){function l(L){if(!c&&typeof MutationObserver!=="undefined"){var lH={childList:!0};"MutationObserver"in window&&(c=new MutationObserver(I.bind(void 0,L)),c.observe(L,lH))}}
function I(L){typeof c!=="undefined"&&(d["content-wrapper"]===void 0&&(d["content-wrapper"]=L.children[0].clientHeight),f(d["content-wrapper"]),y()>R()||F(y()))}
function b(){H(window.innerHeight);y()>R()||F(y());V.isFullScreen[0]()&&y()>R()?A().dispatch("Snap To Full Screen",{maxHeight:Y()}):A().dispatch("Snap To Neutral Position",{maxHeight:R()})}
function v(L){document.body.style.overscrollBehavior="none";L.preventDefault();A().dispatch("Touch Start",{event:L})}
function M(L){L.preventDefault();A().dispatch("Touch Move",{event:L,contentScrollable:y()>R(),fullContentWrapperHeight:Y(),contentWrapperHeight:R(),contentHeightMap:d,contentWrapperId:"content-wrapper",header:FEX(z),footer:FEX(z)})}
function x(){document.body.style.overscrollBehavior="";V.isFullScreen[0]()?V.currentY[0]()>=60?A().dispatch("Snap To Neutral Position",{maxHeight:R()}):A().dispatch("Snap To Full Screen",{maxHeight:Y()}):V.currentY[0]()>=60?g():V.currentY[0]()<=-60&&y()>R()?A().dispatch("Snap To Full Screen",{maxHeight:Y()}):A().dispatch("Snap To Neutral Position",{maxHeight:R()})}
function g(){A().dispatch("Close Sheet",{clientHeight:Z(),maxHeight:0});setTimeout(function(){iYX()},250)}
var G=_.D(_.Z_(window.innerHeight,void 0,"Q6Nekc")),u=G.next().value;G=G.next().value;var Z=u,H=G;G=_.D(_.Z_(0,void 0,"vjnlmb"));u=G.next().value;G=G.next().value;var y=u,f=G;G=_.D(_.Br(function(){var L=FEX(z);return.6*Z()-t9q(L)-B50(L)}));
u=G.next().value;G=G.next().value;var R=u,F=G,Y=function(){var L=FEX(z);return Z()-t9q(L)-B50(L)-24-24},c=null,d={},V={initialY:_.Z_(0,void 0,"B0aY2c"),
currentY:_.Z_(0,void 0,"nLPMcf"),isAnimating:_.Z_(!1,void 0,"lXnnZ"),isFullScreen:_.Z_(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.Br(R)},A=function(){var L=null;return function(){if(!L){var lH={initialY:V.initialY[0](),currentY:V.currentY[0](),isAnimating:V.isAnimating[0](),isFullScreen:V.isFullScreen[0](),maxHeightForContentWrapper:V.maxHeightForContentWrapper[0]()};L=XU0(lH)}return L}}();
_.Sm(function(){window.addEventListener("resize",b);A().subscribe(function(L){V.initialY[1](L.initialY);V.currentY[1](L.currentY);V.isAnimating[1](L.isAnimating);V.isFullScreen[1](L.isFullScreen);V.maxHeightForContentWrapper[1](L.maxHeightForContentWrapper)})});
_.cb(function(){window.removeEventListener("resize",b);c&&(c.disconnect(),c=null)});
var W=_.m9({"bottom-sheet-content-without-icon":function(){var L;return!((L=z.shouldShowIcons)==null?0:L.call(z))}});
return _.N("bottom-sheet-layout",null,_.N(DVK,{contentWrapperId:"content-wrapper",isAnimating:function(){return V.isAnimating[0]()},
currentY:function(){return V.currentY[0]()},
maxHeightForContentWrapper:function(){return V.maxHeightForContentWrapper[0]()},
shouldShowIcons:z.shouldShowIcons,skipContentClick:z.skipContentClick,onScroll:function(){var L=document.getElementById("header-wrapper"),lH=document.getElementById("content-wrapper");if(L&&lH){var Gk={};Gk=(Gk["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Gk["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Gk);L.className=lH.scrollTop>1?_.sB(Gk):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:iYX,contentWrapperEl:function(L){l(L);requestAnimationFrame(function(){I(L)})},
header:function(){return _.N(O31,{touchstart:v,touchmove:M,touchend:x,title:z.headerTitle,subtitle:z.headerSubtitle,headerId:"header-wrapper",headerOverride:z.headerFn,hasHeaderOverride:z.hasHeaderFn,actionHeader:z.headerActionHeader,hasActionHeader:z.hasHeaderActionHeader})},
footer:function(){return _.N(xVy,{footerButtonType:z.footerButtonType,leadingLabel:z.footerLeadingLabel,trailingLabel:z.footerTrailingLabel,primaryButton:z.footerPrimaryButton,hasPrimaryButton:z.hasFooterPrimaryButton,secondaryButton:z.footerSecondaryButton,hasSecondaryButton:z.hasFooterSecondaryButton,footerOverride:z.footerFn,hasFooterOverride:z.hasFooterFn})},
body:function(){return _.N(_.E,{cond:z.hasContentFn,then:function(){var L;return _.N("div",{class:W},(L=z.contentFn)==null?void 0:L.call(z))}})}}))},"fi").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var gfX=_.P(function(z){var l=_.pG().resolve(_.In);return _.N("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.KK(function(){return void l.closeSheet()})},_.N(_.E,{cond:function(){return!!z.header},
then:function(){return _.N("div",{class:"ytContextualSheetLayoutHeaderContainer"},z.header())}}),_.N(_.E,{cond:function(){return!!z.content},
then:function(){return _.N("div",{class:"ytContextualSheetLayoutContentContainer"},z.content())}}),_.N(_.E,{cond:function(){return!!z.footer},
then:function(){return _.N("div",{class:"ytContextualSheetLayoutFooterContainer"},z.footer())}}))},"gi");
gfX.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var GdX=_.P(function(z){z=z.data;var l=_.VK("yt-sheet-view-model",function(b){if(_.C("web_focus_first_element_sheet")||!_.C("sheet_focus_first_killswitch"))return b.addEventListener("focus",function(){Ccq(b)}),function(){b.removeEventListener("focus",function(){Ccq(b)})}}),I={};
return _.N("yt-sheet-view-model",{"on:mousedown":_.KK(function(b){_.C("sheet_focus_first_killswitch")||b.currentTarget!==b.target&&b.preventDefault()}),
"on:focus":_.KK(function(){_.C("sheet_focus_first_killswitch")||Ccq(l.value)}),
class:_.m9("ytSheetViewModelHost",(I.ytSheetViewModelContextual=!0,I.ytSheetViewModelDisableBackdropFilter=_.C("web_disable_backdrop_filter"),I)),el:l,tabindex:-1},_.N(_.E,{cond:z,then:function(b){return _.N(gfX,{header:function(){return _.N(_.TS,{data:function(){return b().header}},{panelHeaderViewModel:pwC})},
content:function(){return _.N(_.TS,{data:function(){return b().content}},{listViewModel:function(v){return _.N(_.VBu,{data:v.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:WSC,miniAppScoreChallengeViewModel:nXC})},
footer:function(){return _.N(_.TS,{data:function(){return b().footer}},{panelFooterViewModel:_.Qx})}})}}))},"hi");
GdX.idomCompat=!0;_.uO(GdX,"yt-sheet-view-model",{props:{data:_.mB}});var Ef8=_.P(function(z){var l=function(){var I;return(I=z.data().enableDebuggingFeatures)!=null?I:!1};
return _.N("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.N(_.qy,{each:function(){var I;return(I=z.data().stickers)!=null?I:[]}},function(I){return _.N(NhF,{data:function(){return I},
debugMode:l})}))},"ii"),NhF=_.P(function(z){var l=_.xC(z,{debugMode:!1}).debugMode,I=_.Df(function(){var G;
return(G=z.data().region)==null?void 0:G.w},0),b=_.Df(function(){var G;
return(G=z.data().region)==null?void 0:G.h},0),v=_.Df(function(){var G;
return(G=z.data().region)==null?void 0:G.x},0),M=_.Df(function(){var G;
return(G=z.data().region)==null?void 0:G.y},0),x=_.KK(function(){var G=z.data().onTap;
G&&_.ae(G)}),g={};
return _.N("div",{class:_.m9("ytStoriesStickerLayerViewModelSticker",(g.ytStoriesStickerLayerViewModelDebugMode=l,g)),style:_.XV({width:function(){return 100*I()+"%"},
height:function(){return 100*b()+"%"},
left:function(){return 100*v()+"%"},
top:function(){return 100*M()+"%"},
"flex-direction":function(){return Q00(z.data().flexDirection)},
"justify-content":function(){return YBK(z.data().justifyContent)},
"align-items":function(){return T5s(z.data().alignItems)}}),
"on:click":x},_.N(_.TS,{data:function(){return z.data().button||z.data().toggleButton}},{buttonViewModel:function(G){return _.N(_.h4,{data:G.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(G){return _.N(_.vL,{data:G.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ji");var Z3y=_.P(function(z){var l=function(){return z.data()},I={},b=_.Df(function(){return l().backgroundColor},0),v=_.Df(function(){return l().actionButtons},[]),M=_.Df(function(){return l().stickerLayer},{}),x=function(){var G,u;
return{animationRef:I,animationConfig:{autoplay:!1,loop:!1,path:(u=(G=l().foregroundAnimation)==null?void 0:G.url)!=null?u:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){z.navigateToNextItemOnLottieComplete()}}}},g=function(){var G,u,Z,H,y,f,R,F;
return{animationConfig:{autoplay:(f=(G=l().backgroundAnimation)==null?void 0:(u=G.settings)==null?void 0:u.autoplay)!=null?f:!1,loop:(R=(Z=l().backgroundAnimation)==null?void 0:(H=Z.settings)==null?void 0:H.loop)!=null?R:!1,path:(F=(y=l().backgroundAnimation)==null?void 0:y.url)!=null?F:"",name:"stories_item_background_animation"}}};
_.Te(function(){if(z.isVisible()){var G;(G=I.lottieEl)==null||G.play();z.animationRef()&&(z.animationRef().lottieEl=I.lottieEl)}else{var u;(u=I.lottieEl)==null||u.stop()}},"AvUgVe");
return _.N("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.XV({"background-color":function(){return _.aD(b())+";"}})},_.N("div",{class:"ytStoriesItemViewModelAssetContent"},_.N(_.E,{cond:function(){return!!l().backgroundAnimation},
then:function(){return _.N(_.A4,{data:g,animationName:function(){return g().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.N(_.E,{cond:function(){return!!l().backgroundImage},
then:function(){return _.N(_.pK,{data:function(){return l().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.N(_.E,{cond:function(){return!!l().foregroundAnimation},
then:function(){return _.N(_.A4,{data:x,animationName:function(){return x().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.N(_.E,{cond:function(){return!!l().foregroundImage},
then:function(){return _.N(_.pK,{data:function(){return l().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.N("div",{class:"ytStoriesItemViewModelTopShadow"}),_.N(_.TS,{data:function(){return M()}},{storiesStickerLayerViewModel:Ef8})),_.N("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.XV({"background-color":function(){return _.aD(b())}})},_.N("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.N(_.qy,{each:v},function(G){return _.N(uOS,{data:function(){return G},
pauseAutoNavigation:z.pauseAutoNavigation})}))))},"ki"),H3C={style:"overlay",
type:"outline"},uOS=_.P(function(z){var l={};return _.N("div",{class:_.m9("ytStoriesItemViewModelActionButton",(l.ytStoriesItemViewModelStretchedActionButton=function(){return z.data().size==="STORIES_BUTTON_SIZE_STRETCH"},l)),
"on:click":_.KK(z.pauseAutoNavigation)},_.N(_.TS,{data:function(){return z.data().button}},{buttonViewModel:function(I){return _.N(_.h4,{data:I.data,
buttonOverrides:H3C})}}))},"li");_.uO(_.P(function(z){var l=function(){var R1;return(R1=z.data().startIndex)!=null?R1:0},I=_.D(_.Br(l)),b=I.next().value,v=I.next().value;
I=_.D(_.Z_(!1,void 0,"PXfG3d"));var M=I.next().value,x=I.next().value,g=function(){var R1;return(R1=z.data().storyItems)!=null?R1:[]},G={},u=_.VK("yt-stories-viewer-view-model"),Z=function(){return z.data().dismissButton},H=function(){var R1;
return _.Wh((R1=_.k(Z(),_.N1))==null?void 0:R1.onTap)},y=_.VK("div"),f,R,F=!1,Y=function(){var R1;
(R1=f)==null||R1.cancel();f=c(b()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});f.onfinish=function(){var H7=_.k(g()[b()],F6q),P7,o1;H7!=null&&H7.foregroundAnimation&&((H7==null?0:(P7=H7.foregroundAnimation)==null?0:P7.url)||(H7==null?0:(o1=H7.foregroundAnimation)==null?0:o1.payload))||(b()!==g().length-1?(v(b()+1),Y()):H()&&_.nE(H()))}},c=function(R1){return y.value.children[R1].children[0]},d=function(){for(var R1=0;R1<b();R1++)c(R1).style.transform=
"scaleX(1)"},V=function(){F||(M()?x(!1):(b()===g().length-1&&H()&&_.nE(H()),c(b()).style.transform="scaleX(1)",b()!==g().length-1&&(v(b()+1),Y())))},A=function(){F||(M()?x(!1):(c(b()).style.transform="scaleX(0)",b()!==0&&v(b()-1),Y()))},W=function(){x(!0)},L=function(){c(b()).style.transform="scaleX(1)";
b()!==g().length-1?(v(b()+1),Y()):H()&&_.nE(H())};
I=function(){F=!1;R=setTimeout(function(){x(!0);F=!0},300)};
var lH=function(){clearTimeout(R);F&&M()&&x(!1)};
_.Te(function(){if(M()){var R1;(R1=f)==null||R1.pause();var H7;(H7=G.lottieEl)==null||H7.pause()}else{var P7;(P7=f)==null||P7.play();var o1;(o1=G.lottieEl)==null||o1.play()}},"q47fR");
_.Te(function(){d();b()===l()&&Y()},"ydZxlf");
var Gk=function(R1){R1.key==="ArrowLeft"?A():R1.key==="ArrowRight"&&V()},uH=function(R1){if(R1.target===u.value){(R1=H())&&_.nE(R1);
clearTimeout(R);var H7;(H7=f)==null||H7.cancel();window.removeEventListener("keydown",Gk);window.removeEventListener("yt-popup-closed",uH)}},Xt=function(R1){R1.target===u.value&&(window.addEventListener("keydown",Gk),window.addEventListener("yt-popup-closed",uH))};
_.Sm(function(){d();Y();window.addEventListener("yt-popup-opened",Xt)});
return _.N("yt-stories-viewer-view-model",{el:u,class:_.m9("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.N("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.N("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.KK(A),"on:mousedown":_.KK(I),"on:mouseup":_.KK(lH),"on:mouseleave":_.KK(lH)}),_.N("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.KK(V),"on:mousedown":_.KK(I),"on:mouseup":_.KK(lH),"on:mouseleave":_.KK(lH)})),
_.N("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.N(_.TS,{data:g},{storiesItemViewModel:function(R1,H7){var P7=R1.data;return _.N(_.E,{cond:function(){return Math.abs(H7()-b())<=1},
then:function(){var o1={};return _.N("div",{class:_.m9("ytStoriesViewerViewModelStoryItem",(o1.ytStoriesViewerViewModelActiveStoryItem=function(){return H7()===b()},o1))},_.N(Z3y,{data:P7,
pauseAutoNavigation:W,navigateToNextItemOnLottieComplete:L,isVisible:function(){return H7()===b()},
animationRef:G}))}})}})),_.N("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:y},_.N(_.qy,{each:g},function(){return _.N("div",{class:"ytStoriesViewerViewModelProgressBar"},_.N("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.N("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.N(_.TS,{data:Z},{buttonViewModel:_.h4})))},"mi"),"yt-stories-viewer-view-model",{props:{data:_.mB}});_.uO(_.P(function(z){var l=z.data;var I=_.VK("yt-gen-ai-feedback-form-view-model"),b=[];return _.N("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.N(_.Rf,{text:function(){return l().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.N("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.N(_.TS,{data:function(){return l().feedbackChips}},{toggleButtonViewModel:function(v){var M=v.data;
return _.N(_.vL,{data:M,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(x){var g=M();g=_.k(g,_.uS);g=_.k(g==null?void 0:g.defaultButtonViewModel,_.N1).trackingParams;x?b.push(g):(x=b.indexOf(g),x>-1&&b.splice(x,1))}})}})),_.N(_.Rf,{text:function(){return l().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.N("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.N(_.TS,{data:function(){return l().submitButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){cRc(I.value,b,l().uniqueId)}})}}),_.N(_.TS,{data:function(){return l().moreFeedbackButton}},{buttonViewModel:function(v){return _.N(_.h4,{data:v.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ni"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.mB},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Ze=function(){return _.q.apply(this,arguments)||this};
_.m(Ze,_.q);Ze.prototype.created=function(){NxK(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Qtc);var z=_.pG().resolve(_.ODK);z&&(z.container=this.ytPopupContainerBehavior);if(z=_.pG().resolve(_.In))z.container=this.ytPopupContainerBehavior;if(z=_.pG().resolve(_.bL)){var l=this.ytPopupContainerBehavior;z.containerWasInjected?_.PW(Error("kj")):z.container=l}};
Ze.prototype.ensurePopupBelowPlayer=function(z,l){var I=_.pG().resolve(_.MB(_.OB));if(!I||!I.isOnWatch()||!_.GS())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.ic().height>I+this.getPopupHeight(z,l)?(z.style.top="auto",z.style.bottom="0px"):(z.style.top=I+"px",z.style.bottom="auto");return!0};
Ze.prototype.getPopupHeight=function(z,l){l&&(z.cachedPopupHeight=0);if(!z.cachedPopupHeight){l=0;var I=z.clientHeight,b=window.getComputedStyle(z);l+=parseInt(b.marginTop,10);l+=parseInt(b.marginBottom,10);z.cachedPopupHeight=I+l}return z.cachedPopupHeight};
Ze.prototype.getElement=function(z){return document.createElement(z)};
_.e([_.t(bx0.YtPopupContainerBehavior),_.w("design:type",Object)],Ze.prototype,"ytPopupContainerBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],Ze.prototype,"ytComponentBehavior",void 0);_.e([_.S({disableElementRegistration:!0,is:"ytd-popup-container"})],Ze);
_.r(Ze,"ytd-popup-container",function(){if(LU4!==void 0)return LU4;var z=document.createElement("template");_.K(z,"\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");z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);return LU4=z},{mode:1});var ySq;var fdc={};fdc.YtLogYpcFlowCommandsBehavior=[_.wl.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(z){_.k(z,L61)&&(z=_.k(z,L61))&&(z.serializedTransactionFlowLoggingParams?_.b5u(z.serializedTransactionFlowLoggingParams):z.serializedYpcCancelFlowLoggingParams?(z=z.serializedYpcCancelFlowLoggingParams)&&_.ka("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",z):z.serializedYpcResumeFlowLoggingParams?(z=z.serializedYpcResumeFlowLoggingParams)&&_.ka("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",z):z.serializedYpcPauseFlowLoggingParams?(z=z.serializedYpcPauseFlowLoggingParams)&&
_.ka("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",z):z.serializedYpcRefundFlowLoggingParams?(z=z.serializedYpcRefundFlowLoggingParams)&&UFq("YPC_EVENT_TYPE_START",z):z.serializedYpcDeactivateFlowLoggingParams?(z=z.serializedYpcDeactivateFlowLoggingParams)&&_.ka("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",z):z.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(z=z.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.ka("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",z))},
handleLogYpcFlowDismiss_:function(z){_.k(z,nYC)&&(z=_.k(z,nYC),z.serializedTransactionFlowLoggingParams?_.vQ1(z.serializedTransactionFlowLoggingParams):z.serializedYpcCancelFlowLoggingParams?(z=z.serializedYpcCancelFlowLoggingParams)&&_.ka("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",z):z.serializedYpcResumeFlowLoggingParams?(z=z.serializedYpcResumeFlowLoggingParams)&&_.ka("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",z):z.serializedYpcPauseFlowLoggingParams?(z=
z.serializedYpcPauseFlowLoggingParams)&&_.ka("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",z):z.serializedYpcRefundFlowLoggingParams&&(z=z.serializedYpcRefundFlowLoggingParams)&&UFq("YPC_EVENT_TYPE_CANCEL",z))}}];var CFX={};CFX.YtCancelRecurrenceBehavior=[_.uh.YtComponentBehavior,_.Thp,{attached:function(){var z=this;UNq(this,function(l,I){return z.ypcCancelRecurrenceHandler(l,I)})},
ypcCancelRecurrenceHandler:function(z,l){var I=this;if(!l||!l.ypcCancelRecurrenceEndpoint)return!1;if(!l.ypcCancelRecurrenceEndpoint.params)return _.$P(Error("Kl")),!0;_.Lj(this.hostElement);var b=_.zS.instance,v=_.pG().resolve(_.MB(_.wD));b&&_.l1(b,l)?_.I0(b,l).then(function(M){I.ypcCancelRecurrenceSuccess_(z,l,{data:M})},function(M){I.ypcCancelRecurrenceFailure_(z,l,M)}).thenCatch(function(){_.$P(Error("Ll"))}):v?v.requestDataForServiceEndpoint(l).then(function(M){I.ypcCancelRecurrenceSuccess_(z,
l,M)},function(M){I.ypcCancelRecurrenceFailure_(z,l,M)}).thenCatch(function(){_.$P(Error("Ll"))}):_.$P(Error("Ml"));
return!0},
ypcCancelRecurrenceSuccess_:function(z,l,I){_.Uc(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.ZE(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?VSq(l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(l=l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.ka("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",l);_.gC(z,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(z,l,I){_.Uc(this.hostElement);VSq(l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.gC(z,"yt-service-request-error",{error:I,params:[z,l]})}}];var kdW=function(z,l){_.I1.call(this,l)};
_.m(kdW,t1W);var REy={};REy.YtCompleteTransactionBehavior=[_.uh.YtComponentBehavior,_.Thp,{attached:function(){var z=this;UNq(this,function(l,I){return z.ypcCompleteTransactionHandler(l,I)})},
completeTransaction:function(z,l){var I=this;l={payments_payload:window.btoa(l.integratorData),buybucket_params:z.data.buybucketParams,offer_params:z.data.offerParams};var b=_.pG().resolve(_.wD),v=z.data.completeTransactionEndpoint,M=this.get("ypcCompleteTransactionEndpoint.actions",v);M&&_.ZE(this.hostElement,M,this.hostElement);return(M=_.zS.instance)&&_.l1(M,v)?_.I0(M,v,l).then(function(x){return!x||(x==null?0:x.error)?(x=I.get("data.serializedTransactionFlowLoggingParams",z),_.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
x))):{data:x}}).then(function(x){return I.handleCompleteTransactionSuccess_(x,z)},function(){return I.handleCompleteTransactionFailure_(z)}):b.requestDataForServiceEndpoint(v,l).then(function(x){return I.handleCompleteTransactionSuccess_(x,z)},function(){return I.handleCompleteTransactionFailure_(z)})},
handleCompleteTransactionSuccess_:function(z,l){z.data||(z={data:z});if(z.data.messageRenderer)return _.Ph(new kdW(z.data.messageRenderer));if(z.data.trackingParams){var I=_.sU(),b=_.h8();I&&b&&_.LM(I,b,_.ch(z.data.trackingParams))}l=this.get("data.serializedTransactionFlowLoggingParams",l);apK(l);return _.Hu(z)},
handleCompleteTransactionFailure_:function(z){z=this.get("data.serializedTransactionFlowLoggingParams",z);_.b5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z);return _.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z))},
ypcCompleteTransactionHandler:function(z,l){var I=this;if(!l.ypcCompleteTransactionEndpoint)return!1;if(!l.ypcCompleteTransactionEndpoint.transactionParams)return _.$P(Error("Nl")),!0;l.ypcCompleteTransactionEndpoint&&l.ypcCompleteTransactionEndpoint.gtmData&&_.bh(l.ypcCompleteTransactionEndpoint.gtmData);var b=_.pG().resolve(_.MB(_.wD));if(b){_.Lj(this.hostElement);var v=_.zS.instance;v&&_.l1(v,l)?_.I0(v,l).then(function(M){return!M||(M==null?0:M.error)?(M=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
l),_.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))):{data:M}}).then(function(M){_.gC(z,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(l,M)},function(){return I.ypcCompleteTransactionFailure_(l)}):b.requestDataForServiceEndpoint(l).then(function(M){_.gC(z,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(l,M)},function(){return I.ypcCompleteTransactionFailure_(l)})}return!0},
ypcCompleteTransactionSuccess_:function(z,l){_.Uc(this.hostElement);l.data||(l={data:l});_.Gb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);l.data.messageRenderer||l.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(z):(_.bh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",z));l.data.actions&&(z=qWW(l.data.actions),l=iKW(l.data.actions),z.length&&_.uJ(this.hostElement,
z),l.length&&_.ZE(this.hostElement,l,this.hostElement))},
ypcCompleteTransactionFailure_:function(z){_.Uc(this.hostElement);_.Gb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",z,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(z,l,I){if(l=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",l))l={serializedTransactionFlowLoggingParams:l},I&&(l.errorType=I),_.cW(z,l),_.SX()}}];var mV0={};mV0.YtEndpointHandlerWithYpcBehavior=[_.Thp,_.wl.YtActionHandlerBehavior,[{openWalletDialog:function(z,l,I,b,v,M,x){var g=this,G=_.b1();l=l.replace(/-/g,"+").replace(/_/g,"/");var u=_.Bu().get("hl");_.jOG(_.pI(_.vy),l,G.resolve,v,function(Z){M&&M();G.reject(Z)},u,function(Z){return g.onServerBackendAnalyticEvent_(z,I,Z)},this.onDialogClose_.bind(this),b,x);
return G.promise},
openFixFlowDialog:function(z,l,I,b){z=z.replace(/-/g,"+").replace(/_/g,"/");_.pI(_.vy).openFixFlowDialog(z,l,I,b)},
onDialogClose_:function(){_.Gb(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(z,l,I){_.gC(z,"yt-commerce-action-init-done");l&&_.uJ(this.hostElement,[l,{backend_analytics:I}])}}],
_.$$.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(z,l){z=this.get("data.nativeFlowEndpoint",l);l=this.get("data.fallbackEndpoint",l);z?_.uJ(this.hostElement,[z]):l&&_.gC(this.hostElement,"yt-navigate",{endpoint:l})}}],
CFX.YtCancelRecurrenceBehavior,REy.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 z=this;UNq(this,function(l,I,b){return z.handleYPCEndpoint(l,I,b)});
this.ypcRegisterActionMapJobId_=_.qA(_.ow,function(){z.registerActionMap(z.buyFlowActionMap_)})},
detached:function(){var z=this;_.ow.cancelJob(this.ypcRegisterActionMapJobId_);_.qA(_.ow,function(){z.unregisterActionMap(z.buyFlowActionMap_)})},
handleYPCEndpoint:function(z,l,I){var b=l.ypcGetCartEndpoint;if(b){_.hH("commerce_transaction");var v=b.gtmId;v&&_.If(v);(b=b.gtmData)&&_.bh(b)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",l)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(z,l),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",l)!=null?(this.handleYPCFixInstrumentEndpoint_(z,l),!0):l.ypcPauseSubscriptionCommand?(eys(this.hostElement,z,l,I),
!0):l.ypcResumeSubscriptionCommand?(WEK(this.hostElement,z,l),!0):l.getPaymentInstrumentsParamsCommand?(s04(this.hostElement,z,l),!0):l.ypcHandleTransactionEndpoint?(P1K(this.hostElement,z,l,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(z,l){var I=this;_.sK("ttcr",void 0,"commerce_transaction");l=l.ypcGetCartEndpoint;var b=l.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,v=b.encryptedPurchaseParams,M=b.serializedTransactionFlowLoggingParams,x=b.serializedPaymentsClientParams,g=this.createGetCartResponseFromParams_(b,l.offerParams,M);this.changeButtonState(z,!0);_.rO(this.openWalletDialog(z,v,b.ypcLogWalletAnalyticDataEndpoint,M,function(){I.changeButtonState(z,!1)},function(){I.changeButtonState(z,
!1)},x).then(function(G){return I.handleBuyFlowCompleteCallback_(z,g,G)},function(){return I.handleOnLoadError(g)}).then(function(G){return void I.handlePostPurchaseSuccess_(z,g,G)},function(G){return void I.handlePostPurchaseError_(G)}),function(){I.changeButtonState(z,!1);
z instanceof Element&&_.gC(z,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(z,l,I){var b=z.completeTransactionEndpoint,v=z.handleTransactionEndpoint;l={data:{offerParams:window.btoa(l),serializedTransactionFlowLoggingParams:I}};v?l.data.handleTransactionEndpoint=v:l.data.completeTransactionEndpoint=b;z.onCartDismissCommand&&(l.data.onCartDismissCommand=z.onCartDismissCommand);return l},
onGetCartServiceRequestCompleted_:function(z,l){var I=this,b=z.target;if(l&&l.data&&l.data.messageRenderer)_.Uc(this.hostElement),this.handleMessageRenderer_(l.data.messageRenderer),this.changeButtonState(b,!1);else{var v=this.get("data.encryptedPurchaseParams",l),M=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",l),x=this.get("data.ypcLogWalletAnalyticDataEndpoint",l),g=this.get("data.serializedPaymentsClientParams",l),G=this.getLoggingParams_(l);if(G||v||M)z.stopPropagation(),_.sK("ttcr",
void 0,"commerce_transaction"),v||_.Uc(this.hostElement),this.changeButtonState(b,!1),M?_.Gb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.sZ("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:M}}},this]):v&&(this.changeButtonState(b,!0),z=null,z=this.openWalletDialog(b,v,x,G,function(){_.Uc(I.hostElement);I.changeButtonState(b,!1)},function(){_.Uc(I.hostElement);
I.changeButtonState(b,!1)},g),_.rO(z.then(function(u){return I.handleBuyFlowCompleteCallback_(b,l,u)},function(){return I.handleOnLoadError(l)}).then(function(u){return I.handlePostPurchaseSuccess_(b,l,u)},function(u){return I.handlePostPurchaseError_(u)}),function(){I.changeButtonState(b,!1);
_.gC(b,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(z,l){l&&l.endpoint&&l.endpoint.ypcGetCartEndpoint&&!l.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",l.endpoint.ypcGetCartEndpoint)&&_.ZE(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",l.endpoint.ypcGetCartEndpoint)],z.target),_.Lj(this.hostElement),this.changeButtonState(z.target,!0))},
onServiceRequestError_:function(z,l){if(l&&l.params&&l.params.length){l=_.D(l.params);for(var I=l.next();!I.done;I=l.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.ZE(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],z.target);_.Uc(this.hostElement);this.changeButtonState(z.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(z,l,I){var b=I.integratorData;return b==null||b===""||I.error!=null?(b=this.getLoggingParams_(l),String(I.error)==="-1"?(l.data.onCartDismissCommand&&_.ZE(this.hostElement,[l.data.onCartDismissCommand],z),_.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b,!0))):_.Ph(new MJ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b))):l.data.handleTransactionEndpoint?hyy(this.hostElement,l.data.handleTransactionEndpoint,{payments_payload:b,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(l,I)},
handlePostPurchaseSuccess_:function(z,l,I){l=I.data;var b=!1,v,M;if(l&&((v=l.command)==null?0:(M=v.commandExecutorCommand)==null?0:M.commands)){var x,g;v=(x=l.command)==null?void 0:(g=x.commandExecutorCommand)==null?void 0:g.commands;for(x=0;x<v.length;x++)if(_.k(v[x],_.HeM)){b=!0;break}}b||(l&&l.gtmDatas&&l.gtmDatas.length?_.bh(l.gtmDatas[0]):_.bh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(l=qWW(I.data.actions),I=iKW(I.data.actions),l.length&&
_.uJ(this.hostElement,l),I.length&&_.ZE(this.hostElement,I,z))},
handlePostPurchaseError_:function(z){z&&z.payload&&z.payload.isUserDismiss||_.dE(Error("Pl"))},
handleOnLoadError:function(z){z=this.getLoggingParams_(z);return _.Ph(new MJ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",z))},
getLoggingParams_:function(z){return this.get("data.serializedTransactionFlowLoggingParams",z)},
handleMessageRenderer_:function(z){var l=_.oY(z,"renderer"),I=_.sZ("openPopupConfig");l==="confirmDialogRenderer"&&I&&_.Gb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[l],popup:z}},this])},
handleYPCFixInstrumentEndpoint_:function(z,l){var I=this,b=l.ypcFixInstrumentEndpoint;l=b.encryptedFixInstrumentParameters;this.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(z,!0);this.openFixFlowDialog(l,function(v,M){I.onFixFlowCompleteCallback_(b,v,M)},function(){return I.changeButtonState(z,!1)},function(){I.changeButtonState(z,!1);
I.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(z,l,I){var b=_.W8("payments.business.integration.scenario.FixInstrument");if(l==b.IntegratorCallbackType.ON_COMPLETE){l="FIX_FOP_EVENT_TYPE_CANCEL";var v=null;I.error!=null?I.error!=b.OnCompleteCallbackError.USER_CANCELLED&&(_.ZE(this.hostElement,[z.errorAction],this.hostElement),l="FIX_FOP_EVENT_TYPE_FAILURE",v="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ZE(this.hostElement,[z.successAction],this.hostElement),l="FIX_FOP_EVENT_TYPE_SUCCESS");_.ZE(this.hostElement,[z.onFinishAction],
this.hostElement);this.logFixFopEvent_(z,l,v)}},
logFixFopEvent_:function(z,l,I){(z=z.serializedFixFopLoggingParams)?(l={eventType:l,serializedFixFopLoggingParams:z},I!=null&&(l.errorType=I),_.cW("fixFopFlow",l),_.SX()):_.dE(Error("Ql"))},
changeButtonState:function(z,l){_.C("enable_ypc_spinners")&&z&&(z.is==="yt-button-renderer"||z.is==="ytd-button-renderer")&&(z.disabled=l)}}];var KmF=function(z){this.JSC$32367_clientRoot=z;this.feedbackCollectorActionMap={"yt-help-dialog-requested":LE4,"yt-feedback-dialog-requested":nU8,"yt-signal-action-help":UvS,"yt-signal-action-send-feedback":aXC,"yt-send-feedback-action":j0K,"yt-user-feedback-endpoint":JRF};_.n2(_.WW.getInstance(),this.feedbackCollectorActionMap,this.JSC$32367_clientRoot)},tUq;var Bhq=function(z){this.JSC$32372_clientRoot=z;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":zLX.bind(null,this.JSC$32372_clientRoot),"yt-signal-action-delete-all-downloads":I6X,"yt-signal-action-delete-download":bj4,"yt-signal-action-delete-playlist-download":M20,"yt-signal-action-install-pwa":GDc,"yt-signal-action-refresh-downloads":Ojy,"yt-offline-video-endpoint":EM1,"yt-offline-playlist-endpoint":Zjq,"yt-update-local-app-setting-command":yQF,"yt-offline-orchestration-action-command":C71,
"yt-signal-action-undo-delete-download":Da4,"yt-local-watch-history-command":maW};_.n2(_.WW.getInstance(),this.downloadManagerActionMap,this.JSC$32372_clientRoot);_.oD.instance=new _.oD},XwW;var H3=function(){var z=_.q.apply(this,arguments)||this;z.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_"};z.remoteApi_=null;return z};
_.m(H3,_.q);_.p=H3.prototype;
_.p.ready=function(){_.C("polymer_enable_mdx")&&(prW({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.C("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.C("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.C("enable_cast_short_lived_lounge_token")}),_.Gu("yt-remote-connection-change",this.handleConnectionChange_,this),_.Gu("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=uV4())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.p.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.p.handleConnectionChange_=function(z){(this.mdxConnected=z)?(z=OKl(),!z&&nC8()&&Lhl()&&(z={key:"cast-selector-receiver",name:Lhl()}),z=z.name):z=null;this.receiverName=z;_.p0(this.remoteApi_);(this.remoteApi_=uV4())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.p.handleReceiverAvailabilityChange_=function(){var z=xt1();nC8()&&_.rD("yt-remote-cast-available")&&z.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=z.length>0};
_.p.handleRemoteQueueChange_=function(){var z=this.currentVideoId_,l=this.currentListId_,I=xk(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.Gb(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.C("polymer_enable_mdx_queue")?this.currentListId_:null,z,l])};
_.p.handleAddToQueueAction_=function(z){z=_.k(z,QVq);this.remoteApi_&&(z.videoId?this.remoteApi_.addVideo(z.videoId):z.playlistId&&this.remoteApi_.addPlaylist(z.playlistId))};
_.p.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.p.handleInsertInQueueAction_=function(z){z=_.k(z,YMK);this.remoteApi_&&z.videoId&&this.remoteApi_.JSC$19822_insertVideo(z.videoId)};
_.p.handleRemoveFromQueueAction_=function(z){z=_.k(z,TIq);this.remoteApi_&&z.videoId&&this.remoteApi_.JSC$19822_removeVideo(z.videoId)};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],H3.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X(),_.w("design:type",Object)],H3.prototype,"appId",void 0);_.e([_.X(),_.w("design:type",Boolean)],H3.prototype,"mdxConnected",void 0);_.e([_.X(),_.w("design:type",Boolean)],H3.prototype,"receiverAvailable",void 0);_.e([_.X(),_.w("design:type",Object)],H3.prototype,"receiverName",void 0);_.e([_.X(),_.w("design:type",Object)],H3.prototype,"currentVideoId_",void 0);
_.e([_.X(),_.w("design:type",Object)],H3.prototype,"currentListId_",void 0);_.e([_.Wy({is:"yt-mdx-manager",disableElementRegistration:!0})],H3);_.r(H3,"yt-mdx-manager",void 0,{mode:2});var qVX;var i3X;var yn=function(){var z=_.q.apply(this,arguments)||this;z.APP_IDS={ytr:3,ytm:5};z.JSC$21038_timeoutId_=0;z.actionMap={"yt-open-create-family-dialog":"open"};return z};
_.m(yn,_.q);_.p=yn.prototype;_.p.created=function(){NxK(2200)};
_.p.detached=function(){this.observer_&&this.observer_.disconnect()};
_.p.open=function(z,l){var I=this,b=z.serializedYpcFamilyCreateLoggingParams;this.JSC$21038_timeoutId_=setTimeout(this.abort_.bind(this,z.postFlowErrorEndpoint,b),3E4);l&&(this.onReadyCallback_=l);var v=_.Hy(this.hostElement).querySelector("#unicorn-iframe");b&&b&&LM8("ypcFamilyCreateFlowStarted",b);_.hCH("family_creation",function(){var M=_.W8("gapi.family_creation.render");_.W8("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var x=3;z.appId&&z.appId in
I.APP_IDS&&(x=I.APP_IDS[z.appId]);x={authUser:_.sZ("SESSION_INDEX")||0,clientId:x,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.sZ("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,z.postFlowSuccessEndpoint,b),onError:I.onUnicornFlowError_.bind(I,z.postFlowErrorEndpoint,b),onReady:I.onUnicornFlowReady_.bind(I,z.referencePcidParams)};M(v,x)})};
_.p.close=function(){_.Hy(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.p.onUnicornFlowComplete_=function(z,l){this.close();l&&l&&LM8("ypcFamilyCreateFlowSucceeded",l);_.gC(this.hostElement,"yt-navigate",{endpoint:z})};
_.p.onUnicornFlowError_=function(z,l){this.close();l&&LM8("ypcFamilyCreateFlowCancelled",l);_.gC(this.hostElement,"yt-navigate",{endpoint:z})};
_.p.onUnicornFlowReady_=function(z){var l=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();z&&_.W8("gapi.family_creation.setConfig")(0,z);this.observer_=new MutationObserver(function(){_.Hy(l.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Hy(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Hy(this.hostElement).querySelector("#dialog").open()};
_.p.getFamilyCreationUrlWithUnicornParams_=function(){return _.sZ("YTR_FAMILY_CREATION_URL")};
_.p.getCurrentUrl_=function(){return document.location.href};
_.p.abort_=function(z,l){this.clearTimeout_();this.onUnicornFlowError_(z,l)};
_.p.clearTimeout_=function(){clearTimeout(this.JSC$21038_timeoutId_)};
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],yn.prototype,"ytActionHandlerBehavior",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],yn.prototype,"isMobile",void 0);_.e([_.X(),_.w("design:type",Object)],yn.prototype,"onReadyCallback_",void 0);_.e([_.X(),_.w("design:type",Object)],yn.prototype,"observer_",void 0);_.e([_.Wy({is:"yt-create-family-dialog",disableElementRegistration:!0})],yn);
_.r(yn,"yt-create-family-dialog",function(){if(i3X===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);var l=z.content,I=l.insertBefore;qVX===void 0&&(qVX=document.createElement("template"));var b=qVX;I.call(l,b.content.cloneNode(!0),z.content.firstChild);i3X=z}z=i3X;return z},{mode:2});var Fm0;var Qo1;var fC=function(){var z=_.q.apply(this,arguments)||this;z.STEP=1;z.BLOCK_ON=80;z.MIN_PROGESS=0;z.MAX_PROGESS=100;return z};
_.m(fC,_.q);_.p=fC.prototype;_.p.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.p.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));_.pG().addProvider({provide:uJ4,useValue:this})};
_.p.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.p.finish=function(){var z=this;this.progress=this.MAX_PROGESS;Knl(function(){z.progress==z.MAX_PROGESS&&(z.hostElement.hidden=!0)})};
_.p.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.vP.Object.defineProperties(fC.prototype,{progress:{configurable:!0,enumerable:!0,set:function(z){this.progress_=z;var l="scaleX("+z/this.MAX_PROGESS+")",I=_.Hy(this.hostElement).querySelector("#progress").style;I.transform=l;I.webkitTransform=l;this.hostElement.setAttribute("aria-valuenow",String(z))},
get:function(){return this.progress_}}});
_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],fC.prototype,"ytComponentBehavior",void 0);_.e([_.Wy({is:"yt-page-navigation-progress",disableElementRegistration:!0})],fC);
_.r(fC,"yt-page-navigation-progress",function(){if(Qo1===void 0){var z=document.createElement("template");_.K(z,'\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');z.content.insertBefore(_.n().content.cloneNode(!0),
z.content.firstChild);var l=z.content,I=l.insertBefore;Fm0===void 0&&(Fm0=document.createElement("template"));var b=Fm0;I.call(l,b.content.cloneNode(!0),z.content.firstChild);Qo1=z}z=Qo1;return z},{mode:2});var YV0={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"},Thy={"font-size":"12px","font-style":"italic"},cSS={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.qcW=function(){return _.O(function(z){_.qe(z)})};var SVF=_.P(function(z){var l=function(){return z.data().subtext},I={};
return _.N("snackbar-view-model",{class:_.m9("snackbarViewModelHost",z.className)},_.N("div",{class:_.m9("snackbarViewModelEngagementBarWrapper",z.className)},_.N(_.E,{cond:function(){return z.data().image},
then:function(b){return _.N(_.pK,{data:b,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.N(_.E,{cond:function(){return z.data().imageContent},
then:function(){return _.N("div",{class:"snackbarViewModelAvatarContainer"},_.N(_.TS,{data:function(){return z.data().imageContent}},{decoratedAvatarViewModel:_.xQ}))}}),_.N("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.N("div",{class:_.m9((I.snackbarViewModelTitle=!0,I.snackbarViewModelTitleWithSubtext=l,I))},_.N(_.Rf,{text:function(){return z.data().text}})),_.N(_.E,{cond:l,
then:function(){return _.N("div",{class:"snackbarViewModelSubtext"},_.N(_.Rf,{text:function(){return l()}}))}})),_.N(_.E,{cond:function(){return z.data().buttons},
then:function(){return _.N("div",{class:"snackbarViewModelButtonClassWrapper"},_.N(_.TS,{data:function(){return z.data().buttons}},{buttonViewModel:function(b){return _.N(_.h4,{data:b.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:z.target})}}))}})))},"oi");_.uO(_.P(function(){function z(d,V,A){R(d);Y(A);y("in");Z(!0);l(d,V);x=setTimeout(function(){I()},V)}
function l(d,V){var A,W=(A=d.text)==null?void 0:A.content;d=_.e9(d.rendererContext);W&&(V={label:W,command:d,durationMs:V},_.pG().resolve(_.vj).enqueue(V))}
function I(d){y("out");d&&clearTimeout(x)}
function b(){I(!0)}
function v(d){if(d){var V=d.snackbarViewModel,A=d.durationMs,W=d.target;A||(A=3E3);V&&(d=_.pG().resolve(_.MB(_.Jc)))&&d.enqueue({isOpened:u,open:function(){z(V,A,W)},
close:I},0)}}
var M=_.z1("snackbar-container"),x=void 0,g=_.D(_.Z_(!1,void 0,"mDc5N")),G=g.next().value;g=g.next().value;var u=G,Z=g;G=_.D(_.Z_("out",void 0,"FpOs5e"));var H=G.next().value,y=G.next().value;G=_.D(_.Z_(void 0,void 0,"jIDRob"));var f=G.next().value,R=G.next().value;G=_.D(_.Z_(void 0,void 0,"kOA3Mb"));var F=G.next().value,Y=G.next().value,c=_.KK(function(){if(H()==="out"){Z(!1);R(void 0);Y(void 0);var d=_.pG().resolve(_.MB(_.Jc));d&&tyS(d,0)}});
_.Sm(function(){var d=_.pG().resolve(_.MB(_.YjX));d&&(d.showSnackbarFn=v,d.closeSnackbarFn=b)});
return _.N("snackbar-container",{class:"ytSnackbarContainerHost",el:M},_.N(_.E,{cond:function(){return u()&&!!f()},
then:function(){var d={};return _.N("div",{class:_.m9("ytSnackbarContainerSnackbarContainer",(d.ytSnackbarContainerMobile=!1,d.ytSnackbarContainerPivotBar=function(){var V;return!((V=_.pG().resolve(_.MB(_.TwK)))==null||!V())},d.ytSnackbarContainerOpened=function(){return u()&&H()==="in"},d.ytSnackbarContainerClosed=function(){return u()&&H()==="out"},d)),
"on:animationend":c},_.N(SVF,{data:function(){return f()},
target:function(){return F()}}))}}))},"pi"),"snackbar-container");_.uO(_.TW0,"yt-tooltip");var dV0=_.aFc.ephemeralActionSelector;_.uO(_.P(function(){var z=_.nK(dV0);return _.N("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var l;return(l=z())==null?void 0:l.announcement})},"qi"),"yt-ephemeral-actions");var Wn8=new Map;var iMK=function(z,l){var I=this;this.handleError=z;this.logEventInternal=l;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
iMK.prototype.logError=function(z){this.handleError(z)};
iMK.prototype.logEvent=function(z,l){switch(z){case "IDB_DATA_CORRUPTED":_.C("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",l);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",l);break;case "IS_SUPPORTED_COMPLETED":_.C("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",l);break;case "QUOTA_EXCEEDED":of0(this,l);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",l);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":z=Object.assign({},l,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",z)}};
var of0=function(z,l){_.pX.getInstance().estimate().then(function(I){I=Object.assign({},l,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:LnK(I==null?void 0:I.usage),deviceStorageQuotaMbytes:LnK(I==null?void 0:I.quota)});z.logEventInternal("idbQuotaExceeded",I)})};var PFq=_.P(function(z){var l=_.VK("yt-draggable"),I=z.onDrag,b=z.onDragStart,v=z.onDragEnd,M=_.xC(z,{allowClicks:!1,dragThreshold:5}),x=M.dragThreshold,g=M.allowClicks;z=M.children;M=M.className;var G=void 0,u=void 0,Z=new _.rs(0,0),H=!1;_.Sm(function(){G=new _.JJ(l.value);u=new _.DV(f);y(G,u);if(g()){_.Xd0(G,x());var F;(F=l.value)==null||F.addEventListener("click",R,{capture:!0})}_.cb(function(){var Y;(Y=G)==null||Y.dispose();if(g()){var c;(c=l.value)==null||c.removeEventListener("click",R,{capture:!0})}})});
var y=function(F,Y){_.dZ(F,"earlycancel",function(){g()&&(H=!1)});
_.dZ(F,"start",function(c){b==null||b(c);c.defaultPrevented||g()&&(H=!0)});
_.dZ(F,"beforedrag",function(c){G&&u&&(c.preventDefault(),Z=new _.rs(c.clientX-G.startX,c.clientY-G.startY),u.start())});
_.dZ(F,"end",function(){Y.stop();v==null||v();Z=new _.rs(0,0)})},f=function(){Z&&I(Z)},R=function(F){H&&(H=!1,F.stopPropagation(),F.preventDefault())};
return _.N("yt-draggable",{el:l,class:_.m9("ytDraggableComponentHost",M)},z)},"ri");var hE0=_.P(function(z){var l=_.D(_.Z_(0,void 0,"Qf0tbc")),I=l.next().value,b=l.next().value;l=function(v){var M={},x={};return _.N(PFq,{className:_.m9("ytdMiniplayerComponentResizer",(M.ytdMiniplayerComponentResizerDisabled=function(){return v===z.horizontalAlignment()||v===z.verticalAlignment()},M.ytdMiniplayerComponentResizerNorth=v==="north",M.ytdMiniplayerComponentResizerEast=v==="east",M.ytdMiniplayerComponentResizerSouth=v==="south",M.ytdMiniplayerComponentResizerWest=v==="west",M)),
onDragStart:function(){b(z.currentMiniplayerSize());if(z.onResizeStart)z.onResizeStart()},
onDrag:function(g){v!=="north"&&v!=="west"||g.scale(-1);var G;g=(G=v==="north"||v==="south")?g.y:g.x;var u=z.currentAspectRatio();G&&u>=1?g*=u:!G&&u<1&&(g/=u);G=g;z.onResize(I()+G)}},_.N("div",{class:_.m9("ytdMiniplayerComponentResizerCorner",(x.ytdMiniplayerComponentResizerNorthCorner=v==="north",x.ytdMiniplayerComponentResizerEastCorner=v==="east",x.ytdMiniplayerComponentResizerSouthCorner=v==="south",x.ytdMiniplayerComponentResizerWestCorner=v==="west",x))}))};
return _.N("div",{class:"ytdMiniplayerComponentResizers"},l("north"),l("east"),l("south"),l("west"))},"si");var soc=16/9;_.uO(_.P(function(){var z=_.VK("ytd-miniplayer"),l=_.D(_.Z_(new _.X5(NaN,NaN),void 0,"GhwGi")),I=l.next().value,b=l.next().value;l=_.D(_.Z_(!1,void 0,"YCGMub"));var v=l.next().value,M=l.next().value;l=_.D(_.Z_(!1,void 0,"tMABIb"));var x=l.next().value,g=l.next().value;l=_.D(_.Z_(!1,void 0,"XAbRxc"));var G=l.next().value,u=l.next().value;l=_.D(_.Z_(!1,void 0,"qcycIb"));var Z=l.next().value,H=l.next().value;l=_.D(_.Z_(!1,void 0,"HJauAf"));var y=l.next().value,f=l.next().value;l=_.D(_.Z_(!1,void 0,"P0Rfsf"));
var R=l.next().value,F=l.next().value;l=_.D(_.Z_(soc,void 0,"mfCCDe"));var Y=l.next().value,c=l.next().value,d=_.D(_.Z_(!1,void 0,"QfcC7b"));l=d.next().value;var V=d.next().value;d=_.D(_.Z_(!1,void 0,"armgtc"));var A=d.next().value,W=d.next().value;d=_.D(_.Z_(void 0,void 0,"yK0pGf"));var L=d.next().value,lH=d.next().value;d=_.D(_.Z_(_.sZ("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var Gk=d.next().value,uH=d.next().value;d=_.D(_.Z_("south",void 0,"aWTWh"));var Xt=d.next().value,R1=d.next().value;
d=_.D(_.Z_(400,void 0,"IY6bpb"));var H7=d.next().value,P7=d.next().value,o1=_.pG().resolve(_.Af).miniplayerPropSignalMap[0],z_=o1.data,dw=o1.externalPlaylistData;d=o1.toastData;var Ej=o1.playabilityStatus,JG=o1.isReadyToResume,yu=o1.isDisabled,uu=o1.watchWhile,Y0=o1.playerVe,iK=o1.expandVe,a_=o1.closeVe,pu=o1.readyToResumeVe,lu=o1.readyToResumeCloseVe,k0=o1.repositionVe,E8=o1.resizeVe;o1=_.D(_.Br(JG));var R_=o1.next().value,bK=o1.next().value,Ou=!1,lK=!1,gw;_.Sm(function(){b(_.ic());z.value.addEventListener("animationend",
function($0){$0.target===z.value&&(f(!1),F(!1))});
zVK(z.value)});
_.ay("yt-window-resized",function($0){$0&&b($0)});
var Ln=function(){gw&&c(gw.getVideoAspectRatio())},Cl=function(){if(gw){var $0=gw.getPlayerState()===1;
R_()&&$0&&bK(!1)}},FA=function(){var $0=iK();
if($0){var hy=_.sU(3);hy&&_.JH(hy,$0)}},tp=function(){var $0=a_(),hy=lu();
$0&&_.JH(_.sU(3),$0);JG()&&hy&&_.JH(_.sU(3),hy)};
_.ay("yt-activate-miniplayer",function($0){var hy;return _.O(function(WX){if(WX.nextAddress==1)return v()?WX.return():WX.yield((hy=_.pG().resolve(_.Af).getPlayerElement())==null?void 0:hy.getPlayerPromise(),2);gw=WX.yieldResult;if(!gw)return WX.return();!A()&&_.C("kevlar_watch_while_v2")&&(R1($0&&!_.C("kevlar_watch_while_bottom_align")?"north":"south"),uH(_.sZ("HTML_DIR")==="rtl"?"west":"east"));var BQ=gw;BQ.addEventListener("onVideoDataChange",Ln);BQ.addEventListener("onStateChange",Cl);BQ.addEventListener("onExpandMiniplayer",
FA);BQ.addEventListener("onCloseMiniplayer",tp);c(gw.getVideoAspectRatio());M(!0);JQF()||f(!0);_.qe(WX)})});
_.ay("yt-deactivate-miniplayer",function($0){return _.O(function(hy){if(!v())return hy.return();M(!1);bK(!1);F($0);H(!1);g(!1);if(gw){var WX=gw;WX.removeEventListener("onVideoDataChange",Ln);WX.removeEventListener("onStateChange",Cl);WX.removeEventListener("onExpandMiniplayer",FA);WX.removeEventListener("onCloseMiniplayer",tp)}JQF()||f(!0);_.qe(hy)})});
var ys=function(){return!(uu()&&_.C("kevlar_watch_while_modern"))},jA=function(){var $0;
return!(($0=dw())==null||!$0.contents)},uK=function(){var $0=H7();
var hy=I();hy=Math.min(Math.min(hy.width,hy.height)-32,720);var WX=Y(),BQ=ys(),e3=jA()&&x(),f7=Math.min($0,hy);$0=new _.X5(192,BQ?116:192);WX=new _.X5(e3?soc:WX,1);f7=new _.X5(f7,BQ?f7-76:f7);f7=WX.aspectRatio()>f7.aspectRatio()?f7.width/WX.width:f7.height/WX.height;WX=WX.scale(f7);$0.width<=WX.width&&$0.height<=WX.height||($0=WX.aspectRatio()<=$0.aspectRatio()?$0.width/WX.width:$0.height/WX.height,WX.scale($0),WX.width=Math.min(WX.width,hy),WX.height=Math.min(WX.height,hy));return new _.X5(WX.width,
_.rx(192,WX.height+v10(BQ,e3),720))},Yq=function(){var $0=uK(),hy=ys(),WX=jA()&&x();
return new _.X5($0.width,$0.height-v10(hy,WX))},FY=function(){var $0=function(hy){hy.target===z.value&&Z()&&(H(!1),z.value.removeEventListener("transitionend",$0))};
JQF()||(z.value.addEventListener("transitionend",$0),H(!0));g(!x())};
_.Te(function(){var $0=Y0(),hy=_.sU(3),WX=_.h8(3);if(hy&&WX&&$0){_.LM(hy,WX,$0);WX=k0();var BQ=E8(),e3=iK(),f7=a_(),rk=lu();e3&&f7&&rk&&(_.UK(hy,$0,[e3,f7,rk]),_.Vi(hy,[e3,f7]));WX&&BQ&&_.UK(hy,$0,[WX,BQ])}},"DuFzOc");
_.Te(function(){var $0=pu();if($0){var hy=_.sU(0),WX=_.h8(0);hy&&WX&&(_.LM(hy,WX,$0),_.Vi(hy,[$0]))}},"vwRnmc");
o1={};return _.N("ytd-miniplayer",{el:z,class:_.m9("ytdMiniplayerComponentHost",(o1.ytdMiniplayerComponentVisible=function(){return v()||y()},o1.ytdMiniplayerComponentAnimatingSnap=G,o1.ytdMiniplayerComponentAnimatingPlaylistExpand=Z,o1.ytdMiniplayerComponentAnimatingFade=y,o1),function(){if(y()){var $0=Xt();
var hy=v(),WX=R();$0=hy?$0==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":WX?$0==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":$0==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else $0="";return $0}),
style:_.XV({top:function(){return Xt()==="north"?"16px":""},
right:function(){return Gk()==="east"?"16px":""},
bottom:function(){return Xt()==="south"?"16px":""},
left:function(){return Gk()==="west"?"16px":""},
width:function(){return uK().width+"px"},
height:function(){return uK().height+"px"},
transform:function(){var $0=L();return $0?"translate("+$0.x+"px, "+$0.y+"px)":""}})},_.N("div",{class:"ytdMiniplayerComponentContent"},_.N(PFq,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function($0){var hy=bIW(Gk(),Xt(),I(),uK(),L()),WX=Yq();Math.abs($0.clientY-(hy.y+WX.height))>15?(V(!0),$0=_.sU(3),hy=k0(),Ou||(Ou=!0,$0&&hy&&_.Vi($0,[hy])),$0&&hy&&_.JH($0,hy)):$0.preventDefault()},
onDrag:function($0){lH($0)},
onDragEnd:function(){var $0=lql(bIW(Gk(),Xt(),I(),uK(),L()),I(),uK()),hy=Iqs(Gk(),Xt(),I(),uK()),WX=Iqs($0.horizontalAlignment,$0.verticalAlignment,I(),uK());WX=new _.rs(WX.x-hy.x,WX.y-hy.y);var BQ;hy=hy.y+(((BQ=L())==null?void 0:BQ.y)||0)+uK().height/2;var e3=function(){Gk()===$0.horizontalAlignment&&Xt()===$0.verticalAlignment||W(!0);uH($0.horizontalAlignment);R1($0.verticalAlignment);lH(void 0)},f7=function(rk){rk.target===z.value&&G()&&(u(!1),e3(),z.value.removeEventListener("transitionend",f7))};
V(!1);Xt()==="south"&&hy>I().height?(e3(),_.pG().resolve(_.Af).close()):(z.value.addEventListener("transitionend",f7),u(!0),lH(WX))}},_.N(_.E,{cond:v,
then:function(){return _.N(_.x4s,{isDisabled:yu,playabilityStatus:Ej,size:Yq})}}),_.N(_.E,{cond:ys,
then:function(){return _.N(_.plK,{isReadyToResume:R_,data:z_,expanded:x,onExpandClick:FY,playlistData:dw})}}),_.N(_.E,{cond:l,
then:function(){return _.N("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.N(_.E,{cond:function(){return jA()&&x()||Z()},
then:function(){return _.N(_.wI4,{className:"ytdMiniplayerComponentPlaylistPanel",data:dw,hideHeaderText:!0,withinMiniplayer:!0})}}),_.N("div",{class:"ytdMiniplayerComponentToast"},_.N(_.O0y,{toastData:d}))),_.N(hE0,{onResize:function($0){P7(_.rx(192,$0,720))},
onResizeStart:function(){var $0=_.sU(3),hy=E8();lK||(lK=!0,$0&&hy&&_.Vi($0,[hy]));$0&&hy&&_.JH($0,hy)},
currentAspectRatio:Y,currentMiniplayerSize:H7,horizontalAlignment:Gk,verticalAlignment:Xt}))},"ti"),"ytd-miniplayer",{});var rSq=_.JR.persistentPanelVisibleSelector,CC=function(){var z=_.q.apply(this,arguments)||this;z.tabGesturesIsActive=!1;z.persistentPanelEnabled=_.C("enable_ai_companion");z.deprecateFullerscreenUi=_.C("web_watch_fullerscreen_deprecation_ui");z.hasDelegation=!1;z.darkerDarkTheme=_.C("web_darker_dark_theme");z.isFrostedGlassInitialized=!1;z.frostedGlassExp=_.C("web_frosted_glass");z.mastheadHiddenFocusWithinKillswitch=_.C("web_masthead_hidden_focus_within_killswitch");z.clientOnlyWizTooltipsEnabled=
_.C("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");z.scrollAtTop=!0;z.guideScrollTop=0;z.isTheaterModeSession=_.rr("START_IN_THEATER_MODE");z.iMaxTheaterMode=_.C("web_watch_imax_theater_mode");z.isFullWindowSession=_.rr("START_IN_FULL_WINDOW_MODE");z.hasCreateFamilyDialog=!1;z.mastheadHeight=56;z.networkStatusManager=new _.U5;z.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"};z.dynamicActionMap={"yt-run-attestation-command":function(l){var I=
_.FQc.instance,b=_.k(l,_.wc_);return b?_.C("use_rta_manager_for_async")&&uGc()?lsl(I,b,l.clickTrackingParams):zhy(I,b,l.clickTrackingParams):_.Ph(Error("si"))}};
z.isFrostedGlassDisabled=!1;z.isChannelOrPlaylistPage=!1;return z};
_.m(CC,_.q);_.p=CC.prototype;_.p.created=function(){var z=_.pG();_.C("kevlar_clear_duplicate_pref_cookie")&&_.qA(_.ow,function(){var l=_.mZ.get("PREF");l&&!/f\d=/.test(l)&&(l=_.gk("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=l?"PREF=null;domain="+l+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.C("gzip_gel_with_worker")&&_.wyt();_.C("jspb_serialize_with_worker")&&hcc();_.C("web_worker_availability_check")&&nM8();_.C("nwl_init_killswitch")||oB4().then(function(){_.ow.addLowPriorityJob(COs)});
this.pageManagerAttachedPromise=_.b1();this.ytdAppBehavior.loadDepsPromise=_.sb([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.zD(this.onThrottledScroll,200,this);_.C("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);FYC();KTK=!!_.W8("ytappsettings.initialized");pS=_.W8("ytappsettings.previousValue");Occ=_.W8("ytappsettings.previousSnapshotTime");KTK||(KTK=!0,gwW());Bol();XrC();_.hr("DEFERRED_DETACH",
_.C("kevlar_tuner_should_defer_detach"));_.hr("REUSE_COMPONENTS",!0);_.hr("STAMPER_STABLE_LIST",!0);_.hr("SCHEDULED_LAZY_LIST",!0);_.hr("openPopupConfig",F8W);_.hr("useClickHandler",!0);_.C("kevlar_shell_cleanup")&&_.ow.addLowPriorityJob(Cic.bind(this,_.v7.caches));_.rr("IS_SHELL_LOAD")&&_.om({shellStartupDurationMs:Math.round((0,_.Dr)()-_.YB())});YcF(this.networkStatusManager);_.C("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",t2q(YV0)),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!",
t2q(Thy)),console.log("%cVisit http://go/join-youtube-web to apply today.",t2q(cSS)));_.W5F(z.resolve(_.Iz),1E3)};
_.p.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var z=Uuq();z&&!_.C("external_fullscreen_killswitch")&&document.addEventListener(z,this.setFullscreen.bind(this));(z=window.matchMedia("(prefers-color-scheme: dark)"))&&z.addEventListener&&z.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.p.attached=function(){var z=this;_.uV().processSignal("ci");_.C("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.jkt?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.HJ(_.MH7(),"SUCCESS");this.updateIconSet();_.xB(this.guideInnerContent,!1);_.jC().initVisibilityObserver();this.guideService.guideElement=this.guide;var l=document.createElement("ytd-miniplayer"),I=_.Hy(this.hostElement).querySelector("#content");
_.Hy(this.hostElement).insertBefore(l,I);_.uV().processSignal("ma");_.pG().resolve(_.Af).init(l);this.persistentPanelEnabled&&_.JX0(_.pG().resolve(_.vD),this.persistentPanelContainer,"APP");_.rr("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.Hy(this.hostElement).insertBefore(I,l));_.C("kevlar_right_click_on_lockups")&&_.O4._onCaptureClick&&document.addEventListener("contextmenu",_.O4._onCaptureClick.bind(_.O4),!0);var b=function(){var v=_.ih("yt-page-navigation-progress");
_.Hy(z.hostElement).appendChild(v)};
setTimeout(function(){_.uV().parkOrScheduleJob(b,0,"eocs",16)},0);
_.C("service_worker_push_enabled")&&_.qA(_.ow,nw4);_.n2(_.WW.getInstance(),this.dynamicActionMap,this.hostElement);_.gC(this.hostElement,"ytd-app-attached");_.uV().processSignal("aa");xFK(this.hostElement);_.vd("gapi.load",_.hCH);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.qA(_.ow,
function(){var v=document.createElement("ytd-video-preview");_.Hy(_.Hy(z.hostElement).querySelector("#video-preview")).appendChild(v)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.qA(_.ow,function(){ijC();z.registerWithViewTransitionManager()});
if(_.dD()&&this.isAppDarkTheme()!==_.cF())this.onDarkModeToggledAction();else l=_.Sb()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==l&&(_.C("enable_dark_theme_only_on_shorts")?_.z9(_.C("enable_dark_theme_only_on_shorts_control")?window.location.href:_.jm(window.location.href,{theme:"dark"})):_.PW(new _.qB("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(cZ0=new TAF(this.hostElement)),XwW=new Bhq(this.hostElement),tUq=new KmF(this.hostElement),JZ4=new jtK(this.hostElement)};
_.p.getThemeSettingsToLog=function(){var z=_.Sb()==="USER_INTERFACE_THEME_DARK";z=_.dD()?_.cF()?"os-dark":"os-light":z?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:z,cookiesEnabled:_.tE()}};
_.p.detached=function(){_.OK(this.guideInnerContent);_.ow.cancelJob(bw);bw=0;_.ow.cancelJob(MI);MI=0;_.bK7(DFK);DFK.length=0;vw1=_.P0u=null;_.jC().dispose();_.C("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.UN(_.WW.getInstance(),cZ0.playlistHandlerActionMap,cZ0.JSC$32083_clientRoot);_.UN(_.WW.getInstance(),XwW.downloadManagerActionMap,XwW.JSC$32372_clientRoot);_.UN(_.WW.getInstance(),tUq.feedbackCollectorActionMap,tUq.JSC$32367_clientRoot);
for(var z=_.D(JZ4.eventListeners),l=z.next();!l.done;l=z.next()){var I=_.D(l.value);l=I.next().value;I=I.next().value;I=_.D(I);for(var b=I.next();!b.done;b=I.next()){var v=_.D(b.value);b=v.next().value;v=v.next().value;l.removeEventListener(b,v)}}_.UN(_.WW.getInstance(),JZ4.autonavPauseActionMap,JZ4.JSC$20003_clientRoot)};
_.p.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Bu().getFlag(186)};
_.p.computeIsInlinePreviewEnabled=function(z,l,I){return!I&&_.$WF({miniplayerIsActive:z,miniplayerPlaybackState:l})};
_.p.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_FROSTED_GLASS_MODE",payload:!_.C("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"}))};
_.p.computeIsFrostedGlassDisabled=function(z,l,I,b){return z||l||I||b&&_.C("web_frosted_glass_disable_watch")};
_.p.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.C("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.p.computeIsHomePage=function(z,l){if(!z||l==null||!l.endpoint)return!1;var I;return((I=_.k(l.endpoint,_.BF))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.p.updateIsChannelOrPlaylistPage=function(){if(_.C("web_frosted_glass")){var z,l,I=(l=(z=_.pG().resolve(_.MB(_.OB)))==null?void 0:z.getCurrentPage())==null?void 0:l.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.p.scheduleFrostedGlassInitialization=function(){var z=this;_.C("web_frosted_glass")&&_.uV().parkOrScheduleJob(function(){z.isFrostedGlassInitialized=!0},0,_.Rz(["eocs",
"cr"]),300)};
_.p.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.ufI(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.GZ({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.p.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(uzK(!0))};
_.p.onYtSignalActionRequestPersistentStorage=function(){if(!_.C("request_persistent_storage_killswitch")){var z=_.pG().resolve(_.SvX);z.cachedPersistStatePromise||(z.cachedPersistStatePromise=S9c())}};
_.p.handleYtChannelCreationFormEndpoints=function(z){z&&this.ytComponentBehavior.resolveCommand(z)};
_.p.handleShowEngagementPanelEndpoint=function(z){z&&this.ytComponentBehavior.resolveCommand(z)};
_.p.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(uzK(!1))};
_.p.initIconDefs=function(z,l){var I=document.createElement("iron-iconset-svg");I.name=z;z=document.createElementNS("http://www.w3.org/2000/svg","svg");I.appendChild(z);z.appendChild(l);document.body.appendChild(I);return I};
_.p.onWindowResized=function(){_.Gb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var z=_.Kuu.getInstance();z.documentWidth_=document.body.clientWidth;q2C(z)};
_.p.onWindowScrolled=function(){var z=_.pG().resolve(_.OB).getCurrentPage();if(z!=null&&z.getScrollTop){var l=this.ytdReduxBehavior,I=l.dispatch;z=z.getScrollTop()<=0;I.call(l,_.GZ({type:"SET_SCROLL_AT_TOP",payload:z}))}};
_.p.guideIsVisibleButNotPersistentSelectorChanged=function(){var z=_.pG().resolve(_.OB).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=z.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"),
z.setScrollTop(this.guideScrollTop));_.EK(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.p.getCurrentPageScrollableElementType=function(){var z=_.pG().resolve(_.OB).getCurrentPage();if(z&&z.getPageScrollingElement())return z.getPageScrollingElement().nodeName};
_.p.observeGuideVisibility=function(){var z=_.Kuu.getInstance(),l=this.miniGuideVisible;z.guidePersistentAndVisible_=this.guidePersistentAndVisible;z.miniGuideVisible_=l;q2C(z)};
_.p.handleEduDismissAction=function(z){z&&z.eduDismissAction&&(_.Gb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.fH_.getInstance(),_.iV.set(z.eduDismissAction.key+"-dismissed",!0))};
_.p.handleEduImpressionAction=function(z){if(z&&z.eduImpressionAction){var l=_.fH_.getInstance();z=z.eduImpressionAction.key;l.JSC$13022_eduDisplayedThisLoad_[_.yq4[z].setKey||z]=!0;_.iV.set(z+"-impression",parseInt(_.iV.get(z+"-impression")||0,10)+1)}};
_.p.onYtSignalActionConfirmMentionsEdu=function(){_.Gb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Tv.getInstance();_.Qa.set("edu-dismissed",!0)};
_.p.onYtSignalActionRecordMentionsEduImpression=function(){_.Tv.getInstance();var z=_.Qa.set,l=parseInt(_.Qa.get("edu-impressions"),10);z.call(_.Qa,"edu-impressions",(isFinite(l)?l:0)+1)};
_.p.onYtPageManagerAttached=function(z){var l;((l=_.pJ(z))==null?void 0:l.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.p.onInvokeInstrumentManagerAction=function(z,l){jF1(l,z)};
_.p.updateIconSet=function(){var z=this.hostElement.querySelector("#masthead");if(z){var l=_.y5(z),I=l.querySelector("g#yt-logo-updated");I&&(z=document.createElementNS("http://www.w3.org/2000/svg","defs"),z.appendChild(I.cloneNode(!0)),(l=l.querySelector("g#yt-logo-red-updated"))&&z.appendChild(l.cloneNode(!0)),this.initIconDefs("yt-logos-ext",z))}};
_.p.updateMastheadData=function(){var z=this,l,I,b,v,M;return _.O(function(x){if(x.nextAddress==1){l=z.data;I=z.hostElement.querySelector("#masthead");if(!I)return x.return();_.IR(z,function(){I.data=z.topbarData});
if(!z.get("response.topbar",l)||z.get("response.topbar.responseContext.maxAgeSeconds",l)===0)return x.jumpTo(0);if(b=_.pG().resolve(_.dv))return x.yield(b(),6);v=_.pG().resolve(_.PE);return x.yield(v.put("service:topbar:fallback",new _.h$({innertubeResponse:z.get("response.topbar",l)})),0)}return(M=x.yieldResult)?x.yield(M.put("service:topbar:fallback",new _.h$({innertubeResponse:z.get("response.topbar",l)})),0):x.jumpTo(0)})};
_.p.computeTopbarData=function(z){if(!z)return null;var l;return this.isShortsPage&&this.topbarData&&!_.k((l=z.response)==null?void 0:l.topbar,yol)?this.topbarData:z.response&&"topbar"in z.response?_.k(z.response.topbar,yol)||null:null};
_.p.onSetTheaterModeEnabled=function(z,l){this.isTheaterModeSession=l.enabled;this.setTheaterModeStyles(l.enabled)};
_.p.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.p.onDarkModeToggledAction=function(){var z=_.yI(window.location.href);if(!_.Ud1(z)){(z=!!_.V7(window.location.href).themeRefresh)&&_.PW(new _.qB("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!z){gwW();z={themeRefresh:1};var l=_.pG().resolve(_.OB);if(l.isOnWatch()){var I,b;l=((I=l.getPlayerFromWatch())==null?void 0:(b=I.getPlayer())==null?void 0:b.getCurrentTime())||0;l>=1&&(z.time_continue=Math.floor(l))}_.tE()||_.Sb()!=="USER_INTERFACE_THEME_DARK"||(z.theme="dark");_.z9(_.jm(window.location.href,
z))}_.C("web_appshell_refresh_trigger")&&_.v7.caches&&this.refreshAppShellResponse();I=_.UU(window.location.href);_.eT(_.pG().resolve(_.wU),_.Mu(I,"theme"))}};
_.p.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.p.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.p.onPlayerFullscreen=function(z){_.pM();this.playerFullscreen=z};
_.p.setRestrictedMode=function(z){var l=_.Bu();_.XG(0,58,z);l.save();_.pG().resolve(_.Va).reload()};
_.p.onPageChanged=function(z){z.detail.newPageType==="ytd-watch-flexy"||z.detail.newPageType==="ytd-watch-fixie"||z.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.TY("WEB_PAGE_TYPE_WATCH")):z.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.TY("WEB_PAGE_TYPE_SHORTS")):z.detail.newPageType==="ytd-browse"&&z.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.TY("WEB_PAGE_TYPE_MINI_APP")):_.C("web_frosted_glass")&&z.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.TY("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.TY("WEB_PAGE_TYPE_UNKNOWN"));z.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.p.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.p.onGuideToggleTap=function(){_.gC(this.hostElement,"yt-guide-toggle")};
_.p.onGuideToggleHover=function(){_.gC(this.hostElement,"yt-guide-hover")};
_.p.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setMastheadTheme=function(){var z=_.y5(this.hostElement).querySelector("#masthead");z&&(z.dark=z.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),z.isDarkThemeForced=!1)};
_.p.onRequestPanelModeChange=function(z,l){this.hideHeaderShadow=l.mode!=="seamed"};
_.p.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.p.onDrawerIronSelect=function(z){_.pJ(z).id==="guide"&&this.processDrawerIronSelect()};
_.p.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var z="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(z="opened"));_.gC(this.hostElement,"yt-autonav-pause-guide-"+z)};
_.p.onAddElementToApp=function(z){_.Hy(this.hostElement).appendChild(z.detail)};
_.p.onThrottledScroll=function(){var z=_.pG().resolve(_.OB).getCurrentPage();z&&(this.scrollAtTop=z.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.p.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.p.setFullscreen=function(){if(_.C("external_fullscreen")||!this.isWatchPage){var z=_.C("kevlar_fullerscreen_root_only_killswitch")?!!_.pM():!!_.pM()&&_.pM()===document.documentElement;z=(this.isWatchPage||_.C("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(z||this.isFullWindowSession);this.fullscreen!==z&&((this.fullscreen=z)&&_.EK(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.vF().dispatch(_.b6_(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Gb(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.p.setFullscreenLoggingForShorts=function(z){var l,I,b;return _.O(function(v){if(v.nextAddress==1)return v.yield((l=_.GS())==null?void 0:l.getPlayerPromise(),2);I=v.yieldResult;(b=I)==null||b.setAppFullscreen(z);_.qe(v)})};
_.p.updateMastheadCssHeight=function(){var z=this.mastheadHeight;this.fullscreen&&(z=0);_.R8(this.hostElement,{"--ytd-masthead-height":z+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.p.updateNetworkStatusBannerDisplayStatus=function(){var z="unset";this.fullscreen&&(z="none");_.R8(this.hostElement,{"--ytd-network-status-banner-display":z})};
_.p.updateNetworkStatusBannerCssHeight=function(){var z="unset";this.fullscreen&&(z="0px");_.R8(this.hostElement,{"--ytd-network-status-banner-max-height":z})};
_.p.updateScrollAndMasthead=function(z,l,I,b){this.iMaxTheaterMode||(b=!1);var v=_.pG().resolve(_.OB).getCurrentPage();z||l||b?(document.body.classList.add("no-scroll"),v.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.KJ(this,this.onScroll)),v.setScrollTop(0),_.R8(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.fX()+"px"})):I?_.gC(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.gC(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
v.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.KJ(this,this.onScroll)));this.mastheadHidden=z||l||I;this.updateMastheadCssHeight();_.C("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.p.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.p.onYtNavigateAction=function(z){z=this.get("navigateAction.endpoint",z);_.gC(this.hostElement,"yt-navigate",{endpoint:z})};
_.p.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var z=document.createElement("yt-create-family-dialog");_.Hy(this.hostElement).appendChild(z);this.hasCreateFamilyDialog=!0}};
_.p.onSetPushNotificationsEnabledCommand=function(z){var l=this,I=_.k(z,HeW);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?$FS().then(function(){Notification.permission==="granted"?(Xgq(!I.enabled).then(FM8),I.successAction&&_.uJ(l.hostElement,[I.successAction])):I.failureAction&&_.uJ(l.hostElement,[I.failureAction])}):(Xgq(!I.enabled).then(FM8),I.successAction&&_.uJ(this.hostElement,[I.successAction])))};
_.p.onYtSignalActionEnableChromeNotifications=function(){evl(!0)};
_.p.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.k(this.topbarData.hotkeyDialog,kKK)}}})};
_.p.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Gb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.p.onYtEndpointChangeHandler=function(z,l){var I=_.pI(_.aE);I.pendingPrefetchJob_&&(l=!(!l||l.autonav!="1"),I.pendingPrefetchJob_.resolve(z&&_.hF$(z)?_.sJt(z,l):""),I.pendingPrefetchJob_=null);_.Gb(this.hostElement,"yt-pause-active-page-context");_.Gb(this.hostElement,"ytd-log-youthere-nav");_.Gb(this.hostElement,"yt-prepare-page-dispose")};
_.p.handleCommandWithCommandHandler=function(z,l){_.KE.instance.resolveCommand(z,{form:{element:l}})};
_.p.onYtTimedCommand=function(z){var l=this;z=_.k(z,M$X);var I=z.command;I&&_.fI(_.ow,function(){var b=_.k(I,_.SEj);b?(_.KE.instance.resolveCommand(I),l.maybeLogGetAnswerRequestTick(b)):_.ZE(l.hostElement,[I],l.hostElement)},z.timeoutMs||0)};
_.p.maybeLogGetAnswerRequestTick=function(z){z&&z.isFirstRequest&&(_.hH("search_overview_answer"),_.sK("so_rq",void 0,"search_overview_answer"))};
_.p.onYtSignalActionSkipNavigation=function(){var z=_.pG().resolve(_.OB).getCurrentPage();_.JW(z)};
_.p.onYtSignalActionCopyDebugData=function(){IkS()};
_.p.handleEntityUpdateCommand=function(z){_.tm(_.k(z,_.gI0).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.p.logFlowLoggingEventCommand=function(z){if(z=_.k(z,_.Bap))if(z.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var l=z.flowEventNamespace,I=z.flowEventType,b=z.flowType;b&&l&&I&&_.Y31(_.fr(l,I,z.flowEventMetadata),b)}else{l=_.kW();I=z.flowEventNamespace;b=z.flowEventType;var v=z.flowType;v&&I&&b&&_.Cr(l,_.fr(I,b,z.flowEventMetadata),v,z.flowNonce)}};
_.p.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.p.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.p.onTouchStart=function(){var z=_.JC();_.sU()&&_.JN(z.JSC$13250_screenManager,{visualElement:z.ve})};
_.p.handleSelectLanguageCommand=function(z){if(z=_.k(z,EYF).hl){var l=_.Bu();l.set("hl",z);l.save();_.pG().resolve(_.Va).reload()}};
_.p.handleConfirmDialogEndpoint=function(z){(z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(z))&&this.ytOpenPopupBehavior.openPopup(z)};
_.p.handleOpenPopupNavigationEndpoints=function(z,l){_.C("web_button_rework")&&(z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(z))&&this.ytOpenPopupBehavior.openPopup(z,l)};
_.p.handleSaveCommandToSessionStorage=function(z){if(z=_.k(z,_.abA)){var l=z.key;l&&z.command&&window.sessionStorage.setItem(l,JSON.stringify(z.command))}};
_.p.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(z){z&&z.active&&z.active.postMessage({type:"refresh_shell"})}).catch(function(z){z.name!=="SecurityError"&&_.dE(z)})};
_.p.onDeviceThemeChanged=function(){var z=_.cF();_.XG(_.Bu(),185,z);_.Bu().save()};
_.p.handleYtRegisterPromoCommand=function(z){if(_.k(z,Ze8)){var l=_.pG().resolve(_.OB).getCurrentPage()||this.hostElement;xbs().registerPromoCommand(_.k(z,Ze8),l)}};
_.p.onYtNavigateHomeAction=function(){if(!_.C("kevlar_miniplayer_navigate_home_from_app_killswitch")){var z,l,I,b,v=(b=(z=this.topbarData)==null?void 0:(l=z.logo)==null?void 0:(I=l.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?b:_.AM;this.ytComponentBehavior.resolveCommand(v)}};
_.p.onYtLocationCollectionCommand=function(z){XtW(_.k(z,ieK))};
_.p.onYtGetLocationCommand=function(z){Q2y(_.k(z,qM1),this)};
_.p.updateRenderGuideFromBinding=function(z){this.renderGuide=z.detail.value};
_.p.updateGuidePersistentAndVisibleFromBinding=function(z){this.guidePersistentAndVisible=z.detail.value};
_.p.updateMiniGuideVisibleFromBinding=function(z){this.miniGuideVisible=z.detail.value};
_.p.onThemeSelected=function(z,l){var I=_.Bu(),b=z||l?z:_.cF(),v=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Ud1(_.yI(window.location.href));_.XG(0,165,z);_.XG(0,174,l);I.save();v&&_.Gb(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.Gb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.getCurrentTheme=function(){return _.dD()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Sb()};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.p.handleShowConsentPrimitive=function(z){var l=this,I,b;return _.O(function(v){if(v.nextAddress==1){try{I=(b=_.GS())==null?void 0:b.getPlayerPromise()}catch(M){}return v.yield(AQy(z,I),2)}_.Gb(l.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.qe(v)})};
_.p.handleSelectActiveIdentityEndpointInternal=function(z){_.jb();z=_.k(z,_.Vau);if(z!=null&&z.supportedTokens){z=_.D(z.supportedTokens);for(var l=z.next();!l.done;l=z.next())l=l.value,l.accountSigninToken&&_.z9(l.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.p.handleUpdatePermissionRoleCommand=function(z){if(z=_.k(z,_.jP_)){var l;this.hasDelegation=!((l=_.k(z.renderer,_.VoA))==null||!l.status)}};
_.p.registerWithViewTransitionManager=function(){var z=_.pG().resolve(_.MB(_.Lg));if(z){var l,I=(l=this.guide)==null?void 0:l.querySelector("#scrim"),b;l=(b=this.guide)==null?void 0:b.querySelector("#contentContainer");I&&l&&z.isAnyTransitionEnabled&&(b={},z.viewTransitionCoordinator.registerElement(I,(b.slide="app-drawer-scrim-page-transition",b["lockup-to-watch"]="app-drawer-scrim-page-transition",b["learning-journey"]="app-drawer-scrim-page-transition",b)),I={},z.viewTransitionCoordinator.registerElement(l,
(I.slide="app-drawer-container-page-transition",I["lockup-to-watch"]="app-drawer-container-page-transition",I["learning-journey"]="app-drawer-container-page-transition",I)))}};
_.vP.Object.defineProperties(CC.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.C("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.vP.Object.defineProperties(CC,{template:{configurable:!0,enumerable:!0,get:function(){if(ySq===void 0){var z=document.createElement("template");_.K(z,'\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');
z.content.insertBefore(_.n().content.cloneNode(!0),z.content.firstChild);ySq=z}z=ySq;return z}}});
CC.prototype.onOpenHotkeyDialog=CC.prototype.onOpenHotkeyDialog;CC.prototype.setFullscreen=CC.prototype.setFullscreen;CC.prototype.onAddElementToApp=CC.prototype.onAddElementToApp;CC.prototype.onDrawerIronSelect=CC.prototype.onDrawerIronSelect;CC.prototype.onGuideOpenButtonHover=CC.prototype.onGuideOpenButtonHover;CC.prototype.onRequestPanelModeChange=CC.prototype.onRequestPanelModeChange;CC.prototype.onPageDataUpdated=CC.prototype.onPageDataUpdated;CC.prototype.onPageChanged=CC.prototype.onPageChanged;
CC.prototype.onSetTheaterModeEnabled=CC.prototype.onSetTheaterModeEnabled;CC.prototype.updateMastheadData=CC.prototype.updateMastheadData;CC.prototype.onYtPageManagerAttached=CC.prototype.onYtPageManagerAttached;CC.prototype.observeGuideVisibility=CC.prototype.observeGuideVisibility;CC.prototype.guideIsVisibleButNotPersistentSelectorChanged=CC.prototype.guideIsVisibleButNotPersistentSelectorChanged;CC.prototype.isInlinePreviewEnabledChanged=CC.prototype.isInlinePreviewEnabledChanged;
CC.prototype.isWatchPageChanged=CC.prototype.isWatchPageChanged;CC.prototype.dispatchFrostedGlassMode=CC.prototype.dispatchFrostedGlassMode;_.e([_.t(_.gU),_.w("design:type",Object)],CC.prototype,"ytdReduxBehavior",void 0);_.e([_.t(_.VN.YtEventForwardingBehavior),_.w("design:type",Object)],CC.prototype,"ytEventForwardingBehavior",void 0);_.e([_.t(_.$$.YtOpenPopupBehavior),_.w("design:type",Object)],CC.prototype,"ytOpenPopupBehavior",void 0);
_.e([_.t(_.wl.YtActionHandlerBehavior),_.w("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);_.e([_.t({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.WW.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.C("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var z;((z=this.actionRouterNode.hostElement)!=null?z:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var z;((z=this.actionRouterNode.hostElement)!=null?z:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(z){this.actionRouter_.handleAction(z.detail)}}),
_.w("design:type",Object)],CC.prototype,"ytActionRouterBehavior",void 0);_.e([_.t(Z5C.YtdAppBehavior),_.w("design:type",Object)],CC.prototype,"ytdAppBehavior",void 0);_.e([_.t(_.eD.YtEndpointBehavior),_.w("design:type",Object)],CC.prototype,"ytEndpointBehavior",void 0);_.e([_.t(mV0.YtEndpointHandlerWithYpcBehavior),_.w("design:type",Object)],CC.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.e([_.t(fdc.YtLogYpcFlowCommandsBehavior),_.w("design:type",Object)],CC.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.e([_.t(_.U.YtRendererBehavior),_.w("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.e([_.t(_.uh.YtComponentBehavior),_.w("design:type",Object)],CC.prototype,"ytComponentBehavior",void 0);_.e([_.X({selector:_.Brq}),_.w("design:type",Object)],CC.prototype,"tabGesturesIsActive",void 0);_.e([_.X(),_.w("design:type",Boolean)],CC.prototype,"renderGuide",void 0);
_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"guidePersistentAndVisible",void 0);_.e([_.X({selector:_.tm1}),_.w("design:type",Boolean)],CC.prototype,"guideIsVisibleButNotPersistent",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"standalone",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"miniGuideVisible",void 0);
_.e([_.X(),_.w("design:type",Object)],CC.prototype,"persistentPanelEnabled",void 0);_.e([_.X({selector:rSq,reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"persistentPanelVisible",void 0);_.e([_.X({selector:_.Gvx}),_.w("design:type",Number)],CC.prototype,"miniplayerPlaybackState",void 0);_.e([_.X({selector:_.rg,reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"miniplayerIsActive",void 0);
_.e([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.w("design:type",Boolean)],CC.prototype,"isInlinePreviewEnabled",void 0);_.e([_.X(),_.w("design:type",Boolean)],CC.prototype,"isInlinePreviewDisabled",void 0);_.e([_.X({reflectToAttribute:!0,value:function(){return _.rr("START_IN_FULL_WINDOW_MODE")}}),
_.w("design:type",Boolean)],CC.prototype,"mastheadHidden",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"playerFullscreen",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],CC.prototype,"deprecateFullerscreenUi",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"fullscreen",void 0);_.e([_.X({value:!1,reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"hideHeaderShadow",void 0);
_.e([_.X({value:{GUIDE_ALT_LABEL:_.mY("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.w("design:type",Object)],CC.prototype,"menuStrings",void 0);_.e([_.X({computed:"computeTopbarData(data)"}),_.w("design:type",Object)],CC.prototype,"topbarData",void 0);_.e([_.X({selector:_.DGQ,reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"isWatchPage",void 0);_.e([_.X({selector:_.xG$,reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"isShortsPage",void 0);
_.e([_.X({selector:function(z){return _.$w(z)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.w("design:type",Boolean)],CC.prototype,"isMiniAppPage",void 0);_.e([_.X({selector:function(z){return _.$w(z)==="WEB_PAGE_TYPE_BROWSE"}}),
_.w("design:type",Boolean)],CC.prototype,"isBrowsePage",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Boolean)],CC.prototype,"scrolling",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],CC.prototype,"hasDelegation",void 0);_.e([_.X({reflectToAttribute:!0,value:!1}),_.w("design:type",Boolean)],CC.prototype,"guideScrolledByTouch",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],CC.prototype,"darkerDarkTheme",void 0);
_.e([_.X(),_.w("design:type",Object)],CC.prototype,"isFrostedGlassInitialized",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],CC.prototype,"frostedGlassExp",void 0);_.e([_.X({selector:function(z){return z.ui.chipBarIsSticky}}),
_.w("design:type",Boolean)],CC.prototype,"chipBarIsSticky",void 0);_.e([_.X({computed:"computeIsHomePage(isBrowsePage, data)"}),_.w("design:type",Boolean)],CC.prototype,"isHomePage",void 0);_.e([_.X({reflectToAttribute:!0}),_.w("design:type",Object)],CC.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.e([_.X(),_.w("design:type",Object)],CC.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.e([_.r6("guide"),_.w("design:type",Object)],CC.prototype,"guide",void 0);
_.e([_.r6("guide-service"),_.w("design:type",IuC)],CC.prototype,"guideService",void 0);_.e([_.r6("guide-inner-content"),_.w("design:type",HTMLDivElement)],CC.prototype,"guideInnerContent",void 0);_.e([_.qX("#persistent-panel-container"),_.w("design:type",HTMLElement)],CC.prototype,"persistentPanelContainer",void 0);_.e([_.X({selector:_.N31}),_.w("design:type",String)],CC.prototype,"frostedGlassMode",void 0);
_.e([_.By("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"dispatchFrostedGlassMode",null);_.e([_.X({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.w("design:type",Object)],CC.prototype,"isFrostedGlassDisabled",void 0);
_.e([_.By("isWatchPage"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"isWatchPageChanged",null);_.e([_.B("isHomePage","chipBarIsSticky"),_.w("design:type",Boolean),_.w("design:paramtypes",[])],CC.prototype,"applyFrostedGlassToChipBar",null);_.e([_.X(),_.w("design:type",Object)],CC.prototype,"isChannelOrPlaylistPage",void 0);
_.e([_.YE("isInlinePreviewEnabled"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"isInlinePreviewEnabledChanged",null);_.e([_.By("guideIsVisibleButNotPersistent"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.e([_.By("guidePersistentAndVisible","miniGuideVisible"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"observeGuideVisibility",null);_.e([_.tP("attached"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],CC.prototype,"onYtPageManagerAttached",null);_.e([_.By("data"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype",Promise)],CC.prototype,"updateMastheadData",null);
_.e([_.tP("yt-set-theater-mode-enabled"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent,Object]),_.w("design:returntype")],CC.prototype,"onSetTheaterModeEnabled",null);_.e([_.tP("yt-page-type-changed"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],CC.prototype,"onPageChanged",null);_.e([_.tP("yt-page-data-updated"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"onPageDataUpdated",null);
_.e([_.tP("yt-request-panel-mode-change"),_.w("design:type",Function),_.w("design:paramtypes",[Event,Object]),_.w("design:returntype")],CC.prototype,"onRequestPanelModeChange",null);_.e([_.tP("yt-guide-hover"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"onGuideOpenButtonHover",null);_.e([_.tP("app-drawer-transitioned"),_.w("design:type",Function),_.w("design:paramtypes",[Event]),_.w("design:returntype")],CC.prototype,"onDrawerIronSelect",null);
_.e([_.tP("yt-add-element-to-app"),_.w("design:type",Function),_.w("design:paramtypes",[CustomEvent]),_.w("design:returntype")],CC.prototype,"onAddElementToApp",null);_.e([_.tP("yt-set-fullerscreen-styles"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"setFullscreen",null);_.e([_.tP("yt-open-hotkey-dialog"),_.w("design:type",Function),_.w("design:paramtypes",[]),_.w("design:returntype")],CC.prototype,"onOpenHotkeyDialog",null);
_.e([_.S({is:"ytd-app"})],CC);_.uV().processSignal("eor");
_.hA();
}catch(e){_._DumpException(e)}
try{
_.Pl("NSzT5");
var jRX;_.n8=function(z){var l=document.createElement("link");_.xd(l,z,"stylesheet");document.head.appendChild(l)};
_.L8=function(z,l){var I,b;return _.O(function(v){I=document.createElement("div");I.id=z.id;z.className&&(I.className=z.className);b=z.element;if(!b)throw Error("Zj");if(z.location==="prepend")b.prepend(I);else if(z.location==="appendChild")b.appendChild(I);else if(z.location==="after")b.after(I);else throw Error("$j");return v.return(_.T3(I,l,"hh"))})};
_.UT=function(z){var l;return _.O(function(I){(l=document.getElementById(z))&&l.remove();_.qe(I)})};
_.aG=function(z,l){var I=document.querySelector(z);I?l(I):setTimeout(function(){_.aG(z,l)},1E3)};
_.J8s=function(z,l,I){var b;_.O(function(v){if(v.nextAddress==1)return(b=document.getElementById(z))?v.jumpTo(2):v.yield(jRX(z,l,I),2);if(b=document.getElementById(z))b.style.display="block";_.qe(v)})};
jRX=function(z,l,I){return _.O(function(b){return b.return(new Promise(function(v){_.aG("div #panels",function(M){_.L8({element:M,location:"appendChild",id:z,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+I},l);v()})}))})};
_.bM4=function(){_.UT("creator_chatbots-entry-point");_.UT("creator_chatbots-panel");_.n8(zc1);_.aG("ytd-watch-metadata #top-level-buttons-computed",function(z){document.getElementById("creator_chatbots-entry-point")||(_.L8({element:z,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.N(lEc,null)}),_.J8s("creator_chatbots-panel",function(){return _.N(IE1,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Vx=_.P(function(z){var l=z.text;var I=z.onClick;var b=z.color;var v=z.backgroundColor;var M=z.buttonSize;var x=z.disabled;var g=z.iconName;var G=z.iconSize;z=z.className;var u=_.KK(function(H){I(H)}),Z={};
return _.N("button",{class:_.m9("ytpStandardButtonsHost",(Z.ytpStandardButtonsLarge=function(){return(M==null?void 0:M())==="large"},Z),z),
"on:click":u,style:_.XV({color:b,"background-color":v}),disabled:x}," ",_.N(_.E,{cond:g,then:function(){return _.N(_.qt,{className:"ytpStandardButtonsIconContainer",icon:g,size:G})}}),l)},"gh");_.vBS=_.P(function(z){var l;return _.N("div",{class:_.m9("ytprototypesEngagementPanelComponentHost",z.className),id:z.id},_.N("div",{class:_.m9("ytprototypesEngagementPanelComponentEngagementPanelHeader",z.headerClassName)},_.N("div",null,z.header()),_.N("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.N("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(l=z.HeaderButton)==null?void 0:l.call(z)),_.N(_.Vx,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var I;(I=z.onHide)==null||I.call(z);I=z.id();if(I=document.getElementById(I))I.style.display="none"}}))),_.N("div",{class:_.m9("ytprototypesEngagementPanelComponentEngagementPanelContent",z.contentClassName),
style:function(){var I;return"height: "+(((I=z.height)==null?void 0:I.call(z))||"800px")+";"}},z.content()))},"ih");var M_8=_.zs(["https://portraits.google.com"]),pus=_.zs(["https://portraits.google.com/kimscott_vidcontexttests"]),Duq=_.zs(["https://labs-characters.teams.x20web.corp.google.com"]),xuK=_.HR(M_8),OMs=_.HR(pus),gB4=_.HR(Duq),IE1=_.P(function(){var z=_.C("enable_creator_chatbots_extension_dev_server"),l=document.createElement("iframe"),I=z?gB4:OMs;_.Dek(l,1,I);l.className="ytprotoCreatorChatbotsAppLabsIframe";l.allow="microphone; clipboard-read; clipboard-write self "+I;var b=function(){var M;return _.O(function(x){if(x.nextAddress==
1)return x.yield(_.pG().resolve(_.HU),2);(M=x.yieldResult)&&M.pauseVideo();_.qe(x)})},v=function(){var M,x,g;
return _.O(function(G){return G.nextAddress==1?G.yield(_.pG().resolve(_.HU),2):(M=G.yieldResult)?G.return({video_id:(g=(x=M.getVideoData())==null?void 0:x.video_id)!=null?g:"",timestamp_sec:M.getCurrentTime().toString()}):G.return({})})};
window.addEventListener("message",function(M){var x,g,G,u,Z,H;return _.O(function(y){if(y.nextAddress==1){x=z?gB4.toString():xuK.toString();if(M.origin!==x)return console.warn("Received message from untrusted origin:",M.origin),y.return();g=M.data;if(typeof g!=="object"||g===null||!g.action)return y.return();if(g.action==="pause")return y.yield(b(),0);if(g.action!=="getYouTubeContext"||!M.source)return y.jumpTo(0);G=M.source;u=G.postMessage;Z=JSON;H=Z.stringify;return y.yield(v(),7)}u.call(G,H.call(Z,
{youTubeContext:y.yieldResult}),{targetOrigin:M.origin});return y.jumpTo(0)})});
return _.N("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.N(_.vBS,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var M=z?gB4.toString():xuK.toString(),x;(x=l.contentWindow)==null||x.postMessage("ep_closed",M)},
header:function(){return _.N("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.N("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.N(_.Nm,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.N(_.Vx,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.zg(window,_.r0(I.toString()),"_blank")}})},
content:function(){return l}}))},"jh");var Gby=_.zs(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),zc1=_.HR(Gby),lEc=_.P(function(){var z=function(){_.J8s("creator_chatbots-panel",function(){return _.N(IE1,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.N("div",{class:"ytd-menu-renderer"},_.N(_.PZ,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:z}},
icon:function(){return _.N(_.qt,{icon:"SPARK"})}}))},"kh");
_.hA();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
